Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class ContainerClass w Source #
Instances
ContainerClass Container Source # | |
Defined in Simple.UI.Widgets.Container castToContainer :: Container a -> Container a Source # widgets :: Container a -> AttributeList (Widget, LayoutData a) Source # layout :: Container a -> Attribute a Source # addTo :: (WidgetClass u, MonadIO m) => Container a -> u -> LayoutData a -> m () Source # | |
ContainerClass Window Source # | |
Defined in Simple.UI.Widgets.Window castToContainer :: Window a -> Container a Source # widgets :: Window a -> AttributeList (Widget, LayoutData a) Source # layout :: Window a -> Attribute a Source # addTo :: (WidgetClass u, MonadIO m) => Window a -> u -> LayoutData a -> m () Source # |
Instances
castToContainer :: ContainerClass w => w a -> Container a Source #
containerNew :: LayoutClass a => a -> UIApp u (Container a) Source #
widgets :: ContainerClass w => w a -> AttributeList (Widget, LayoutData a) Source #
layout :: ContainerClass w => w a -> Attribute a Source #
addTo :: (ContainerClass w, WidgetClass u, MonadIO m) => w a -> u -> LayoutData a -> m () Source #
class LayoutClass w Source #
Instances
LayoutClass EmptyLayout Source # | |
Defined in Simple.UI.Widgets.Container type LayoutData EmptyLayout Source # layoutDraw :: ContainerClass c => c EmptyLayout -> Drawing -> Int -> Int -> UIApp u () Source # layoutComputeSize :: ContainerClass c => c EmptyLayout -> UIApp u (Int, Int) Source # | |
LayoutClass SingleLayout Source # | |
Defined in Simple.UI.Layouts.SingleLayout type LayoutData SingleLayout Source # layoutDraw :: ContainerClass c => c SingleLayout -> Drawing -> Int -> Int -> UIApp u () Source # layoutComputeSize :: ContainerClass c => c SingleLayout -> UIApp u (Int, Int) Source # | |
LayoutClass FillLayout Source # | |
Defined in Simple.UI.Layouts.FillLayout type LayoutData FillLayout Source # layoutDraw :: ContainerClass c => c FillLayout -> Drawing -> Int -> Int -> UIApp u () Source # layoutComputeSize :: ContainerClass c => c FillLayout -> UIApp u (Int, Int) Source # |
type family LayoutData w Source #
Instances
type LayoutData EmptyLayout Source # | |
Defined in Simple.UI.Widgets.Container | |
type LayoutData SingleLayout Source # | |
Defined in Simple.UI.Layouts.SingleLayout | |
type LayoutData FillLayout Source # | |
Defined in Simple.UI.Layouts.FillLayout |
data EmptyLayout Source #
Instances
LayoutClass EmptyLayout Source # | |
Defined in Simple.UI.Widgets.Container type LayoutData EmptyLayout Source # layoutDraw :: ContainerClass c => c EmptyLayout -> Drawing -> Int -> Int -> UIApp u () Source # layoutComputeSize :: ContainerClass c => c EmptyLayout -> UIApp u (Int, Int) Source # | |
type LayoutData EmptyLayout Source # | |
Defined in Simple.UI.Widgets.Container |
data EmptyLayoutData Source #
Instances
Default EmptyLayoutData Source # | |
Defined in Simple.UI.Widgets.Container def :: EmptyLayoutData # |
layoutDraw :: (LayoutClass w, ContainerClass c) => c w -> Drawing -> Int -> Int -> UIApp u () Source #
layoutComputeSize :: (LayoutClass w, ContainerClass c) => c w -> UIApp u (Int, Int) Source #