Table of Contents

Class CellRenderer

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

Methods

Activate(IntPtr, IntPtr, IntPtr, NonNullableUtf8StringHandle, RectangleHandle, RectangleHandle, CellRendererState)

Calls native method gtk_cell_renderer_activate.

public static extern bool Activate(IntPtr cell, IntPtr @event, IntPtr widget, NonNullableUtf8StringHandle path, RectangleHandle backgroundArea, RectangleHandle cellArea, CellRendererState flags)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

event IntPtr
widget IntPtr

Transfer ownership: None Nullable: False

path NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

backgroundArea RectangleHandle

Transfer ownership: None Nullable: False

cellArea RectangleHandle

Transfer ownership: None Nullable: False

flags CellRendererState

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetAlignment(IntPtr, out float, out float)

Calls native method gtk_cell_renderer_get_alignment.

public static extern void GetAlignment(IntPtr cell, out float xalign, out float yalign)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

xalign float

Transfer ownership: Full Nullable: False

yalign float

Transfer ownership: Full Nullable: False

GetFixedSize(IntPtr, out int, out int)

Calls native method gtk_cell_renderer_get_fixed_size.

public static extern void GetFixedSize(IntPtr cell, out int width, out int height)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: Full Nullable: False

height int

Transfer ownership: Full Nullable: False

GetGType()

Calls native function gtk_cell_renderer_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetIsExpanded(IntPtr)

Calls native method gtk_cell_renderer_get_is_expanded.

public static extern bool GetIsExpanded(IntPtr cell)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetIsExpander(IntPtr)

Calls native method gtk_cell_renderer_get_is_expander.

public static extern bool GetIsExpander(IntPtr cell)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetPadding(IntPtr, out int, out int)

Calls native method gtk_cell_renderer_get_padding.

public static extern void GetPadding(IntPtr cell, out int xpad, out int ypad)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

xpad int

Transfer ownership: Full Nullable: False

ypad int

Transfer ownership: Full Nullable: False

GetPreferredHeight(IntPtr, IntPtr, out int, out int)

Calls native method gtk_cell_renderer_get_preferred_height.

public static extern void GetPreferredHeight(IntPtr cell, IntPtr widget, out int minimumSize, out int naturalSize)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

widget IntPtr

Transfer ownership: None Nullable: False

minimumSize int

Transfer ownership: Full Nullable: False

naturalSize int

Transfer ownership: Full Nullable: False

GetPreferredHeightForWidth(IntPtr, IntPtr, int, out int, out int)

Calls native method gtk_cell_renderer_get_preferred_height_for_width.

public static extern void GetPreferredHeightForWidth(IntPtr cell, IntPtr widget, int width, out int minimumHeight, out int naturalHeight)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

widget IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

minimumHeight int

Transfer ownership: Full Nullable: False

naturalHeight int

Transfer ownership: Full Nullable: False

GetPreferredWidth(IntPtr, IntPtr, out int, out int)

Calls native method gtk_cell_renderer_get_preferred_width.

public static extern void GetPreferredWidth(IntPtr cell, IntPtr widget, out int minimumSize, out int naturalSize)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

widget IntPtr

Transfer ownership: None Nullable: False

minimumSize int

Transfer ownership: Full Nullable: False

naturalSize int

Transfer ownership: Full Nullable: False

GetPreferredWidthForHeight(IntPtr, IntPtr, int, out int, out int)

Calls native method gtk_cell_renderer_get_preferred_width_for_height.

public static extern void GetPreferredWidthForHeight(IntPtr cell, IntPtr widget, int height, out int minimumWidth, out int naturalWidth)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

widget IntPtr

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

minimumWidth int

Transfer ownership: Full Nullable: False

naturalWidth int

Transfer ownership: Full Nullable: False

GetRequestMode(IntPtr)

Calls native method gtk_cell_renderer_get_request_mode.

public static extern SizeRequestMode GetRequestMode(IntPtr cell)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

Returns

SizeRequestMode

Transfer ownership: None Nullable: False

GetSensitive(IntPtr)

Calls native method gtk_cell_renderer_get_sensitive.

