Skip to content

ConsoleView

Class | orca.UIKit | extends Node2D

Displays a fixed-size text grid using a monospace layout

Overview

Properties

Property Type Description
BufferWidth int Buffer width
BufferHeight int Buffer height
Cursor int Cursor position
SelectedIndex int Selected item index
DropShadow bool Draw shadow underneath this view
ContentHeight int Current content height in lines

Messages

Println

Write a formatted text line to the character buffer

Field Type Description
Index int
Text string

Erase

Clear the character buffer and reset cursor

Invalidate

Request a repaint of this view

Unpack

Query the item index and glyph located at a pixel coordinate, returned as a packed integer result.

Field Type Description
X float
Y float

GetIndexPosition

Query the pixel position of an item index with optional character offsets, returned as a packed integer result.

Field Type Description
Index int
OffsetX int
OffsetY int
Global bool