TreeView

class TreeView(treeViewPointer: CPointer<GtkTreeView>) : Widget

14 / 03 / 2021

See also

Constructors

TreeView
Link copied to clipboard
fun TreeView(widget: Widget)
TreeView
Link copied to clipboard
fun TreeView()
TreeView
Link copied to clipboard
fun TreeView(model: TreeModel)
TreeView
Link copied to clipboard
fun TreeView(treeViewPointer: CPointer<GtkTreeView>)

Types

Companion
Link copied to clipboard
object Companion
DragDestRow
Link copied to clipboard
data class DragDestRow(path: TreePath?, post: TreeView.DropPosition)
DropPosition
Link copied to clipboard
enum DropPosition : Enum<TreeView.DropPosition>
GridLines
Link copied to clipboard
enum GridLines : Enum<TreeView.GridLines>
PathAtPos
Link copied to clipboard
data class PathAtPos(path: TreePath?, column: TreeViewColumn?, cellX: Int, cellY: Int)
TooltipContext
Link copied to clipboard
data class TooltipContext(model: TreeModel?, path: TreePath?, iter: TreeIter)
TreeViewCursor
Link copied to clipboard
data class TreeViewCursor(path: TreePath?, focusColumn: TreeViewColumn?)
VisibleRange
Link copied to clipboard
data class VisibleRange(startPath: TreePath, endPath: TreePath)

Functions

