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

Safe HaskellNone
LanguageHaskell98

HTk.Components.Focus

Description

This module provides functionality on the current focus.

Synopsis

Documentation

data CurrentFocus Source #

The CurrentFocus datatype.

Instances

data FocusModel Source #

The FocusModel datatype (focus model of a toplevel window).

Constructors

ActiveFocus 
PassiveFocus 

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.

getFocus Source #

Arguments

:: Window w 
=> w

the concerned window.

-> IO (Maybe CurrentFocus)

The current focus (if available).

Gets the current focus inside a window.

setFocus Source #

Arguments

:: Widget w 
=> w

The widget to focus.

-> IO ()

None.

Sets the current for the containing window.

forceFocus Source #

Arguments

:: Widget w 
=> w

The widget to focus.

-> IO ()

None.

Forces the current focus for the containing window.

getRecentFocus Source #

Arguments

:: Window w 
=> w

the concerned window.

-> IO (Maybe CurrentFocus)

The recent focus (if available).

Gets the last focused widget inside a window.

grabLocal Source #

Arguments

:: Widget w 
=> w

the concerned widget.

-> IO ()

None.

Grabs the focus local.

grabGlobal Source #

Arguments

:: Widget w 
=> w

the concerned widget.

-> IO ()

None.

Grabs the focus global.

releaseGrab Source #

Arguments

:: Widget w 
=> w

the concerned widget.

-> IO ()

None.

Releases a focus grab.

getGrabStatus Source #

Arguments

:: Widget w 
=> w

the concerned widget.

-> IO (Maybe GrabStatus)

The current grab status (if available).

Gets the grab status from a widget.

getCurrentGrab Source #

Arguments

:: IO (Maybe CurrentGrab)

The current grab (if available).

Gets the current grab.