|
| | HWNDComponentPeer (Component &comp, int windowStyleFlags, HWND parent, bool nonRepainting) |
| | ~HWNDComponentPeer () override |
| void * | getNativeHandle () const override |
| void | setVisible (bool shouldBeVisible) override |
| void | setTitle (const String &title) override |
| void | repaintNowIfTransparent () |
| void | updateBorderSize () |
| void | setBounds (const Rectangle< int > &bounds, bool isNowFullScreen) override |
| Rectangle< int > | getBounds () const override |
| Point< int > | getScreenPosition () const |
| Point< float > | localToGlobal (Point< float > relativePosition) override |
| Point< float > | globalToLocal (Point< float > screenPosition) override |
| void | setAlpha (float newAlpha) override |
| void | setMinimised (bool shouldBeMinimised) override |
| bool | isMinimised () const override |
| void | setFullScreen (bool shouldBeFullScreen) override |
| bool | isFullScreen () const override |
| bool | contains (Point< int > localPos, bool trueIfInAChildWindow) const override |
| OptionalBorderSize | getFrameSizeIfPresent () const override |
| BorderSize< int > | getFrameSize () const override |
| bool | setAlwaysOnTop (bool alwaysOnTop) override |
| void | toFront (bool makeActive) override |
| void | toBehind (ComponentPeer *other) override |
| bool | isFocused () const override |
| void | grabFocus () override |
| void | textInputRequired (Point< int >, TextInputTarget &) override |
| void | closeInputMethodContext () override |
| void | dismissPendingTextInput () override |
| void | repaint (const Rectangle< int > &area) override |
| void | dispatchDeferredRepaints () |
| void | performAnyPendingRepaintsNow () override |
| bool | isInside (HWND h) const noexcept |
| double | getPlatformScaleFactor () const noexcept override |
| Point< int > | localToGlobal (Point< int > relativePosition) |
| virtual Rectangle< int > | localToGlobal (const Rectangle< int > &relativePosition) |
| Rectangle< float > | localToGlobal (const Rectangle< float > &relativePosition) |
| Point< int > | globalToLocal (Point< int > screenPosition) |
| virtual Rectangle< int > | globalToLocal (const Rectangle< int > &screenPosition) |
| Rectangle< float > | globalToLocal (const Rectangle< float > &screenPosition) |
| | ComponentPeer (Component &component, int styleFlags) |
| | ~ComponentPeer () override |
| Component & | getComponent () noexcept |
| int | getStyleFlags () const noexcept |
| uint32 | getUniqueID () const noexcept |
| virtual bool | setDocumentEditedStatus (bool edited) |
| virtual void | setRepresentedFile (const File &) |
| void | updateBounds () |
| Point< int > | localToGlobal (Point< int > relativePosition) |
| Point< int > | globalToLocal (Point< int > screenPosition) |
| Rectangle< float > | localToGlobal (const Rectangle< float > &relativePosition) |
| Rectangle< float > | globalToLocal (const Rectangle< float > &screenPosition) |
| Rectangle< int > | getAreaCoveredBy (const Component &subComponent) const |
| virtual bool | isKioskMode () const |
| void | setNonFullScreenBounds (const Rectangle< int > &newBounds) noexcept |
| const Rectangle< int > & | getNonFullScreenBounds () const noexcept |
| void | setConstrainer (ComponentBoundsConstrainer *newConstrainer) noexcept |
| ComponentBoundsConstrainer * | getConstrainer () const noexcept |
| void | handleMovedOrResized () |
| virtual void | handleScreenSizeChange () |
| void | handlePaint (LowLevelGraphicsContext &contextToPaintTo) |
| void | handleBroughtToFront () |
| void | handleFocusGain () |
| void | handleFocusLoss () |
| Component * | getLastFocusedSubcomponent () const noexcept |
| bool | handleKeyPress (int keyCode, juce_wchar textCharacter) |
| bool | handleKeyPress (const KeyPress &key) |
| bool | handleKeyUpOrDown (bool isKeyDown) |
| void | handleModifierKeysChange () |
| void | refreshTextInputTarget () |
| TextInputTarget * | findCurrentTextInputTarget () |
| void | handleMouseEvent (MouseInputSource::InputSourceType type, Point< float > positionWithinPeer, ModifierKeys newMods, float pressure, float orientation, int64 time, PenDetails pen={}, int touchIndex=0) |
| void | handleMouseWheel (MouseInputSource::InputSourceType type, Point< float > positionWithinPeer, int64 time, const MouseWheelDetails &, int touchIndex=0) |
| void | handleMagnifyGesture (MouseInputSource::InputSourceType type, Point< float > positionWithinPeer, int64 time, float scaleFactor, int touchIndex=0) |
| void | handleUserClosingWindow () |
| bool | handleDragMove (const DragInfo &) |
| bool | handleDragExit (const DragInfo &) |
| bool | handleDragDrop (const DragInfo &) |
| void | addScaleFactorListener (ScaleFactorListener *listenerToAdd) |
| void | removeScaleFactorListener (ScaleFactorListener *listenerToRemove) |
| virtual void | setHasChangedSinceSaved (bool) |
| void | setAppStyle (Style s) |
| Style | getAppStyle () const |
|
| void | createWindow () |
| bool | isUsingUpdateLayeredWindow () const |
| bool | hasTitleBar () const noexcept |
| void | updateShadower () |
| void | setIcon (const Image &newIcon) override |
| void | setMessageFilter () |
| void | handlePaintMessage () |
| void | performPaint (HDC dc, HRGN rgn, int regionType, PAINTSTRUCT &paintStruct) |
| void | doMouseEvent (Point< float > position, float pressure, float orientation=0.0f, ModifierKeys mods=ModifierKeys::currentModifiers) |
| StringArray | getAvailableRenderingEngines () override |
| int | getCurrentRenderingEngine () const override |
| void | setCurrentRenderingEngine (int index) override |
| bool | isTouchEvent () noexcept |
| void | doMouseMove (Point< float > position, bool isMouseDownEvent) |
| void | doMouseDown (Point< float > position, const WPARAM wParam) |
| void | doMouseUp (Point< float > position, const WPARAM wParam) |
| void | doCaptureChanged () |
| void | doMouseExit () |
| ComponentPeer * | findPeerUnderMouse (Point< float > &localPos) |
| void | doMouseWheel (const WPARAM wParam, const bool isVertical) |
| bool | doGestureEvent (LPARAM lParam) |
| LRESULT | doTouchEvent (const int numInputs, HTOUCHINPUT eventHandle) |
| bool | handleTouchInput (const TOUCHINPUT &touch, const bool isDown, const bool isUp, const float touchPressure=MouseInputSource::defaultPressure, const float orientation=0.0f) |
| bool | handlePointerInput (WPARAM wParam, LPARAM lParam, const bool isDown, const bool isUp) |
| TOUCHINPUT | emulateTouchEventFromPointer (POINT p, WPARAM wParam) |
| bool | handlePenInput (POINTER_PEN_INFO penInfo, Point< float > pos, const float pressure, bool isDown, bool isUp) |
| void | sendModifierKeyChangeIfNeeded () |
| bool | doKeyUp (const WPARAM key) |
| bool | doKeyDown (const WPARAM key) |
| bool | doKeyChar (int key, const LPARAM flags) |
| void | forwardMessageToParent (UINT message, WPARAM wParam, LPARAM lParam) const |
| bool | doAppCommand (const LPARAM lParam) |
| bool | isConstrainedNativeWindow () const |
| Rectangle< int > | getCurrentScaledBounds () const |
| LRESULT | handleSizeConstraining (RECT &r, const WPARAM wParam) |
| LRESULT | handlePositionChanging (WINDOWPOS &wp) |
| bool | updateCurrentMonitor () |
| bool | handlePositionChanged () |
| LRESULT | handleDPIChanging (int newDPI, RECT newRect) |
| void | handleAppActivation (const WPARAM wParam) |
| void | handlePowerBroadcast (WPARAM wParam) |
| void | handleLeftClickInNCArea (WPARAM wParam) |
| void | initialiseSysMenu (HMENU menu) const |
| void | doSettingChange () |
| Point< float > | getPointFromLocalLParam (LPARAM lParam) noexcept |
| Point< float > | getCurrentMousePos () noexcept |
| LRESULT | peerWindowProc (HWND h, UINT message, WPARAM wParam, LPARAM lParam) |
| bool | sendInputAttemptWhenModalMessage () |
| void | timerCallback () override |
| void | windowShouldDismissModals (HWND originator) |
| virtual | ~Timer () |
| void | startTimer (int intervalInMilliseconds) noexcept |
| void | startTimerHz (int timerFrequencyHz) noexcept |
| void | stopTimer () noexcept |
| bool | isTimerRunning () const noexcept |
| int | getTimerInterval () const noexcept |
| | Timer () noexcept |
| | Timer (const Timer &) noexcept |
| void juce::HWNDComponentPeer::dismissPendingTextInput |
( |
| ) |
|
|
inlineoverridevirtual |
If there's some kind of OS input-method in progress, this should dismiss it.
Overrides of this function should call closeInputMethodContext().
This function should not be called directly by Components - use refreshTextInputTarget instead.
Reimplemented from juce::ComponentPeer.
Returns the size of the window frame that's around this window.
Depending on the platform the border size may be invalid for a short transient after creating a new window. Hence the returned value must be checked using operator bool() and the contained value can be accessed using operator*() only if it is present.
Whether or not the window has a normal window frame depends on the flags that were set when the window was created by Component::addToDesktop()
Implements juce::ComponentPeer.
| void * juce::HWNDComponentPeer::getNativeHandle |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the raw handle to whatever kind of window is being used.
On windows, this is probably a HWND, on the mac, it's likely to be a WindowRef, but remember there's no guarantees what you'll get back.
Implements juce::ComponentPeer.
Moves and resizes the window.
If the native window is contained in another window, then the coordinates are relative to the parent window's origin, not the screen origin.
This should result in a callback to handleMovedOrResized().
Implements juce::ComponentPeer.