Table of Contents

Class Switch

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

Methods

GetActive(IntPtr)

Calls native method gtk_switch_get_active.

public static extern bool GetActive(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetGType()

Calls native function gtk_switch_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetState(IntPtr)

Calls native method gtk_switch_get_state.

public static extern bool GetState(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

New()

Calls native constructor gtk_switch_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: None Nullable: False

SetActive(IntPtr, bool)

Calls native method gtk_switch_set_active.

public static extern void SetActive(IntPtr self, bool isActive)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

isActive bool

Transfer ownership: None Nullable: False

SetState(IntPtr, bool)

Calls native method gtk_switch_set_state.

public static extern void SetState(IntPtr self, bool state)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

state bool

Transfer ownership: None Nullable: False