Class: BitmapDrawableWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/droiuby/support/asset.rb

Instance Method Summary collapse

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

#heightObject



14
15
16
# File 'lib/droiuby/support/asset.rb', line 14

def height
  @native.getIntrinsicHeight
end

#nativeObject



6
7
8
# File 'lib/droiuby/support/asset.rb', line 6

def native
  @native
end

#to_bitmapObject



10
11
12
# File 'lib/droiuby/support/asset.rb', line 10

def to_bitmap
  @native.getBitmap
end

#widthObject



18
19
20
# File 'lib/droiuby/support/asset.rb', line 18

def width
  @native.getIntrinsicWidth
end