ruby-****@lists*****
ruby-****@lists*****
2003年 6月 4日 (水) 11:28:27 JST
------------------------- REMOTE_ADDR = 61.204.181.66 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/?Gtk%3A%3AColorSelection ------------------------- = class Gtk::ColorSelection The Gtk::ColorSelection is a widget that is used to select a color. It consists of a color wheel and number of sliders and entry boxes for color parameters such as hue, saturation, value, red, green, blue, and opacity. It is found on the standard color selection dialog box Gtk::ColorSelectionDialog. == super class * ((<Gtk::VBox>)) == class methods --- Gtk::ColorSelection.new Creates a new Gtk::ColorSelection. * Returns: a new Gtk::ColorSelection --- Gtk::ColorSelection.palette_from_string(str) Parses aColor.parse. * str: a string encoding a color palette. * Returns: return an array of Gdk::Color or nil. Gtk::ColorSelection.palette_from_string("#6633ff:red:green") --- Gtk::ColorSelection.palette_to_string(colors) Encodes a palette as a string, useful for persistent storage. * colors: an array of colors(Gdk::Color). * Returns: allocated string encoding the palette. color palette string; the string is a colon-separated list of color names readable by Gdk:: == public instance methods --- has_opacity_control? Determines whether the colorsel has an opacity control. * Returns: true if the colorsel has an opacity control. false if it does't. --- has_opacity_control=(has_opacity) Sets the colorsel to use or not use opacity. * has_opacity: true if colorsel can set the opacity, false otherwise. * Returns: has_opacity --- set_has_opacity_control(has_opacity) Same as has_opacity_control=. * has_opacity: true if colorsel can set the opacity, false otherwise. * Returns: self --- has_palette? Determines whether the color selector has a color palette. * Returns: true if the selector has a palette. false if it hasn't. --- has_palette=(has_palette) Shows and hides the palette based upon the value of has_palette. * has_palette: true if palette is to be visible, false otherwise. * Returns: has_palette --- set_has_palette(has_palette) Same as has_palette=. * has_palette: true if palette is to be visible, false otherwise. * Returns: self --- current_alpha Returns the maximum number of palette colors. * Returns: the maximum number of palette indexes. --- current_alpha=(alpha) Sets the current opacity to be alpha. The first time this is called, it will also set the original opacity to be alpha too. * alpha: an integer between 0 and 65535. * Returns: alpha --- set_current_alpha(alpha) Same as current_alpha=. * alpha: an integer between 0 and 65535. * Returns: self --- current_color Sets color to be the current color in the Gtk::ColorSelection widget. * Returns: a Gdk::Color to fill in with the current color. --- current_color=(color) Sets the current color to be color. The first time this is called, it will also set the original color to be color too. * color: A Gdk::Color to set the current color with. * Returns: color --- set_current_color(color) Same as current_color=. * color: A Gdk::Color to set the current color with. * Returns: self --- previous_alpha Returns the previous alpha value. * Returns: an integer between 0 and 65535. --- previous_alpha=(alpha) Sets the 'previous' alpha to be alpha. This method should be called with some hesitations, as it might seem confusing to have that alpha change. * alpha: an integer between 0 and 65535. * Returns: alpha --- set_previous_alpha(alpha) Same as previous_alpha=. * alpha: an integer between 0 and 65535. * Returns: alpha --- previous_color Fills color in with the original color value. * Returns: a Gdk::Color to fill in with the original color value. --- previous_color=(color) Sets the 'previous' color to be color. This method should be called with some hesitations, as it might seem confusing to have that color change. Calling Gtk::ColorSelection#current_color= will also set this color the first time it is called. * color: a Gdk::Color to set the previous color with. * Returns: color --- set_previous_color Same as previous_color=. * color: a Gdk::Color to set the previous color with. * Returns: color --- adjusting? Gets the current state of the colorsel. * Returns: true if the user is currently dragging a color around, and false if the selection has stopped. == signals --- color-changed: self This signal is emitted when the color changes in the Gtk::ColorSelection according to its update policy. * self: Gtk::ColorSelection - ((<Masao>)) ------------------------- = class Gtk::ColorSelection The Gtk::ColorSelection is a widget that is used to select a color. It consists of a color wheel and number of sliders and entry boxes for color parameters such as hue, saturation, value, red, green, blue, and opacity. It is found on the standard color selection dialog box Gtk::ColorSelectionDialog. == super class * ((<Gtk::VBox>)) == class methods --- Gtk::ColorSelection.new Creates a new Gtk::ColorSelection. * Returns: a new Gtk::ColorSelection --- Gtk::ColorSelection.palette_from_string(str) Parses aColor.parse. * str: a string encoding a color palette. * Returns: return an array of Gdk::Color or nil. Gtk::ColorSelection.palette_from_string("#6633ff:red:green") --- Gtk::ColorSelection.palette_to_string(colors) Encodes a palette as a string, useful for persistent storage. * colors: an array of colors(Gdk::Color). * Returns: allocated string encoding the palette. color palette string; the string is a colon-separated list of color names readable by Gdk:: == public instance methods --- has_opacity_control? Determines whether the colorsel has an opacity control. * Returns: true if the colorsel has an opacity control. false if it does't. --- has_opacity_control=(has_opacity) Sets the colorsel to use or not use opacity. * has_opacity: true if colorsel can set the opacity, false otherwise. * Returns: has_opacity --- set_has_opacity_control(has_opacity) Same as has_opacity_control=. * has_opacity: true if colorsel can set the opacity, false otherwise. * Returns: self --- has_palette? Determines whether the color selector has a color palette. * Returns: true if the selector has a palette. false if it hasn't. --- has_palette=(has_palette) Shows and hides the palette based upon the value of has_palette. * has_palette: true if palette is to be visible, false otherwise. * Returns: has_palette --- set_has_palette(has_palette) Same as has_palette=. * has_palette: true if palette is to be visible, false otherwise. * Returns: self --- current_alpha Returns the maximum number of palette colors. * Returns: the maximum number of palette indexes. --- current_alpha=(alpha) Sets the current opacity to be alpha. The first time this is called, it will also set the original opacity to be alpha too. * alpha: an integer between 0 and 65535. * Returns: alpha --- set_current_alpha(alpha) Same as current_alpha=. * alpha: an integer between 0 and 65535. * Returns: self --- current_color Sets color to be the current color in the Gtk::ColorSelection widget. * Returns: a Gdk::Color to fill in with the current color. --- current_color=(color) Sets the current color to be color. The first time this is called, it will also set the original color to be color too. * color: A Gdk::Color to set the current color with. * Returns: color --- set_current_color(color) Same as current_color=. * color: A Gdk::Color to set the current color with. * Returns: self --- previous_alpha Returns the previous alpha value. * Returns: an integer between 0 and 65535. --- previous_alpha=(alpha) Sets the 'previous' alpha to be alpha. This method should be called with some hesitations, as it might seem confusing to have that alpha change. * alpha: an integer between 0 and 65535. * Returns: alpha --- set_previous_alpha(alpha) Same as previous_alpha=. * alpha: an integer between 0 and 65535. * Returns: self --- previous_color Fills color in with the original color value. * Returns: a Gdk::Color to fill in with the original color value. --- previous_color=(color) Sets the 'previous' color to be color. This method should be called with some hesitations, as it might seem confusing to have that color change. Calling Gtk::ColorSelection#current_color= will also set this color the first time it is called. * color: a Gdk::Color to set the previous color with. * Returns: color --- set_previous_color(color) Same as previous_color=. * color: a Gdk::Color to set the previous color with. * Returns: self --- adjusting? Gets the current state of the colorsel. * Returns: true if the user is currently dragging a color around, and false if the selection has stopped. == signals --- color-changed: self This signal is emitted when the color changes in the Gtk::ColorSelection according to its update policy. * self: Gtk::ColorSelection - ((<Masao>))