|
CFx SDK Documentation
2020SP3
|
#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 170 of file FxUIEvent.h.
This enum type specifies why the focus changed.
Definition at line 176 of file FxUIEvent.h.
|
explicit |
Constructor.
| type | Input. |
| reason | Input. |
| CFxUIFocusEvent::~CFxUIFocusEvent | ( | ) |
Destructor
|
inline |
Returns if widget have focus.
Definition at line 205 of file FxUIEvent.h.
|
inline |
Returns if widget does not have focus.
Definition at line 212 of file FxUIEvent.h.
| FocusReason CFxUIFocusEvent::reason | ( | ) | const |
Returns FocusReason of a widget.