Class: MG::Layout

Inherits:
Widget show all
Defined in:
motion-game

Direct Known Subclasses

Scroll

Properties (collapse)

Attributes inherited from Widget

#enabled?, #highlighted?

Attributes inherited from Node

#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #visible?, #z_index

Constructors (collapse)

Methods inherited from Widget

#on_touch

Methods inherited from Node

#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #parent

Constructor Details

- (Layout) initialize

Creates a new List widget.



788
# File 'motion-game', line 788

def initialize; end

Instance Attribute Details

- (Color) background_color

Returns the background color of the widget.

Returns:

  • (Color)

    the background color of the widget.



797
798
799
# File 'motion-game', line 797

def background_color
  @background_color
end

- (Boolean) clipping?

Returns whether the layout can clip its content and children (default is false).

Returns:

  • (Boolean)

    whether the layout can clip its content and children (default is false).



801
802
803
# File 'motion-game', line 801

def clipping?
  @clipping?
end

- (:absolute, ...) type

Returns the layout type.

Returns:

  • (:absolute, :vertical, :horizontal, :relative)

    the layout type.



794
795
796
# File 'motion-game', line 794

def type
  @type
end