Class CenterLayout
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class CenterLayout : LayoutManager, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
CenterLayout
- Implements
- Inherited Members
Constructors
CenterLayout(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 CenterLayout(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
CenterLayout(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected CenterLayout(CreationData data)
Parameters
dataCreationData
CenterLayout(CenterLayoutHandle)
protected CenterLayout(CenterLayoutHandle handle)
Parameters
handleCenterLayoutHandle
Fields
ShrinkCenterLastPropertyDefinition
public static readonly Property<bool, CenterLayout> ShrinkCenterLastPropertyDefinition
Field Value
Properties
ShrinkCenterLast
public bool ShrinkCenterLast { get; set; }
Property Value
Methods
GetBaselinePosition()
public BaselinePosition GetBaselinePosition()
Returns
GetCenterWidget()
public Widget? GetCenterWidget()
Returns
GetEndWidget()
public Widget? GetEndWidget()
Returns
GetGType()
public static Type GetGType()
Returns
GetOrientation()
public Orientation GetOrientation()
Returns
GetShrinkCenterLast()
[Version("4.12")]
public bool GetShrinkCenterLast()
Returns
GetStartWidget()
public Widget? GetStartWidget()
Returns
New()
public static CenterLayout New()
Returns
NewFromPointer(nint, bool)
Creates a new managed CenterLayout instance for a given pointer.
public static CenterLayout NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new CenterLayout and sets the properties specified by the construct arguments.
public static CenterLayout NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetBaselinePosition(BaselinePosition)
public void SetBaselinePosition(BaselinePosition baselinePosition)
Parameters
baselinePositionBaselinePosition
SetCenterWidget(Widget?)
public void SetCenterWidget(Widget? widget)
Parameters
widgetWidget
SetEndWidget(Widget?)
public void SetEndWidget(Widget? widget)
Parameters
widgetWidget
SetOrientation(Orientation)
public void SetOrientation(Orientation orientation)
Parameters
orientationOrientation
SetShrinkCenterLast(bool)
[Version("4.12")]
public void SetShrinkCenterLast(bool shrinkCenterLast)
Parameters
shrinkCenterLastbool
SetStartWidget(Widget?)
public void SetStartWidget(Widget? widget)
Parameters
widgetWidget