Class: MG::Menu

Inherits:
Object
  • Object
show all
Defined in:
doc/API_reference.rb

Overview

This is usually in the form of buttons that are pressed.

Properties collapse

Miscellaneous collapse

Instance Attribute Details

#enabled?Boolean

Whether the menu is enabled. When enabled, a menu can be touched or clicked. By default, a menu is enabled.

Returns:

  • (Boolean)

    whether the menu is enabled.



663
664
665
# File 'doc/API_reference.rb', line 663

def enabled?
  @enabled?
end

Instance Method Details

#align_items_horizontally(padding = null) ⇒ Menu

aligns menu items horizontally with padding (call after adding items via image_item)

Parameters:

  • padding (Float) (defaults to: null)

    the amount of padding between the items.

Returns:

  • (Menu)

    the receiver.



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

def align_items_horizontally(padding=null); end

#align_items_vertically(padding = null) ⇒ Menu

aligns menu items vertically with padding (call after adding items via image_item)

Parameters:

  • padding (Float) (defaults to: null)

    the amount of padding between the items.

Returns:

  • (Menu)

    the receiver.



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

def align_items_vertically(padding=null); end