TextView

class TextView(textViewPointer: GtkTextView_autoptr) : Widget, Scrollable

08 / 03 / 2021

See also

Constructors

TextView
Link copied to clipboard
fun TextView(widget: Widget)
TextView
Link copied to clipboard
fun TextView()
TextView
Link copied to clipboard
fun TextView(textBuffer: TextBuffer)
TextView
Link copied to clipboard
fun TextView(textViewPointer: GtkTextView_autoptr)

Types

Companion
Link copied to clipboard
object Companion
CursorLocations
Link copied to clipboard
data class CursorLocations(strong: Rectangle?, weak: Rectangle?)
Layer
Link copied to clipboard
enum Layer : Enum<TextView.Layer>

LineAtY
Link copied to clipboard
data class LineAtY(iter: TextIter, topLine: Int)
TextExtendSelection
Link copied to clipboard
TextWindowType
Link copied to clipboard
WrapMode
Link copied to clipboard
enum WrapMode : Enum<TextView.WrapMode>
YRange
Link copied to clipboard
data class YRange(y: Int, height: Int)

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()
addChildAtAnchor
Link copied to clipboard
fun addChildAtAnchor(child: Widget, anchor: TextChildAnchor)
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)
addOnBackspaceCallback
Link copied to clipboard
fun addOnBackspaceCallback(action: TypedNoArgFunc<TextView>): SignalManager
addOnCopyClipboardCallback
Link copied to clipboard
addOnCutClipboardCallback
Link copied to clipboard
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
addOnInsertAtCursorCallback
Link copied to clipboard
addOnInsertEmojiCallback
Link copied to clipboard
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
addOnMoveFocusCallback
Link copied to clipboard
fun addOnMoveFocusCallback(action: WidgetMoveFocusFunction): SignalManager
addOnMoveViewPortCallback
Link copied to clipboard
addOnPasteClipboardCallback
Link copied to clipboard
addOnRealizeCallback
Link copied to clipboard
fun addOnRealizeCallback(action: Widget.() -> Unit): SignalManager
addOnSelectAllCallback
Link copied to clipboard
addOnSetAnchorCallback
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
addOnToggleOverwriteCallback
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
addOverlay
Link copied to clipboard
fun addOverlay(child: Widget, xpos: Int, ypos: Int)
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)
backwardDisplayLine
Link copied to clipboard
fun backwardDisplayLine(iter: TextIter): Boolean
backwardDisplayLineStart
Link copied to clipboard
fun backwardDisplayLineStart(iter: TextIter): Boolean
bindProperty
Link copied to clipboard
fun bindProperty(property: String, target: KGObject, targetProperty: String, flags: Binding.Flags): Binding
bufferToWindowCoords
Link copied to clipboard
fun bufferToWindowCoords(winType: TextView.TextWindowType, bufferX: Int, bufferY: Int): Coordinates
childFocus
Link copied to clipboard
fun childFocus(direction: DirectionType)
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
createPangoContext
Link copied to clipboard
fun createPangoContext(): Context
createPangoLayout
Link copied to clipboard
fun createPangoLayout(text: String? = null): Layout
dragCheckThreshold
Link copied to clipboard
fun dragCheckThreshold(startX: Int, startY: Int, currentX: Int, currentY: Int): Boolean
errorBell
Link copied to clipboard
fun errorBell()
forwardDisplayLine
Link copied to clipboard
fun forwardDisplayLine(iter: TextIter): Boolean
forwardDisplayLineEnd
Link copied to clipboard
fun forwardDisplayLineEnd(iter: TextIter): Boolean
getAncestor
Link copied to clipboard
fun getAncestor(type: GType): Widget?
getCursorLocations
Link copied to clipboard
fun getCursorLocations(iter: TextIter): TextView.CursorLocations
getGutter
Link copied to clipboard
fun getGutter(win: TextView.TextWindowType): Widget?
getIterAtLocation
Link copied to clipboard
fun getIterAtLocation(x: Int, y: Int): TextIter?
getIterAtPosition
Link copied to clipboard
fun getIterAtPosition(x: Int, y: Int): Pair<TextIter, Int>
getIterLocation
Link copied to clipboard
fun getIterLocation(iter: TextIter): Rectangle
getLineAtY
Link copied to clipboard
fun getLineAtY(y: Int): TextView.LineAtY
getLineYRange
Link copied to clipboard
fun getLineYRange(iter: TextIter): TextView.YRange
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
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()
imContextFilterKeypress
Link copied to clipboard
fun imContextFilterKeypress(event: Event): Boolean
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)
isAncestor
Link copied to clipboard
fun isAncestor(widget: Widget): 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()
measure
Link copied to clipboard
fun measure(orientation: Orientation, forSize: Int): LayoutManager.MeasureResult
mnemonicActivate
Link copied to clipboard
fun mnemonicActivate(groupCycling: Boolean): Boolean
moveMarkOnscreen
Link copied to clipboard
fun moveMarkOnscreen(mark: TextMark): Boolean
moveOverlay
Link copied to clipboard
fun moveOverlay(child: Widget, xpos: Int, ypos: Int)
moveVisually
Link copied to clipboard
fun moveVisually(iter: TextIter, count: Int): Boolean
pick
Link copied to clipboard
fun pick(x: Double, y: Double, pickFlags: UInt): Widget?
placeCursorOnscreen
Link copied to clipboard
fun placeCursorOnscreen(): Boolean
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
remove
Link copied to clipboard
fun remove(child: Widget)
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)
resetCursorBlink
Link copied to clipboard
fun resetCursorBlink()
resetImContext
Link copied to clipboard
fun resetImContext()
scrollMarkOnscreen
Link copied to clipboard
fun scrollMarkOnscreen(mark: TextMark)
scrollToIter
Link copied to clipboard
fun scrollToIter(iter: TextIter, withinMargin: Double, useAlign: Boolean, xAlign: Double, yAlign: Double)
scrollToMark
Link copied to clipboard
fun scrollToMark(mark: TextMark, withinMargin: Double, useAlign: Boolean, xAlign: Double, yAlign: Double)
set
Link copied to clipboard
fun set(propertyName: String, boolean: Boolean)
fun set(propertyName: String, string: String)
setCursorFromName
Link copied to clipboard
fun setCursorFromName(name: String)
setGutter
Link copied to clipboard
fun setGutter(winType: TextView.TextWindowType, widget: Widget?)
setQueryTooltipCallback
Link copied to clipboard
fun setQueryTooltipCallback(action: QueryTooltipFunction): SignalManager
setStateFlags
Link copied to clipboard
fun setStateFlags(flags: GtkStateFlags, clear: Boolean)
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)
startsDisplayLine
Link copied to clipboard
fun startsDisplayLine(iter: TextIter): Boolean
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()
unsetStateFlags
Link copied to clipboard
fun unsetStateFlags(flags: GtkStateFlags)
windowToBufferCords
Link copied to clipboard
fun windowToBufferCords(winType: TextView.TextWindowType, windowX: Int, windowY: Int): Coordinates

