CFx SDK Documentation
2023 SP0
|
#include <FxUIEvent.h>
Public Types | |
enum | FocusReason { MouseFocusReason , TabFocusReason , BacktabFocusReason , ActiveWindowFocusReason , PopupFocusReason , ShortcutFocusReason , MenuBarFocusReason , OtherFocusReason , NoFocusReason } |
Public Types inherited from CFxUIEvent | |
enum | Type { None = 0 , FocusIn = 8 , FocusOut = 9 , Paint = 12 , Resize = 14 , Show = 17 , Hide = 18 } |
Public Member Functions | |
CFxUIFocusEvent (Type type, FocusReason reason=OtherFocusReason) | |
~CFxUIFocusEvent () | |
bool | gotFocus () const |
bool | lostFocus () const |
FocusReason | reason () const |
Public Member Functions inherited from CFxUIEvent | |
CFxUIEvent (Type type) | |
virtual | ~CFxUIEvent () |
Type | type () const |
Additional Inherited Members | |
Protected Attributes inherited from CFxUIEvent | |
ushort | t |
Class CFxUIFocusEvent provides an event occurred when a widget's focus is changed.
Definition at line 186 of file FxUIEvent.h.
This enum type specifies why the focus changed.
Definition at line 192 of file FxUIEvent.h.
|
explicit |
Constructor.
type | Input. |
reason | Input. |
CFxUIFocusEvent::~CFxUIFocusEvent | ( | ) |
Destructor
|
inline |
Returns if widget have focus.
Definition at line 221 of file FxUIEvent.h.
|
inline |
Returns if widget does not have focus.
Definition at line 228 of file FxUIEvent.h.
FocusReason CFxUIFocusEvent::reason | ( | ) | const |
Returns FocusReason of a widget.