public static extern bool GetSensitive(IntPtr cell)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetState(IntPtr, IntPtr, CellRendererState)

Calls native method gtk_cell_renderer_get_state.

public static extern StateFlags GetState(IntPtr cell, IntPtr widget, CellRendererState cellState)

Parameters

cell IntPtr

Transfer ownership: None Nullable: True

widget IntPtr

Transfer ownership: None Nullable: True

cellState CellRendererState

Transfer ownership: None Nullable: False

Returns

StateFlags

Transfer ownership: None Nullable: False

GetVisible(IntPtr)

Calls native method gtk_cell_renderer_get_visible.

public static extern bool GetVisible(IntPtr cell)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsActivatable(IntPtr)

Calls native method gtk_cell_renderer_is_activatable.

public static extern bool IsActivatable(IntPtr cell)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

SetAlignment(IntPtr, float, float)

Calls native method gtk_cell_renderer_set_alignment.

public static extern void SetAlignment(IntPtr cell, float xalign, float yalign)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

xalign float

Transfer ownership: None Nullable: False

yalign float

Transfer ownership: None Nullable: False

SetFixedSize(IntPtr, int, int)

Calls native method gtk_cell_renderer_set_fixed_size.

public static extern void SetFixedSize(IntPtr cell, int width, int height)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

SetIsExpanded(IntPtr, bool)

Calls native method gtk_cell_renderer_set_is_expanded.

public static extern void SetIsExpanded(IntPtr cell, bool isExpanded)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

isExpanded bool

Transfer ownership: None Nullable: False

SetIsExpander(IntPtr, bool)

Calls native method gtk_cell_renderer_set_is_expander.

public static extern void SetIsExpander(IntPtr cell, bool isExpander)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

isExpander bool

Transfer ownership: None Nullable: False

SetPadding(IntPtr, int, int)

Calls native method gtk_cell_renderer_set_padding.

public static extern void SetPadding(IntPtr cell, int xpad, int ypad)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

xpad int

Transfer ownership: None Nullable: False

ypad int

Transfer ownership: None Nullable: False

SetSensitive(IntPtr, bool)

Calls native method gtk_cell_renderer_set_sensitive.

public static extern void SetSensitive(IntPtr cell, bool sensitive)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

sensitive bool

Transfer ownership: None Nullable: False

SetVisible(IntPtr, bool)

Calls native method gtk_cell_renderer_set_visible.

public static extern void SetVisible(IntPtr cell, bool visible)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

visible bool

Transfer ownership: None Nullable: False

Snapshot(IntPtr, IntPtr, IntPtr, RectangleHandle, RectangleHandle, CellRendererState)

Calls native method gtk_cell_renderer_snapshot.

public static extern void Snapshot(IntPtr cell, IntPtr snapshot, IntPtr widget, RectangleHandle backgroundArea, RectangleHandle cellArea, CellRendererState flags)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

snapshot IntPtr

Transfer ownership: None Nullable: False

widget IntPtr

Transfer ownership: None Nullable: False

backgroundArea RectangleHandle

Transfer ownership: None Nullable: False

cellArea RectangleHandle

Transfer ownership: None Nullable: False

flags CellRendererState

Transfer ownership: None Nullable: False

StartEditing(IntPtr, IntPtr, IntPtr, NonNullableUtf8StringHandle, RectangleHandle, RectangleHandle, CellRendererState)

Calls native method gtk_cell_renderer_start_editing.

public static extern IntPtr StartEditing(IntPtr cell, IntPtr @event, IntPtr widget, NonNullableUtf8StringHandle path, RectangleHandle backgroundArea, RectangleHandle cellArea, CellRendererState flags)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

event IntPtr
widget IntPtr

Transfer ownership: None Nullable: False

path NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

backgroundArea RectangleHandle

Transfer ownership: None Nullable: False

cellArea RectangleHandle

Transfer ownership: None Nullable: False

flags CellRendererState

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

StopEditing(IntPtr, bool)

Calls native method gtk_cell_renderer_stop_editing.

public static extern void StopEditing(IntPtr cell, bool canceled)

Parameters

cell IntPtr

Transfer ownership: None Nullable: False

canceled bool

Transfer ownership: None Nullable: False