Class: XCB::POINT

Inherits:
Object
  • Object
show all
Defined in:
ext/xproto.c

Instance Method Summary collapse

Instance Method Details

#xObject



53
54
55
56
57
58
59
# File 'ext/xproto.c', line 53

static VALUE
r_XCB_POINT_get_x(VALUE r_self)
{
	xcb_point_t *point;
	Data_Get_Struct(r_self, xcb_point_t, point);
	return INT2FIX(point->x);
}

#yObject



60
61
62
63
64
65
66
# File 'ext/xproto.c', line 60

static VALUE
r_XCB_POINT_get_y(VALUE r_self)
{
	xcb_point_t *point;
	Data_Get_Struct(r_self, xcb_point_t, point);
	return INT2FIX(point->y);
}