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
capiICoreClientAPIThe client API
boundsElementBoundsThe bounds of the text area.
OnTextChangedAction<string>The event fired when the text is changed.
fontCairoFontThe font of the text.
Fields
Autoheight
public bool Autoheight
Field Value
Methods
ComposeTextElements(Context, ImageSurface)
public override void ComposeTextElements(Context ctx, ImageSurface surface)
Parameters
ctxContextsurfaceImageSurface
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
deltaTimefloatThe change in time.
SetFont(CairoFont)
public void SetFont(CairoFont cairoFont)
Parameters
cairoFontCairoFont