ruby-****@sourc*****
ruby-****@sourc*****
2014年 6月 15日 (日) 20:34:59 JST
------------------------- REMOTE_ADDR = 106.188.30.133 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gtk%3A%3ACellRenderer ------------------------- @@ -1,18 +1,18 @@ -= class Gtk::CellRenderer += Gtk::CellRenderer クラス The Gtk::CellRenderer is a base class of a set of objects used for rendering a cell to a Gdk::Drawable. These objects are used primarily by the Gtk::TreeView widget, though they aren't tied to them in any specific way. It is worth noting that Gtk::CellRenderer is not a Gtk::Widget and cannot be treated as such. The primary use of a Gtk::CellRenderer is for drawing a certain graphical elements on a Gdk::Drawable. Typically, one cell renderer is used to draw many cells on the screen. To this extent, it isn't expected that a CellRenderer keep any permanent state around. Instead, any state is set just prior to use using GLib::Object property system. Then, the cell is measured using Gtk::CellRenderer#get_size. Finally, the cell is rendered in the correct location using Gtk::CellRenderer#render. There are a number of rules that must be followed when writing a new Gtk::CellRenderer. First and formost, it's important that a certain set of properties will always yield a cell renderer of the same size, barring a Gtk::Style change. The Gtk::CellRenderer also has a number of generic properties that are expected to be honored by all children. -== Object Hierarchy +== オブジェクト階層 * Object * GLib::Instantiatable * GLib::Object * Gtk::Object * Gtk::CellRenderer -== Instance Methods +== インスタンスメソッド --- get_size(widget, cell_area) Obtains the width and height needed to render the cell. Used by view widgets to determine the appropriate size for the cell_area passed to Gtk::CellRenderer#render. If cell_area is not nil, fills in the x and y offsets (if set) of the cell relative to this location. Please note that the values set in width and height, as well as those in x(x_offset) and y(y_offset) are inclusive of the xpad and ypad properties. * widget: the widget the renderer is rendering to @@ -204,7 +204,49 @@ * ypad: the ypad value of the cell renderer. * Returns: self -== Constants +--- stop_editing() + ((*要編集*)) + +--- editing_canceled() + ((*要編集*)) + +--- editing?() + ((*要編集*)) + +--- cell_background_set=() + ((*要編集*)) + +--- set_cell_background_set() + ((*要編集*)) + +--- cell_background_set?() + ((*要編集*)) + +--- cell_background_gdk=() + ((*要編集*)) + +--- set_cell_background_gdk() + ((*要編集*)) + +--- cell_background_gdk() + ((*要編集*)) + +--- cell_background=() + ((*要編集*)) + +--- set_cell_background() + ((*要編集*)) + +--- sensitive=() + ((*要編集*)) + +--- set_sensitive() + ((*要編集*)) + +--- sensitive?() + ((*要編集*)) + +== 定数 === GtkCellRendererState Tells how a cell is to be rendererd. --- SELECTED @@ -226,7 +268,53 @@ --- MODE_EDITABLE The cell can be edited or otherwise modified. -== Properties +=== その他 +--- FOCUSED (Gtk::CellRenderer::State) + ((*要編集*)) + +== プロパティ --- cell-background: String (Write) Cell background color as a string @@ -265,8 +311,69 @@ --- ypad: Integer (Read/Write) The ypad + +--- editing: + ((*要編集*)) + +--- sensitive: + ((*要編集*)) + +== シグナル +--- editing-started: + ((*要編集*)) + +--- editing-canceled: + ((*要編集*)) -== See Also +== 関連ページ Gtk::CellRendererText, Gtk::CellRendererPixbuf, Gtk::CellRendererToggle -- ((<Masao>)) +== 更新履歴 +* 2014-06-15 クラスのメンバ項目でリストから漏れているものを追加。 - ((<きたがわ>)) +* - ((<Masao>))