openshot-audio
0.1.6
|
Public Member Functions | |
LinuxComponentPeer (Component &comp, const int windowStyleFlags, Window parentToAddTo) | |
~LinuxComponentPeer () | |
void * | getNativeHandle () const override |
void | setVisible (bool shouldBeVisible) override |
void | setTitle (const String &title) override |
void | setBounds (const Rectangle< int > &newBounds, bool isNowFullScreen) override |
Rectangle< int > | getBounds () const override |
Point< float > | localToGlobal (Point< float > relativePosition) override |
Point< float > | globalToLocal (Point< float > screenPosition) override |
void | setAlpha (float) override |
StringArray | getAvailableRenderingEngines () override |
void | setMinimised (bool shouldBeMinimised) override |
bool | isMinimised () const override |
void | setFullScreen (const bool shouldBeFullScreen) override |
bool | isFullScreen () const override |
bool | isChildWindowOf (Window possibleParent) const |
bool | isFrontWindow () const |
bool | contains (Point< int > localPos, bool trueIfInAChildWindow) const override |
BorderSize< int > | getFrameSize () const override |
bool | setAlwaysOnTop (bool) 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 | repaint (const Rectangle< int > &area) override |
void | performAnyPendingRepaintsNow () override |
void | setIcon (const Image &newIcon) override |
void | deleteIconPixmaps () |
void | handleWindowMessage (XEvent &event) |
void | handleKeyPressEvent (XKeyEvent &keyEvent) |
void | handleKeyReleaseEvent (const XKeyEvent &keyEvent) |
template<typename EventType > | |
Point< float > | getMousePos (const EventType &e) noexcept |
void | handleWheelEvent (const XButtonPressedEvent &buttonPressEvent, const float amount) |
void | handleButtonPressEvent (const XButtonPressedEvent &buttonPressEvent, int buttonModifierFlag) |
void | handleButtonPressEvent (const XButtonPressedEvent &buttonPressEvent) |
void | handleButtonReleaseEvent (const XButtonReleasedEvent &buttonRelEvent) |
void | handleMotionNotifyEvent (const XPointerMovedEvent &movedEvent) |
void | handleEnterNotifyEvent (const XEnterWindowEvent &enterEvent) |
void | handleLeaveNotifyEvent (const XLeaveWindowEvent &leaveEvent) |
void | handleFocusInEvent () |
void | handleFocusOutEvent () |
void | handleExposeEvent (XExposeEvent &exposeEvent) |
void | handleConfigureNotifyEvent (XConfigureEvent &confEvent) |
void | handleReparentNotifyEvent () |
void | handleGravityNotify () |
void | handleMappingNotify (XMappingEvent &mappingEvent) |
void | handleClientMessageEvent (XClientMessageEvent &clientMsg, XEvent &event) |
bool | externalDragTextInit (const String &text) |
bool | externalDragFileInit (const StringArray &files, bool) |
void | showMouseCursor (Cursor cursor) noexcept |
double | getCurrentScale () noexcept |
void | addOpenGLRepaintListener (Component *dummy) |
void | removeOpenGLRepaintListener (Component *dummy) |
void | repaintOpenGLContexts () |
![]() | |
ComponentPeer (Component &component, int styleFlags) | |
virtual | ~ComponentPeer () |
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) |
virtual Rectangle< int > | localToGlobal (const Rectangle< int > &relativePosition) |
virtual Rectangle< int > | globalToLocal (const Rectangle< int > &screenPosition) |
Rectangle< int > | getAreaCoveredBy (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 | handleKeyUpOrDown (bool isKeyDown) |
void | handleModifierKeysChange () |
virtual void | dismissPendingTextInput () |
TextInputTarget * | findCurrentTextInputTarget () |
void | handleMouseEvent (int touchIndex, Point< float > positionWithinPeer, ModifierKeys newMods, int64 time) |
void | handleMouseWheel (int touchIndex, Point< float > positionWithinPeer, int64 time, const MouseWheelDetails &) |
void | handleMagnifyGesture (int touchIndex, Point< float > positionWithinPeer, int64 time, float scaleFactor) |
void | handleUserClosingWindow () |
bool | handleDragMove (const DragInfo &) |
bool | handleDragExit (const DragInfo &) |
bool | handleDragDrop (const DragInfo &) |
virtual int | getCurrentRenderingEngine () const |
virtual void | setCurrentRenderingEngine (int index) |
Static Public Member Functions | |
static void | windowMessageReceive (XEvent &event) |
static LinuxComponentPeer * | getPeerFor (Window windowHandle) noexcept |
static bool | isKeyReleasePartOfAutoRepeat (const XKeyEvent &keyReleaseEvent) |
![]() | |
static int | getNumPeers () noexcept |
static ComponentPeer * | getPeer (int index) noexcept |
static ComponentPeer * | getPeerFor (const Component *) noexcept |
static bool | isValidPeer (const ComponentPeer *peer) noexcept |
Public Attributes | |
bool | dontRepaint |
Static Public Attributes | |
static ModifierKeys | currentModifiers |
static bool | isActiveApplication = false |
Friends | |
class | LinuxRepaintManager |
Additional Inherited Members | |
![]() | |
enum | StyleFlags { windowAppearsOnTaskbar = (1 << 0), windowIsTemporary = (1 << 1), windowIgnoresMouseClicks = (1 << 2), windowHasTitleBar = (1 << 3), windowIsResizable = (1 << 4), windowHasMinimiseButton = (1 << 5), windowHasMaximiseButton = (1 << 6), windowHasCloseButton = (1 << 7), windowHasDropShadow = (1 << 8), windowRepaintedExplictly = (1 << 9), windowIgnoresKeyPresses = (1 << 10), windowIsSemiTransparent = (1 << 31) } |
![]() | |
Component & | component |
const int | styleFlags |
Rectangle< int > | lastNonFullscreenBounds |
ComponentBoundsConstrainer * | constrainer |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
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 ComponentPeer.
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements ComponentPeer.
|
inlineoverridevirtual |
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 ComponentPeer.
|
inlinenoexcept |
|
inlineoverridevirtual |
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 ComponentPeer.
|
inlinenoexcept |
|
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 ComponentPeer.
|
inlinestaticnoexcept |
|
inlineoverridevirtual |
Converts a screen coordinate to a position relative to the top-left of this component.
Implements ComponentPeer.
|
inlineoverridevirtual |
Tries to give the window keyboard focus.
Implements ComponentPeer.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
True if the window has the keyboard focus.
Implements ComponentPeer.
|
inline |
|
inlineoverridevirtual |
True if the window is currently full-screen.
Implements ComponentPeer.
|
inlinestatic |
|
inlineoverridevirtual |
True if the window is currently minimised.
Implements ComponentPeer.
|
inlineoverridevirtual |
Converts a position relative to the top-left of this component to screen coordinates.
Implements ComponentPeer.
|
inlineoverridevirtual |
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 ComponentPeer.
|
inline |
|
inlineoverridevirtual |
Invalidates a region of the window to be repainted asynchronously.
Implements ComponentPeer.
|
inline |
|
inlineoverridevirtual |
Changes the window's transparency.
Implements ComponentPeer.
|
inlineoverridevirtual |
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 ComponentPeer.
|
inlineoverridevirtual |
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 ComponentPeer.
|
inlineoverridevirtual |
Enable/disable fullscreen mode for the window.
Implements ComponentPeer.
|
inlineoverridevirtual |
Attempts to change the icon associated with this window.
Implements ComponentPeer.
|
inlineoverridevirtual |
Minimises the window.
Implements ComponentPeer.
|
inlineoverridevirtual |
Changes the title of the window.
Implements ComponentPeer.
|
inlineoverridevirtual |
Shows or hides the window.
Implements ComponentPeer.
|
inlinenoexcept |
|
inlineoverridevirtual |
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.
Implements ComponentPeer.
|
inlineoverridevirtual |
Moves the window to be just behind another one.
Implements ComponentPeer.
|
inlineoverridevirtual |
Brings the window to the top, optionally also giving it focus.
Implements ComponentPeer.
|
inlinestatic |
|
friend |
|
static |
bool LinuxComponentPeer::dontRepaint |
|
static |