新規作成  編集  Ruby-GNOME2 Project Website  ページ一覧  検索  更新履歴  編集履歴  RSS  Back  ログイン

Gtk::SizeGroup 差分 - Ruby-GNOME2 Project Website

  • 最後の更新で追加された部分はこのように表示します。
  • 最後の更新で削除された部分はこのように表示します。

= class Gtk::SizeGroupGtk::SizeGroup クラス
Gtk::SizeGroup provides a mechanism for grouping a number of widgets together so they all request the same amount of space. This is typically useful when you want a column of widgets to have the same size, but you can't use a Gtk::Table widget.

In detail, the size requested for each widget in a Gtk::SizeGroup is the maximum of the sizes that would have been requested for each widget in the size group if they were not in the size group. The mode of the size group (see Gtk::SizeGroup#mode=) determines whether this applies to the horizontal size, the vertical size, or both sizes.

Note that size groups only affect the amount of space requested, not the size that the widgets finally receive. If you want the widgets in a Gtk::SizeGroup to actually be the same size, you need to pack them in such a way that they get the size they request and not more. For example, if you are packing your widgets into a table, you would not include the ((<GtkAttachOptions|Gtk#GtkAttachOptions>)) flag.

Widgets can be part of multiple size groups; GTK+ will compute the horizontal size of a widget from the horizontal requisition of all widgets that can be reached from the widget by a chain of size groups of type Gtk::SizeGroup::HORIZONTAL or Gtk::SizeGroup::BOTH, and the vertical size from the vertical requisition of all widgets that can be reached from the widget by a chain of size groups of type Gtk::SizeGroup::VERTICAL or Gtk::SizeGroup::BOTH.

== Object Hierarchyオブジェクト階層
* Object
  * GLib::Instantiatable
    * GLib::Object
      * Gtk::SizeGroup

== Class Methodsインクルードされているモジュール

* Gtk::Buildable
* GLib::Interface

== クラスメソッド

--- Gtk::SizeGroup.new(mode)
    Create a new Gtk::SizeGroup.
    * mode : the mode for the new size group. (((<GtkSizeGroupMode|Gtk::SizeGroup#GtkSizeGroupMode>)))
    * Returns : a newly created Gtk::SizeGroup

== Instance Methodsインスタンスメソッド
--- mode
    Gets the current mode of the size group. See Gtk::SizeGroup#mode=.
    * Returns : the current mode of the size group.
--- mode=(mode)
    Sets the ((<GtkSizeGroupMode|Gtk::SizeGroup#GtkSizeGroupMode>)) of the size group. The mode of the size group determines whether the widgets in the size group should all have the same horizontal requisition (Gtk::SizeGroup::HORIZONTAL) all have the same vertical requisition (Gtk::SizeGroup::VERTICAL), or should all have the same requisition in both directions (Gtk::SizeGroup::BOTH).
    * mode: the mode to set for the size group. (((<GtkSizeGroupMode|Gtk::SizeGroup#GtkSizeGroupMode>)))
    * Returns: mode
--- set_mode(mode)
    Same as Gtk::SizeGroup#mode=.
    * mode: the mode to set for the size group. (((<GtkSizeGroupMode|Gtk::SizeGroup#GtkSizeGroupMode>)))
    * Returns: self

--- add_widget(widget)
    Adds a widget to a Gtk::SizeGroup. In the future, the requisition of the widget will be determined as the maximum of its requisition and the requisition of the other widgets in the size group. Whether this applies horizontally, vertically, or in both directions depends on the mode of the size group. See Gtk::SizeGroup#mode=.
    * widget: the Gtk::Widget to add
    * Returns: self

--- remove_widget(widget)
    Removes a widget from a Gtk::SizeGroup.
    * widget: the Gtk::Widget to remove
    * Returns: self

--- ignore_hidden
    ((*存在しない?*))

    Returns if invisible widgets are ignored when calculating the size. ((*Since 2.8*))
--- ignore_hidden=(ignore_hidden)
    Sets whether invisible widgets should be ignored when calculating the size. ((*Since 2.8*))
    * ignore_hidden: the new value (true or false)
    * Returns: ignore_hidden
--- set_ignore_hidden(ignore_hidden)
    Same as Gtk::SizeGroup#ignore_hidden=(ignore_hidden). ((*Since 2.8*))
    * ignore_hidden: the new value (true or false)
    * Returns: self

--- widgets()
    ((*要編集*))

--- ignore_hidden?()
    ((*要編集*))


== Constants定数
=== GtkSizeGroupMode
The mode of the size group determines the directions in which the size group effects the requested sizes of its component widgets.
--- NONE
    group has no effect
--- HORIZONTAL
    group effects horizontal requisition
--- VERTICAL
    group effects vertical requisition
--- BOTH
    group effects both horizontal and vertical requisition

== Propertiesプロパティ
--- mode: Integer (Read/Write)
    The directions in which the size group effects the requested sizes of its component widgets

--- ignore-hidden: true or false (Read/Write)
    If true, hidden widgets are ignored when determining the size of the group. Default value: false. ((*Since 2.8*))

== 更新履歴
* 2014-06-16 クラスのメンバ項目の存在チェック("存在しない?"とマーク)。リストから漏れているものを追加。 - ((<きたがわ>))
*
- ((<Masao>))