2012-08-30 00:54:38 +02:00
|
|
|
/*
|
|
|
|
* ld-category-view.h
|
|
|
|
*
|
|
|
|
* This file is a part of logdiag.
|
2017-02-03 23:06:48 +01:00
|
|
|
* Copyright Přemysl Janouch 2012
|
2012-08-30 00:54:38 +02:00
|
|
|
*
|
|
|
|
* See the file LICENSE for licensing information.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LD_CATEGORY_VIEW_H__
|
|
|
|
#define __LD_CATEGORY_VIEW_H__
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define LD_TYPE_CATEGORY_VIEW (ld_category_view_get_type ())
|
|
|
|
#define LD_CATEGORY_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST \
|
|
|
|
((obj), LD_TYPE_CATEGORY_VIEW, LdCategoryView))
|
|
|
|
#define LD_IS_CATEGORY_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE \
|
|
|
|
((obj), LD_TYPE_CATEGORY_VIEW))
|
2012-10-08 09:11:32 +02:00
|
|
|
#define LD_CATEGORY_VIEW_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE \
|
|
|
|
((inst), LD_TYPE_CATEGORY_VIEW, LdCategoryViewInterface))
|
2012-08-30 00:54:38 +02:00
|
|
|
|
|
|
|
typedef struct _LdCategoryView LdCategoryView;
|
2012-10-08 09:11:32 +02:00
|
|
|
typedef struct _LdCategoryViewInterface LdCategoryViewInterface;
|
2012-08-30 00:54:38 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* LdCategoryView:
|
|
|
|
*/
|
|
|
|
struct _LdCategoryView
|
|
|
|
{
|
2012-10-08 09:11:32 +02:00
|
|
|
/* Just to remind gtk-doc that this really exists. */
|
2012-08-30 00:54:38 +02:00
|
|
|
};
|
|
|
|
|
2012-10-08 09:11:32 +02:00
|
|
|
struct _LdCategoryViewInterface
|
2012-08-30 00:54:38 +02:00
|
|
|
{
|
|
|
|
/*< private >*/
|
2012-10-08 09:11:32 +02:00
|
|
|
GTypeInterface parent;
|
|
|
|
|
|
|
|
guint symbol_selected_signal;
|
|
|
|
guint symbol_deselected_signal;
|
|
|
|
|
|
|
|
void (*set_category) (LdCategoryView *self, LdCategory *category);
|
|
|
|
LdCategory *(*get_category) (LdCategoryView *self);
|
2012-08-30 00:54:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GType ld_category_view_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2012-10-08 09:11:32 +02:00
|
|
|
void ld_category_view_set_category (LdCategoryView *self,
|
|
|
|
LdCategory *category);
|
|
|
|
LdCategory *ld_category_view_get_category (LdCategoryView *self);
|
2012-08-30 00:54:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* ! __LD_CATEGORY_VIEW_H__ */
|