• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ G_DEF_CLASS函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中G_DEF_CLASS函数的典型用法代码示例。如果您正苦于以下问题:C++ G_DEF_CLASS函数的具体用法?C++ G_DEF_CLASS怎么用?C++ G_DEF_CLASS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了G_DEF_CLASS函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: Init_milter_reply_encoder

void
Init_milter_reply_encoder (void)
{
    VALUE rb_cMilterReplyEncoder;

    rb_cMilterReplyEncoder =
	G_DEF_CLASS(MILTER_TYPE_REPLY_ENCODER, "ReplyEncoder", rb_mMilter);

    rb_define_method(rb_cMilterReplyEncoder, "initialize",
                     initialize, 0);

    rb_define_method(rb_cMilterReplyEncoder, "encode_negotiate",
                     encode_negotiate, -1);
    rb_define_method(rb_cMilterReplyEncoder, "encode_continue",
                     encode_continue, 0);
    rb_define_method(rb_cMilterReplyEncoder, "encode_reply_code",
                     encode_reply_code, 1);
    rb_define_method(rb_cMilterReplyEncoder, "encode_temporary_failure",
                     encode_temporary_failure, 0);
    rb_define_method(rb_cMilterReplyEncoder, "encode_reject",
                     encode_reject, 0);
    rb_define_method(rb_cMilterReplyEncoder, "encode_accept",
                     encode_accept, 0);
    rb_define_method(rb_cMilterReplyEncoder, "encode_discard",
                     encode_discard, 0);
    rb_define_method(rb_cMilterReplyEncoder, "encode_add_header",
                     encode_add_header, 2);
    rb_define_method(rb_cMilterReplyEncoder, "encode_insert_header",
                     encode_insert_header, 3);
    rb_define_method(rb_cMilterReplyEncoder, "encode_change_header",
                     encode_change_header, 3);
    rb_define_method(rb_cMilterReplyEncoder, "encode_delete_header",
                     encode_delete_header, 2);
    rb_define_method(rb_cMilterReplyEncoder, "encode_change_from",
                     encode_change_from, -1);
    rb_define_method(rb_cMilterReplyEncoder, "encode_add_recipient",
                     encode_add_recipient, -1);
    rb_define_method(rb_cMilterReplyEncoder, "encode_delete_recipient",
                     encode_delete_recipient, 1);
    rb_define_method(rb_cMilterReplyEncoder, "encode_replace_body",
                     encode_replace_body, 1);
    rb_define_method(rb_cMilterReplyEncoder, "encode_progress",
                     encode_progress, 0);
    rb_define_method(rb_cMilterReplyEncoder, "encode_quarantine",
                     encode_quarantine, 1);
    rb_define_method(rb_cMilterReplyEncoder, "encode_connection_failure",
                     encode_connection_failure, 0);
    rb_define_method(rb_cMilterReplyEncoder, "encode_shutdown",
                     encode_shutdown, 0);
    rb_define_method(rb_cMilterReplyEncoder, "encode_skip",
                     encode_skip, 0);

    G_DEF_SETTERS(rb_cMilterReplyEncoder);
}
开发者ID:hayamiz,项目名称:milter-manager,代码行数:54,代码来源:rb-milter-reply-encoder.c


示例2: Init_gtk_icon_set

void
Init_gtk_icon_set(VALUE mGtk)
{
    VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_ICON_SET, "IconSet", mGtk);

    RG_DEF_METHOD(initialize, -1);

    RG_DEF_METHOD(add_source, 1);
    RG_DEF_METHOD(sizes, 0);
    RG_DEF_METHOD(render_icon, -1);
}
开发者ID:Mazwak,项目名称:ruby-gnome2,代码行数:11,代码来源:rbgtkiconset.c


示例3: Init_gtk_ruler

void 
Init_gtk_ruler()
{
    VALUE gRuler = G_DEF_CLASS(GTK_TYPE_RULER, "Ruler", mGtk);

    rb_define_method(gRuler, "set_range", ruler_set_range, 4);
    G_DEF_SETTER(gRuler, "range");
    rb_define_method(gRuler, "range", ruler_get_range, 0);
    rb_define_method(gRuler, "draw_ticks", ruler_draw_ticks, 0);
    rb_define_method(gRuler, "draw_pos", ruler_draw_pos, 0);
}
开发者ID:geoffyoungs,项目名称:ruby-gnome2,代码行数:11,代码来源:rbgtkruler.c


