Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBWidgetEventFileDrop Class Reference

TBWidgetEventFileDrop is a event of type EVENT_TYPE_FILE_DROP. More...

#include <tb_widgets.h>

Inheritance diagram for tb::TBWidgetEventFileDrop:
tb::TBWidgetEvent tb::TBTypedObject

Public Member Functions

 TBOBJECT_SUBCLASS (TBWidgetEventFileDrop, TBWidgetEvent)
 
- Public Member Functions inherited from tb::TBWidgetEvent
 TBOBJECT_SUBCLASS (TBWidgetEvent, TBTypedObject)
 
 TBWidgetEvent (EVENT_TYPE type)
 
 TBWidgetEvent (EVENT_TYPE type, int x, int y, bool touch, MODIFIER_KEYS modifierkeys=TB_MODIFIER_NONE)
 
int GetCountCycle (int max)
 The count value may be 1 to infinity. More...
 
bool IsPointerEvent () const
 
bool IsKeyEvent () const
 
- Public Member Functions inherited from tb::TBTypedObject
virtual bool IsOfTypeId (const TB_TYPE_ID type_id) const
 Returns true if the class or the base class matches the type id.
 
template<class T >
T * SafeCastTo () const
 Returns this object as the given type or nullptr if it's not that type. More...
 
template<class T >
bool IsOfType () const
 Return true if this object can safely be casted to the given type. More...
 
virtual const char * GetClassName () const
 Get the classname of the object. More...
 

Public Attributes

TBListAutoDeleteOf< TBStrfiles
 
- Public Attributes inherited from tb::TBWidgetEvent
TBWidgettarget
 The widget that invoked the event.
 
EVENT_TYPE type
 Which type of event.
 
int target_x
 X position in target widget. Set for all pointer events, click and wheel.
 
int target_y
 Y position in target widget. Set for all pointer events, click and wheel.
 
int delta_x
 Set for EVENT_TYPE_WHEEL. Positive is a turn right.
 
int delta_y
 Set for EVENT_TYPE_WHEEL. Positive is a turn against the user.
 
int count
 1 for all events, but increased for POINTER_DOWN event to 2 for doubleclick, 3 for tripleclick and so on. More...
 
int key
 for EVENT_TYPE_KEY_* the key, or 0 if key is in special_key; for EVENT_TYPE_FINGER_* is the finger number. More...
 
SPECIAL_KEY special_key
 
MODIFIER_KEYS modifierkeys
 
TBID ref_id
 Sometimes (when documented) events have a ref_id (The id that caused this event)
 
bool touch
 Set for pointer events. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from tb::TBTypedObject
template<class T >
static TB_TYPE_ID GetTypeId ()
 A static template method that returns a unique id for each type. More...
 

Detailed Description

TBWidgetEventFileDrop is a event of type EVENT_TYPE_FILE_DROP.

It contains a list of filenames of the files that was dropped.


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