-
Notifications
You must be signed in to change notification settings - Fork 0
/
operater.h
executable file
·34 lines (28 loc) · 971 Bytes
/
operater.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* operater.h
*
* Created on: 2017年12月19日
* Author: tom
*/
#ifndef OPERATER_H_
#define OPERATER_H_
#include <glib-object.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define MY_TYPE_OPERATER my_operater_get_type()
G_DECLARE_DERIVABLE_TYPE(MyOperater,my_operater,MY,OPERATER,GtkBox);
typedef struct _MyOperaterClass{
GtkBoxClass Parent_class;
void (*add_child)(MyOperater *self,gpointer userdata);
void (*close)(MyOperater *self,gpointer userdata);
void (*rename)(MyOperater *self,gpointer userdata);
};
void my_operater_add(MyOperater *self,GtkWidget *child);
void my_operater_set_parent_layout(MyOperater *self,GtkLayout *layout);
void my_operater_set_title(MyOperater *self,gchar *title);
void my_operater_set_transient_for(MyOperater *self,GtkWindow *parent_window);
gchar* my_operater_get_title(MyOperater *self);
void my_operater_log(MyOperater *self,gchar *log);
MyOperater *my_operater_new(gchar *title);
G_END_DECLS
#endif /* OPERATER_H_ */