Class CellRenderer
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class CellRenderer : InitiallyUnowned, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
CellRenderer
- Implements
- Derived
- Inherited Members
Constructors
CellRenderer(params ConstructArgument[])
public CellRenderer(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
CellRenderer(CellRendererHandle)
public CellRenderer(CellRendererHandle handle)
Parameters
handle
CellRendererHandle
Fields
CellBackgroundPropertyDefinition
public static readonly Property<string?, CellRenderer> CellBackgroundPropertyDefinition
Field Value
CellBackgroundRgbaPropertyDefinition
public static readonly Property<RGBA, CellRenderer> CellBackgroundRgbaPropertyDefinition
Field Value
CellBackgroundSetPropertyDefinition
public static readonly Property<bool, CellRenderer> CellBackgroundSetPropertyDefinition
Field Value
EditingCanceledSignal
Signal Descriptor for OnEditingCanceled.
public static readonly Signal<CellRenderer> EditingCanceledSignal
Field Value
EditingPropertyDefinition
public static readonly Property<bool, CellRenderer> EditingPropertyDefinition
Field Value
EditingStartedSignal
Signal Descriptor for OnEditingStarted.
public static readonly Signal<CellRenderer, CellRenderer.EditingStartedSignalArgs> EditingStartedSignal
Field Value
HeightPropertyDefinition
public static readonly Property<int, CellRenderer> HeightPropertyDefinition
Field Value
IsExpandedPropertyDefinition
public static readonly Property<bool, CellRenderer> IsExpandedPropertyDefinition
Field Value
IsExpanderPropertyDefinition
public static readonly Property<bool, CellRenderer> IsExpanderPropertyDefinition
Field Value
ModePropertyDefinition
public static readonly Property<CellRendererMode, CellRenderer> ModePropertyDefinition
Field Value
SensitivePropertyDefinition
public static readonly Property<bool, CellRenderer> SensitivePropertyDefinition
Field Value
VisiblePropertyDefinition
public static readonly Property<bool, CellRenderer> VisiblePropertyDefinition
Field Value
WidthPropertyDefinition
public static readonly Property<int, CellRenderer> WidthPropertyDefinition
Field Value
XalignPropertyDefinition
public static readonly Property<float, CellRenderer> XalignPropertyDefinition
Field Value
XpadPropertyDefinition
public static readonly Property<uint, CellRenderer> XpadPropertyDefinition
Field Value
YalignPropertyDefinition
public static readonly Property<float, CellRenderer> YalignPropertyDefinition
Field Value
YpadPropertyDefinition
public static readonly Property<uint, CellRenderer> YpadPropertyDefinition
Field Value
Properties
CellBackground
public string? CellBackground { set; }
Property Value
CellBackgroundRgba
public RGBA CellBackgroundRgba { get; set; }
Property Value
CellBackgroundSet
public bool CellBackgroundSet { get; set; }
Property Value
Editing
public bool Editing { get; }
Property Value
Height
public int Height { get; set; }
Property Value
IsExpanded
public bool IsExpanded { get; set; }
Property Value
IsExpander
public bool IsExpander { get; set; }
Property Value
Mode
public CellRendererMode Mode { get; set; }
Property Value
Sensitive
public bool Sensitive { get; set; }
Property Value
Visible
public bool Visible { get; set; }
Property Value
Width
public int Width { get; set; }
Property Value
Xalign
public float Xalign { get; set; }
Property Value
Xpad
public uint Xpad { get; set; }
Property Value
Yalign
public float Yalign { get; set; }
Property Value
Ypad
public uint Ypad { get; set; }
Property Value
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
Eventwidget
Widgetpath
stringbackgroundArea
RectanglecellArea
Rectangleflags
CellRendererState
Returns
GetAlignment(out float, out float)
public void GetAlignment(out float xalign, out float yalign)
Parameters
GetFixedSize(out int, out int)
public void GetFixedSize(out int width, out int height)
Parameters
GetGType()
public static Type GetGType()
Returns
GetIsExpanded()
public bool GetIsExpanded()
Returns
GetIsExpander()
public bool GetIsExpander()
Returns
GetPadding(out int, out int)
public void GetPadding(out int xpad, out int ypad)
Parameters
GetPreferredHeight(Widget, out int, out int)
public void GetPreferredHeight(Widget widget, out int minimumSize, out int naturalSize)
Parameters
GetPreferredHeightForWidth(Widget, int, out int, out int)
public void GetPreferredHeightForWidth(Widget widget, int width, out int minimumHeight, out int naturalHeight)
Parameters
GetPreferredWidth(Widget, out int, out int)
public void GetPreferredWidth(Widget widget, out int minimumSize, out int naturalSize)
Parameters
GetPreferredWidthForHeight(Widget, int, out int, out int)
public void GetPreferredWidthForHeight(Widget widget, int height, out int minimumWidth, out int naturalWidth)
Parameters
GetRequestMode()
public SizeRequestMode GetRequestMode()
Returns
GetSensitive()
public bool GetSensitive()
Returns
GetState(Widget?, CellRendererState)
public StateFlags GetState(Widget? widget, CellRendererState cellState)
Parameters
widget
WidgetcellState
CellRendererState
Returns
GetVisible()
public bool GetVisible()
Returns
IsActivatable()
public bool IsActivatable()
Returns
SetAlignment(float, float)
public void SetAlignment(float xalign, float yalign)
Parameters
SetFixedSize(int, int)
public void SetFixedSize(int width, int height)
Parameters
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
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
Snapshotwidget
WidgetbackgroundArea
RectanglecellArea
Rectangleflags
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
Eventwidget
Widgetpath
stringbackgroundArea
RectanglecellArea
Rectangleflags
CellRendererState
Returns
StopEditing(bool)
public void StopEditing(bool canceled)
Parameters
canceled
bool
Events
OnEditingCanceled
public event SignalHandler<CellRenderer> OnEditingCanceled
Event Type
OnEditingStarted
public event SignalHandler<CellRenderer, CellRenderer.EditingStartedSignalArgs> OnEditingStarted