openshot-audio  0.1.6
Public Member Functions | List of all members
TextPropertyComponent::LabelComp Class Reference
Inheritance diagram for TextPropertyComponent::LabelComp:
FileDragAndDropTarget

Public Member Functions

 LabelComp (TextPropertyComponent &tpc, const int charLimit, const bool multiline)
 
bool isInterestedInFileDrag (const StringArray &) override
 
void filesDropped (const StringArray &files, int, int) override
 
TextEditorcreateEditorComponent () override
 
void textWasEdited () override
 
- Public Member Functions inherited from FileDragAndDropTarget
virtual ~FileDragAndDropTarget ()
 
virtual void fileDragEnter (const StringArray &files, int x, int y)
 
virtual void fileDragMove (const StringArray &files, int x, int y)
 
virtual void fileDragExit (const StringArray &files)
 

Constructor & Destructor Documentation

TextPropertyComponent::LabelComp::LabelComp ( TextPropertyComponent tpc,
const int  charLimit,
const bool  multiline 
)
inline

Member Function Documentation

TextEditor* TextPropertyComponent::LabelComp::createEditorComponent ( )
inlineoverride
void TextPropertyComponent::LabelComp::filesDropped ( const StringArray files,
int  x,
int  y 
)
inlineoverridevirtual

Callback to indicate that the user has dropped the files onto this component.

When the user drops the files, this get called, and you can use the files in whatever way is appropriate.

Note that after this is called, the fileDragExit method may not be called, so you should clean up in here if there's anything you need to do when the drag finishes.

Parameters
filesthe set of (absolute) pathnames of the files that the user is dragging
xthe mouse x position, relative to this component
ythe mouse y position, relative to this component

Implements FileDragAndDropTarget.

bool TextPropertyComponent::LabelComp::isInterestedInFileDrag ( const StringArray files)
inlineoverridevirtual

Callback to check whether this target is interested in the set of files being offered.

Note that this will be called repeatedly when the user is dragging the mouse around over your component, so don't do anything time-consuming in here, like opening the files to have a look inside them!

Parameters
filesthe set of (absolute) pathnames of the files that the user is dragging
Returns
true if this component wants to receive the other callbacks regarging this type of object; if it returns false, no other callbacks will be made.

Implements FileDragAndDropTarget.

void TextPropertyComponent::LabelComp::textWasEdited ( )
inlineoverride

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