Class: Zint::Structs::VectorRect
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Zint::Structs::VectorRect
- Defined in:
- lib/zint/structs/vector_rect.rb
Instance Method Summary collapse
-
#colour ⇒ Object
-1 for foreground, 1-8 for Cyan, Blue, Magenta, Red, Yellow, Green, Black, White.
-
#height ⇒ Object
height.
-
#width ⇒ Object
width.
-
#x ⇒ Object
x position.
-
#y ⇒ Object
y position.
Instance Method Details
#colour ⇒ Object
-1 for foreground, 1-8 for Cyan, Blue, Magenta, Red, Yellow, Green, Black, White
32 33 34 |
# File 'lib/zint/structs/vector_rect.rb', line 32 def colour self[:colour] end |
#height ⇒ Object
height
22 23 24 |
# File 'lib/zint/structs/vector_rect.rb', line 22 def height self[:height] end |
#width ⇒ Object
width
27 28 29 |
# File 'lib/zint/structs/vector_rect.rb', line 27 def width self[:width] end |
#x ⇒ Object
x position
12 13 14 |
# File 'lib/zint/structs/vector_rect.rb', line 12 def x self[:x] end |
#y ⇒ Object
y position
17 18 19 |
# File 'lib/zint/structs/vector_rect.rb', line 17 def y self[:y] end |