这篇教程C++ G_IMPLEMENT_INTERFACE函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中G_IMPLEMENT_INTERFACE函数的典型用法代码示例。如果您正苦于以下问题:C++ G_IMPLEMENT_INTERFACE函数的具体用法?C++ G_IMPLEMENT_INTERFACE怎么用?C++ G_IMPLEMENT_INTERFACE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了G_IMPLEMENT_INTERFACE函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: initable_iface_initstruct _TransliteratorIcuClass{ TranslitTransliteratorClass parent_class;};typedef struct _TransliteratorIcu TransliteratorIcu;typedef struct _TransliteratorIcuClass TransliteratorIcuClass;static void initable_iface_init (GInitableIface *initable_iface);G_DEFINE_DYNAMIC_TYPE_EXTENDED (TransliteratorIcu, transliterator_icu, TRANSLIT_TYPE_TRANSLITERATOR, 0, G_IMPLEMENT_INTERFACE (G_TYPE_INITABLE, initable_iface_init));static gchar *ustring_to_utf8 (const UChar *ustr, int32_t ustrLength){ gchar *dest; int32_t destLength; UErrorCode errorCode; errorCode = 0; u_strToUTF8 (NULL, 0, &destLength, ustr, ustrLength, &errorCode); if (errorCode != U_BUFFER_OVERFLOW_ERROR) { g_warning ("can't get the number of byte required to convert ustring: %s", u_errorName (errorCode)); return NULL;
开发者ID:mike-fabian,项目名称:libtranslit,代码行数:31,
示例2: mx_focusable_iface_init * * #MxComboBox combines a button with a popup menu to allow the user to select * an option from a list. */#include "mx-combo-box.h"#include "mx-menu.h"#include "mx-private.h"#include "mx-stylable.h"static void mx_focusable_iface_init (MxFocusableIface *iface);static void mx_stylable_iface_init (MxStylableIface *iface);G_DEFINE_TYPE_WITH_CODE (MxComboBox, mx_combo_box, MX_TYPE_WIDGET, G_IMPLEMENT_INTERFACE (MX_TYPE_FOCUSABLE, mx_focusable_iface_init) G_IMPLEMENT_INTERFACE (MX_TYPE_STYLABLE, mx_stylable_iface_init))#define COMBO_BOX_PRIVATE(o) / (G_TYPE_INSTANCE_GET_PRIVATE ((o), MX_TYPE_COMBO_BOX, MxComboBoxPrivate))struct _MxComboBoxPrivate{ ClutterActor *label; ClutterActor *icon; ClutterActor *marker; GSList *actions; gfloat clip_x; gfloat clip_y; gint index;
开发者ID:GunioRobot,项目名称:mx,代码行数:32,
示例3: mex_content_view_iface_init#include "mex-action-list.h"#include "mex-action-manager.h"#include "mex-content-view.h"#include "mex-main.h"#include "mex-tile.h"#include "mex-program.h"#include "mex-private.h"#include "mex-utils.h"#include "mex-queue-button.h"#include "mex-info-panel.h"#include "mex-content-tile.h"static void mex_content_view_iface_init (MexContentViewIface *iface);static void mex_content_box_focusable_iface_init (MxFocusableIface *iface);G_DEFINE_TYPE_WITH_CODE (MexContentBox, mex_content_box, MX_TYPE_WIDGET, G_IMPLEMENT_INTERFACE (MEX_TYPE_CONTENT_VIEW, mex_content_view_iface_init) G_IMPLEMENT_INTERFACE (MX_TYPE_FOCUSABLE, mex_content_box_focusable_iface_init))#define CONTENT_BOX_PRIVATE(o) / (G_TYPE_INSTANCE_GET_PRIVATE ((o), MEX_TYPE_CONTENT_BOX, MexContentBoxPrivate))#define DEFAULT_THUMB_WIDTH 426#define DEFAULT_THUMB_HEIGHT 240#define DEFAULT_THUMB_RATIO ((float)DEFAULT_THUMB_HEIGHT/(float)DEFAULT_THUMB_WIDTH)enum{ PROP_0, PROP_OPEN,
开发者ID:Cyrene,项目名称:media-explorer,代码行数:32,
示例4: gtk_search_entry_icon_releasestatic guint signals[LAST_SIGNAL] = { 0 };typedef struct { guint delayed_changed_id;} GtkSearchEntryPrivate;static void gtk_search_entry_icon_release (GtkEntry *entry, GtkEntryIconPosition icon_pos);static void gtk_search_entry_changed (GtkEditable *editable);static void gtk_search_entry_editable_init (GtkEditableInterface *iface);static GtkEditableInterface *parent_editable_iface;G_DEFINE_TYPE_WITH_CODE (GtkSearchEntry, gtk_search_entry, GTK_TYPE_ENTRY, G_ADD_PRIVATE (GtkSearchEntry) G_IMPLEMENT_INTERFACE (GTK_TYPE_EDITABLE, gtk_search_entry_editable_init))/* 150 mseconds of delay */#define DELAYED_TIMEOUT_ID 150/* This widget got created without a private structure, meaning * that we cannot now have one without breaking ABI */#define GET_PRIV(e) ((GtkSearchEntryPrivate *) gtk_search_entry_get_instance_private ((GtkSearchEntry *) (e)))static voidgtk_search_entry_finalize (GObject *object){ GtkSearchEntryPrivate *priv = GET_PRIV (object); if (priv->delayed_changed_id > 0) g_source_remove (priv->delayed_changed_id);
开发者ID:3v1n0,项目名称:gtk,代码行数:32,
示例5: impl_device_get_nsp_list#include "nm-properties-changed-signal.h"#include "nm-connection.h"#include "nm-setting-connection.h"#include "nm-setting-wimax.h"#include "nm-utils.h"#include "nm-rfkill.h"#include "iwmxsdk.h"static gboolean impl_device_get_nsp_list (NMDeviceWimax *device, GPtrArray **list, GError **error);#include "nm-device-wimax-glue.h"static void device_interface_init (NMDeviceInterface *iface_class);G_DEFINE_TYPE_EXTENDED (NMDeviceWimax, nm_device_wimax, NM_TYPE_DEVICE, 0, G_IMPLEMENT_INTERFACE (NM_TYPE_DEVICE_INTERFACE, device_interface_init))enum { PROP_0, PROP_HW_ADDRESS, PROP_ACTIVE_NSP, PROP_CENTER_FREQ, PROP_RSSI, PROP_CINR, PROP_TX_POWER, PROP_BSID, LAST_PROP};enum {
开发者ID:alfmatos,项目名称:NetworkManager,代码行数:31,
示例6: sexy_icon_entry_exposestatic gint sexy_icon_entry_expose(GtkWidget *widget, GdkEventExpose *event);static gint sexy_icon_entry_enter_notify(GtkWidget *widget, GdkEventCrossing *event);static gint sexy_icon_entry_leave_notify(GtkWidget *widget, GdkEventCrossing *event);static gint sexy_icon_entry_button_press(GtkWidget *widget, GdkEventButton *event);static gint sexy_icon_entry_button_release(GtkWidget *widget, GdkEventButton *event);static GtkEntryClass *parent_class = NULL;static guint signals[LAST_SIGNAL] = {0};G_DEFINE_TYPE_EXTENDED(SexyIconEntry, sexy_icon_entry, GTK_TYPE_ENTRY, 0, G_IMPLEMENT_INTERFACE(GTK_TYPE_EDITABLE, sexy_icon_entry_editable_init));static voidsexy_icon_entry_class_init(SexyIconEntryClass *klass){ GObjectClass *gobject_class; GtkObjectClass *object_class; GtkWidgetClass *widget_class;// GtkEntryClass *entry_class; parent_class = g_type_class_peek_parent(klass); gobject_class = G_OBJECT_CLASS(klass); object_class = GTK_OBJECT_CLASS(klass); widget_class = GTK_WIDGET_CLASS(klass);// entry_class = GTK_ENTRY_CLASS(klass);
开发者ID:ib,项目名称:xarchiver,代码行数:32,
示例7: clutter_container_iface_init |