simple-ui-0.1.1: UI library for terminal.
Simple.UI.Widgets.Text
data TextAlign Source #
Constructors
data Text Source #
Instances
Methods
castToWidget :: Text -> Widget Source #
overrideWidget :: Text -> State VirtualWidget () -> Text Source #
keyPressed :: Text -> ListenerList (Key -> [Modifier] -> UIApp' ()) Source #
draw :: Text -> ListenerList (Drawing -> Int -> Int -> UIApp' ()) Source #
colorForeground :: Text -> Attribute Color Source #
colorBackground :: Text -> Attribute Color Source #
colorStyle :: Text -> Attribute DrawStyle Source #
colorForegroundSelected :: Text -> Attribute Color Source #
colorBackgroundSelected :: Text -> Attribute Color Source #
colorStyleSelected :: Text -> Attribute DrawStyle Source #
enabled :: Text -> Attribute Bool Source #
visible :: Text -> Attribute Bool Source #
name :: Text -> String Source #
computeSize :: Text -> UIApp u (Int, Int) Source #
castToText :: Text -> Text Source #
text :: Text -> Attribute (Maybe String) Source #
align :: Text -> Attribute TextAlign Source #
class WidgetClass w => TextClass w where Source #
Minimal complete definition
castToText
castToText :: w -> Text Source #
text :: w -> Attribute (Maybe String) Source #
align :: w -> Attribute TextAlign Source #
castToText :: TextView -> Text Source #
text :: TextView -> Attribute (Maybe String) Source #
align :: TextView -> Attribute TextAlign Source #
castToText :: Label -> Text Source #
text :: Label -> Attribute (Maybe String) Source #
align :: Label -> Attribute TextAlign Source #
castToText :: Edit -> Text Source #
text :: Edit -> Attribute (Maybe String) Source #
align :: Edit -> Attribute TextAlign Source #
castToText :: TextItem a -> Text Source #
text :: TextItem a -> Attribute (Maybe String) Source #
align :: TextItem a -> Attribute TextAlign Source #
castToText :: TextClass w => w -> Text Source #
textNew :: Maybe String -> UIApp u Text Source #
text :: TextClass w => w -> Attribute (Maybe String) Source #
align :: TextClass w => w -> Attribute TextAlign Source #