ScummVM API documentation
Sci::TextEditor Struct Reference

Public Attributes

reg_t bitmap
 
int16 width
 
Common::String text
 
Common::Rect textRect
 
int16 borderColor
 
uint8 foreColor
 
uint8 backColor
 
uint8 skipColor
 
GuiResourceId fontId
 
uint16 cursorCharPosition
 
bool cursorIsDrawn
 
Common::Rect cursorRect
 
uint16 maxLength
 

Member Data Documentation

◆ bitmap

reg_t Sci::TextEditor::bitmap

The bitmap where the editor is rendered.

◆ width

int16 Sci::TextEditor::width

The width of the editor, in bitmap pixels.

◆ text

Common::String Sci::TextEditor::text

The text in the editor.

◆ textRect

Common::Rect Sci::TextEditor::textRect

The rect where text should be drawn into the editor, in bitmap pixels.

◆ borderColor

int16 Sci::TextEditor::borderColor

The color of the border. -1 indicates no border.

◆ foreColor

uint8 Sci::TextEditor::foreColor

The text color.

◆ backColor

uint8 Sci::TextEditor::backColor

The background color.

◆ skipColor

uint8 Sci::TextEditor::skipColor

The transparent color.

◆ fontId

GuiResourceId Sci::TextEditor::fontId

The font used to render the text in the editor.

◆ cursorCharPosition

uint16 Sci::TextEditor::cursorCharPosition

The current position of the cursor within the editor.

◆ cursorIsDrawn

bool Sci::TextEditor::cursorIsDrawn

Whether or not the cursor is currently drawn to the screen.

◆ cursorRect

Common::Rect Sci::TextEditor::cursorRect

The rectangle for drawing the input cursor, in bitmap pixels.

◆ maxLength

uint16 Sci::TextEditor::maxLength

The maximum allowed text length, in characters.


The documentation for this struct was generated from the following file: