Class: BitmapDrawableWrapper
Instance Method Summary collapse
- #height ⇒ Object
-
#initialize(drawable) ⇒ BitmapDrawableWrapper
constructor
A new instance of BitmapDrawableWrapper.
- #native ⇒ Object
- #to_bitmap ⇒ Object
- #width ⇒ Object
Constructor Details
#initialize(drawable) ⇒ BitmapDrawableWrapper
Returns a new instance of BitmapDrawableWrapper.
2 3 4 |
# File 'lib/droiuby/support/asset.rb', line 2 def initialize(drawable) @native = drawable end |
Instance Method Details
#height ⇒ Object
14 15 16 |
# File 'lib/droiuby/support/asset.rb', line 14 def height @native.getIntrinsicHeight end |
#native ⇒ Object
6 7 8 |
# File 'lib/droiuby/support/asset.rb', line 6 def native @native end |
#to_bitmap ⇒ Object
10 11 12 |
# File 'lib/droiuby/support/asset.rb', line 10 def to_bitmap @native.getBitmap end |
#width ⇒ Object
18 19 20 |
# File 'lib/droiuby/support/asset.rb', line 18 def width @native.getIntrinsicWidth end |