Class: MG::Layout

Inherits:
Widget show all
Defined in:
doc/API_reference.rb

Direct Known Subclasses

Scroll

Properties collapse

Attributes inherited from Widget

#enabled?, #highlighted?, #touch_enabled?

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, #run_action, #stop_action, #stop_all_actions

Constructor Details

#initializeLayout

Creates a new List widget.



1269
# File 'doc/API_reference.rb', line 1269

def initialize; end

Instance Attribute Details

#background_colorColor

Returns the background color of the widget.

Returns:

  • (Color)

    the background color of the widget.



1278
1279
1280
# File 'doc/API_reference.rb', line 1278

def background_color
  @background_color
end

#clipping?Boolean

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).



1282
1283
1284
# File 'doc/API_reference.rb', line 1282

def clipping?
  @clipping?
end

#type:absolute, ...

Returns the layout type.

Returns:

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

    the layout type.



1275
1276
1277
# File 'doc/API_reference.rb', line 1275

def type
  @type
end