Class: Paint
Instance Method Summary collapse
- #alpha ⇒ Object
- #alpha=(value) ⇒ Object
- #color ⇒ Object
- #color=(value) ⇒ Object
- 
  
    
      #initialize  ⇒ Paint 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Paint. 
- #native ⇒ Object
- #stroke_width ⇒ Object
- #stroke_width=(width) ⇒ Object
Constructor Details
Instance Method Details
#alpha ⇒ Object
| 46 47 48 | # File 'lib/droiuby/wrappers/canvas_wrapper.rb', line 46 def alpha @native.getAlpha end | 
#alpha=(value) ⇒ Object
| 42 43 44 | # File 'lib/droiuby/wrappers/canvas_wrapper.rb', line 42 def alpha=(value) @native.setAlpha(Java::android.graphics.Color.parseColor(value)) end | 
#color ⇒ Object
| 57 58 59 | # File 'lib/droiuby/wrappers/canvas_wrapper.rb', line 57 def color @native.getColor end | 
#color=(value) ⇒ Object
| 50 51 52 53 54 55 | # File 'lib/droiuby/wrappers/canvas_wrapper.rb', line 50 def color=(value) if (value.kind_of String) value = value.to_color end @native.setColor(value) end | 
#native ⇒ Object
| 38 39 40 | # File 'lib/droiuby/wrappers/canvas_wrapper.rb', line 38 def native @native end | 
#stroke_width ⇒ Object
| 65 66 67 | # File 'lib/droiuby/wrappers/canvas_wrapper.rb', line 65 def stroke_width @native.getStrokeWidth end | 
#stroke_width=(width) ⇒ Object
| 61 62 63 | # File 'lib/droiuby/wrappers/canvas_wrapper.rb', line 61 def stroke_width=(width) @native.setStrokeWidth(width) end |