This module provides functionality on the current focus.
- data CurrentFocus
- data FocusModel
- focusModel :: Window w => FocusModel -> Config w
- getFocusModel :: Window w => w -> IO FocusModel
- getFocus :: Window w => w -> IO (Maybe CurrentFocus)
- setFocus :: Widget w => w -> IO ()
- forceFocus :: Widget w => w -> IO ()
- getRecentFocus :: Window w => w -> IO (Maybe CurrentFocus)
- data GrabStatus
- data CurrentGrab = CurrentGrab GUIOBJECT
- grabLocal :: Widget w => w -> IO ()
- grabGlobal :: Widget w => w -> IO ()
- releaseGrab :: Widget w => w -> IO ()
- returnGrab :: Maybe CurrentGrab -> IO ()
- getGrabStatus :: Widget w => w -> IO (Maybe GrabStatus)
- getCurrentGrab :: IO (Maybe CurrentGrab)
Documentation
data CurrentFocus Source
The CurrentFocus
datatype.
Object CurrentFocus | Internal. |
GUIObject CurrentFocus | Internal. |
Widget CurrentFocus | The current focus is always a widget and has standard widget properties (concerning focus, cursor). |
data FocusModel Source
The FocusModel
datatype (focus model of a toplevel
window).
Enum FocusModel | |
Eq FocusModel | |
Ord FocusModel | |
Read FocusModel | Internal. |
Show FocusModel | Internal. |
GUIValue FocusModel | Internal. |
focusModel :: Window w => FocusModel -> Config wSource
Sets a window's focus model.
getFocusModel :: Window w => w -> IO FocusModelSource
Gets a window's focus model.
:: Window w | |
=> w | the concerned window. |
-> IO (Maybe CurrentFocus) | The current focus (if available). |
Gets the current focus inside a window.
Sets the current for the containing window.
Forces the current focus for the containing window.
:: Window w | |
=> w | the concerned window. |
-> IO (Maybe CurrentFocus) | The recent focus (if available). |
Gets the last focused widget inside a window.
data GrabStatus Source
The GrabStatus
datatype.
Enum GrabStatus | |
Eq GrabStatus | |
Ord GrabStatus | |
Read GrabStatus | Internal. |
Show GrabStatus | Internal. |
GUIValue GrabStatus | Internal. |
data CurrentGrab Source
The CurrentGrab
datatype.
Eq CurrentGrab | |
Object CurrentGrab | Internal. |
GUIObject CurrentGrab | Internal. |
Widget CurrentGrab | The current grab has standard widget properties (concerning focus, cursor). |
returnGrab :: Maybe CurrentGrab -> IO ()Source
:: Widget w | |
=> w | the concerned widget. |
-> IO (Maybe GrabStatus) | The current grab status (if available). |
Gets the grab status from a widget.
:: IO (Maybe CurrentGrab) | The current grab (if available). |
Gets the current grab.