Table of Contents

Class GuiElementClipHelpler

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public static class GuiElementClipHelpler
Inheritance
GuiElementClipHelpler
Inherited Members

Methods

BeginClip(GuiComposer, ElementBounds)

Add a clip area. Thhis select an area to be rendered, where anything outside will be invisible. Useful for scrollable content. Can be called multiple times, to reduce the render area further, but needs an equal amount of calls to EndClip()

public static GuiComposer BeginClip(this GuiComposer composer, ElementBounds bounds)

Parameters

composer GuiComposer
bounds ElementBounds

The bounds of the object.

Returns

GuiComposer

EndClip(GuiComposer)

Remove a previously added clip area.

public static GuiComposer EndClip(this GuiComposer composer)

Parameters

composer GuiComposer

Returns

GuiComposer