Canvas Toolkit
← Class index

CStyleOptionLineEdit

GUI and styling · extends CStyleOption

Contains style information used to render a line edit.

import { CStyleOptionLineEdit } from "canvas-toolkit-lib";

Declared members

text: string;

Returns or updates the text value.

horizontalOffset: number;

Horizontal displacement of text and selection, in pixels.

cursorPosition: number;

Returns or updates the cursor position value.

cursorVisible: boolean;

Returns or updates the cursor visible value.

selectionStart: number;

Returns or updates the selection start value.

selectionEnd: number;

Returns or updates the selection end value.

placeholderText: string;

Placeholder text

focus: boolean;

Focus flag

constructor(other?: CStyleOptionLineEdit | null);

Creates a new CStyleOptionLineEdit instance. @param other Other.

initFromLineEdit(lineEdit: CLineEdit): void;

Initializes this style option from the specified line edit. @param lineEdit Line edit.