openshot-audio  0.1.5
Instance Methods | Class Methods | Public Attributes | Static Public Attributes | List of all members
juce::UIViewComponentPeer Class Reference
Inheritance diagram for juce::UIViewComponentPeer:
juce::ComponentPeer juce::FocusChangeListener

Instance Methods

() - UIViewComponentPeer
 
() - ~UIViewComponentPeer
 
(void *) - getNativeHandle
 
(void) - setVisible
 
(void) - setTitle
 
(void) - setBounds
 
(Rectangle< int >) - getBounds
 
(Rectangle< int >) - getBounds
 
(Point< float >) - localToGlobal
 
(Point< float >) - globalToLocal
 
(void) - setAlpha
 
(void) - setMinimised
 
(bool) - isMinimised
 
(void) - setFullScreen
 
(bool) - isFullScreen
 
(bool) - contains
 
(BorderSize< int >) - getFrameSize
 
(bool) - setAlwaysOnTop
 
(void) - toFront
 
(void) - toBehind
 
(void) - setIcon
 
(StringArray- getAvailableRenderingEngines
 
(void) - drawRect
 
(bool) - canBecomeKeyWindow
 
(void) - viewFocusGain
 
(void) - viewFocusLoss
 
(bool) - isFocused
 
(void) - grabFocus
 
(void) - textInputRequired
 
(BOOL) - textViewReplaceCharacters
 
(void) - updateHiddenTextContent
 
(void) - globalFocusChanged
 
(void) - updateTransformAndScreenBounds
 
(void) - handleTouches
 
(void) - repaint
 
(void) - performAnyPendingRepaintsNow
 
- Instance Methods inherited from juce::ComponentPeer
 ComponentPeer (Component &component, int styleFlags)
 
virtual ~ComponentPeer ()
 
ComponentgetComponent () 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
 
ComponentBoundsConstrainergetConstrainer () const noexcept
 
void handleMovedOrResized ()
 
virtual void handleScreenSizeChange ()
 
void handlePaint (LowLevelGraphicsContext &contextToPaintTo)
 
void handleBroughtToFront ()
 
void handleFocusGain ()
 
void handleFocusLoss ()
 
ComponentgetLastFocusedSubcomponent () const noexcept
 
bool handleKeyPress (int keyCode, juce_wchar textCharacter)
 
bool handleKeyUpOrDown (bool isKeyDown)
 
void handleModifierKeysChange ()
 
virtual void dismissPendingTextInput ()
 
TextInputTargetfindCurrentTextInputTarget ()
 
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)
 
- Instance Methods inherited from juce::FocusChangeListener
virtual ~FocusChangeListener ()
 

Class Methods

(static int64+ getMouseTime
 
(static Rectangle< int >) + rotatedScreenPosToReal
 
(static Rectangle< int >) + realScreenPosToRotated
 
- Class Methods inherited from juce::ComponentPeer
static int getNumPeers () noexcept
 
static ComponentPeergetPeer (int index) noexcept
 
static ComponentPeergetPeerFor (const Component *) noexcept
 
static bool isValidPeer (const ComponentPeer *peer) noexcept
 

Public Attributes

UIWindow * window
 
JuceUIViewview
 
JuceUIViewControllercontroller
 
bool isSharedWindow
 
bool fullScreen
 
bool insideDrawRect
 
MultiTouchMapper< UITouch * > currentTouches
 

Static Public Attributes

static ModifierKeys currentModifiers
 

Additional Inherited Members

- Public Types inherited from juce::ComponentPeer
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)
}
 
- Protected Attributes inherited from juce::ComponentPeer
Componentcomponent
 
const int styleFlags
 
Rectangle< int > lastNonFullscreenBounds
 
ComponentBoundsConstrainerconstrainer
 

Constructor & Destructor Documentation

◆ UIViewComponentPeer()

- UIViewComponentPeer: (Component &) 
(int)  windowStyleFlags
(UIView *)  viewToAttachTo 

◆ ~UIViewComponentPeer()

- UIViewComponentPeer:

Method Documentation

◆ canBecomeKeyWindow()

- (bool) UIViewComponentPeer:

◆ contains()

- (bool) UIViewComponentPeer: (Point< int >)  localPos
(bool)  trueIfInAChildWindow 
const

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.

◆ drawRect()

- (void) UIViewComponentPeer: (CGRect) 

◆ getAvailableRenderingEngines()

- (StringArray) UIViewComponentPeer:

Implements juce::ComponentPeer.

◆ getBounds() [1/2]

- (Rectangle<int>) UIViewComponentPeer: const

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.

◆ getBounds() [2/2]

- (Rectangle<int>) UIViewComponentPeer: (bool)  global const

◆ getFrameSize()

- (BorderSize<int>) UIViewComponentPeer: const

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.

◆ getMouseTime()

+ (static int64) UIViewComponentPeer: (UIEvent *)  e

