Table of Contents

Class CellRenderer

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class CellRenderer : InitiallyUnowned, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
CellRenderer
Implements
Derived
Inherited Members

Constructors

CellRenderer()

public CellRenderer()

CellRenderer(params ConstructArgument[])

protected CellRenderer(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

CellRenderer(IntPtr, bool)

protected CellRenderer(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

CellBackgroundPropertyDefinition

public static readonly Property<string?, CellRenderer> CellBackgroundPropertyDefinition

Field Value

Property<string, CellRenderer>

CellBackgroundRgbaPropertyDefinition

public static readonly Property<RGBA, CellRenderer> CellBackgroundRgbaPropertyDefinition

Field Value

Property<RGBA, CellRenderer>

CellBackgroundSetPropertyDefinition

public static readonly Property<bool, CellRenderer> CellBackgroundSetPropertyDefinition

Field Value

Property<bool, CellRenderer>

EditingCanceledSignal

Signal Descriptor for OnEditingCanceled.

public static readonly Signal<CellRenderer> EditingCanceledSignal

Field Value

Signal<CellRenderer>

EditingPropertyDefinition

public static readonly Property<bool, CellRenderer> EditingPropertyDefinition

Field Value

Property<bool, CellRenderer>

EditingStartedSignal

Signal Descriptor for OnEditingStarted.

public static readonly Signal<CellRenderer, CellRenderer.EditingStartedSignalArgs> EditingStartedSignal

Field Value

Signal<CellRenderer, CellRenderer.EditingStartedSignalArgs>

HeightPropertyDefinition

public static readonly Property<int, CellRenderer> HeightPropertyDefinition

Field Value

Property<int, CellRenderer>

IsExpandedPropertyDefinition

public static readonly Property<bool, CellRenderer> IsExpandedPropertyDefinition

Field Value

Property<bool, CellRenderer>

IsExpanderPropertyDefinition

public static readonly Property<bool, CellRenderer> IsExpanderPropertyDefinition

Field Value

Property<bool, CellRenderer>

ModePropertyDefinition

public static readonly Property<CellRendererMode, CellRenderer> ModePropertyDefinition

Field Value

Property<CellRendererMode, CellRenderer>

SensitivePropertyDefinition

public static readonly Property<bool, CellRenderer> SensitivePropertyDefinition

Field Value

Property<bool, CellRenderer>

VisiblePropertyDefinition

public static readonly Property<bool, CellRenderer> VisiblePropertyDefinition

Field Value

Property<bool, CellRenderer>

WidthPropertyDefinition

public static readonly Property<int, CellRenderer> WidthPropertyDefinition

Field Value

Property<int, CellRenderer>

XalignPropertyDefinition

public static readonly Property<float, CellRenderer> XalignPropertyDefinition

Field Value

Property<float, CellRenderer>

XpadPropertyDefinition

public static readonly Property<uint, CellRenderer> XpadPropertyDefinition

Field Value

Property<uint, CellRenderer>

YalignPropertyDefinition

public static readonly Property<float, CellRenderer> YalignPropertyDefinition

Field Value

Property<float, CellRenderer>

YpadPropertyDefinition

public static readonly Property<uint, CellRenderer> YpadPropertyDefinition

Field Value

Property<uint, CellRenderer>

Properties

CellBackground

public string? CellBackground { set; }

Property Value

string

CellBackgroundRgba

public RGBA CellBackgroundRgba { get; set; }

Property Value

RGBA

CellBackgroundSet

public bool CellBackgroundSet { get; set; }

Property Value

bool

Editing

public bool Editing { get; }

Property Value

bool

Height

public int Height { get; set; }

Property Value

int

IsExpanded

public bool IsExpanded { get; set; }

Property Value

bool

IsExpander

public bool IsExpander { get; set; }

Property Value

bool

Mode

public CellRendererMode Mode { get; set; }

Property Value

CellRendererMode

Sensitive

public bool Sensitive { get; set; }

Property Value

bool

Visible

public bool Visible { get; set; }

Property Value

bool

Width

public int Width { get; set; }

Property Value

int

Xalign

public float Xalign { get; set; }

Property Value

float

Xpad

public uint Xpad { get; set; }

Property Value

uint

Yalign

public float Yalign { get; set; }

Property Value

float

Ypad

public uint Ypad { get; set; }

Property Value

uint

Methods

Activate(Event, Widget, string, Rectangle, Rectangle, CellRendererState)

public bool Activate(Event @event, Widget widget, string path, Rectangle backgroundArea, Rectangle cellArea, CellRendererState flags)

Parameters

event Event
widget Widget
path string
backgroundArea Rectangle
cellArea Rectangle
flags CellRendererState

Returns

bool

GetAlignment(out float, out float)

public void GetAlignment(out float xalign, out float yalign)

Parameters

xalign float
yalign float

GetFixedSize(out int, out int)

public void GetFixedSize(out int width, out int height)

Parameters

width int
height int

GetGType()

public static Type GetGType()

Returns

Type

GetIsExpanded()

public bool GetIsExpanded()

Returns

bool

GetIsExpander()

public bool GetIsExpander()

Returns

bool

GetPadding(out int, out int)

public void GetPadding(out int xpad, out int ypad)

Parameters

xpad int
ypad int

GetPreferredHeight(Widget, out int, out int)

public void GetPreferredHeight(Widget widget, out int minimumSize, out int naturalSize)

Parameters

widget Widget
minimumSize int
naturalSize int

GetPreferredHeightForWidth(Widget, int, out int, out int)

public void GetPreferredHeightForWidth(Widget widget, int width, out int minimumHeight, out int naturalHeight)

Parameters

widget Widget
width int
minimumHeight int
naturalHeight int

GetPreferredWidth(Widget, out int, out int)

public void GetPreferredWidth(Widget widget, out int minimumSize, out int naturalSize)

Parameters

widget Widget
minimumSize int
naturalSize int

GetPreferredWidthForHeight(Widget, int, out int, out int)

public void GetPreferredWidthForHeight(Widget widget, int height, out int minimumWidth, out int naturalWidth)

Parameters

widget Widget
height int
minimumWidth int
naturalWidth int

GetRequestMode()

public SizeRequestMode GetRequestMode()

Returns

SizeRequestMode

GetSensitive()

public bool GetSensitive()

Returns

bool

GetState(Widget?, CellRendererState)

public StateFlags GetState(Widget? widget, CellRendererState cellState)

Parameters

widget Widget
cellState CellRendererState

Returns

StateFlags

GetVisible()

public bool GetVisible()

Returns

bool

IsActivatable()

public bool IsActivatable()

Returns

bool

SetAlignment(float, float)

public void SetAlignment(float xalign, float yalign)

Parameters

xalign float
yalign float

SetFixedSize(int, int)

public void SetFixedSize(int width, int height)

Parameters

width int
height int

SetIsExpanded(bool)

public void SetIsExpanded(bool isExpanded)

Parameters

isExpanded bool

SetIsExpander(bool)

public void SetIsExpander(bool isExpander)

Parameters

isExpander bool

SetPadding(int, int)

public void SetPadding(int xpad, int ypad)

Parameters

xpad int
ypad int

SetSensitive(bool)

public void SetSensitive(bool sensitive)

Parameters

sensitive bool

SetVisible(bool)

public void SetVisible(bool visible)

Parameters

visible bool

Snapshot(Snapshot, Widget, Rectangle, Rectangle, CellRendererState)

public void Snapshot(Snapshot snapshot, Widget widget, Rectangle backgroundArea, Rectangle cellArea, CellRendererState flags)

Parameters

snapshot Snapshot
widget Widget
backgroundArea Rectangle
cellArea Rectangle
flags CellRendererState

StartEditing(Event?, Widget, string, Rectangle, Rectangle, CellRendererState)

public CellEditable? StartEditing(Event? @event, Widget widget, string path, Rectangle backgroundArea, Rectangle cellArea, CellRendererState flags)

Parameters

event Event
widget Widget
path string
backgroundArea Rectangle
cellArea Rectangle
flags CellRendererState

Returns

CellEditable

StopEditing(bool)

public void StopEditing(bool canceled)

Parameters

canceled bool

Events

OnEditingCanceled

public event SignalHandler<CellRenderer> OnEditingCanceled

Event Type

SignalHandler<CellRenderer>

OnEditingStarted

public event SignalHandler<CellRenderer, CellRenderer.EditingStartedSignalArgs> OnEditingStarted

Event Type

SignalHandler<CellRenderer, CellRenderer.EditingStartedSignalArgs>