Class CellAreaContext
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class CellAreaContext : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
CellAreaContext
- Implements
- Inherited Members
Constructors
CellAreaContext(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public CellAreaContext(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
CellAreaContext(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected CellAreaContext(CreationData data)
Parameters
dataCreationData
CellAreaContext(CellAreaContextHandle)
protected CellAreaContext(CellAreaContextHandle handle)
Parameters
handleCellAreaContextHandle
Fields
AreaPropertyDefinition
public static readonly Property<CellArea?, CellAreaContext> AreaPropertyDefinition
Field Value
MinimumHeightPropertyDefinition
public static readonly Property<int, CellAreaContext> MinimumHeightPropertyDefinition
Field Value
MinimumWidthPropertyDefinition
public static readonly Property<int, CellAreaContext> MinimumWidthPropertyDefinition
Field Value
NaturalHeightPropertyDefinition
public static readonly Property<int, CellAreaContext> NaturalHeightPropertyDefinition
Field Value
NaturalWidthPropertyDefinition
public static readonly Property<int, CellAreaContext> NaturalWidthPropertyDefinition
Field Value
Properties
Area
public CellArea? Area { get; }
Property Value
MinimumHeight
public int MinimumHeight { get; }
Property Value
MinimumWidth
public int MinimumWidth { get; }
Property Value
NaturalHeight
public int NaturalHeight { get; }
Property Value
NaturalWidth
public int NaturalWidth { get; }
Property Value
Methods
Allocate(int, int)
public void Allocate(int width, int height)
Parameters
GetAllocation(out int, out int)
public void GetAllocation(out int width, out int height)
Parameters
GetArea()
public CellArea GetArea()
Returns
GetGType()
public static Type GetGType()
Returns
GetPreferredHeight(out int, out int)
public void GetPreferredHeight(out int minimumHeight, out int naturalHeight)
Parameters
GetPreferredHeightForWidth(int, out int, out int)
public void GetPreferredHeightForWidth(int width, out int minimumHeight, out int naturalHeight)
Parameters
GetPreferredWidth(out int, out int)
public void GetPreferredWidth(out int minimumWidth, out int naturalWidth)
Parameters
GetPreferredWidthForHeight(int, out int, out int)
public void GetPreferredWidthForHeight(int height, out int minimumWidth, out int naturalWidth)
Parameters
NewFromPointer(nint, bool)
Creates a new managed CellAreaContext instance for a given pointer.
public static CellAreaContext NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new CellAreaContext and sets the properties specified by the construct arguments.
public static CellAreaContext NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PushPreferredHeight(int, int)
public void PushPreferredHeight(int minimumHeight, int naturalHeight)
Parameters
PushPreferredWidth(int, int)
public void PushPreferredWidth(int minimumWidth, int naturalWidth)
Parameters
Reset()
public void Reset()