Class: XCB::SEGMENT

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

Instance Method Summary collapse

Instance Method Details

#x1Object



753
754
755
756
757
758
759
# File 'ext/xproto.c', line 753

static VALUE
r_XCB_SEGMENT_get_x1(VALUE r_self)
{
  xcb_segment_t *segment;
  Data_Get_Struct(r_self, xcb_segment_t, segment);
  return INT2FIX(segment->x1);
}

#x2Object



767
768
769
770
771
772
773
# File 'ext/xproto.c', line 767

static VALUE
r_XCB_SEGMENT_get_x2(VALUE r_self)
{
  xcb_segment_t *segment;
  Data_Get_Struct(r_self, xcb_segment_t, segment);
  return INT2FIX(segment->x2);
}

#y1Object



760
761
762
763
764
765
766
# File 'ext/xproto.c', line 760

static VALUE
r_XCB_SEGMENT_get_y1(VALUE r_self)
{
  xcb_segment_t *segment;
  Data_Get_Struct(r_self, xcb_segment_t, segment);
  return INT2FIX(segment->y1);
}

#y2Object



774
775
776
777
778
779
780
# File 'ext/xproto.c', line 774

static VALUE
r_XCB_SEGMENT_get_y2(VALUE r_self)
{
  xcb_segment_t *segment;
  Data_Get_Struct(r_self, xcb_segment_t, segment);
  return INT2FIX(segment->y2);
}