actionSetEnabled
Link copied to clipboard
fun actionSetEnabled(action: String, enabled: Boolean)
activate
Link copied to clipboard
fun activate(): Boolean
activateAction
Link copied to clipboard
fun activateAction(name: String, formatString: String?): Boolean
activateActionVariant
Link copied to clipboard
fun activateActionVariant(name: String, vararg args: Variant): Boolean
activateDefault
Link copied to clipboard
fun activateDefault()
addController
Link copied to clipboard
fun addController(controller: EventController)
addCSSClass
Link copied to clipboard
fun addCSSClass(cssClass: String)
addMnemonicLabel
Link copied to clipboard
fun addMnemonicLabel(label: Widget)
addOnColumnsChangedCallback
Link copied to clipboard
fun addOnColumnsChangedCallback(action: TypedNoArgFunc<TreeView>): SignalManager
addOnCursorChangedCallback
Link copied to clipboard
fun addOnCursorChangedCallback(action: TypedNoArgFunc<TreeView>): SignalManager
addOnDestroyCallback
Link copied to clipboard
fun addOnDestroyCallback(action: Widget.() -> Unit): SignalManager
addOnDirectionChangedCallback
Link copied to clipboard
fun addOnDirectionChangedCallback(action: Widget.(TextDirection) -> Unit): SignalManager
addOnHideCallback
Link copied to clipboard
fun addOnHideCallback(action: Widget.() -> Unit): SignalManager
addOnKeynavFailedCallback
Link copied to clipboard
fun addOnKeynavFailedCallback(action: KeynavFailedFunction): SignalManager
addOnMapCallback
Link copied to clipboard
fun addOnMapCallback(action: MapFunction): SignalManager
addOnMnemonicActivateCallback
Link copied to clipboard
addOnMoveCursorCallback
Link copied to clipboard
fun addOnMoveCursorCallback(action: TreeViewMoveCursorFunc): SignalManager
addOnMoveFocusCallback
Link copied to clipboard
fun addOnMoveFocusCallback(action: WidgetMoveFocusFunction): SignalManager
addOnRealizeCallback
Link copied to clipboard
fun addOnRealizeCallback(action: Widget.() -> Unit): SignalManager
addOnRowActivatedCallback
Link copied to clipboard
fun addOnRowActivatedCallback(action: TreeViewRowActivatedFunc): SignalManager
addOnRowCollapsedCallback
Link copied to clipboard
fun addOnRowCollapsedCallback(action: TreeViewRowSpreadFunc): SignalManager
addOnRowExpandedCallback
Link copied to clipboard
fun addOnRowExpandedCallback(action: TreeViewRowSpreadFunc): SignalManager
addOnSelectAllCallback
Link copied to clipboard
fun addOnSelectAllCallback(action: TypedNoArgForBooleanFunc<TreeView>): SignalManager
addOnSelectCursorParentCallback
Link copied to clipboard
addOnSelectCursorRowCallback
Link copied to clipboard
addOnShowCallback
Link copied to clipboard
fun addOnShowCallback(action: Widget.() -> Unit): SignalManager
addOnStateFlagsChangedCallback
Link copied to clipboard
fun addOnStateFlagsChangedCallback(action: Widget.(GtkStateFlags) -> Unit): SignalManager
addOnTestCollapseRowCallback
Link copied to clipboard
addOnTestExpandRowCallback
Link copied to clipboard
fun addOnTestExpandRowCallback(action: TreeViewTestSpreadRowFunc): SignalManager
addOnToggleCursorRowCallback
Link copied to clipboard
addOnUnmapCallback
Link copied to clipboard
fun addOnUnmapCallback(action: Widget.() -> Unit): SignalManager
addOnUnrealizeCallback
Link copied to clipboard
fun addOnUnrealizeCallback(action: Widget.() -> Unit): SignalManager
addOnUnselectAllCallback
Link copied to clipboard
addTickCallback
Link copied to clipboard
fun addTickCallback(callback: TickCallback): UInt
addWeakPointer
Link copied to clipboard
fun addWeakPointer(weakPointerLocation: CValuesRef<COpaquePointerVar>)
allocate
Link copied to clipboard
fun allocate(width: Int, height: Int, baseline: Int = -1, transform: Transform? = null)
appendColumn
Link copied to clipboard
fun appendColumn(column: TreeViewColumn): Int
bindProperty
Link copied to clipboard
fun bindProperty(property: String, target: KGObject, targetProperty: String, flags: Binding.Flags): Binding
childFocus
Link copied to clipboard
fun childFocus(direction: DirectionType)
collapseAll
Link copied to clipboard
fun collapseAll()
collapseRow
Link copied to clipboard
fun collapseRow(path: TreePath): Boolean
columnsAutosize
Link copied to clipboard
fun columnsAutosize()
computeBounds
Link copied to clipboard
fun computeBounds(target: Widget): Rect?
computeExpand
Link copied to clipboard
fun computeExpand(orientation: Orientation): Boolean
computePoint
Link copied to clipboard
fun computePoint(target: Widget, point: Point): Point?
computeTransform
Link copied to clipboard
fun computeTransform(target: Widget): Matrix?
contains
Link copied to clipboard
fun contains(x: Double, y: Double): Boolean
convertBinWindowToTreeCoords
Link copied to clipboard
fun convertBinWindowToTreeCoords(bx: Int, by: Int): Coordinates
convertBinWindowToWidgetCoords
Link copied to clipboard
fun convertBinWindowToWidgetCoords(bx: Int, by: Int): Coordinates
convertTreeToBinWindowCoords
Link copied to clipboard
fun convertTreeToBinWindowCoords(tx: Int, ty: Int): Coordinates
convertTreeToWidgetCoords
Link copied to clipboard
fun convertTreeToWidgetCoords(tx: Int, ty: Int): Coordinates
convertWidgetToBinWindowCoords
Link copied to clipboard
fun convertWidgetToBinWindowCoords(tx: Int, ty: Int): Coordinates
convertWidgetToTreeCoords
Link copied to clipboard
fun convertWidgetToTreeCoords(wx: Int, wy: Int): Coordinates
createPangoContext
Link copied to clipboard
fun createPangoContext(): Context
createPangoLayout
Link copied to clipboard
fun createPangoLayout(text: String? = null): Layout
createRowDragIcon
Link copied to clipboard
fun createRowDragIcon(path: TreePath): Paintable?
dragCheckThreshold
Link copied to clipboard
fun dragCheckThreshold(startX: Int, startY: Int, currentX: Int, currentY: Int): Boolean
enableModelDragDest
Link copied to clipboard
fun enableModelDragDest(formats: ContentFormats, actions: GdkDragAction)
enableModelDragSource
Link copied to clipboard
fun enableModelDragSource(startButtonMask: GdkModifierType, formats: ContentFormats, actions: GdkDragAction)
errorBell
Link copied to clipboard
fun errorBell()
expandAll
Link copied to clipboard
fun expandAll()
expandRow
Link copied to clipboard
fun expandRow(path: TreePath, openAll: Boolean = false): Boolean
expandToPath
Link copied to clipboard
fun expandToPath(path: TreePath)
getAncestor
Link copied to clipboard
fun getAncestor(type: GType): Widget?
getBackgroundArea
Link copied to clipboard
fun getBackgroundArea(path: TreePath?, column: TreeViewColumn?): Rectangle
getCellArea
Link copied to clipboard
fun getCellArea(path: TreePath?, column: TreeViewColumn?): Rectangle
getColumn
Link copied to clipboard
fun getColumn(position: Int): TreeViewColumn?
getPathAtPos
Link copied to clipboard
fun getPathAtPos(x: Int, y: Int): TreeView.PathAtPos
getSize
Link copied to clipboard
fun getSize(orientation: Orientation): Int
getString
Link copied to clipboard
fun getString(propertyName: String): String
getTemplateChild
Link copied to clipboard
fun getTemplateChild(widget: KGType, name: String): KGObject
getTooltipContext
Link copied to clipboard
fun getTooltipContext(x: Int, y: Int, keyboardTip: Boolean): TreeView.TooltipContext
grabFocus
Link copied to clipboard
fun grabFocus(): Boolean
hasCssClass
Link copied to clipboard
fun hasCssClass(cssClass: String): Boolean
hide
Link copied to clipboard
fun hide()
initTemplate
Link copied to clipboard
fun initTemplate()
insertActionGroup
Link copied to clipboard
fun insertActionGroup(name: String, group: ActionGroup)
insertAfter
Link copied to clipboard
fun insertAfter(widget: Widget, previousSibling: Widget)
insertBefore
Link copied to clipboard
fun insertBefore(widget: Widget, nextSibling: Widget)
insertColumn
Link copied to clipboard
fun insertColumn(column: TreeViewColumn, position: Int): Int
fun insertColumn(position: Int, title: String, cellRenderer: CellRenderer, dataFunc: TreeCellDataFunc): Int
isAncestor
Link copied to clipboard
fun isAncestor(widget: Widget): Boolean
isBlankAtPos
Link copied to clipboard
fun isBlankAtPos(x: Int, y: Int): Boolean
isInAncestor
Link copied to clipboard
fun isInAncestor(ancestor: Widget): Boolean
keynavFailed
Link copied to clipboard
fun keynavFailed(direction: DirectionType): Boolean
map
Link copied to clipboard
fun map()
mapExpandedRows
Link copied to clipboard
fun mapExpandedRows(func: TreeViewMappingFunc)
measure
Link copied to clipboard
fun measure(orientation: Orientation, forSize: Int): LayoutManager.MeasureResult
mnemonicActivate
Link copied to clipboard
fun mnemonicActivate(groupCycling: Boolean): Boolean
moveColumnAfter
Link copied to clipboard
fun moveColumnAfter(column: TreeViewColumn, baseColumn: TreeViewColumn?)
pick
Link copied to clipboard
fun pick(x: Double, y: Double, pickFlags: UInt): Widget?
queueAllocate
Link copied to clipboard
fun queueAllocate()
queueDraw
Link copied to clipboard
fun queueDraw()
queueResize
Link copied to clipboard
fun queueResize()
realize
Link copied to clipboard
fun realize()
ref
Link copied to clipboard
open fun ref(): KGObject
removeColumn
Link copied to clipboard
fun removeColumn(column: TreeViewColumn): Int
removeController
Link copied to clipboard
fun removeController(controller: EventController)
removeCssClass
Link copied to clipboard
fun removeCssClass(cssClass: String)
removeMnemonicLabel
Link copied to clipboard
fun removeMnemonicLabel(label: Widget)
removeTickCallback
Link copied to clipboard
fun removeTickCallback(id: UInt)
rowActivated
Link copied to clipboard
fun rowActivated(path: TreePath, column: TreeViewColumn?)
rowExpanded
Link copied to clipboard
fun rowExpanded(path: TreePath): Boolean
scrollToCell
Link copied to clipboard
fun scrollToCell(path: TreePath?, column: TreeViewColumn?, useAlign: Boolean, rowAlign: Float, colAlign: Float)
scrollToPoint
Link copied to clipboard
fun scrollToPoint(treeX: Int, treeY: Int)
set
Link copied to clipboard
fun set(propertyName: String, boolean: Boolean)
fun set(propertyName: String, string: String)
setColumnDragFunction
Link copied to clipboard
fun setColumnDragFunction(func: TreeViewColumnDropFunc)
setCursor
Link copied to clipboard
fun setCursor(path: TreePath, focusColumn: TreeViewColumn?, startEditing: Boolean)
setCursorFromName
Link copied to clipboard
fun setCursorFromName(name: String)
setCursorOnCell
Link copied to clipboard
fun setCursorOnCell(path: TreePath, focusColumn: TreeViewColumn?, focusCell: CellRenderer?, startEditing: Boolean)
setDragDestRow
Link copied to clipboard
fun setDragDestRow(path: TreePath?, pos: TreeView.DropPosition)
setQueryTooltipCallback
Link copied to clipboard
fun setQueryTooltipCallback(action: QueryTooltipFunction): SignalManager
setRowSeparatorFunc
Link copied to clipboard
fun setRowSeparatorFunc(func: TreeViewRowSeparatorFunc?)
setSearchEqualFunc
Link copied to clipboard
fun setSearchEqualFunc(func: TreeViewSearchEqualFunc?)
setStateFlags
Link copied to clipboard
fun setStateFlags(flags: GtkStateFlags, clear: Boolean)
setTooltipCell
Link copied to clipboard
fun setTooltipCell(tooltip: Tooltip, path: TreePath?, column: TreeViewColumn?, cell: CellRenderer?)
setTooltipRow
Link copied to clipboard
fun setTooltipRow(tooltip: Tooltip, path: TreePath)
show
Link copied to clipboard
fun show()
sizeAllocate
Link copied to clipboard
fun sizeAllocate(allocation: Allocation, baseline: Int)
snapshotChild
Link copied to clipboard
fun snapshotChild(child: Widget, snapshot: Snapshot)
translateCoordinates
Link copied to clipboard
fun translateCoordinates(destination: Widget, srcX: Double, srcY: Double): Pair<Double, Double>?
triggerTooltipQuery
Link copied to clipboard
fun triggerTooltipQuery()
unmap
Link copied to clipboard
fun unmap()
unparent
Link copied to clipboard
fun unparent()
unrealize
Link copied to clipboard
fun unrealize()
unref
Link copied to clipboard
open override fun unref()
unsetRowDragDestination
Link copied to clipboard
fun unsetRowDragDestination()
unsetRowsDragSource
Link copied to clipboard
fun unsetRowsDragSource()
unsetStateFlags
Link copied to clipboard
fun unsetStateFlags(flags: GtkStateFlags)

Properties

accessiblePointer
Link copied to clipboard
open override val accessiblePointer: CPointer<GtkAccessible>
activateOnSingleClick
Link copied to clipboard
var activateOnSingleClick: Boolean
allocatedBaseline
Link copied to clipboard
val allocatedBaseline: Int
allocatedHeight
Link copied to clipboard
val allocatedHeight: Int
allocatedWidth
Link copied to clipboard
val allocatedWidth: Int
allocation
Link copied to clipboard
val allocation: Allocation
buildablePointer
Link copied to clipboard
open override val buildablePointer: GtkBuildable_autoptr
canFocus
Link copied to clipboard
var canFocus: Boolean
canTarget
Link copied to clipboard
var canTarget: Boolean
clipboard
Link copied to clipboard
val clipboard: Clipboard
columns
Link copied to clipboard
val columns: WrappedKList<TreeViewColumn>
constraintTargetPointer
Link copied to clipboard
open override val constraintTargetPointer: CPointer<GtkConstraintTarget>
cssClasses
Link copied to clipboard
var cssClasses: Array<String>
cssName
Link copied to clipboard
val cssName: String
cursor
Link copied to clipboard
var cursor: Cursor?
direction
Link copied to clipboard
var direction: TextDirection
display
Link copied to clipboard
val display: Display
dragDestRow
Link copied to clipboard
val dragDestRow: TreeView.DragDestRow
enableSearch
Link copied to clipboard
var enableSearch: Boolean
enableTreeLines
Link copied to clipboard
var enableTreeLines: Boolean
expanderColumn
Link copied to clipboard
var expanderColumn: TreeViewColumn?
firstChild
Link copied to clipboard
val firstChild: Widget?
fixedHeightMode
Link copied to clipboard
var fixedHeightMode: Boolean
focusable
Link copied to clipboard
var focusable: Boolean
focusChild
Link copied to clipboard
var focusChild: Widget?
focusOnClick
Link copied to clipboard
var focusOnClick: Boolean
fontMap
Link copied to clipboard
var fontMap: FontMap?
fontOptions
Link copied to clipboard
var fontOptions: FontOptions?
frameClock
Link copied to clipboard
val frameClock: FrameClock?
gClass
Link copied to clipboard
open val gClass: TypeClass
gridLines
Link copied to clipboard
var gridLines: TreeView.GridLines
hasDefault
Link copied to clipboard
val hasDefault: Boolean
hasFocus
Link copied to clipboard
val hasFocus: Boolean
hasTooltip
Link copied to clipboard
var hasTooltip: Boolean
hasVisibleFocus
Link copied to clipboard
val hasVisibleFocus: Boolean
headersClickable
Link copied to clipboard
var headersClickable: Boolean
headersVisible
Link copied to clipboard
var headersVisible: Boolean
height
Link copied to clipboard
val height: Int
horizontalAlign
Link copied to clipboard
var horizontalAlign: Align
horizontalExpand
Link copied to clipboard
var horizontalExpand: Boolean
horizontalExpandSet
Link copied to clipboard
var horizontalExpandSet: Boolean
hoverExpand
Link copied to clipboard
var hoverExpand: Boolean
hoverSelection
Link copied to clipboard
var hoverSelection: Boolean
isChildVisible
Link copied to clipboard
var isChildVisible: Boolean
isDrawable
Link copied to clipboard
val isDrawable: Boolean
isFocus
Link copied to clipboard
val isFocus: Boolean
isInDestruction
Link copied to clipboard
val isInDestruction: Boolean
isSensitive
Link copied to clipboard
val isSensitive: Boolean
isVisible
Link copied to clipboard
val isVisible: Boolean
lastChild
Link copied to clipboard
val lastChild: Widget?
layoutManager
Link copied to clipboard
var layoutManager: LayoutManager?
levelIndentation
Link copied to clipboard
var levelIndentation: Int
mapped
Link copied to clipboard
val mapped: Boolean
marginBottom
Link copied to clipboard
var marginBottom: Int
marginEnd
Link copied to clipboard
var marginEnd: Int
marginStart
Link copied to clipboard
var marginStart: Int
marginTop
Link copied to clipboard
var marginTop: Int
mnemonicLabels
Link copied to clipboard
val mnemonicLabels: WrappedKList<Widget>
model
Link copied to clipboard
var model: TreeModel?
name
Link copied to clipboard
var name: String?
native
Link copied to clipboard
val native: Native?
nColumns
Link copied to clipboard
val nColumns: UInt
nextSibling
Link copied to clipboard
val nextSibling: Widget?
opacity
Link copied to clipboard
var opacity: Double
overflow
Link copied to clipboard
var overflow: Overflow
pangoContext
Link copied to clipboard
val pangoContext: Context
parent
Link copied to clipboard
var parent: Widget?
pointer
Link copied to clipboard
val pointer: CPointer<GObject>
preferredSize
Link copied to clipboard
val preferredSize: PreferredSize
prevSibling
Link copied to clipboard
val prevSibling: Widget?
primaryClipboard
Link copied to clipboard
val primaryClipboard: Clipboard
realized
Link copied to clipboard
val realized: Boolean
receivesDefault
Link copied to clipboard
var receivesDefault: Boolean
reorderable
Link copied to clipboard
var reorderable: Boolean
requestMode
Link copied to clipboard
val requestMode: SizeRequestMode
root
Link copied to clipboard
val root: Root?
rubberBanding
Link copied to clipboard
var rubberBanding: Boolean
rubberBandingActive
Link copied to clipboard
val rubberBandingActive: Boolean
scaleFactor
Link copied to clipboard
val scaleFactor: Int
searchColumn
Link copied to clipboard
var searchColumn: Int
searchEntry
Link copied to clipboard
var searchEntry: Editable?
selection
Link copied to clipboard
val selection: TreeSelection
sensitive
Link copied to clipboard
var sensitive: Boolean
settings
Link copied to clipboard
val settings: Settings
shouldLayout
Link copied to clipboard
val shouldLayout: Boolean
showExpanders
Link copied to clipboard
var showExpanders: Boolean
sizeRequest
Link copied to clipboard
var sizeRequest: Pair<Int, Int>
stateFlags
Link copied to clipboard
val stateFlags: GtkStateFlags
styleContext
Link copied to clipboard
val styleContext: StyleContext
tooltipColumn
Link copied to clipboard
var tooltipColumn: Int
tooltipMarkup
Link copied to clipboard
var tooltipMarkup: String?
tooltipText
Link copied to clipboard
var tooltipText: String?
treeViewCursor
Link copied to clipboard
val treeViewCursor: TreeView.TreeViewCursor
treeViewPointer
Link copied to clipboard
val treeViewPointer: CPointer<GtkTreeView>
typeInstancePointer
Link copied to clipboard
open override val typeInstancePointer: CPointer<GTypeInstance>
verticalAlign
Link copied to clipboard
var verticalAlign: Align
verticalExpand
Link copied to clipboard
var verticalExpand: Boolean
verticalExpandSet
Link copied to clipboard
var verticalExpandSet: Boolean
visible
Link copied to clipboard
var visible: Boolean
visibleRange
Link copied to clipboard
val visibleRange: TreeView.VisibleRange?
visibleRect
Link copied to clipboard
val visibleRect: Rectangle
widgetPointer
Link copied to clipboard
val widgetPointer: WidgetPointer
width
Link copied to clipboard
val width: Int