ParentContentsIndex
Graphics.UI.Port.Controls
Portability portable
Stability provisional
Maintainer ka2_mail@yahoo.com
Contents
Generic
Label
Button
Edit box
Check box
Radio item
Pop up box
List box
Slider
ProgressBar
CompoundControl
GroupBox
Notebook
NotebookPage
Description

Defines common controls:

  • Labels

  • Button

  • Check box

  • Edit box

  • List box

  • Popup box

  • Radio item

  • Slider

  • ProgressBar

  • CompoundControl

  • GroupBox

  • Notebook

  • NotebookPage

Synopsis
moveResizeControl :: WindowHandle -> Rect -> IO ()
getControlFrame :: WindowHandle -> IO Rect
setControlEnabled :: WindowHandle -> Bool -> IO ()
getControlEnabled :: WindowHandle -> IO Bool
setControlVisible :: WindowHandle -> Bool -> IO ()
getControlVisible :: WindowHandle -> IO Bool
setControlTip :: WindowHandle -> String -> IO ()
getControlTip :: WindowHandle -> IO String
relayoutContainer :: WindowHandle -> IO ()
createLabel :: WindowHandle -> IO WindowHandle
getLabelRequestSize :: WindowHandle -> IO Size
getLabelText :: WindowHandle -> IO String
setLabelText :: WindowHandle -> String -> IO ()
changeLabelFont :: WindowHandle -> Font -> IO ()
createButton :: WindowHandle -> IO WindowHandle
getButtonRequestSize :: WindowHandle -> IO Size
getButtonText :: WindowHandle -> IO String
setButtonText :: WindowHandle -> String -> IO ()
changeButtonFont :: WindowHandle -> Font -> IO ()
createEdit :: WindowHandle -> IO WindowHandle
getEditRequestSize :: WindowHandle -> IO Size
getEditText :: WindowHandle -> IO String
setEditText :: WindowHandle -> String -> IO ()
getEditReadOnly :: WindowHandle -> IO Bool
setEditReadOnly :: WindowHandle -> Bool -> IO ()
getEditPassword :: WindowHandle -> IO Bool
setEditPassword :: WindowHandle -> Bool -> IO ()
changeEditBoxFont :: WindowHandle -> Font -> IO ()
createCheckBox :: WindowHandle -> IO WindowHandle
getCheckBoxRequestSize :: WindowHandle -> IO Size
getCheckBoxText :: WindowHandle -> IO String
setCheckBoxText :: WindowHandle -> String -> IO ()
getCheckBoxSelectState :: WindowHandle -> IO Bool
setCheckBoxSelectState :: WindowHandle -> Bool -> IO ()
createRadioBox :: WindowHandle -> IO WindowHandle
getRadioBoxRequestSize :: WindowHandle -> IO Size
getRadioBoxText :: WindowHandle -> IO String
setRadioBoxText :: WindowHandle -> String -> IO ()
setRadioBoxSelectState :: WindowHandle -> Bool -> IO ()
getRadioBoxSelectState :: WindowHandle -> IO Bool
setRadioBoxGroup :: [WindowHandle] -> IO ()
createPopUp :: WindowHandle -> IO WindowHandle
getPopUpRequestSize :: WindowHandle -> IO Size
appendPopUpItem :: WindowHandle -> String -> IO ()
insertPopUpItem :: WindowHandle -> Int -> String -> IO ()
removePopUpItem :: WindowHandle -> Int -> IO ()
removeAllPopUpItems :: WindowHandle -> IO ()
getPopUpSelection :: WindowHandle -> IO Int
setPopUpSelection :: WindowHandle -> Int -> IO ()
createListBox :: WindowHandle -> Bool -> IO WindowHandle
getListBoxRequestSize :: WindowHandle -> IO Size
appendListBoxItem :: WindowHandle -> String -> IO ()
insertListBoxItem :: WindowHandle -> Int -> String -> IO ()
removeListBoxItem :: WindowHandle -> Int -> IO ()
removeAllListBoxItems :: WindowHandle -> IO ()
getListBoxSingleSelection :: WindowHandle -> IO Int
setListBoxSingleSelection :: WindowHandle -> Int -> IO ()
getListBoxItemSelectState :: WindowHandle -> Int -> IO Bool
setListBoxItemSelectState :: WindowHandle -> Int -> Bool -> IO ()
getListBoxCurrentItem :: WindowHandle -> IO Int
createHorzSlider :: WindowHandle -> IO WindowHandle
createVertSlider :: WindowHandle -> IO WindowHandle
getSliderRequestSize :: WindowHandle -> IO Size
getSliderRange :: WindowHandle -> IO (Int, Int)
setSliderRange :: WindowHandle -> Int -> Int -> IO ()
getSliderPosition :: WindowHandle -> IO Int
setSliderPosition :: WindowHandle -> Int -> IO ()
createHorzProgressBar :: WindowHandle -> Bool -> IO WindowHandle
createVertProgressBar :: WindowHandle -> Bool -> IO WindowHandle
getProgressBarRequestSize :: WindowHandle -> IO Size
setProgressBarFraction :: WindowHandle -> Int -> Int -> Int -> IO ()
getProgressBarFraction :: WindowHandle -> Int -> Int -> IO Int
createCompoundControl :: WindowHandle -> IO WindowHandle
getCompoundControlRequestSize :: WindowHandle -> IO Size
createGroupBox :: WindowHandle -> IO WindowHandle
getGroupBoxBordersSize :: WindowHandle -> IO (Int, Int, Int, Int)
getGroupBoxText :: WindowHandle -> IO String
setGroupBoxText :: WindowHandle -> String -> IO ()
createNotebook :: WindowHandle -> IO WindowHandle
getNotebookRequestSize :: WindowHandle -> IO Size
getNotebookLabelsPosition :: WindowHandle -> IO PositionType
setNotebookLabelsPosition :: WindowHandle -> PositionType -> IO ()
getNotebookSelection :: WindowHandle -> IO Int
setNotebookSelection :: WindowHandle -> Int -> IO ()
getNotebookPageCount :: WindowHandle -> IO Int
insertNotebookPage :: WindowHandle -> Maybe Int -> IO WindowHandle
getNotebookPageTitle :: WindowHandle -> IO String
setNotebookPageTitle :: WindowHandle -> String -> IO ()
getNotebookPageBitmap :: WindowHandle -> IO (Maybe Bitmap)
setNotebookPageBitmap :: WindowHandle -> Maybe Bitmap -> IO ()
getNotebookPagePos :: WindowHandle -> IO Int
destroyNotebookPage :: WindowHandle -> IO ()
getNotebookPageSize :: WindowHandle -> IO Size
Generic
moveResizeControl :: WindowHandle -> Rect -> IO ()
Change the position and size of a control.
getControlFrame :: WindowHandle -> IO Rect
Get the position and size of a control.
setControlEnabled :: WindowHandle -> Bool -> IO ()
getControlEnabled :: WindowHandle -> IO Bool
setControlVisible :: WindowHandle -> Bool -> IO ()
getControlVisible :: WindowHandle -> IO Bool
setControlTip :: WindowHandle -> String -> IO ()
getControlTip :: WindowHandle -> IO String
relayoutContainer :: WindowHandle -> IO ()
Label
createLabel :: WindowHandle -> IO WindowHandle
Create a label (i.e. just text).
getLabelRequestSize :: WindowHandle -> IO Size
The minimal size that the label needs.
getLabelText :: WindowHandle -> IO String
setLabelText :: WindowHandle -> String -> IO ()
changeLabelFont :: WindowHandle -> Font -> IO ()
Button
createButton :: WindowHandle -> IO WindowHandle
Create a button control. An event handler for button clicks can be installed with setControlCommandHandler.
getButtonRequestSize :: WindowHandle -> IO Size
The minimal size that the button needs.
getButtonText :: WindowHandle -> IO String
setButtonText :: WindowHandle -> String -> IO ()
changeButtonFont :: WindowHandle -> Font -> IO ()
Edit box
createEdit :: WindowHandle -> IO WindowHandle
Create an edit control.
getEditRequestSize :: WindowHandle -> IO Size
getEditText :: WindowHandle -> IO String
setEditText :: WindowHandle -> String -> IO ()
getEditReadOnly :: WindowHandle -> IO Bool
setEditReadOnly :: WindowHandle -> Bool -> IO ()
getEditPassword :: WindowHandle -> IO Bool
setEditPassword :: WindowHandle -> Bool -> IO ()
changeEditBoxFont :: WindowHandle -> Font -> IO ()
Check box
createCheckBox :: WindowHandle -> IO WindowHandle
Create a check box. An event handler for check box clicks can be installed with setControlCommandHandler.
getCheckBoxRequestSize :: WindowHandle -> IO Size
getCheckBoxText :: WindowHandle -> IO String
setCheckBoxText :: WindowHandle -> String -> IO ()
getCheckBoxSelectState :: WindowHandle -> IO Bool
setCheckBoxSelectState :: WindowHandle -> Bool -> IO ()
Radio item
createRadioBox :: WindowHandle -> IO WindowHandle
Create a radio box. An event handler for radio box clicks can be installed with setControlCommandHandler.
getRadioBoxRequestSize :: WindowHandle -> IO Size
getRadioBoxText :: WindowHandle -> IO String
setRadioBoxText :: WindowHandle -> String -> IO ()
setRadioBoxSelectState :: WindowHandle -> Bool -> IO ()
getRadioBoxSelectState :: WindowHandle -> IO Bool
setRadioBoxGroup :: [WindowHandle] -> IO ()
Pop up box
createPopUp :: WindowHandle -> IO WindowHandle
Create a new popup box. An event handler for pop up clicks can be installed with setControlCommandHandler.
getPopUpRequestSize :: WindowHandle -> IO Size
appendPopUpItem :: WindowHandle -> String -> IO ()
insertPopUpItem :: WindowHandle -> Int -> String -> IO ()
removePopUpItem :: WindowHandle -> Int -> IO ()
removeAllPopUpItems :: WindowHandle -> IO ()
getPopUpSelection :: WindowHandle -> IO Int
setPopUpSelection :: WindowHandle -> Int -> IO ()
List box
createListBox :: WindowHandle -> Bool -> IO WindowHandle
Create a new list box. Takes an boolean argument that is True when multiple selection are allowed. An event handler for list box clicks can be installed with setControlCommandHandler.
getListBoxRequestSize :: WindowHandle -> IO Size
appendListBoxItem :: WindowHandle -> String -> IO ()
insertListBoxItem :: WindowHandle -> Int -> String -> IO ()
removeListBoxItem :: WindowHandle -> Int -> IO ()
removeAllListBoxItems :: WindowHandle -> IO ()
getListBoxSingleSelection :: WindowHandle -> IO Int
setListBoxSingleSelection :: WindowHandle -> Int -> IO ()
getListBoxItemSelectState :: WindowHandle -> Int -> IO Bool
setListBoxItemSelectState :: WindowHandle -> Int -> Bool -> IO ()
getListBoxCurrentItem :: WindowHandle -> IO Int
Slider
createHorzSlider :: WindowHandle -> IO WindowHandle
Create a new horizontal slider control.
createVertSlider :: WindowHandle -> IO WindowHandle
Create a new vertical slider control.
getSliderRequestSize :: WindowHandle -> IO Size
getSliderRange :: WindowHandle -> IO (Int, Int)
setSliderRange :: WindowHandle -> Int -> Int -> IO ()
getSliderPosition :: WindowHandle -> IO Int
setSliderPosition :: WindowHandle -> Int -> IO ()
ProgressBar
createHorzProgressBar :: WindowHandle -> Bool -> IO WindowHandle
Create a new horizontal progress bar. The boolean parameter specify whether the bar shows continuous or discrete values.
createVertProgressBar :: WindowHandle -> Bool -> IO WindowHandle
Create a new vertical progress bar. The boolean parameter specify whether the bar shows continuous or discrete values.
getProgressBarRequestSize :: WindowHandle -> IO Size
setProgressBarFraction :: WindowHandle -> Int -> Int -> Int -> IO ()
getProgressBarFraction :: WindowHandle -> Int -> Int -> IO Int
CompoundControl
createCompoundControl :: WindowHandle -> IO WindowHandle
Create a new compound control
getCompoundControlRequestSize :: WindowHandle -> IO Size
GroupBox
createGroupBox :: WindowHandle -> IO WindowHandle
Create a new group box
getGroupBoxBordersSize :: WindowHandle -> IO (Int, Int, Int, Int)
getGroupBoxText :: WindowHandle -> IO String
setGroupBoxText :: WindowHandle -> String -> IO ()
Notebook
createNotebook :: WindowHandle -> IO WindowHandle
Create a new notebook control.
getNotebookRequestSize :: WindowHandle -> IO Size
getNotebookLabelsPosition :: WindowHandle -> IO PositionType
setNotebookLabelsPosition :: WindowHandle -> PositionType -> IO ()
getNotebookSelection :: WindowHandle -> IO Int
setNotebookSelection :: WindowHandle -> Int -> IO ()
getNotebookPageCount :: WindowHandle -> IO Int
NotebookPage
insertNotebookPage :: WindowHandle -> Maybe Int -> IO WindowHandle
getNotebookPageTitle :: WindowHandle -> IO String
Get the label of the notebook page.
setNotebookPageTitle :: WindowHandle -> String -> IO ()
Set the label of the notebook page.
getNotebookPageBitmap :: WindowHandle -> IO (Maybe Bitmap)
setNotebookPageBitmap :: WindowHandle -> Maybe Bitmap -> IO ()
getNotebookPagePos :: WindowHandle -> IO Int
destroyNotebookPage :: WindowHandle -> IO ()
getNotebookPageSize :: WindowHandle -> IO Size
Produced by Haddock version 0.4