ruby-****@sourc*****
ruby-****@sourc*****
2005年 9月 12日 (月) 05:56:22 JST
------------------------- REMOTE_ADDR = 81.62.195.160 REMOTE_HOST = REMOTE_USER = ruby-gnome2-hiki URL = /hiki.cgi?Gtk%3A%3AIconView ------------------------- @@ -223,7 +223,58 @@ Emits "toggle-cursor-item" signal. ((*Since2.6*)) * Returns: self +--- create_drag_icon(path) + Creates a Gdk::Pixmap representation of the item at path. This image is used for a drag icon. ((*Since 2.8*)) + * path: a Gtk::TreePath in self + * Returns: a newly-allocated pixmap of the drag icon +--- enable_model_drag_source(start_button_mask, targets, actions) + Turns self into a drag source for automatic DND. ((*Since 2.8*)) + * start_button_mask: Mask of allowed buttons to start drag (Gdk::ModifierType) + * targets: [[target1, flags1, info1], [target2, flags2, info2], ...]: an array of targets supported by the drag + + * target: the drag type (String) + * flags: Gtk::Drag#GtkTargetFlags + * info: an application assigned integer ID + * actions: the bitmask of possible actions for a drag from this widget (Gdk::DragContext#GdkDragAction) + * Returns: self + +--- enable_model_drag_dest(targets, actions) + Turns icon_view into a drop destination for automatic DND. ((*Since 2.8*)) + * targets: [[target1, flags1, info1], [target2, flags2, info2], ...]: an array of targets supported by the drag + * target: the drag type (String) + * flags: Gtk::Drag#GtkTargetFlags + * info: an application assigned integer ID + * actions: the bitmask of possible actions for a drag from this widget (Gdk::DragContext#GdkDragAction) + * Returns: self + +--- cursor + Gets the current path and cell. If the cursor isn't currently set, then path will be nil. If no cell currently has focus, then cell will be nil. ((*Since 2.8*)) + * Returns: [ valid, path, cell ] + * valid: true if the cursor is set + * path: current cursor path, or nil + * cell: current focus cell, or nil + +--- dest_item_at_pos(drag_x, drag_y) + Determines the destination item for a given position. ((*Since 2.8*)) + * drag_x: the position to determine the destination item for + * drag_y: the position to determine the destination item for + * Returns: [ item_present, path, pos ] + * item_present: whether there is an item at the given position + * path: path of the destination item, or nil + * pos: drop position (Gtk::IconView#GtkIconViewDropPosition) + +== Constants + +=== GtkIconViewDropPosition +((*Since 2.8*)) +--- NO_DROP +--- DROP_INTO +--- DROP_LEFT +--- DROP_RIGHT +--- DROP_ABOVE +--- DROP_BELOW + == Properties --- column-spacing: Integer (Read/Write) Space which is inserted between grid column ((*Since2.6*)) @@ -261,6 +312,60 @@ --- text-column: Integer (Read/Write) Model column used to retrieve the text from ((*Since2.6*)) +--- orientation: Gtk::Orientation (Read/Write) + Defines the orientation of the icons in the view. Default: Gtk::ORIENTATION_VERTICAL. ((*Since 2.8*)) + == Style Properties --- selection-box-alpha: Integer (Read) Opacity of the selection box @@ -302,5 +356,59 @@ * self: Gtk::IconView == ChangeLog +* 2005-09-11 Documented partial additions for 2.8 - ((<gc>)) * 2005-05-05 Added - ((<Masao>)) -