Source codeContentsIndex
XSelection
Description
This module provides access to the X selection.
Synopsis
module Index
module Selection
class (HasSelection w) => HasXSelection w where
exportSelection :: Bool -> Config w
getExportSelection :: w -> IO Bool
data XSelection
= PRIMARY
| CLIPBOARD
clearXSelection :: (GUIObject a) => Screen a -> XSelection -> IO ()
getXSelection :: (GUIObject a, GUIValue b) => Screen a -> XSelection -> TargetType -> IO b
Documentation
module Index
module Selection
class (HasSelection w) => HasXSelection w where
Widgets that have an X selection instantiate the class HasXSelection.
Methods
exportSelection :: Bool -> Config w
Sets whether the selection should be exported or not.
getExportSelection :: w -> IO Bool
Gets the current selection export setting.
Instances
HasXSelection Editor
HasXSelection (Entry a)
data XSelection
The XSelection datatype.
Constructors
PRIMARY
CLIPBOARD
Instances
GUIValue XSelection
clearXSelection :: (GUIObject a) => Screen a -> XSelection -> IO ()
getXSelection :: (GUIObject a, GUIValue b) => Screen a -> XSelection -> TargetType -> IO b
Gets the current X selection.
Produced by Haddock version 0.3