Table of Contents

Class Scale

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class Scale
Inheritance
Scale
Inherited Members

Methods

AddMark(IntPtr, double, PositionType, NullableUtf8StringHandle)

Calls native method gtk_scale_add_mark.

public static extern void AddMark(IntPtr scale, double value, PositionType position, NullableUtf8StringHandle markup)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

value double

Transfer ownership: None Nullable: False

position PositionType

Transfer ownership: None Nullable: False

markup NullableUtf8StringHandle

Transfer ownership: None Nullable: True

ClearMarks(IntPtr)

Calls native method gtk_scale_clear_marks.

public static extern void ClearMarks(IntPtr scale)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

GetDigits(IntPtr)

Calls native method gtk_scale_get_digits.

public static extern int GetDigits(IntPtr scale)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetDrawValue(IntPtr)

Calls native method gtk_scale_get_draw_value.

public static extern bool GetDrawValue(IntPtr scale)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetGType()

Calls native function gtk_scale_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetHasOrigin(IntPtr)

Calls native method gtk_scale_get_has_origin.

public static extern bool GetHasOrigin(IntPtr scale)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetLayout(IntPtr)

Calls native method gtk_scale_get_layout.

public static extern IntPtr GetLayout(IntPtr scale)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetLayoutOffsets(IntPtr, out int, out int)

Calls native method gtk_scale_get_layout_offsets.

public static extern void GetLayoutOffsets(IntPtr scale, out int x, out int y)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

x int

Transfer ownership: Full Nullable: False

y int

Transfer ownership: Full Nullable: False

GetValuePos(IntPtr)

Calls native method gtk_scale_get_value_pos.

public static extern PositionType GetValuePos(IntPtr scale)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

Returns

PositionType

Transfer ownership: None Nullable: False

New(Orientation, IntPtr)

Calls native constructor gtk_scale_new.

public static extern IntPtr New(Orientation orientation, IntPtr adjustment)

Parameters

orientation Orientation

Transfer ownership: None Nullable: False

adjustment IntPtr

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

NewWithRange(Orientation, double, double, double)

Calls native constructor gtk_scale_new_with_range.

public static extern IntPtr NewWithRange(Orientation orientation, double min, double max, double step)

Parameters

orientation Orientation

Transfer ownership: None Nullable: False

min double

Transfer ownership: None Nullable: False

max double

Transfer ownership: None Nullable: False

step double

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

SetDigits(IntPtr, int)

Calls native method gtk_scale_set_digits.

public static extern void SetDigits(IntPtr scale, int digits)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

digits int

Transfer ownership: None Nullable: False

SetDrawValue(IntPtr, bool)

Calls native method gtk_scale_set_draw_value.

public static extern void SetDrawValue(IntPtr scale, bool drawValue)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

drawValue bool

Transfer ownership: None Nullable: False

SetFormatValueFunc(IntPtr, ScaleFormatValueFunc, IntPtr, DestroyNotify)

Calls native method gtk_scale_set_format_value_func.

public static extern void SetFormatValueFunc(IntPtr scale, ScaleFormatValueFunc func, IntPtr userData, DestroyNotify destroyNotify)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

func ScaleFormatValueFunc

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

destroyNotify DestroyNotify

Transfer ownership: None Nullable: True

SetHasOrigin(IntPtr, bool)

Calls native method gtk_scale_set_has_origin.

public static extern void SetHasOrigin(IntPtr scale, bool hasOrigin)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

hasOrigin bool

Transfer ownership: None Nullable: False

SetValuePos(IntPtr, PositionType)

Calls native method gtk_scale_set_value_pos.

public static extern void SetValuePos(IntPtr scale, PositionType pos)

Parameters

scale IntPtr

Transfer ownership: None Nullable: False

pos PositionType

Transfer ownership: None Nullable: False