-DATADIR = "/usr/local/share/#{PKG_NAME}/"
-
-class Evas::EvasObject
- def move_relative(obj, x, y)
- # FIXME investigate whether there's an easier way
- move(*obj.geometry[0..1].zip([x, y]).map { |(a, b)| a + b })
- end
-
- def center(obj)
- a = geometry
- b = obj.geometry
-
- move_relative(obj, (b[2] / 2) - (a[2] / 2),
- (b[3] / 2) - (a[3] / 2))
- end
-
- def alpha=(alpha)
- set_color(*(get_color[0..-2] << alpha))
- end
-end