Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype TreeItemIndex = TreeItemIndex Int
- data TreeItemPointer = Parent a TreeItem => TreeItemPointer (Ref a)
- newtype TreeItemName = TreeItemName Text
- data TreeItemReference
- data TreeItemLocator
- data MoveError
- data MoveType
- data SiblingPosition = SiblingPosition (Maybe Int)
- data TreeItemNotFound = TreeItemNotFound
- treeItemNew :: Ref TreePrefs -> IO (Ref TreeItem)
Documentation
newtype TreeItemIndex Source #
data TreeItemPointer Source #
Parent a TreeItem => TreeItemPointer (Ref a) |
newtype TreeItemName Source #
data TreeItemLocator Source #
Hierarchy
Hierarchy
Functions
activate ::Ref
TreeItem
->IO
() activateWith ::Ref
TreeItem
->Bool
->IO
() add:: (Parent
aTreeItem
,Parent
bTreePrefs
) =>Ref
TreeItem
->Ref
b ->TreeItemLocator
->IO
(Maybe
(Ref
a)) addAt:: (Parent
aTreeItem
,Parent
bTreePrefs
) =>Ref
TreeItem
->Ref
b -> [Text
] ->Maybe
(Ref
a) ->IO
(Maybe
(Ref
a)) child ::Ref
TreeItem
->Int
->IO
(Maybe
(Ref
Widget
)) children ::Ref
TreeItem
->IO
(Int
) clearChildren ::Ref
TreeItem
->IO
() close ::Ref
TreeItem
->IO
() deparent ::Ref
TreeItem
->Int
->IO
(Either
UnknownError
(Ref
orig)) deselect ::Ref
TreeItem
->IO
() deselectAll ::Ref
TreeItem
->IO
(Int
) destroy ::Ref
TreeItem
->IO
() eventOnCollapseIcon:: (Parent
aTreePrefs
) =>Ref
TreeItem
->Ref
a ->IO
(Int
) eventOnLabel:: (Parent
aTreePrefs
) =>Ref
TreeItem
->Ref
a ->IO
(Int
) findChild ::Ref
TreeItem
->TreeItemLocator
->IO
(Maybe
TreeItemIndex
) findClicked:: (Parent
aTreePrefs
) =>Ref
TreeItem
->Ref
a ->IO
(Maybe
(Ref
TreeItem
)) findInChildren ::Ref
TreeItem
-> [Text
] ->IO
(Maybe
(Ref
TreeItem
)) findItem ::Ref
TreeItem
-> [Text
] ->IO
(Maybe
(Ref
TreeItem
)) getDepth ::Ref
TreeItem
->IO
(Int
) getH ::Ref
TreeItem
->IO
Int
getLabel ::Ref
TreeItem
->IO
Text
getLabelbgcolor ::Ref
TreeItem
->IO
(Color
) getLabelcolor ::Ref
TreeItem
->IO
(Color
) getLabelfgcolor ::Ref
TreeItem
->IO
(Color
) getLabelfont ::Ref
TreeItem
->IO
(Font
) getLabelsize ::Ref
TreeItem
->IO
(FontSize
) getParent ::Ref
TreeItem
->IO
(Maybe
(Ref
TreeItem
)) getUsericon ::Ref
TreeItem
->IO
(Maybe
(Ref
Image
)) getW ::Ref
TreeItem
->IO
Int
getWidget ::Ref
TreeItem
->IO
(Maybe
(Ref
Widget
)) getX ::Ref
TreeItem
->IO
Int
getY ::Ref
TreeItem
->IO
Int
hasChildren ::Ref
TreeItem
->IO
(Bool
) insert:: (Parent
aTreePrefs
) =>Ref
TreeItem
->Ref
a ->Text
->Maybe
Int
->IO
(Maybe
(Ref
TreeItem
)) insertAbove:: (Parent
aTreePrefs
) =>Ref
TreeItem
->Ref
a ->Text
->IO
(Maybe
(Ref
TreeItem
)) isActive ::Ref
TreeItem
->IO
(Bool
) isClose ::Ref
TreeItem
->IO
(Bool
) isOpen ::Ref
TreeItem
->IO
(Bool
) isRoot ::Ref
TreeItem
->IO
(Bool
) isSelected ::Ref
TreeItem
->IO
(Bool
) isVisible ::Ref
TreeItem
->IO
(Bool
) labelH ::Ref
TreeItem
->IO
(Int
) labelW ::Ref
TreeItem
->IO
(Int
) labelX ::Ref
TreeItem
->IO
(Int
) labelY ::Ref
TreeItem
->IO
(Int
) move ::Ref
TreeItem
->Int
->Int
->IO
(Either
OutOfRange
()) moveTo:: (Parent
aTreeItem
) =>Ref
TreeItem
->Ref
a ->MoveType
->IO
(Either
MoveError
()) next ::Ref
TreeItem
->IO
(Maybe
(Ref
TreeItem
)) nextDisplayed:: (Parent
aTreePrefs
) =>Ref
TreeItem
->Ref
a ->IO
(Maybe
(Ref
TreeItem
)) nextSibling ::Ref
TreeItem
->IO
(Maybe
(Ref
TreeItem
)) open ::Ref
TreeItem
->IO
() openToggle ::Ref
TreeItem
->IO
() prev ::Ref
TreeItem
->IO
(Maybe
(Ref
TreeItem
)) prevDisplayed:: (Parent
aTreePrefs
) =>Ref
TreeItem
->Ref
a ->IO
(Maybe
(Ref
TreeItem
)) prevSibling ::Ref
TreeItem
->IO
(Maybe
(Ref
TreeItem
)) removeChild ::Ref
TreeItem
->TreeItemLocator
->IO
(Either
UnknownError
()) reparent:: (Parent
aTreeItem
) =>Ref
TreeItem
->Ref
a ->Int
->IO
(Either
UnknownError
()) select ::Ref
TreeItem
->IO
() selectAll ::Ref
TreeItem
->IO
(Int
) selectToggle ::Ref
TreeItem
->IO
() selectWithVal ::Ref
TreeItem
->Int
->IO
() setLabel ::Ref
TreeItem
->Text
->IO
() setLabelbgcolor ::Ref
TreeItem
->Color
->IO
() setLabelcolor ::Ref
TreeItem
->Color
->IO
() setLabelfgcolor ::Ref
TreeItem
->Color
->IO
() setLabelfont ::Ref
TreeItem
->Font
->IO
() setLabelsize ::Ref
TreeItem
->FontSize
->IO
() setParent:: (Parent
aTreeItem
) =>Ref
TreeItem
->Maybe
(Ref
a) ->IO
() setUsericon:: (Parent
aImage
) =>Ref
TreeItem
->Maybe
(Ref
a) ->IO
() setWidget:: (Parent
aWidget
) =>Ref
TreeItem
->Maybe
(Ref
a ) ->IO
() showSelf ::Ref
TreeItem
->Maybe
Text
->IO
() swapChildren ::Ref
TreeItem
->Int
->Int
->IO
() swapChildrenByTreeItem:: (Parent
aTreeItem
) =>Ref
TreeItem
->Ref
a ->Ref
a ->IO
(Either
TreeItemNotFound
()) updatePrevNext ::Ref
TreeItem
->Int
->IO
() visible ::Ref
TreeItem
->IO
(Bool
) visibleR ::Ref
TreeItem
->IO
(Bool
)
Orphan instances
(~) * impl (IO Int) => Op (LabelH ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (LabelW ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (LabelY ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (LabelX ()) TreeItem orig impl Source # | |
(~) * impl (IO Bool) => Op (IsRoot ()) TreeItem orig impl Source # | |
(Parent a TreePrefs, (~) * impl (Ref a -> IO Int)) => Op (EventOnLabel ()) TreeItem orig impl Source # | |
(Parent a TreePrefs, (~) * impl (Ref a -> IO Int)) => Op (EventOnCollapseIcon ()) TreeItem orig impl Source # | |
(Parent a TreePrefs, (~) * impl (Ref a -> IO (Maybe (Ref TreeItem)))) => Op (FindClicked ()) TreeItem orig impl Source # | |
(~) * impl (IO Bool) => Op (VisibleR ()) TreeItem orig impl Source # | |
(~) * impl (IO Bool) => Op (IsVisible ()) TreeItem orig impl Source # | |
(~) * impl (IO Bool) => Op (IsActive ()) TreeItem orig impl Source # | |
(~) * impl (Bool -> IO ()) => Op (ActivateWith ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (DeselectAll ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (SelectAll ()) TreeItem orig impl Source # | |
(~) * impl (IO ()) => Op (SelectToggle ()) TreeItem orig impl Source # | |
(~) * impl (Int -> IO ()) => Op (SelectWithVal ()) TreeItem orig impl Source # | |
(~) * impl (IO ()) => Op (OpenToggle ()) TreeItem orig impl Source # | |
(~) * impl (IO Bool) => Op (IsClose ()) TreeItem orig impl Source # | |
(~) * impl (IO Bool) => Op (IsOpen ()) TreeItem orig impl Source # | |
(~) * impl (IO ()) => Op (Close ()) TreeItem orig impl Source # | |
(~) * impl (IO ()) => Op (Open ()) TreeItem orig impl Source # | |
(Parent a TreePrefs, (~) * impl (Ref a -> IO (Maybe (Ref TreeItem)))) => Op (PrevDisplayed ()) TreeItem orig impl Source # | |
(Parent a TreePrefs, (~) * impl (Ref a -> IO (Maybe (Ref TreeItem)))) => Op (NextDisplayed ()) TreeItem orig impl Source # | |
(~) * impl (Int -> IO ()) => Op (UpdatePrevNext ()) TreeItem orig impl Source # | |
(~) * impl (IO (Maybe (Ref TreeItem))) => Op (PrevSibling ()) TreeItem orig impl Source # | |
(~) * impl (IO (Maybe (Ref TreeItem))) => Op (NextSibling ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (GetDepth ()) TreeItem orig impl Source # | |
(Parent a TreeItem, (~) * impl (Ref a -> MoveType -> IO (Either MoveError ()))) => Op (MoveTo ()) TreeItem orig impl Source # | |
(Parent a TreeItem, (~) * impl (Ref a -> Int -> IO (Either UnknownError ()))) => Op (Reparent ()) TreeItem orig impl Source # | |
(~) * impl (Int -> IO (Either UnknownError (Ref orig))) => Op (Deparent ()) TreeItem orig impl Source # | |
(Parent a TreePrefs, (~) * impl (Ref a -> Text -> IO (Maybe (Ref TreeItem)))) => Op (InsertAbove ()) TreeItem orig impl Source # | |
(Parent a TreeItem, Parent b TreePrefs, (~) * impl (Ref b -> [Text] -> Maybe (Ref a) -> IO (Maybe (Ref a)))) => Op (AddAt ()) TreeItem orig impl Source # | |
(~) * impl ([Text] -> IO (Maybe (Ref TreeItem))) => Op (FindItem ()) TreeItem orig impl Source # | |
(~) * impl ([Text] -> IO (Maybe (Ref TreeItem))) => Op (FindInChildren ()) TreeItem orig impl Source # | |
(Parent a TreeItem, (~) * impl (Ref a -> Ref a -> IO (Either TreeItemNotFound ()))) => Op (SwapChildrenByTreeItem ()) TreeItem orig impl Source # | |
(~) * impl (Int -> Int -> IO ()) => Op (SwapChildren ()) TreeItem orig impl Source # | |
(~) * impl (IO ()) => Op (ClearChildren ()) TreeItem orig impl Source # | |
(~) * impl (TreeItemLocator -> IO (Either UnknownError ())) => Op (RemoveChild ()) TreeItem orig impl Source # | |
(~) * impl (TreeItemLocator -> IO (Maybe TreeItemIndex)) => Op (FindChild ()) TreeItem orig impl Source # | |
(~) * impl (IO Bool) => Op (HasChildren ()) TreeItem orig impl Source # | |
(~) * impl (Int -> IO (Maybe (Ref Widget))) => Op (Child ()) TreeItem orig impl Source # | |
(~) * impl (IO (Maybe (Ref Widget))) => Op (GetWidget ()) TreeItem orig impl Source # | |
(Parent a Widget, (~) * impl (Maybe (Ref a) -> IO ())) => Op (SetWidget ()) TreeItem orig impl Source # | |
(~) * impl (Maybe Text -> IO ()) => Op (ShowSelf ()) TreeItem orig impl Source # | |
(Parent a Image, (~) * impl (Maybe (Ref a) -> IO ())) => Op (SetUsericon ()) TreeItem orig impl Source # | |
(~) * impl (IO (Maybe (Ref Image))) => Op (GetUsericon ()) TreeItem orig impl Source # | |
(~) * impl (Color -> IO ()) => Op (SetLabelbgcolor ()) TreeItem orig impl Source # | |
(~) * impl (IO Color) => Op (GetLabelbgcolor ()) TreeItem orig impl Source # | |
(~) * impl (Color -> IO ()) => Op (SetLabelfgcolor ()) TreeItem orig impl Source # | |
(~) * impl (IO Color) => Op (GetLabelfgcolor ()) TreeItem orig impl Source # | |
(~) * impl (IO ()) => Op (Deselect ()) TreeItem orig impl Source # | |
(~) * impl (IO ()) => Op (Select ()) TreeItem orig impl Source # | |
(~) * impl (Int -> Int -> IO (Either OutOfRange ())) => Op (Move ()) TreeItem orig impl Source # | |
(~) * impl (IO Bool) => Op (IsSelected ()) TreeItem orig impl Source # | |
(~) * impl (IO (Maybe (Ref TreeItem))) => Op (Prev ()) TreeItem orig impl Source # | |
(~) * impl (IO Bool) => Op (Visible ()) TreeItem orig impl Source # | |
(~) * impl (IO (Maybe (Ref TreeItem))) => Op (Next ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (Children ()) TreeItem orig impl Source # | |
(Parent a TreePrefs, (~) * impl (Ref a -> Text -> Maybe Int -> IO (Maybe (Ref TreeItem)))) => Op (Insert ()) TreeItem orig impl Source # | |
(Parent a TreeItem, Parent b TreePrefs, (~) * impl (Ref b -> TreeItemLocator -> IO (Maybe (Ref a)))) => Op (Add ()) TreeItem orig impl Source # | |
(~) * impl (IO ()) => Op (Activate ()) TreeItem orig impl Source # | |
(~) * impl (FontSize -> IO ()) => Op (SetLabelsize ()) TreeItem orig impl Source # | |
(~) * impl (IO FontSize) => Op (GetLabelsize ()) TreeItem orig impl Source # | |
(~) * impl (Font -> IO ()) => Op (SetLabelfont ()) TreeItem orig impl Source # | |
(~) * impl (IO Font) => Op (GetLabelfont ()) TreeItem orig impl Source # | |
(~) * impl (Color -> IO ()) => Op (SetLabelcolor ()) TreeItem orig impl Source # | |
(~) * impl (IO Color) => Op (GetLabelcolor ()) TreeItem orig impl Source # | |
(~) * impl (Text -> IO ()) => Op (SetLabel ()) TreeItem orig impl Source # | |
(~) * impl (IO Text) => Op (GetLabel ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (GetH ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (GetW ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (GetY ()) TreeItem orig impl Source # | |
(~) * impl (IO Int) => Op (GetX ()) TreeItem orig impl Source # | |
(Parent a TreeItem, (~) * impl (Maybe (Ref a) -> IO ())) => Op (SetParent ()) TreeItem orig impl Source # | |
(~) * impl (IO (Maybe (Ref TreeItem))) => Op (GetParent ()) TreeItem orig impl Source # | |
(~) * impl (IO ()) => Op (Destroy ()) TreeItem orig impl Source # | |