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
capi
ICoreClientAPIClient API
onNewScrollbarValue
Action<float>Event for the changing of the scrollbar or scrolling of the mousewheel.
bounds
ElementBoundsthe 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
ctxStatic
ContextThe context of the element
surface
ImageSurfaceThe 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
floatThe amount of time that has passed.