Source codeContentsIndex
Focus
Description
This module provides functionality on the current focus.
Synopsis
class (GUIObject w) => Window w
data CurrentFocus
data FocusModel
= ActiveFocus
| PassiveFocus
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
= Local
| Global
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
class (GUIObject w) => Window w
Toplevel windows instantiate the class Window.
Instances
(CItem c) => Window (GenGUI c)
Window HTk
Window Toplevel
data CurrentFocus
The CurrentFocus datatype.
data FocusModel
The FocusModel datatype (focus model of a toplevel window).
Constructors
ActiveFocus
PassiveFocus
Instances
GUIValue FocusModel
Read FocusModel
Show FocusModel
focusModel :: (Window w) => FocusModel -> Config w
getFocusModel :: (Window w) => w -> IO FocusModel
Gets a window's focus model.
getFocus :: (Window w) => w -> IO (Maybe CurrentFocus)
setFocus
:: (Widget w)
=> w The widget to focus.
-> IO () None.
Sets the current for the containing window.
forceFocus
:: (Widget w)
=> w The widget to focus.
-> IO () None.
Forces the current focus for the containing window.
getRecentFocus
:: (Window w)
=> w the concerned window.
-> IO (Maybe CurrentFocus) The recent focus (if available).
Gets the last focused widget inside a window.
data GrabStatus
The GrabStatus datatype.
Constructors
Local
Global
Instances
GUIValue GrabStatus
Read GrabStatus
Show GrabStatus
data CurrentGrab
Constructors
CurrentGrab GUIOBJECT
Instances
Object CurrentGrab
GUIObject CurrentGrab
Widget CurrentGrab
grabLocal :: (Widget w) => w -> IO ()
grabGlobal
:: (Widget w)
=> w the concerned widget.
-> IO () None.
Grabs the focus global.
releaseGrab
:: (Widget w)
=> w the concerned widget.
-> IO () None.
Releases a focus grab.
returnGrab :: Maybe CurrentGrab -> IO ()
getGrabStatus
:: (Widget w)
=> w the concerned widget.
-> IO (Maybe GrabStatus) The current grab status (if available).
Gets the grab status from a widget.
getCurrentGrab
:: IO (Maybe CurrentGrab) The current grab (if available).
Gets the current grab.
Produced by Haddock version 0.3