示例4: Init_gtk_plug

void 
Init_gtk_plug()
{
#ifdef HAVE_GTK_PLUG_GET_TYPE
    VALUE gPlug = G_DEF_CLASS(GTK_TYPE_PLUG, "Plug", mGtk);
    
    rb_define_method(gPlug, "initialize", plug_initialize, -1);
    rb_define_method(gPlug, "construct", plug_construct, 1);
    rb_define_method(gPlug, "id", plug_get_id, 0);
#endif
}
开发者ID:benolee,项目名称:ruby-gnome2,代码行数:11,代码来源:rbgtkplug.c


示例5: Init_gtk_accel_group_entry

void
Init_gtk_accel_group_entry(void)
{
    VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_ACCEL_GROUP_ENTRY, "AccelGroupEntry", mGtk);

    RG_DEF_METHOD(initialize, 0);

    RG_DEF_METHOD(accel_key, 0);
    RG_DEF_METHOD(closure, 0);
    RG_DEF_METHOD(accel_path, 0);
}
开发者ID:msakai,项目名称:ruby-gnome2,代码行数:11,代码来源:rbgtkaccelgroupentry.c


示例6: Init_gtk_windowgroup

void 
Init_gtk_windowgroup(VALUE mGtk)
{
    VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_WINDOW_GROUP, "WindowGroup", mGtk);
    RG_DEF_METHOD(initialize, 0);
    RG_DEF_METHOD(add, 1);
    RG_DEF_METHOD(remove, 1);
    RG_DEF_METHOD(get_current_device_grab, 1);
    RG_DEF_METHOD(current_grab, 0);
    RG_DEF_METHOD(windows, 0);
}
开发者ID:masaakiaoyagi,项目名称:ruby-gnome2,代码行数:11,代码来源:rbgtkwindowgroup.c


示例7: Init_gtk_file_chooser_dialog

void 
Init_gtk_file_chooser_dialog(void)
{
#if GTK_CHECK_VERSION(2,4,0)

    VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_FILE_CHOOSER_DIALOG, "FileChooserDialog", mGtk);

    RG_DEF_METHOD(initialize, -1);

#endif
}
开发者ID:msakai,项目名称:ruby-gnome2,代码行数:11,代码来源:rbgtkfilechooserdialog.c


示例8: Init_goocanvasellipse

void
Init_goocanvasellipse(void)
{
    VALUE GooCanvasEllipse;

    GooCanvasEllipse = G_DEF_CLASS(GOO_TYPE_CANVAS_ELLIPSE, "CanvasEllipse",
                                   mGoo);

    rb_define_method(GooCanvasEllipse, "initialize",
                     rb_goo_canvas_ellipse_new, 5);
}
开发者ID:benolee,项目名称:ruby-gnome2,代码行数:11,代码来源:rbgoocanvasellipse.c


示例9: Init_gtk_iconview