◆ getNativeHandle()

- (void*) UIViewComponentPeer: const

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.

◆ globalFocusChanged()

- (void) UIViewComponentPeer: (Component *)  focusedComponent

Callback to indicate that the currently focused component has changed.

Implements juce::FocusChangeListener.

◆ globalToLocal()

- (Point<float>) UIViewComponentPeer: (Point< float >)  screenPosition

Converts a screen coordinate to a position relative to the top-left of this component.

Implements juce::ComponentPeer.

◆ grabFocus()

- (void) UIViewComponentPeer:

Tries to give the window keyboard focus.

Implements juce::ComponentPeer.

◆ handleTouches()

- (void) UIViewComponentPeer: (UIEvent *) 
(bool)  isDown
(bool)  isUp
(bool)  isCancel 

◆ isFocused()

- (bool) UIViewComponentPeer: const

True if the window has the keyboard focus.

Implements juce::ComponentPeer.

◆ isFullScreen()

- (bool) UIViewComponentPeer: const

True if the window is currently full-screen.

Implements juce::ComponentPeer.

◆ isMinimised()

- (bool) UIViewComponentPeer: const

True if the window is currently minimised.

Implements juce::ComponentPeer.

◆ localToGlobal()

- (Point<float>) UIViewComponentPeer: (Point< float >)  relativePosition

Converts a position relative to the top-left of this component to screen coordinates.

Implements juce::ComponentPeer.

◆ performAnyPendingRepaintsNow()

- (void) UIViewComponentPeer:

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.

◆ realScreenPosToRotated()

+ (static Rectangle<int>) UIViewComponentPeer: (const Rectangle< int > &)  r

◆ repaint()

- (void) UIViewComponentPeer: (const Rectangle< int > &)  area

Invalidates a region of the window to be repainted asynchronously.

Implements juce::ComponentPeer.

◆ rotatedScreenPosToReal()

+ (static Rectangle<int>) UIViewComponentPeer: (const Rectangle< int > &)  r

◆ setAlpha()

- (void) UIViewComponentPeer: (float)  newAlpha

Changes the window's transparency.

Implements juce::ComponentPeer.

◆ setAlwaysOnTop()

- (bool) UIViewComponentPeer: (bool)  alwaysOnTop

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.

◆ setBounds()

- (void) UIViewComponentPeer: (const Rectangle< int > &)  newBounds
(bool)  isNowFullScreen 

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.

◆ setFullScreen()

- (void) UIViewComponentPeer: (bool)  shouldBeFullScreen

Enable/disable fullscreen mode for the window.

Implements juce::ComponentPeer.

◆ setIcon()

- (void) UIViewComponentPeer: (const Image &)  newIcon

Attempts to change the icon associated with this window.

Implements juce::ComponentPeer.

◆ setMinimised()

- (void) UIViewComponentPeer: (bool)  shouldBeMinimised

Minimises the window.

Implements juce::ComponentPeer.

◆ setTitle()

- (void) UIViewComponentPeer: (const String &)  title

Changes the title of the window.

Implements juce::ComponentPeer.

◆ setVisible()

- (void) UIViewComponentPeer: (bool)  shouldBeVisible

Shows or hides the window.

Implements juce::ComponentPeer.

◆ textInputRequired()

- (void) UIViewComponentPeer: (Point< int >)  position
(TextInputTarget &)   

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 juce::ComponentPeer.

◆ textViewReplaceCharacters()

- (BOOL) UIViewComponentPeer: (Range< int >) 
(const String &)   

◆ toBehind()

- (void) UIViewComponentPeer: (ComponentPeer *)  other

Moves the window to be just behind another one.

Implements juce::ComponentPeer.

◆ toFront()

- (void) UIViewComponentPeer: (bool)  makeActive

Brings the window to the top, optionally also giving it focus.

Implements juce::ComponentPeer.

◆ updateHiddenTextContent()

- (void) UIViewComponentPeer: (TextInputTarget *) 

◆ updateTransformAndScreenBounds()

- (void) UIViewComponentPeer:

◆ viewFocusGain()

- (void) UIViewComponentPeer:

◆ viewFocusLoss()

- (void) UIViewComponentPeer:

Member Data Documentation

◆ controller

- (JuceUIViewController*) UIViewComponentPeer:

◆ currentModifiers

+ (ModifierKeys) UIViewComponentPeer:
static

◆ currentTouches

- (MultiTouchMapper<UITouch*>) UIViewComponentPeer:

◆ fullScreen

- (bool) UIViewComponentPeer:

◆ insideDrawRect

- (bool) UIViewComponentPeer:

◆ isSharedWindow

- (bool) UIViewComponentPeer:

◆ view

- (JuceUIView*) UIViewComponentPeer:

◆ window

- (UIWindow*) UIViewComponentPeer:

The documentation for this class was generated from the following file: