Class: XCB::ListFontsWithInfoReply
- Inherits:
-
Object
- Object
- XCB::ListFontsWithInfoReply
- Defined in:
- ext/xproto.c
Instance Method Summary collapse
- #all_chars_exist ⇒ 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
- #name ⇒ Object
- #name_len ⇒ Object
- #properties ⇒ Object
- #properties_len ⇒ Object
- #replies_hint ⇒ Object
Instance Method Details
#all_chars_exist ⇒ Object
3832 3833 3834 3835 3836 3837 3838 |
# File 'ext/xproto.c', line 3832 static VALUE r_XCB_ListFontsWithInfoReply_get_all_chars_exist(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return reply->all_chars_exist ? Qtrue : Qfalse; } |
#default_char ⇒ Object
3797 3798 3799 3800 3801 3802 3803 |
# File 'ext/xproto.c', line 3797 static VALUE r_XCB_ListFontsWithInfoReply_get_default_char(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->default_char); } |
#draw_direction ⇒ Object
3811 3812 3813 3814 3815 3816 3817 |
# File 'ext/xproto.c', line 3811 static VALUE r_XCB_ListFontsWithInfoReply_get_draw_direction(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->draw_direction); } |
#font_ascent ⇒ Object
3839 3840 3841 3842 3843 3844 3845 |
# File 'ext/xproto.c', line 3839 static VALUE r_XCB_ListFontsWithInfoReply_get_font_ascent(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->font_ascent); } |
#font_descent ⇒ Object
3846 3847 3848 3849 3850 3851 3852 |
# File 'ext/xproto.c', line 3846 static VALUE r_XCB_ListFontsWithInfoReply_get_font_descent(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->font_descent); } |
#max_bounds ⇒ Object
3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 |
# File 'ext/xproto.c', line 3771 static VALUE r_XCB_ListFontsWithInfoReply_get_max_bounds(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_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
3825 3826 3827 3828 3829 3830 3831 |
# File 'ext/xproto.c', line 3825 static VALUE r_XCB_ListFontsWithInfoReply_get_max_byte1(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->max_byte1); } |
#max_char_or_byte2 ⇒ Object
3790 3791 3792 3793 3794 3795 3796 |
# File 'ext/xproto.c', line 3790 static VALUE r_XCB_ListFontsWithInfoReply_get_max_char_or_byte2(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->max_char_or_byte2); } |
#min_bounds ⇒ Object
3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 |
# File 'ext/xproto.c', line 3759 static VALUE r_XCB_ListFontsWithInfoReply_get_min_bounds(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_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
3818 3819 3820 3821 3822 3823 3824 |
# File 'ext/xproto.c', line 3818 static VALUE r_XCB_ListFontsWithInfoReply_get_min_byte1(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->min_byte1); } |
#min_char_or_byte2 ⇒ Object
3783 3784 3785 3786 3787 3788 3789 |
# File 'ext/xproto.c', line 3783 static VALUE r_XCB_ListFontsWithInfoReply_get_min_char_or_byte2(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->min_char_or_byte2); } |
#name ⇒ Object
3878 3879 3880 3881 3882 3883 3884 3885 3886 |
# File 'ext/xproto.c', line 3878 static VALUE r_XCB_ListFontsWithInfoReply_get_name(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); int __name_len = xcb_list_fonts_with_info_name_length(reply); char *__name = xcb_list_fonts_with_info_name(reply); return rb_str_new(__name, __name_len); } |
#name_len ⇒ Object
3752 3753 3754 3755 3756 3757 3758 |
# File 'ext/xproto.c', line 3752 static VALUE r_XCB_ListFontsWithInfoReply_get_name_len(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->name_len); } |
#properties ⇒ Object
3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 |
# File 'ext/xproto.c', line 3860 static VALUE r_XCB_ListFontsWithInfoReply_get_properties(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); xcb_fontprop_iterator_t iterator = xcb_list_fonts_with_info_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
3804 3805 3806 3807 3808 3809 3810 |
# File 'ext/xproto.c', line 3804 static VALUE r_XCB_ListFontsWithInfoReply_get_properties_len(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->properties_len); } |
#replies_hint ⇒ Object
3853 3854 3855 3856 3857 3858 3859 |
# File 'ext/xproto.c', line 3853 static VALUE r_XCB_ListFontsWithInfoReply_get_replies_hint(VALUE r_self) { xcb_list_fonts_with_info_reply_t *reply; Data_Get_Struct(r_self, xcb_list_fonts_with_info_reply_t, reply); return INT2FIX(reply->replies_hint); } |