| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
HTk.Components.Focus
Description
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.
Instances
| Object CurrentFocus Source # | Internal. |
| GUIObject CurrentFocus Source # | Internal. |
| Widget CurrentFocus Source # | 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).
Constructors
| ActiveFocus | |
| PassiveFocus |
Instances
| Enum FocusModel Source # | |
| Eq FocusModel Source # | |
| Ord FocusModel Source # | |
| Read FocusModel Source # | Internal. |
| Show FocusModel Source # | Internal. |
| GUIValue FocusModel Source # | Internal. |
focusModel :: Window w => FocusModel -> Config w Source #
Sets a window's focus model.
getFocusModel :: Window w => w -> IO FocusModel Source #
Gets a window's focus model.
Arguments
| :: 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.
Arguments
| :: 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.
Instances
| Enum GrabStatus Source # | |
| Eq GrabStatus Source # | |
| Ord GrabStatus Source # | |
| Read GrabStatus Source # | Internal. |
| Show GrabStatus Source # | Internal. |
| GUIValue GrabStatus Source # | Internal. |
data CurrentGrab Source #
The CurrentGrab datatype.
Constructors
| CurrentGrab GUIOBJECT |
Instances
| Eq CurrentGrab Source # | |
| Object CurrentGrab Source # | Internal. |
| GUIObject CurrentGrab Source # | Internal. |
| Widget CurrentGrab Source # | The current grab has standard widget properties (concerning focus, cursor). |
Grabs the focus global.
Releases a focus grab.
returnGrab :: Maybe CurrentGrab -> IO () Source #
Arguments
| :: Widget w | |
| => w | the concerned widget. |
| -> IO (Maybe GrabStatus) | The current grab status (if available). |
Gets the grab status from a widget.
Arguments
| :: IO (Maybe CurrentGrab) | The current grab (if available). |
Gets the current grab.