|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Public Member Functions | |
| LinuxComponentPeer (Component &comp, int windowStyleFlags, ::Window parentToAddTo) | |
| ::Window | getWindowHandle () const noexcept |
| void * | getNativeHandle () const override |
| Returns the raw handle to whatever kind of window is being used. | |
| void | forceSetBounds (const Rectangle< int > &correctedNewBounds, bool isNowFullScreen) |
| void | setBounds (const Rectangle< int > &newBounds, bool isNowFullScreen) override |
| Moves and resizes the window. | |
| Point< int > | getScreenPosition (bool physical) const |
| Rectangle< int > | getBounds () const override |
| Returns the current position and size of the window. | |
| OptionalBorderSize | getFrameSizeIfPresent () const override |
| Returns the size of the window frame that's around this window. | |
| BorderSize< int > | getFrameSize () const override |
| Returns the size of the window frame that's around this window. | |
| Point< float > | localToGlobal (Point< float > relativePosition) override |
| Converts a position relative to the top-left of this component to screen coordinates. | |
| Point< float > | globalToLocal (Point< float > screenPosition) override |
| Converts a screen coordinate to a position relative to the top-left of this component. | |
| StringArray | getAvailableRenderingEngines () override |
| void | setVisible (bool shouldBeVisible) override |
| Shows or hides the window. | |
| void | setTitle (const String &title) override |
| Changes the title of the window. | |
| void | setMinimised (bool shouldBeMinimised) override |
| Minimises the window. | |
| bool | isMinimised () const override |
| True if the window is currently minimised. | |
| void | setFullScreen (bool shouldBeFullScreen) override |
| Enable/disable fullscreen mode for the window. | |
| bool | isFullScreen () const override |
| True if the window is currently full-screen. | |
| bool | contains (Point< int > localPos, bool trueIfInAChildWindow) const override |
| Checks if a point is in the window. | |
| void | toFront (bool makeActive) override |
| Brings the window to the top, optionally also giving it keyboard focus. | |
| void | toBehind (ComponentPeer *other) override |
| Moves the window to be just behind another one. | |
| bool | isFocused () const override |
| True if the window has the keyboard focus. | |
| void | grabFocus () override |
| Tries to give the window keyboard focus. | |
| void | repaint (const Rectangle< int > &area) override |
| Invalidates a region of the window to be repainted asynchronously. | |
| void | performAnyPendingRepaintsNow () override |
| This can be called (from the message thread) to cause the immediate redrawing of any areas of this window that need repainting. | |
| void | setIcon (const Image &newIcon) override |
| Attempts to change the icon associated with this window. | |
| double | getPlatformScaleFactor () const noexcept override |
| On Windows and Linux this will return the OS scaling factor currently being applied to the native window. | |
| void | setAlpha (float) override |
| Changes the window's transparency. | |
| bool | setAlwaysOnTop (bool) override |
| Sets this window to either be always-on-top or normal. | |
| void | textInputRequired (Point< int >, TextInputTarget &) override |
| Tells the window that text input may be required at the given position. | |
| void | addOpenGLRepaintListener (Component *dummy) |
| void | removeOpenGLRepaintListener (Component *dummy) |
| void | repaintOpenGLContexts () |
| ::Window | getParentWindow () |
| void | setParentWindow (::Window newParent) |
| bool | isConstrainedNativeWindow () const |
| void | updateWindowBounds () |
| void | updateBorderSize () |
| bool | setWindowAssociation (::Window windowIn) |
| void | clearWindowAssociation () |
| void | startHostManagedResize (Point< int >, ResizableBorderComponent::Zone zone) override |
| Asks the window-manager to begin resizing this window, on platforms where this is useful (currently just Linux/X11). | |
| virtual Point< float > | localToGlobal (Point< float > relativePosition)=0 |
| Converts a position relative to the top-left of this component to screen coordinates. | |
| Point< int > | localToGlobal (Point< int > relativePosition) |
| Converts a position relative to the top-left of this component to screen coordinates. | |
| virtual Rectangle< int > | localToGlobal (const Rectangle< int > &relativePosition) |
| Converts a rectangle relative to the top-left of this component to screen coordinates. | |
| Rectangle< float > | localToGlobal (const Rectangle< float > &relativePosition) |
| Converts a rectangle relative to the top-left of this component to screen coordinates. | |
| virtual Point< float > | globalToLocal (Point< float > screenPosition)=0 |
| Converts a screen coordinate to a position relative to the top-left of this component. | |
| Point< int > | globalToLocal (Point< int > screenPosition) |
| Converts a screen coordinate to a position relative to the top-left of this component. | |
| virtual Rectangle< int > | globalToLocal (const Rectangle< int > &screenPosition) |
| Converts a screen area to a position relative to the top-left of this component. | |
| Rectangle< float > | globalToLocal (const Rectangle< float > &screenPosition) |
| Converts a screen area to a position relative to the top-left of this component. | |
Public Member Functions inherited from juce::ComponentPeer | |
| ComponentPeer (Component &component, int styleFlags) | |
| Creates a peer. | |
| ~ComponentPeer () override | |
| Destructor. | |
| Component & | getComponent () noexcept |
| Returns the component being represented by this peer. | |
| int | getStyleFlags () const noexcept |
| Returns the set of style flags that were set when the window was created. | |
| uint32 | getUniqueID () const noexcept |
| Returns a unique ID for this peer. | |
| virtual bool | setDocumentEditedStatus (bool edited) |
| If this type of window is capable of indicating that the document in it has been edited, then this changes its status. | |
| virtual void | setRepresentedFile (const File &) |
| If this type of window is capable of indicating that it represents a file, then this lets you set the file. | |
| void | updateBounds () |
| Updates the peer's bounds to match its component. | |
| Point< int > | localToGlobal (Point< int > relativePosition) |
| Converts a position relative to the top-left of this component to screen coordinates. | |
| Point< int > | globalToLocal (Point< int > screenPosition) |
| Converts a screen coordinate to a position relative to the top-left of this component. | |
| Rectangle< float > | localToGlobal (const Rectangle< float > &relativePosition) |
| Converts a rectangle relative to the top-left of this component to screen coordinates. | |
| Rectangle< float > | globalToLocal (const Rectangle< float > &screenPosition) |
| Converts a screen area to a position relative to the top-left of this component. | |
| Rectangle< int > | getAreaCoveredBy (const Component &subComponent) const |
| Returns the area in peer coordinates that is covered by the given sub-comp (which may be at any depth) | |
| virtual bool | isKioskMode () const |
| True if the window is in kiosk-mode. | |
| void | setNonFullScreenBounds (const Rectangle< int > &newBounds) noexcept |
| Sets the size to restore to if fullscreen mode is turned off. | |
| const Rectangle< int > & | getNonFullScreenBounds () const noexcept |
| Returns the size to restore to if fullscreen mode is turned off. | |
| void | setConstrainer (ComponentBoundsConstrainer *newConstrainer) noexcept |
| Sets a constrainer to use if the peer can resize itself. | |
| ComponentBoundsConstrainer * | getConstrainer () const noexcept |
| Returns the current constrainer, if one has been set. | |
| void | handleMovedOrResized () |
| This is called when the window's bounds change. | |
| virtual void | handleScreenSizeChange () |
| This is called if the screen resolution changes. | |
| void | handlePaint (LowLevelGraphicsContext &contextToPaintTo) |
| This is called to repaint the component into the given context. | |
| void | handleBroughtToFront () |
| Called when the window is brought to the front, either by the OS or by a call to toFront(). | |
| void | handleFocusGain () |
| Called when the window gains keyboard focus. | |
| void | handleFocusLoss () |
| Called when the window loses keyboard focus. | |
| Component * | getLastFocusedSubcomponent () const noexcept |
| bool | handleKeyPress (int keyCode, juce_wchar textCharacter) |
| Called when a key is pressed. | |
| bool | handleKeyPress (const KeyPress &key) |
| Called when a key is pressed. | |
| bool | handleKeyUpOrDown (bool isKeyDown) |
| Called whenever a key is pressed or released. | |
| void | handleModifierKeysChange () |
| Called whenever a modifier key is pressed or released. | |
| virtual void | closeInputMethodContext () |
| If there's a currently active input-method context - i.e. | |
| void | refreshTextInputTarget () |
| Alerts the peer that the current text input target has changed somehow. | |
| TextInputTarget * | findCurrentTextInputTarget () |
| Returns the currently focused TextInputTarget, or null if none is found. | |
| 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 &) |
| virtual int | getCurrentRenderingEngine () const |
| virtual void | setCurrentRenderingEngine (int index) |
| void | addScaleFactorListener (ScaleFactorListener *listenerToAdd) |
| Adds a scale factor listener. | |
| void | removeScaleFactorListener (ScaleFactorListener *listenerToRemove) |
| Removes a scale factor listener. | |
| void | addVBlankListener (VBlankListener *listenerToAdd) |
| Adds a VBlankListener. | |
| void | removeVBlankListener (VBlankListener *listenerToRemove) |
| Removes a VBlankListener. | |
| virtual void | setHasChangedSinceSaved (bool) |
| On platforms that support it, this will update the window's titlebar in some way to indicate that the window's document needs saving. | |
| void | setAppStyle (Style s) |
| On operating systems that support it, this will update the style of this peer as requested. | |
| Style | getAppStyle () const |
| Returns the style requested for this app. | |
Public Attributes | |
| bool | focused |
Static Public Attributes | |
| static bool | isActiveApplication |
Definition at line 30 of file juce_Windowing_linux.cpp.
| juce::LinuxComponentPeer::LinuxComponentPeer | ( | Component & | comp, |
| int | windowStyleFlags, | ||
| ::Window | parentToAddTo | ||
| ) |
Definition at line 34 of file juce_Windowing_linux.cpp.
|
override |
Definition at line 64 of file juce_Windowing_linux.cpp.
Definition at line 323 of file juce_Windowing_linux.cpp.
| void juce::LinuxComponentPeer::clearWindowAssociation | ( | ) |
Definition at line 400 of file juce_Windowing_linux.cpp.
|
overridevirtual |
Checks if a point is in the window.
The position is relative to the top-left of this window, in unscaled peer coordinates. If trueIfInAChildWindow is false, then this returns false if the point is actually inside a child of this window.
Implements juce::ComponentPeer.
Definition at line 227 of file juce_Windowing_linux.cpp.
| void juce::LinuxComponentPeer::forceSetBounds | ( | const Rectangle< int > & | correctedNewBounds, |
| bool | isNowFullScreen | ||
| ) |
Definition at line 93 of file juce_Windowing_linux.cpp.
|
overridevirtual |
Implements juce::ComponentPeer.
Definition at line 170 of file juce_Windowing_linux.cpp.
Returns the current position and size of 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.
Implements juce::ComponentPeer.
Definition at line 140 of file juce_Windowing_linux.cpp.
|
overridevirtual |
Returns the size of the window frame that's around this window.
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.
Definition at line 150 of file juce_Windowing_linux.cpp.
|
overridevirtual |
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.
Definition at line 145 of file juce_Windowing_linux.cpp.
|
overridevirtual |
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.
Definition at line 87 of file juce_Windowing_linux.cpp.
| ::Window juce::LinuxComponentPeer::getParentWindow | ( | ) |
Definition at line 342 of file juce_Windowing_linux.cpp.
|
overridevirtualnoexcept |
On Windows and Linux this will return the OS scaling factor currently being applied to the native window.
This is used to convert between physical and logical pixels at the OS API level and you shouldn't need to use it in your own code unless you are dealing directly with the native window.
Reimplemented from juce::ComponentPeer.
Definition at line 313 of file juce_Windowing_linux.cpp.
Definition at line 124 of file juce_Windowing_linux.cpp.
|
noexcept |
Definition at line 81 of file juce_Windowing_linux.cpp.
Converts a screen area to a position relative to the top-left of this component.
Definition at line 225 of file juce_ComponentPeer.cpp.
|
virtual |
Converts a screen area to a position relative to the top-left of this component.
Reimplemented from juce::ComponentPeer.
Definition at line 219 of file juce_ComponentPeer.cpp.
|
overridevirtual |
Converts a screen coordinate to a position relative to the top-left of this component.
Implements juce::ComponentPeer.
Definition at line 161 of file juce_Windowing_linux.cpp.
Converts a screen coordinate to a position relative to the top-left of this component.
Implements juce::ComponentPeer.
Converts a screen coordinate to a position relative to the top-left of this component.
Definition at line 213 of file juce_ComponentPeer.cpp.
|
overridevirtual |
Tries to give the window keyboard focus.
Implements juce::ComponentPeer.
Definition at line 289 of file juce_Windowing_linux.cpp.
| bool juce::LinuxComponentPeer::isConstrainedNativeWindow | ( | ) | const |
Definition at line 346 of file juce_Windowing_linux.cpp.
|
overridevirtual |
True if the window has the keyboard focus.
Implements juce::ComponentPeer.
Definition at line 284 of file juce_Windowing_linux.cpp.
|
overridevirtual |
True if the window is currently full-screen.
Implements juce::ComponentPeer.
Definition at line 222 of file juce_Windowing_linux.cpp.
|
overridevirtual |
True if the window is currently minimised.
Implements juce::ComponentPeer.
Definition at line 193 of file juce_Windowing_linux.cpp.
| Rectangle< float > juce::ComponentPeer::localToGlobal | ( | const Rectangle< float > & | relativePosition | ) |
Converts a rectangle relative to the top-left of this component to screen coordinates.
Definition at line 222 of file juce_ComponentPeer.cpp.
|
virtual |
Converts a rectangle relative to the top-left of this component to screen coordinates.
Reimplemented from juce::ComponentPeer.
Definition at line 216 of file juce_ComponentPeer.cpp.
|
overridevirtual |
Converts a position relative to the top-left of this component to screen coordinates.
Implements juce::ComponentPeer.
Definition at line 156 of file juce_Windowing_linux.cpp.
|
virtual |
Converts a position relative to the top-left of this component to screen coordinates.
Implements juce::ComponentPeer.
Converts a position relative to the top-left of this component to screen coordinates.
Definition at line 210 of file juce_ComponentPeer.cpp.
|
overridevirtual |
This can be called (from the message thread) to cause the immediate redrawing of any areas of this window that need repainting.
You shouldn't ever really need to use this, it's mainly for special purposes like supporting audio plugins where the host's event loop is out of our control.
Implements juce::ComponentPeer.
Definition at line 302 of file juce_Windowing_linux.cpp.
Definition at line 329 of file juce_Windowing_linux.cpp.
Invalidates a region of the window to be repainted asynchronously.
Implements juce::ComponentPeer.
Definition at line 296 of file juce_Windowing_linux.cpp.
| void juce::LinuxComponentPeer::repaintOpenGLContexts | ( | ) |
Definition at line 335 of file juce_Windowing_linux.cpp.
Changes the window's transparency.
Implements juce::ComponentPeer.
Definition at line 318 of file juce_Windowing_linux.cpp.
Sets this window to either be always-on-top or normal.
Some kinds of window might not be able to do this, so should return false.
Implements juce::ComponentPeer.
Definition at line 319 of file juce_Windowing_linux.cpp.
|
overridevirtual |
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.
Definition at line 115 of file juce_Windowing_linux.cpp.
Enable/disable fullscreen mode for the window.
Implements juce::ComponentPeer.
Definition at line 198 of file juce_Windowing_linux.cpp.
Attempts to change the icon associated with this window.
Implements juce::ComponentPeer.
Definition at line 308 of file juce_Windowing_linux.cpp.
Minimises the window.
Implements juce::ComponentPeer.
Definition at line 185 of file juce_Windowing_linux.cpp.
| void juce::LinuxComponentPeer::setParentWindow | ( | ::Window | newParent | ) |
Definition at line 343 of file juce_Windowing_linux.cpp.
Changes the title of the window.
Implements juce::ComponentPeer.
Definition at line 180 of file juce_Windowing_linux.cpp.
Shows or hides the window.
Implements juce::ComponentPeer.
Definition at line 175 of file juce_Windowing_linux.cpp.
| bool juce::LinuxComponentPeer::setWindowAssociation | ( | ::Window | windowIn | ) |
Definition at line 393 of file juce_Windowing_linux.cpp.
|
overridevirtual |
Asks the window-manager to begin resizing this window, on platforms where this is useful (currently just Linux/X11).
| mouseDownPosition | The position of the mouse event that started the resize in unscaled peer coordinates |
| zone | The edges of the window that may be moved during the resize |
Reimplemented from juce::ComponentPeer.
Definition at line 402 of file juce_Windowing_linux.cpp.
|
overridevirtual |
Tells the window that text input may be required at the given position.
This may cause things like a virtual on-screen keyboard to appear, depending on the OS.
This function should not be called directly by Components - use refreshTextInputTarget instead.
Implements juce::ComponentPeer.
Definition at line 320 of file juce_Windowing_linux.cpp.
|
overridevirtual |
Moves the window to be just behind another one.
Implements juce::ComponentPeer.
Definition at line 268 of file juce_Windowing_linux.cpp.
Brings the window to the top, optionally also giving it keyboard focus.
Implements juce::ComponentPeer.
Definition at line 256 of file juce_Windowing_linux.cpp.
| void juce::LinuxComponentPeer::updateBorderSize | ( | ) |
Definition at line 374 of file juce_Windowing_linux.cpp.
| void juce::LinuxComponentPeer::updateWindowBounds | ( | ) |
Definition at line 353 of file juce_Windowing_linux.cpp.
| bool juce::LinuxComponentPeer::focused |
Definition at line 409 of file juce_Windowing_linux.cpp.
|
static |
Definition at line 408 of file juce_Windowing_linux.cpp.