Table of Contents

Class GuiElementCompactScrollbar

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public class GuiElementCompactScrollbar : GuiElementScrollbar, IDisposable
Inheritance
GuiElementCompactScrollbar
Implements
Inherited Members

Constructors

GuiElementCompactScrollbar(ICoreClientAPI, Action<float>, ElementBounds)

Scrollbar constructor.

public GuiElementCompactScrollbar(ICoreClientAPI capi, Action<float> onNewScrollbarValue, ElementBounds bounds)

Parameters

capi ICoreClientAPI

Client API

onNewScrollbarValue Action<float>

Event for the changing of the scrollbar or scrolling of the mousewheel.

bounds ElementBounds

the bounding box of the scrollbar.

Fields

scrollbarPadding

The padding around the scrollbar.

public static int scrollbarPadding

Field Value

int

Properties

Focusable

Can this GUIElement be focusable? (default: true).

public override bool Focusable { get; }

Property Value

bool

Methods

ComposeElements(Context, ImageSurface)

Composes the element.

public override void ComposeElements(Context ctxStatic, ImageSurface surface)

Parameters

ctxStatic Context

The context of the element

surface ImageSurface

The surface of the image for the element (Not used, can be null.)

RecomposeHandle()

public override void RecomposeHandle()

RenderInteractiveElements(float)

Renders the element.

public override void RenderInteractiveElements(float deltaTime)

Parameters

deltaTime float

The amount of time that has passed.