X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3540b72b5fb594e79ae307edd6397731d27b3162..661698e54f2bc599dc1a961ffbae08ccdd6b9b97:/include/wx/gtk/private/treeentry_gtk.h?ds=sidebyside diff --git a/include/wx/gtk/private/treeentry_gtk.h b/include/wx/gtk/private/treeentry_gtk.h index 18ed5181ae..cf723aeda3 100644 --- a/include/wx/gtk/private/treeentry_gtk.h +++ b/include/wx/gtk/private/treeentry_gtk.h @@ -16,50 +16,40 @@ extern "C" { #include /* for gpointer and gchar* etc. */ -#include "wx/dlimpexp.h" +#define WX_TYPE_TREE_ENTRY wx_tree_entry_get_type() +#define WX_TREE_ENTRY(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, wx_tree_entry_get_type(), wxTreeEntry) +#define WX_IS_TREE_ENTRY(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, wx_tree_entry_get_type()) -#define GTK_TYPE_TREE_ENTRY (gtk_tree_entry_get_type()) -#define GTK_TREE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, gtk_tree_entry_get_type (), GtkTreeEntry)) -#define GTK_IS_TREE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, gtk_tree_entry_get_type ())) +typedef struct _wxTreeEntry wxTreeEntry; -typedef struct _GtkTreeEntry GtkTreeEntry; +typedef void (*wxTreeEntryDestroy)(wxTreeEntry* entry, void* context); -typedef void (*GtkTreeEntryDestroy) (GtkTreeEntry* entry, gpointer context); - -struct _GtkTreeEntry +struct _wxTreeEntry { GObject parent; /* object instance */ gchar* label; /* label - always copied by this object except on get */ gchar* collate_key; /* collate key used for string comparisons/sorting */ gpointer userdata; /* untouched userdata */ - GtkTreeEntryDestroy destroy_func; /* called upon destruction - use for freeing userdata etc. */ + wxTreeEntryDestroy destroy_func; /* called upon destruction - use for freeing userdata etc. */ gpointer destroy_func_data; /* context passed to destroy_func */ }; -WXDLLIMPEXP_CORE -GtkTreeEntry* gtk_tree_entry_new (void); +wxTreeEntry* wx_tree_entry_new(void); -WXDLLIMPEXP_CORE -GType gtk_tree_entry_get_type (void); +GType wx_tree_entry_get_type(void); -WXDLLIMPEXP_CORE -gchar* gtk_tree_entry_get_collate_key (GtkTreeEntry* entry); +char* wx_tree_entry_get_collate_key(wxTreeEntry* entry); -WXDLLIMPEXP_CORE -gchar* gtk_tree_entry_get_label (GtkTreeEntry* entry); +char* wx_tree_entry_get_label(wxTreeEntry* entry); -WXDLLIMPEXP_CORE -gpointer gtk_tree_entry_get_userdata (GtkTreeEntry* entry); +void* wx_tree_entry_get_userdata(wxTreeEntry* entry); -WXDLLIMPEXP_CORE -void gtk_tree_entry_set_label (GtkTreeEntry* entry, const gchar* label); +void wx_tree_entry_set_label(wxTreeEntry* entry, const char* label); -WXDLLIMPEXP_CORE -void gtk_tree_entry_set_userdata (GtkTreeEntry* entry, gpointer userdata); +void wx_tree_entry_set_userdata(wxTreeEntry* entry, void* userdata); -WXDLLIMPEXP_CORE -void gtk_tree_entry_set_destroy_func (GtkTreeEntry* entry, - GtkTreeEntryDestroy destroy_func, +void wx_tree_entry_set_destroy_func(wxTreeEntry* entry, + wxTreeEntryDestroy destroy_func, gpointer destroy_func_data); #ifdef __cplusplus