/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef __GLADE_WIDGET_ADAPTOR_H__
#define __GLADE_WIDGET_ADAPTOR_H__
#include <gladeui/glade-xml-utils.h>
#include <gladeui/glade-property-class.h>
#include <glib-object.h>
#include <gmodule.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define GLADE_TYPE_WIDGET_ADAPTOR (glade_widget_adaptor_get_type())
#define GLADE_WIDGET_ADAPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_WIDGET_ADAPTOR, GladeWidgetAdaptor))
#define GLADE_WIDGET_ADAPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_WIDGET_ADAPTOR, GladeWidgetAdaptorClass))
#define GLADE_IS_WIDGET_ADAPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_WIDGET_ADAPTOR))
#define GLADE_IS_WIDGET_ADAPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_WIDGET_ADAPTOR))
#define GLADE_WIDGET_ADAPTOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GLADE_WIDGET_ADAPTOR, GladeWidgetAdaptorClass))
typedef struct _GladeWidgetAdaptor GladeWidgetAdaptor;
typedef struct _GladeWidgetAdaptorPrivate GladeWidgetAdaptorPrivate;
typedef struct _GladeWidgetAdaptorClass GladeWidgetAdaptorClass;
/**
* GWA_IS_FIXED:
* @obj: A #GladeWidgetAdaptor
*
* Checks whether this widget adaptor should be handled
* as a free-form container
*/
#define GWA_IS_FIXED(obj) \
((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->fixed : FALSE)
/**
* GWA_IS_TOPLEVEL:
* @obj: A #GladeWidgetAdaptor
*
* Checks whether this widget class has been marked as
* a toplevel one.
*/
#define GWA_IS_TOPLEVEL(obj) \
((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->toplevel : FALSE)
/**
* GWA_USE_PLACEHOLDERS:
* @obj: A #GladeWidgetAdaptor
*
* Checks whether this widget class has been marked to
* use placeholders in child widget operations
*/
#define GWA_USE_PLACEHOLDERS(obj) \
((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->use_placeholders : FALSE)
/**
* GWA_DEFAULT_WIDTH:
* @obj: A #GladeWidgetAdaptor
*
* Returns the default width to be used when this widget
* is toplevel in the GladeDesignLayout
*/
#define GWA_DEFAULT_WIDTH(obj) \
((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->default_width : -1)
/**
* GWA_DEFAULT_HEIGHT:
* @obj: A #GladeWidgetAdaptor
*
* Returns the default width to be used when this widget
* is toplevel in the GladeDesignLayout
*/
#define GWA_DEFAULT_HEIGHT(obj) \
((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->default_height : -1)
/**
* GWA_GET_CLASS:
* @type: A #GType
*
* Shorthand for referencing glade adaptor classes from
* the plugin eg. GWA_GET_CLASS (GTK_TYPE_CONTAINER)->post_create (adaptor...
*/
#define GWA_GET_CLASS(type) \
(((type) == G_TYPE_OBJECT) ? \
(GladeWidgetAdaptorClass *)g_type_class_peek (GLADE_TYPE_WIDGET_ADAPTOR) : \
GLADE_WIDGET_ADAPTOR_GET_CLASS (glade_widget_adaptor_get_by_type(type)))
/**
* GWA_GET_OCLASS:
* @type: A #GType.
*
* Same as GWA_GET_CLASS but casted to GObjectClass
*/
#define GWA_GET_OCLASS(type) ((GObjectClass*)GWA_GET_CLASS(type))
#define GLADE_VALID_CREATE_REASON(reason) (reason >= 0 && reason < GLADE_CREATE_REASONS)
/**
* GladeCreateReason:
* @GLADE_CREATE_USER: Was created at the user's request
* (this is a good time to set any properties
* or add children to the project; like GtkFrame's
* label for example).
* @GLADE_CREATE_COPY: Was created as a result of the copy/paste
* mechanism, at this point you can count on glade
* to follow up with properties and children on
* its own.
* @GLADE_CREATE_LOAD: Was created during the load process.
* @GLADE_CREATE_REBUILD: Was created as a replacement for another project
* object; this only happens when the user is
* changing a property that is marked by the type
* system as G_PARAM_SPEC_CONSTRUCT_ONLY.
* @GLADE_CREATE_REASONS: Never used.
*
* These are the reasons your #GladePostCreateFunc can be called.
*/
typedef enum
{
GLADE_CREATE_USER = 0,
GLADE_CREATE_COPY,
GLADE_CREATE_LOAD,
GLADE_CREATE_REBUILD,
GLADE_CREATE_REASONS
} GladeCreateReason;
#define GLADE_TYPE_CREATE_REASON (glade_create_reason_get_type())
/**
* GladeSetPropertyFunc:
* @adaptor: A #GladeWidgetAdaptor
* @object: The #GObject
* @property_name: The property identifier
* @value: The #GValue
*
* This delagate function is used to apply the property value on
* the runtime object.
*
* Sets @value on @object for a given #GladePropertyClass
*/
typedef void (* GladeSetPropertyFunc) (GladeWidgetAdaptor *adaptor,
GObject *object,
const gchar *property_name,
const GValue *value);
/**
* GladeGetPropertyFunc:
* @adaptor: A #GladeWidgetAdaptor
* @object: The #GObject
* @property_name: The property identifier
* @value: The #GValue
*
* Gets @value on @object for a given #GladePropertyClass
*/
typedef void (* GladeGetPropertyFunc) (GladeWidgetAdaptor *adaptor,
GObject *object,
const gchar *property_name,
GValue *value);
/**
* GladeVerifyPropertyFunc:
* @adaptor: A #GladeWidgetAdaptor
* @object: The #GObject
* @property_name: The property identifier
* @value: The #GValue
*
* This delagate function is always called whenever setting any
* properties with the exception of load time, and copy/paste time
* (basicly the two places where we recreate a hierarchy that we
* already know "works") its basicly an optional backend provided
* boundry checker for properties.
*
* Returns: whether or not its OK to set @value on @object
*/
typedef gboolean (* GladeVerifyPropertyFunc) (GladeWidgetAdaptor *adaptor,
GObject *object,
const gchar *property_name,
const GValue *value);
/**
* GladeChildSetPropertyFunc:
* @adaptor: A #GladeWidgetAdaptor
* @container: The #GObject container
* @child: The #GObject child
* @property_name: The property name
* @value: The #GValue
*
* Called to set the packing property @property_name to @value
* on the @child object of @container.
*/
typedef void (* GladeChildSetPropertyFunc) (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child,
const gchar *property_name,
const GValue *value);
/**
* GladeChildGetPropertyFunc:
* @adaptor: A #GladeWidgetAdaptor
* @container: The #GObject container
* @child: The #GObject child
* @property_name: The property name
* @value: The #GValue
*
* Called to get the packing property @property_name
* on the @child object of @container into @value.
*/
typedef void (* GladeChildGetPropertyFunc) (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child,
const gchar *property_name,
GValue *value);
/**
* GladeChildVerifyPropertyFunc:
* @adaptor: A #GladeWidgetAdaptor
* @container: The #GObject container
* @child: The #GObject child
* @property_name: The property name
* @value: The #GValue
*
* This delagate function is always called whenever setting any
* properties with the exception of load time, and copy/paste time
* (basicly the two places where we recreate a hierarchy that we
* already know "works") its basicly an optional backend provided
* boundry checker for properties.
*
* Returns: whether or not its OK to set @value on @object
*/
typedef gboolean (* GladeChildVerifyPropertyFunc) (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child,
const gchar *property_name,
const GValue *value);
/**
*
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Glade-3.4.1 windows版本 (409个子文件)
libgladeui-1.dll.a 302KB
libgladegtk.dll.a 83KB
style.css 2KB
glade-3.desktop 8KB
gladeui.devhelp 59KB
gladeui.devhelp2 66KB
libgladegtk.dll 613KB
libgladeui-1-7.dll 481KB
glade-3.exe 76KB
glade-widget-adaptor.h 22KB
glade-widget.h 15KB
glade-xml-utils.h 11KB
glade-property-class.h 8KB
glade-property.h 8KB
glade-editor.h 7KB
glade-project.h 6KB
glade-app.h 6KB
glade-command.h 5KB
glade-editor-property.h 4KB
glade-builtins.h 4KB
glade-utils.h 4KB
glade-parser.h 4KB
glade-base-editor.h 3KB
glade-fixed.h 3KB
glade-palette.h 3KB
glade-widget-action.h 3KB
glade-inspector.h 3KB
glade-palette-item.h 3KB
glade-design-view.h 2KB
glade-design-layout.h 2KB
glade-placeholder.h 2KB
glade-clipboard-view.h 2KB
glade.h 2KB
glade-parameter.h 2KB
glade-clipboard.h 2KB
glade-cursor.h 2KB
glade-custom.h 2KB
glade-signal.h 1KB
glade-signal-editor.h 1KB
glade-gtk.h 719B
glade-debug.h 227B
GladeWidget.html 132KB
gladeui-GladeWidgetAdaptor.html 109KB
GladeProject.html 73KB
ix01.html 66KB
gladeui-glade-property.html 60KB
gladeui-glade-utils.html 47KB
GladeApp.html 41KB
GladeCommand.html 34KB
gladeui-GladePropertyClass.html 33KB
GladePalette.html 21KB
GladeEditor.html 20KB
GladeEditorProperty.html 19KB
GladeFixed.html 16KB
gladeui-GladeBaseEditor.html 16KB
GladeInspector.html 15KB
gladeui-glade-parameter.html 15KB
GladeClipboard.html 13KB
properties.html 10KB
GladeClipboardView.html 10KB
widgetclasses.html 8KB
catalogintro.html 8KB
gladeui-glade-signal-editor.html 8KB
index.html 8KB
GladePlaceholder.html 7KB
children.html 6KB
core.html 4KB
dockables.html 4KB
catalog.html 3KB
misc.html 2KB
gtk+.xml.in 74KB
libgladegtk.la 1KB
libgladeui-1.la 1011B
glade3.mo 88KB
glade3.mo 80KB
glade3.mo 77KB
glade3.mo 77KB
glade3.mo 76KB
glade3.mo 74KB
glade3.mo 67KB
glade3.mo 64KB
glade3.mo 63KB
glade3.mo 63KB
glade3.mo 62KB
glade3.mo 62KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 60KB
glade3.mo 60KB
glade3.mo 60KB
glade3.mo 60KB
glade3.mo 60KB
glade3.mo 59KB
glade3.mo 58KB
glade3.mo 58KB
glade3.mo 56KB
glade3.mo 56KB
共 409 条
- 1
- 2
- 3
- 4
- 5
资源评论
- mengl_20112013-07-04是滴,这位兄弟有点坑人呀,不能用~
- 鸿程白雁2014-11-26这个版本不能winodws 下用的
- aaalllggg2013-05-31不能用,请对上传的东西负责!
heromyth
- 粉丝: 2
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- CobaltStrike4.9工具
- 中国各、省、市、县、乡镇基尼系数数据(2000-2023年).rar
- 【Unity大型环境资源包】BEPR - Spawner Pack for Big Environment Pack Refo
- 【源码+数据库】基于SSM框架+mysql实现的汽车维修管理系统
- 计算机网络期末复习要点-OSI模型、TCP与UDP区别、IP地址管理及DNS与ARP协议
- 计算机网络期末复习资料-知识点梳理与习题解答
- SSM曼连社区租房平台小程序程序源码40247
- 限幅滤波法,又称程序判断滤波法,其基本原理是将输入信号限制在一个预先设定的范围内
- python自动办公程序案例 用Python在Excel中查找并替换数据
- python技巧.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功