Skip to content
Eduard Gushchin edited this page Jun 24, 2026 · 3 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.Panel
Namespace Electron2D
Kind class
Category UI and Text

Overview

Provides a rectangular UI control used as a simple visual panel.

Syntax

public class Electron2D.Panel : Electron2D.Control

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: Panel

Rectangular UI panel control with basic canvas drawing and inherited layout/input state.

Remarks

Panel submits one filled rectangle that matches Electron2D.Control.Size. It is intended for simple runtime interface backgrounds and container decoration in the 0.1.0 Preview UI subset.

Thread Safety

This type is not synchronized. Create and mutate panels on the main scene thread.

Since

This type is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Control

Members

Member Kind Summary
Electron2D.Panel() Constructor Initializes a new instance of the Electron2D.Panel class.
_Draw() Method Draws the panel rectangle.

Member Details

Electron2D.Panel()

Kind: Constructor

public Electron2D.Panel()

Summary

Initializes a new instance of the Electron2D.Panel class.

Remarks

The new panel uses the inherited Electron2D.Control.MouseFilter and drawing state until changed by user code.

Thread Safety

This constructor is not synchronized. Call it from the main scene thread.

Since

This constructor is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Panel

_Draw()

Kind: Method

public System.Void _Draw()()

Summary

Draws the panel rectangle.

Remarks

The preview implementation uses a neutral default fill color. Full theme style boxes are outside the current runtime API scope.

Thread Safety

This callback is invoked on the main scene thread.

Since

This method is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.CanvasItem.DrawRect(Electron2D.Rect2,Electron2D.Color,System.Boolean,System.Single,System.Boolean)

Clone this wiki locally