Knob

Description

struct Tinman.Engine.GUI.Components.Knob

Helper for drawing a knob on a slider.

Public / Constructors

Knob


public constructor Knob → (3)

color in : ColorScheme

The color scheme.

knobSize in : int32

The knob size, in pixels.

sliderLength in : int32

The slider length, in pixels.

Creates a new instance of Knob.

Public / Methods

Draw​Knob


public method DrawKnob → (4)

graphics in : Graphics

[not-null]
The graphics object to use.

bitmap in : IResourceHandle

[not-null]
The knob bitmap.

in : int32

X-coordinate to top-left knob corner.

in : int32

Y-coordinate to top-left knob corner.

Draws the knob.

Draw​Slider


public method DrawSlider → (4)

graphics in : Graphics

[not-null]
The graphics object to use.

in : int32

X-coordinate to top-left slider corner.

in : int32

Y-coordinate to top-left slider corner.

horizontal in : bool

Draw horizontal slider (true) or vertical slider (false)?

Draws the slider.

Public / Attributes

Knob​Size


public readonly attribute KnobSize → (int32)

The knob size, in pixels.

Slider​Length


public readonly attribute SliderLength → (int32)

Length of the slider, in pixels.

Slider​Size


public attribute SliderSize → (get)

value : int32

The breadth.

The breadth of the slider.