Class: MG::Scroll

Inherits:
Layout show all
Defined in:
motion-game

Direct Known Subclasses

List

Properties (collapse)

Attributes inherited from Layout

#background_color, #clipping?, #type

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

- (Scroll) initialize

Creates a new Scroll widget.



810
# File 'motion-game', line 810

def initialize; end

Instance Attribute Details

- (:none, ...) direction

Returns the direction of the scroll view.

Returns:

  • (:none, :vertical, :horizontal, :both)

    the direction of the scroll view.



817
818
819
# File 'motion-game', line 817

def direction
  @direction
end

- (Layout) inner_container (readonly)

Returns the inner container of the scroll view.

Returns:

  • (Layout)

    the inner container of the scroll view.



824
825
826
# File 'motion-game', line 824

def inner_container
  @inner_container
end

- (Size) inner_size

Returns the inner container size of the scroll view, which must be larger or equal than the size of the scroll view itself.

Returns:

  • (Size)

    the inner container size of the scroll view, which must be larger or equal than the size of the scroll view itself.



821
822
823
# File 'motion-game', line 821

def inner_size
  @inner_size
end