CenterContainer

Inherits: Container < Control < CanvasItem < Node < Object

Category: Core

Brief Description

Keeps children controls centered.

Member Functions

bool is_using_top_left ( ) const
void set_use_top_left ( bool enable )

Member Variables

Description

CenterContainer Keeps children controls centered. This container keeps all children to their minimum size, in the center.

Member Function Description

  • bool is_using_top_left ( ) const

Should put children to the top left corner instead of center of the container.

  • void set_use_top_left ( bool enable )

This function will anchor the container children to the top left corner of the the container boundaries, moving all its children to that position, (the children new center will be the top left corner of the container).