ruby-****@sourc*****
ruby-****@sourc*****
2005年 9月 13日 (火) 06:02:54 JST
------------------------- REMOTE_ADDR = 83.76.32.78 REMOTE_HOST = REMOTE_USER = ruby-gnome2-hiki URL = /hiki.cgi?Gtk%3A%3AIconView ------------------------- @@ -252,18 +252,46 @@ 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 + * path: current cursor path (Gtk::TreePath), or nil + * cell: current focus cell (Gtk::CellRenderer), 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 + * drag_x: the position to determine the destination item for (Fixnum) + * drag_y: the position to determine the destination item for (Fixnum) * Returns: [ item_present, path, pos ] * item_present: whether there is an item at the given position - * path: path of the destination item, or nil + * path: path of the destination item (Gtk::TreePath), or nil * pos: drop position (Gtk::IconView#GtkIconViewDropPosition) +--- drag_dest_item + Gets information about the item that is highlighted for feedback. ((*Since 2.8*)) + * Returns: [ path, pos ] + * path: path of the highlighted item (Gtk::TreePath), or nil + * pos: drop position (Gtk::IconView#GtkIconViewDropPosition) + +--- item_at_pos(x, y) + Finds the path at the point (x, y), relative to widget coordinates. In contrast to Gtk::IconView#path_at_pos, this function also obtains the cell at the specified position. ((*Since 2.8*)) + * x: The x position to be identified (Fixnum) + * y: The y position to be identified (Fixnum) + * Returns: [ path, cell ] + * path: path (Gtk::TreePath), or nil + * cell: renderer responsible for the cell at (x, y) (Gtk::CellRenderer), or nil + +--- reorderable=(reorderable) + Convenience function to allow you to reorder models that support the Gtk::TreeDragSourceIface and the Gtk::TreeDragDestIface. Both Gtk::TreeStore and Gtk::ListStore support these. If reorderable is true, then the user can reorder the model by dragging and dropping rows. The developer can listen to these changes by connecting to the model's 'row_inserted' and 'row_deleted' signals. This function does not give you any degree of control over the order -- any reordering is allowed. If more control is needed, you should probably handle drag and drop manually. ((*Since 2.8*)) + * reorderable: true, if the list of items can be reordered. + * Returns: reorderable + +--- set_reorderable=(reorderable) + Same as Gtk::IconView#reorderable=. ((*Since 2.8*)) + * reorderable: true, if the list of items can be reordered. + * Returns: self + +--- reorderable? + Retrieves whether the user can reorder the list via drag-and-drop. See Gtk::IconView#reorderable=. ((*Since 2.8*)) + Returns: true if the list can be reordered. + == Constants === GtkIconViewDropPosition @@ -314,6 +342,37 @@ --- orientation: Gtk::Orientation (Read/Write) Defines the orientation of the icons in the view. Default: Gtk::ORIENTATION_VERTICAL. ((*Since 2.8*)) + +--- reorderable: true or false (Read/Write) + View is reorderable. Default: false. ((*Since 2.8*)) == Style Properties --- selection-box-alpha: Integer (Read) @@ -356,5 +387,36 @@ * self: Gtk::IconView == ChangeLog -* 2005-09-11 Documented partial additions for 2.8 - ((<gc>)) +* 2005-09-12 Documented partial additions for 2.8 - ((<gc>)) * 2005-05-05 Added - ((<Masao>))