void
Init_gtk_iconview()
{
#if GTK_CHECK_VERSION(2,6,0)
    VALUE iview = G_DEF_CLASS(GTK_TYPE_ICON_VIEW, "IconView", mGtk);

    id_model = rb_intern("model");
    id_select_path = rb_intern("select_path");

    rb_define_method(iview, "initialize", iview_initialize, -1);
    rb_define_method(iview, "get_path_at_pos", iview_get_path_at_pos, 2);
    rb_define_alias(iview, "get_path", "get_path_at_pos");
    rb_define_method(iview, "selected_each", iview_selected_foreach, 0);
    rb_define_method(iview, "select_path", iview_select_path, 1);
    rb_define_method(iview, "unselect_path", iview_unselect_path, 1);
    rb_define_method(iview, "path_is_selected?", iview_path_is_selected, 1);
    rb_define_method(iview, "selected_items", iview_get_selected_items, 0);
    rb_define_method(iview, "select_all", iview_select_all, 0);
    rb_define_method(iview, "unselect_all", iview_unselect_all, 0);
    rb_define_method(iview, "item_activated", iview_item_activated, 1);
#endif
#if GTK_CHECK_VERSION(2,8,0)
    rb_define_method(iview, "create_drag_icon", iview_create_drag_icon, 1);
    rb_define_method(iview, "enable_model_drag_dest", iview_enable_model_drag_dest, 2);
    rb_define_method(iview, "enable_model_drag_source", iview_enable_model_drag_source, 3);
    rb_define_method(iview, "cursor", iview_cursor, 0);
    rb_define_method(iview, "get_dest_item", iview_get_dest_item_at_pos, 2); 
    rb_define_method(iview, "drag_dest_item", iview_drag_dest_item, 0);
    rb_define_method(iview, "get_item", iview_get_item_at_pos, 2);
    rb_define_method(iview, "visible_range", iview_visible_range, 0);
    rb_define_method(iview, "scroll_to_path", iview_scroll_to_path, 4);
    rb_define_method(iview, "set_cursor", iview_set_cursor, 3);
    rb_define_method(iview, "set_drag_dest_item", iview_set_drag_dest_item, 2);
    rb_define_method(iview, "unset_model_drag_dest", iview_unset_model_drag_dest, 0);
    rb_define_method(iview, "unset_model_drag_source", iview_unset_model_drag_source, 0);

    /* GtkIconViewDropPosition */
    G_DEF_CLASS(GTK_TYPE_ICON_VIEW_DROP_POSITION, "Type", iview);
    G_DEF_CONSTANTS(iview, GTK_TYPE_ICON_VIEW_DROP_POSITION, "GTK_ICON_VIEW_");
#endif
}
开发者ID:benolee,项目名称:ruby-gnome2,代码行数:41,代码来源:rbgtkiconview.c


示例10: Init_gst_event

