Class: MG::Scroll

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

Direct Known Subclasses

List

Properties collapse

Attributes inherited from Layout

#background_color, #clipping?, #type

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

#initializeScroll

Creates a new Scroll widget.



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

def initialize; end

Instance Attribute Details

#direction:none, ...

Returns the direction of the scroll view.

Returns:

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

    the direction of the scroll view.



1298
1299
1300
# File 'doc/API_reference.rb', line 1298

def direction
  @direction
end

#inner_containerLayout (readonly)

Returns the inner container of the scroll view.

Returns:

  • (Layout)

    the inner container of the scroll view.



1305
1306
1307
# File 'doc/API_reference.rb', line 1305

def inner_container
  @inner_container
end

#inner_sizeSize

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.



1302
1303
1304
# File 'doc/API_reference.rb', line 1302

def inner_size
  @inner_size
end