Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
- AnimationMixer (2)
- AudioStreamPlayer
- CanvasItem (2)
- CanvasLayer (1)
- EditorFileSystem
- EditorPlugin (1)
- EditorResourcePreview
- HTTPRequest
- InstancePlaceholder
- MissingNode
- MultiplayerSpawner
- MultiplayerSynchronizer
- NavigationAgent2D
- NavigationAgent3D
- Node3D (31)
- ResourcePreloader
- ShaderGlobalsOverride
- StatusIndicator
- Timer
- Viewport (2)
- WorldEnvironment
- BaseButton (3)
- ColorRect
- Container (13)
- GraphEdit
- ItemList
- Label
- LineEdit
- MenuBar
- NinePatchRect
- Panel
- Range (6)
- ReferenceRect
- RichTextLabel
- Separator (2)
- TabBar
- TextEdit (1)
- TextureRect
- Tree
- VideoStreamPlayer
- AspectRatioContainer
- BoxContainer (2)
- CenterContainer
- EditorProperty
- FlowContainer (2)
- GraphElement (2)
- GridContainer
- MarginContainer
- PanelContainer (2)
- ScrollContainer (1)
- SplitContainer (2)
- SubViewportContainer
- TabContainer
Table of contents
-
var mouse_filter = MOUSE_FILTER_PASS -
virtual const func _get_allowed_size_flags_horizontal() -> PackedInt32Array -
virtual const func _get_allowed_size_flags_vertical() -> PackedInt32Array -
func fit_child_in_rect(rect: Rect2) -> void -
func queue_sort() -> void -
const NOTIFICATION_PRE_SORT_CHILDREN = 50 -
const NOTIFICATION_SORT_CHILDREN = 51 -
signal pre_sort_children() -
signal sort_children()
Container #
is_instantiable, Node, core, not_builtin_classes
Base class for all GUI containers.
Base class for all GUI containers. A Container automatically arranges its child controls in a certain way. This class can be inherited to make custom container types.
Members #
var mouse_filter = MOUSE_FILTER_PASS#
Methods #
virtual const func _get_allowed_size_flags_horizontal() -> PackedInt32Array#
Implement to return a list of allowed horizontal Control.SizeFlags for child nodes. This doesn't technically prevent the usages of any other size flags, if your implementation requires that. This only limits the options available to the user in the Inspector dock.
Note: Having no size flags is equal to having Control.SIZE_SHRINK_BEGIN. As such, this value is always implicitly allowed.
virtual const func _get_allowed_size_flags_vertical() -> PackedInt32Array#
Implement to return a list of allowed vertical Control.SizeFlags for child nodes. This doesn't technically prevent the usages of any other size flags, if your implementation requires that. This only limits the options available to the user in the Inspector dock.
Note: Having no size flags is equal to having Control.SIZE_SHRINK_BEGIN. As such, this value is always implicitly allowed.
func fit_child_in_rect(rect: Rect2) -> void#
Fit a child control in a given rect. This is mainly a helper for creating custom container classes.
func queue_sort() -> void#
Queue resort of the contained children. This is called automatically anyway, but can be called upon request.
Annotations #
Constants #
const NOTIFICATION_PRE_SORT_CHILDREN = 50#
Notification just before children are going to be sorted, in case there's something to process beforehand.
const NOTIFICATION_SORT_CHILDREN = 51#
Notification for when sorting the children, it must be obeyed immediately.
Constructors #
Enums #
Notifications#
GDScript
enum {
NOTIFICATION_PRE_SORT_CHILDREN = 50,
NOTIFICATION_SORT_CHILDREN = 51,
}C++ src
enum {
NOTIFICATION_PRE_SORT_CHILDREN = 50,
NOTIFICATION_SORT_CHILDREN = 51,
};Operators #
Signals #
signal pre_sort_children()#
Emitted when children are going to be sorted.
signal sort_children()#
Emitted when sorting the children is needed.