/* -*- 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 <gladeui/glade-editor-property.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_DEPRECATED:
* @obj: A #GladeWidgetAdaptor
*
* Checks whether this widget class is marked as deprecated
*/
#define GWA_DEPRECATED(obj) \
((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->deprecated : FALSE)
/**
* GWA_BUILDER_UNSUPPORTED:
* @obj: A #GladeWidgetAdaptor
*
* Checks whether this widget class unsupported by GtkBuilder
*/
#define GWA_BUILDER_UNSUPPORTED(obj) \
((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->builder_unsupported : FALSE)
/**
* GWA_VERSION_SINCE_MAJOR:
* @obj: A #GladeWidgetAdaptor
*
* Checks major version in which this widget was introduced
*/
#define GWA_VERSION_SINCE_MAJOR(obj) \
((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->version_since_major : FALSE)
/**
* GWA_VERSION_SINCE_MINOR:
* @obj: A #GladeWidgetAdaptor
*
* Checks minor version in which this widget was introduced
*/
#define GWA_VERSION_SINCE_MINOR(obj) \
((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->version_since_minor : 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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Glade是GTK+的快速开发工具。如果想做基于GTK+的开发,Glade是必不可少的。这个版本可以在Windows下使用,帮助你在Windows平台下做基于GTK+ v2.12.x的开发。GTK+开发环境可以在下面的地址下载到:http://www.ratedo.com/files/GTK+-2.16.1-1.exe 下载地址: http://www.dlang.net/bbs/read.php?tid=43 主要更新: 2008 包括了hicolor主题的正确使用 2009.07.12 增强界面翻译,降低下载分数要求 截图:http://bitworld.ys168.com
资源详情
资源评论
资源推荐
收起资源包目录
Glade-3.6.7 windows版本 (325个子文件)
libgladeui-1.dll.a 308KB
libgladegtk.dll.a 93KB
icon-theme.cache 19KB
style.css 2KB
glade-3.desktop 8KB
gladeui.devhelp 66KB
gladeui.devhelp2 74KB
libgladegtk.dll 744KB
libgladeui-1-8.dll 424KB
glade-3.exe 74KB
glade-widget-adaptor.h 27KB
glade-widget.h 16KB
glade-xml-utils.h 13KB
glade-property.h 8KB
glade-property-class.h 8KB
glade-editor.h 7KB
glade-editor-property.h 7KB
glade-project.h 6KB
glade-app.h 6KB
glade-command.h 5KB
glade-utils.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-builtins.h 3KB
glade-design-view.h 2KB
glade-design-layout.h 2KB
glade-placeholder.h 2KB
glade-clipboard-view.h 2KB
glade-accels.h 2KB
glade.h 2KB
glade-parameter.h 2KB
glade-clipboard.h 2KB
glade-cursor.h 2KB
glade-custom.h 2KB
glade-signal-editor.h 1KB
glade-signal.h 1KB
glade-gtk.h 719B
glade-debug.h 227B
GladeWidget.html 132KB
gladeui-GladeWidgetAdaptor.html 123KB
GladeProject.html 67KB
ix01.html 64KB
gladeui-glade-property.html 48KB
gladeui-glade-utils.html 45KB
gladeui-GladePropertyClass.html 36KB
gladeui-glade-xml-utils.html 34KB
GladeApp.html 30KB
GladeCommand.html 30KB
GladeBaseEditor.html 25KB
GladePalette.html 20KB
widgetclasses.html 18KB
GladeEditor.html 17KB
GladeEditorProperty.html 16KB
gladeui-glade-parameter.html 14KB
GladeInspector.html 14KB
GladeFixed.html 13KB
GladeClipboard.html 12KB
GladeWidgetAction.html 10KB
GladeClipboardView.html 9KB
catalogintro.html 9KB
properties.html 8KB
index.html 8KB
gladeui-glade-signal-editor.html 8KB
GladeDesignView.html 7KB
GladePlaceholder.html 6KB
core.html 5KB
dockables.html 4KB
catalog.html 3KB
misc.html 2KB
gtk+.xml.in 79KB
libgladegtk.la 1KB
libgladeui-1.la 1KB
glade3.mo 100KB
glade3.mo 89KB
glade3.mo 80KB
glade3.mo 78KB
glade3.mo 77KB
glade3.mo 76KB
glade3.mo 74KB
glade3.mo 68KB
glade3.mo 65KB
glade3.mo 64KB
glade3.mo 63KB
glade3.mo 62KB
glade3.mo 62KB
glade3.mo 62KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 61KB
glade3.mo 60KB
共 325 条
- 1
- 2
- 3
- 4
heromyth
- 粉丝: 2
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论8