Class: Nuklear::Style::Image
- Inherits:
-
Object
- Object
- Nuklear::Style::Image
- Defined in:
- lib/nuklear/style/image.rb,
ext/nuklear/nkrb_style_image.c
Instance Method Summary collapse
- #id ⇒ Object
- #id=(id) ⇒ Object
-
#initialize(id) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(id) ⇒ Image
Returns a new instance of Image.
4 5 6 |
# File 'lib/nuklear/style/image.rb', line 4 def initialize(id) self.id = id end |
Instance Method Details
#id ⇒ Object
22 23 24 25 |
# File 'ext/nuklear/nkrb_style_image.c', line 22
VALUE nkrb_style_image_get_id(VALUE self) {
NK_UNPACK(self, style);
return INT2FIX(style->data.image.handle.id);
}
|
#id=(id) ⇒ Object
16 17 18 19 20 |
# File 'ext/nuklear/nkrb_style_image.c', line 16
VALUE nkrb_style_image_set_id(VALUE self, VALUE id) {
NK_UNPACK(self, style);
style->data.image.handle.id = FIX2INT(id);
return id;
}
|