void
Init_gst_event (VALUE mGst)
{
    RGConvertTable table;

    memset(&table, 0, sizeof(RGConvertTable));
    table.type = GST_TYPE_EVENT;
    table.get_superclass = get_superclass;
    table.instance2robj = instance2robj;
    RG_DEF_CONVERSION(&table);

    rb_cGstEvent = G_DEF_CLASS(GST_TYPE_EVENT, "Event", mGst);
    rbg_define_method(rb_cGstEvent, "get_type", rbgst_event_get_type, 0);
    G_DEF_CLASS(GST_TYPE_EVENT_TYPE, "EventType", mGst);
    G_DEF_CONSTANTS(rb_cGstEvent, GST_TYPE_EVENT_TYPE, "GST_EVENT_");

#define DEFINE_EVENT(type, lctype, arguments) \
    rb_cGstEvent ## type =                                          \
        rb_define_class_under(mGst, "Event" #type, rb_cGstEvent);   \
    rbg_define_method(rb_cGstEvent ## type, "initialize",            \
                     lctype ## _initialize, arguments)

#define DEFINE_EVENT_PARSE(type, lctype, arguments)                 \
    DEFINE_EVENT(type, lctype, arguments);                          \
    rbg_define_method(rb_cGstEvent ## type, "parse",                 \
                     lctype ## _parse, 0)

    DEFINE_EVENT(FlushStart, flush_start, 0);
    DEFINE_EVENT(FlushStop,  flush_stop, 0);
    DEFINE_EVENT(EOS, eos, 0);
    DEFINE_EVENT_PARSE(NewSegment, newsegment, 7);
    DEFINE_EVENT_PARSE(Tag, tag, 1);
    DEFINE_EVENT_PARSE(BufferSize, buffersize, 4);
    DEFINE_EVENT_PARSE(QOS, qos, 3);
    DEFINE_EVENT_PARSE(Seek, seek, 7);
    DEFINE_EVENT(Navigation, navigation, 1);
    DEFINE_EVENT_PARSE(Latency, latency, 1);

#undef DEFINE_EVENT_PARSE
#undef DEFINE_EVENT
}
开发者ID:Mazwak,项目名称:ruby-gnome2,代码行数:41,代码来源:rbgst-event.c


示例11: Init_gtk_clipboard

void 
Init_gtk_clipboard()
{
    VALUE gClipboard = G_DEF_CLASS(GTK_TYPE_CLIPBOARD, "Clipboard", mGtk);

    rb_define_singleton_method(gClipboard, "get", clipboard_get, -1);
    rb_define_method(gClipboard, "display", clipboard_get_display, 0);
    rb_define_method(gClipboard, "set", clipboard_set, 1);
/*
  rb_define_method(gClipboard, "owner", clipboard_get_owner, 0);
*/
    rb_define_method(gClipboard, "clear", clipboard_clear, 0);
    rb_define_method(gClipboard, "set_text", clipboard_set_text, 1);
#if GTK_CHECK_VERSION(2,6,0)
    rb_define_method(gClipboard, "set_image", clipboard_set_image, 1);
#endif
    rb_define_method(gClipboard, "request_contents", clipboard_request_contents, 1);
    rb_define_method(gClipboard, "request_text", clipboard_request_text, 0);
#if GTK_CHECK_VERSION(2,6,0)
    rb_define_method(gClipboard, "request_image", clipboard_request_image, 0);
#endif
#if GTK_CHECK_VERSION(2,4,0)
    rb_define_method(gClipboard, "request_targets", clipboard_request_targets, 0);
#endif
#if GTK_CHECK_VERSION(2,10,0)
    rb_define_method(gClipboard, "request_rich_text", clipboard_request_rich_text, 1);
#endif
    rb_define_method(gClipboard, "wait_for_contents", clipboard_wait_for_contents, 1);
    rb_define_method(gClipboard, "wait_for_text", clipboard_wait_for_text, 0);
#if GTK_CHECK_VERSION(2,6,0)
    rb_define_method(gClipboard, "wait_for_image", clipboard_wait_for_image, 0);
#endif
#if GTK_CHECK_VERSION(2,10,0)
    rb_define_method(gClipboard, "wait_for_rich_text", clipboard_wait_for_rich_text, 1);
#endif
    rb_define_method(gClipboard, "wait_is_text_available?", clipboard_wait_is_text_available, 0);
#if GTK_CHECK_VERSION(2,6,0)
    rb_define_method(gClipboard, "wait_is_image_available?", clipboard_wait_is_image_available, 0);
#endif
#if GTK_CHECK_VERSION(2,10,0)
    rb_define_method(gClipboard, "wait_is_rich_text_available?", clipboard_wait_is_rich_text_available, 1);
#endif
#if GTK_CHECK_VERSION(2,4,0)
    rb_define_method(gClipboard, "wait_for_targets", clipboard_wait_for_targets, 0);
#endif
#if GTK_CHECK_VERSION(2,6,0)
    rb_define_method(gClipboard, "wait_is_target_available?", clipboard_wait_is_target_available, 1);
    rb_define_method(gClipboard, "set_can_store", clipboard_set_can_store, 1);
    rb_define_method(gClipboard, "store", clipboard_store, 0);
#endif

    G_DEF_SETTERS(gClipboard);
}
开发者ID:geoffyoungs,项目名称:ruby-gnome2,代码行数:53,代码来源:rbgtkclipboard.c


示例12: Init_Wnck_Screen

void
Init_Wnck_Screen(VALUE mWnck)
{
    VALUE RG_TARGET_NAMESPACE;

    id_new = rb_intern("new");
    id_call = rb_intern("call");

    RG_TARGET_NAMESPACE = G_DEF_CLASS(WNCK_TYPE_SCREEN, "Screen", mWnck);

    RG_DEF_SMETHOD(get_default, 0);
}
开发者ID:bobcao3,项目名称:RubyWnck3,代码行数:12,代码来源:rbWnck3Screen.c


示例13: Init_goocanvaspoints

void
Init_goocanvaspoints(VALUE mGoo)
{
    VALUE RG_TARGET_NAMESPACE;

    RG_TARGET_NAMESPACE = G_DEF_CLASS(GOO_TYPE_CANVAS_POINTS, "CanvasPoints", mGoo);

    RG_DEF_METHOD(initialize, 1);
    RG_DEF_METHOD_OPERATOR("[]", get, 1);
    RG_DEF_METHOD_OPERATOR("[]=", set, 2);
    RG_DEF_METHOD(num_points, 0);
}
开发者ID:Mazwak,项目名称:ruby-gnome2,代码行数:12,代码来源:rbgoocanvaspoints.c


示例14: Init_atk_text_range

void
Init_atk_text_range(VALUE mAtk)
{
#ifdef HAVE_ATK_TEXT_GET_BOUNDED_RANGES
    VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(ATK_TYPE_TEXT_RANGE, "TextRange",  mAtk);

    RG_DEF_METHOD(bounds, 0);
    RG_DEF_METHOD(start_offset, 0);
    RG_DEF_METHOD(end_offset, 0);
    RG_DEF_METHOD(content, 0);
#endif
}
开发者ID:Mazwak,项目名称:ruby-gnome2,代码行数:12,代码来源:rbatktextrange.c


示例15: Init_gtk_calendar

void 
Init_gtk_calendar(VALUE mGtk)
{
    VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_CALENDAR, "Calendar", mGtk);

    RG_DEF_METHOD(initialize, 0);
    RG_DEF_METHOD(select_month, 2);
    RG_DEF_METHOD(select_day, 1);
    RG_DEF_METHOD(mark_day, 1);
    RG_DEF_METHOD(unmark_day, 1);
    RG_DEF_METHOD(clear_marks, 0);
    RG_DEF_METHOD(date, 0);
    RG_DEF_METHOD(freeze, 0);
    RG_DEF_METHOD(thaw, 0);
    RG_DEF_METHOD(display_options, -1);
    RG_DEF_METHOD(set_display_options, 1);
    G_DEF_SETTER(RG_TARGET_NAMESPACE, "display_options");

    G_DEF_CLASS(GTK_TYPE_CALENDAR_DISPLAY_OPTIONS, "DisplayOptions", RG_TARGET_NAMESPACE);
    G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GTK_TYPE_CALENDAR_DISPLAY_OPTIONS, "GTK_CALENDAR_");
}
开发者ID:Vasfed,项目名称:ruby-gnome2,代码行数:21,代码来源:rbgtkcalendar.c


示例16: Init_gtk_clipboard

void 
Init_gtk_clipboard(void)
{
    VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_CLIPBOARD, "Clipboard", mGtk);

    RG_DEF_SMETHOD(get, -1);
    RG_DEF_METHOD(display, 0);
    RG_DEF_METHOD(set, 1);
/*
  RG_DEF_METHOD(owner, 0);
*/
    RG_DEF_METHOD(clear, 0);
    RG_DEF_METHOD(set_text, 1);
#if GTK_CHECK_VERSION(2,6,0)
    RG_DEF_METHOD(set_image, 1);
#endif
    RG_DEF_METHOD(request_contents, 1);
    RG_DEF_METHOD(request_text, 0);
#if GTK_CHECK_VERSION(2,6,0)
    RG_DEF_METHOD(request_image, 0);
#endif
#if GTK_CHECK_VERSION(2,4,0)
    RG_DEF_METHOD(request_targets, 0);
#endif
#if GTK_CHECK_VERSION(2,10,0)
    RG_DEF_METHOD(request_rich_text, 1);
#endif
    RG_DEF_METHOD(wait_for_contents, 1);
    RG_DEF_METHOD(wait_for_text, 0);
#if GTK_CHECK_VERSION(2,6,0)
    RG_DEF_METHOD(wait_for_image, 0);
#endif
#if GTK_CHECK_VERSION(2,10,0)
    RG_DEF_METHOD(wait_for_rich_text, 1);
#endif
    RG_DEF_METHOD_P(wait_is_text_available, 0);
#if GTK_CHECK_VERSION(2,6,0)
    RG_DEF_METHOD_P(wait_is_image_available, 0);
#endif
#if GTK_CHECK_VERSION(2,10,0)
    RG_DEF_METHOD_P(wait_is_rich_text_available, 1);
#endif
#if GTK_CHECK_VERSION(2,4,0)
    RG_DEF_METHOD(wait_for_targets, 0);
#endif
#if GTK_CHECK_VERSION(2,6,0)
    RG_DEF_METHOD_P(wait_is_target_available, 1);
    RG_DEF_METHOD(set_can_store, 1);
    RG_DEF_METHOD(store, 0);
#endif

    G_DEF_SETTERS(RG_TARGET_NAMESPACE);
}
开发者ID:msakai,项目名称:ruby-gnome2,代码行数:53,代码来源:rbgtkclipboard.c


