Struct ScrollTextLineView
Represents a visible line with its pixel position, produced by GetVisibleLines(float, float) for use during rendering.
Inherited Members
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
public readonly struct ScrollTextLineView
Remarks
Instances of this struct are stored in a cached array that is reused across calls to GetVisibleLines(float, float). Treat each instance as a snapshot valid for the current render frame only; do not hold a reference to the array beyond the frame in which it was retrieved.
Constructors
ScrollTextLineView(string, int, float, float)
Creates a new scroll text line view.
Declaration
public ScrollTextLineView(string text, int lineIndex, float yOffset, float height)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text content. |
| int | lineIndex | The logical line index. |
| float | yOffset | The Y offset from top in pixels. |
| float | height | The height in pixels. |
Fields
Height
The height of this line in pixels.
Declaration
public readonly float Height
Field Value
| Type | Description |
|---|---|
| float |
LineIndex
The logical line index in the buffer.
Declaration
public readonly int LineIndex
Field Value
| Type | Description |
|---|---|
| int |
Text
The text content of this line.
Declaration
public readonly string Text
Field Value
| Type | Description |
|---|---|
| string |
YOffset
The Y offset from the top of the content in pixels.
Declaration
public readonly float YOffset
Field Value
| Type | Description |
|---|---|
| float |