Classes | Public Types | Public Attributes | List of all members
sf::ui::ComponentEvent Class Reference

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
 
Componentsource
 
union {
   ButtonClickedEvent   buttonClick
 
   ButtonTouchedEvent   buttonTouch
 
   CheckBoxChangeEvent   checkBoxChange
 
   FocusedEvent   focus
 
   FormattedValueEnteredEvent   formattedValueEnter
 
   KeyFieldSetEvent   keyFieldSet
 
   TextEvent   text
 
}; 
 

Detailed Description

An event generate by a component

.

Definition at line 37 of file ComponentEvent.hpp.

Member Enumeration Documentation

Enumeration of component events.

Definition at line 130 of file ComponentEvent.hpp.


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