Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
Gondwana.Drawing.Direct.IDirectCompositeContainer Interface Reference

Defines a container that can hold and manage a collection of direct composite children. More...

Inheritance diagram for Gondwana.Drawing.Direct.IDirectCompositeContainer:
Gondwana.Drawing.Direct.DirectComposite Gondwana.Widgets.WidgetBase Gondwana.Widgets.ContainerWidget Gondwana.Widgets.Controls.ButtonWidget Gondwana.Widgets.Controls.CheckBoxWidget Gondwana.Widgets.Controls.HyperlinkWidget Gondwana.Widgets.Controls.LabelWidget Gondwana.Widgets.Controls.ListBoxWidget Gondwana.Widgets.Controls.ProgressBarWidget Gondwana.Widgets.Controls.RadioButtonWidget Gondwana.Widgets.Controls.TextBoxWidget Gondwana.Widgets.Dialogs.ConversationBox Gondwana.Widgets.DraggableWidgetBase Gondwana.Widgets.Hud.HealthBarWidget Gondwana.Widgets.Hud.NameTagWidget Gondwana.Widgets.Menus.MenuHeaderWidget Gondwana.Widgets.Menus.MenuItemWidget Gondwana.Widgets.Overlays.PopupWidget Gondwana.Widgets.Overlays.SplashScreen Gondwana.Widgets.Overlays.ToastWidget Gondwana.Widgets.Overlays.TooltipWidget

Public Member Functions

IDirectCompositeContainer Add (IDirectCompositeChild child, bool keepCurrentOffset=true, Vector2? explicitLocalOffsetPx=null)
 Adds a child element to this container.
IDirectCompositeContainer Remove (IDirectCompositeChild child)
 Removes a child element from this container.
IDirectCompositeContainer Clear ()
 Removes all child elements from this container.

Properties

IReadOnlyCollection< IDirectCompositeChild > Children [get]
 Gets the read-only collection of child elements in this container.

Detailed Description

Defines a container that can hold and manage a collection of direct composite children.

Definition at line 8 of file IDirectCompositeContainer.cs.

Member Function Documentation

◆ Add()

IDirectCompositeContainer Gondwana.Drawing.Direct.IDirectCompositeContainer.Add ( IDirectCompositeChild child,
bool keepCurrentOffset = true,
Vector2? explicitLocalOffsetPx = null )

Adds a child element to this container.

Parameters
childThe child element to add to the container.
keepCurrentOffsetIf true, maintains the child's current offset; otherwise, resets the offset.
explicitLocalOffsetPxOptional explicit local offset in pixels to apply to the child.
Returns
The current container instance for method chaining.

Implemented in Gondwana.Drawing.Direct.DirectComposite, Gondwana.Widgets.ContainerWidget, and Gondwana.Widgets.Layout.StackPanelWidget.

◆ Clear()

IDirectCompositeContainer Gondwana.Drawing.Direct.IDirectCompositeContainer.Clear ( )

Removes all child elements from this container.

Returns
The current container instance for method chaining.

Implemented in Gondwana.Drawing.Direct.DirectComposite, Gondwana.Widgets.ContainerWidget, and Gondwana.Widgets.Layout.StackPanelWidget.

◆ Remove()

IDirectCompositeContainer Gondwana.Drawing.Direct.IDirectCompositeContainer.Remove ( IDirectCompositeChild child)

Removes a child element from this container.

Parameters
childThe child element to remove from the container.
Returns
The current container instance for method chaining.

Implemented in Gondwana.Drawing.Direct.DirectComposite, Gondwana.Widgets.ContainerWidget, and Gondwana.Widgets.Layout.StackPanelWidget.

Property Documentation

◆ Children

IReadOnlyCollection<IDirectCompositeChild> Gondwana.Drawing.Direct.IDirectCompositeContainer.Children
get

Gets the read-only collection of child elements in this container.

Implemented in Gondwana.Drawing.Direct.DirectComposite.

Definition at line 13 of file IDirectCompositeContainer.cs.