- sf
- ui
- ComponentEvent
An event generate by a component
. More...
#include <ComponentEvent.hpp>
Classes | |
struct | ButtonClickedEvent |
An event that is triggered each time a button is fired. More... | |
struct | ButtonTouchedEvent |
An event that is triggered each time a button is fired, touched (on mobile OSs) More... | |
struct | CheckBoxChangeEvent |
An event that is triggered each time a check box switch from unselected to selected, and vice-versa. More... | |
struct | FocusedEvent |
An event that is triggered each time a component change its focus status. More... | |
struct | FormattedValueEnteredEvent |
An event related to a formatted value entered (e.g on sf::ui::FormattedTextField) More... | |
struct | KeyFieldSetEvent |
An event that is triggered each time a key is set. More... | |
struct | TextEvent |
An event that is triggered each time a text is entered/deleted Triggered only with TextField. More... | |
Public Types | |
enum | ComponentEventType { ButtonClicked, ButtonTouched, CheckBoxChanged, FocusGained, FocusLost, FormattedValueEntered, KeyFieldSet, TextEntered, TextDeleted } |
Enumeration of component events. More... | |
Public Attributes | |
ComponentEventType | type |
Component * | source |
union { | |
ButtonClickedEvent buttonClick | |
ButtonTouchedEvent buttonTouch | |
CheckBoxChangeEvent checkBoxChange | |
FocusedEvent focus | |
FormattedValueEnteredEvent formattedValueEnter | |
KeyFieldSetEvent keyFieldSet | |
TextEvent text | |
}; | |
Enumeration of component events.
Definition at line 130 of file ComponentEvent.hpp.