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
ICoreClientAPIThe client API
bounds
ElementBoundsThe bounds of the text area.
OnTextChanged
Action<string>The event fired when the text is changed.
font
CairoFontThe font of the text.
Fields
Autoheight
public bool Autoheight
Field Value
Methods
ComposeTextElements(Context, ImageSurface)
public override void ComposeTextElements(Context ctx, ImageSurface surface)
Parameters
ctx
Contextsurface
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
floatThe change in time.
SetFont(CairoFont)
public void SetFont(CairoFont cairoFont)
Parameters
cairoFont
CairoFont