ruby-****@sourc*****
ruby-****@sourc*****
2014年 6月 16日 (月) 18:14:32 JST
------------------------- REMOTE_ADDR = 106.188.103.9 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gtk%3A%3AToggleButton ------------------------- @@ -1,11 +1,11 @@ -= class Gtk::ToggleButton += Gtk::ToggleButton クラス A Gtk::ToggleButton is a Gtk::Button which will remain 'pressed-in' when clicked. Clicking again will cause the toggle button to return to it's normal state. The state of a Gtk::ToggleButton can be set specifically using Gtk::ToggleButton#active=, and retrieved using Gtk::ToggleButton#active?. To simply switch the state of a toggle button, use Gtk::ToggleButton#toggled. -== Object Hierarchy +== オブジェクト階層 * Object * GLib::Instantiatable * GLib::Object @@ -16,7 +16,13 @@ * Gtk::Button * Gtk::ToggleButton -== Class Methods +== インクルードされているモジュール + +* Gtk::Buildable +* Atk::Implementor +* GLib::Interface + +== クラスメソッド --- Gtk::ToggleButton.new(label = nil, use_underline = false) Creates a new Gtk::ToggleButton with a Gtk::Label to the right of it. If use_underline is true, the label will be created underscores in label indicate the mnemonic for the check button. @@ -30,7 +36,13 @@ * Returns: a new Gtk::ToggleButton. -== Instance Methods +== インスタンスメソッド --- active? Queries a Gtk::ToggleButton and returns it's current state. Returns: true if the toggle button is pressed in and false if it is raised. @@ -92,7 +98,13 @@ Emits the toggled signal on the Gtk::ToggleButton. There is no good reason for an application ever to call this function. * Returns: self -== Properties +== プロパティ --- active: true or false (Read/Write) If the toggle button should be pressed in or not @@ -102,14 +108,21 @@ --- inconsistent: true or false (Read/Write) If the toggle button is in an "in between" state -== Signals +== シグナル --- toggled: self * self: the object which received the signal. -== See Also +== 関連ページ * Gtk::Button a more general button. * Gtk::CheckButton another way of presenting a toggle option. * Gtk::CheckMenuItem a Gtk::ToggleButton as a menu item - -- ((<Masao>)) +== 更新履歴 +* 2014-06-16 インクルードされているモジュールの項目を追加。 - ((<きたがわ>)) +* - ((<Masao>))