示例17: Init_gst_clock_entry

void
Init_gst_clock_entry (VALUE mGst)
{
    VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS (GST_TYPE_CLOCK_ENTRY, "ClockEntry", mGst);

    RG_DEF_METHOD(initialize, -1);
    RG_DEF_METHOD_P(single_shot, 0);
    RG_DEF_METHOD_P(periodic, 0);
    RG_DEF_METHOD(wait, 0);
    RG_DEF_METHOD(wait_async, 0);
    RG_DEF_METHOD(unschedule, 0);
    RG_DEF_METHOD(clock, 0);
    RG_DEF_METHOD(time, 0);
    RG_DEF_METHOD(interval, 0);
    RG_DEF_METHOD(status, 0);

    G_DEF_CLASS (GST_TYPE_CLOCK_ENTRY_TYPE, "Type", RG_TARGET_NAMESPACE);
    G_DEF_CONSTANTS (RG_TARGET_NAMESPACE, GST_TYPE_CLOCK_ENTRY_TYPE, "GST_CLOCK_ENTRY_");
    G_DEF_CLASS (GST_TYPE_CLOCK_RETURN, "Return", RG_TARGET_NAMESPACE);
    G_DEF_CONSTANTS (RG_TARGET_NAMESPACE, GST_TYPE_CLOCK_RETURN, "GST_CLOCK_");
}
开发者ID:Mazwak,项目名称:ruby-gnome2,代码行数:21,代码来源:rbgstclockentry.c


