ruby-****@sourc*****
ruby-****@sourc*****
2005年 9月 12日 (月) 00:11:31 JST
------------------------- REMOTE_ADDR = 81.62.195.160 REMOTE_HOST = REMOTE_USER = ruby-gnome2-hiki URL = /hiki.cgi?Gtk%3A%3ADrag ------------------------- @@ -102,6 +102,14 @@ * hot_y: the Y offset within pixmap of the hotspot. * Returns: self +--- Gtk::Drag.set_icon_name(context, icon_name, hot_x, hot_y) + Sets the icon for a given drag from a named themed icon. See the docs for Gtk::IconTheme for more details. Note that the size of the icon depends on the icon theme (the icon is loaded at the symbolic size Gtk::IconSize::DND), thus hot_x and hot_y have to be used with care. ((*Since 2.8*)) + * context: the context for a drag (this must be called with a context for the source side of a drag) (Gdk::DragContext) + * icon_name: name of icon to use (String) + * hot_x: the X offset of the hotspot within the icon (Fixnum) + * hot_y: the Y offset of the hotspot within the icon (Fixnum) + * Returns: self + --- Gtk::Drag.set_icon_default(context) Sets the icon for a particular drag to the default icon. * context: the Gdk::DragContext for a drag. (This must be called with a context for the source side of a drag) @@ -127,6 +135,15 @@ * info: an application assigned integer ID. * Returns: self + --- Gtk::Drag.source_set_icon(widget, object) Sets the icon that will be used for drags from a particular widget from a Gdk::Pixbuf/stock_id. GTK+ retains a reference for pixbuf and will release it when it is no longer needed. * widget: a Gtk::Widget @@ -139,6 +148,21 @@ * colormap: the Gdk::Colormap of the icon * pixmap: the image data(Gdk::Pixmap) for the icon * mask: the transparency mask(Gdk::Pixmap, depth = 1) for an image. + * Returns: self + +--- Gtk::Drag.source_set_icon_name(widget, icon_name) + Sets the icon that will be used for drags from a particular source to a themed icon. See the docs for Gtk::IconTheme for more details. ((*Since 2.8*)) + * widget: a Gtk::Widget + * icon_name: name of icon to use (String) * Returns: self --- Gtk::Drag.source_unset(widget) @@ -176,4 +191,19 @@ If this is set, the target will only be selected for drags within a single widget. * 2004-05-24 Done with 2.4 support ((<Masao>)) -* 2003-09-23 First released ((<Masao>)) \ No newline at end of file +* 2003-09-23 First released ((<Masao>))