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.Tree
Description
No description available in the introspection data.
Synopsis
- newtype Tree = Tree (ManagedPtr Tree)
- class (GObject o, IsDescendantOf Tree o) => IsTree o
- toTree :: (MonadIO m, IsTree o) => o -> m Tree
- treeAddBuilder :: (HasCallStack, MonadIO m, IsTree a, IsTreeBuilder b) => a -> b -> m ()
- treeExpandToNode :: (HasCallStack, MonadIO m, IsTree a, IsTreeNode b) => a -> b -> m ()
- treeFindChildNode :: (HasCallStack, MonadIO m, IsTree a, IsTreeNode b) => a -> b -> TreeFindFunc -> m (Maybe TreeNode)
- treeFindCustom :: (HasCallStack, MonadIO m, IsTree a) => a -> EqualFunc -> Ptr () -> m (Maybe TreeNode)
- treeFindItem :: (HasCallStack, MonadIO m, IsTree a, IsObject b) => a -> Maybe b -> m (Maybe TreeNode)
- treeGetContextMenu :: (HasCallStack, MonadIO m, IsTree a) => a -> m (Maybe MenuModel)
- treeGetRoot :: (HasCallStack, MonadIO m, IsTree a) => a -> m (Maybe TreeNode)
- treeGetSelected :: (HasCallStack, MonadIO m, IsTree a) => a -> m TreeNode
- treeGetShowIcons :: (HasCallStack, MonadIO m, IsTree a) => a -> m Bool
- treeRebuild :: (HasCallStack, MonadIO m, IsTree a) => a -> m ()
- treeRemoveBuilder :: (HasCallStack, MonadIO m, IsTree a, IsTreeBuilder b) => a -> b -> m ()
- treeScrollToNode :: (HasCallStack, MonadIO m, IsTree a, IsTreeNode b) => a -> b -> m ()
- treeSetContextMenu :: (HasCallStack, MonadIO m, IsTree a, IsMenuModel b) => a -> b -> m ()
- treeSetFilter :: (HasCallStack, MonadIO m, IsTree a) => a -> TreeFilterFunc -> m ()
- treeSetRoot :: (HasCallStack, MonadIO m, IsTree a, IsTreeNode b) => a -> b -> m ()
- treeSetShowIcons :: (HasCallStack, MonadIO m, IsTree a) => a -> Bool -> m ()
- treeUnselectAll :: (HasCallStack, MonadIO m, IsTree a) => a -> m ()
- constructTreeAlwaysExpand :: (IsTree o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTreeAlwaysExpand :: (MonadIO m, IsTree o) => o -> m Bool
- constructTreeContextMenu :: (IsTree o, MonadIO m, IsMenuModel a) => a -> m (GValueConstruct o)
- getTreeContextMenu :: (MonadIO m, IsTree o) => o -> m (Maybe MenuModel)
- setTreeContextMenu :: (MonadIO m, IsTree o, IsMenuModel a) => o -> a -> m ()
- constructTreeRoot :: (IsTree o, MonadIO m, IsTreeNode a) => a -> m (GValueConstruct o)
- getTreeRoot :: (MonadIO m, IsTree o) => o -> m (Maybe TreeNode)
- setTreeRoot :: (MonadIO m, IsTree o, IsTreeNode a) => o -> a -> m ()
- clearTreeSelection :: (MonadIO m, IsTree o) => o -> m ()
- constructTreeSelection :: (IsTree o, MonadIO m, IsTreeNode a) => a -> m (GValueConstruct o)
- getTreeSelection :: (MonadIO m, IsTree o) => o -> m (Maybe TreeNode)
- setTreeSelection :: (MonadIO m, IsTree o, IsTreeNode a) => o -> a -> m ()
- constructTreeShowIcons :: (IsTree o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTreeShowIcons :: (MonadIO m, IsTree o) => o -> m Bool
- setTreeShowIcons :: (MonadIO m, IsTree o) => o -> Bool -> m ()
- type TreeActionCallback = Text -> Text -> Text -> IO ()
- afterTreeAction :: (IsTree a, MonadIO m) => a -> ((?self :: a) => TreeActionCallback) -> m SignalHandlerId
- onTreeAction :: (IsTree a, MonadIO m) => a -> ((?self :: a) => TreeActionCallback) -> m SignalHandlerId
- type TreePopulatePopupCallback = Widget -> IO ()
- afterTreePopulatePopup :: (IsTree a, MonadIO m) => a -> ((?self :: a) => TreePopulatePopupCallback) -> m SignalHandlerId
- onTreePopulatePopup :: (IsTree a, MonadIO m) => a -> ((?self :: a) => TreePopulatePopupCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq Tree Source # | |
GObject Tree Source # | |
Defined in GI.Dazzle.Objects.Tree | |
ManagedPtrNewtype Tree Source # | |
Defined in GI.Dazzle.Objects.Tree Methods toManagedPtr :: Tree -> ManagedPtr Tree | |
TypedObject Tree Source # | |
Defined in GI.Dazzle.Objects.Tree | |
HasParentTypes Tree Source # | |
Defined in GI.Dazzle.Objects.Tree | |
IsGValue (Maybe Tree) Source # | Convert |
Defined in GI.Dazzle.Objects.Tree Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Tree -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Tree) | |
type ParentTypes Tree Source # | |
Defined in GI.Dazzle.Objects.Tree type ParentTypes Tree = '[TreeView, Container, Widget, Object, ImplementorIface, Buildable, Scrollable] |
class (GObject o, IsDescendantOf Tree o) => IsTree o Source #
Instances
(GObject o, IsDescendantOf Tree o) => IsTree o Source # | |
Defined in GI.Dazzle.Objects.Tree |
Methods
Click to display all available methods, including inherited ones
Methods
activate, add, addAccelerator, addBuilder, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, appendColumn, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, collapseAll, collapseRow, columnsAutosize, computeExpand, constructChild, convertBinWindowToTreeCoords, convertBinWindowToWidgetCoords, convertTreeToBinWindowCoords, convertTreeToWidgetCoords, convertWidgetToBinWindowCoords, convertWidgetToTreeCoords, createPangoContext, createPangoLayout, createRowDragIcon, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, enableModelDragDest, enableModelDragSource, ensureStyle, errorBell, event, expandAll, expandRow, expandToNode, expandToPath, findChildNode, findCustom, findItem, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, insertColumn, insertColumnWithDataFunc, intersect, isAncestor, isBlankAtPos, isComposited, isDrawable, isFloating, isFocus, isRubberBandingActive, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mapExpandedRows, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, moveColumnAfter, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, rebuild, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeBuilder, removeColumn, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, rowActivated, rowExpanded, runDispose, scrollToCell, scrollToNode, scrollToPoint, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unselectAll, unsetFocusChain, unsetRowsDragDest, unsetRowsDragSource, unsetStateFlags, watchClosure.
Getters
getAccessible, getActionGroup, getActivateOnSingleClick, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBackgroundArea, getBinWindow, getBorder, getBorderWidth, getCanDefault, getCanFocus, getCellArea, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getColumn, getColumns, getCompositeName, getContextMenu, getCursor, getData, getDestRowAtPos, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getDragDestRow, getEnableSearch, getEnableTreeLines, getEvents, getExpanderColumn, getFixedHeightMode, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getGridLines, getHadjustment, getHalign, getHasTooltip, getHasWindow, getHeadersClickable, getHeadersVisible, getHexpand, getHexpandSet, getHoverExpand, getHoverSelection, getHscrollPolicy, getInternalChild, getLevelIndentation, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModel, getModifierMask, getModifierStyle, getNColumns, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathAtPos, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getReorderable, getRequestMode, getRequisition, getResizeMode, getRoot, getRootWindow, getRubberBanding, getRulesHint, getScaleFactor, getScreen, getSearchColumn, getSearchEntry, getSelected, getSelection, getSensitive, getSettings, getShowExpanders, getShowIcons, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipColumn, getTooltipContext, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getVadjustment, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisibleRange, getVisibleRect, getVisual, getVscrollPolicy, getWindow.
Setters
setAccelPath, setActivateOnSingleClick, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setColumnDragFunction, setCompositeName, setContextMenu, setCursor, setCursorOnCell, setData, setDataFull, setDestroyCountFunc, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setDragDestRow, setEnableSearch, setEnableTreeLines, setEvents, setExpanderColumn, setFilter, setFixedHeightMode, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setGridLines, setHadjustment, setHalign, setHasTooltip, setHasWindow, setHeadersClickable, setHeadersVisible, setHexpand, setHexpandSet, setHoverExpand, setHoverSelection, setHscrollPolicy, setLevelIndentation, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setModel, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setReorderable, setResizeMode, setRoot, setRowSeparatorFunc, setRubberBanding, setRulesHint, setSearchColumn, setSearchEntry, setSearchEqualFunc, setSearchPositionFunc, setSensitive, setShowExpanders, setShowIcons, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipCell, setTooltipColumn, setTooltipMarkup, setTooltipRow, setTooltipText, setTooltipWindow, setVadjustment, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setVscrollPolicy, setWindow.
addBuilder
Arguments
:: (HasCallStack, MonadIO m, IsTree a, IsTreeBuilder b) | |
=> a |
|
-> b |
|
-> m () |
Add a builder to the tree.
expandToNode
treeExpandToNode :: (HasCallStack, MonadIO m, IsTree a, IsTreeNode b) => a -> b -> m () Source #
No description available in the introspection data.
findChildNode
Arguments
:: (HasCallStack, MonadIO m, IsTree a, IsTreeNode b) | |
=> a |
|
-> b |
|
-> TreeFindFunc |
|
-> m (Maybe TreeNode) |
findCustom
Arguments
:: (HasCallStack, MonadIO m, IsTree a) | |
=> a |
|
-> EqualFunc |
|
-> Ptr () |
|
-> m (Maybe TreeNode) |
Walks the entire tree looking for the first item that matches given
equalFunc
and key
.
The first parameter to equalFunc
will always be key
.
The second parameter will be the nodes TreeNode:item property.
findItem
Arguments
:: (HasCallStack, MonadIO m, IsTree a, IsObject b) | |
=> a |
|
-> Maybe b | |
-> m (Maybe TreeNode) |
Finds a TreeNode
with an item property matching item
.
getContextMenu
Arguments
:: (HasCallStack, MonadIO m, IsTree a) | |
=> a | |
-> m (Maybe MenuModel) |
No description available in the introspection data.
getRoot
Arguments
:: (HasCallStack, MonadIO m, IsTree a) | |
=> a | |
-> m (Maybe TreeNode) |
Retrieves the root node of the tree. The root node is not a visible node in the self, but a placeholder for all other builders to build upon.
getSelected
Gets the currently selected node in the tree.
getShowIcons
treeGetShowIcons :: (HasCallStack, MonadIO m, IsTree a) => a -> m Bool Source #
No description available in the introspection data.
rebuild
treeRebuild :: (HasCallStack, MonadIO m, IsTree a) => a -> m () Source #
No description available in the introspection data.
removeBuilder
Arguments
:: (HasCallStack, MonadIO m, IsTree a, IsTreeBuilder b) | |
=> a |
|
-> b |
|
-> m () |
Removes a builder from the tree.
scrollToNode
treeScrollToNode :: (HasCallStack, MonadIO m, IsTree a, IsTreeNode b) => a -> b -> m () Source #
No description available in the introspection data.
setContextMenu
treeSetContextMenu :: (HasCallStack, MonadIO m, IsTree a, IsMenuModel b) => a -> b -> m () Source #
No description available in the introspection data.
setFilter
Arguments
:: (HasCallStack, MonadIO m, IsTree a) | |
=> a |
|
-> TreeFilterFunc |
|
-> m () |
Sets the filter function to be used to determine visability of a tree node.
setRoot
Arguments
:: (HasCallStack, MonadIO m, IsTree a, IsTreeNode b) | |
=> a |
|
-> b |
|
-> m () |
Sets the root node of the Tree
widget. This is used to build
the items within the treeview. The item itself will not be added
to the self, but the direct children will be.
setShowIcons
treeSetShowIcons :: (HasCallStack, MonadIO m, IsTree a) => a -> Bool -> m () Source #
No description available in the introspection data.
unselectAll
Arguments
:: (HasCallStack, MonadIO m, IsTree a) | |
=> a |
|
-> m () |
Unselects the currently selected node in the tree.
Properties
alwaysExpand
No description available in the introspection data.
constructTreeAlwaysExpand :: (IsTree o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “always-expand
” property. This is rarely needed directly, but it is used by new
.
getTreeAlwaysExpand :: (MonadIO m, IsTree o) => o -> m Bool Source #
Get the value of the “always-expand
” property.
When overloading is enabled, this is equivalent to
get
tree #alwaysExpand
contextMenu
No description available in the introspection data.
constructTreeContextMenu :: (IsTree o, MonadIO m, IsMenuModel a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “context-menu
” property. This is rarely needed directly, but it is used by new
.
getTreeContextMenu :: (MonadIO m, IsTree o) => o -> m (Maybe MenuModel) Source #
Get the value of the “context-menu
” property.
When overloading is enabled, this is equivalent to
get
tree #contextMenu
setTreeContextMenu :: (MonadIO m, IsTree o, IsMenuModel a) => o -> a -> m () Source #
Set the value of the “context-menu
” property.
When overloading is enabled, this is equivalent to
set
tree [ #contextMenu:=
value ]
root
No description available in the introspection data.
constructTreeRoot :: (IsTree o, MonadIO m, IsTreeNode a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “root
” property. This is rarely needed directly, but it is used by new
.
getTreeRoot :: (MonadIO m, IsTree o) => o -> m (Maybe TreeNode) Source #
Get the value of the “root
” property.
When overloading is enabled, this is equivalent to
get
tree #root
setTreeRoot :: (MonadIO m, IsTree o, IsTreeNode a) => o -> a -> m () Source #
Set the value of the “root
” property.
When overloading is enabled, this is equivalent to
set
tree [ #root:=
value ]
selection
No description available in the introspection data.
clearTreeSelection :: (MonadIO m, IsTree o) => o -> m () Source #
Set the value of the “selection
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#selection
constructTreeSelection :: (IsTree o, MonadIO m, IsTreeNode a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “selection
” property. This is rarely needed directly, but it is used by new
.
getTreeSelection :: (MonadIO m, IsTree o) => o -> m (Maybe TreeNode) Source #
Get the value of the “selection
” property.
When overloading is enabled, this is equivalent to
get
tree #selection
setTreeSelection :: (MonadIO m, IsTree o, IsTreeNode a) => o -> a -> m () Source #
Set the value of the “selection
” property.
When overloading is enabled, this is equivalent to
set
tree [ #selection:=
value ]
showIcons
No description available in the introspection data.
constructTreeShowIcons :: (IsTree o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-icons
” property. This is rarely needed directly, but it is used by new
.
getTreeShowIcons :: (MonadIO m, IsTree o) => o -> m Bool Source #
Get the value of the “show-icons
” property.
When overloading is enabled, this is equivalent to
get
tree #showIcons
setTreeShowIcons :: (MonadIO m, IsTree o) => o -> Bool -> m () Source #
Set the value of the “show-icons
” property.
When overloading is enabled, this is equivalent to
set
tree [ #showIcons:=
value ]
Signals
action
type TreeActionCallback = Text -> Text -> Text -> IO () Source #
No description available in the introspection data.
afterTreeAction :: (IsTree a, MonadIO m) => a -> ((?self :: a) => TreeActionCallback) -> m SignalHandlerId Source #
Connect a signal handler for the action signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
tree #action callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onTreeAction :: (IsTree a, MonadIO m) => a -> ((?self :: a) => TreeActionCallback) -> m SignalHandlerId Source #
Connect a signal handler for the action signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
tree #action callback
populatePopup
type TreePopulatePopupCallback = Widget -> IO () Source #
No description available in the introspection data.
afterTreePopulatePopup :: (IsTree a, MonadIO m) => a -> ((?self :: a) => TreePopulatePopupCallback) -> m SignalHandlerId Source #
Connect a signal handler for the populatePopup signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
tree #populatePopup callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onTreePopulatePopup :: (IsTree a, MonadIO m) => a -> ((?self :: a) => TreePopulatePopupCallback) -> m SignalHandlerId Source #
Connect a signal handler for the populatePopup signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
tree #populatePopup callback