Class: XCB::ConfigureRequestEvent

Inherits:
GenericEvent show all
Defined in:
ext/xproto.c

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(r_stack_mode, r_parent, r_window, r_sibling, r_x, r_y, r_width, r_height, r_border_width, r_value_mask) ⇒ Object



2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
# File 'ext/xproto.c', line 2644

static VALUE
r_XCB_ConfigureRequestEvent_new(VALUE r_klass, VALUE r_stack_mode, VALUE r_parent, VALUE r_window, VALUE r_sibling, VALUE r_x, VALUE r_y, VALUE r_width, VALUE r_height, VALUE r_border_width, VALUE r_value_mask)
{
  xcb_configure_request_event_t *self = malloc(sizeof(xcb_configure_request_event_t));
  if (self == NULL)
    rb_raise(rb_eNoMemError, "NoMemoryError");
  VALUE r_self = Data_Wrap_Struct(r_klass, NULL, NULL, self);
  self->response_type = XCB_CONFIGURE_REQUEST;
  self->sequence = 0;
  self->stack_mode = FIX2INT(r_stack_mode);
  self->parent = FIX2INT(r_parent);
  self->window = FIX2INT(r_window);
  self->sibling = FIX2INT(r_sibling);
  self->x = FIX2INT(r_x);
  self->y = FIX2INT(r_y);
  self->width = FIX2INT(r_width);
  self->height = FIX2INT(r_height);
  self->border_width = FIX2INT(r_border_width);
  self->value_mask = FIX2INT(r_value_mask);
  return r_self;
}

Instance Method Details

#border_widthObject



1671
1672
1673
1674
1675
1676
1677
# File 'ext/xproto.c', line 1671

static VALUE
r_XCB_ConfigureRequestEvent_get_border_width(VALUE r_self)
{
  xcb_configure_request_event_t *event;
  Data_Get_Struct(r_self, xcb_configure_request_event_t, event);
  return INT2FIX(event->border_width);
}

#heightObject



1664
1665
1666
1667
1668
1669
1670
# File 'ext/xproto.c', line 1664

static VALUE
r_XCB_ConfigureRequestEvent_get_height(VALUE r_self)
{
  xcb_configure_request_event_t *event;
  Data_Get_Struct(r_self, xcb_configure_request_event_t, event);
  return INT2FIX(event->height);
}

#parentObject



1622
1623
1624
1625
1626
1627
1628
# File 'ext/xproto.c', line 1622

static VALUE
r_XCB_ConfigureRequestEvent_get_parent(VALUE r_self)
{
  xcb_configure_request_event_t *event;
  Data_Get_Struct(r_self, xcb_configure_request_event_t, event);
  return INT2FIX(event->parent);
}

#siblingObject



1636
1637
1638
1639
1640
1641
1642
# File 'ext/xproto.c', line 1636

static VALUE
r_XCB_ConfigureRequestEvent_get_sibling(VALUE r_self)
{
  xcb_configure_request_event_t *event;
  Data_Get_Struct(r_self, xcb_configure_request_event_t, event);
  return INT2FIX(event->sibling);
}

#stack_modeObject



1615
1616
1617
1618
1619
1620
1621
# File 'ext/xproto.c', line 1615

static VALUE
r_XCB_ConfigureRequestEvent_get_stack_mode(VALUE r_self)
{
  xcb_configure_request_event_t *event;
  Data_Get_Struct(r_self, xcb_configure_request_event_t, event);
  return INT2FIX(event->stack_mode);
}

#value_maskObject



1678
1679
1680
1681
1682
1683
1684
# File 'ext/xproto.c', line 1678

static VALUE
r_XCB_ConfigureRequestEvent_get_value_mask(VALUE r_self)
{
  xcb_configure_request_event_t *event;
  Data_Get_Struct(r_self, xcb_configure_request_event_t, event);
  return INT2FIX(event->value_mask);
}

#visit(r_visitor) ⇒ Object



2665
2666
2667
2668
2669
# File 'ext/xproto.c', line 2665

static VALUE
r_XCB_ConfigureRequestEvent_visit(VALUE r_self, VALUE r_visitor)
{
  return rb_funcall(r_visitor, rb_intern("visit_configure_request"), 1, r_self);
}

#widthObject



1657
1658
1659
1660
1661
1662
1663
# File 'ext/xproto.c', line 1657

static VALUE
r_XCB_ConfigureRequestEvent_get_width(VALUE r_self)
{
  xcb_configure_request_event_t *event;
  Data_Get_Struct(r_self, xcb_configure_request_event_t, event);
  return INT2FIX(event->width);
}

#windowObject



1629
1630
1631
1632
1633
1634
1635
# File 'ext/xproto.c', line 1629

static VALUE
r_XCB_ConfigureRequestEvent_get_window(VALUE r_self)
{
  xcb_configure_request_event_t *event;
  Data_Get_Struct(r_self, xcb_configure_request_event_t, event);
  return INT2FIX(event->window);
}

#xObject



1643
1644
1645
1646
1647
1648
1649
# File 'ext/xproto.c', line 1643

static VALUE
r_XCB_ConfigureRequestEvent_get_x(VALUE r_self)
{
  xcb_configure_request_event_t *event;
  Data_Get_Struct(r_self, xcb_configure_request_event_t, event);
  return INT2FIX(event->x);
}

#yObject



1650
1651
1652
1653
1654
1655
1656
# File 'ext/xproto.c', line 1650

static VALUE
r_XCB_ConfigureRequestEvent_get_y(VALUE r_self)
{
  xcb_configure_request_event_t *event;
  Data_Get_Struct(r_self, xcb_configure_request_event_t, event);
  return INT2FIX(event->y);
}