Class: XCB::QueryFontReply
- Inherits:
-
Object
- Object
- XCB::QueryFontReply
- Defined in:
- ext/xproto.c
Instance Method Summary collapse
- #all_chars_exist ⇒ Object
- #char_infos ⇒ Object
- #char_infos_len ⇒ Object
- #default_char ⇒ Object
- #draw_direction ⇒ Object
- #font_ascent ⇒ Object
- #font_descent ⇒ Object
- #max_bounds ⇒ Object
- #max_byte1 ⇒ Object
- #max_char_or_byte2 ⇒ Object
- #min_bounds ⇒ Object
- #min_byte1 ⇒ Object
- #min_char_or_byte2 ⇒ Object
- #properties ⇒ Object
- #properties_len ⇒ Object
Instance Method Details
#all_chars_exist ⇒ Object
3607 3608 3609 3610 3611 3612 3613 |
# File 'ext/xproto.c', line 3607
static VALUE
r_XCB_QueryFontReply_get_all_chars_exist(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return reply->all_chars_exist ? Qtrue : Qfalse;
}
|
#char_infos ⇒ Object
3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 |
# File 'ext/xproto.c', line 3653
static VALUE
r_XCB_QueryFontReply_get_char_infos(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
xcb_charinfo_iterator_t iterator = xcb_query_font_char_infos_iterator(reply);
VALUE r_char_infos = rb_ary_new();
while (iterator.rem != 0) {
xcb_charinfo_t *data = malloc(sizeof(xcb_charinfo_t));
if (data == NULL)
rb_raise(rb_eNoMemError, "NoMemoryError");
VALUE r_data = Data_Wrap_Struct(r_XCB_CHARINFO, NULL, NULL, data);
*data = *iterator.data;
rb_ary_push(r_char_infos, r_data);
xcb_charinfo_next(&iterator);
}
return r_char_infos;
}
|
#char_infos_len ⇒ Object
3628 3629 3630 3631 3632 3633 3634 |
# File 'ext/xproto.c', line 3628
static VALUE
r_XCB_QueryFontReply_get_char_infos_len(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return INT2FIX(reply->char_infos_len);
}
|
#default_char ⇒ Object
3572 3573 3574 3575 3576 3577 3578 |
# File 'ext/xproto.c', line 3572
static VALUE
r_XCB_QueryFontReply_get_default_char(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return INT2FIX(reply->default_char);
}
|
#draw_direction ⇒ Object
3586 3587 3588 3589 3590 3591 3592 |
# File 'ext/xproto.c', line 3586
static VALUE
r_XCB_QueryFontReply_get_draw_direction(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return INT2FIX(reply->draw_direction);
}
|
#font_ascent ⇒ Object
3614 3615 3616 3617 3618 3619 3620 |
# File 'ext/xproto.c', line 3614
static VALUE
r_XCB_QueryFontReply_get_font_ascent(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return INT2FIX(reply->font_ascent);
}
|
#font_descent ⇒ Object
3621 3622 3623 3624 3625 3626 3627 |
# File 'ext/xproto.c', line 3621
static VALUE
r_XCB_QueryFontReply_get_font_descent(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return INT2FIX(reply->font_descent);
}
|
#max_bounds ⇒ Object
3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 |
# File 'ext/xproto.c', line 3546
static VALUE
r_XCB_QueryFontReply_get_max_bounds(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
xcb_charinfo_t *__charinfo = malloc(sizeof(xcb_charinfo_t));
if (__charinfo == NULL)
rb_raise(rb_eNoMemError, "NoMemoryError");
VALUE r_charinfo = Data_Wrap_Struct(r_XCB_CHARINFO, NULL, NULL, __charinfo);
*__charinfo = reply->max_bounds;
return r_charinfo;
}
|
#max_byte1 ⇒ Object
3600 3601 3602 3603 3604 3605 3606 |
# File 'ext/xproto.c', line 3600
static VALUE
r_XCB_QueryFontReply_get_max_byte1(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return INT2FIX(reply->max_byte1);
}
|
#max_char_or_byte2 ⇒ Object
3565 3566 3567 3568 3569 3570 3571 |
# File 'ext/xproto.c', line 3565
static VALUE
r_XCB_QueryFontReply_get_max_char_or_byte2(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return INT2FIX(reply->max_char_or_byte2);
}
|
#min_bounds ⇒ Object
3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 |
# File 'ext/xproto.c', line 3534
static VALUE
r_XCB_QueryFontReply_get_min_bounds(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
xcb_charinfo_t *__charinfo = malloc(sizeof(xcb_charinfo_t));
if (__charinfo == NULL)
rb_raise(rb_eNoMemError, "NoMemoryError");
VALUE r_charinfo = Data_Wrap_Struct(r_XCB_CHARINFO, NULL, NULL, __charinfo);
*__charinfo = reply->min_bounds;
return r_charinfo;
}
|
#min_byte1 ⇒ Object
3593 3594 3595 3596 3597 3598 3599 |
# File 'ext/xproto.c', line 3593
static VALUE
r_XCB_QueryFontReply_get_min_byte1(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return INT2FIX(reply->min_byte1);
}
|
#min_char_or_byte2 ⇒ Object
3558 3559 3560 3561 3562 3563 3564 |
# File 'ext/xproto.c', line 3558
static VALUE
r_XCB_QueryFontReply_get_min_char_or_byte2(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return INT2FIX(reply->min_char_or_byte2);
}
|
#properties ⇒ Object
3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 |
# File 'ext/xproto.c', line 3635
static VALUE
r_XCB_QueryFontReply_get_properties(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
xcb_fontprop_iterator_t iterator = xcb_query_font_properties_iterator(reply);
VALUE r_properties = rb_ary_new();
while (iterator.rem != 0) {
xcb_fontprop_t *data = malloc(sizeof(xcb_fontprop_t));
if (data == NULL)
rb_raise(rb_eNoMemError, "NoMemoryError");
VALUE r_data = Data_Wrap_Struct(r_XCB_FONTPROP, NULL, NULL, data);
*data = *iterator.data;
rb_ary_push(r_properties, r_data);
xcb_fontprop_next(&iterator);
}
return r_properties;
}
|
#properties_len ⇒ Object
3579 3580 3581 3582 3583 3584 3585 |
# File 'ext/xproto.c', line 3579
static VALUE
r_XCB_QueryFontReply_get_properties_len(VALUE r_self)
{
xcb_query_font_reply_t *reply;
Data_Get_Struct(r_self, xcb_query_font_reply_t, reply);
return INT2FIX(reply->properties_len);
}
|