示例18: Init_gemblem

void
Init_gemblem(VALUE glib)
{
        VALUE emblem = G_DEF_INTERFACE(G_TYPE_EMBLEM, "Emblem", glib);

        G_DEF_CLASS(G_TYPE_EMBLEM_ORIGIN, "Origin", emblem);
	G_DEF_CONSTANTS(emblem, G_TYPE_EMBLEM_ORIGIN, "G_EMBLEM_");

        rb_define_method(emblem, "initialize", emblem_initialize, -1);
        rb_define_method(emblem, "icon", emblem_icon, 0);
        rb_define_method(emblem, "origin", emblem_origin, 0);
}
开发者ID:taf2,项目名称:ruby-gnome2,代码行数:12,代码来源:gemblem.c


示例19: Init_gtk_frame

void 
Init_gtk_frame(VALUE mGtk)
{
    VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_FRAME, "Frame", mGtk);

    RG_DEF_METHOD(initialize, -1);
    RG_DEF_METHOD(set_label_align, 2);
    RG_DEF_METHOD(label_align, 0);
    rb_undef_method(RG_TARGET_NAMESPACE, "shadow");
    rb_undef_method(RG_TARGET_NAMESPACE, "shadow=");
    rb_undef_method(RG_TARGET_NAMESPACE, "set_shadow");
}
开发者ID:masaakiaoyagi,项目名称:ruby-gnome2,代码行数:12,代码来源:rbgtkframe.c


示例20: Init_gsocketcontrolmessage

void
Init_gsocketcontrolmessage(VALUE glib)
{
        VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(G_TYPE_SOCKET_CONTROL_MESSAGE, "SocketControlMessage", glib);

        RG_DEF_SMETHOD(deserialize, 3);

        RG_DEF_METHOD(level, 0);
        RG_DEF_METHOD(msg_type, 0);
        RG_DEF_METHOD(size, 0);
        RG_DEF_METHOD(serialize, 0);
}
开发者ID:msakai,项目名称:ruby-gnome2,代码行数:12,代码来源:gsocketcontrolmessage.c



注:本文中的G_DEF_CLASS函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ G_DEF_SETTERS函数代码示例发布时间:2022-05-30
下一篇:
C++ G_DBUS_PROXY函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap