uni-htk-2.2.1.0: Graphical User Interface for Haskell Programs

HTk.Components.Focus

Description

This module provides functionality on the current focus.

Synopsis

Documentation

data CurrentFocus Source

The CurrentFocus datatype.

Instances

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).

Constructors

ActiveFocus 
PassiveFocus 

focusModel :: Window w => FocusModel -> Config wSource

Sets a window's focus model.

getFocusModel :: Window w => w -> IO FocusModelSource

Gets a window's focus model.

getFocusSource

Arguments

:: Window w 
=> w

the concerned window.

-> IO (Maybe CurrentFocus)

The current focus (if available).

Gets the current focus inside a window.

setFocusSource

Arguments

:: Widget w 
=> w

The widget to focus.

-> IO ()

None.

Sets the current for the containing window.

forceFocusSource

Arguments

:: Widget w 
=> w

The widget to focus.

-> IO ()

None.

Forces the current focus for the containing window.

getRecentFocusSource

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.

Constructors

Local 
Global 

data CurrentGrab Source

The CurrentGrab datatype.

Constructors

CurrentGrab GUIOBJECT 

Instances

Eq CurrentGrab 
Object CurrentGrab

Internal.

GUIObject CurrentGrab

Internal.

Widget CurrentGrab

The current grab has standard widget properties (concerning focus, cursor).

grabLocalSource

Arguments

:: Widget w 
=> w

the concerned widget.

-> IO ()

None.

Grabs the focus local.

grabGlobalSource

Arguments

:: Widget w 
=> w

the concerned widget.

-> IO ()

None.

Grabs the focus global.

releaseGrabSource

Arguments

:: Widget w 
=> w

the concerned widget.

-> IO ()

None.

Releases a focus grab.

getGrabStatusSource

Arguments

:: Widget w 
=> w

the concerned widget.

-> IO (Maybe GrabStatus)

The current grab status (if available).

Gets the grab status from a widget.

getCurrentGrabSource

Arguments

:: IO (Maybe CurrentGrab)

The current grab (if available).

Gets the current grab.