dw_container.h

来自「著名的手机浏览器开源代码」· C头文件 代码 · 共 59 行

H
59
字号
#ifndef __DW_CONTAINER_H__#define __DW_CONTAINER_H__#include "dw_widget.h"#ifdef __cplusplusextern "C" {#endif /* __cplusplus */#define DW_TYPE_CONTAINER               (a_Dw_container_get_type ())#define DW_CONTAINER(obj)               GTK_CHECK_CAST (obj, \                                           DW_TYPE_CONTAINER, DwContainer)#define DW_CONTAINER_CLASS(klass)       GTK_CHECK_CLASS_CAST (klass, \                                           DW_TYPE_CONTAINER, DwContainerClass)#define DW_IS_CONTAINER(obj)            GTK_CHECK_TYPE (obj, DW_TYPE_CONTAINER)typedef void (*DwCallback) (DwWidget *widget, gpointer data);typedef struct _DwContainer       DwContainer;typedef struct _DwContainerClass  DwContainerClass;struct _DwContainer{   DwWidget widget;};struct _DwContainerClass{   DwWidgetClass parent_class;   void (* add)                 (DwContainer *container,                                 DwWidget *child);   void (* remove)              (DwContainer *container,                                 DwWidget *widget);   void (* forall)              (DwContainer *container,                                 DwCallback callback,                                 gpointer callbabck_data);};GtkType a_Dw_container_get_type         (void);void    a_Dw_container_add              (DwContainer *container,                                         DwWidget *child);void    a_Dw_container_forall           (DwContainer *container,                                         DwCallback callback,                                         gpointer callback_data);void    Dw_container_remove             (DwContainer *container,                                         DwWidget *child);#ifdef __cplusplus}#endif /* __cplusplus */#endif /* __DW_CONTAINER_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?