Class LayoutXY
Functions
Function | summury |
---|---|
__init__(self, obj=None, direction=0) | |
add_child(self, key, node, layout=True) | |
remove_child(self, key, layout=True) | |
get_children(self) | |
align_x(self, align=0) | Define how cells are aligned on horizontal axis (more…) |
align_y(self, align=0) | Define how cells are aligned on vertical axis (more…) |
set_layout(self) | |
set_layout_up_down(self) | |
set_layout_down_up(self) | |
set_layout_left_right(self) | |
set_layout_right_left(self) | |
set_layout_square(self) | |
set_layout_grid(self) | |
set_direction(self, direction=0) | |
set_background(self, texture=None) | |
show_background(self, show=True) |
Methods desciption :
init
def __init__(self, obj=None, direction=0)
add_child
def add_child(self, key, node, layout=True)
remove_child
def remove_child(self, key, layout=True)
get_children
def get_children(self)
align_x
def align_x(self, align=0)
Define how cells are aligned on horizontal axis
- → align : LayoutXY.ALIGN_LEFT : left aligned LayoutXY.ALIGN_RIGHT : right aligned LayoutXY.ALIGN_CENTER : centered
align_y
def align_y(self, align=0)
Define how cells are aligned on vertical axis
- → align : LayoutXY.ALIGN_BOTTOM: bottom aligned LayoutXY.ALIGN_TOP : top aligned LayoutXY.ALIGN_CENTER : centered
set_layout
def set_layout(self)
set_layout_up_down
def set_layout_up_down(self)
set_layout_down_up
def set_layout_down_up(self)
set_layout_left_right
def set_layout_left_right(self)
set_layout_right_left
def set_layout_right_left(self)
set_layout_square
def set_layout_square(self)
set_layout_grid
def set_layout_grid(self)
set_direction
def set_direction(self, direction=0)
set_background
def set_background(self, texture=None)
show_background
def show_background(self, show=True)