Class: Processing::TextBounds

Inherits:
Object
  • Object
show all
Defined in:
lib/processing/font.rb

Overview

Bounding box for text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hObject (readonly)

Height of bounding box



60
61
62
# File 'lib/processing/font.rb', line 60

def h
  @h
end

#wObject (readonly)

Width of bounding box



56
57
58
# File 'lib/processing/font.rb', line 56

def w
  @w
end

#xObject (readonly)

Horizontal position



48
49
50
# File 'lib/processing/font.rb', line 48

def x
  @x
end

#yObject (readonly)

Vertical position



52
53
54
# File 'lib/processing/font.rb', line 52

def y
  @y
end

Instance Method Details

#inspectString

Returns a string containing a human-readable representation of object.



71
72
73
# File 'lib/processing/font.rb', line 71

def inspect()
  "#<Processing::TextBounds: x:#{x} y:#{y} w:#{w} h:#{h}>"
end