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
ICoreClientAPIThe Client API
text
stringThe text of the component.
font
CairoFontThe font of the text.
bounds
ElementBoundsThe bounds of the component.
Fields
Padding
public static int Padding
Field Value
Methods
ComposeTextElements(Context, ImageSurface)
public override void ComposeTextElements(Context ctxStatic, ImageSurface surfaceStatic)
Parameters
ctxStatic
ContextsurfaceStatic
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
RenderInteractiveElements(float)
Renders the element as an interactive element.
public override void RenderInteractiveElements(float deltaTime)
Parameters
deltaTime
floatThe change in time.
SetEnabled(bool)
Sets whether or not the component is enabled.
public void SetEnabled(bool enabled)
Parameters
enabled
bool