Table of Contents

Class GuiElementEmbossedText

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

Constructors

GuiElementEmbossedText(ICoreClientAPI, string, CairoFont, ElementBounds)

Creates a new embossed text element.

public GuiElementEmbossedText(ICoreClientAPI capi, string text, CairoFont font, ElementBounds bounds)

Parameters

capi ICoreClientAPI

The Client API

text string

The text of the component.

font CairoFont

The font of the text.

bounds ElementBounds

The bounds of the component.

Fields

Padding

public static int Padding

Field Value

int

Methods

ComposeTextElements(Context, ImageSurface)

public override void ComposeTextElements(Context ctxStatic, ImageSurface surfaceStatic)

Parameters

ctxStatic Context
surfaceStatic ImageSurface

Dispose()

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

public override void Dispose()

IsEnabled()

Whether or not the component is enabled.

public bool IsEnabled()

Returns

bool

RenderInteractiveElements(float)

Renders the element as an interactive element.

public override void RenderInteractiveElements(float deltaTime)

Parameters

deltaTime float

The change in time.

SetEnabled(bool)

Sets whether or not the component is enabled.

public void SetEnabled(bool enabled)

Parameters

enabled bool