Class: MG::Scroll

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

Direct Known Subclasses

List

Instance Attribute Summary collapse

Attributes inherited from Layout

#background_color, #type

Attributes inherited from Node

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

Constructors collapse

Instance Method Summary collapse

Methods inherited from Layout

#<<, #add, #clipping=, #clipping?

Methods inherited from Widget

#enabled=, #enabled?, #highlighted=, #highlighted?, #on_touch, #touch_enabled=, #touch_enabled?

Methods inherited from Node

#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #number_of_running_actions, #parent, #run_action, #schedule, #schedule_once, #stop_action, #stop_all_actions, #unschedule, #visible=, #visible?

Constructor Details

#initializeScroll

Creates a new Scroll widget.



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

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.



1672
1673
1674
# File 'doc/API_reference.rb', line 1672

def direction
  @direction
end

#inner_containerLayout (readonly)

Returns the inner container of the scroll view.

Returns:

  • (Layout)

    the inner container of the scroll view.



1679
1680
1681
# File 'doc/API_reference.rb', line 1679

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.



1676
1677
1678
# File 'doc/API_reference.rb', line 1676

def inner_size
  @inner_size
end

Instance Method Details

#jump_to_bottomself

Move inner container to bottom boundary of scrollview.

Returns:

  • (self)

    the receiver.



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

def jump_to_bottom; end

#jump_to_bottom_leftself

Move inner container to bottom and left boundary of scrollview.

Returns:

  • (self)

    the receiver.



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

def jump_to_bottom_left; end

#jump_to_bottom_rightself

Move inner container to bottom and right boundary of scrollview.

Returns:

  • (self)

    the receiver.



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

def jump_to_bottom_right; end

#jump_to_leftself

Move inner container to left boundary of scrollview.

Returns:

  • (self)

    the receiver.



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

def jump_to_left; end

#jump_to_rightself

Move inner container to right boundary of scrollview.

Returns:

  • (self)

    the receiver.



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

def jump_to_right; end

#jump_to_topself

Move inner container to top boundary of scrollview.

Returns:

  • (self)

    the receiver.



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

def jump_to_top; end

#jump_to_top_leftself

Move inner container to top and left boundary of scrollview.

Returns:

  • (self)

    the receiver.



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

def jump_to_top_left; end

#jump_to_top_rightself

Move inner container to top and right boundary of scrollview.

Returns:

  • (self)

    the receiver.



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

def jump_to_top_right; end