Table of Contents

Class GuiElementTextArea

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public class GuiElementTextArea : GuiElementEditableTextBase, IDisposable
Inheritance
GuiElementTextArea
Implements
Inherited Members
Extension Methods

Constructors

GuiElementTextArea(ICoreClientAPI, ElementBounds, Action<string>, CairoFont)

Creates a new text area.

public GuiElementTextArea(ICoreClientAPI capi, ElementBounds bounds, Action<string> OnTextChanged, CairoFont font)

Parameters

capi ICoreClientAPI

The client API

bounds ElementBounds

The bounds of the text area.

OnTextChanged Action<string>

The event fired when the text is changed.

font CairoFont

The font of the text.

Fields

Autoheight

public bool Autoheight

Field Value

bool

Methods

ComposeTextElements(Context, ImageSurface)

public override void ComposeTextElements(Context ctx, ImageSurface surface)

Parameters

ctx Context
surface ImageSurface

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public override void Dispose()

RenderInteractiveElements(float)

Renders the element as an interactive element.

public override void RenderInteractiveElements(float deltaTime)

Parameters

deltaTime float

The change in time.

SetFont(CairoFont)

public void SetFont(CairoFont cairoFont)

Parameters

cairoFont CairoFont