openshot-audio  0.1.2
Public Member Functions | Public Attributes | List of all members
NSViewAttachment Class Reference
Inheritance diagram for NSViewAttachment:
ReferenceCountedObject ComponentMovementWatcher NSViewResizeWatcher ComponentListener

Public Member Functions

 NSViewAttachment (NSView *const v, Component &comp)
 
 ~NSViewAttachment ()
 
void componentMovedOrResized (Component &comp, bool wasMoved, bool wasResized) override
 
void componentMovedOrResized (bool, bool) override
 
void componentPeerChanged () override
 
void componentVisibilityChanged () override
 
void viewResized () override
 
- Public Member Functions inherited from ReferenceCountedObject
void incReferenceCount () noexcept
 
void decReferenceCount () noexcept
 
bool decReferenceCountWithoutDeleting () noexcept
 
int getReferenceCount () const noexcept
 
- Public Member Functions inherited from ComponentMovementWatcher
 ComponentMovementWatcher (Component *component)
 
 ~ComponentMovementWatcher ()
 
ComponentgetComponent () const noexcept
 
void componentParentHierarchyChanged (Component &) override
 
void componentBeingDeleted (Component &) override
 
void componentVisibilityChanged (Component &) override
 
- Public Member Functions inherited from ComponentListener
virtual ~ComponentListener ()
 
virtual void componentBroughtToFront (Component &component)
 
virtual void componentChildrenChanged (Component &component)
 
virtual void componentNameChanged (Component &component)
 

Public Attributes

NSView *const view
 

Additional Inherited Members

- Protected Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject ()
 
virtual ~ReferenceCountedObject ()
 
void resetReferenceCount () noexcept
 

Constructor & Destructor Documentation

◆ NSViewAttachment()

NSViewAttachment::NSViewAttachment ( NSView *const  v,
Component comp 
)
inline

◆ ~NSViewAttachment()

NSViewAttachment::~NSViewAttachment ( )
inline

Member Function Documentation

◆ componentMovedOrResized() [1/2]

void NSViewAttachment::componentMovedOrResized ( Component component,
bool  wasMoved,
bool  wasResized 
)
inlineoverridevirtual

Called when the component's position or size changes.

Parameters
componentthe component that was moved or resized
wasMovedtrue if the component's top-left corner has just moved
wasResizedtrue if the component's width or height has just changed
See also
Component::setBounds, Component::resized, Component::moved

Reimplemented from ComponentMovementWatcher.

◆ componentMovedOrResized() [2/2]

void NSViewAttachment::componentMovedOrResized ( bool  wasMoved,
bool  wasResized 
)
inlineoverridevirtual

This callback happens when the component that is being watched is moved relative to its top-level peer window, or when it is resized.

Implements ComponentMovementWatcher.

◆ componentPeerChanged()

void NSViewAttachment::componentPeerChanged ( )
inlineoverridevirtual

This callback happens when the component's top-level peer is changed.

Implements ComponentMovementWatcher.

◆ componentVisibilityChanged()

void NSViewAttachment::componentVisibilityChanged ( )
inlineoverridevirtual

This callback happens when the component's visibility state changes, possibly due to one of its parents being made visible or invisible.

Implements ComponentMovementWatcher.

◆ viewResized()

void NSViewAttachment::viewResized ( )
inlineoverridevirtual

Implements NSViewResizeWatcher.

Member Data Documentation

◆ view

NSView* const NSViewAttachment::view

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