ContentsIndex
Barracuda.GUI.InputField
MaintainerHenning Guenther
Description
The widget used to enter messages and attachments.
Synopsis
data InputField
inputFieldNew :: IO InputField
inputFieldGetWidget :: InputField -> Widget
inputFieldClear :: InputField -> IO ()
onSend :: InputField -> (String -> [Attachment] -> IO ()) -> IO ()
Documentation
data InputField
A widget to enter messages with optional attachments.
inputFieldNew :: IO InputField
Creates a new InputField and returns it as a vBox
inputFieldGetWidget :: InputField -> Widget
Returns the Widget associated to an InputField.
inputFieldClear :: InputField -> IO ()
Deletes the content of an InputField.
onSend :: InputField -> (String -> [Attachment] -> IO ()) -> IO ()
Sets a callback to be invoked whenever the user sends a message. Its parameters are the actual text and a list of Attachments.
Produced by Haddock version 0.8