Properties

acceptsTab
Link copied to clipboard
var acceptsTab: Boolean
accessiblePointer
Link copied to clipboard
open override val accessiblePointer: CPointer<GtkAccessible>
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
border
Link copied to clipboard
open val border: Border
bottomMargin
Link copied to clipboard
var bottomMargin: Int
buffer
Link copied to clipboard
var buffer: TextBuffer?
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
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?
cursorVisible
Link copied to clipboard
var cursorVisible: Boolean
direction
Link copied to clipboard
var direction: TextDirection
display
Link copied to clipboard
val display: Display
editable
Link copied to clipboard
var editable: Boolean
extraMenu
Link copied to clipboard
var extraMenu: MenuModel
firstChild
Link copied to clipboard
val firstChild: Widget?
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
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
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
horizontalScrollPolicy
Link copied to clipboard
open var horizontalScrollPolicy: Scrollable.Policy
indent
Link copied to clipboard
var indent: Int
inputHints
Link copied to clipboard
var inputHints: GtkInputHints
inputPurpose
Link copied to clipboard
var inputPurpose: InputPurpose
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
justification
Link copied to clipboard
var justification: Justification
lastChild
Link copied to clipboard
val lastChild: Widget?
layoutManager
Link copied to clipboard
var layoutManager: LayoutManager?
leftMargin
Link copied to clipboard
var leftMargin: Int
ltrContext
Link copied to clipboard
val ltrContext: Context
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>
monospace
Link copied to clipboard
var monospace: Boolean
name
Link copied to clipboard
var name: String?
native
Link copied to clipboard
val native: Native?
nextSibling
Link copied to clipboard
val nextSibling: Widget?
opacity
Link copied to clipboard
var opacity: Double
overflow
Link copied to clipboard
var overflow: Overflow
overwrite
Link copied to clipboard
var overwrite: Boolean
pangoContext
Link copied to clipboard
val pangoContext: Context
parent
Link copied to clipboard
var parent: Widget?
pixelsAboveLines
Link copied to clipboard
var pixelsAboveLines: Int
pixelsBelowLines
Link copied to clipboard
var pixelsBelowLines: Int
pixelsInsideWrap
Link copied to clipboard
var pixelsInsideWrap: Int
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
requestMode
Link copied to clipboard
val requestMode: SizeRequestMode
rightMargin
Link copied to clipboard
var rightMargin: Int
root
Link copied to clipboard
val root: Root?
rtlContext
Link copied to clipboard
val rtlContext: Context
scaleFactor
Link copied to clipboard
val scaleFactor: Int
scrollableHorizontalAdjustment
Link copied to clipboard
open var scrollableHorizontalAdjustment: Adjustment
scrollablePointer
Link copied to clipboard
open override val scrollablePointer: CPointer<GtkScrollable>
scrollableVerticalAdjustment
Link copied to clipboard
open var scrollableVerticalAdjustment: Adjustment
sensitive
Link copied to clipboard
var sensitive: Boolean
settings
Link copied to clipboard
val settings: Settings
shouldLayout
Link copied to clipboard
val shouldLayout: 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
tabs
Link copied to clipboard
var tabs: TabArray?
textViewPointer
Link copied to clipboard
val textViewPointer: GtkTextView_autoptr
tooltipMarkup
Link copied to clipboard
var tooltipMarkup: String?
tooltipText
Link copied to clipboard
var tooltipText: String?
topMargin
Link copied to clipboard
var topMargin: Int
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
verticalScrollPolicy
Link copied to clipboard
open var verticalScrollPolicy: Scrollable.Policy
visible
Link copied to clipboard
var visible: Boolean
visibleRectangle
Link copied to clipboard
val visibleRectangle: Rectangle
widgetPointer
Link copied to clipboard
val widgetPointer: WidgetPointer
width
Link copied to clipboard
val width: Int
wrapMode
Link copied to clipboard
var wrapMode: TextView.WrapMode