[ruby-gnome2-doc-cvs] [Hiki] update - Gtk::MenuShell

Zurück zum Archiv-Index

ruby-****@sourc***** ruby-****@sourc*****
2003年 8月 25日 (月) 09:59:04 JST


-------------------------
REMOTE_ADDR = 61.204.181.66
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/?Gtk%3A%3AMenuShell
-------------------------
  = class Gtk::MenuShell
  A Gtk::MenuShell is the abstract base class used to derive the Gtk::Menu and Gtk::MenuBar subclasses.
  
  A Gtk::MenuShell is a container of Gtk::MenuItem objects arranged in a list which can be navigated, selected, and activated by the user to perform application functions. A Gtk::MenuItem can have a submenu associated with it, allowing for nested hierarchical menus.
  
- == Super Class
- * Gtk::Container
+ == Object Hierarchy
+ * Object
+   * GLib::Instantiatable
+     * GLib::Object
+       * Gtk::Object
+         * Gtk::Widget
+           * Gtk::Container
+             * Gtk::MenuShell
  
  == Instance Methods
  --- append(child)
      Adds a new Gtk::MenuItem to the end of the menu shell's item list.
      * child: The Gtk::MenuItem to add.
      * Returns: self
  --- prepend(child)
      Adds a new Gtk::MenuItem to the beginning of the menu shell's item list.
      * child: The Gtk::MenuItem to add.
  --- insert(child, position)
      Adds a new Gtk::MenuItem to the menu shell's item list at the position indicated by position.
      * child: The Gtk::MenuItem to add.
      * position: The position in the item list where child is added. Positions are numbered from 0 to n-1.
      * Returns: self
  --- deactivate
      Deactivates the menu shell. Typically this results in the menu shell being erased from the screen.
      * Returns: self
  --- select_item(menu_item)
      Selects the menu item from the menu shell.
      * menu_item : The Gtk::MenuItem to select.  
      * Returns: self
  --- deselect
      Deselects the currently selected item from the menu shell, if any.
      * Returns: self
  --- activate_item
      Activates the menu item within the menu shell.
      * menu_item: The Gtk::MenuItem to activate. 
      * force_deactivate: If true, force the deactivation of the menu shell after the menu item is activated.  
  
  == Constants
  === GtkMenuDirectionType
  --- DIR_PARENT
      To the parent menu shell.
  --- DIR_CHILD
      To the submenu, if any, associated with the item.
  --- DIR_NEXT
      To the next menu item.
  --- DIR_PREV
      To the previous menu item.
  
  == Signals
  --- activate-current: self, force_hide
      An action signal that activates the current menu item within the menu shell.
       * self: Gtk::MenuShell
       * force_hide: if true, hide the menu after activating the menu item.  
  
  --- cancel: self
      An action signal which cancels the selection within the menu shell. Causes the GtkMenuShell::selection-done signal to be emitted.
       * self: Gtk::MenuShell
  
  --- cycle-focus: self, direction
       * self: Gtk::MenuShell
       * direction: ((<GtkDirectionType|Gtk#GtkDirectionType>))
  
  --- deactivate: self
      This signal is emitted when a menu shell is deactivated.
       * self: Gtk::MenuShell
  
  --- move-current: self, direction
      An action signal which moves the current menu item in the direction specified by direction.
       * self: Gtk::MenuShell
       * direction: ((<GtkMenuDirectionType|Gtk::MenuShell#GtkMenuDirectionType>))
  
  --- selection-done: self
      This signal is emitted when a selection has been completed within a menu shell.
       * self: Gtk::MenuShell
  
  
  - ((<Masao>))





ruby-gnome2-cvs メーリングリストの案内
Zurück zum Archiv-Index