HTk.Menuitems.Indicator
Description
HTk's menuitem indicators. Indicators are displayed with menu checkbuttons, menu buttons and menu radiobuttons.
- data Indicator a = Indicator a
- class GUIObject w => HasColour w where
- class GUIObject w => HasPhoto w where
- class ButtonWidget w => SelectButton w where
- selectionState :: Toggle -> Config w
- getSelectionState :: w -> IO Toggle
- selectionStateSet :: w -> Event Toggle
- class GUIObject w => HasIndicator w where
Documentation
The Indicator datatype.
Constructors
| Indicator a |
Instances
| HasIndicator w => GUIObject (Indicator w) | Internal. |
| (HasIndicator w, SelectButton w) => HasColour (Indicator w) | You can specify the colour for the selector of menu checkbuttons and menu radiobuttons. |
| (HasIndicator w, SelectButton w) => HasPhoto (Indicator w) | You can specify specify an alternate image for the selector of menu checkbuttons and menu radiobuttons. |
class GUIObject w => HasColour w whereSource
Coloured objects instantiate the class HasColour.
Methods
legalColourID :: w -> ConfigID -> BoolSource
Instances
| HasColour Box | A box has a configureable background colour. |
| HasColour Frame | A frame widget has a background colour. |
| HasColour BitMap | A bitmap object has a configureable foreground and background colour (if implicitely displayed inside a label widget). |
| HasColour Image | An image object has a configureable foreground and background colour (if implicitely displayed inside a label widget). |
| HasColour LabelFrame | A labelled frame has a background colour. |
| HasColour NoteBookPage | A notebook page has a background colour. |
| HasColour Pane | A pane has a background colour. |
| HasColour Menu | A menu has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasColour MenuCascade | A menu cascade item has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasColour MenuCheckButton | A menu checkbutton has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasColour MenuCommand | A menu command has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasColour MenuRadioButton | A menu radiobutton has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasColour Button | A button widget has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasColour ScrollBar | A scrollbar widget has a background and activebackground (regarding slider) colour. |
| HasColour Canvas | A canvas widget has a foreground and background colour. |
| HasColour Editor | An editor widget has a foreground and background colour. |
| HasColour TextTag | A text tag has a configureable foregroud and background colour. |
| HasColour Label | A label widget has a foreground and background colour. |
| HasColour MenuButton | A menu button has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasColour Message | A message widget has a foreground and background colour. |
| HasColour Space | A space widget has a configureable background colour. |
| HasColour SelectBox | A select box has a configureable foreground and background colour. |
| HasColour IconBar | An icon bar has a configureable foreground and background colour. |
| HasColour SpinButton | A spin button has a normal foreground and background colour and an active/disabled foreground and background colour. |
| (HasInsertionCursor w, Widget w) => HasColour (ICursor w) | The insertion cursor has a configureable colour. |
| (HasSelection w, Widget w) => HasColour (Selection w) | The selected entries have a configureable foreground and background colour. |
| (HasSlider w, GUIObject w) => HasColour (Slider w) | The slider component has a configureable foreground and background colour. |
| (HasIndicator w, SelectButton w) => HasColour (Indicator w) | You can specify the colour for the selector of menu checkbuttons and menu radiobuttons. |
| HasColour (CheckButton a) | A checkbutton widget has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasColour (Entry a) | An entry field has a foreground and background colour. |
| HasColour (ListBox a) | A listbox widget has a foreground and background colour. |
| GUIValue a => HasColour (ComboBox a) | A combo box widget has a background colour. |
| HasColour (OptionMenu a) | An option menu has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasColour (RadioButton a) | A radiobutton widget has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasColour (Scale a) | A scale widget has a configureable foreground, background and activebackground colour. |
| (HasColour a, HasScroller a) => HasColour (ScrollBox a) | A scrollbox has a configureable foreground and background colour. |
| CItem c => HasColour (TreeList c) | A tree list has a configureale background colour. |
| HasColour (Notepad a) | A notepad has a configureable background colour. |
| HasColour (InputForm a) | |
| HasColour (Prompt a) | A prompt has a configureable foreground and background colour. |
| HasColour (RecordField a b) | |
| HasColour (EnumField a b) | |
| HasColour (TextField a b) | |
| HasColour (CheckboxField a b) | |
| HasColour (NumEntryField a b) | |
| HasColour (EntryField a b) |
class GUIObject w => HasPhoto w whereSource
Image containers instantiate the class HasPhoto.
Instances
| HasPhoto MenuCascade | A menu cascade item can contain an image (instead of text or a bitmap). |
| HasPhoto MenuCheckButton | A menu checkbutton can contain an image (instead of text or a bitmap). |
| HasPhoto MenuCommand | A menu command can contain an image (instead of text or a bitmap). |
| HasPhoto MenuRadioButton | You can specify the size of a menu radiobutton. |
| HasPhoto Button | A button can contain an image. |
| HasPhoto ImageItem | An image item is a container for an image object. |
| HasPhoto Label | A label can contain an image. |
| HasPhoto MenuButton | A menubutton can contain an image. |
| (HasIndicator w, SelectButton w) => HasPhoto (Indicator w) | You can specify specify an alternate image for the selector of menu checkbuttons and menu radiobuttons. |
| HasPhoto (CheckButton a) | A checkbutton can contain an image. |
| HasPhoto (RadioButton a) | A radiobutton can contain an image. |
| HasPhoto (Dialog a) | A dialog can have an image |
| CItem a => HasPhoto (TREELISTOBJECT a) |
class ButtonWidget w => SelectButton w whereSource
A select button can be selected or not selected.
Methods
selectionState :: Toggle -> Config wSource
getSelectionState :: w -> IO ToggleSource
selectionStateSet :: w -> Event ToggleSource
class GUIObject w => HasIndicator w whereSource
Menu items that can have an indicator instantiate the
class HasIndicator.
Instances
| HasIndicator GUIOBJECT | Internal. |
| HasIndicator MenuCascade | You can display an indicator with a menu cascade item. |
| HasIndicator MenuCheckButton | You can display an indicator with a menu checkbutton. |
| HasIndicator MenuCommand | You can display an indicator with a menu command. |
| HasIndicator MenuRadioButton | You can display an indicator with a menu radiobutton. |