| Mx Toolkit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
struct MxFocusManager; MxFocusManager * mx_focus_manager_get_for_stage (ClutterStage *stage); ClutterStage * mx_focus_manager_get_stage (MxFocusManager *manager); MxFocusable * mx_focus_manager_get_focused (MxFocusManager *manager); void mx_focus_manager_push_focus (MxFocusManager *manager,MxFocusable *focusable); void mx_focus_manager_move_focus (MxFocusManager *manager,MxFocusDirection direction);
struct MxFocusManager;
The contents of this structure are private and should only be accessed through the public API.
MxFocusManager * mx_focus_manager_get_for_stage (ClutterStage *stage);
Get the MxFocusManager associated with a stage, or create one if none exist for the specified stage.
|
A ClutterStage |
Returns : |
An MxFocusManager. [transfer none] |
ClutterStage * mx_focus_manager_get_stage (MxFocusManager *manager);
Get the stage the MxFocusManager is associated with
|
A MxFocusManager |
Returns : |
A ClutterStage. [transfer none] |
MxFocusable * mx_focus_manager_get_focused (MxFocusManager *manager);
Get the currently focused MxFocusable
|
A MxFocusManager |
Returns : |
MxFocusable. [transfer none] |
void mx_focus_manager_push_focus (MxFocusManager *manager,MxFocusable *focusable);
Note: the final focused object may not be the same as focusable if
focusable does not accept focus directly.
|
the focus manager |
|
the object to set focus on |
void mx_focus_manager_move_focus (MxFocusManager *manager,MxFocusDirection direction);
Moves the current focus in the given direction.
|
the focus manager |
|
The direction to move focus in |