Class GuiElementCompactScrollbar
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
public class GuiElementCompactScrollbar : GuiElementScrollbar, IDisposable
- Inheritance
-
GuiElementCompactScrollbar
- Implements
- Inherited Members
- Extension Methods
Constructors
GuiElementCompactScrollbar(ICoreClientAPI, Action<float>, ElementBounds)
Scrollbar constructor.
public GuiElementCompactScrollbar(ICoreClientAPI capi, Action<float> onNewScrollbarValue, ElementBounds bounds)
Parameters
capiICoreClientAPIClient API
onNewScrollbarValueAction<float>Event for the changing of the scrollbar or scrolling of the mousewheel.
boundsElementBoundsthe bounding box of the scrollbar.
Fields
scrollbarPadding
The padding around the scrollbar.
public static int scrollbarPadding
Field Value
Properties
Focusable
Can this GUIElement be focusable? (default: true).
public override bool Focusable { get; }
Property Value
Methods
ComposeElements(Context, ImageSurface)
Composes the element.
public override void ComposeElements(Context ctxStatic, ImageSurface surface)
Parameters
ctxStaticContextThe context of the element
surfaceImageSurfaceThe 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
deltaTimefloatThe amount of time that has passed.