TextEditor* TextPropertyComponent::LabelComp::createEditorComponent |
( |
| ) |
|
|
inlineoverride |
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
-
files | the set of (absolute) pathnames of the files that the user is dragging |
x | the mouse x position, relative to this component |
y | the 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
-
files | the 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: