GuiUtil

Description

static class Tinman.Engine.GUI.GuiUtil

Helper class for this namespace.

Public / Methods

Baseline​For


[Pure]
public static method BaselineFor → (2)

height in : int32

[>=0]
The available height, in pixels.

knobSize in : int32

[>=0]
The knob size, in pixels.

returns → int32

The baseline offset.

Computes a nice looking baseline offset for a knob.

Knob​Size​For


[Pure]
public static method KnobSizeFor → (1)

font in : PixelFont

[not-null]
The font.

returns → int32

The knob size, in pixels.

Computes a nice knob size for the given font.