Class: Clutter::BrightnessContrastEffect
- Inherits:
-
Object
- Object
- Clutter::BrightnessContrastEffect
- Defined in:
- lib/clutter/brightness-contrast-effect.rb
Instance Method Summary collapse
- #set_brightness(brightness_all_or_red, brightness_green = nil, brightness_blue = nil) ⇒ Object
- #set_brightness_raw ⇒ Object
- #set_contrast(contrast_all_or_red, contrast_green = nil, contrast_blue = nil) ⇒ Object
- #set_contrast_raw ⇒ Object
Instance Method Details
#set_brightness(brightness_all_or_red, brightness_green = nil, brightness_blue = nil) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/clutter/brightness-contrast-effect.rb', line 32 def set_brightness(brightness_all_or_red, brightness_green=nil, brightness_blue=nil) if brightness_green.nil? && brightness_blue.nil? brightness_all = brightness_all_or_red set_brightness_raw(brightness_all) else brightness_red = brightness_all_or_red set_brightness_full(brightness_red, brightness_green, brightness_blue) end end |
#set_brightness_raw ⇒ Object
31 |
# File 'lib/clutter/brightness-contrast-effect.rb', line 31 alias_method :set_brightness_raw, :set_brightness |
#set_contrast(contrast_all_or_red, contrast_green = nil, contrast_blue = nil) ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/clutter/brightness-contrast-effect.rb', line 20 def set_contrast(contrast_all_or_red, contrast_green=nil, contrast_blue=nil) if contrast_green.nil? && contrast_blue.nil? contrast_all = contrast_all_or_red set_contrast_raw(contrast_all) else contrast_red = contrast_all_or_red set_contrast_full(contrast_red, contrast_green, contrast_blue) end end |
#set_contrast_raw ⇒ Object
19 |
# File 'lib/clutter/brightness-contrast-effect.rb', line 19 alias_method :set_contrast_raw, :set_contrast |