Class: Zint::Structs::VectorRect

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/zint/structs/vector_rect.rb

Instance Method Summary collapse

Instance Method Details

#colourObject

-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

#heightObject

height



22
23
24
# File 'lib/zint/structs/vector_rect.rb', line 22

def height
  self[:height]
end

#widthObject

width



27
28
29
# File 'lib/zint/structs/vector_rect.rb', line 27

def width
  self[:width]
end

#xObject

x position



12
13
14
# File 'lib/zint/structs/vector_rect.rb', line 12

def x
  self[:x]
end

#yObject

y position



17
18
19
# File 'lib/zint/structs/vector_rect.rb', line 17

def y
  self[:y]
end