Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Dazzle.Objects.TreeNode
Contents
- Exported types
- Methods
- addEmblem
- append
- clearEmblems
- collapse
- expand
- getArea
- getChildrenPossible
- getExpanded
- getForegroundRgba
- getGicon
- getIconName
- getItem
- getIter
- getParent
- getPath
- getResetOnCollapse
- getText
- getTree
- getUseDimLabel
- getUseMarkup
- hasEmblem
- insert
- insertSorted
- invalidate
- isRoot
- nChildren
- new
- nthChild
- prepend
- rebuild
- remove
- removeEmblem
- select
- setChildrenPossible
- setEmblems
- setForegroundRgba
- setGicon
- setIconName
- setItem
- setResetOnCollapse
- setText
- setUseDimLabel
- setUseMarkup
- showPopover
- Properties
Description
No description available in the introspection data.
Synopsis
- newtype TreeNode = TreeNode (ManagedPtr TreeNode)
- class (GObject o, IsDescendantOf TreeNode o) => IsTreeNode o
- toTreeNode :: (MonadIO m, IsTreeNode o) => o -> m TreeNode
- treeNodeAddEmblem :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Text -> m ()
- treeNodeAppend :: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) => a -> b -> m ()
- treeNodeClearEmblems :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m ()
- treeNodeCollapse :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m ()
- treeNodeExpand :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Bool -> m Bool
- treeNodeGetArea :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Rectangle -> m ()
- treeNodeGetChildrenPossible :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool
- treeNodeGetExpanded :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool
- treeNodeGetForegroundRgba :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m (Maybe RGBA)
- treeNodeGetGicon :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Icon
- treeNodeGetIconName :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Text
- treeNodeGetItem :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Object
- treeNodeGetIter :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> TreeIter -> m Bool
- treeNodeGetParent :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m TreeNode
- treeNodeGetPath :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m (Maybe TreePath)
- treeNodeGetResetOnCollapse :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool
- treeNodeGetText :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Text
- treeNodeGetTree :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Tree
- treeNodeGetUseDimLabel :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool
- treeNodeGetUseMarkup :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool
- treeNodeHasEmblem :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Text -> m Bool
- treeNodeInsert :: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) => a -> b -> Word32 -> m ()
- treeNodeInsertSorted :: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) => a -> b -> TreeNodeCompareFunc -> m ()
- treeNodeInvalidate :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m ()
- treeNodeIsRoot :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool
- treeNodeNChildren :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Word32
- treeNodeNew :: (HasCallStack, MonadIO m) => m TreeNode
- treeNodeNthChild :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Word32 -> m (Maybe TreeNode)
- treeNodePrepend :: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) => a -> b -> m ()
- treeNodeRebuild :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m ()
- treeNodeRemove :: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) => a -> b -> m ()
- treeNodeRemoveEmblem :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Text -> m ()
- treeNodeSelect :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m ()
- treeNodeSetChildrenPossible :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Bool -> m ()
- treeNodeSetEmblems :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Text -> m ()
- treeNodeSetForegroundRgba :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Maybe RGBA -> m ()
- treeNodeSetGicon :: (HasCallStack, MonadIO m, IsTreeNode a, IsIcon b) => a -> b -> m ()
- treeNodeSetIconName :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Maybe Text -> m ()
- treeNodeSetItem :: (HasCallStack, MonadIO m, IsTreeNode a, IsObject b) => a -> b -> m ()
- treeNodeSetResetOnCollapse :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Bool -> m ()
- treeNodeSetText :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Maybe Text -> m ()
- treeNodeSetUseDimLabel :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Bool -> m ()
- treeNodeSetUseMarkup :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Bool -> m ()
- treeNodeShowPopover :: (HasCallStack, MonadIO m, IsTreeNode a, IsPopover b) => a -> b -> m ()
- constructTreeNodeChildrenPossible :: (IsTreeNode o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTreeNodeChildrenPossible :: (MonadIO m, IsTreeNode o) => o -> m Bool
- setTreeNodeChildrenPossible :: (MonadIO m, IsTreeNode o) => o -> Bool -> m ()
- clearTreeNodeExpandedIconName :: (MonadIO m, IsTreeNode o) => o -> m ()
- constructTreeNodeExpandedIconName :: (IsTreeNode o, MonadIO m) => Text -> m (GValueConstruct o)
- getTreeNodeExpandedIconName :: (MonadIO m, IsTreeNode o) => o -> m (Maybe Text)
- setTreeNodeExpandedIconName :: (MonadIO m, IsTreeNode o) => o -> Text -> m ()
- constructTreeNodeGicon :: (IsTreeNode o, MonadIO m, IsIcon a) => a -> m (GValueConstruct o)
- getTreeNodeGicon :: (MonadIO m, IsTreeNode o) => o -> m Icon
- setTreeNodeGicon :: (MonadIO m, IsTreeNode o, IsIcon a) => o -> a -> m ()
- clearTreeNodeIconName :: (MonadIO m, IsTreeNode o) => o -> m ()
- constructTreeNodeIconName :: (IsTreeNode o, MonadIO m) => Text -> m (GValueConstruct o)
- getTreeNodeIconName :: (MonadIO m, IsTreeNode o) => o -> m Text
- setTreeNodeIconName :: (MonadIO m, IsTreeNode o) => o -> Text -> m ()
- constructTreeNodeItem :: (IsTreeNode o, MonadIO m, IsObject a) => a -> m (GValueConstruct o)
- getTreeNodeItem :: (MonadIO m, IsTreeNode o) => o -> m Object
- setTreeNodeItem :: (MonadIO m, IsTreeNode o, IsObject a) => o -> a -> m ()
- getTreeNodeParent :: (MonadIO m, IsTreeNode o) => o -> m TreeNode
- constructTreeNodeResetOnCollapse :: (IsTreeNode o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTreeNodeResetOnCollapse :: (MonadIO m, IsTreeNode o) => o -> m Bool
- setTreeNodeResetOnCollapse :: (MonadIO m, IsTreeNode o) => o -> Bool -> m ()
- clearTreeNodeText :: (MonadIO m, IsTreeNode o) => o -> m ()
- constructTreeNodeText :: (IsTreeNode o, MonadIO m) => Text -> m (GValueConstruct o)
- getTreeNodeText :: (MonadIO m, IsTreeNode o) => o -> m Text
- setTreeNodeText :: (MonadIO m, IsTreeNode o) => o -> Text -> m ()
- clearTreeNodeTree :: (MonadIO m, IsTreeNode o) => o -> m ()
- constructTreeNodeTree :: (IsTreeNode o, MonadIO m, IsTree a) => a -> m (GValueConstruct o)
- getTreeNodeTree :: (MonadIO m, IsTreeNode o) => o -> m Tree
- setTreeNodeTree :: (MonadIO m, IsTreeNode o, IsTree a) => o -> a -> m ()
- constructTreeNodeUseDimLabel :: (IsTreeNode o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTreeNodeUseDimLabel :: (MonadIO m, IsTreeNode o) => o -> m Bool
- setTreeNodeUseDimLabel :: (MonadIO m, IsTreeNode o) => o -> Bool -> m ()
- constructTreeNodeUseMarkup :: (IsTreeNode o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTreeNodeUseMarkup :: (MonadIO m, IsTreeNode o) => o -> m Bool
- setTreeNodeUseMarkup :: (MonadIO m, IsTreeNode o) => o -> Bool -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq TreeNode Source # | |
GObject TreeNode Source # | |
Defined in GI.Dazzle.Objects.TreeNode | |
ManagedPtrNewtype TreeNode Source # | |
Defined in GI.Dazzle.Objects.TreeNode Methods toManagedPtr :: TreeNode -> ManagedPtr TreeNode | |
TypedObject TreeNode Source # | |
Defined in GI.Dazzle.Objects.TreeNode | |
HasParentTypes TreeNode Source # | |
Defined in GI.Dazzle.Objects.TreeNode | |
IsGValue (Maybe TreeNode) Source # | Convert |
Defined in GI.Dazzle.Objects.TreeNode Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe TreeNode -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe TreeNode) | |
type ParentTypes TreeNode Source # | |
Defined in GI.Dazzle.Objects.TreeNode type ParentTypes TreeNode = '[Object] |
class (GObject o, IsDescendantOf TreeNode o) => IsTreeNode o Source #
Type class for types which can be safely cast to TreeNode
, for instance with toTreeNode
.
Instances
(GObject o, IsDescendantOf TreeNode o) => IsTreeNode o Source # | |
Defined in GI.Dazzle.Objects.TreeNode |
toTreeNode :: (MonadIO m, IsTreeNode o) => o -> m TreeNode Source #
Methods
Click to display all available methods, including inherited ones
Methods
addEmblem, append, bindProperty, bindPropertyFull, clearEmblems, collapse, expand, forceFloating, freezeNotify, getv, hasEmblem, insert, insertSorted, invalidate, isFloating, isRoot, nChildren, notify, notifyByPspec, nthChild, prepend, rebuild, ref, refSink, remove, removeEmblem, runDispose, select, showPopover, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getArea, getChildrenPossible, getData, getExpanded, getForegroundRgba, getGicon, getIconName, getItem, getIter, getParent, getPath, getProperty, getQdata, getResetOnCollapse, getText, getTree, getUseDimLabel, getUseMarkup.
Setters
setChildrenPossible, setData, setDataFull, setEmblems, setForegroundRgba, setGicon, setIconName, setItem, setProperty, setResetOnCollapse, setText, setUseDimLabel, setUseMarkup.
addEmblem
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> Text |
|
-> m () |
Adds an emplem to be rendered on top of the node.
Use treeNodeRemoveEmblem
to remove an emblem.
append
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) | |
=> a |
|
-> b |
|
-> m () |
Appends child
to the list of children owned by node
.
clearEmblems
treeNodeClearEmblems :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m () Source #
Removes all emblems from self
.
collapse
treeNodeCollapse :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m () Source #
No description available in the introspection data.
expand
treeNodeExpand :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Bool -> m Bool Source #
No description available in the introspection data.
getArea
treeNodeGetArea :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Rectangle -> m () Source #
No description available in the introspection data.
getChildrenPossible
treeNodeGetChildrenPossible :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool Source #
No description available in the introspection data.
getExpanded
treeNodeGetExpanded :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool Source #
No description available in the introspection data.
getForegroundRgba
treeNodeGetForegroundRgba Source #
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> m (Maybe RGBA) |
Gets the foreground-rgba to use for row text.
If Nothing
, the default foreground color should be used.
Since: 3.28
getGicon
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a | |
-> m Icon |
Fetch the GIcon, re-render if necessary
getIconName
treeNodeGetIconName :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Text Source #
Fetches the icon-name of the icon to display, or NULL for no icon.
getItem
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> m Object |
Gets a Object
for the node, if one was set.
getIter
treeNodeGetIter :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> TreeIter -> m Bool Source #
No description available in the introspection data.
getParent
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> m TreeNode | Returns: A |
Retrieves the parent TreeNode
for node
.
getPath
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> m (Maybe TreePath) |
Gets a TreePath
for node
.
getResetOnCollapse
treeNodeGetResetOnCollapse :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool Source #
No description available in the introspection data.
getText
treeNodeGetText :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Text Source #
No description available in the introspection data.
getTree
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> m Tree | Returns: A |
Fetches the Tree
instance that owns the node.
getUseDimLabel
treeNodeGetUseDimLabel :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool Source #
No description available in the introspection data.
getUseMarkup
treeNodeGetUseMarkup :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool Source #
No description available in the introspection data.
hasEmblem
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Checks to see if emblemName
has been added to the TreeNode
.
insert
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) | |
=> a |
|
-> b |
|
-> Word32 |
|
-> m () |
Inserts child
as a child of self
at position
.
Since: 3.28
insertSorted
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) | |
=> a |
|
-> b |
|
-> TreeNodeCompareFunc |
|
-> m () |
Inserts a child
as a child of node
, sorting it among the other children.
invalidate
treeNodeInvalidate :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m () Source #
No description available in the introspection data.
isRoot
treeNodeIsRoot :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Bool Source #
No description available in the introspection data.
nChildren
treeNodeNChildren :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m Word32 Source #
No description available in the introspection data.
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m TreeNode | Returns: A |
nthChild
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> Word32 |
|
-> m (Maybe TreeNode) |
Gets the nth
child of self
or Nothing
if it does not exist.
prepend
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) | |
=> a |
|
-> b |
|
-> m () |
Prepends child
to the list of children owned by node
.
rebuild
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> m () |
Rebuilds a node, without invalidating children nodes. If you want to
ensure that children are also rebuilt, use treeNodeInvalidate
.
Since: 3.28
remove
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a, IsTreeNode b) | |
=> a |
|
-> b |
|
-> m () |
Removes child
from the list of children owned by node
.
removeEmblem
treeNodeRemoveEmblem :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Text -> m () Source #
No description available in the introspection data.
select
treeNodeSelect :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> m () Source #
No description available in the introspection data.
setChildrenPossible
treeNodeSetChildrenPossible Source #
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> Bool |
|
-> m () |
If the node has not yet been built, setting this to True
will add a
dummy child node. This dummy node will be removed when when the node
is built by the registered TreeBuilder
instances.
setEmblems
treeNodeSetEmblems :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Text -> m () Source #
No description available in the introspection data.
setForegroundRgba
treeNodeSetForegroundRgba Source #
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> Maybe RGBA | |
-> m () |
Sets the foreground-rgba to be used by the row text.
If foregroundRgba
is Nothing
, the value is reset to the default.
Since: 3.28
setGicon
treeNodeSetGicon :: (HasCallStack, MonadIO m, IsTreeNode a, IsIcon b) => a -> b -> m () Source #
No description available in the introspection data.
setIconName
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the icon name of the node. This is displayed in the pixbuf cell of the DzlTree.
setItem
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a, IsObject b) | |
=> a |
|
-> b |
|
-> m () |
An optional object to associate with the node. This is handy to save needing
to subclass the TreeNode
class.
setResetOnCollapse
treeNodeSetResetOnCollapse :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Bool -> m () Source #
No description available in the introspection data.
setText
Arguments
:: (HasCallStack, MonadIO m, IsTreeNode a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the text of the node. This is displayed in the text cell of the DzlTree.
setUseDimLabel
treeNodeSetUseDimLabel :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Bool -> m () Source #
No description available in the introspection data.
setUseMarkup
treeNodeSetUseMarkup :: (HasCallStack, MonadIO m, IsTreeNode a) => a -> Bool -> m () Source #
No description available in the introspection data.
showPopover
treeNodeShowPopover :: (HasCallStack, MonadIO m, IsTreeNode a, IsPopover b) => a -> b -> m () Source #
No description available in the introspection data.
Properties
childrenPossible
This property allows for more lazy loading of nodes.
When a node becomes visible, we normally build its children nodes so that we know if we need an expansion arrow. However, that can be expensive when rendering directories with lots of subdirectories.
Using this, you can always show an arrow without building the children and simply hide the arrow if there were in fact no children (upon expansion).
constructTreeNodeChildrenPossible :: (IsTreeNode o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “children-possible
” property. This is rarely needed directly, but it is used by new
.
getTreeNodeChildrenPossible :: (MonadIO m, IsTreeNode o) => o -> m Bool Source #
Get the value of the “children-possible
” property.
When overloading is enabled, this is equivalent to
get
treeNode #childrenPossible
setTreeNodeChildrenPossible :: (MonadIO m, IsTreeNode o) => o -> Bool -> m () Source #
Set the value of the “children-possible
” property.
When overloading is enabled, this is equivalent to
set
treeNode [ #childrenPossible:=
value ]
expandedIconName
No description available in the introspection data.
clearTreeNodeExpandedIconName :: (MonadIO m, IsTreeNode o) => o -> m () Source #
Set the value of the “expanded-icon-name
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#expandedIconName
constructTreeNodeExpandedIconName :: (IsTreeNode o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “expanded-icon-name
” property. This is rarely needed directly, but it is used by new
.
getTreeNodeExpandedIconName :: (MonadIO m, IsTreeNode o) => o -> m (Maybe Text) Source #
Get the value of the “expanded-icon-name
” property.
When overloading is enabled, this is equivalent to
get
treeNode #expandedIconName
setTreeNodeExpandedIconName :: (MonadIO m, IsTreeNode o) => o -> Text -> m () Source #
Set the value of the “expanded-icon-name
” property.
When overloading is enabled, this is equivalent to
set
treeNode [ #expandedIconName:=
value ]
gicon
The cached GIcon to display.
constructTreeNodeGicon :: (IsTreeNode o, MonadIO m, IsIcon a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “gicon
” property. This is rarely needed directly, but it is used by new
.
getTreeNodeGicon :: (MonadIO m, IsTreeNode o) => o -> m Icon Source #
Get the value of the “gicon
” property.
When overloading is enabled, this is equivalent to
get
treeNode #gicon
setTreeNodeGicon :: (MonadIO m, IsTreeNode o, IsIcon a) => o -> a -> m () Source #
Set the value of the “gicon
” property.
When overloading is enabled, this is equivalent to
set
treeNode [ #gicon:=
value ]
iconName
An icon-name to display on the row.
clearTreeNodeIconName :: (MonadIO m, IsTreeNode o) => o -> m () Source #
Set the value of the “icon-name
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#iconName
constructTreeNodeIconName :: (IsTreeNode o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “icon-name
” property. This is rarely needed directly, but it is used by new
.
getTreeNodeIconName :: (MonadIO m, IsTreeNode o) => o -> m Text Source #
Get the value of the “icon-name
” property.
When overloading is enabled, this is equivalent to
get
treeNode #iconName
setTreeNodeIconName :: (MonadIO m, IsTreeNode o) => o -> Text -> m () Source #
Set the value of the “icon-name
” property.
When overloading is enabled, this is equivalent to
set
treeNode [ #iconName:=
value ]
item
An optional Object
to associate with the node.
constructTreeNodeItem :: (IsTreeNode o, MonadIO m, IsObject a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “item
” property. This is rarely needed directly, but it is used by new
.
getTreeNodeItem :: (MonadIO m, IsTreeNode o) => o -> m Object Source #
Get the value of the “item
” property.
When overloading is enabled, this is equivalent to
get
treeNode #item
setTreeNodeItem :: (MonadIO m, IsTreeNode o, IsObject a) => o -> a -> m () Source #
Set the value of the “item
” property.
When overloading is enabled, this is equivalent to
set
treeNode [ #item:=
value ]
parent
The parent of the node.
getTreeNodeParent :: (MonadIO m, IsTreeNode o) => o -> m TreeNode Source #
Get the value of the “parent
” property.
When overloading is enabled, this is equivalent to
get
treeNode #parent
resetOnCollapse
The "reset-on-collapse" property denotes that all children should be
removed from the node when it's row is collapsed. It will also set
TreeNode
:needs-build
to True
so the next expansion rebuilds the
children. This is useful for situations where you want to ensure the nodes
are up to date (refreshed) on every expansion.
Since: 3.28
constructTreeNodeResetOnCollapse :: (IsTreeNode o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “reset-on-collapse
” property. This is rarely needed directly, but it is used by new
.
getTreeNodeResetOnCollapse :: (MonadIO m, IsTreeNode o) => o -> m Bool Source #
Get the value of the “reset-on-collapse
” property.
When overloading is enabled, this is equivalent to
get
treeNode #resetOnCollapse
setTreeNodeResetOnCollapse :: (MonadIO m, IsTreeNode o) => o -> Bool -> m () Source #
Set the value of the “reset-on-collapse
” property.
When overloading is enabled, this is equivalent to
set
treeNode [ #resetOnCollapse:=
value ]
text
Text to display on the tree node.
clearTreeNodeText :: (MonadIO m, IsTreeNode o) => o -> m () Source #
Set the value of the “text
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#text
constructTreeNodeText :: (IsTreeNode o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “text
” property. This is rarely needed directly, but it is used by new
.
getTreeNodeText :: (MonadIO m, IsTreeNode o) => o -> m Text Source #
Get the value of the “text
” property.
When overloading is enabled, this is equivalent to
get
treeNode #text
setTreeNodeText :: (MonadIO m, IsTreeNode o) => o -> Text -> m () Source #
Set the value of the “text
” property.
When overloading is enabled, this is equivalent to
set
treeNode [ #text:=
value ]
tree
The tree the node belongs to.
clearTreeNodeTree :: (MonadIO m, IsTreeNode o) => o -> m () Source #
Set the value of the “tree
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#tree
constructTreeNodeTree :: (IsTreeNode o, MonadIO m, IsTree a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “tree
” property. This is rarely needed directly, but it is used by new
.
getTreeNodeTree :: (MonadIO m, IsTreeNode o) => o -> m Tree Source #
Get the value of the “tree
” property.
When overloading is enabled, this is equivalent to
get
treeNode #tree
setTreeNodeTree :: (MonadIO m, IsTreeNode o, IsTree a) => o -> a -> m () Source #
Set the value of the “tree
” property.
When overloading is enabled, this is equivalent to
set
treeNode [ #tree:=
value ]
useDimLabel
No description available in the introspection data.
constructTreeNodeUseDimLabel :: (IsTreeNode o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “use-dim-label
” property. This is rarely needed directly, but it is used by new
.
getTreeNodeUseDimLabel :: (MonadIO m, IsTreeNode o) => o -> m Bool Source #
Get the value of the “use-dim-label
” property.
When overloading is enabled, this is equivalent to
get
treeNode #useDimLabel
setTreeNodeUseDimLabel :: (MonadIO m, IsTreeNode o) => o -> Bool -> m () Source #
Set the value of the “use-dim-label
” property.
When overloading is enabled, this is equivalent to
set
treeNode [ #useDimLabel:=
value ]
useMarkup
If the "text" property includes GMarkup
.
constructTreeNodeUseMarkup :: (IsTreeNode o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “use-markup
” property. This is rarely needed directly, but it is used by new
.
getTreeNodeUseMarkup :: (MonadIO m, IsTreeNode o) => o -> m Bool Source #
Get the value of the “use-markup
” property.
When overloading is enabled, this is equivalent to
get
treeNode #useMarkup
setTreeNodeUseMarkup :: (MonadIO m, IsTreeNode o) => o -> Bool -> m () Source #
Set the value of the “use-markup
” property.
When overloading is enabled, this is equivalent to
set
treeNode [ #useMarkup:=
value ]