HTk.Devices.XSelection
Description
This module provides access to the X selection.
- class HasSelection w => HasXSelection w where
- exportSelection :: Bool -> Config w
- getExportSelection :: w -> IO Bool
- data XSelection
- clearXSelection :: GUIObject a => Screen a -> XSelection -> IO ()
- getXSelection :: (GUIObject a, GUIValue b) => Screen a -> XSelection -> TargetType -> IO b
Documentation
class HasSelection w => HasXSelection w whereSource
Widgets that have an X selection instantiate the
class HasXSelection.
Instances
| HasXSelection Editor | An editor widget has an X selection. |
| HasXSelection (Entry a) | An editor widget has an X selection. |
| HasXSelection (ListBox a) | A listbox widget has an X selection. |
data XSelection Source
The XSelection datatype.
Instances
| Eq XSelection | |
| Ord XSelection | |
| Read XSelection | |
| Show XSelection | |
| GUIValue XSelection | Internal. |
clearXSelection :: GUIObject a => Screen a -> XSelection -> IO ()Source
Clears the X selection.
getXSelection :: (GUIObject a, GUIValue b) => Screen a -> XSelection -> TargetType -> IO bSource
Gets the current X selection.