diff options
Diffstat (limited to 'lib-x86-32/gtk-2.12.12/usr')
525 files changed, 71871 insertions, 0 deletions
diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atk-enum-types.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atk-enum-types.h new file mode 100644 index 00000000..f95e70a6 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atk-enum-types.h @@ -0,0 +1,41 @@ + +/* Generated data (by glib-mkenums) */ + +#ifndef __ATK_ENUM_TYPES_H__ +#define __ATK_ENUM_TYPES_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS +/* enumerations from "atkhyperlink.h" */ +GType atk_hyperlink_state_flags_get_type (void); +#define ATK_TYPE_HYPERLINK_STATE_FLAGS (atk_hyperlink_state_flags_get_type()) +/* enumerations from "atkobject.h" */ +GType atk_role_get_type (void); +#define ATK_TYPE_ROLE (atk_role_get_type()) +GType atk_layer_get_type (void); +#define ATK_TYPE_LAYER (atk_layer_get_type()) +/* enumerations from "atkrelationtype.h" */ +GType atk_relation_type_get_type (void); +#define ATK_TYPE_RELATION_TYPE (atk_relation_type_get_type()) +/* enumerations from "atkstate.h" */ +GType atk_state_type_get_type (void); +#define ATK_TYPE_STATE_TYPE (atk_state_type_get_type()) +/* enumerations from "atktext.h" */ +GType atk_text_attribute_get_type (void); +#define ATK_TYPE_TEXT_ATTRIBUTE (atk_text_attribute_get_type()) +GType atk_text_boundary_get_type (void); +#define ATK_TYPE_TEXT_BOUNDARY (atk_text_boundary_get_type()) +GType atk_text_clip_type_get_type (void); +#define ATK_TYPE_TEXT_CLIP_TYPE (atk_text_clip_type_get_type()) +/* enumerations from "atkutil.h" */ +GType atk_key_event_type_get_type (void); +#define ATK_TYPE_KEY_EVENT_TYPE (atk_key_event_type_get_type()) +GType atk_coord_type_get_type (void); +#define ATK_TYPE_COORD_TYPE (atk_coord_type_get_type()) +G_END_DECLS + +#endif /* __ATK_ENUM_TYPES_H__ */ + +/* Generated data ends here */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atk.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atk.h new file mode 100644 index 00000000..04d95390 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atk.h @@ -0,0 +1,50 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_H__ +#define __ATK_H__ + +#include <atk/atkobject.h> +#include <atk/atkaction.h> +#include <atk/atkcomponent.h> +#include <atk/atkdocument.h> +#include <atk/atkeditabletext.h> +#include <atk/atkgobjectaccessible.h> +#include <atk/atkhyperlink.h> +#include <atk/atkhyperlinkimpl.h> +#include <atk/atkhypertext.h> +#include <atk/atkimage.h> +#include <atk/atknoopobject.h> +#include <atk/atknoopobjectfactory.h> +#include <atk/atkobjectfactory.h> +#include <atk/atkregistry.h> +#include <atk/atkrelation.h> +#include <atk/atkrelationset.h> +#include <atk/atkrelationtype.h> +#include <atk/atkselection.h> +#include <atk/atkstate.h> +#include <atk/atkstateset.h> +#include <atk/atkstreamablecontent.h> +#include <atk/atktable.h> +#include <atk/atktext.h> +#include <atk/atkutil.h> +#include <atk/atkmisc.h> +#include <atk/atkvalue.h> + +#endif /* __ATK_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkaction.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkaction.h new file mode 100644 index 00000000..8dfee9fe --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkaction.h @@ -0,0 +1,112 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_ACTION_H__ +#define __ATK_ACTION_H__ + +#include <atk/atkobject.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * The interface AtkAction should be supported by any object that can + * perform one or more actions. The interface provides the standard + * mechanism for an assistive technology to determine what those actions + * are as well as tell the object to perform them. Any object that can + * be manipulated should support this interface. + */ + + +#define ATK_TYPE_ACTION (atk_action_get_type ()) +#define ATK_IS_ACTION(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_ACTION) +#define ATK_ACTION(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_ACTION, AtkAction) +#define ATK_ACTION_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_ACTION, AtkActionIface)) + +#ifndef _TYPEDEF_ATK_ACTION_ +#define _TYPEDEF_ATK_ACTION_ +typedef struct _AtkAction AtkAction; +#endif +typedef struct _AtkActionIface AtkActionIface; + +struct _AtkActionIface +{ + GTypeInterface parent; + + gboolean (*do_action) (AtkAction *action, + gint i); + gint (*get_n_actions) (AtkAction *action); + G_CONST_RETURN gchar* (*get_description) (AtkAction *action, + gint i); + G_CONST_RETURN gchar* (*get_name) (AtkAction *action, + gint i); + G_CONST_RETURN gchar* (*get_keybinding) (AtkAction *action, + gint i); + gboolean (*set_description) (AtkAction *action, + gint i, + const gchar *desc); + G_CONST_RETURN gchar* (*get_localized_name)(AtkAction *action, + gint i); + AtkFunction pad2; +}; + +GType atk_action_get_type (void); + +/* + * These are the function which would be called by an application with + * the argument being a AtkObject object cast to (AtkAction). + * + * The function will just check that * the corresponding + * function pointer is not NULL and will call it. + * + * The "real" implementation of the function for accessible will be + * provided in a support library + */ + +gboolean atk_action_do_action (AtkAction *action, + gint i); +gint atk_action_get_n_actions (AtkAction *action); +G_CONST_RETURN gchar* atk_action_get_description (AtkAction *action, + gint i); +G_CONST_RETURN gchar* atk_action_get_name (AtkAction *action, + gint i); +G_CONST_RETURN gchar* atk_action_get_keybinding (AtkAction *action, + gint i); +gboolean atk_action_set_description (AtkAction *action, + gint i, + const gchar *desc); + +/* NEW in ATK 1.1: */ + +G_CONST_RETURN gchar* atk_action_get_localized_name (AtkAction *action, + gint i); + +/* + * Additional GObject properties exported by AtkAction: + * "accessible_action" + * (an accessible action, or the list of actions, has changed) + */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_ACTION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkcomponent.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkcomponent.h new file mode 100644 index 00000000..c72a7283 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkcomponent.h @@ -0,0 +1,171 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_COMPONENT_H__ +#define __ATK_COMPONENT_H__ + +#include <atk/atkobject.h> +#include <atk/atkutil.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * The AtkComponent interface should be supported by any object that is + * rendered on the screen. The interface provides the standard mechanism + * for an assistive technology to determine and set the graphical + * representation of an object. + */ + +#define ATK_TYPE_COMPONENT (atk_component_get_type ()) +#define ATK_IS_COMPONENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_COMPONENT) +#define ATK_COMPONENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_COMPONENT, AtkComponent) +#define ATK_COMPONENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_COMPONENT, AtkComponentIface)) + +#ifndef _TYPEDEF_ATK_COMPONENT_ +#define _TYPEDEF_ATK_COMPONENT_ +typedef struct _AtkComponent AtkComponent; +#endif +typedef struct _AtkComponentIface AtkComponentIface; + +typedef void (*AtkFocusHandler) (AtkObject*, gboolean); + +typedef struct _AtkRectangle AtkRectangle; + +struct _AtkRectangle +{ + gint x; + gint y; + gint width; + gint height; +}; + +GType atk_rectangle_get_type (void); + +#define ATK_TYPE_RECTANGLE (atk_rectangle_get_type ()) +struct _AtkComponentIface +{ + GTypeInterface parent; + + guint (* add_focus_handler) (AtkComponent *component, + AtkFocusHandler handler); + + gboolean (* contains) (AtkComponent *component, + gint x, + gint y, + AtkCoordType coord_type); + + AtkObject* (* ref_accessible_at_point) (AtkComponent *component, + gint x, + gint y, + AtkCoordType coord_type); + void (* get_extents) (AtkComponent *component, + gint *x, + gint *y, + gint *width, + gint *height, + AtkCoordType coord_type); + void (* get_position) (AtkComponent *component, + gint *x, + gint *y, + AtkCoordType coord_type); + void (* get_size) (AtkComponent *component, + gint *width, + gint *height); + gboolean (* grab_focus) (AtkComponent *component); + void (* remove_focus_handler) (AtkComponent *component, + guint handler_id); + gboolean (* set_extents) (AtkComponent *component, + gint x, + gint y, + gint width, + gint height, + AtkCoordType coord_type); + gboolean (* set_position) (AtkComponent *component, + gint x, + gint y, + AtkCoordType coord_type); + gboolean (* set_size) (AtkComponent *component, + gint width, + gint height); + + AtkLayer (* get_layer) (AtkComponent *component); + gint (* get_mdi_zorder) (AtkComponent *component); + + /* + * signal handlers + */ + void (* bounds_changed) (AtkComponent *component, + AtkRectangle *bounds); + gdouble (* get_alpha) (AtkComponent *component); +}; + +GType atk_component_get_type (void); + +/* convenience functions */ + +guint atk_component_add_focus_handler (AtkComponent *component, + AtkFocusHandler handler); +gboolean atk_component_contains (AtkComponent *component, + gint x, + gint y, + AtkCoordType coord_type); +AtkObject* atk_component_ref_accessible_at_point(AtkComponent *component, + gint x, + gint y, + AtkCoordType coord_type); +void atk_component_get_extents (AtkComponent *component, + gint *x, + gint *y, + gint *width, + gint *height, + AtkCoordType coord_type); +void atk_component_get_position (AtkComponent *component, + gint *x, + gint *y, + AtkCoordType coord_type); +void atk_component_get_size (AtkComponent *component, + gint *width, + gint *height); +AtkLayer atk_component_get_layer (AtkComponent *component); +gint atk_component_get_mdi_zorder (AtkComponent *component); +gboolean atk_component_grab_focus (AtkComponent *component); +void atk_component_remove_focus_handler (AtkComponent *component, + guint handler_id); +gboolean atk_component_set_extents (AtkComponent *component, + gint x, + gint y, + gint width, + gint height, + AtkCoordType coord_type); +gboolean atk_component_set_position (AtkComponent *component, + gint x, + gint y, + AtkCoordType coord_type); +gboolean atk_component_set_size (AtkComponent *component, + gint width, + gint height); +gdouble atk_component_get_alpha (AtkComponent *component); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_COMPONENT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkdocument.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkdocument.h new file mode 100644 index 00000000..202cbef0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkdocument.h @@ -0,0 +1,81 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_DOCUMENT_H__ +#define __ATK_DOCUMENT_H__ + +#include <atk/atkobject.h> +#include <atk/atkutil.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * The AtkDocument interface should be supported by any object that is a container + * for 'document content' as opposed to a collection of user interface elements. + * + */ + +#define ATK_TYPE_DOCUMENT (atk_document_get_type ()) +#define ATK_IS_DOCUMENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_DOCUMENT) +#define ATK_DOCUMENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_DOCUMENT, AtkDocument) +#define ATK_DOCUMENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_DOCUMENT, AtkDocumentIface)) + +#ifndef _TYPEDEF_ATK_DOCUMENT_ +#define _TYPEDEF_ATK_DOCUMENT_ +typedef struct _AtkDocument AtkDocument; +#endif +typedef struct _AtkDocumentIface AtkDocumentIface; + +struct _AtkDocumentIface +{ + GTypeInterface parent; + G_CONST_RETURN gchar* ( *get_document_type) (AtkDocument *document); + gpointer ( *get_document) (AtkDocument *document); + + G_CONST_RETURN gchar* ( *get_document_locale) (AtkDocument *document); + AtkAttributeSet * ( *get_document_attributes) (AtkDocument *document); + G_CONST_RETURN gchar* ( *get_document_attribute_value) (AtkDocument *document, + const gchar *attribute_name); + gboolean ( *set_document_attribute) (AtkDocument *document, + const gchar *attribute_name, + const gchar *attribute_value); + + AtkFunction pad1; + AtkFunction pad2; + AtkFunction pad3; + AtkFunction pad4; +}; + +GType atk_document_get_type (void); + +G_CONST_RETURN gchar* atk_document_get_document_type (AtkDocument *document); +gpointer atk_document_get_document (AtkDocument *document); +G_CONST_RETURN gchar* atk_document_get_locale (AtkDocument *document); +AtkAttributeSet* atk_document_get_attributes (AtkDocument *document); +G_CONST_RETURN gchar* atk_document_get_attribute_value (AtkDocument *document, + const gchar *attribute_name); +gboolean atk_document_set_attribute_value (AtkDocument *document, + const gchar *attribute_name, + const gchar *attribute_value); +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* __ATK_DOCUMENT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkeditabletext.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkeditabletext.h new file mode 100644 index 00000000..02937ff8 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkeditabletext.h @@ -0,0 +1,105 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_EDITABLE_TEXT_H__ +#define __ATK_EDITABLE_TEXT_H__ + +#include <atk/atkobject.h> +#include <atk/atktext.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * AtkEditableText is used to support access in an "accessibility" context + * to editing features of editable text widgets. + */ + +#define ATK_TYPE_EDITABLE_TEXT (atk_editable_text_get_type ()) +#define ATK_IS_EDITABLE_TEXT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_EDITABLE_TEXT) +#define ATK_EDITABLE_TEXT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_EDITABLE_TEXT, AtkEditableText) +#define ATK_EDITABLE_TEXT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_EDITABLE_TEXT, AtkEditableTextIface)) + +#ifndef _TYPEDEF_ATK_EDITABLE_TEXT_ +#define _TYPEDEF_ATK_EDITABLE_TEXT_ +typedef struct _AtkEditableText AtkEditableText; +#endif +typedef struct _AtkEditableTextIface AtkEditableTextIface; + +struct _AtkEditableTextIface +{ + GTypeInterface parent_interface; + + gboolean (* set_run_attributes) (AtkEditableText *text, + AtkAttributeSet *attrib_set, + gint start_offset, + gint end_offset); + void (* set_text_contents) (AtkEditableText *text, + const gchar *string); + void (* insert_text) (AtkEditableText *text, + const gchar *string, + gint length, + gint *position); + void (* copy_text) (AtkEditableText *text, + gint start_pos, + gint end_pos); + void (* cut_text) (AtkEditableText *text, + gint start_pos, + gint end_pos); + void (* delete_text) (AtkEditableText *text, + gint start_pos, + gint end_pos); + void (* paste_text) (AtkEditableText *text, + gint position); + + AtkFunction pad1; + AtkFunction pad2; +}; +GType atk_editable_text_get_type (void); + + +gboolean atk_editable_text_set_run_attributes (AtkEditableText *text, + AtkAttributeSet *attrib_set, + gint start_offset, + gint end_offset); +void atk_editable_text_set_text_contents (AtkEditableText *text, + const gchar *string); +void atk_editable_text_insert_text (AtkEditableText *text, + const gchar *string, + gint length, + gint *position); +void atk_editable_text_copy_text (AtkEditableText *text, + gint start_pos, + gint end_pos); +void atk_editable_text_cut_text (AtkEditableText *text, + gint start_pos, + gint end_pos); +void atk_editable_text_delete_text (AtkEditableText *text, + gint start_pos, + gint end_pos); +void atk_editable_text_paste_text (AtkEditableText *text, + gint position); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_EDITABLE_TEXT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkgobjectaccessible.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkgobjectaccessible.h new file mode 100644 index 00000000..adb46cd9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkgobjectaccessible.h @@ -0,0 +1,67 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_GOBJECT_ACCESSIBLE_H__ +#define __ATK_GOBJECT_ACCESSIBLE_H__ + +#include <atk/atk.h> + + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * The AtkGObjectAccessible class is provided as a basis for implementing + * accessibility support for objects which are not GTK+ widgets + */ +#define ATK_TYPE_GOBJECT_ACCESSIBLE (atk_gobject_accessible_get_type ()) +#define ATK_GOBJECT_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_GOBJECT_ACCESSIBLE, AtkGObjectAccessible)) +#define ATK_GOBJECT_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_GOBJECT_ACCESSIBLE, AtkGObjectAccessibleClass)) +#define ATK_IS_GOBJECT_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_GOBJECT_ACCESSIBLE)) +#define ATK_IS_GOBJECT_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_GOBJECT_ACCESSIBLE)) +#define ATK_GOBJECT_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_GOBJECT_ACCESSIBLE, AtkGObjectAccessibleClass)) + +typedef struct _AtkGObjectAccessible AtkGObjectAccessible; +typedef struct _AtkGObjectAccessibleClass AtkGObjectAccessibleClass; + +struct _AtkGObjectAccessible +{ + AtkObject parent; +}; + +GType atk_gobject_accessible_get_type (void); + +struct _AtkGObjectAccessibleClass +{ + AtkObjectClass parent_class; + + AtkFunction pad1; + AtkFunction pad2; +}; + +AtkObject *atk_gobject_accessible_for_object (GObject *obj); +GObject *atk_gobject_accessible_get_object (AtkGObjectAccessible *obj); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_GOBJECT_ACCESSIBLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkhyperlink.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkhyperlink.h new file mode 100644 index 00000000..a5d3716f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkhyperlink.h @@ -0,0 +1,106 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_HYPERLINK_H__ +#define __ATK_HYPERLINK_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include <atk/atkaction.h> + +/* + * AtkHyperlink encapsulates a link or set of links in a hypertext document. + * + * It implements the AtkAction interface. + */ + +/** + *AtkHyperlinkStateFlags + *@ATK_HYPERLINK_IS_INLINE: Link is inline + * + *Describes the type of link + **/ +typedef enum +{ + ATK_HYPERLINK_IS_INLINE = 1 << 0 +} AtkHyperlinkStateFlags; + +#define ATK_TYPE_HYPERLINK (atk_hyperlink_get_type ()) +#define ATK_HYPERLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_HYPERLINK, AtkHyperlink)) +#define ATK_HYPERLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_HYPERLINK, AtkHyperlinkClass)) +#define ATK_IS_HYPERLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_HYPERLINK)) +#define ATK_IS_HYPERLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_HYPERLINK)) +#define ATK_HYPERLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_HYPERLINK, AtkHyperlinkClass)) + +typedef struct _AtkHyperlink AtkHyperlink; +typedef struct _AtkHyperlinkClass AtkHyperlinkClass; + +struct _AtkHyperlink +{ + GObject parent; +}; + +struct _AtkHyperlinkClass +{ + GObjectClass parent; + + gchar* (* get_uri) (AtkHyperlink *link_, + gint i); + AtkObject* (* get_object) (AtkHyperlink *link_, + gint i); + gint (* get_end_index) (AtkHyperlink *link_); + gint (* get_start_index) (AtkHyperlink *link_); + gboolean (* is_valid) (AtkHyperlink *link_); + gint (* get_n_anchors) (AtkHyperlink *link_); + guint (* link_state) (AtkHyperlink *link_); + gboolean (* is_selected_link) (AtkHyperlink *link_); + + /* Signals */ + void ( *link_activated) (AtkHyperlink *link_); + AtkFunction pad1; +}; + +GType atk_hyperlink_get_type (void); + +gchar* atk_hyperlink_get_uri (AtkHyperlink *link_, + gint i); + +AtkObject* atk_hyperlink_get_object (AtkHyperlink *link_, + gint i); + +gint atk_hyperlink_get_end_index (AtkHyperlink *link_); + +gint atk_hyperlink_get_start_index (AtkHyperlink *link_); + +gboolean atk_hyperlink_is_valid (AtkHyperlink *link_); + +gboolean atk_hyperlink_is_inline (AtkHyperlink *link_); + +gint atk_hyperlink_get_n_anchors (AtkHyperlink *link_); +gboolean atk_hyperlink_is_selected_link (AtkHyperlink *link_); + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_HYPERLINK_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkhyperlinkimpl.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkhyperlinkimpl.h new file mode 100644 index 00000000..b08a1d53 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkhyperlinkimpl.h @@ -0,0 +1,76 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_HYPERLINK_IMPL_H__ +#define __ATK_HYPERLINK_IMPL_H__ + +#include <atk/atkobject.h> +#include <atk/atkhyperlink.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * The AtkHyperlinkImpl interface should be supported by objects + * exposed within the hierarchy as children of an AtkHypertext container + * which correspond to "links" or embedded content within the text. + * HTML anchors are not, for instance, normally exposed this way, + * but embedded images and components which appear inline in the + * content of a text object are. The AtkHyperlinkIface interface + * allows a means of determining which children are hyperlinks in this + * sense of the word, and for obtaining their corresponding AtkHyperlink + * object, from which the embedding range, URI, etc. can be obtained. + * + * To some extent this interface exists because, for historical + * reasons, AtkHyperlink was defined as an object type, not an interface. + * Thus, in order to interact with AtkObjects via AtkHyperlink semantics, + * a new interface was required. + */ + +#define ATK_TYPE_HYPERLINK_IMPL (atk_hyperlink_impl_get_type ()) +#define ATK_IS_HYPERLINK_IMPL(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_HYPERLINK_IMPL) +#define ATK_HYPERLINK_IMPL(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_HYPERLINK_IMPL, AtkHyperlinkImpl) +#define ATK_HYPERLINK_IMPL_GET_IFACE(obj) G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_HYPERLINK_IMPL, AtkHyperlinkImplIface) + +#ifndef _TYPEDEF_ATK_HYPERLINK_IMPL_ +#define _TYPEDEF_ATK_HYPERLINK_IMPL__ +typedef struct _AtkHyperlinkImpl AtkHyperlinkImpl; +#endif +typedef struct _AtkHyperlinkImplIface AtkHyperlinkImplIface; + +struct _AtkHyperlinkImplIface +{ + GTypeInterface parent; + + AtkHyperlink* (* get_hyperlink) (AtkHyperlinkImpl *impl); + + AtkFunction pad1; +}; + +GType atk_hyperlink_impl_get_type (void); + +AtkHyperlink *atk_hyperlink_impl_get_hyperlink (AtkHyperlinkImpl *obj); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_HYPERLINK_IMPL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkhypertext.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkhypertext.h new file mode 100644 index 00000000..18464d9f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkhypertext.h @@ -0,0 +1,80 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_HYPERTEXT_H__ +#define __ATK_HYPERTEXT_H__ + +#include <atk/atkobject.h> +#include <atk/atkhyperlink.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * The AtkHypertext interface provides standard mechanisms for manipulating + * hyperlinks. + */ + +#define ATK_TYPE_HYPERTEXT (atk_hypertext_get_type ()) +#define ATK_IS_HYPERTEXT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_HYPERTEXT) +#define ATK_HYPERTEXT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_HYPERTEXT, AtkHypertext) +#define ATK_HYPERTEXT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_HYPERTEXT, AtkHypertextIface)) + +#ifndef _TYPEDEF_ATK_HYPERTEXT_ +#define _TYPEDEF_ATK_HYPERTEXT_ +typedef struct _AtkHypertext AtkHypertext; +#endif +typedef struct _AtkHypertextIface AtkHypertextIface; + +struct _AtkHypertextIface +{ + GTypeInterface parent; + + AtkHyperlink*(* get_link) (AtkHypertext *hypertext, + gint link_index); + gint (* get_n_links) (AtkHypertext *hypertext); + gint (* get_link_index) (AtkHypertext *hypertext, + gint char_index); + + /* + * signal handlers + */ + void (* link_selected) (AtkHypertext *hypertext, + gint link_index); + + AtkFunction pad1; + AtkFunction pad2; + AtkFunction pad3; +}; +GType atk_hypertext_get_type (void); + +AtkHyperlink* atk_hypertext_get_link (AtkHypertext *hypertext, + gint link_index); +gint atk_hypertext_get_n_links (AtkHypertext *hypertext); +gint atk_hypertext_get_link_index (AtkHypertext *hypertext, + gint char_index); + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_HYPERTEXT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkimage.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkimage.h new file mode 100644 index 00000000..7e60c818 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkimage.h @@ -0,0 +1,86 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_IMAGE_H__ +#define __ATK_IMAGE_H__ + +#include <atk/atkobject.h> +#include <atk/atkutil.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * The AtkImage interface should be supported by any object that has an + * associated image. This interface provides the standard mechanism for + * an assistive technology to get descriptive information about images. + */ + +#define ATK_TYPE_IMAGE (atk_image_get_type ()) +#define ATK_IS_IMAGE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_IMAGE) +#define ATK_IMAGE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_IMAGE, AtkImage) +#define ATK_IMAGE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_IMAGE, AtkImageIface)) + +#ifndef _TYPEDEF_ATK_IMAGE_ +#define _TYPEDEF_ATK_IMAGE_ +typedef struct _AtkImage AtkImage; +#endif +typedef struct _AtkImageIface AtkImageIface; + +struct _AtkImageIface +{ + GTypeInterface parent; + void ( *get_image_position) (AtkImage *image, + gint *x, + gint *y, + AtkCoordType coord_type); + G_CONST_RETURN gchar* ( *get_image_description) (AtkImage *image); + void ( *get_image_size) (AtkImage *image, + gint *width, + gint *height); + gboolean ( *set_image_description) (AtkImage *image, + const gchar *description); + G_CONST_RETURN gchar* ( *get_image_locale) (AtkImage *image); + + AtkFunction pad1; + +}; + +GType atk_image_get_type (void); + +G_CONST_RETURN gchar* atk_image_get_image_description (AtkImage *image); + +void atk_image_get_image_size (AtkImage *image, + gint *width, + gint *height); + +gboolean atk_image_set_image_description (AtkImage *image, + const gchar *description); +void atk_image_get_image_position (AtkImage *image, + gint *x, + gint *y, + AtkCoordType coord_type); + +G_CONST_RETURN gchar* atk_image_get_image_locale (AtkImage *image); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* __ATK_IMAGE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkmisc.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkmisc.h new file mode 100644 index 00000000..d750e2d0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkmisc.h @@ -0,0 +1,90 @@ +/* ATK - Accessibility Toolkit + * Copyright 2007 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_MISC_H__ +#define __ATK_MISC_H__ + +#include <glib-object.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define ATK_TYPE_MISC (atk_misc_get_type ()) +#define ATK_IS_MISC(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_MISC) +#define ATK_MISC(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_MISC, AtkMisc) +#define ATK_MISC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_MISC, AtkMiscClass)) +#define ATK_IS_MISC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_MISC)) +#define ATK_MISC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_MISC, AtkMiscClass)) + + +#ifndef _TYPEDEF_ATK_MISC_ +#define _TYPEDEF_ATK_MISC_ +typedef struct _AtkMisc AtkMisc; +typedef struct _AtkMiscClass AtkMiscClass; +#endif + +struct _AtkMisc +{ + GObject parent; +}; + +/* + * Singleton instance - only the ATK implementation layer for + * a given GUI toolkit/application instance should touch this + * symbol directly. + */ +extern AtkMisc *atk_misc_instance; + +struct _AtkMiscClass +{ + GObjectClass parent; + void (* threads_enter) (AtkMisc *misc); + void (* threads_leave) (AtkMisc *misc); + gpointer vfuncs[32]; /* future bincompat */ +}; +GType atk_misc_get_type (void); + +/* + * Wrapper for thread lock, i.e. take the thread mutex for the GUI toolkit, + * if one exists. + * (This method is implemented by the toolkit ATK implementation layer; + * for instance, for GTK+, GAIL implements this via GDK_THREADS_ENTER). + */ +void atk_misc_threads_enter (AtkMisc *misc); + +/* + * Wrapper for thread lock, i.e. release the thread mutex for the GUI toolkit, + * if one exists. + * (This method is implemented by the toolkit ATK implementation layer; + * for instance, for GTK+, GAIL implements this via GDK_THREADS_LEAVE). + */ +void atk_misc_threads_leave (AtkMisc *misc); + +/* + * Obtain (singleton) instance of AtkMisc. + */ +const AtkMisc *atk_misc_get_instance (void); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_MISC_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atknoopobject.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atknoopobject.h new file mode 100644 index 00000000..3c4e432a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atknoopobject.h @@ -0,0 +1,51 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_NO_OP_OBJECT_H__ +#define __ATK_NO_OP_OBJECT_H__ + +G_BEGIN_DECLS + +#define ATK_TYPE_NO_OP_OBJECT (atk_no_op_object_get_type ()) +#define ATK_NO_OP_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_NO_OP_OBJECT, AtkNoOpObject)) +#define ATK_NO_OP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_NO_OP_OBJECT, AtkNoOpObjectClass)) +#define ATK_IS_NO_OP_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_NO_OP_OBJECT)) +#define ATK_IS_NO_OP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_NO_OP_OBJECT)) +#define ATK_NO_OP_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_NO_OP_OBJECT, AtkNoOpObjectClass)) + +typedef struct _AtkNoOpObject AtkNoOpObject; +typedef struct _AtkNoOpObjectClass AtkNoOpObjectClass; + +struct _AtkNoOpObject +{ + AtkObject parent; +}; + +GType atk_no_op_object_get_type (void); + +struct _AtkNoOpObjectClass +{ + AtkObjectClass parent_class; +}; + +AtkObject *atk_no_op_object_new (GObject *obj); + +G_END_DECLS + +#endif /* __ATK_NO_OP_OBJECT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atknoopobjectfactory.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atknoopobjectfactory.h new file mode 100644 index 00000000..c3245313 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atknoopobjectfactory.h @@ -0,0 +1,58 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_NO_OP_OBJECT_FACTORY_H__ +#define __ATK_NO_OP_OBJECT_FACTORY_H__ + +#include <atk/atkobjectfactory.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define ATK_TYPE_NO_OP_OBJECT_FACTORY (atk_no_op_object_factory_get_type ()) +#define ATK_NO_OP_OBJECT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_NO_OP_OBJECT_FACTORY, AtkNoOpObjectFactory)) +#define ATK_NO_OP_OBJECT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_NO_OP_OBJECT_FACTORY, AtkNoOpObjectFactoryClass)) +#define ATK_IS_NO_OP_OBJECT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_NO_OP_OBJECT_FACTORY)) +#define ATK_IS_NO_OP_OBJECT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_NO_OP_OBJECT_FACTORY)) +#define ATK_NO_OP_OBJECT_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ( (obj), ATK_TYPE_NO_OP_OBJECT_FACTORY, AtkNoOpObjectFactoryClass)) + +typedef struct _AtkNoOpObjectFactory AtkNoOpObjectFactory; +typedef struct _AtkNoOpObjectFactoryClass AtkNoOpObjectFactoryClass; + +struct _AtkNoOpObjectFactory +{ + AtkObjectFactory parent; +}; + +struct _AtkNoOpObjectFactoryClass +{ + AtkObjectFactoryClass parent_class; +}; + +GType atk_no_op_object_factory_get_type(void); + +AtkObjectFactory *atk_no_op_object_factory_new(void); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_NO_OP_OBJECT_FACTORY_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkobject.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkobject.h new file mode 100644 index 00000000..bb9b55a0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkobject.h @@ -0,0 +1,648 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_OBJECT_H__ +#define __ATK_OBJECT_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include <glib-object.h> +#include <atk/atkstate.h> +#include <atk/atkrelationtype.h> + +/* + * AtkObject represents the minimum information all accessible objects + * return. This information includes accessible name, accessible + * description, role and state of the object, as well information about + * its parent and children. It is also possible to obtain more specific + * accessibility information about a component if it supports one or more + * of the following interfaces: + */ + + +/** + *AtkRole: + *@ATK_ROLE_INVALID: Invalid role + *@ATK_ROLE_ACCEL_LABEL: A label which represents an accelerator + *@ATK_ROLE_ALERT: An object which is an alert to the user. Assistive Technologies typically respond to ATK_ROLE_ALERT by reading the entire onscreen contents of containers advertising this role. Should be used for warning dialogs, etc. + *@ATK_ROLE_ANIMATION: An object which is an animated image + *@ATK_ROLE_ARROW: An arrow in one of the four cardinal directions + *@ATK_ROLE_CALENDAR: An object that displays a calendar and allows the user to select a date + *@ATK_ROLE_CANVAS: An object that can be drawn into and is used to trap events + *@ATK_ROLE_CHECK_BOX: A choice that can be checked or unchecked and provides a separate indicator for the current state + *@ATK_ROLE_CHECK_MENU_ITEM: A menu item with a check box + *@ATK_ROLE_COLOR_CHOOSER: A specialized dialog that lets the user choose a color + *@ATK_ROLE_COLUMN_HEADER: The header for a column of data + *@ATK_ROLE_COMBO_BOX: A list of choices the user can select from + *@ATK_ROLE_DATE_EDITOR: An object whose purpose is to allow a user to edit a date + *@ATK_ROLE_DESKTOP_ICON: An inconifed internal frame within a DESKTOP_PANE + *@ATK_ROLE_DESKTOP_FRAME: A pane that supports internal frames and iconified versions of those internal frames + *@ATK_ROLE_DIAL: An object whose purpose is to allow a user to set a value + *@ATK_ROLE_DIALOG: A top level window with title bar and a border + *@ATK_ROLE_DIRECTORY_PANE: A pane that allows the user to navigate through and select the contents of a directory + *@ATK_ROLE_DRAWING_AREA: An object used for drawing custom user interface elements + *@ATK_ROLE_FILE_CHOOSER: A specialized dialog that lets the user choose a file + *@ATK_ROLE_FILLER: A object that fills up space in a user interface + *@ATK_ROLE_FONT_CHOOSER: A specialized dialog that lets the user choose a font + *@ATK_ROLE_FRAME: A top level window with a title bar, border, menubar, etc. + *@ATK_ROLE_GLASS_PANE: A pane that is guaranteed to be painted on top of all panes beneath it + *@ATK_ROLE_HTML_CONTAINER: A document container for HTML, whose children represent the document content + *@ATK_ROLE_ICON: A small fixed size picture, typically used to decorate components + *@ATK_ROLE_IMAGE: An object whose primary purpose is to display an image + *@ATK_ROLE_INTERNAL_FRAME: A frame-like object that is clipped by a desktop pane + *@ATK_ROLE_LABEL: An object used to present an icon or short string in an interface + *@ATK_ROLE_LAYERED_PANE: A specialized pane that allows its children to be drawn in layers, providing a form of stacking order + *@ATK_ROLE_LIST: An object that presents a list of objects to the user and allows the user to select one or more of them + *@ATK_ROLE_LIST_ITEM: An object that represents an element of a list + *@ATK_ROLE_MENU: An object usually found inside a menu bar that contains a list of actions the user can choose from + *@ATK_ROLE_MENU_BAR: An object usually drawn at the top of the primary dialog box of an application that contains a list of menus the user can choose from + *@ATK_ROLE_MENU_ITEM: An object usually contained in a menu that presents an action the user can choose + *@ATK_ROLE_OPTION_PANE: A specialized pane whose primary use is inside a DIALOG + *@ATK_ROLE_PAGE_TAB: An object that is a child of a page tab list + *@ATK_ROLE_PAGE_TAB_LIST: An object that presents a series of panels (or page tabs), one at a time, through some mechanism provided by the object + *@ATK_ROLE_PANEL: A generic container that is often used to group objects + *@ATK_ROLE_PASSWORD_TEXT: A text object uses for passwords, or other places where the text content is not shown visibly to the user + *@ATK_ROLE_POPUP_MENU: A temporary window that is usually used to offer the user a list of choices, and then hides when the user selects one of those choices + *@ATK_ROLE_PROGRESS_BAR: An object used to indicate how much of a task has been completed + *@ATK_ROLE_PUSH_BUTTON: An object the user can manipulate to tell the application to do something + *@ATK_ROLE_RADIO_BUTTON: A specialized check box that will cause other radio buttons in the same group to become unchecked when this one is checked + *@ATK_ROLE_RADIO_MENU_ITEM: A check menu item which belongs to a group. At each instant exactly one of the radio menu items from a group is selected + *@ATK_ROLE_ROOT_PANE: A specialized pane that has a glass pane and a layered pane as its children + *@ATK_ROLE_ROW_HEADER: The header for a row of data + *@ATK_ROLE_SCROLL_BAR: An object usually used to allow a user to incrementally view a large amount of data. + *@ATK_ROLE_SCROLL_PANE: An object that allows a user to incrementally view a large amount of information + *@ATK_ROLE_SEPARATOR: An object usually contained in a menu to provide a visible and logical separation of the contents in a menu + *@ATK_ROLE_SLIDER: An object that allows the user to select from a bounded range + *@ATK_ROLE_SPLIT_PANE: A specialized panel that presents two other panels at the same time + *@ATK_ROLE_SPIN_BUTTON: An object used to get an integer or floating point number from the user + *@ATK_ROLE_STATUSBAR: An object which reports messages of minor importance to the user + *@ATK_ROLE_TABLE: An object used to represent information in terms of rows and columns + *@ATK_ROLE_TABLE_CELL: A cell in a table + *@ATK_ROLE_TABLE_COLUMN_HEADER: The header for a column of a table + *@ATK_ROLE_TABLE_ROW_HEADER: The header for a row of a table + *@ATK_ROLE_TEAR_OFF_MENU_ITEM: A menu item used to tear off and reattach its menu + *@ATK_ROLE_TERMINAL: An object that represents an accessible terminal. @Since: ATK-0.6 + *@ATK_ROLE_TEXT: An object that presents text to the user + *@ATK_ROLE_TOGGLE_BUTTON: A specialized push button that can be checked or unchecked, but does not provide a separate indicator for the current state + *@ATK_ROLE_TOOL_BAR: A bar or palette usually composed of push buttons or toggle buttons + *@ATK_ROLE_TOOL_TIP: An object that provides information about another object + *@ATK_ROLE_TREE: An object used to represent hierarchical information to the user + *@ATK_ROLE_TREE_TABLE: An object capable of expanding and collapsing rows as well as showing multiple columns of data. @Since: ATK-0.7 + *@ATK_ROLE_UNKNOWN: The object contains some Accessible information, but its role is not known + *@ATK_ROLE_VIEWPORT: An object usually used in a scroll pane + *@ATK_ROLE_WINDOW: A top level window with no title or border. + *@ATK_ROLE_HEADER: An object that serves as a document header. @Since:ATK 1.1.1 + *@ATK_ROLE_FOOTER: An object that serves as a document footer. @Since: ATK-1.1.1 + *@ATK_ROLE_PARAGRAPH: An object which is contains a paragraph of text content. @Since: ATK-1.1.1 + *@ATK_ROLE_RULER: An object which describes margins and tab stops, etc. for text objects which it controls (should have CONTROLLER_FOR relation to such). @Since: ATK-1.1.1 + *@ATK_ROLE_APPLICATION: The object is an application object, which may contain @ATK_ROLE_FRAME objects or other types of accessibles. The root accessible of any application's ATK hierarchy should have ATK_ROLE_APPLICATION. @Since: ATK-1.1.4 + *@ATK_ROLE_AUTOCOMPLETE: The object is a dialog or list containing items for insertion into an entry widget, for instance a list of words for completion of a text entry. @Since: ATK-1.3 + *@ATK_ROLE_EDITBAR: The object is an editable text object in a toolbar. @Since: ATK-1.5 + *@ATK_ROLE_EMBEDDED: The object is an embedded container within a document or panel. This role is a grouping "hint" indicating that the contained objects share a context. @Since: ATK-1.7.2 + *@ATK_ROLE_ENTRY: The object is a component whose textual content may be entered or modified by the user, provided @ATK_STATE_EDITABLE is present. @Since: ATK-1.11 + *@ATK_ROLE_CHART: The object is a graphical depiction of quantitative data. It may contain multiple subelements whose attributes and/or description may be queried to obtain both the quantitative data and information about how the data is being presented. The LABELLED_BY relation is particularly important in interpreting objects of this type, as is the accessible-description property. @Since: ATK-1.11 + *@ATK_ROLE_CAPTION: The object contains descriptive information, usually textual, about another user interface element such as a table, chart, or image. @Since: ATK-1.11 + *@ATK_ROLE_DOCUMENT_FRAME: The object is a visual frame or container which contains a view of document content. Document frames may occur within another Document instance, in which case the second document may be said to be embedded in the containing instance. HTML frames are often ROLE_DOCUMENT_FRAME. Either this object, or a singleton descendant, should implement the Document interface. @Since: ATK-1.11 + *@ATK_ROLE_HEADING: The object serves as a heading for content which follows it in a document. The 'heading level' of the heading, if availabe, may be obtained by querying the object's attributes. + *@ATK_ROLE_PAGE: The object is a containing instance which encapsulates a page of information. @ATK_ROLE_PAGE is used in documents and content which support a paginated navigation model. @Since: ATK-1.11 + *@ATK_ROLE_SECTION: The object is a containing instance of document content which constitutes a particular 'logical' section of the document. The type of content within a section, and the nature of the section division itself, may be obtained by querying the object's attributes. Sections may be nested. @Since: ATK-1.11 + *@ATK_ROLE_REDUNDANT_OBJECT: The object is redundant with another object in the hierarchy, and is exposed for purely technical reasons. Objects of this role should normally be ignored by clients. @Since: ATK-1.11 + *@ATK_ROLE_FORM: The object is a container for form controls, for instance as part of a + * web form or user-input form within a document. This role is primarily a tag/convenience for + * clients when navigating complex documents, it is not expected that ordinary GUI containers will + * always have ATK_ROLE_FORM. @Since: ATK-1.12.0 + *@ATK_ROLE_LINK: The object is a hypertext anchor, i.e. a "link" in a + * hypertext document. Such objects are distinct from 'inline' + * content which may also use the Hypertext/Hyperlink interfaces + * to indicate the range/location within a text object where + * an inline or embedded object lies. @Since: ATK-1.12.1 + *@ATK_ROLE_INPUT_METHOD_WINDOW: The object is a window or similar viewport + * which is used to allow composition or input of a 'complex character', + * in other words it is an "input method window." @Since: ATK-1.12.1 + *@ATK_ROLE_LAST_DEFINED: not a valid role, used for finding end of the enumeration + * + * Describes the role of an object + * + * These are the built-in enumerated roles that UI components can have in + * ATK. Other roles may be added at runtime, so an AtkRole >= + * ATK_ROLE_LAST_DEFINED is not necessarily an error. + **/ +typedef enum +{ + ATK_ROLE_INVALID = 0, + ATK_ROLE_ACCEL_LABEL, + ATK_ROLE_ALERT, + ATK_ROLE_ANIMATION, + ATK_ROLE_ARROW, + ATK_ROLE_CALENDAR, + ATK_ROLE_CANVAS, + ATK_ROLE_CHECK_BOX, + ATK_ROLE_CHECK_MENU_ITEM, + ATK_ROLE_COLOR_CHOOSER, + ATK_ROLE_COLUMN_HEADER, + ATK_ROLE_COMBO_BOX, + ATK_ROLE_DATE_EDITOR, + ATK_ROLE_DESKTOP_ICON, + ATK_ROLE_DESKTOP_FRAME, + ATK_ROLE_DIAL, + ATK_ROLE_DIALOG, + ATK_ROLE_DIRECTORY_PANE, + ATK_ROLE_DRAWING_AREA, + ATK_ROLE_FILE_CHOOSER, + ATK_ROLE_FILLER, + ATK_ROLE_FONT_CHOOSER, + ATK_ROLE_FRAME, + ATK_ROLE_GLASS_PANE, + ATK_ROLE_HTML_CONTAINER, + ATK_ROLE_ICON, + ATK_ROLE_IMAGE, + ATK_ROLE_INTERNAL_FRAME, + ATK_ROLE_LABEL, + ATK_ROLE_LAYERED_PANE, + ATK_ROLE_LIST, + ATK_ROLE_LIST_ITEM, + ATK_ROLE_MENU, + ATK_ROLE_MENU_BAR, + ATK_ROLE_MENU_ITEM, + ATK_ROLE_OPTION_PANE, + ATK_ROLE_PAGE_TAB, + ATK_ROLE_PAGE_TAB_LIST, + ATK_ROLE_PANEL, + ATK_ROLE_PASSWORD_TEXT, + ATK_ROLE_POPUP_MENU, + ATK_ROLE_PROGRESS_BAR, + ATK_ROLE_PUSH_BUTTON, + ATK_ROLE_RADIO_BUTTON, + ATK_ROLE_RADIO_MENU_ITEM, + ATK_ROLE_ROOT_PANE, + ATK_ROLE_ROW_HEADER, + ATK_ROLE_SCROLL_BAR, + ATK_ROLE_SCROLL_PANE, + ATK_ROLE_SEPARATOR, + ATK_ROLE_SLIDER, + ATK_ROLE_SPLIT_PANE, + ATK_ROLE_SPIN_BUTTON, + ATK_ROLE_STATUSBAR, + ATK_ROLE_TABLE, + ATK_ROLE_TABLE_CELL, + ATK_ROLE_TABLE_COLUMN_HEADER, + ATK_ROLE_TABLE_ROW_HEADER, + ATK_ROLE_TEAR_OFF_MENU_ITEM, + ATK_ROLE_TERMINAL, + ATK_ROLE_TEXT, + ATK_ROLE_TOGGLE_BUTTON, + ATK_ROLE_TOOL_BAR, + ATK_ROLE_TOOL_TIP, + ATK_ROLE_TREE, + ATK_ROLE_TREE_TABLE, + ATK_ROLE_UNKNOWN, + ATK_ROLE_VIEWPORT, + ATK_ROLE_WINDOW, + ATK_ROLE_HEADER, + ATK_ROLE_FOOTER, + ATK_ROLE_PARAGRAPH, + ATK_ROLE_RULER, + ATK_ROLE_APPLICATION, + ATK_ROLE_AUTOCOMPLETE, + ATK_ROLE_EDITBAR, + ATK_ROLE_EMBEDDED, + ATK_ROLE_ENTRY, + ATK_ROLE_CHART, + ATK_ROLE_CAPTION, + ATK_ROLE_DOCUMENT_FRAME, + ATK_ROLE_HEADING, + ATK_ROLE_PAGE, + ATK_ROLE_SECTION, + ATK_ROLE_REDUNDANT_OBJECT, + ATK_ROLE_FORM, + ATK_ROLE_LINK, + ATK_ROLE_INPUT_METHOD_WINDOW, + ATK_ROLE_LAST_DEFINED +} AtkRole; + +AtkRole atk_role_register (const gchar *name); + +/** + *AtkLayer: + *@ATK_LAYER_INVALID: The object does not have a layer + *@ATK_LAYER_BACKGROUND: This layer is reserved for the desktop background + *@ATK_LAYER_CANVAS: This layer is used for Canvas components + *@ATK_LAYER_WIDGET: This layer is normally used for components + *@ATK_LAYER_MDI: This layer is used for layered components + *@ATK_LAYER_POPUP: This layer is used for popup components, such as menus + *@ATK_LAYER_OVERLAY: This layer is reserved for future use. + *@ATK_LAYER_WINDOW: This layer is used for toplevel windows. + * + * Describes the layer of a component + * + * These enumerated "layer values" are used when determining which UI + * rendering layer a component is drawn into, which can help in making + * determinations of when components occlude one another. + **/ +typedef enum +{ + ATK_LAYER_INVALID, + ATK_LAYER_BACKGROUND, + ATK_LAYER_CANVAS, + ATK_LAYER_WIDGET, + ATK_LAYER_MDI, + ATK_LAYER_POPUP, + ATK_LAYER_OVERLAY, + ATK_LAYER_WINDOW +} AtkLayer; + +/** + * AtkAttributeSet: + * + * This is a singly-linked list (a #GSList) of #AtkAttribute. It is + * used by atk_text_get_run_attributes(), atk_text_get_default_attributes() + * and atk_editable_text_set_run_attributes() + **/ +typedef GSList AtkAttributeSet; + +/** + * AtkAttribute: + * @name: The attribute name. Call atk_text_attr_get_name() + * @value: the value of the attribute, represented as a string. + * Call atk_text_attr_get_value() for those which are strings. + * For values which are numbers, the string representation of the number + * is in value. + * + * A string name/value pair representing a text attribute. + **/ +typedef struct _AtkAttribute AtkAttribute; + +struct _AtkAttribute { + gchar* name; + gchar* value; +}; + +#define ATK_TYPE_OBJECT (atk_object_get_type ()) +#define ATK_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_OBJECT, AtkObject)) +#define ATK_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_OBJECT, AtkObjectClass)) +#define ATK_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_OBJECT)) +#define ATK_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_OBJECT)) +#define ATK_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_OBJECT, AtkObjectClass)) + +#define ATK_TYPE_IMPLEMENTOR (atk_implementor_get_type ()) +#define ATK_IS_IMPLEMENTOR(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_IMPLEMENTOR) +#define ATK_IMPLEMENTOR(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_IMPLEMENTOR, AtkImplementor) +#define ATK_IMPLEMENTOR_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_IMPLEMENTOR, AtkImplementorIface)) + + +typedef struct _AtkImplementor AtkImplementor; /* dummy typedef */ +typedef struct _AtkImplementorIface AtkImplementorIface; + + +typedef struct _AtkObject AtkObject; +typedef struct _AtkObjectClass AtkObjectClass; +typedef struct _AtkRelationSet AtkRelationSet; +typedef struct _AtkStateSet AtkStateSet; + +/** + * AtkPropertyValues: + * @property_name: The name of the ATK property which is being presented or which has been changed. + * @old_value: The old property value, NULL; in some contexts this value is undefined (see note below). + * @new_value: The new value of the named property. + * + * @note: For most properties the old_value field of AtkPropertyValues will + * not contain a valid value. + * + * Currently, the only property for which old_value is used is + * accessible-state; for instance if there is a focus state the + * property change handler will be called for the object which lost the focus + * with the old_value containing an AtkState value corresponding to focused + * and the property change handler will be called for the object which + * received the focus with the new_value containing an AtkState value + * corresponding to focused. + * + **/ +struct _AtkPropertyValues +{ + const gchar *property_name; + GValue old_value; + GValue new_value; +}; + +typedef struct _AtkPropertyValues AtkPropertyValues; + +typedef gboolean (*AtkFunction) (gpointer data); +/* + * For most properties the old_value field of AtkPropertyValues will + * not contain a valid value. + * + * Currently, the only property for which old_value is used is + * accessible-state; for instance if there is a focus state the + * property change handler will be called for the object which lost the focus + * with the old_value containing an AtkState value corresponding to focused + * and the property change handler will be called for the object which + * received the focus with the new_value containing an AtkState value + * corresponding to focused. + */ +typedef void (*AtkPropertyChangeHandler) (AtkObject*, AtkPropertyValues*); + + +struct _AtkObject +{ + GObject parent; + + gchar *description; + gchar *name; + AtkObject *accessible_parent; + AtkRole role; + AtkRelationSet *relation_set; + AtkLayer layer; +}; + +struct _AtkObjectClass +{ + GObjectClass parent; + + /* + * Gets the accessible name of the object + */ + G_CONST_RETURN gchar* (* get_name) (AtkObject *accessible); + /* + * Gets the accessible description of the object + */ + G_CONST_RETURN gchar* (* get_description) (AtkObject *accessible); + /* + * Gets the accessible parent of the object + */ + AtkObject* (*get_parent) (AtkObject *accessible); + + /* + * Gets the number of accessible children of the object + */ + gint (* get_n_children) (AtkObject *accessible); + /* + * Returns a reference to the specified accessible child of the object. + * The accessible children are 0-based so the first accessible child is + * at index 0, the second at index 1 and so on. + */ + AtkObject* (* ref_child) (AtkObject *accessible, + gint i); + /* + * Gets the 0-based index of this object in its parent; returns -1 if the + * object does not have an accessible parent. + */ + gint (* get_index_in_parent) (AtkObject *accessible); + /* + * Gets the RelationSet associated with the object + */ + AtkRelationSet* (* ref_relation_set) (AtkObject *accessible); + /* + * Gets the role of the object + */ + AtkRole (* get_role) (AtkObject *accessible); + AtkLayer (* get_layer) (AtkObject *accessible); + gint (* get_mdi_zorder) (AtkObject *accessible); + /* + * Gets the state set of the object + */ + AtkStateSet* (* ref_state_set) (AtkObject *accessible); + /* + * Sets the accessible name of the object + */ + void (* set_name) (AtkObject *accessible, + const gchar *name); + /* + * Sets the accessible description of the object + */ + void (* set_description) (AtkObject *accessible, + const gchar *description); + /* + * Sets the accessible parent of the object + */ + void (* set_parent) (AtkObject *accessible, + AtkObject *parent); + /* + * Sets the accessible role of the object + */ + void (* set_role) (AtkObject *accessible, + AtkRole role); + /* + * Specifies a function to be called when a property changes value + */ +guint (* connect_property_change_handler) (AtkObject + *accessible, + AtkPropertyChangeHandler *handler); + /* + * Removes a property change handler which was specified using + * connect_property_change_handler + */ +void (* remove_property_change_handler) (AtkObject + *accessible, + guint + handler_id); +void (* initialize) (AtkObject *accessible, + gpointer data); + /* + * The signal handler which is executed when there is a change in the + * children of the object + */ + void (* children_changed) (AtkObject *accessible, + guint change_index, + gpointer changed_child); + /* + * The signal handler which is executed when there is a focus event + * for an object. + */ + void (* focus_event) (AtkObject *accessible, + gboolean focus_in); + /* + * The signal handler which is executed when there is a property_change + * signal for an object. + */ + void (* property_change) (AtkObject *accessible, + AtkPropertyValues *values); + /* + * The signal handler which is executed when there is a state_change + * signal for an object. + */ + void (* state_change) (AtkObject *accessible, + const gchar *name, + gboolean state_set); + /* + * The signal handler which is executed when there is a change in the + * visible data for an object + */ + void (*visible_data_changed) (AtkObject *accessible); + + /* + * The signal handler which is executed when there is a change in the + * 'active' child or children of the object, for instance when + * interior focus changes in a table or list. This signal should be emitted + * by objects whose state includes ATK_STATE_MANAGES_DESCENDANTS. + */ + void (*active_descendant_changed) (AtkObject *accessible, + gpointer *child); + + /* + * Gets a list of properties applied to this object as a whole, as an #AtkAttributeSet consisting of name-value pairs. + * Since ATK 1.12 + */ + AtkAttributeSet* (*get_attributes) (AtkObject *accessible); + AtkFunction pad1; + AtkFunction pad2; +}; + +GType atk_object_get_type (void); + +struct _AtkImplementorIface +{ + GTypeInterface parent; + + AtkObject* (*ref_accessible) (AtkImplementor *implementor); +}; +GType atk_implementor_get_type (void); + +/* + * This method uses the ref_accessible method in AtkImplementorIface, + * if the object's class implements AtkImplementorIface. + * Otherwise it returns %NULL. + * + * IMPORTANT: + * Note also that because this method may return flyweight objects, + * it increments the returned AtkObject's reference count. + * Therefore it is the responsibility of the calling + * program to unreference the object when no longer needed. + * (c.f. gtk_widget_get_accessible() where this is not the case). + */ +AtkObject* atk_implementor_ref_accessible (AtkImplementor *implementor); + +/* + * Properties directly supported by AtkObject + */ + +G_CONST_RETURN gchar* atk_object_get_name (AtkObject *accessible); +G_CONST_RETURN gchar* atk_object_get_description (AtkObject *accessible); +AtkObject* atk_object_get_parent (AtkObject *accessible); +gint atk_object_get_n_accessible_children (AtkObject *accessible); +AtkObject* atk_object_ref_accessible_child (AtkObject *accessible, + gint i); +AtkRelationSet* atk_object_ref_relation_set (AtkObject *accessible); +AtkRole atk_object_get_role (AtkObject *accessible); +AtkLayer atk_object_get_layer (AtkObject *accessible); +gint atk_object_get_mdi_zorder (AtkObject *accessible); +AtkAttributeSet* atk_object_get_attributes (AtkObject *accessible); +AtkStateSet* atk_object_ref_state_set (AtkObject *accessible); +gint atk_object_get_index_in_parent (AtkObject *accessible); +void atk_object_set_name (AtkObject *accessible, + const gchar *name); +void atk_object_set_description (AtkObject *accessible, + const gchar *description); +void atk_object_set_parent (AtkObject *accessible, + AtkObject *parent); +void atk_object_set_role (AtkObject *accessible, + AtkRole role); + + +guint atk_object_connect_property_change_handler (AtkObject *accessible, + AtkPropertyChangeHandler *handler); +void atk_object_remove_property_change_handler (AtkObject *accessible, + guint handler_id); + +void atk_object_notify_state_change (AtkObject *accessible, + AtkState state, + gboolean value); +void atk_object_initialize (AtkObject *accessible, + gpointer data); + +G_CONST_RETURN gchar* atk_role_get_name (AtkRole role); +AtkRole atk_role_for_name (const gchar *name); + + +/* NEW in 1.1: convenience API */ +gboolean atk_object_add_relationship (AtkObject *object, + AtkRelationType relationship, + AtkObject *target); +gboolean atk_object_remove_relationship (AtkObject *object, + AtkRelationType relationship, + AtkObject *target); +G_CONST_RETURN gchar* atk_role_get_localized_name (AtkRole role); + +/* */ + + +/* + * Note: the properties which are registered with the GType + * property registry, for type ATK_TYPE_OBJECT, are as follows: + * + * "accessible-name" + * "accessible-description" + * "accessible-parent" + * "accessible-role" + * "accessible-value" + * "accessible-component-layer" + * "accessible-component-zorder" + * "accessible-table-caption" + * "accessible-table-column-description" + * "accessible-table-column-header" + * "accessible-table-row-description" + * "accessible-table-row-header" + * "accessible-table-summary" + * "accessible-model" + * + * accessibility property change listeners should use the + * normal GObject property interfaces and "property-change" + * signal handler semantics to interpret the property change + * information relayed from AtkObject. + * (AtkObject instances will connect to the "notify" + * signal in their host objects, and relay the signals when appropriate). + */ + +/* For other signals, see related interfaces + * + * AtkActionIface, + * AtkComponentIface, + * AtkHypertextIface, + * AtkImageIface, + * AtkSelectionIface, + * AtkTableIface, + * AtkTextIface, + * AtkValueIface. + * + * The usage model for obtaining these interface instances is: + * ATK_<interfacename>_GET_IFACE(GObject *accessible), + * where accessible, though specified as a GObject, is + * the AtkObject instance being queried. + * More usually, the interface will be used via a cast to the + * interface's corresponding "type": + * + * AtkText textImpl = ATK_TEXT(accessible); + * if (textImpl) + * { + * cpos = atk_text_get_caret_position(textImpl); + * } + * + * If it's known in advance that accessible implements AtkTextIface, + * this is shortened to: + * + * cpos = atk_text_get_caret_position (ATK_TEXT (accessible)); + */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_OBJECT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkobjectfactory.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkobjectfactory.h new file mode 100644 index 00000000..fb163adb --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkobjectfactory.h @@ -0,0 +1,68 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_OBJECT_FACTORY_H__ +#define __ATK_OBJECT_FACTORY_H__ + +#include <glib-object.h> +#include <atk/atkobject.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define ATK_TYPE_OBJECT_FACTORY (atk_object_factory_get_type ()) +#define ATK_OBJECT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_OBJECT_FACTORY, AtkObjectFactory)) +#define ATK_OBJECT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_OBJECT_FACTORY, AtkObjectFactoryClass)) +#define ATK_IS_OBJECT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_OBJECT_FACTORY)) +#define ATK_IS_OBJECT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_OBJECT_FACTORY)) +#define ATK_OBJECT_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_OBJECT_FACTORY, AtkObjectFactoryClass)) + +typedef struct _AtkObjectFactory AtkObjectFactory; +typedef struct _AtkObjectFactoryClass AtkObjectFactoryClass; + +struct _AtkObjectFactory +{ + GObject parent; +}; + +struct _AtkObjectFactoryClass +{ + GObjectClass parent_class; + + AtkObject* (* create_accessible) (GObject *obj); + void (* invalidate) (AtkObjectFactory *factory); + GType (* get_accessible_type) (void); + + AtkFunction pad1; + AtkFunction pad2; +}; + +GType atk_object_factory_get_type(void); + +AtkObject* atk_object_factory_create_accessible (AtkObjectFactory *factory, GObject *obj); +void atk_object_factory_invalidate (AtkObjectFactory *factory); +GType atk_object_factory_get_accessible_type (AtkObjectFactory *factory); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __GTK_OBJECT_FACTORY_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkregistry.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkregistry.h new file mode 100644 index 00000000..3ab0414a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkregistry.h @@ -0,0 +1,69 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_REGISTRY_H__ +#define __ATK_REGISTRY_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include <glib-object.h> +#include "atkobjectfactory.h" + +#define ATK_TYPE_REGISTRY (atk_registry_get_type ()) +#define ATK_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_REGISTRY, AtkRegistry)) +#define ATK_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_REGISTRY, AtkRegistryClass)) +#define ATK_IS_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_REGISTRY)) +#define ATK_IS_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_REGISTRY)) +#define ATK_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_REGISTRY, AtkRegistryClass)) + +struct _AtkRegistry +{ + GObject parent; + GHashTable *factory_type_registry; + GHashTable *factory_singleton_cache; +}; + +struct _AtkRegistryClass +{ + GObjectClass parent_class; +}; + +typedef struct _AtkRegistry AtkRegistry; +typedef struct _AtkRegistryClass AtkRegistryClass; + + +GType atk_registry_get_type (void); +void atk_registry_set_factory_type (AtkRegistry *registry, + GType type, + GType factory_type); +GType atk_registry_get_factory_type (AtkRegistry *registry, + GType type); +AtkObjectFactory* atk_registry_get_factory (AtkRegistry *registry, + GType type); + +AtkRegistry* atk_get_default_registry (void); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __ATK_REGISTRY_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkrelation.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkrelation.h new file mode 100644 index 00000000..08b0708f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkrelation.h @@ -0,0 +1,88 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_RELATION_H__ +#define __ATK_RELATION_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include <glib-object.h> +#include <atk/atkrelationtype.h> + +/* + * An AtkRelation describes a relation between the object and one or more + * other objects. The actual relations that an object has with other objects + * are defined as an AtkRelationSet, which is a set of AtkRelations. + */ + +#define ATK_TYPE_RELATION (atk_relation_get_type ()) +#define ATK_RELATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_RELATION, AtkRelation)) +#define ATK_RELATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_RELATION, AtkRelationClass)) +#define ATK_IS_RELATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_RELATION)) +#define ATK_IS_RELATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_RELATION)) +#define ATK_RELATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_RELATION, AtkRelationClass)) + +typedef struct _AtkRelation AtkRelation; +typedef struct _AtkRelationClass AtkRelationClass; + +struct _AtkRelation +{ + GObject parent; + + GPtrArray *target; + AtkRelationType relationship; +}; + +struct _AtkRelationClass +{ + GObjectClass parent; +}; + +GType atk_relation_get_type (void); + +AtkRelationType atk_relation_type_register (const gchar *name); +G_CONST_RETURN gchar* atk_relation_type_get_name (AtkRelationType type); +AtkRelationType atk_relation_type_for_name (const gchar *name); + +/* + * Create a new relation for the specified key and the specified list + * of targets. + */ +AtkRelation* atk_relation_new (AtkObject **targets, + gint n_targets, + AtkRelationType relationship); +/* + * Returns the type of a relation. + */ +AtkRelationType atk_relation_get_relation_type (AtkRelation *relation); +/* + * Returns the target list of a relation. + */ +GPtrArray* atk_relation_get_target (AtkRelation *relation); +void atk_relation_add_target (AtkRelation *relation, + AtkObject *target); + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __ATK_RELATION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkrelationset.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkrelationset.h new file mode 100644 index 00000000..2225baf9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkrelationset.h @@ -0,0 +1,79 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_RELATION_SET_H__ +#define __ATK_RELATION_SET_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include <glib-object.h> +#include <atk/atkobject.h> +#include <atk/atkrelation.h> + +#define ATK_TYPE_RELATION_SET (atk_relation_set_get_type ()) +#define ATK_RELATION_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_RELATION_SET, AtkRelationSet)) +#define ATK_RELATION_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_RELATION_SET, AtkRelationSetClass)) +#define ATK_IS_RELATION_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_RELATION_SET)) +#define ATK_IS_RELATION_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_RELATION_SET)) +#define ATK_RELATION_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_RELATION_SET, AtkRelationSetClass)) + +typedef struct _AtkRelationSetClass AtkRelationSetClass; + + +struct _AtkRelationSet +{ + GObject parent; + + GPtrArray *relations; +}; + +struct _AtkRelationSetClass +{ + GObjectClass parent; + + AtkFunction pad1; + AtkFunction pad2; +}; + +GType atk_relation_set_get_type (void); + +AtkRelationSet* atk_relation_set_new (void); +gboolean atk_relation_set_contains (AtkRelationSet *set, + AtkRelationType relationship); +void atk_relation_set_remove (AtkRelationSet *set, + AtkRelation *relation); +void atk_relation_set_add (AtkRelationSet *set, + AtkRelation *relation); +gint atk_relation_set_get_n_relations (AtkRelationSet *set); +AtkRelation* atk_relation_set_get_relation (AtkRelationSet *set, + gint i); +AtkRelation* atk_relation_set_get_relation_by_type (AtkRelationSet *set, + AtkRelationType relationship); +void atk_relation_set_add_relation_by_type (AtkRelationSet *set, + AtkRelationType relationship, + AtkObject *target); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_RELATION_SET_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkrelationtype.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkrelationtype.h new file mode 100644 index 00000000..665c675c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkrelationtype.h @@ -0,0 +1,79 @@ +/* ATK - Accessibility Toolkit + * Copyright 2002 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_RELATION_TYPE_H__ +#define __ATK_RELATION_TYPE_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + *AtkRelationType: + *@ATK_RELATION_NULL: Not used, represens "no relationship" or an error condition. + *@ATK_RELATION_CONTROLLED_BY: Indicates an object controlled by one or more target objects. + *@ATK_RELATION_CONTROLLER_FOR: Indicates an object is an controller for one or more target objects. + *@ATK_RELATION_LABEL_FOR: Indicates an object is a label for one or more target objects. + *@ATK_RELATION_LABELLED_BY: Indicates an object is labelled by one or more target objects. + *@ATK_RELATION_MEMBER_OF: Indicates an object is a member of a group of one or more target objects. + *@ATK_RELATION_NODE_CHILD_OF: Indicates an object is a cell in a treetable which is displayed because a cell in the same column is expanded and identifies that cell. + *@ATK_RELATION_FLOWS_TO: Indicates that the object has content that flows logically to another + * AtkObject in a sequential way, (for instance text-flow). + *@ATK_RELATION_FLOWS_FROM: Indicates that the object has content that flows logically from + * another AtkObject in a sequential way, (for instance text-flow). + *@ATK_RELATION_SUBWINDOW_OF: Indicates a subwindow attached to a component but otherwise has no connection in the UI heirarchy to that component. + *@ATK_RELATION_EMBEDS: Indicates that the object visually embeds + * another object's content, i.e. this object's content flows around + * another's content. + *@ATK_RELATION_EMBEDDED_BY: Inverse of %ATK_RELATION_EMBEDS, indicates that + * this object's content is visualy embedded in another object. + *@ATK_RELATION_POPUP_FOR: Indicates that an object is a popup for another object. + *@ATK_RELATION_PARENT_WINDOW_OF: Indicates that an object is a parent window of another object. + *@ATK_RELATION_DESCRIBED_BY: Indicates that another object provides descriptive information about this object; more verbose than ATK_RELATION_LABELLED_BY. + *@ATK_RELATION_DESCRIPTION_FOR: Indicates that an object provides descriptive information about another object; more verbose than ATK_RELATION_LABEL_FOR. + *@ATK_RELATION_LAST_DEFINED: Not used, this value indicates the end of the enumeration. + * + *Describes the type of the relation + **/ +typedef enum +{ + ATK_RELATION_NULL = 0, + ATK_RELATION_CONTROLLED_BY, + ATK_RELATION_CONTROLLER_FOR, + ATK_RELATION_LABEL_FOR, + ATK_RELATION_LABELLED_BY, + ATK_RELATION_MEMBER_OF, + ATK_RELATION_NODE_CHILD_OF, + ATK_RELATION_FLOWS_TO, + ATK_RELATION_FLOWS_FROM, + ATK_RELATION_SUBWINDOW_OF, + ATK_RELATION_EMBEDS, + ATK_RELATION_EMBEDDED_BY, + ATK_RELATION_POPUP_FOR, + ATK_RELATION_PARENT_WINDOW_OF, + ATK_RELATION_DESCRIBED_BY, + ATK_RELATION_DESCRIPTION_FOR, + ATK_RELATION_LAST_DEFINED +} AtkRelationType; + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __ATK_RELATION_TYPE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkselection.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkselection.h new file mode 100644 index 00000000..7b16930c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkselection.h @@ -0,0 +1,96 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_SELECTION_H__ +#define __ATK_SELECTION_H__ + +#include <atk/atkobject.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * This AtkSelection interface provides the standard mechanism for an + * assistive technology to determine what the current selected children are, + * as well as modify the selection set. Any object that has children that + * can be selected should support the AtkSelection interface. + */ + +#define ATK_TYPE_SELECTION (atk_selection_get_type ()) +#define ATK_IS_SELECTION(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_SELECTION) +#define ATK_SELECTION(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_SELECTION, AtkSelection) +#define ATK_SELECTION_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_SELECTION, AtkSelectionIface)) + +#ifndef _TYPEDEF_ATK_SELECTION_ +#define _TYPEDEF_ATK_SELECTION_ +typedef struct _AtkSelection AtkSelection; +#endif +typedef struct _AtkSelectionIface AtkSelectionIface; + +struct _AtkSelectionIface +{ + GTypeInterface parent; + + gboolean (* add_selection) (AtkSelection *selection, + gint i); + gboolean (* clear_selection) (AtkSelection *selection); + AtkObject* (* ref_selection) (AtkSelection *selection, + gint i); + gint (* get_selection_count) (AtkSelection *selection); + gboolean (* is_child_selected) (AtkSelection *selection, + gint i); + gboolean (* remove_selection) (AtkSelection *selection, + gint i); + gboolean (* select_all_selection) (AtkSelection *selection); + + /* signal handlers */ + + void (*selection_changed) (AtkSelection *selection); + + AtkFunction pad1; + AtkFunction pad2; +}; + +GType atk_selection_get_type (void); + +gboolean atk_selection_add_selection (AtkSelection *selection, + gint i); + +gboolean atk_selection_clear_selection (AtkSelection *selection); + +AtkObject* atk_selection_ref_selection (AtkSelection *selection, + gint i); + +gint atk_selection_get_selection_count (AtkSelection *selection); + +gboolean atk_selection_is_child_selected (AtkSelection *selection, + gint i); + +gboolean atk_selection_remove_selection (AtkSelection *selection, + gint i); + +gboolean atk_selection_select_all_selection (AtkSelection *selection); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_SELECTION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkstate.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkstate.h new file mode 100644 index 00000000..3317346a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkstate.h @@ -0,0 +1,178 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_STATE_H__ +#define __ATK_STATE_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include <glib-object.h> + +/** + *AtkStateType: + *@ATK_STATE_INVALID: Indicates an invalid state - probably an error condition. + *@ATK_STATE_ACTIVE: Indicates a window is currently the active window, or is an active subelement within a container or table + *@ATK_STATE_ARMED: Indicates that the object is 'armed', i.e. will be activated by if a pointer button-release event occurs within its bounds. Buttons often enter this state when a pointer click occurs within their bounds, as a precursor to activation. + *@ATK_STATE_BUSY: Indicates the current object is busy, i.e. onscreen representation is in the process of changing, or the object is temporarily unavailable for interaction due to activity already in progress. This state may be used by implementors of Document to indicate that content loading is underway. It also may indicate other 'pending' conditions; clients may wish to interrogate this object when the ATK_STATE_BUSY flag is removed. + *@ATK_STATE_CHECKED: Indicates this object is currently checked, for instance a checkbox is 'non-empty'. + *@ATK_STATE_DEFUNCT: Indicates that this object no longer has a valid backing widget (for instance, if its peer object has been destroyed) + *@ATK_STATE_EDITABLE: Indicates the user can change the contents of this object + *@ATK_STATE_ENABLED: Indicates that this object is enabled, i.e. that it currently reflects some application state. Objects that are "greyed out" may lack this state, and may lack the STATE_SENSITIVE if direct user interaction cannot cause them to acquire STATE_ENABLED. See also: ATK_STATE_SENSITIVE + *@ATK_STATE_EXPANDABLE: Indicates this object allows progressive disclosure of its children + *@ATK_STATE_EXPANDED: Indicates this object its expanded - see ATK_STATE_EXPANDABLE above + *@ATK_STATE_FOCUSABLE: Indicates this object can accept keyboard focus, which means all events resulting from typing on the keyboard will normally be passed to it when it has focus + *@ATK_STATE_FOCUSED: Indicates this object currently has the keyboard focus + *@ATK_STATE_HORIZONTAL: Indicates the orientation of this object is horizontal; used, for instance, by objects of ATK_ROLE_SCROLL_BAR. For objects where vertical/horizontal orientation is especially meaningful. + *@ATK_STATE_ICONIFIED: Indicates this object is minimized and is represented only by an icon + *@ATK_STATE_MODAL: Indicates something must be done with this object before the user can interact with an object in a different window + *@ATK_STATE_MULTI_LINE: Indicates this (text) object can contain multiple lines of text + *@ATK_STATE_MULTISELECTABLE: Indicates this object allows more than one of its children to be selected at the same time, or in the case of text objects, that the object supports non-contiguous text selections. + *@ATK_STATE_OPAQUE: Indicates this object paints every pixel within its rectangular region. + *@ATK_STATE_PRESSED: Indicates this object is currently pressed; c.f. ATK_STATE_ARMED + *@ATK_STATE_RESIZABLE: Indicates the size of this object is not fixed + *@ATK_STATE_SELECTABLE: Indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that can be selected + *@ATK_STATE_SELECTED: Indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that has been selected + *@ATK_STATE_SENSITIVE: Indicates this object is sensitive, e.g. to user interaction. + * STATE_SENSITIVE usually accompanies STATE_ENABLED for user-actionable controls, + * but may be found in the absence of STATE_ENABLED if the current visible state of the + * control is "disconnected" from the application state. In such cases, direct user interaction + * can often result in the object gaining STATE_SENSITIVE, for instance if a user makes + * an explicit selection using an object whose current state is ambiguous or undefined. + * @see STATE_ENABLED, STATE_INDETERMINATE. + *@ATK_STATE_SHOWING: Indicates this object, the object's parent, the object's parent's parent, and so on, + * are all 'shown' to the end-user, i.e. subject to "exposure" if blocking or obscuring objects do not interpose + * between this object and the top of the window stack. + *@ATK_STATE_SINGLE_LINE: Indicates this (text) object can contain only a single line of text + *@ATK_STATE_STALE: Indicates that the information returned for this object may no longer be + * synchronized with the application state. This is implied if the object has STATE_TRANSIENT, + * and can also occur towards the end of the object peer's lifecycle. It can also be used to indicate that + * the index associated with this object has changed since the user accessed the object (in lieu of + * "index-in-parent-changed" events). + *@ATK_STATE_TRANSIENT: Indicates this object is transient, i.e. a snapshot which may not emit events when its + * state changes. Data from objects with ATK_STATE_TRANSIENT should not be cached, since there may be no + * notification given when the cached data becomes obsolete. + *@ATK_STATE_VERTICAL: Indicates the orientation of this object is vertical + *@ATK_STATE_VISIBLE: Indicates this object is visible, e.g. has been explicitly marked for exposure to the user. + * @note: STATE_VISIBLE is no guarantee that the object is actually unobscured on the screen, only + * that it is 'potentially' visible, barring obstruction, being scrolled or clipped out of the + * field of view, or having an ancestor container that has not yet made visible. + * A widget is potentially onscreen if it has both STATE_VISIBLE and STATE_SHOWING. + * The absence of STATE_VISIBLE and STATE_SHOWING is semantically equivalent to saying + * that an object is 'hidden'. See also STATE_TRUNCATED, which applies if a VISIBLE and SHOWING object + * lies within a viewport which means that its contents are clipped, e.g. a truncated spreadsheet cell or + * an image within a scrolling viewport. Mostly useful for screen-review and magnification algorithms. + *@ATK_STATE_MANAGES_DESCENDANTS: Indicates that "active-descendant-changed" event + * is sent when children become 'active' (i.e. are selected or navigated to onscreen). + * Used to prevent need to enumerate all children in very large containers, like tables. + * The presence of STATE_MANAGES_DESCENDANTS is an indication to the client. + * that the children should not, and need not, be enumerated by the client. + * Objects implementing this state are expected to provide relevant state + * notifications to listening clients, for instance notifications of visibility + * changes and activation of their contained child objects, without the client + * having previously requested references to those children. + *@ATK_STATE_INDETERMINATE: Indicates that a check box is in a state other than checked or not checked. + * This usually means that the boolean value reflected or + * controlled by the object does not apply consistently to the entire current context. + * For example, a checkbox for the "Bold" attribute of text may have STATE_INDETERMINATE + * if the currently selected text contains a mixture of weight attributes. + * In many cases interacting with a STATE_INDETERMINATE object will cause + * the context's corresponding boolean attribute to be homogenized, whereupon the object + * will lose STATE_INDETERMINATE and a corresponding state-changed event will be fired. + *@ATK_STATE_TRUNCATED: Indicates that an object is truncated, e.g. a text value in a speradsheet cell. + *@ATK_STATE_REQUIRED: Indicates that explicit user interaction with an object is required by the user interface, e.g. a required field in a "web-form" interface. + *@ATK_STATE_INVALID_ENTRY: Indicates that the object has encountered an error condition due to failure of input validation. For instance, a form control may acquire this state in response to invalid or malformed user input. + *@ATK_STATE_SUPPORTS_AUTOCOMPLETION: Indicates that the object in question implements some form of ¨typeahead¨ or + * pre-selection behavior whereby entering the first character of one or more sub-elements + * causes those elements to scroll into view or become selected. Subsequent character input + * may narrow the selection further as long as one or more sub-elements match the string. + * This state is normally only useful and encountered on objects that implement Selection. + * In some cases the typeahead behavior may result in full or partial ¨completion¨ of + * the data in the input field, in which case these input events may trigger text-changed + * events from the AtkText interface. This state supplants @ATK_ROLE_AUTOCOMPLETE. + *@ATK_STATE_SELECTABLE_TEXT:Indicates that the object in question supports text selection. It should only be exposed on objects which implement the Text interface, in order to distinguish this state from @ATK_STATE_SELECTABLE, which infers that the object in question is a selectable child of an object which implements Selection. While similar, text selection and subelement selection are distinct operations. + *@ATK_STATE_DEFAULT: Indicates that the object is the "default" active component, i.e. the object which is activated by an end-user press of the "Enter" or "Return" key. Typically a "close" or "submit" button. + *@ATK_STATE_ANIMATED: Indicates that the object changes its appearance dynamically as an inherent part of its presentation. This state may come and go if an object is only temporarily animated on the way to a 'final' onscreen presentation. + * @note some applications, notably content viewers, may not be able to detect + * all kinds of animated content. Therefore the absence of this state should not + * be taken as definitive evidence that the object's visual representation is + * static; this state is advisory. + *@ATK_STATE_VISITED: Indicates that the object (typically a hyperlink) has already been 'activated', and/or its backing data has already been downloaded, rendered, or otherwise "visited". + *@ATK_STATE_LAST_DEFINED: Not a valid state, used for finding end of enumeration + * + *The possible types of states of an object + **/ +typedef enum +{ + ATK_STATE_INVALID, + ATK_STATE_ACTIVE, + ATK_STATE_ARMED, + ATK_STATE_BUSY, + ATK_STATE_CHECKED, + ATK_STATE_DEFUNCT, + ATK_STATE_EDITABLE, + ATK_STATE_ENABLED, + ATK_STATE_EXPANDABLE, + ATK_STATE_EXPANDED, + ATK_STATE_FOCUSABLE, + ATK_STATE_FOCUSED, + ATK_STATE_HORIZONTAL, + ATK_STATE_ICONIFIED, + ATK_STATE_MODAL, + ATK_STATE_MULTI_LINE, + ATK_STATE_MULTISELECTABLE, + ATK_STATE_OPAQUE, + ATK_STATE_PRESSED, + ATK_STATE_RESIZABLE, + ATK_STATE_SELECTABLE, + ATK_STATE_SELECTED, + ATK_STATE_SENSITIVE, + ATK_STATE_SHOWING, + ATK_STATE_SINGLE_LINE, + ATK_STATE_STALE, + ATK_STATE_TRANSIENT, + ATK_STATE_VERTICAL, + ATK_STATE_VISIBLE, + ATK_STATE_MANAGES_DESCENDANTS, + ATK_STATE_INDETERMINATE, + ATK_STATE_TRUNCATED, + ATK_STATE_REQUIRED, + ATK_STATE_INVALID_ENTRY, + ATK_STATE_SUPPORTS_AUTOCOMPLETION, + ATK_STATE_SELECTABLE_TEXT, + ATK_STATE_DEFAULT, + ATK_STATE_ANIMATED, + ATK_STATE_VISITED, + + ATK_STATE_LAST_DEFINED +} AtkStateType; + +typedef guint64 AtkState; + +AtkStateType atk_state_type_register (const gchar *name); + +G_CONST_RETURN gchar* atk_state_type_get_name (AtkStateType type); +AtkStateType atk_state_type_for_name (const gchar *name); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __ATK_STATE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkstateset.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkstateset.h new file mode 100644 index 00000000..43c3ea3d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkstateset.h @@ -0,0 +1,81 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_STATE_SET_H__ +#define __ATK_STATE_SET_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include <glib-object.h> +#include <atk/atkobject.h> +#include <atk/atkstate.h> + +#define ATK_TYPE_STATE_SET (atk_state_set_get_type ()) +#define ATK_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_STATE_SET, AtkStateSet)) +#define ATK_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_STATE_SET, AtkStateSetClass)) +#define ATK_IS_STATE_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_STATE_SET)) +#define ATK_IS_STATE_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_STATE_SET)) +#define ATK_STATE_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_STATE_SET, AtkStateSetClass)) + +typedef struct _AtkStateSetClass AtkStateSetClass; + + +struct _AtkStateSet +{ + GObject parent; + +}; + +struct _AtkStateSetClass +{ + GObjectClass parent; +}; + +GType atk_state_set_get_type (void); + +AtkStateSet* atk_state_set_new (void); +gboolean atk_state_set_is_empty (AtkStateSet *set); +gboolean atk_state_set_add_state (AtkStateSet *set, + AtkStateType type); +void atk_state_set_add_states (AtkStateSet *set, + AtkStateType *types, + gint n_types); +void atk_state_set_clear_states (AtkStateSet *set); +gboolean atk_state_set_contains_state (AtkStateSet *set, + AtkStateType type); +gboolean atk_state_set_contains_states (AtkStateSet *set, + AtkStateType *types, + gint n_types); +gboolean atk_state_set_remove_state (AtkStateSet *set, + AtkStateType type); +AtkStateSet* atk_state_set_and_sets (AtkStateSet *set, + AtkStateSet *compare_set); +AtkStateSet* atk_state_set_or_sets (AtkStateSet *set, + AtkStateSet *compare_set); +AtkStateSet* atk_state_set_xor_sets (AtkStateSet *set, + AtkStateSet *compare_set); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_STATE_SET_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkstreamablecontent.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkstreamablecontent.h new file mode 100644 index 00000000..abdbfa95 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkstreamablecontent.h @@ -0,0 +1,107 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_STREAMABLE_CONTENT_H__ +#define __ATK_STREAMABLE_CONTENT_H__ + +#include <atk/atkobject.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define ATK_TYPE_STREAMABLE_CONTENT (atk_streamable_content_get_type ()) +#define ATK_IS_STREAMABLE_CONTENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_STREAMABLE_CONTENT) +#define ATK_STREAMABLE_CONTENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_STREAMABLE_CONTENT, AtkStreamableContent) +#define ATK_STREAMABLE_CONTENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_STREAMABLE_CONTENT, AtkStreamableContentIface)) + +#ifndef _TYPEDEF_ATK_STREAMABLE_CONTENT +#define _TYPEDEF_ATK_STREAMABLE_CONTENT +typedef struct _AtkStreamableContent AtkStreamableContent; +#endif +typedef struct _AtkStreamableContentIface AtkStreamableContentIface; + +struct _AtkStreamableContentIface +{ + GTypeInterface parent; + + /* + * Get the number of mime types supported by this object + */ + gint (* get_n_mime_types) (AtkStreamableContent *streamable); + /* + * Gets the specified mime type supported by this object. + * The mime types are 0-based so the first mime type is + * at index 0, the second at index 1 and so on. The mime-type + * at index 0 should be considered the "default" data type for the stream. + * + * This assumes that the strings for the mime types are stored in the + * AtkStreamableContent. Alternatively the G_CONST_RETURN could be removed + * and the caller would be responsible for calling g_free() on the + * returned value. + */ + G_CONST_RETURN gchar* (* get_mime_type) (AtkStreamableContent *streamable, + gint i); + /* + * One possible implementation for this method is that it constructs the + * content appropriate for the mime type and then creates a temporary + * file containing the content, opens the file and then calls + * g_io_channel_unix_new_fd(). + */ + GIOChannel* (* get_stream) (AtkStreamableContent *streamable, + const gchar *mime_type); + +/* + * Returns a string representing a URI in IETF standard format + * (see http://www.ietf.org/rfc/rfc2396.txt) from which the object's content + * may be streamed in the specified mime-type. + * If mime_type is NULL, the URI for the default (and possibly only) mime-type is + * returned. + * + * returns NULL if the mime-type is not supported, or if no URI can be + * constructed. Note that it is possible for get_uri to return NULL but for + * get_stream to work nonetheless, since not all GIOChannels connect to URIs. + */ + G_CONST_RETURN gchar* (* get_uri) (AtkStreamableContent *streamable, + const gchar *mime_type); + + + AtkFunction pad1; + AtkFunction pad2; + AtkFunction pad3; +}; +GType atk_streamable_content_get_type (void); + +gint atk_streamable_content_get_n_mime_types (AtkStreamableContent *streamable); + +G_CONST_RETURN gchar* atk_streamable_content_get_mime_type (AtkStreamableContent *streamable, + gint i); +GIOChannel* atk_streamable_content_get_stream (AtkStreamableContent *streamable, + const gchar *mime_type); + +gchar* atk_streamable_content_get_uri (AtkStreamableContent *streamable, + const gchar *mime_type); + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_STREAMABLE_CONTENT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atktable.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atktable.h new file mode 100644 index 00000000..790fbb44 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atktable.h @@ -0,0 +1,218 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_TABLE_H__ +#define __ATK_TABLE_H__ + +#include <atk/atkobject.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * AtkTable describes a user-interface component that presents data in + * two-dimensional table format. + */ + + +#define ATK_TYPE_TABLE (atk_table_get_type ()) +#define ATK_IS_TABLE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE) +#define ATK_TABLE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE, AtkTable) +#define ATK_TABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE, AtkTableIface)) + +#ifndef _TYPEDEF_ATK_TABLE_ +#define _TYPEDEF_ATK_TABLE_ +typedef struct _AtkTable AtkTable; +#endif +typedef struct _AtkTableIface AtkTableIface; + +struct _AtkTableIface +{ + GTypeInterface parent; + + AtkObject* (* ref_at) (AtkTable *table, + gint row, + gint column); + gint (* get_index_at) (AtkTable *table, + gint row, + gint column); + gint (* get_column_at_index) (AtkTable *table, + gint index_); + gint (* get_row_at_index) (AtkTable *table, + gint index_); + gint (* get_n_columns) (AtkTable *table); + gint (* get_n_rows) (AtkTable *table); + gint (* get_column_extent_at) (AtkTable *table, + gint row, + gint column); + gint (* get_row_extent_at) (AtkTable *table, + gint row, + gint column); + AtkObject* + (* get_caption) (AtkTable *table); + G_CONST_RETURN gchar* + (* get_column_description) (AtkTable *table, + gint column); + AtkObject* (* get_column_header) (AtkTable *table, + gint column); + G_CONST_RETURN gchar* + (* get_row_description) (AtkTable *table, + gint row); + AtkObject* (* get_row_header) (AtkTable *table, + gint row); + AtkObject* (* get_summary) (AtkTable *table); + void (* set_caption) (AtkTable *table, + AtkObject *caption); + void (* set_column_description) (AtkTable *table, + gint column, + const gchar *description); + void (* set_column_header) (AtkTable *table, + gint column, + AtkObject *header); + void (* set_row_description) (AtkTable *table, + gint row, + const gchar *description); + void (* set_row_header) (AtkTable *table, + gint row, + AtkObject *header); + void (* set_summary) (AtkTable *table, + AtkObject *accessible); + gint (* get_selected_columns) (AtkTable *table, + gint **selected); + gint (* get_selected_rows) (AtkTable *table, + gint **selected); + gboolean (* is_column_selected) (AtkTable *table, + gint column); + gboolean (* is_row_selected) (AtkTable *table, + gint row); + gboolean (* is_selected) (AtkTable *table, + gint row, + gint column); + gboolean (* add_row_selection) (AtkTable *table, + gint row); + gboolean (* remove_row_selection) (AtkTable *table, + gint row); + gboolean (* add_column_selection) (AtkTable *table, + gint column); + gboolean (* remove_column_selection) (AtkTable *table, + gint column); + + /* + * signal handlers + */ + void (* row_inserted) (AtkTable *table, + gint row, + gint num_inserted); + void (* column_inserted) (AtkTable *table, + gint column, + gint num_inserted); + void (* row_deleted) (AtkTable *table, + gint row, + gint num_deleted); + void (* column_deleted) (AtkTable *table, + gint column, + gint num_deleted); + void (* row_reordered) (AtkTable *table); + void (* column_reordered) (AtkTable *table); + void (* model_changed) (AtkTable *table); + + AtkFunction pad1; + AtkFunction pad2; + AtkFunction pad3; + AtkFunction pad4; +}; + +GType atk_table_get_type (void); + +AtkObject* atk_table_ref_at (AtkTable *table, + gint row, + gint column); +gint atk_table_get_index_at (AtkTable *table, + gint row, + gint column); +gint atk_table_get_column_at_index (AtkTable *table, + gint index_); +gint atk_table_get_row_at_index (AtkTable *table, + gint index_); +gint atk_table_get_n_columns (AtkTable *table); +gint atk_table_get_n_rows (AtkTable *table); +gint atk_table_get_column_extent_at (AtkTable *table, + gint row, + gint column); +gint atk_table_get_row_extent_at (AtkTable *table, + gint row, + gint column); +AtkObject* + atk_table_get_caption (AtkTable *table); +G_CONST_RETURN gchar* + atk_table_get_column_description (AtkTable *table, + gint column); +AtkObject* atk_table_get_column_header (AtkTable *table, + gint column); +G_CONST_RETURN gchar* + atk_table_get_row_description (AtkTable *table, + gint row); +AtkObject* atk_table_get_row_header (AtkTable *table, + gint row); +AtkObject* atk_table_get_summary (AtkTable *table); +void atk_table_set_caption (AtkTable *table, + AtkObject *caption); +void atk_table_set_column_description + (AtkTable *table, + gint column, + const gchar *description); +void atk_table_set_column_header (AtkTable *table, + gint column, + AtkObject *header); +void atk_table_set_row_description (AtkTable *table, + gint row, + const gchar *description); +void atk_table_set_row_header (AtkTable *table, + gint row, + AtkObject *header); +void atk_table_set_summary (AtkTable *table, + AtkObject *accessible); +gint atk_table_get_selected_columns (AtkTable *table, + gint **selected); +gint atk_table_get_selected_rows (AtkTable *table, + gint **selected); +gboolean atk_table_is_column_selected (AtkTable *table, + gint column); +gboolean atk_table_is_row_selected (AtkTable *table, + gint row); +gboolean atk_table_is_selected (AtkTable *table, + gint row, + gint column); +gboolean atk_table_add_row_selection (AtkTable *table, + gint row); +gboolean atk_table_remove_row_selection (AtkTable *table, + gint row); +gboolean atk_table_add_column_selection (AtkTable *table, + gint column); +gboolean atk_table_remove_column_selection + (AtkTable *table, + gint column); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_TABLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atktext.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atktext.h new file mode 100644 index 00000000..191e231f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atktext.h @@ -0,0 +1,367 @@ +/* ATK - The Accessibility Toolkit for GTK+ + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#ifndef __ATK_TEXT_H__ +#define __ATK_TEXT_H__ + +#include <glib-object.h> +#include <atk/atkobject.h> +#include <atk/atkutil.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + *AtkTextAttribute + *@ATK_TEXT_ATTR_INVALID: Invalid attribute + *@ATK_TEXT_ATTR_LEFT_MARGIN: The pixel width of the left margin + *@ATK_TEXT_ATTR_RIGHT_MARGIN: The pixel width of the right margin + *@ATK_TEXT_ATTR_INDENT: The number of pixels that the text is indented + *@ATK_TEXT_ATTR_INVISIBLE: Either "true" or "false" indicating whether text is visible or not + *@ATK_TEXT_ATTR_EDITABLE: Either "true" or "false" indicating whether text is editable or not + *@ATK_TEXT_ATTR_PIXELS_ABOVE_LINES: Pixels of blank space to leave above each newline-terminated line. + *@ATK_TEXT_ATTR_PIXELS_BELOW_LINES: Pixels of blank space to leave below each newline-terminated line. + *@ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP: Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph). + *@ATK_TEXT_ATTR_BG_FULL_HEIGHT: "true" or "false" whether to make the background color for each character the height of the highest font used on the current line, or the height of the font used for the current character. + *@ATK_TEXT_ATTR_RISE: Number of pixels that the characters are risen above the baseline + *@ATK_TEXT_ATTR_UNDERLINE: "none", "single", "double" or "low" + *@ATK_TEXT_ATTR_STRIKETHROUGH: "true" or "false" whether the text is strikethrough + *@ATK_TEXT_ATTR_SIZE: The size of the characters. + *@ATK_TEXT_ATTR_SCALE: The scale of the characters. The value is a string representation of a double + *@ATK_TEXT_ATTR_WEIGHT: The weight of the characters. + *@ATK_TEXT_ATTR_LANGUAGE: The language used + *@ATK_TEXT_ATTR_FAMILY_NAME: The font family name + *@ATK_TEXT_ATTR_BG_COLOR: The background color. The value is an RGB value of the format "%u,%u,%u" + *@ATK_TEXT_ATTR_FG_COLOR:The foreground color. The value is an RGB value of the format "%u,%u,%u" + *@ATK_TEXT_ATTR_BG_STIPPLE: "true" if a #GdkBitmap is set for stippling the background color. + *@ATK_TEXT_ATTR_FG_STIPPLE: "true" if a #GdkBitmap is set for stippling the foreground color. + *@ATK_TEXT_ATTR_WRAP_MODE: The wrap mode of the text, if any. Values are "none", "char" or "word" + *@ATK_TEXT_ATTR_DIRECTION: The direction of the text, if set. Values are "none", "ltr" or "rtl" + *@ATK_TEXT_ATTR_JUSTIFICATION: The justification of the text, if set. Values are "left", "right", "center" or "fill" + *@ATK_TEXT_ATTR_STRETCH: The stretch of the text, if set. Values are "ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded" + *@ATK_TEXT_ATTR_VARIANT: The capitalization variant of the text, if set. Values are "normal" or "small_caps" + *@ATK_TEXT_ATTR_STYLE: The slant style of the text, if set. Values are "normal", "oblique" or "italic" + *@ATK_TEXT_ATTR_LAST_DEFINED: not a valid text attribute, used for finding end of enumeration + * + * Describes the text attributes supported + **/ +typedef enum +{ + ATK_TEXT_ATTR_INVALID = 0, + ATK_TEXT_ATTR_LEFT_MARGIN, + ATK_TEXT_ATTR_RIGHT_MARGIN, + ATK_TEXT_ATTR_INDENT, + ATK_TEXT_ATTR_INVISIBLE, + ATK_TEXT_ATTR_EDITABLE, + ATK_TEXT_ATTR_PIXELS_ABOVE_LINES, + ATK_TEXT_ATTR_PIXELS_BELOW_LINES, + ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP, + ATK_TEXT_ATTR_BG_FULL_HEIGHT, + ATK_TEXT_ATTR_RISE, + ATK_TEXT_ATTR_UNDERLINE, + ATK_TEXT_ATTR_STRIKETHROUGH, + ATK_TEXT_ATTR_SIZE, + ATK_TEXT_ATTR_SCALE, + ATK_TEXT_ATTR_WEIGHT, + ATK_TEXT_ATTR_LANGUAGE, + ATK_TEXT_ATTR_FAMILY_NAME, + ATK_TEXT_ATTR_BG_COLOR, + ATK_TEXT_ATTR_FG_COLOR, + ATK_TEXT_ATTR_BG_STIPPLE, + ATK_TEXT_ATTR_FG_STIPPLE, + ATK_TEXT_ATTR_WRAP_MODE, + ATK_TEXT_ATTR_DIRECTION, + ATK_TEXT_ATTR_JUSTIFICATION, + ATK_TEXT_ATTR_STRETCH, + ATK_TEXT_ATTR_VARIANT, + ATK_TEXT_ATTR_STYLE, + ATK_TEXT_ATTR_LAST_DEFINED +} AtkTextAttribute; + +AtkTextAttribute atk_text_attribute_register (const gchar *name); + + +#define ATK_TYPE_TEXT (atk_text_get_type ()) +#define ATK_IS_TEXT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TEXT) +#define ATK_TEXT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TEXT, AtkText) +#define ATK_TEXT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TEXT, AtkTextIface)) + +#ifndef _TYPEDEF_ATK_TEXT_ +#define _TYPEDEF_ATK_TEXT_ +typedef struct _AtkText AtkText; +#endif +typedef struct _AtkTextIface AtkTextIface; + +/** + *AtkTextBoundary: + *@ATK_TEXT_BOUNDARY_CHAR: Boundary is the boundary between characters + * (including non-printing characters) + *@ATK_TEXT_BOUNDARY_WORD_START: Boundary is the start (i.e. first character) of a word. + *@ATK_TEXT_BOUNDARY_WORD_END: Boundary is the end (i.e. last character) of a word. + *@ATK_TEXT_BOUNDARY_SENTENCE_START: Boundary is the first character in a sentence. + *@ATK_TEXT_BOUNDARY_SENTENCE_END: Boundary is the last (terminal) character in a sentence; + * in languages which use "sentence stop" punctuation such as English, the boundary is thus the + * '.', '?', or similar terminal punctuation character. + *@ATK_TEXT_BOUNDARY_LINE_START: Boundary is the initial character of the content or a + * character immediately following a newline, linefeed, or return character. + *@ATK_TEXT_BOUNDARY_LINE_END: Boundary is the linefeed, or return character. + * + *Text boundary types used for specifying boundaries for regions of text + **/ +typedef enum { + ATK_TEXT_BOUNDARY_CHAR, + ATK_TEXT_BOUNDARY_WORD_START, + ATK_TEXT_BOUNDARY_WORD_END, + ATK_TEXT_BOUNDARY_SENTENCE_START, + ATK_TEXT_BOUNDARY_SENTENCE_END, + ATK_TEXT_BOUNDARY_LINE_START, + ATK_TEXT_BOUNDARY_LINE_END +} AtkTextBoundary; + +/** + * AtkTextRectangle: + * @x: The horizontal coordinate of a rectangle + * @y: The vertical coordinate of a rectangle + * @width: The width of a rectangle + * @height: The height of a rectangle + * + * A structure used to store a rectangle used by AtkText. + **/ + +typedef struct _AtkTextRectangle AtkTextRectangle; + +struct _AtkTextRectangle { + gint x; + gint y; + gint width; + gint height; +}; + +/** + * AtkTextRange: + * @bounds: A rectangle giving the bounds of the text range + * @start_offset: The start offset of a AtkTextRange + * @end_offset: The end offset of a AtkTextRange + * @content: The text in the text range + * + * A structure used to describe a text range. + **/ +typedef struct _AtkTextRange AtkTextRange; + +struct _AtkTextRange { + AtkTextRectangle bounds; + gint start_offset; + gint end_offset; + gchar* content; +}; + +/** + *AtkTextClipType + *@ATK_TEXT_CLIP_NONE: No clipping to be done + *@ATK_TEXT_CLIP_MIN: Text clipped by min coordinate is omitted + *@ATK_TEXT_CLIP_MAX: Text clipped by max coordinate is omitted + *@ATK_TEXT_CLIP_BOTH: Only text fully within mix/max bound is retained + * + *Describes the type of clipping required. + **/ +typedef enum { + ATK_TEXT_CLIP_NONE, + ATK_TEXT_CLIP_MIN, + ATK_TEXT_CLIP_MAX, + ATK_TEXT_CLIP_BOTH +} AtkTextClipType; + +struct _AtkTextIface +{ + GTypeInterface parent; + + gchar* (* get_text) (AtkText *text, + gint start_offset, + gint end_offset); + gchar* (* get_text_after_offset) (AtkText *text, + gint offset, + AtkTextBoundary boundary_type, + gint *start_offset, + gint *end_offset); + gchar* (* get_text_at_offset) (AtkText *text, + gint offset, + AtkTextBoundary boundary_type, + gint *start_offset, + gint *end_offset); + gunichar (* get_character_at_offset) (AtkText *text, + gint offset); + gchar* (* get_text_before_offset) (AtkText *text, + gint offset, + AtkTextBoundary boundary_type, + gint *start_offset, + gint *end_offset); + gint (* get_caret_offset) (AtkText *text); + AtkAttributeSet* (* get_run_attributes) (AtkText *text, + gint offset, + gint *start_offset, + gint *end_offset); + AtkAttributeSet* (* get_default_attributes) (AtkText *text); + void (* get_character_extents) (AtkText *text, + gint offset, + gint *x, + gint *y, + gint *width, + gint *height, + AtkCoordType coords); + gint (* get_character_count) (AtkText *text); + gint (* get_offset_at_point) (AtkText *text, + gint x, + gint y, + AtkCoordType coords); + gint (* get_n_selections) (AtkText *text); + gchar* (* get_selection) (AtkText *text, + gint selection_num, + gint *start_offset, + gint *end_offset); + gboolean (* add_selection) (AtkText *text, + gint start_offset, + gint end_offset); + gboolean (* remove_selection) (AtkText *text, + gint selection_num); + gboolean (* set_selection) (AtkText *text, + gint selection_num, + gint start_offset, + gint end_offset); + gboolean (* set_caret_offset) (AtkText *text, + gint offset); + + /* + * signal handlers + */ + void (* text_changed) (AtkText *text, + gint position, + gint length); + void (* text_caret_moved) (AtkText *text, + gint location); + void (* text_selection_changed) (AtkText *text); + + void (* text_attributes_changed) (AtkText *text); + + + void (* get_range_extents) (AtkText *text, + gint start_offset, + gint end_offset, + AtkCoordType coord_type, + AtkTextRectangle *rect); + + AtkTextRange** (* get_bounded_ranges) (AtkText *text, + AtkTextRectangle *rect, + AtkCoordType coord_type, + AtkTextClipType x_clip_type, + AtkTextClipType y_clip_type); + + + AtkFunction pad4; +}; + +GType atk_text_get_type (void); + + +/* + * Additional AtkObject properties used by AtkText: + * "accessible_text" (accessible text has changed) + * "accessible_caret" (accessible text cursor position changed: + * editable text only) + */ + +gchar* atk_text_get_text (AtkText *text, + gint start_offset, + gint end_offset); +gunichar atk_text_get_character_at_offset (AtkText *text, + gint offset); +gchar* atk_text_get_text_after_offset (AtkText *text, + gint offset, + AtkTextBoundary boundary_type, + gint *start_offset, + gint *end_offset); +gchar* atk_text_get_text_at_offset (AtkText *text, + gint offset, + AtkTextBoundary boundary_type, + gint *start_offset, + gint *end_offset); +gchar* atk_text_get_text_before_offset (AtkText *text, + gint offset, + AtkTextBoundary boundary_type, + gint *start_offset, + gint *end_offset); +gint atk_text_get_caret_offset (AtkText *text); +void atk_text_get_character_extents (AtkText *text, + gint offset, + gint *x, + gint *y, + gint *width, + gint *height, + AtkCoordType coords); +AtkAttributeSet* atk_text_get_run_attributes (AtkText *text, + gint offset, + gint *start_offset, + gint *end_offset); +AtkAttributeSet* atk_text_get_default_attributes (AtkText *text); +gint atk_text_get_character_count (AtkText *text); +gint atk_text_get_offset_at_point (AtkText *text, + gint x, + gint y, + AtkCoordType coords); +gint atk_text_get_n_selections (AtkText *text); +gchar* atk_text_get_selection (AtkText *text, + gint selection_num, + gint *start_offset, + gint *end_offset); +gboolean atk_text_add_selection (AtkText *text, + gint start_offset, + gint end_offset); +gboolean atk_text_remove_selection (AtkText *text, + gint selection_num); +gboolean atk_text_set_selection (AtkText *text, + gint selection_num, + gint start_offset, + gint end_offset); +gboolean atk_text_set_caret_offset (AtkText *text, + gint offset); +void atk_text_get_range_extents (AtkText *text, + + gint start_offset, + gint end_offset, + AtkCoordType coord_type, + AtkTextRectangle *rect); +AtkTextRange** atk_text_get_bounded_ranges (AtkText *text, + AtkTextRectangle *rect, + AtkCoordType coord_type, + AtkTextClipType x_clip_type, + AtkTextClipType y_clip_type); +void atk_text_free_ranges (AtkTextRange **ranges); +void atk_attribute_set_free (AtkAttributeSet *attrib_set); +G_CONST_RETURN gchar* atk_text_attribute_get_name (AtkTextAttribute attr); +AtkTextAttribute atk_text_attribute_for_name (const gchar *name); +G_CONST_RETURN gchar* atk_text_attribute_get_value (AtkTextAttribute attr, + gint index_); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_TEXT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkutil.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkutil.h new file mode 100644 index 00000000..e96eb649 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkutil.h @@ -0,0 +1,315 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_UTIL_H__ +#define __ATK_UTIL_H__ + +#include <atk/atkobject.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define ATK_TYPE_UTIL (atk_util_get_type ()) +#define ATK_IS_UTIL(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_UTIL) +#define ATK_UTIL(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_UTIL, AtkUtil) +#define ATK_UTIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_UTIL, AtkUtilClass)) +#define ATK_IS_UTIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_UTIL)) +#define ATK_UTIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_UTIL, AtkUtilClass)) + + +#ifndef _TYPEDEF_ATK_UTIL_ +#define _TYPEDEF_ATK_UTIL_ +typedef struct _AtkUtil AtkUtil; +typedef struct _AtkUtilClass AtkUtilClass; +typedef struct _AtkKeyEventStruct AtkKeyEventStruct; +#endif + +/** + * AtkEventListener: + * @obj: An #AtkObject instance for whom the callback will be called when + * the specified event (e.g. 'focus:') takes place. + * + * A function which is called when an object emits a matching event, + * as used in #atk_add_focus_tracker. + * Currently the only events for which object-specific handlers are + * supported are events of type "focus:". Most clients of ATK will prefer to + * attach signal handlers for the various ATK signals instead. + * + * @see: atk_add_focus_tracker. + **/ +typedef void (*AtkEventListener) (AtkObject* obj); +/** + * AtkEventListenerInit: + * + * An #AtkEventListenerInit function is a special function that is + * called in order to initialize the per-object event registration system + * used by #AtkEventListener, if any preparation is required. + * + * @see: atk_focus_tracker_init. + **/ +typedef void (*AtkEventListenerInit) (void); +/** + * AtkKeySnoopFunc: + * @event: an AtkKeyEventStruct containing information about the key event for which + * notification is being given. + * @func_data: a block of data which will be passed to the event listener, on notification. + * + * An #AtkKeySnoopFunc is a type of callback which is called whenever a key event occurs, + * if registered via atk_add_key_event_listener. It allows for pre-emptive + * interception of key events via the return code as described below. + * + * Returns: TRUE (nonzero) if the event emission should be stopped and the event + * discarded without being passed to the normal GUI recipient; FALSE (zero) if the + * event dispatch to the client application should proceed as normal. + * + * @see: atk_add_key_event_listener. + **/ +typedef gint (*AtkKeySnoopFunc) (AtkKeyEventStruct *event, + gpointer func_data); + +/** + * AtkKeyEventStruct: + * @type: An AtkKeyEventType, generally one of ATK_KEY_EVENT_PRESS or ATK_KEY_EVENT_RELEASE + * @state: A bitmask representing the state of the modifier keys immediately after the event takes place. + * The meaning of the bits is currently defined to match the bitmask used by GDK in + * GdkEventType.state, see + * http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventKey + * @keyval: A guint representing a keysym value corresponding to those used by GDK and X11: see + * /usr/X11/include/keysymdef.h. + * @length: The length of member #string. + * @string: A string containing one of the following: either a string approximating the text that would + * result from this keypress, if the key is a control or graphic character, or a symbolic name for this keypress. + * Alphanumeric and printable keys will have the symbolic key name in this string member, for instance "A". "0", + * "semicolon", "aacute". Keypad keys have the prefix "KP". + * @keycode: The raw hardware code that generated the key event. This field is raraly useful. + * @timestamp: A timestamp in milliseconds indicating when the event occurred. + * These timestamps are relative to a starting point which should be considered arbitrary, + * and only used to compare the dispatch times of events to one another. + * + * Encapsulates information about a key event. + **/ +struct _AtkKeyEventStruct { + gint type; + guint state; + guint keyval; + gint length; + gchar *string; + guint16 keycode; + guint32 timestamp; +}; + +/** + *AtkKeyEventType: + *@ATK_KEY_EVENT_PRESS: specifies a key press event + *@ATK_KEY_EVENT_RELEASE: specifies a key release event + *@ATK_KEY_EVENT_LAST_DEFINED: Not a valid value; specifies end of enumeration + * + *Specifies the type of a keyboard evemt. + **/ +typedef enum +{ + ATK_KEY_EVENT_PRESS, + ATK_KEY_EVENT_RELEASE, + ATK_KEY_EVENT_LAST_DEFINED +} AtkKeyEventType; + +struct _AtkUtil +{ + GObject parent; +}; + +struct _AtkUtilClass +{ + GObjectClass parent; + guint (* add_global_event_listener) (GSignalEmissionHook listener, + const gchar *event_type); + void (* remove_global_event_listener) (guint listener_id); + guint (* add_key_event_listener) (AtkKeySnoopFunc listener, + gpointer data); + void (* remove_key_event_listener) (guint listener_id); + AtkObject* (* get_root) (void); + G_CONST_RETURN gchar* (* get_toolkit_name) (void); + G_CONST_RETURN gchar* (* get_toolkit_version) (void); +}; +GType atk_util_get_type (void); + +/** + *AtkCoordType: + *@ATK_XY_SCREEN: specifies xy coordinates relative to the screen + *@ATK_XY_WINDOW: specifies xy coordinates relative to the widget's + * top-level window + * + *Specifies how xy coordinates are to be interpreted. Used by functions such + *as atk_component_get_position() and atk_text_get_character_extents() + **/ +typedef enum { + ATK_XY_SCREEN, + ATK_XY_WINDOW +}AtkCoordType; + +/* + * Adds the specified function to the list of functions to be called + * when an object receives focus. + */ +guint atk_add_focus_tracker (AtkEventListener focus_tracker); + +/* + * Removes the specified focus tracker from the list of function + * to be called when any object receives focus + */ +void atk_remove_focus_tracker (guint tracker_id); + +/* + * atk_focus_tracker_init: + * @init: An #AtkEventListenerInit function to be called + * prior to any focus-tracking requests. + * + * Specifies the function to be called for focus tracker initialization. + * removal. This function should be called by an implementation of the + * ATK interface if any specific work needs to be done to enable + * focus tracking. + */ +void atk_focus_tracker_init (AtkEventListenerInit init); + +/* + * Cause the focus tracker functions which have been specified to be + * executed for the object. + */ +void atk_focus_tracker_notify (AtkObject *object); + +/* + * Adds the specified function to the list of functions to be called + * when an event of type event_type occurs. + */ +guint atk_add_global_event_listener (GSignalEmissionHook listener, + const gchar *event_type); + +/* + * Removes the specified event listener + */ +void atk_remove_global_event_listener (guint listener_id); + +/* + * Adds the specified function to the list of functions to be called + * when an keyboard event occurs. + */ +guint atk_add_key_event_listener (AtkKeySnoopFunc listener, gpointer data); + +/* + * Removes the specified event listener + */ +void atk_remove_key_event_listener (guint listener_id); + +/* + * Returns the root accessible container for the current application. + */ +AtkObject* atk_get_root(void); + +AtkObject* atk_get_focus_object (void); + +/* + * Returns name string for the GUI toolkit. + */ +G_CONST_RETURN gchar *atk_get_toolkit_name (void); + +/* + * Returns version string for the GUI toolkit. + */ +G_CONST_RETURN gchar *atk_get_toolkit_version (void); + +/* + * Gets the current version of ATK + */ +G_CONST_RETURN gchar *atk_get_version (void); + +/* --- GType boilerplate --- */ +/* convenience macros for atk type implementations, which for a type GtkGadgetAccessible will: + * - prototype: static void gtk_gadget_accessible_class_init (GtkGadgetClass *klass); + * - prototype: static void gtk_gadget_accessible_init (GtkGadget *self); + * - define: static gpointer gtk_gadget_accessible_parent_class = NULL; + * gtk_gadget_accessible_parent_class is initialized prior to calling gtk_gadget_class_init() + * - implement: GType gtk_gadget_accessible_get_type (void) { ... } + * - support custom code in gtk_gadget_accessible_get_type() after the type is registered. + * + * macro arguments: TypeName, type_name, TYPE_PARENT, CODE + * example: ATK_DEFINE_TYPE_WITH_CODE (GtkGadgetAccessible, gtk_gadget_accessible, GTK_TYPE_GADGET, + * G_IMPLEMENT_INTERFACE (ATK_TYPE_TABLE, gtk_gadget_accessible_table_iface_init)) + */ + +#define ATK_DEFINE_TYPE(TN, t_n, T_P) ATK_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {}) +#define ATK_DEFINE_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _ATK_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, 0) {_C_;} _ATK_DEFINE_TYPE_EXTENDED_END() +#define ATK_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P) ATK_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {}) +#define ATK_DEFINE_ABSTRACT_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _ATK_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT) {_C_;} _ATK_DEFINE_TYPE_EXTENDED_END() +#define ATK_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_) _ATK_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _ATK_DEFINE_TYPE_EXTENDED_END() + +#define _ATK_DEFINE_TYPE_EXTENDED_BEGIN(TypeName, type_name, TYPE, flags) \ +\ +static void type_name##_init (TypeName *self); \ +static void type_name##_class_init (TypeName##Class *klass); \ +static gpointer type_name##_parent_class = NULL; \ +static void type_name##_class_intern_init (gpointer klass) \ +{ \ + type_name##_parent_class = g_type_class_peek_parent (klass); \ + type_name##_class_init ((TypeName##Class*) klass); \ +} \ +\ +GType \ +type_name##_get_type (void) \ +{ \ + static volatile gsize g_define_type_id__volatile = 0; \ + if (g_once_init_enter (&g_define_type_id__volatile)) \ + { \ + AtkObjectFactory *factory; \ + GType derived_type; \ + GTypeQuery query; \ + GType derived_atk_type; \ + GType g_define_type_id; \ +\ + /* Figure out the size of the class and instance we are deriving from */ \ + derived_type = g_type_parent (TYPE); \ + factory = atk_registry_get_factory (atk_get_default_registry (), \ + derived_type); \ + derived_atk_type = atk_object_factory_get_accessible_type (factory); \ + g_type_query (derived_atk_type, &query); \ +\ + g_define_type_id = \ + g_type_register_static_simple (derived_atk_type, \ + g_intern_static_string (#TypeName), \ + query.class_size, \ + (GClassInitFunc) type_name##_class_intern_init, \ + query.instance_size, \ + (GInstanceInitFunc) type_name##_init, \ + (GTypeFlags) flags); \ + { /* custom code follows */ +#define _ATK_DEFINE_TYPE_EXTENDED_END() \ + /* following custom code */ \ + } \ + g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); \ + } \ + return g_define_type_id__volatile; \ +} /* closes type_name##_get_type() */ + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_UTIL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkvalue.h b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkvalue.h new file mode 100644 index 00000000..f66c0152 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/atk-1.0/atk/atkvalue.h @@ -0,0 +1,95 @@ +/* ATK - Accessibility Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __ATK_VALUE_H__ +#define __ATK_VALUE_H__ + +#include <atk/atkobject.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* + * The AtkValue interface should be supported by any object that + * supports a numerical value (e.g., a scroll bar). This interface + * provides the standard mechanism for an assistive technology to + * determine and set the numerical value as well as get the minimum + * and maximum values. + */ + +#define ATK_TYPE_VALUE (atk_value_get_type ()) +#define ATK_IS_VALUE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_VALUE) +#define ATK_VALUE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_VALUE, AtkValue) +#define ATK_VALUE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_VALUE, AtkValueIface)) + +#ifndef _TYPEDEF_ATK_VALUE_ +#define _TYPEDEF_ATK_VALUE__ +typedef struct _AtkValue AtkValue; +#endif +typedef struct _AtkValueIface AtkValueIface; + +struct _AtkValueIface +{ + GTypeInterface parent; + + void (* get_current_value) (AtkValue *obj, + GValue *value); + void (* get_maximum_value) (AtkValue *obj, + GValue *value); + void (* get_minimum_value) (AtkValue *obj, + GValue *value); + gboolean (* set_current_value) (AtkValue *obj, + const GValue *value); + void (* get_minimum_increment) (AtkValue *obj, + GValue *value); + AtkFunction pad1; +}; + +GType atk_value_get_type (void); + +void atk_value_get_current_value (AtkValue *obj, + GValue *value); + + +void atk_value_get_maximum_value (AtkValue *obj, + GValue *value); + +void atk_value_get_minimum_value (AtkValue *obj, + GValue *value); + +gboolean atk_value_set_current_value (AtkValue *obj, + const GValue *value); + +void atk_value_get_minimum_increment (AtkValue *obj, + GValue *value); + +/* + * Additional GObject properties exported by GaccessibleValue: + * "accessible_value" + * (the accessible value has changed) + */ + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __ATK_VALUE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-deprecated.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-deprecated.h new file mode 100644 index 00000000..c73d2b78 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-deprecated.h @@ -0,0 +1,142 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2006 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is Red Hat, Inc. + * + * Contributor(s): + * Carl D. Worth <cworth@cworth.org> + */ + +#ifndef CAIRO_DEPRECATED_H +#define CAIRO_DEPRECATED_H + +/* The %CAIRO_FORMAT_RGB16_565 value was added in cairo 1.2.0 as part + * of fixing cairo's xlib backend to work with X servers advertising a + * 16-bit, 565 visual. But as it turned out, adding this format to + * #cairo_format_t was not necessary, and was a mistake, (cairo's xlib + * backend can work fine with 16-bit visuals in the same way it works + * with BGR visuals without any BGR formats in + * #cairo_format_t). + * + * Additionally, the support for the RGB16_565 format was never + * completely implemented. So while this format value is currently + * deprecated, it may eventually acquire complete support in the future. + */ +#define CAIRO_FORMAT_RGB16_565 4 + +#define CAIRO_FONT_TYPE_ATSUI CAIRO_FONT_TYPE_QUARTZ + +#ifndef _CAIROINT_H_ + +/* Obsolete functions. These definitions exist to coerce the compiler + * into providing a little bit of guidance with its error + * messages. The idea is to help users port their old code without + * having to dig through lots of documentation. + * + * The first set of REPLACED_BY functions is for functions whose names + * have just been changed. So fixing these up is mechanical, (and + * automated by means of the cairo/util/cairo-api-update script. + * + * The second set of DEPRECATED_BY functions is for functions where + * the replacement is used in a different way, (ie. different + * arguments, multiple functions instead of one, etc). Fixing these up + * will require a bit more work on the user's part, (and hopefully we + * can get cairo-api-update to find these and print some guiding + * information). + */ +#define cairo_current_font_extents cairo_current_font_extents_REPLACED_BY_cairo_font_extents +#define cairo_get_font_extents cairo_get_font_extents_REPLACED_BY_cairo_font_extents +#define cairo_current_operator cairo_current_operator_REPLACED_BY_cairo_get_operator +#define cairo_current_tolerance cairo_current_tolerance_REPLACED_BY_cairo_get_tolerance +#define cairo_current_point cairo_current_point_REPLACED_BY_cairo_get_current_point +#define cairo_current_fill_rule cairo_current_fill_rule_REPLACED_BY_cairo_get_fill_rule +#define cairo_current_line_width cairo_current_line_width_REPLACED_BY_cairo_get_line_width +#define cairo_current_line_cap cairo_current_line_cap_REPLACED_BY_cairo_get_line_cap +#define cairo_current_line_join cairo_current_line_join_REPLACED_BY_cairo_get_line_join +#define cairo_current_miter_limit cairo_current_miter_limit_REPLACED_BY_cairo_get_miter_limit +#define cairo_current_matrix cairo_current_matrix_REPLACED_BY_cairo_get_matrix +#define cairo_current_target_surface cairo_current_target_surface_REPLACED_BY_cairo_get_target +#define cairo_get_status cairo_get_status_REPLACED_BY_cairo_status +#define cairo_concat_matrix cairo_concat_matrix_REPLACED_BY_cairo_transform +#define cairo_scale_font cairo_scale_font_REPLACED_BY_cairo_set_font_size +#define cairo_select_font cairo_select_font_REPLACED_BY_cairo_select_font_face +#define cairo_transform_font cairo_transform_font_REPLACED_BY_cairo_set_font_matrix +#define cairo_transform_point cairo_transform_point_REPLACED_BY_cairo_user_to_device +#define cairo_transform_distance cairo_transform_distance_REPLACED_BY_cairo_user_to_device_distance +#define cairo_inverse_transform_point cairo_inverse_transform_point_REPLACED_BY_cairo_device_to_user +#define cairo_inverse_transform_distance cairo_inverse_transform_distance_REPLACED_BY_cairo_device_to_user_distance +#define cairo_init_clip cairo_init_clip_REPLACED_BY_cairo_reset_clip +#define cairo_surface_create_for_image cairo_surface_create_for_image_REPLACED_BY_cairo_image_surface_create_for_data +#define cairo_default_matrix cairo_default_matrix_REPLACED_BY_cairo_identity_matrix +#define cairo_matrix_set_affine cairo_matrix_set_affine_REPLACED_BY_cairo_matrix_init +#define cairo_matrix_set_identity cairo_matrix_set_identity_REPLACED_BY_cairo_matrix_init_identity +#define cairo_pattern_add_color_stop cairo_pattern_add_color_stop_REPLACED_BY_cairo_pattern_add_color_stop_rgba +#define cairo_set_rgb_color cairo_set_rgb_color_REPLACED_BY_cairo_set_source_rgb +#define cairo_set_pattern cairo_set_pattern_REPLACED_BY_cairo_set_source +#define cairo_xlib_surface_create_for_pixmap_with_visual cairo_xlib_surface_create_for_pixmap_with_visual_REPLACED_BY_cairo_xlib_surface_create +#define cairo_xlib_surface_create_for_window_with_visual cairo_xlib_surface_create_for_window_with_visual_REPLACED_BY_cairo_xlib_surface_create +#define cairo_xcb_surface_create_for_pixmap_with_visual cairo_xcb_surface_create_for_pixmap_with_visual_REPLACED_BY_cairo_xcb_surface_create +#define cairo_xcb_surface_create_for_window_with_visual cairo_xcb_surface_create_for_window_with_visual_REPLACED_BY_cairo_xcb_surface_create +#define cairo_ps_surface_set_dpi cairo_ps_surface_set_dpi_REPLACED_BY_cairo_surface_set_fallback_resolution +#define cairo_pdf_surface_set_dpi cairo_pdf_surface_set_dpi_REPLACED_BY_cairo_surface_set_fallback_resolution +#define cairo_svg_surface_set_dpi cairo_svg_surface_set_dpi_REPLACED_BY_cairo_surface_set_fallback_resolution +#define cairo_atsui_font_face_create_for_atsu_font_id cairo_atsui_font_face_create_for_atsu_font_id_REPLACED_BY_cairo_quartz_font_face_create_for_atsu_font_id + +#define cairo_current_path cairo_current_path_DEPRECATED_BY_cairo_copy_path +#define cairo_current_path_flat cairo_current_path_flat_DEPRECATED_BY_cairo_copy_path_flat +#define cairo_get_path cairo_get_path_DEPRECATED_BY_cairo_copy_path +#define cairo_get_path_flat cairo_get_path_flat_DEPRECATED_BY_cairo_get_path_flat +#define cairo_set_alpha cairo_set_alpha_DEPRECATED_BY_cairo_set_source_rgba_OR_cairo_paint_with_alpha +#define cairo_show_surface cairo_show_surface_DEPRECATED_BY_cairo_set_source_surface_AND_cairo_paint +#define cairo_copy cairo_copy_DEPRECATED_BY_cairo_create_AND_MANY_INDIVIDUAL_FUNCTIONS +#define cairo_surface_set_repeat cairo_surface_set_repeat_DEPRECATED_BY_cairo_pattern_set_extend +#define cairo_surface_set_matrix cairo_surface_set_matrix_DEPRECATED_BY_cairo_pattern_set_matrix +#define cairo_surface_get_matrix cairo_surface_get_matrix_DEPRECATED_BY_cairo_pattern_get_matrix +#define cairo_surface_set_filter cairo_surface_set_filter_DEPRECATED_BY_cairo_pattern_set_filter +#define cairo_surface_get_filter cairo_surface_get_filter_DEPRECATED_BY_cairo_pattern_get_filter +#define cairo_matrix_create cairo_matrix_create_DEPRECATED_BY_cairo_matrix_t +#define cairo_matrix_destroy cairo_matrix_destroy_DEPRECATED_BY_cairo_matrix_t +#define cairo_matrix_copy cairo_matrix_copy_DEPRECATED_BY_cairo_matrix_t +#define cairo_matrix_get_affine cairo_matrix_get_affine_DEPRECATED_BY_cairo_matrix_t +#define cairo_set_target_surface cairo_set_target_surface_DEPRECATED_BY_cairo_create +#define cairo_set_target_glitz cairo_set_target_glitz_DEPRECATED_BY_cairo_glitz_surface_create +#define cairo_set_target_image cairo_set_target_image_DEPRECATED_BY_cairo_image_surface_create_for_data +#define cairo_set_target_pdf cairo_set_target_pdf_DEPRECATED_BY_cairo_pdf_surface_create +#define cairo_set_target_png cairo_set_target_png_DEPRECATED_BY_cairo_surface_write_to_png +#define cairo_set_target_ps cairo_set_target_ps_DEPRECATED_BY_cairo_ps_surface_create +#define cairo_set_target_quartz cairo_set_target_quartz_DEPRECATED_BY_cairo_quartz_surface_create +#define cairo_set_target_win32 cairo_set_target_win32_DEPRECATED_BY_cairo_win32_surface_create +#define cairo_set_target_xcb cairo_set_target_xcb_DEPRECATED_BY_cairo_xcb_surface_create +#define cairo_set_target_drawable cairo_set_target_drawable_DEPRECATED_BY_cairo_xlib_surface_create +#define cairo_get_status_string cairo_get_status_string_DEPRECATED_BY_cairo_status_AND_cairo_status_to_string +#define cairo_status_string cairo_status_string_DEPRECATED_BY_cairo_status_AND_cairo_status_to_string + +#endif + +#endif /* CAIRO_DEPRECATED_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-directfb.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-directfb.h new file mode 100644 index 00000000..21005e1f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-directfb.h @@ -0,0 +1,67 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2003 University of Southern California + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is University of Southern + * California. + * + * Contributor(s): + * Carl D. Worth <cworth@isi.edu> + */ + +/* + * Environment variables affecting the backend: + * + * %CAIRO_DIRECTFB_NO_ACCEL (boolean) + * if found, disables acceleration at all + * + * %CAIRO_DIRECTFB_ARGB_FONT (boolean) + * if found, enables using ARGB fonts instead of A8 + */ + +#ifndef CAIRO_DIRECTFB_H +#define CAIRO_DIRECTFB_H + +#include <cairo.h> + +#ifdef CAIRO_HAS_DIRECTFB_SURFACE + +#include <directfb.h> + +CAIRO_BEGIN_DECLS + +cairo_public cairo_surface_t * +cairo_directfb_surface_create (IDirectFB *dfb, IDirectFBSurface *surface); + +CAIRO_END_DECLS + +#else /*CAIRO_HAS_DIRECTFB_SURFACE*/ +# error Cairo was not compiled with support for the directfb backend +#endif /*CAIRO_HAS_DIRECTFB_SURFACE*/ + +#endif /*CAIRO_DIRECTFB_H*/ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-features.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-features.h new file mode 100644 index 00000000..7bf2ab8b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-features.h @@ -0,0 +1,38 @@ +/* Generated by configure. Do not edit */ +#ifndef CAIRO_FEATURES_H +#define CAIRO_FEATURES_H + +#ifdef __cplusplus +# define CAIRO_BEGIN_DECLS extern "C" { +# define CAIRO_END_DECLS } +#else +# define CAIRO_BEGIN_DECLS +# define CAIRO_END_DECLS +#endif + +#ifndef cairo_public +# define cairo_public +#endif + +#define CAIRO_VERSION_MAJOR 1 +#define CAIRO_VERSION_MINOR 6 +#define CAIRO_VERSION_MICRO 4 + +#define CAIRO_VERSION_STRING "1.6.4" + +#define CAIRO_HAS_SVG_SURFACE 1 +#define CAIRO_HAS_PDF_SURFACE 1 +#define CAIRO_HAS_PS_SURFACE 1 +#define CAIRO_HAS_FT_FONT 1 +#define CAIRO_HAS_DIRECTFB_SURFACE 1 +#define CAIRO_HAS_PNG_FUNCTIONS 1 +#define CAIRO_HAS_XCB_SURFACE 1 +#define CAIRO_HAS_XLIB_XRENDER_SURFACE 1 +#define CAIRO_HAS_XLIB_SURFACE 1 + +/*#undef CAIRO_HAS_WIN32_FONT */ +/*#undef CAIRO_HAS_WIN32_SURFACE */ +/*#undef CAIRO_HAS_QUARTZ_FONT */ +/*#undef CAIRO_HAS_QUARTZ_SURFACE */ + +#endif diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-ft.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-ft.h new file mode 100644 index 00000000..b59435fe --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-ft.h @@ -0,0 +1,75 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2005 Red Hat, Inc + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is Red Hat, Inc. + * + * Contributor(s): + * Graydon Hoare <graydon@redhat.com> + * Owen Taylor <otaylor@redhat.com> + */ + +#ifndef CAIRO_FT_H +#define CAIRO_FT_H + +#include <cairo.h> + +#if CAIRO_HAS_FT_FONT + +/* Fontconfig/Freetype platform-specific font interface */ + +#include <fontconfig/fontconfig.h> +#include <ft2build.h> +#include FT_FREETYPE_H + +CAIRO_BEGIN_DECLS + +cairo_public cairo_font_face_t * +cairo_ft_font_face_create_for_pattern (FcPattern *pattern); + +cairo_public void +cairo_ft_font_options_substitute (const cairo_font_options_t *options, + FcPattern *pattern); + +cairo_public cairo_font_face_t * +cairo_ft_font_face_create_for_ft_face (FT_Face face, + int load_flags); + +cairo_public FT_Face +cairo_ft_scaled_font_lock_face (cairo_scaled_font_t *scaled_font); + +cairo_public void +cairo_ft_scaled_font_unlock_face (cairo_scaled_font_t *scaled_font); + +CAIRO_END_DECLS + +#else /* CAIRO_HAS_FT_FONT */ +# error Cairo was not compiled with support for the freetype font backend +#endif /* CAIRO_HAS_FT_FONT */ + +#endif /* CAIRO_FT_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-pdf.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-pdf.h new file mode 100644 index 00000000..52a89740 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-pdf.h @@ -0,0 +1,68 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2002 University of Southern California + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is University of Southern + * California. + * + * Contributor(s): + * Carl D. Worth <cworth@cworth.org> + */ + +#ifndef CAIRO_PDF_H +#define CAIRO_PDF_H + +#include <cairo.h> + +#if CAIRO_HAS_PDF_SURFACE + +CAIRO_BEGIN_DECLS + +cairo_public cairo_surface_t * +cairo_pdf_surface_create (const char *filename, + double width_in_points, + double height_in_points); + +cairo_public cairo_surface_t * +cairo_pdf_surface_create_for_stream (cairo_write_func_t write_func, + void *closure, + double width_in_points, + double height_in_points); + +cairo_public void +cairo_pdf_surface_set_size (cairo_surface_t *surface, + double width_in_points, + double height_in_points); + +CAIRO_END_DECLS + +#else /* CAIRO_HAS_PDF_SURFACE */ +# error Cairo was not compiled with support for the pdf backend +#endif /* CAIRO_HAS_PDF_SURFACE */ + +#endif /* CAIRO_PDF_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-ps.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-ps.h new file mode 100644 index 00000000..720b1b76 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-ps.h @@ -0,0 +1,114 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2002 University of Southern California + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is University of Southern + * California. + * + * Contributor(s): + * Carl D. Worth <cworth@cworth.org> + */ + +#ifndef CAIRO_PS_H +#define CAIRO_PS_H + +#include <cairo.h> + +#if CAIRO_HAS_PS_SURFACE + +#include <stdio.h> + +CAIRO_BEGIN_DECLS + +/* PS-surface functions */ + +/** + * cairo_ps_level_t: + * @CAIRO_PS_LEVEL_2: The language level 2 of the PostScript specification. + * @CAIRO_PS_LEVEL_3: The language level 3 of the PostScript specification. + * + * #cairo_ps_level_t is used to describe the language level of the + * PostScript Language Reference that a generated PostScript file will + * conform to. + */ +typedef enum _cairo_ps_level { + CAIRO_PS_LEVEL_2, + CAIRO_PS_LEVEL_3 +} cairo_ps_level_t; + +cairo_public cairo_surface_t * +cairo_ps_surface_create (const char *filename, + double width_in_points, + double height_in_points); + +cairo_public cairo_surface_t * +cairo_ps_surface_create_for_stream (cairo_write_func_t write_func, + void *closure, + double width_in_points, + double height_in_points); + +cairo_public void +cairo_ps_surface_restrict_to_level (cairo_surface_t *surface, + cairo_ps_level_t level); + +cairo_public void +cairo_ps_get_levels (cairo_ps_level_t const **levels, + int *num_levels); + +cairo_public const char * +cairo_ps_level_to_string (cairo_ps_level_t level); + +cairo_public void +cairo_ps_surface_set_eps (cairo_surface_t *surface, + cairo_bool_t eps); + +cairo_public cairo_bool_t +cairo_ps_surface_get_eps (cairo_surface_t *surface); + +cairo_public void +cairo_ps_surface_set_size (cairo_surface_t *surface, + double width_in_points, + double height_in_points); + +cairo_public void +cairo_ps_surface_dsc_comment (cairo_surface_t *surface, + const char *comment); + +cairo_public void +cairo_ps_surface_dsc_begin_setup (cairo_surface_t *surface); + +cairo_public void +cairo_ps_surface_dsc_begin_page_setup (cairo_surface_t *surface); + +CAIRO_END_DECLS + +#else /* CAIRO_HAS_PS_SURFACE */ +# error Cairo was not compiled with support for the ps backend +#endif /* CAIRO_HAS_PS_SURFACE */ + +#endif /* CAIRO_PS_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-svg.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-svg.h new file mode 100644 index 00000000..5d18c643 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-svg.h @@ -0,0 +1,82 @@ +/* cairo - a vector graphics library with display and print output + * + * cairo-svg.h + * + * Copyright © 2005 Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr> + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + */ + +#ifndef CAIRO_SVG_H +#define CAIRO_SVG_H + +#include <cairo.h> + +#if CAIRO_HAS_SVG_SURFACE + +CAIRO_BEGIN_DECLS + +/** + * cairo_svg_version_t: + * @CAIRO_SVG_VERSION_1_1: The version 1.1 of the SVG specification. + * @CAIRO_SVG_VERSION_1_2: The version 1.2 of the SVG specification. + * + * #cairo_svg_version_t is used to describe the version number of the SVG + * specification that a generated SVG file will conform to. + */ +typedef enum _cairo_svg_version { + CAIRO_SVG_VERSION_1_1, + CAIRO_SVG_VERSION_1_2 +} cairo_svg_version_t; + +cairo_public cairo_surface_t * +cairo_svg_surface_create (const char *filename, + double width_in_points, + double height_in_points); + +cairo_public cairo_surface_t * +cairo_svg_surface_create_for_stream (cairo_write_func_t write_func, + void *closure, + double width_in_points, + double height_in_points); + +cairo_public void +cairo_svg_surface_restrict_to_version (cairo_surface_t *surface, + cairo_svg_version_t version); + +cairo_public void +cairo_svg_get_versions (cairo_svg_version_t const **versions, + int *num_versions); + +cairo_public const char * +cairo_svg_version_to_string (cairo_svg_version_t version); + +CAIRO_END_DECLS + +#else /* CAIRO_HAS_SVG_SURFACE */ +# error Cairo was not compiled with support for the svg backend +#endif /* CAIRO_HAS_SVG_SURFACE */ + +#endif /* CAIRO_SVG_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xcb-xrender.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xcb-xrender.h new file mode 100644 index 00000000..9df68567 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xcb-xrender.h @@ -0,0 +1,63 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2002 University of Southern California + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is University of Southern + * California. + * + * Contributor(s): + * Carl D. Worth <cworth@cworth.org> + */ + +#ifndef CAIRO_XCB_XRENDER_H +#define CAIRO_XCB_XRENDER_H + +#include <cairo.h> + +#if CAIRO_HAS_XCB_SURFACE + +#include <xcb/xcb.h> +#include <xcb/render.h> + +CAIRO_BEGIN_DECLS + +cairo_public cairo_surface_t * +cairo_xcb_surface_create_with_xrender_format (xcb_connection_t *c, + xcb_drawable_t drawable, + xcb_screen_t *screen, + xcb_render_pictforminfo_t *format, + int width, + int height); + +CAIRO_END_DECLS + +#else /* CAIRO_HAS_XCB_SURFACE */ +# error Cairo was not compiled with support for the xcb backend +#endif /* CAIRO_HAS_XCB_SURFACE */ + +#endif /* CAIRO_XCB_XRENDER_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xcb.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xcb.h new file mode 100644 index 00000000..e180bb6a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xcb.h @@ -0,0 +1,73 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2002 University of Southern California + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is University of Southern + * California. + * + * Contributor(s): + * Carl D. Worth <cworth@cworth.org> + */ + +#ifndef CAIRO_XCB_H +#define CAIRO_XCB_H + +#include <cairo.h> + +#if CAIRO_HAS_XCB_SURFACE + +#include <xcb/xcb.h> + +CAIRO_BEGIN_DECLS + +cairo_public cairo_surface_t * +cairo_xcb_surface_create (xcb_connection_t *c, + xcb_drawable_t drawable, + xcb_visualtype_t *visual, + int width, + int height); + +cairo_public cairo_surface_t * +cairo_xcb_surface_create_for_bitmap (xcb_connection_t *c, + xcb_pixmap_t bitmap, + xcb_screen_t *screen, + int width, + int height); + +cairo_public void +cairo_xcb_surface_set_size (cairo_surface_t *surface, + int width, + int height); + +CAIRO_END_DECLS + +#else /* CAIRO_HAS_XCB_SURFACE */ +# error Cairo was not compiled with support for the xcb backend +#endif /* CAIRO_HAS_XCB_SURFACE */ + +#endif /* CAIRO_XCB_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xlib-xrender.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xlib-xrender.h new file mode 100644 index 00000000..6dd584fc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xlib-xrender.h @@ -0,0 +1,66 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2002 University of Southern California + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is University of Southern + * California. + * + * Contributor(s): + * Carl D. Worth <cworth@cworth.org> + */ + +#ifndef CAIRO_XLIB_XRENDER_H +#define CAIRO_XLIB_XRENDER_H + +#include <cairo.h> + +#if CAIRO_HAS_XLIB_XRENDER_SURFACE + +#include <X11/Xlib.h> +#include <X11/extensions/Xrender.h> + +CAIRO_BEGIN_DECLS + +cairo_public cairo_surface_t * +cairo_xlib_surface_create_with_xrender_format (Display *dpy, + Drawable drawable, + Screen *screen, + XRenderPictFormat *format, + int width, + int height); + +cairo_public XRenderPictFormat * +cairo_xlib_surface_get_xrender_format (cairo_surface_t *surface); + +CAIRO_END_DECLS + +#else /* CAIRO_HAS_XLIB_XRENDER_SURFACE */ +# error Cairo was not compiled with support for the xlib XRender backend +#endif /* CAIRO_HAS_XLIB_XRENDER_SURFACE */ + +#endif /* CAIRO_XLIB_XRENDER_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xlib.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xlib.h new file mode 100644 index 00000000..ad92b39e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo-xlib.h @@ -0,0 +1,100 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2002 University of Southern California + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is University of Southern + * California. + * + * Contributor(s): + * Carl D. Worth <cworth@cworth.org> + */ + +#ifndef CAIRO_XLIB_H +#define CAIRO_XLIB_H + +#include <cairo.h> + +#if CAIRO_HAS_XLIB_SURFACE + +#include <X11/Xlib.h> + +CAIRO_BEGIN_DECLS + +cairo_public cairo_surface_t * +cairo_xlib_surface_create (Display *dpy, + Drawable drawable, + Visual *visual, + int width, + int height); + +cairo_public cairo_surface_t * +cairo_xlib_surface_create_for_bitmap (Display *dpy, + Pixmap bitmap, + Screen *screen, + int width, + int height); + +cairo_public void +cairo_xlib_surface_set_size (cairo_surface_t *surface, + int width, + int height); + +cairo_public void +cairo_xlib_surface_set_drawable (cairo_surface_t *surface, + Drawable drawable, + int width, + int height); + +cairo_public Display * +cairo_xlib_surface_get_display (cairo_surface_t *surface); + +cairo_public Drawable +cairo_xlib_surface_get_drawable (cairo_surface_t *surface); + +cairo_public Screen * +cairo_xlib_surface_get_screen (cairo_surface_t *surface); + +cairo_public Visual * +cairo_xlib_surface_get_visual (cairo_surface_t *surface); + +cairo_public int +cairo_xlib_surface_get_depth (cairo_surface_t *surface); + +cairo_public int +cairo_xlib_surface_get_width (cairo_surface_t *surface); + +cairo_public int +cairo_xlib_surface_get_height (cairo_surface_t *surface); + +CAIRO_END_DECLS + +#else /* CAIRO_HAS_XLIB_SURFACE */ +# error Cairo was not compiled with support for the xlib backend +#endif /* CAIRO_HAS_XLIB_SURFACE */ + +#endif /* CAIRO_XLIB_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo.h b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo.h new file mode 100644 index 00000000..4a3a773d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/cairo/cairo.h @@ -0,0 +1,1945 @@ +/* cairo - a vector graphics library with display and print output + * + * Copyright © 2002 University of Southern California + * Copyright © 2005 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is University of Southern + * California. + * + * Contributor(s): + * Carl D. Worth <cworth@cworth.org> + */ + +#ifndef CAIRO_H +#define CAIRO_H + +#include <cairo-features.h> +#include <cairo-deprecated.h> + +CAIRO_BEGIN_DECLS + +#define CAIRO_VERSION_ENCODE(major, minor, micro) ( \ + ((major) * 10000) \ + + ((minor) * 100) \ + + ((micro) * 1)) + +#define CAIRO_VERSION CAIRO_VERSION_ENCODE( \ + CAIRO_VERSION_MAJOR, \ + CAIRO_VERSION_MINOR, \ + CAIRO_VERSION_MICRO) + +cairo_public int +cairo_version (void); + +cairo_public const char* +cairo_version_string (void); + +/** + * cairo_bool_t: + * + * #cairo_bool_t is used for boolean values. Returns of type + * #cairo_bool_t will always be either 0 or 1, but testing against + * these values explicitly is not encouraged; just use the + * value as a boolean condition. + * + * <informalexample><programlisting> + * if (cairo_in_stroke (cr, x, y)) { + * /<!-- -->* do something *<!-- -->/ + * } + * </programlisting></informalexample> + **/ +typedef int cairo_bool_t; + +/** + * cairo_t: + * + * A #cairo_t contains the current state of the rendering device, + * including coordinates of yet to be drawn shapes. + * + * Cairo contexts, as #cairo_t objects are named, are central to + * cairo and all drawing with cairo is always done to a #cairo_t + * object. + * + * Memory management of #cairo_t is done with + * cairo_reference() and cairo_destroy(). + **/ +typedef struct _cairo cairo_t; + +/** + * cairo_surface_t: + * + * A #cairo_surface_t represents an image, either as the destination + * of a drawing operation or as source when drawing onto another + * surface. To draw to a #cairo_surface_t, create a cairo context + * with the surface as the target, using cairo_create(). + * + * There are different subtypes of #cairo_surface_t for + * different drawing backends; for example, cairo_image_surface_create() + * creates a bitmap image in memory. + * The type of a surface can be queried with cairo_surface_get_type(). + * + * Memory management of #cairo_surface_t is done with + * cairo_surface_reference() and cairo_surface_destroy(). + **/ +typedef struct _cairo_surface cairo_surface_t; + +/** + * cairo_matrix_t: + * @xx: xx component of the affine transformation + * @yx: yx component of the affine transformation + * @xy: xy component of the affine transformation + * @yy: yy component of the affine transformation + * @x0: X translation component of the affine transformation + * @y0: Y translation component of the affine transformation + * + * A #cairo_matrix_t holds an affine transformation, such as a scale, + * rotation, shear, or a combination of those. The transformation of + * a point (x, y) is given by: + * <programlisting> + * x_new = xx * x + xy * y + x0; + * y_new = yx * x + yy * y + y0; + * </programlisting> + **/ +typedef struct _cairo_matrix { + double xx; double yx; + double xy; double yy; + double x0; double y0; +} cairo_matrix_t; + +/** + * cairo_pattern_t: + * + * A #cairo_pattern_t represents a source when drawing onto a + * surface. There are different subtypes of #cairo_pattern_t, + * for different types of sources; for example, + * cairo_pattern_create_rgb() creates a pattern for a solid + * opaque color. + * + * Other than various cairo_pattern_create_<emphasis>type</emphasis>() + * functions, some of the pattern types can be implicitly created + * using various cairo_set_source_<emphasis>type</emphasis>() functions; + * for example cairo_set_source_rgb(). + * + * The type of a pattern can be queried with cairo_pattern_get_type(). + * + * Memory management of #cairo_pattern_t is done with + * cairo_pattern_reference() and cairo_pattern_destroy(). + **/ +typedef struct _cairo_pattern cairo_pattern_t; + +/** + * cairo_destroy_func_t: + * @data: The data element being destroyed. + * + * #cairo_destroy_func_t the type of function which is called when a + * data element is destroyed. It is passed the pointer to the data + * element and should free any memory and resources allocated for it. + **/ +typedef void (*cairo_destroy_func_t) (void *data); + +/** + * cairo_user_data_key_t: + * @unused: not used; ignore. + * + * #cairo_user_data_key_t is used for attaching user data to cairo + * data structures. The actual contents of the struct is never used, + * and there is no need to initialize the object; only the unique + * address of a #cairo_data_key_t object is used. Typically, you + * would just use the address of a static #cairo_data_key_t object. + **/ +typedef struct _cairo_user_data_key { + int unused; +} cairo_user_data_key_t; + +/** + * cairo_status_t: + * @CAIRO_STATUS_SUCCESS: no error has occurred + * @CAIRO_STATUS_NO_MEMORY: out of memory + * @CAIRO_STATUS_INVALID_RESTORE: cairo_restore() called without matching cairo_save() + * @CAIRO_STATUS_INVALID_POP_GROUP: no saved group to pop + * @CAIRO_STATUS_NO_CURRENT_POINT: no current point defined + * @CAIRO_STATUS_INVALID_MATRIX: invalid matrix (not invertible) + * @CAIRO_STATUS_INVALID_STATUS: invalid value for an input #cairo_status_t + * @CAIRO_STATUS_NULL_POINTER: %NULL pointer + * @CAIRO_STATUS_INVALID_STRING: input string not valid UTF-8 + * @CAIRO_STATUS_INVALID_PATH_DATA: input path data not valid + * @CAIRO_STATUS_READ_ERROR: error while reading from input stream + * @CAIRO_STATUS_WRITE_ERROR: error while writing to output stream + * @CAIRO_STATUS_SURFACE_FINISHED: target surface has been finished + * @CAIRO_STATUS_SURFACE_TYPE_MISMATCH: the surface type is not appropriate for the operation + * @CAIRO_STATUS_PATTERN_TYPE_MISMATCH: the pattern type is not appropriate for the operation + * @CAIRO_STATUS_INVALID_CONTENT: invalid value for an input #cairo_content_t + * @CAIRO_STATUS_INVALID_FORMAT: invalid value for an input #cairo_format_t + * @CAIRO_STATUS_INVALID_VISUAL: invalid value for an input Visual* + * @CAIRO_STATUS_FILE_NOT_FOUND: file not found + * @CAIRO_STATUS_INVALID_DASH: invalid value for a dash setting + * @CAIRO_STATUS_INVALID_DSC_COMMENT: invalid value for a DSC comment (Since 1.2) + * @CAIRO_STATUS_INVALID_INDEX: invalid index passed to getter (Since 1.4) + * @CAIRO_STATUS_CLIP_NOT_REPRESENTABLE: clip region not representable in desired format (Since 1.4) + * @CAIRO_STATUS_TEMP_FILE_ERROR: error creating or writing to a temporary file (Since 1.6) + * @CAIRO_STATUS_INVALID_STRIDE: invalid value for stride (Since 1.6) + * + * #cairo_status_t is used to indicate errors that can occur when + * using Cairo. In some cases it is returned directly by functions. + * but when using #cairo_t, the last error, if any, is stored in + * the context and can be retrieved with cairo_status(). + * + * New entries may be added in future versions. Use cairo_status_to_string() + * to get a human-readable representation of an error message. + **/ +typedef enum _cairo_status { + CAIRO_STATUS_SUCCESS = 0, + CAIRO_STATUS_NO_MEMORY, + CAIRO_STATUS_INVALID_RESTORE, + CAIRO_STATUS_INVALID_POP_GROUP, + CAIRO_STATUS_NO_CURRENT_POINT, + CAIRO_STATUS_INVALID_MATRIX, + CAIRO_STATUS_INVALID_STATUS, + CAIRO_STATUS_NULL_POINTER, + CAIRO_STATUS_INVALID_STRING, + CAIRO_STATUS_INVALID_PATH_DATA, + CAIRO_STATUS_READ_ERROR, + CAIRO_STATUS_WRITE_ERROR, + CAIRO_STATUS_SURFACE_FINISHED, + CAIRO_STATUS_SURFACE_TYPE_MISMATCH, + CAIRO_STATUS_PATTERN_TYPE_MISMATCH, + CAIRO_STATUS_INVALID_CONTENT, + CAIRO_STATUS_INVALID_FORMAT, + CAIRO_STATUS_INVALID_VISUAL, + CAIRO_STATUS_FILE_NOT_FOUND, + CAIRO_STATUS_INVALID_DASH, + CAIRO_STATUS_INVALID_DSC_COMMENT, + CAIRO_STATUS_INVALID_INDEX, + CAIRO_STATUS_CLIP_NOT_REPRESENTABLE, + CAIRO_STATUS_TEMP_FILE_ERROR, + CAIRO_STATUS_INVALID_STRIDE + /* after adding a new error: update CAIRO_STATUS_LAST_STATUS in cairoint.h */ +} cairo_status_t; + +/** + * cairo_content_t: + * @CAIRO_CONTENT_COLOR: The surface will hold color content only. + * @CAIRO_CONTENT_ALPHA: The surface will hold alpha content only. + * @CAIRO_CONTENT_COLOR_ALPHA: The surface will hold color and alpha content. + * + * #cairo_content_t is used to describe the content that a surface will + * contain, whether color information, alpha information (translucence + * vs. opacity), or both. + * + * Note: The large values here are designed to keep #cairo_content_t + * values distinct from #cairo_format_t values so that the + * implementation can detect the error if users confuse the two types. + **/ +typedef enum _cairo_content { + CAIRO_CONTENT_COLOR = 0x1000, + CAIRO_CONTENT_ALPHA = 0x2000, + CAIRO_CONTENT_COLOR_ALPHA = 0x3000 +} cairo_content_t; + +/** + * cairo_write_func_t: + * @closure: the output closure + * @data: the buffer containing the data to write + * @length: the amount of data to write + * + * #cairo_write_func_t is the type of function which is called when a + * backend needs to write data to an output stream. It is passed the + * closure which was specified by the user at the time the write + * function was registered, the data to write and the length of the + * data in bytes. The write function should return + * CAIRO_STATUS_SUCCESS if all the data was successfully written, + * CAIRO_STATUS_WRITE_ERROR otherwise. + * + * Returns: the status code of the write operation + **/ +typedef cairo_status_t (*cairo_write_func_t) (void *closure, + const unsigned char *data, + unsigned int length); + +/** + * cairo_read_func_t: + * @closure: the input closure + * @data: the buffer into which to read the data + * @length: the amount of data to read + * + * #cairo_read_func_t is the type of function which is called when a + * backend needs to read data from an input stream. It is passed the + * closure which was specified by the user at the time the read + * function was registered, the buffer to read the data into and the + * length of the data in bytes. The read function should return + * CAIRO_STATUS_SUCCESS if all the data was successfully read, + * CAIRO_STATUS_READ_ERROR otherwise. + * + * Returns: the status code of the read operation + **/ +typedef cairo_status_t (*cairo_read_func_t) (void *closure, + unsigned char *data, + unsigned int length); + +/* Functions for manipulating state objects */ +cairo_public cairo_t * +cairo_create (cairo_surface_t *target); + +cairo_public cairo_t * +cairo_reference (cairo_t *cr); + +cairo_public void +cairo_destroy (cairo_t *cr); + +cairo_public unsigned int +cairo_get_reference_count (cairo_t *cr); + +cairo_public void * +cairo_get_user_data (cairo_t *cr, + const cairo_user_data_key_t *key); + +cairo_public cairo_status_t +cairo_set_user_data (cairo_t *cr, + const cairo_user_data_key_t *key, + void *user_data, + cairo_destroy_func_t destroy); + +cairo_public void +cairo_save (cairo_t *cr); + +cairo_public void +cairo_restore (cairo_t *cr); + +cairo_public void +cairo_push_group (cairo_t *cr); + +cairo_public void +cairo_push_group_with_content (cairo_t *cr, cairo_content_t content); + +cairo_public cairo_pattern_t * +cairo_pop_group (cairo_t *cr); + +cairo_public void +cairo_pop_group_to_source (cairo_t *cr); + +/* Modify state */ + +/** + * cairo_operator_t: + * @CAIRO_OPERATOR_CLEAR: clear destination layer (bounded) + * @CAIRO_OPERATOR_SOURCE: replace destination layer (bounded) + * @CAIRO_OPERATOR_OVER: draw source layer on top of destination layer + * (bounded) + * @CAIRO_OPERATOR_IN: draw source where there was destination content + * (unbounded) + * @CAIRO_OPERATOR_OUT: draw source where there was no destination + * content (unbounded) + * @CAIRO_OPERATOR_ATOP: draw source on top of destination content and + * only there + * @CAIRO_OPERATOR_DEST: ignore the source + * @CAIRO_OPERATOR_DEST_OVER: draw destination on top of source + * @CAIRO_OPERATOR_DEST_IN: leave destination only where there was + * source content (unbounded) + * @CAIRO_OPERATOR_DEST_OUT: leave destination only where there was no + * source content + * @CAIRO_OPERATOR_DEST_ATOP: leave destination on top of source content + * and only there (unbounded) + * @CAIRO_OPERATOR_XOR: source and destination are shown where there is only + * one of them + * @CAIRO_OPERATOR_ADD: source and destination layers are accumulated + * @CAIRO_OPERATOR_SATURATE: like over, but assuming source and dest are + * disjoint geometries + * + * #cairo_operator_t is used to set the compositing operator for all cairo + * drawing operations. + * + * The default operator is %CAIRO_OPERATOR_OVER. + * + * The operators marked as <firstterm>unbounded</firstterm> modify their + * destination even outside of the mask layer (that is, their effect is not + * bound by the mask layer). However, their effect can still be limited by + * way of clipping. + * + * To keep things simple, the operator descriptions here + * document the behavior for when both source and destination are either fully + * transparent or fully opaque. The actual implementation works for + * translucent layers too. + * For a more detailed explanation of the effects of each operator, including + * the mathematical definitions, see + * <ulink url="http://cairographics.org/operators/">http://cairographics.org/operators/</ulink>. + **/ +typedef enum _cairo_operator { + CAIRO_OPERATOR_CLEAR, + + CAIRO_OPERATOR_SOURCE, + CAIRO_OPERATOR_OVER, + CAIRO_OPERATOR_IN, + CAIRO_OPERATOR_OUT, + CAIRO_OPERATOR_ATOP, + + CAIRO_OPERATOR_DEST, + CAIRO_OPERATOR_DEST_OVER, + CAIRO_OPERATOR_DEST_IN, + CAIRO_OPERATOR_DEST_OUT, + CAIRO_OPERATOR_DEST_ATOP, + + CAIRO_OPERATOR_XOR, + CAIRO_OPERATOR_ADD, + CAIRO_OPERATOR_SATURATE +} cairo_operator_t; + +cairo_public void +cairo_set_operator (cairo_t *cr, cairo_operator_t op); + +cairo_public void +cairo_set_source (cairo_t *cr, cairo_pattern_t *source); + +cairo_public void +cairo_set_source_rgb (cairo_t *cr, double red, double green, double blue); + +cairo_public void +cairo_set_source_rgba (cairo_t *cr, + double red, double green, double blue, + double alpha); + +cairo_public void +cairo_set_source_surface (cairo_t *cr, + cairo_surface_t *surface, + double x, + double y); + +cairo_public void +cairo_set_tolerance (cairo_t *cr, double tolerance); + +/** + * cairo_antialias_t: + * @CAIRO_ANTIALIAS_DEFAULT: Use the default antialiasing for + * the subsystem and target device + * @CAIRO_ANTIALIAS_NONE: Use a bilevel alpha mask + * @CAIRO_ANTIALIAS_GRAY: Perform single-color antialiasing (using + * shades of gray for black text on a white background, for example). + * @CAIRO_ANTIALIAS_SUBPIXEL: Perform antialiasing by taking + * advantage of the order of subpixel elements on devices + * such as LCD panels + * + * Specifies the type of antialiasing to do when rendering text or shapes. + **/ +typedef enum _cairo_antialias { + CAIRO_ANTIALIAS_DEFAULT, + CAIRO_ANTIALIAS_NONE, + CAIRO_ANTIALIAS_GRAY, + CAIRO_ANTIALIAS_SUBPIXEL +} cairo_antialias_t; + +cairo_public void +cairo_set_antialias (cairo_t *cr, cairo_antialias_t antialias); + +/** + * cairo_fill_rule_t: + * @CAIRO_FILL_RULE_WINDING: If the path crosses the ray from + * left-to-right, counts +1. If the path crosses the ray + * from right to left, counts -1. (Left and right are determined + * from the perspective of looking along the ray from the starting + * point.) If the total count is non-zero, the point will be filled. + * @CAIRO_FILL_RULE_EVEN_ODD: Counts the total number of + * intersections, without regard to the orientation of the contour. If + * the total number of intersections is odd, the point will be + * filled. + * + * #cairo_fill_rule_t is used to select how paths are filled. For both + * fill rules, whether or not a point is included in the fill is + * determined by taking a ray from that point to infinity and looking + * at intersections with the path. The ray can be in any direction, + * as long as it doesn't pass through the end point of a segment + * or have a tricky intersection such as intersecting tangent to the path. + * (Note that filling is not actually implemented in this way. This + * is just a description of the rule that is applied.) + * + * The default fill rule is %CAIRO_FILL_RULE_WINDING. + * + * New entries may be added in future versions. + **/ +typedef enum _cairo_fill_rule { + CAIRO_FILL_RULE_WINDING, + CAIRO_FILL_RULE_EVEN_ODD +} cairo_fill_rule_t; + +cairo_public void +cairo_set_fill_rule (cairo_t *cr, cairo_fill_rule_t fill_rule); + +cairo_public void +cairo_set_line_width (cairo_t *cr, double width); + +/** + * cairo_line_cap_t: + * @CAIRO_LINE_CAP_BUTT: start(stop) the line exactly at the start(end) point + * @CAIRO_LINE_CAP_ROUND: use a round ending, the center of the circle is the end point + * @CAIRO_LINE_CAP_SQUARE: use squared ending, the center of the square is the end point + * + * Specifies how to render the endpoints of the path when stroking. + * + * The default line cap style is %CAIRO_LINE_CAP_BUTT. + **/ +typedef enum _cairo_line_cap { + CAIRO_LINE_CAP_BUTT, + CAIRO_LINE_CAP_ROUND, + CAIRO_LINE_CAP_SQUARE +} cairo_line_cap_t; + +cairo_public void +cairo_set_line_cap (cairo_t *cr, cairo_line_cap_t line_cap); + +/** + * cairo_line_join_t: + * @CAIRO_LINE_JOIN_MITER: use a sharp (angled) corner, see + * cairo_set_miter_limit() + * @CAIRO_LINE_JOIN_ROUND: use a rounded join, the center of the circle is the + * joint point + * @CAIRO_LINE_JOIN_BEVEL: use a cut-off join, the join is cut off at half + * the line width from the joint point + * + * Specifies how to render the junction of two lines when stroking. + * + * The default line join style is %CAIRO_LINE_JOIN_MITER. + **/ +typedef enum _cairo_line_join { + CAIRO_LINE_JOIN_MITER, + CAIRO_LINE_JOIN_ROUND, + CAIRO_LINE_JOIN_BEVEL +} cairo_line_join_t; + +cairo_public void +cairo_set_line_join (cairo_t *cr, cairo_line_join_t line_join); + +cairo_public void +cairo_set_dash (cairo_t *cr, + const double *dashes, + int num_dashes, + double offset); + +cairo_public void +cairo_set_miter_limit (cairo_t *cr, double limit); + +cairo_public void +cairo_translate (cairo_t *cr, double tx, double ty); + +cairo_public void +cairo_scale (cairo_t *cr, double sx, double sy); + +cairo_public void +cairo_rotate (cairo_t *cr, double angle); + +cairo_public void +cairo_transform (cairo_t *cr, + const cairo_matrix_t *matrix); + +cairo_public void +cairo_set_matrix (cairo_t *cr, + const cairo_matrix_t *matrix); + +cairo_public void +cairo_identity_matrix (cairo_t *cr); + +cairo_public void +cairo_user_to_device (cairo_t *cr, double *x, double *y); + +cairo_public void +cairo_user_to_device_distance (cairo_t *cr, double *dx, double *dy); + +cairo_public void +cairo_device_to_user (cairo_t *cr, double *x, double *y); + +cairo_public void +cairo_device_to_user_distance (cairo_t *cr, double *dx, double *dy); + +/* Path creation functions */ +cairo_public void +cairo_new_path (cairo_t *cr); + +cairo_public void +cairo_move_to (cairo_t *cr, double x, double y); + +cairo_public void +cairo_new_sub_path (cairo_t *cr); + +cairo_public void +cairo_line_to (cairo_t *cr, double x, double y); + +cairo_public void +cairo_curve_to (cairo_t *cr, + double x1, double y1, + double x2, double y2, + double x3, double y3); + +cairo_public void +cairo_arc (cairo_t *cr, + double xc, double yc, + double radius, + double angle1, double angle2); + +cairo_public void +cairo_arc_negative (cairo_t *cr, + double xc, double yc, + double radius, + double angle1, double angle2); + +/* XXX: NYI +cairo_public void +cairo_arc_to (cairo_t *cr, + double x1, double y1, + double x2, double y2, + double radius); +*/ + +cairo_public void +cairo_rel_move_to (cairo_t *cr, double dx, double dy); + +cairo_public void +cairo_rel_line_to (cairo_t *cr, double dx, double dy); + +cairo_public void +cairo_rel_curve_to (cairo_t *cr, + double dx1, double dy1, + double dx2, double dy2, + double dx3, double dy3); + +cairo_public void +cairo_rectangle (cairo_t *cr, + double x, double y, + double width, double height); + +/* XXX: NYI +cairo_public void +cairo_stroke_to_path (cairo_t *cr); +*/ + +cairo_public void +cairo_close_path (cairo_t *cr); + +cairo_public void +cairo_path_extents (cairo_t *cr, + double *x1, double *y1, + double *x2, double *y2); + +/* Painting functions */ +cairo_public void +cairo_paint (cairo_t *cr); + +cairo_public void +cairo_paint_with_alpha (cairo_t *cr, + double alpha); + +cairo_public void +cairo_mask (cairo_t *cr, + cairo_pattern_t *pattern); + +cairo_public void +cairo_mask_surface (cairo_t *cr, + cairo_surface_t *surface, + double surface_x, + double surface_y); + +cairo_public void +cairo_stroke (cairo_t *cr); + +cairo_public void +cairo_stroke_preserve (cairo_t *cr); + +cairo_public void +cairo_fill (cairo_t *cr); + +cairo_public void +cairo_fill_preserve (cairo_t *cr); + +cairo_public void +cairo_copy_page (cairo_t *cr); + +cairo_public void +cairo_show_page (cairo_t *cr); + +/* Insideness testing */ +cairo_public cairo_bool_t +cairo_in_stroke (cairo_t *cr, double x, double y); + +cairo_public cairo_bool_t +cairo_in_fill (cairo_t *cr, double x, double y); + +/* Rectangular extents */ +cairo_public void +cairo_stroke_extents (cairo_t *cr, + double *x1, double *y1, + double *x2, double *y2); + +cairo_public void +cairo_fill_extents (cairo_t *cr, + double *x1, double *y1, + double *x2, double *y2); + +/* Clipping */ +cairo_public void +cairo_reset_clip (cairo_t *cr); + +cairo_public void +cairo_clip (cairo_t *cr); + +cairo_public void +cairo_clip_preserve (cairo_t *cr); + +cairo_public void +cairo_clip_extents (cairo_t *cr, + double *x1, double *y1, + double *x2, double *y2); + +/** + * cairo_rectangle_t: + * @x: X coordinate of the left side of the rectangle + * @y: Y coordinate of the the top side of the rectangle + * @width: width of the rectangle + * @height: height of the rectangle + * + * A data structure for holding a rectangle. + * + * Since: 1.4 + **/ +typedef struct _cairo_rectangle { + double x, y, width, height; +} cairo_rectangle_t; + +/** + * cairo_rectangle_list_t: + * @status: Error status of the rectangle list + * @rectangles: Array containing the rectangles + * @num_rectangles: Number of rectangles in this list + * + * A data structure for holding a dynamically allocated + * array of rectangles. + * + * Since: 1.4 + **/ +typedef struct _cairo_rectangle_list { + cairo_status_t status; + cairo_rectangle_t *rectangles; + int num_rectangles; +} cairo_rectangle_list_t; + +cairo_public cairo_rectangle_list_t * +cairo_copy_clip_rectangle_list (cairo_t *cr); + +cairo_public void +cairo_rectangle_list_destroy (cairo_rectangle_list_t *rectangle_list); + +/* Font/Text functions */ + +/** + * cairo_scaled_font_t: + * + * A #cairo_scaled_font_t is a font scaled to a particular size and device + * resolution. A #cairo_scaled_font_t is most useful for low-level font + * usage where a library or application wants to cache a reference + * to a scaled font to speed up the computation of metrics. + * + * There are various types of scaled fonts, depending on the + * <firstterm>font backend</firstterm> they use. The type of a + * scaled font can be queried using cairo_scaled_font_get_type(). + * + * Memory management of #cairo_scaled_font_t is done with + * cairo_scaled_font_reference() and cairo_scaled_font_destroy(). + **/ +typedef struct _cairo_scaled_font cairo_scaled_font_t; + +/** + * cairo_font_face_t: + * + * A #cairo_font_face_t specifies all aspects of a font other + * than the size or font matrix (a font matrix is used to distort + * a font by sheering it or scaling it unequally in the two + * directions) . A font face can be set on a #cairo_t by using + * cairo_set_font_face(); the size and font matrix are set with + * cairo_set_font_size() and cairo_set_font_matrix(). + * + * There are various types of font faces, depending on the + * <firstterm>font backend</firstterm> they use. The type of a + * font face can be queried using cairo_font_face_get_type(). + * + * Memory management of #cairo_font_face_t is done with + * cairo_font_face_reference() and cairo_font_face_destroy(). + **/ +typedef struct _cairo_font_face cairo_font_face_t; + +/** + * cairo_glyph_t: + * @index: glyph index in the font. The exact interpretation of the + * glyph index depends on the font technology being used. + * @x: the offset in the X direction between the origin used for + * drawing or measuring the string and the origin of this glyph. + * @y: the offset in the Y direction between the origin used for + * drawing or measuring the string and the origin of this glyph. + * + * The #cairo_glyph_t structure holds information about a single glyph + * when drawing or measuring text. A font is (in simple terms) a + * collection of shapes used to draw text. A glyph is one of these + * shapes. There can be multiple glyphs for a single character + * (alternates to be used in different contexts, for example), or a + * glyph can be a <firstterm>ligature</firstterm> of multiple + * characters. Cairo doesn't expose any way of converting input text + * into glyphs, so in order to use the Cairo interfaces that take + * arrays of glyphs, you must directly access the appropriate + * underlying font system. + * + * Note that the offsets given by @x and @y are not cumulative. When + * drawing or measuring text, each glyph is individually positioned + * with respect to the overall origin + **/ +typedef struct { + unsigned long index; + double x; + double y; +} cairo_glyph_t; + +/** + * cairo_text_extents_t: + * @x_bearing: the horizontal distance from the origin to the + * leftmost part of the glyphs as drawn. Positive if the + * glyphs lie entirely to the right of the origin. + * @y_bearing: the vertical distance from the origin to the + * topmost part of the glyphs as drawn. Positive only if the + * glyphs lie completely below the origin; will usually be + * negative. + * @width: width of the glyphs as drawn + * @height: height of the glyphs as drawn + * @x_advance:distance to advance in the X direction + * after drawing these glyphs + * @y_advance: distance to advance in the Y direction + * after drawing these glyphs. Will typically be zero except + * for vertical text layout as found in East-Asian languages. + * + * The #cairo_text_extents_t structure stores the extents of a single + * glyph or a string of glyphs in user-space coordinates. Because text + * extents are in user-space coordinates, they are mostly, but not + * entirely, independent of the current transformation matrix. If you call + * <literal>cairo_scale(cr, 2.0, 2.0)</literal>, text will + * be drawn twice as big, but the reported text extents will not be + * doubled. They will change slightly due to hinting (so you can't + * assume that metrics are independent of the transformation matrix), + * but otherwise will remain unchanged. + **/ +typedef struct { + double x_bearing; + double y_bearing; + double width; + double height; + double x_advance; + double y_advance; +} cairo_text_extents_t; + +/** + * cairo_font_extents_t: + * @ascent: the distance that the font extends above the baseline. + * Note that this is not always exactly equal to the maximum + * of the extents of all the glyphs in the font, but rather + * is picked to express the font designer's intent as to + * how the font should align with elements above it. + * @descent: the distance that the font extends below the baseline. + * This value is positive for typical fonts that include + * portions below the baseline. Note that this is not always + * exactly equal to the maximum of the extents of all the + * glyphs in the font, but rather is picked to express the + * font designer's intent as to how the the font should + * align with elements below it. + * @height: the recommended vertical distance between baselines when + * setting consecutive lines of text with the font. This + * is greater than @ascent+@descent by a + * quantity known as the <firstterm>line spacing</firstterm> + * or <firstterm>external leading</firstterm>. When space + * is at a premium, most fonts can be set with only + * a distance of @ascent+@descent between lines. + * @max_x_advance: the maximum distance in the X direction that + * the the origin is advanced for any glyph in the font. + * @max_y_advance: the maximum distance in the Y direction that + * the the origin is advanced for any glyph in the font. + * this will be zero for normal fonts used for horizontal + * writing. (The scripts of East Asia are sometimes written + * vertically.) + * + * The #cairo_font_extents_t structure stores metric information for + * a font. Values are given in the current user-space coordinate + * system. + * + * Because font metrics are in user-space coordinates, they are + * mostly, but not entirely, independent of the current transformation + * matrix. If you call <literal>cairo_scale(cr, 2.0, 2.0)</literal>, + * text will be drawn twice as big, but the reported text extents will + * not be doubled. They will change slightly due to hinting (so you + * can't assume that metrics are independent of the transformation + * matrix), but otherwise will remain unchanged. + **/ +typedef struct { + double ascent; + double descent; + double height; + double max_x_advance; + double max_y_advance; +} cairo_font_extents_t; + +/** + * cairo_font_slant_t: + * @CAIRO_FONT_SLANT_NORMAL: Upright font style + * @CAIRO_FONT_SLANT_ITALIC: Italic font style + * @CAIRO_FONT_SLANT_OBLIQUE: Oblique font style + * + * Specifies variants of a font face based on their slant. + **/ +typedef enum _cairo_font_slant { + CAIRO_FONT_SLANT_NORMAL, + CAIRO_FONT_SLANT_ITALIC, + CAIRO_FONT_SLANT_OBLIQUE +} cairo_font_slant_t; + +/** + * cairo_font_weight_t: + * @CAIRO_FONT_WEIGHT_NORMAL: Normal font weight + * @CAIRO_FONT_WEIGHT_BOLD: Bold font weight + * + * Specifies variants of a font face based on their weight. + **/ +typedef enum _cairo_font_weight { + CAIRO_FONT_WEIGHT_NORMAL, + CAIRO_FONT_WEIGHT_BOLD +} cairo_font_weight_t; + +/** + * cairo_subpixel_order_t: + * @CAIRO_SUBPIXEL_ORDER_DEFAULT: Use the default subpixel order for + * for the target device + * @CAIRO_SUBPIXEL_ORDER_RGB: Subpixel elements are arranged horizontally + * with red at the left + * @CAIRO_SUBPIXEL_ORDER_BGR: Subpixel elements are arranged horizontally + * with blue at the left + * @CAIRO_SUBPIXEL_ORDER_VRGB: Subpixel elements are arranged vertically + * with red at the top + * @CAIRO_SUBPIXEL_ORDER_VBGR: Subpixel elements are arranged vertically + * with blue at the top + * + * The subpixel order specifies the order of color elements within + * each pixel on the display device when rendering with an + * antialiasing mode of %CAIRO_ANTIALIAS_SUBPIXEL. + **/ +typedef enum _cairo_subpixel_order { + CAIRO_SUBPIXEL_ORDER_DEFAULT, + CAIRO_SUBPIXEL_ORDER_RGB, + CAIRO_SUBPIXEL_ORDER_BGR, + CAIRO_SUBPIXEL_ORDER_VRGB, + CAIRO_SUBPIXEL_ORDER_VBGR +} cairo_subpixel_order_t; + +/** + * cairo_hint_style_t: + * @CAIRO_HINT_STYLE_DEFAULT: Use the default hint style for + * font backend and target device + * @CAIRO_HINT_STYLE_NONE: Do not hint outlines + * @CAIRO_HINT_STYLE_SLIGHT: Hint outlines slightly to improve + * contrast while retaining good fidelity to the original + * shapes. + * @CAIRO_HINT_STYLE_MEDIUM: Hint outlines with medium strength + * giving a compromise between fidelity to the original shapes + * and contrast + * @CAIRO_HINT_STYLE_FULL: Hint outlines to maximize contrast + * + * Specifies the type of hinting to do on font outlines. Hinting + * is the process of fitting outlines to the pixel grid in order + * to improve the appearance of the result. Since hinting outlines + * involves distorting them, it also reduces the faithfulness + * to the original outline shapes. Not all of the outline hinting + * styles are supported by all font backends. + * + * New entries may be added in future versions. + **/ +typedef enum _cairo_hint_style { + CAIRO_HINT_STYLE_DEFAULT, + CAIRO_HINT_STYLE_NONE, + CAIRO_HINT_STYLE_SLIGHT, + CAIRO_HINT_STYLE_MEDIUM, + CAIRO_HINT_STYLE_FULL +} cairo_hint_style_t; + +/** + * cairo_hint_metrics_t: + * @CAIRO_HINT_METRICS_DEFAULT: Hint metrics in the default + * manner for the font backend and target device + * @CAIRO_HINT_METRICS_OFF: Do not hint font metrics + * @CAIRO_HINT_METRICS_ON: Hint font metrics + * + * Specifies whether to hint font metrics; hinting font metrics + * means quantizing them so that they are integer values in + * device space. Doing this improves the consistency of + * letter and line spacing, however it also means that text + * will be laid out differently at different zoom factors. + **/ +typedef enum _cairo_hint_metrics { + CAIRO_HINT_METRICS_DEFAULT, + CAIRO_HINT_METRICS_OFF, + CAIRO_HINT_METRICS_ON +} cairo_hint_metrics_t; + +/** + * cairo_font_options_t: + * + * An opaque structure holding all options that are used when + * rendering fonts. + * + * Individual features of a #cairo_font_options_t can be set or + * accessed using functions named + * cairo_font_options_set_<emphasis>feature_name</emphasis> and + * cairo_font_options_get_<emphasis>feature_name</emphasis>, like + * cairo_font_options_set_antialias() and + * cairo_font_options_get_antialias(). + * + * New features may be added to a #cairo_font_options_t in the + * future. For this reason, cairo_font_options_copy(), + * cairo_font_options_equal(), cairo_font_options_merge(), and + * cairo_font_options_hash() should be used to copy, check + * for equality, merge, or compute a hash value of + * #cairo_font_options_t objects. + **/ +typedef struct _cairo_font_options cairo_font_options_t; + +cairo_public cairo_font_options_t * +cairo_font_options_create (void); + +cairo_public cairo_font_options_t * +cairo_font_options_copy (const cairo_font_options_t *original); + +cairo_public void +cairo_font_options_destroy (cairo_font_options_t *options); + +cairo_public cairo_status_t +cairo_font_options_status (cairo_font_options_t *options); + +cairo_public void +cairo_font_options_merge (cairo_font_options_t *options, + const cairo_font_options_t *other); +cairo_public cairo_bool_t +cairo_font_options_equal (const cairo_font_options_t *options, + const cairo_font_options_t *other); + +cairo_public unsigned long +cairo_font_options_hash (const cairo_font_options_t *options); + +cairo_public void +cairo_font_options_set_antialias (cairo_font_options_t *options, + cairo_antialias_t antialias); +cairo_public cairo_antialias_t +cairo_font_options_get_antialias (const cairo_font_options_t *options); + +cairo_public void +cairo_font_options_set_subpixel_order (cairo_font_options_t *options, + cairo_subpixel_order_t subpixel_order); +cairo_public cairo_subpixel_order_t +cairo_font_options_get_subpixel_order (const cairo_font_options_t *options); + +cairo_public void +cairo_font_options_set_hint_style (cairo_font_options_t *options, + cairo_hint_style_t hint_style); +cairo_public cairo_hint_style_t +cairo_font_options_get_hint_style (const cairo_font_options_t *options); + +cairo_public void +cairo_font_options_set_hint_metrics (cairo_font_options_t *options, + cairo_hint_metrics_t hint_metrics); +cairo_public cairo_hint_metrics_t +cairo_font_options_get_hint_metrics (const cairo_font_options_t *options); + +/* This interface is for dealing with text as text, not caring about the + font object inside the the cairo_t. */ + +cairo_public void +cairo_select_font_face (cairo_t *cr, + const char *family, + cairo_font_slant_t slant, + cairo_font_weight_t weight); + +cairo_public void +cairo_set_font_size (cairo_t *cr, double size); + +cairo_public void +cairo_set_font_matrix (cairo_t *cr, + const cairo_matrix_t *matrix); + +cairo_public void +cairo_get_font_matrix (cairo_t *cr, + cairo_matrix_t *matrix); + +cairo_public void +cairo_set_font_options (cairo_t *cr, + const cairo_font_options_t *options); + +cairo_public void +cairo_get_font_options (cairo_t *cr, + cairo_font_options_t *options); + +cairo_public void +cairo_set_font_face (cairo_t *cr, cairo_font_face_t *font_face); + +cairo_public cairo_font_face_t * +cairo_get_font_face (cairo_t *cr); + +cairo_public void +cairo_set_scaled_font (cairo_t *cr, + const cairo_scaled_font_t *scaled_font); + +cairo_public cairo_scaled_font_t * +cairo_get_scaled_font (cairo_t *cr); + +cairo_public void +cairo_show_text (cairo_t *cr, const char *utf8); + +cairo_public void +cairo_show_glyphs (cairo_t *cr, const cairo_glyph_t *glyphs, int num_glyphs); + +cairo_public void +cairo_text_path (cairo_t *cr, const char *utf8); + +cairo_public void +cairo_glyph_path (cairo_t *cr, const cairo_glyph_t *glyphs, int num_glyphs); + +cairo_public void +cairo_text_extents (cairo_t *cr, + const char *utf8, + cairo_text_extents_t *extents); + +cairo_public void +cairo_glyph_extents (cairo_t *cr, + const cairo_glyph_t *glyphs, + int num_glyphs, + cairo_text_extents_t *extents); + +cairo_public void +cairo_font_extents (cairo_t *cr, + cairo_font_extents_t *extents); + +/* Generic identifier for a font style */ + +cairo_public cairo_font_face_t * +cairo_font_face_reference (cairo_font_face_t *font_face); + +cairo_public void +cairo_font_face_destroy (cairo_font_face_t *font_face); + +cairo_public unsigned int +cairo_font_face_get_reference_count (cairo_font_face_t *font_face); + +cairo_public cairo_status_t +cairo_font_face_status (cairo_font_face_t *font_face); + +/** + * cairo_font_type_t: + * @CAIRO_FONT_TYPE_TOY: The font was created using cairo's toy font api + * @CAIRO_FONT_TYPE_FT: The font is of type FreeType + * @CAIRO_FONT_TYPE_WIN32: The font is of type Win32 + * @CAIRO_FONT_TYPE_QUARTZ: The font is of type Quartz (Since: 1.6) + * + * #cairo_font_type_t is used to describe the type of a given font + * face or scaled font. The font types are also known as "font + * backends" within cairo. + * + * The type of a font face is determined by the function used to + * create it, which will generally be of the form + * cairo_<emphasis>type</emphasis>_font_face_create. The font face type can be queried + * with cairo_font_face_get_type() + * + * The various #cairo_font_face_t functions can be used with a font face + * of any type. + * + * The type of a scaled font is determined by the type of the font + * face passed to cairo_scaled_font_create(). The scaled font type can + * be queried with cairo_scaled_font_get_type() + * + * The various #cairo_scaled_font_t functions can be used with scaled + * fonts of any type, but some font backends also provide + * type-specific functions that must only be called with a scaled font + * of the appropriate type. These functions have names that begin with + * cairo_<emphasis>type</emphasis>_scaled_font such as cairo_ft_scaled_font_lock_face(). + * + * The behavior of calling a type-specific function with a scaled font + * of the wrong type is undefined. + * + * New entries may be added in future versions. + * + * Since: 1.2 + **/ +typedef enum _cairo_font_type { + CAIRO_FONT_TYPE_TOY, + CAIRO_FONT_TYPE_FT, + CAIRO_FONT_TYPE_WIN32, + CAIRO_FONT_TYPE_QUARTZ +} cairo_font_type_t; + +cairo_public cairo_font_type_t +cairo_font_face_get_type (cairo_font_face_t *font_face); + +cairo_public void * +cairo_font_face_get_user_data (cairo_font_face_t *font_face, + const cairo_user_data_key_t *key); + +cairo_public cairo_status_t +cairo_font_face_set_user_data (cairo_font_face_t *font_face, + const cairo_user_data_key_t *key, + void *user_data, + cairo_destroy_func_t destroy); + +/* Portable interface to general font features. */ + +cairo_public cairo_scaled_font_t * +cairo_scaled_font_create (cairo_font_face_t *font_face, + const cairo_matrix_t *font_matrix, + const cairo_matrix_t *ctm, + const cairo_font_options_t *options); + +cairo_public cairo_scaled_font_t * +cairo_scaled_font_reference (cairo_scaled_font_t *scaled_font); + +cairo_public void +cairo_scaled_font_destroy (cairo_scaled_font_t *scaled_font); + +cairo_public unsigned int +cairo_scaled_font_get_reference_count (cairo_scaled_font_t *scaled_font); + +cairo_public cairo_status_t +cairo_scaled_font_status (cairo_scaled_font_t *scaled_font); + +cairo_public cairo_font_type_t +cairo_scaled_font_get_type (cairo_scaled_font_t *scaled_font); + +cairo_public void * +cairo_scaled_font_get_user_data (cairo_scaled_font_t *scaled_font, + const cairo_user_data_key_t *key); + +cairo_public cairo_status_t +cairo_scaled_font_set_user_data (cairo_scaled_font_t *scaled_font, + const cairo_user_data_key_t *key, + void *user_data, + cairo_destroy_func_t destroy); + +cairo_public void +cairo_scaled_font_extents (cairo_scaled_font_t *scaled_font, + cairo_font_extents_t *extents); + +cairo_public void +cairo_scaled_font_text_extents (cairo_scaled_font_t *scaled_font, + const char *utf8, + cairo_text_extents_t *extents); + +cairo_public void +cairo_scaled_font_glyph_extents (cairo_scaled_font_t *scaled_font, + const cairo_glyph_t *glyphs, + int num_glyphs, + cairo_text_extents_t *extents); + +cairo_public cairo_font_face_t * +cairo_scaled_font_get_font_face (cairo_scaled_font_t *scaled_font); + +cairo_public void +cairo_scaled_font_get_font_matrix (cairo_scaled_font_t *scaled_font, + cairo_matrix_t *font_matrix); + +cairo_public void +cairo_scaled_font_get_ctm (cairo_scaled_font_t *scaled_font, + cairo_matrix_t *ctm); + +cairo_public void +cairo_scaled_font_get_font_options (cairo_scaled_font_t *scaled_font, + cairo_font_options_t *options); + +/* Query functions */ + +cairo_public cairo_operator_t +cairo_get_operator (cairo_t *cr); + +cairo_public cairo_pattern_t * +cairo_get_source (cairo_t *cr); + +cairo_public double +cairo_get_tolerance (cairo_t *cr); + +cairo_public cairo_antialias_t +cairo_get_antialias (cairo_t *cr); + +cairo_public cairo_bool_t +cairo_has_current_point (cairo_t *cr); + +cairo_public void +cairo_get_current_point (cairo_t *cr, double *x, double *y); + +cairo_public cairo_fill_rule_t +cairo_get_fill_rule (cairo_t *cr); + +cairo_public double +cairo_get_line_width (cairo_t *cr); + +cairo_public cairo_line_cap_t +cairo_get_line_cap (cairo_t *cr); + +cairo_public cairo_line_join_t +cairo_get_line_join (cairo_t *cr); + +cairo_public double +cairo_get_miter_limit (cairo_t *cr); + +cairo_public int +cairo_get_dash_count (cairo_t *cr); + +cairo_public void +cairo_get_dash (cairo_t *cr, double *dashes, double *offset); + +cairo_public void +cairo_get_matrix (cairo_t *cr, cairo_matrix_t *matrix); + +cairo_public cairo_surface_t * +cairo_get_target (cairo_t *cr); + +cairo_public cairo_surface_t * +cairo_get_group_target (cairo_t *cr); + +/** + * cairo_path_data_type_t: + * @CAIRO_PATH_MOVE_TO: A move-to operation + * @CAIRO_PATH_LINE_TO: A line-to operation + * @CAIRO_PATH_CURVE_TO: A curve-to operation + * @CAIRO_PATH_CLOSE_PATH: A close-path operation + * + * #cairo_path_data_t is used to describe the type of one portion + * of a path when represented as a #cairo_path_t. + * See #cairo_path_data_t for details. + **/ +typedef enum _cairo_path_data_type { + CAIRO_PATH_MOVE_TO, + CAIRO_PATH_LINE_TO, + CAIRO_PATH_CURVE_TO, + CAIRO_PATH_CLOSE_PATH +} cairo_path_data_type_t; + +/** + * cairo_path_data_t: + * + * #cairo_path_data_t is used to represent the path data inside a + * #cairo_path_t. + * + * The data structure is designed to try to balance the demands of + * efficiency and ease-of-use. A path is represented as an array of + * #cairo_path_data_t, which is a union of headers and points. + * + * Each portion of the path is represented by one or more elements in + * the array, (one header followed by 0 or more points). The length + * value of the header is the number of array elements for the current + * portion including the header, (ie. length == 1 + # of points), and + * where the number of points for each element type is as follows: + * + * <programlisting> + * %CAIRO_PATH_MOVE_TO: 1 point + * %CAIRO_PATH_LINE_TO: 1 point + * %CAIRO_PATH_CURVE_TO: 3 points + * %CAIRO_PATH_CLOSE_PATH: 0 points + * </programlisting> + * + * The semantics and ordering of the coordinate values are consistent + * with cairo_move_to(), cairo_line_to(), cairo_curve_to(), and + * cairo_close_path(). + * + * Here is sample code for iterating through a #cairo_path_t: + * + * <informalexample><programlisting> + * int i; + * #cairo_path_t *path; + * #cairo_path_data_t *data; + * + * path = cairo_copy_path (cr); + * + * for (i=0; i < path->num_data; i += path->data[i].header.length) { + * data = &path->data[i]; + * switch (data->header.type) { + * case %CAIRO_PATH_MOVE_TO: + * do_move_to_things (data[1].point.x, data[1].point.y); + * break; + * case %CAIRO_PATH_LINE_TO: + * do_line_to_things (data[1].point.x, data[1].point.y); + * break; + * case %CAIRO_PATH_CURVE_TO: + * do_curve_to_things (data[1].point.x, data[1].point.y, + * data[2].point.x, data[2].point.y, + * data[3].point.x, data[3].point.y); + * break; + * case %CAIRO_PATH_CLOSE_PATH: + * do_close_path_things (); + * break; + * } + * } + * cairo_path_destroy (path); + * </programlisting></informalexample> + * + * As of cairo 1.4, cairo does not mind if there are more elements in + * a portion of the path than needed. Such elements can be used by + * users of the cairo API to hold extra values in the path data + * structure. For this reason, it is recommended that applications + * always use <literal>data->header.length</literal> to + * iterate over the path data, instead of hardcoding the number of + * elements for each element type. + **/ +typedef union _cairo_path_data_t cairo_path_data_t; +union _cairo_path_data_t { + struct { + cairo_path_data_type_t type; + int length; + } header; + struct { + double x, y; + } point; +}; + +/** + * cairo_path_t: + * @status: the current error status + * @data: the elements in the path + * @num_data: the number of elements in the data array + * + * A data structure for holding a path. This data structure serves as + * the return value for cairo_copy_path() and + * cairo_copy_path_flat() as well the input value for + * cairo_append_path(). + * + * See #cairo_path_data_t for hints on how to iterate over the + * actual data within the path. + * + * The num_data member gives the number of elements in the data + * array. This number is larger than the number of independent path + * portions (defined in #cairo_path_data_type_t), since the data + * includes both headers and coordinates for each portion. + **/ +typedef struct cairo_path { + cairo_status_t status; + cairo_path_data_t *data; + int num_data; +} cairo_path_t; + +cairo_public cairo_path_t * +cairo_copy_path (cairo_t *cr); + +cairo_public cairo_path_t * +cairo_copy_path_flat (cairo_t *cr); + +cairo_public void +cairo_append_path (cairo_t *cr, + const cairo_path_t *path); + +cairo_public void +cairo_path_destroy (cairo_path_t *path); + +/* Error status queries */ + +cairo_public cairo_status_t +cairo_status (cairo_t *cr); + +cairo_public const char * +cairo_status_to_string (cairo_status_t status); + +/* Surface manipulation */ + +cairo_public cairo_surface_t * +cairo_surface_create_similar (cairo_surface_t *other, + cairo_content_t content, + int width, + int height); + +cairo_public cairo_surface_t * +cairo_surface_reference (cairo_surface_t *surface); + +cairo_public void +cairo_surface_finish (cairo_surface_t *surface); + +cairo_public void +cairo_surface_destroy (cairo_surface_t *surface); + +cairo_public unsigned int +cairo_surface_get_reference_count (cairo_surface_t *surface); + +cairo_public cairo_status_t +cairo_surface_status (cairo_surface_t *surface); + +/** + * cairo_surface_type_t: + * @CAIRO_SURFACE_TYPE_IMAGE: The surface is of type image + * @CAIRO_SURFACE_TYPE_PDF: The surface is of type pdf + * @CAIRO_SURFACE_TYPE_PS: The surface is of type ps + * @CAIRO_SURFACE_TYPE_XLIB: The surface is of type xlib + * @CAIRO_SURFACE_TYPE_XCB: The surface is of type xcb + * @CAIRO_SURFACE_TYPE_GLITZ: The surface is of type glitz + * @CAIRO_SURFACE_TYPE_QUARTZ: The surface is of type quartz + * @CAIRO_SURFACE_TYPE_WIN32: The surface is of type win32 + * @CAIRO_SURFACE_TYPE_BEOS: The surface is of type beos + * @CAIRO_SURFACE_TYPE_DIRECTFB: The surface is of type directfb + * @CAIRO_SURFACE_TYPE_SVG: The surface is of type svg + * @CAIRO_SURFACE_TYPE_OS2: The surface is of type os2 + * @CAIRO_SURFACE_TYPE_WIN32_PRINTING: The surface is a win32 printing surface + * @CAIRO_SURFACE_TYPE_QUARTZ_IMAGE: The surface is of type quartz_image + * + * #cairo_surface_type_t is used to describe the type of a given + * surface. The surface types are also known as "backends" or "surface + * backends" within cairo. + * + * The type of a surface is determined by the function used to create + * it, which will generally be of the form cairo_<emphasis>type</emphasis>_surface_create(), + * (though see cairo_surface_create_similar() as well). + * + * The surface type can be queried with cairo_surface_get_type() + * + * The various #cairo_surface_t functions can be used with surfaces of + * any type, but some backends also provide type-specific functions + * that must only be called with a surface of the appropriate + * type. These functions have names that begin with + * cairo_<emphasis>type</emphasis>_surface such as cairo_image_surface_get_width(). + * + * The behavior of calling a type-specific function with a surface of + * the wrong type is undefined. + * + * New entries may be added in future versions. + * + * Since: 1.2 + **/ +typedef enum _cairo_surface_type { + CAIRO_SURFACE_TYPE_IMAGE, + CAIRO_SURFACE_TYPE_PDF, + CAIRO_SURFACE_TYPE_PS, + CAIRO_SURFACE_TYPE_XLIB, + CAIRO_SURFACE_TYPE_XCB, + CAIRO_SURFACE_TYPE_GLITZ, + CAIRO_SURFACE_TYPE_QUARTZ, + CAIRO_SURFACE_TYPE_WIN32, + CAIRO_SURFACE_TYPE_BEOS, + CAIRO_SURFACE_TYPE_DIRECTFB, + CAIRO_SURFACE_TYPE_SVG, + CAIRO_SURFACE_TYPE_OS2, + CAIRO_SURFACE_TYPE_WIN32_PRINTING, + CAIRO_SURFACE_TYPE_QUARTZ_IMAGE +} cairo_surface_type_t; + +cairo_public cairo_surface_type_t +cairo_surface_get_type (cairo_surface_t *surface); + +cairo_public cairo_content_t +cairo_surface_get_content (cairo_surface_t *surface); + +#if CAIRO_HAS_PNG_FUNCTIONS + +cairo_public cairo_status_t +cairo_surface_write_to_png (cairo_surface_t *surface, + const char *filename); + +cairo_public cairo_status_t +cairo_surface_write_to_png_stream (cairo_surface_t *surface, + cairo_write_func_t write_func, + void *closure); + +#endif + +cairo_public void * +cairo_surface_get_user_data (cairo_surface_t *surface, + const cairo_user_data_key_t *key); + +cairo_public cairo_status_t +cairo_surface_set_user_data (cairo_surface_t *surface, + const cairo_user_data_key_t *key, + void *user_data, + cairo_destroy_func_t destroy); + +cairo_public void +cairo_surface_get_font_options (cairo_surface_t *surface, + cairo_font_options_t *options); + +cairo_public void +cairo_surface_flush (cairo_surface_t *surface); + +cairo_public void +cairo_surface_mark_dirty (cairo_surface_t *surface); + +cairo_public void +cairo_surface_mark_dirty_rectangle (cairo_surface_t *surface, + int x, + int y, + int width, + int height); + +cairo_public void +cairo_surface_set_device_offset (cairo_surface_t *surface, + double x_offset, + double y_offset); + +cairo_public void +cairo_surface_get_device_offset (cairo_surface_t *surface, + double *x_offset, + double *y_offset); + +cairo_public void +cairo_surface_set_fallback_resolution (cairo_surface_t *surface, + double x_pixels_per_inch, + double y_pixels_per_inch); + +cairo_public void +cairo_surface_copy_page (cairo_surface_t *surface); + +cairo_public void +cairo_surface_show_page (cairo_surface_t *surface); + +/* Image-surface functions */ + +/** + * cairo_format_t: + * @CAIRO_FORMAT_ARGB32: each pixel is a 32-bit quantity, with + * alpha in the upper 8 bits, then red, then green, then blue. + * The 32-bit quantities are stored native-endian. Pre-multiplied + * alpha is used. (That is, 50% transparent red is 0x80800000, + * not 0x80ff0000.) + * @CAIRO_FORMAT_RGB24: each pixel is a 32-bit quantity, with + * the upper 8 bits unused. Red, Green, and Blue are stored + * in the remaining 24 bits in that order. + * @CAIRO_FORMAT_A8: each pixel is a 8-bit quantity holding + * an alpha value. + * @CAIRO_FORMAT_A1: each pixel is a 1-bit quantity holding + * an alpha value. Pixels are packed together into 32-bit + * quantities. The ordering of the bits matches the + * endianess of the platform. On a big-endian machine, the + * first pixel is in the uppermost bit, on a little-endian + * machine the first pixel is in the least-significant bit. + * @CAIRO_FORMAT_RGB16_565: This format value is deprecated. It has + * never been properly implemented in cairo and should not be used + * by applications. (since 1.2) + * + * #cairo_format_t is used to identify the memory format of + * image data. + * + * New entries may be added in future versions. + **/ +typedef enum _cairo_format { + CAIRO_FORMAT_ARGB32, + CAIRO_FORMAT_RGB24, + CAIRO_FORMAT_A8, + CAIRO_FORMAT_A1 + /* The value of 4 is reserved by a deprecated enum value. + * The next format added must have an explicit value of 5. + CAIRO_FORMAT_RGB16_565 = 4, + */ +} cairo_format_t; + +cairo_public cairo_surface_t * +cairo_image_surface_create (cairo_format_t format, + int width, + int height); + +cairo_public int +cairo_format_stride_for_width (cairo_format_t format, + int width); + +cairo_public cairo_surface_t * +cairo_image_surface_create_for_data (unsigned char *data, + cairo_format_t format, + int width, + int height, + int stride); + +cairo_public unsigned char * +cairo_image_surface_get_data (cairo_surface_t *surface); + +cairo_public cairo_format_t +cairo_image_surface_get_format (cairo_surface_t *surface); + +cairo_public int +cairo_image_surface_get_width (cairo_surface_t *surface); + +cairo_public int +cairo_image_surface_get_height (cairo_surface_t *surface); + +cairo_public int +cairo_image_surface_get_stride (cairo_surface_t *surface); + +#if CAIRO_HAS_PNG_FUNCTIONS + +cairo_public cairo_surface_t * +cairo_image_surface_create_from_png (const char *filename); + +cairo_public cairo_surface_t * +cairo_image_surface_create_from_png_stream (cairo_read_func_t read_func, + void *closure); + +#endif + +/* Pattern creation functions */ + +cairo_public cairo_pattern_t * +cairo_pattern_create_rgb (double red, double green, double blue); + +cairo_public cairo_pattern_t * +cairo_pattern_create_rgba (double red, double green, double blue, + double alpha); + +cairo_public cairo_pattern_t * +cairo_pattern_create_for_surface (cairo_surface_t *surface); + +cairo_public cairo_pattern_t * +cairo_pattern_create_linear (double x0, double y0, + double x1, double y1); + +cairo_public cairo_pattern_t * +cairo_pattern_create_radial (double cx0, double cy0, double radius0, + double cx1, double cy1, double radius1); + +cairo_public cairo_pattern_t * +cairo_pattern_reference (cairo_pattern_t *pattern); + +cairo_public void +cairo_pattern_destroy (cairo_pattern_t *pattern); + +cairo_public unsigned int +cairo_pattern_get_reference_count (cairo_pattern_t *pattern); + +cairo_public cairo_status_t +cairo_pattern_status (cairo_pattern_t *pattern); + +cairo_public void * +cairo_pattern_get_user_data (cairo_pattern_t *pattern, + const cairo_user_data_key_t *key); + +cairo_public cairo_status_t +cairo_pattern_set_user_data (cairo_pattern_t *pattern, + const cairo_user_data_key_t *key, + void *user_data, + cairo_destroy_func_t destroy); + +/** + * cairo_pattern_type_t: + * @CAIRO_PATTERN_TYPE_SOLID: The pattern is a solid (uniform) + * color. It may be opaque or translucent. + * @CAIRO_PATTERN_TYPE_SURFACE: The pattern is a based on a surface (an image). + * @CAIRO_PATTERN_TYPE_LINEAR: The pattern is a linear gradient. + * @CAIRO_PATTERN_TYPE_RADIAL: The pattern is a radial gradient. + * + * #cairo_pattern_type_t is used to describe the type of a given pattern. + * + * The type of a pattern is determined by the function used to create + * it. The cairo_pattern_create_rgb() and cairo_pattern_create_rgba() + * functions create SOLID patterns. The remaining + * cairo_pattern_create functions map to pattern types in obvious + * ways. + * + * The pattern type can be queried with cairo_pattern_get_type() + * + * Most #cairo_pattern_t functions can be called with a pattern of any + * type, (though trying to change the extend or filter for a solid + * pattern will have no effect). A notable exception is + * cairo_pattern_add_color_stop_rgb() and + * cairo_pattern_add_color_stop_rgba() which must only be called with + * gradient patterns (either LINEAR or RADIAL). Otherwise the pattern + * will be shutdown and put into an error state. + * + * New entries may be added in future versions. + * + * Since: 1.2 + **/ +typedef enum _cairo_pattern_type { + CAIRO_PATTERN_TYPE_SOLID, + CAIRO_PATTERN_TYPE_SURFACE, + CAIRO_PATTERN_TYPE_LINEAR, + CAIRO_PATTERN_TYPE_RADIAL +} cairo_pattern_type_t; + +cairo_public cairo_pattern_type_t +cairo_pattern_get_type (cairo_pattern_t *pattern); + +cairo_public void +cairo_pattern_add_color_stop_rgb (cairo_pattern_t *pattern, + double offset, + double red, double green, double blue); + +cairo_public void +cairo_pattern_add_color_stop_rgba (cairo_pattern_t *pattern, + double offset, + double red, double green, double blue, + double alpha); + +cairo_public void +cairo_pattern_set_matrix (cairo_pattern_t *pattern, + const cairo_matrix_t *matrix); + +cairo_public void +cairo_pattern_get_matrix (cairo_pattern_t *pattern, + cairo_matrix_t *matrix); + +/** + * cairo_extend_t: + * @CAIRO_EXTEND_NONE: pixels outside of the source pattern + * are fully transparent + * @CAIRO_EXTEND_REPEAT: the pattern is tiled by repeating + * @CAIRO_EXTEND_REFLECT: the pattern is tiled by reflecting + * at the edges (Implemented for surface patterns since 1.6) + * @CAIRO_EXTEND_PAD: pixels outside of the pattern copy + * the closest pixel from the source (Since 1.2; but only + * implemented for surface patterns since 1.6) + * + * #cairo_extend_t is used to describe how pattern color/alpha will be + * determined for areas "outside" the pattern's natural area, (for + * example, outside the surface bounds or outside the gradient + * geometry). + * + * The default extend mode is %CAIRO_EXTEND_NONE for surface patterns + * and %CAIRO_EXTEND_PAD for gradient patterns. + * + * New entries may be added in future versions. + **/ +typedef enum _cairo_extend { + CAIRO_EXTEND_NONE, + CAIRO_EXTEND_REPEAT, + CAIRO_EXTEND_REFLECT, + CAIRO_EXTEND_PAD +} cairo_extend_t; + +cairo_public void +cairo_pattern_set_extend (cairo_pattern_t *pattern, cairo_extend_t extend); + +cairo_public cairo_extend_t +cairo_pattern_get_extend (cairo_pattern_t *pattern); + +/** + * cairo_filter_t: + * @CAIRO_FILTER_FAST: A high-performance filter, with quality similar + * to %CAIRO_FILTER_NEAREST + * @CAIRO_FILTER_GOOD: A reasonable-performance filter, with quality + * similar to %CAIRO_FILTER_BILINEAR + * @CAIRO_FILTER_BEST: The highest-quality available, performance may + * not be suitable for interactive use. + * @CAIRO_FILTER_NEAREST: Nearest-neighbor filtering + * @CAIRO_FILTER_BILINEAR: Linear interpolation in two dimensions + * @CAIRO_FILTER_GAUSSIAN: This filter value is currently + * unimplemented, and should not be used in current code. + * + * #cairo_filter_t is used to indicate what filtering should be + * applied when reading pixel values from patterns. See + * cairo_pattern_set_source() for indicating the desired filter to be + * used with a particular pattern. + */ +typedef enum _cairo_filter { + CAIRO_FILTER_FAST, + CAIRO_FILTER_GOOD, + CAIRO_FILTER_BEST, + CAIRO_FILTER_NEAREST, + CAIRO_FILTER_BILINEAR, + CAIRO_FILTER_GAUSSIAN +} cairo_filter_t; + +cairo_public void +cairo_pattern_set_filter (cairo_pattern_t *pattern, cairo_filter_t filter); + +cairo_public cairo_filter_t +cairo_pattern_get_filter (cairo_pattern_t *pattern); + +cairo_public cairo_status_t +cairo_pattern_get_rgba (cairo_pattern_t *pattern, + double *red, double *green, + double *blue, double *alpha); + +cairo_public cairo_status_t +cairo_pattern_get_surface (cairo_pattern_t *pattern, + cairo_surface_t **surface); + + +cairo_public cairo_status_t +cairo_pattern_get_color_stop_rgba (cairo_pattern_t *pattern, + int index, double *offset, + double *red, double *green, + double *blue, double *alpha); + +cairo_public cairo_status_t +cairo_pattern_get_color_stop_count (cairo_pattern_t *pattern, + int *count); + +cairo_public cairo_status_t +cairo_pattern_get_linear_points (cairo_pattern_t *pattern, + double *x0, double *y0, + double *x1, double *y1); + +cairo_public cairo_status_t +cairo_pattern_get_radial_circles (cairo_pattern_t *pattern, + double *x0, double *y0, double *r0, + double *x1, double *y1, double *r1); + +/* Matrix functions */ + +cairo_public void +cairo_matrix_init (cairo_matrix_t *matrix, + double xx, double yx, + double xy, double yy, + double x0, double y0); + +cairo_public void +cairo_matrix_init_identity (cairo_matrix_t *matrix); + +cairo_public void +cairo_matrix_init_translate (cairo_matrix_t *matrix, + double tx, double ty); + +cairo_public void +cairo_matrix_init_scale (cairo_matrix_t *matrix, + double sx, double sy); + +cairo_public void +cairo_matrix_init_rotate (cairo_matrix_t *matrix, + double radians); + +cairo_public void +cairo_matrix_translate (cairo_matrix_t *matrix, double tx, double ty); + +cairo_public void +cairo_matrix_scale (cairo_matrix_t *matrix, double sx, double sy); + +cairo_public void +cairo_matrix_rotate (cairo_matrix_t *matrix, double radians); + +cairo_public cairo_status_t +cairo_matrix_invert (cairo_matrix_t *matrix); + +cairo_public void +cairo_matrix_multiply (cairo_matrix_t *result, + const cairo_matrix_t *a, + const cairo_matrix_t *b); + +cairo_public void +cairo_matrix_transform_distance (const cairo_matrix_t *matrix, + double *dx, double *dy); + +cairo_public void +cairo_matrix_transform_point (const cairo_matrix_t *matrix, + double *x, double *y); + +/* Functions to be used while debugging (not intended for use in production code) */ +cairo_public void +cairo_debug_reset_static_data (void); + +CAIRO_END_DECLS + +#endif /* CAIRO_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gdesktopappinfo.h b/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gdesktopappinfo.h new file mode 100644 index 00000000..ea13a42a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gdesktopappinfo.h @@ -0,0 +1,92 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#ifndef __G_DESKTOP_APP_INFO_H__ +#define __G_DESKTOP_APP_INFO_H__ + +#include <gio/gio.h> + +G_BEGIN_DECLS + +#define G_TYPE_DESKTOP_APP_INFO (g_desktop_app_info_get_type ()) +#define G_DESKTOP_APP_INFO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DESKTOP_APP_INFO, GDesktopAppInfo)) +#define G_DESKTOP_APP_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DESKTOP_APP_INFO, GDesktopAppInfoClass)) +#define G_IS_DESKTOP_APP_INFO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DESKTOP_APP_INFO)) +#define G_IS_DESKTOP_APP_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DESKTOP_APP_INFO)) +#define G_DESKTOP_APP_INFO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DESKTOP_APP_INFO, GDesktopAppInfoClass)) + +typedef struct _GDesktopAppInfo GDesktopAppInfo; +typedef struct _GDesktopAppInfoClass GDesktopAppInfoClass; + +struct _GDesktopAppInfoClass +{ + GObjectClass parent_class; +}; + + +GType g_desktop_app_info_get_type (void) G_GNUC_CONST; + +GDesktopAppInfo *g_desktop_app_info_new_from_filename (const char *filename); +GDesktopAppInfo *g_desktop_app_info_new (const char *desktop_id); +gboolean g_desktop_app_info_get_is_hidden (GDesktopAppInfo *info); + +void g_desktop_app_info_set_desktop_env (const char *desktop_env); + + +#define G_TYPE_DESKTOP_APP_INFO_LOOKUP (g_desktop_app_info_lookup_get_type ()) +#define G_DESKTOP_APP_INFO_LOOKUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_DESKTOP_APP_INFO_LOOKUP, GDesktopAppInfoLookup)) +#define G_IS_DESKTOP_APP_INFO_LOOKUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_DESKTOP_APP_INFO_LOOKUP)) +#define G_DESKTOP_APP_INFO_LOOKUP_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_DESKTOP_APP_INFO_LOOKUP, GDesktopAppInfoLookupIface)) + +/** + * G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME: + * + * Extension point for default handler to URI association. See + * <link linkend="gio-extension-points">Extending GIO</link>. + */ +#define G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME "gio-desktop-app-info-lookup" + +/** + * GDesktopAppInfoLookup: + * + * Interface that is used by backends to associate default + * handlers with URI schemes. + */ +typedef struct _GDesktopAppInfoLookup GDesktopAppInfoLookup; +typedef struct _GDesktopAppInfoLookupIface GDesktopAppInfoLookupIface; + +struct _GDesktopAppInfoLookupIface +{ + GTypeInterface g_iface; + + GAppInfo * (*get_default_for_uri_scheme) (GDesktopAppInfoLookup *lookup, + const char *uri_scheme); +}; + +GType g_desktop_app_info_lookup_get_type (void) G_GNUC_CONST; +GAppInfo *g_desktop_app_info_lookup_get_default_for_uri_scheme (GDesktopAppInfoLookup *lookup, + const char *uri_scheme); + +G_END_DECLS + + +#endif /* __G_DESKTOP_APP_INFO_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gunixinputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gunixinputstream.h new file mode 100644 index 00000000..7bb7cd96 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gunixinputstream.h @@ -0,0 +1,74 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#ifndef __G_UNIX_INPUT_STREAM_H__ +#define __G_UNIX_INPUT_STREAM_H__ + +#include <gio/gio.h> + +G_BEGIN_DECLS + +#define G_TYPE_UNIX_INPUT_STREAM (g_unix_input_stream_get_type ()) +#define G_UNIX_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_UNIX_INPUT_STREAM, GUnixInputStream)) +#define G_UNIX_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_UNIX_INPUT_STREAM, GUnixInputStreamClass)) +#define G_IS_UNIX_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_UNIX_INPUT_STREAM)) +#define G_IS_UNIX_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_UNIX_INPUT_STREAM)) +#define G_UNIX_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_UNIX_INPUT_STREAM, GUnixInputStreamClass)) + +/** + * GUnixInputStream: + * + * Implements #GInputStream for reading from selectable unix file descriptors + **/ +typedef struct _GUnixInputStream GUnixInputStream; +typedef struct _GUnixInputStreamClass GUnixInputStreamClass; +typedef struct _GUnixInputStreamPrivate GUnixInputStreamPrivate; + +struct _GUnixInputStream +{ + GInputStream parent_instance; + + /*< private >*/ + GUnixInputStreamPrivate *priv; +}; + +struct _GUnixInputStreamClass +{ + GInputStreamClass parent_class; + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + +GType g_unix_input_stream_get_type (void) G_GNUC_CONST; + +GInputStream *g_unix_input_stream_new (int fd, + gboolean close_fd_at_close); + +G_END_DECLS + +#endif /* __G_UNIX_INPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gunixmounts.h b/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gunixmounts.h new file mode 100644 index 00000000..6147f122 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gunixmounts.h @@ -0,0 +1,100 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#ifndef __G_UNIX_MOUNTS_H__ +#define __G_UNIX_MOUNTS_H__ + +#include <gio/gio.h> + +G_BEGIN_DECLS + +/** + * GUnixMountEntry: + * + * Defines a Unix mount entry (e.g. <filename>/media/cdrom</filename>). + * This corresponds roughly to a mtab entry. + **/ +typedef struct _GUnixMountEntry GUnixMountEntry; + +/** + * GUnixMountPoint: + * + * Defines a Unix mount point (e.g. <filename>/dev</filename>). + * This corresponds roughly to a fstab entry. + **/ +typedef struct _GUnixMountPoint GUnixMountPoint; + +/** + * GUnixMountMonitor: + * + * Watches #GUnixMount<!-- -->s for changes. + **/ +typedef struct _GUnixMountMonitor GUnixMountMonitor; +typedef struct _GUnixMountMonitorClass GUnixMountMonitorClass; + +#define G_TYPE_UNIX_MOUNT_MONITOR (g_unix_mount_monitor_get_type ()) +#define G_UNIX_MOUNT_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_UNIX_MOUNT_MONITOR, GUnixMountMonitor)) +#define G_UNIX_MOUNT_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_UNIX_MOUNT_MONITOR, GUnixMountMonitorClass)) +#define G_IS_UNIX_MOUNT_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_UNIX_MOUNT_MONITOR)) +#define G_IS_UNIX_MOUNT_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_UNIX_MOUNT_MONITOR)) + +void g_unix_mount_free (GUnixMountEntry *mount_entry); +void g_unix_mount_point_free (GUnixMountPoint *mount_point); +gint g_unix_mount_compare (GUnixMountEntry *mount1, + GUnixMountEntry *mount2); +const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry); +const char * g_unix_mount_get_device_path (GUnixMountEntry *mount_entry); +const char * g_unix_mount_get_fs_type (GUnixMountEntry *mount_entry); +gboolean g_unix_mount_is_readonly (GUnixMountEntry *mount_entry); +gboolean g_unix_mount_is_system_internal (GUnixMountEntry *mount_entry); +gboolean g_unix_mount_guess_can_eject (GUnixMountEntry *mount_entry); +gboolean g_unix_mount_guess_should_display (GUnixMountEntry *mount_entry); +char * g_unix_mount_guess_name (GUnixMountEntry *mount_entry); +GIcon * g_unix_mount_guess_icon (GUnixMountEntry *mount_entry); + +gint g_unix_mount_point_compare (GUnixMountPoint *mount1, + GUnixMountPoint *mount2); +const char * g_unix_mount_point_get_mount_path (GUnixMountPoint *mount_point); +const char * g_unix_mount_point_get_device_path (GUnixMountPoint *mount_point); +const char * g_unix_mount_point_get_fs_type (GUnixMountPoint *mount_point); +gboolean g_unix_mount_point_is_readonly (GUnixMountPoint *mount_point); +gboolean g_unix_mount_point_is_user_mountable (GUnixMountPoint *mount_point); +gboolean g_unix_mount_point_is_loopback (GUnixMountPoint *mount_point); +gboolean g_unix_mount_point_guess_can_eject (GUnixMountPoint *mount_point); +char * g_unix_mount_point_guess_name (GUnixMountPoint *mount_point); +GIcon * g_unix_mount_point_guess_icon (GUnixMountPoint *mount_point); + +GList * g_unix_mount_points_get (guint64 *time_read); +GList * g_unix_mounts_get (guint64 *time_read); +GUnixMountEntry *g_unix_mount_at (const char *mount_path, + guint64 *time_read); +gboolean g_unix_mounts_changed_since (guint64 time); +gboolean g_unix_mount_points_changed_since (guint64 time); + +GType g_unix_mount_monitor_get_type (void) G_GNUC_CONST; +GUnixMountMonitor *g_unix_mount_monitor_new (void); + +gboolean g_unix_is_mount_path_system_internal (const char *mount_path); + +G_END_DECLS + +#endif /* __G_UNIX_MOUNTS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gunixoutputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gunixoutputstream.h new file mode 100644 index 00000000..bfcf614d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gio-unix-2.0/gio/gunixoutputstream.h @@ -0,0 +1,74 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#ifndef __G_UNIX_OUTPUT_STREAM_H__ +#define __G_UNIX_OUTPUT_STREAM_H__ + +#include <gio/gio.h> + +G_BEGIN_DECLS + +#define G_TYPE_UNIX_OUTPUT_STREAM (g_unix_output_stream_get_type ()) +#define G_UNIX_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_UNIX_OUTPUT_STREAM, GUnixOutputStream)) +#define G_UNIX_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_UNIX_OUTPUT_STREAM, GUnixOutputStreamClass)) +#define G_IS_UNIX_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_UNIX_OUTPUT_STREAM)) +#define G_IS_UNIX_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_UNIX_OUTPUT_STREAM)) +#define G_UNIX_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_UNIX_OUTPUT_STREAM, GUnixOutputStreamClass)) + +/** + * GUnixOutputStream: + * + * Implements #GOutputStream for outputting to selectable unix file descriptors + **/ +typedef struct _GUnixOutputStream GUnixOutputStream; +typedef struct _GUnixOutputStreamClass GUnixOutputStreamClass; +typedef struct _GUnixOutputStreamPrivate GUnixOutputStreamPrivate; + +struct _GUnixOutputStream +{ + GOutputStream parent_instance; + + /*< private >*/ + GUnixOutputStreamPrivate *priv; +}; + +struct _GUnixOutputStreamClass +{ + GOutputStreamClass parent_class; + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + +GType g_unix_output_stream_get_type (void) G_GNUC_CONST; + +GOutputStream *g_unix_output_stream_new (int fd, + gboolean close_fd_at_close); + +G_END_DECLS + +#endif /* __G_UNIX_OUTPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gappinfo.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gappinfo.h new file mode 100644 index 00000000..d0fddf75 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gappinfo.h @@ -0,0 +1,242 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_APP_INFO_H__ +#define __G_APP_INFO_H__ + +#include <glib-object.h> +#include <gio/gicon.h> + +G_BEGIN_DECLS + +#define G_TYPE_APP_INFO (g_app_info_get_type ()) +#define G_APP_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_APP_INFO, GAppInfo)) +#define G_IS_APP_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_APP_INFO)) +#define G_APP_INFO_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_APP_INFO, GAppInfoIface)) + +#define G_TYPE_APP_LAUNCH_CONTEXT (g_app_launch_context_get_type ()) +#define G_APP_LAUNCH_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_APP_LAUNCH_CONTEXT, GAppLaunchContext)) +#define G_APP_LAUNCH_CONTEXT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_APP_LAUNCH_CONTEXT, GAppLaunchContextClass)) +#define G_IS_APP_LAUNCH_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_APP_LAUNCH_CONTEXT)) +#define G_IS_APP_LAUNCH_CONTEXT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_APP_LAUNCH_CONTEXT)) +#define G_APP_LAUNCH_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_APP_LAUNCH_CONTEXT, GAppLaunchContextClass)) + +/** + * GAppInfoCreateFlags: + * @G_APP_INFO_CREATE_NONE: No flags. + * @G_APP_INFO_CREATE_NEEDS_TERMINAL: Application opens in a terminal window. + * @G_APP_INFO_CREATE_SUPPORTS_URIS: Application supports URI arguments. + * + * Flags used when creating a #GAppInfo. + */ +typedef enum { + G_APP_INFO_CREATE_NONE = 0, /*< nick=none >*/ + G_APP_INFO_CREATE_NEEDS_TERMINAL = (1<<0), /*< nick=needs-terminal >*/ + G_APP_INFO_CREATE_SUPPORTS_URIS = (1<<1) /*< nick=supports-uris >*/ +} GAppInfoCreateFlags; + +typedef struct _GAppLaunchContext GAppLaunchContext; +typedef struct _GAppLaunchContextClass GAppLaunchContextClass; +typedef struct _GAppLaunchContextPrivate GAppLaunchContextPrivate; + +/** + * GAppInfo: + * + * Information about an installed application and methods to launch + * it (with file arguments). + */ +typedef struct _GAppInfo GAppInfo; /* Dummy typedef */ + +/** + * GAppInfoIface: + * @g_iface: The parent interface. + * @dup: Copies a #GAppInfo. + * @equal: Checks two #GAppInfo<!-- -->s for equality. + * @get_id: Gets a string identifier for a #GAppInfo. + * @get_name: Gets the name of the application for a #GAppInfo. + * @get_description: Gets a short description for the application described by the #GAppInfo. + * @get_executable: Gets the execuable name for the #GAppInfo. + * @get_icon: Gets the #GIcon for the #GAppInfo. + * @launch: Launches an application specified by the #GAppInfo. + * @supports_uris: Indicates whether the application specified supports launching URIs. + * @supports_files: Indicates whether the application specified accepts filename arguments. + * @launch_uris: Launches an application with a list of URIs. + * @should_show: Returns whether an application should be shown (e.g. when getting a list of installed applications). + * <ulink url="http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt"> + * <citetitle>FreeDesktop.Org Startup Notification Specification</citetitle></ulink>. + * @set_as_default_for_type: Sets an application as default for a given content type. + * @set_as_default_for_extension: Sets an application as default for a given file extention. + * @add_supports_type: Adds to the #GAppInfo information about supported file types. + * @can_remove_supports_type: Checks for support for removing supported file types from a #GAppInfo. + * @remove_supports_type: Removes a supported application type from a #GAppInfo. + * + * Application Information interface, for operating system portability. + */ +typedef struct _GAppInfoIface GAppInfoIface; + +struct _GAppInfoIface +{ + GTypeInterface g_iface; + + /* Virtual Table */ + + GAppInfo * (*dup) (GAppInfo *appinfo); + gboolean (*equal) (GAppInfo *appinfo1, + GAppInfo *appinfo2); + const char * (*get_id) (GAppInfo *appinfo); + const char * (*get_name) (GAppInfo *appinfo); + const char * (*get_description) (GAppInfo *appinfo); + const char * (*get_executable) (GAppInfo *appinfo); + GIcon * (*get_icon) (GAppInfo *appinfo); + gboolean (*launch) (GAppInfo *appinfo, + GList *filenames, + GAppLaunchContext *launch_context, + GError **error); + gboolean (*supports_uris) (GAppInfo *appinfo); + gboolean (*supports_files) (GAppInfo *appinfo); + gboolean (*launch_uris) (GAppInfo *appinfo, + GList *uris, + GAppLaunchContext *launch_context, + GError **error); + gboolean (*should_show) (GAppInfo *appinfo); + + /* For changing associations */ + gboolean (*set_as_default_for_type) (GAppInfo *appinfo, + const char *content_type, + GError **error); + gboolean (*set_as_default_for_extension) (GAppInfo *appinfo, + const char *extension, + GError **error); + gboolean (*add_supports_type) (GAppInfo *appinfo, + const char *content_type, + GError **error); + gboolean (*can_remove_supports_type) (GAppInfo *appinfo); + gboolean (*remove_supports_type) (GAppInfo *appinfo, + const char *content_type, + GError **error); +}; + +GType g_app_info_get_type (void) G_GNUC_CONST; +GType g_app_launch_context_get_type (void) G_GNUC_CONST; + +GAppInfo * g_app_info_create_from_commandline (const char *commandline, + const char *application_name, + GAppInfoCreateFlags flags, + GError **error); +GAppInfo * g_app_info_dup (GAppInfo *appinfo); +gboolean g_app_info_equal (GAppInfo *appinfo1, + GAppInfo *appinfo2); +const char *g_app_info_get_id (GAppInfo *appinfo); +const char *g_app_info_get_name (GAppInfo *appinfo); +const char *g_app_info_get_description (GAppInfo *appinfo); +const char *g_app_info_get_executable (GAppInfo *appinfo); +GIcon * g_app_info_get_icon (GAppInfo *appinfo); +gboolean g_app_info_launch (GAppInfo *appinfo, + GList *files, + GAppLaunchContext *launch_context, + GError **error); +gboolean g_app_info_supports_uris (GAppInfo *appinfo); +gboolean g_app_info_supports_files (GAppInfo *appinfo); +gboolean g_app_info_launch_uris (GAppInfo *appinfo, + GList *uris, + GAppLaunchContext *launch_context, + GError **error); +gboolean g_app_info_should_show (GAppInfo *appinfo); + +gboolean g_app_info_set_as_default_for_type (GAppInfo *appinfo, + const char *content_type, + GError **error); +gboolean g_app_info_set_as_default_for_extension (GAppInfo *appinfo, + const char *extension, + GError **error); +gboolean g_app_info_add_supports_type (GAppInfo *appinfo, + const char *content_type, + GError **error); +gboolean g_app_info_can_remove_supports_type (GAppInfo *appinfo); +gboolean g_app_info_remove_supports_type (GAppInfo *appinfo, + const char *content_type, + GError **error); + +GList * g_app_info_get_all (void); +GList * g_app_info_get_all_for_type (const char *content_type); +GAppInfo *g_app_info_get_default_for_type (const char *content_type, + gboolean must_support_uris); +GAppInfo *g_app_info_get_default_for_uri_scheme (const char *uri_scheme); + +gboolean g_app_info_launch_default_for_uri (const char *uri, + GAppLaunchContext *launch_context, + GError **error); + +/** + * GAppLaunchContext: + * @parent_instance: The parent instance. + * + * Integrating the launch with the launching application. This is used to + * handle for instance startup notification and launching the new application + * on the same screen as the launching window. + */ +struct _GAppLaunchContext +{ + GObject parent_instance; + + /*< private >*/ + GAppLaunchContextPrivate *priv; +}; + +struct _GAppLaunchContextClass +{ + GObjectClass parent_class; + + char * (*get_display) (GAppLaunchContext *context, + GAppInfo *info, + GList *files); + char * (*get_startup_notify_id) (GAppLaunchContext *context, + GAppInfo *info, + GList *files); + void (*launch_failed) (GAppLaunchContext *context, + const char *startup_notify_id); + + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + +GAppLaunchContext *g_app_launch_context_new (void); +char * g_app_launch_context_get_display (GAppLaunchContext *context, + GAppInfo *info, + GList *files); +char * g_app_launch_context_get_startup_notify_id (GAppLaunchContext *context, + GAppInfo *info, + GList *files); +void g_app_launch_context_launch_failed (GAppLaunchContext *context, + const char * startup_notify_id); + +G_END_DECLS + +#endif /* __G_APP_INFO_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gasyncresult.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gasyncresult.h new file mode 100644 index 00000000..640d6111 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gasyncresult.h @@ -0,0 +1,86 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_ASYNC_RESULT_H__ +#define __G_ASYNC_RESULT_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define G_TYPE_ASYNC_RESULT (g_async_result_get_type ()) +#define G_ASYNC_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_ASYNC_RESULT, GAsyncResult)) +#define G_IS_ASYNC_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_ASYNC_RESULT)) +#define G_ASYNC_RESULT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_ASYNC_RESULT, GAsyncResultIface)) + +/** + * GAsyncResult: + * + * Holds results information for an asynchronous operation, + * usually passed directly to a asynchronous _finish() operation. + **/ +typedef struct _GAsyncResult GAsyncResult; /* Dummy typedef */ +typedef struct _GAsyncResultIface GAsyncResultIface; + +/** + * GAsyncReadyCallback: + * @source_object: the object the asynchronous operation was started with. + * @res: a #GAsyncResult. + * @user_data: user data passed to the callback. + * + * Type definition for a function that will be called back when an asynchronous + * operation within GIO has been completed. + **/ +typedef void (*GAsyncReadyCallback) (GObject *source_object, + GAsyncResult *res, + gpointer user_data); + +/** + * GAsyncResultIface: + * @g_iface: The parent interface. + * @get_user_data: Gets the user data passed to the callback. + * @get_source_object: Gets the source object that issued the asynchronous operation. + * + * Interface definition for #GAsyncResult. + **/ +struct _GAsyncResultIface +{ + GTypeInterface g_iface; + + /* Virtual Table */ + + gpointer (*get_user_data) (GAsyncResult *async_result); + GObject * (*get_source_object) (GAsyncResult *async_result); +}; + +GType g_async_result_get_type (void) G_GNUC_CONST; + +gpointer g_async_result_get_user_data (GAsyncResult *res); +GObject *g_async_result_get_source_object (GAsyncResult *res); + +G_END_DECLS + +#endif /* __G_ASYNC_RESULT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gbufferedinputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gbufferedinputstream.h new file mode 100644 index 00000000..3eea4f9b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gbufferedinputstream.h @@ -0,0 +1,126 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Christian Kellner <gicmo@gnome.org> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_BUFFERED_INPUT_STREAM_H__ +#define __G_BUFFERED_INPUT_STREAM_H__ + +#include <glib-object.h> +#include <gio/gfilterinputstream.h> + +G_BEGIN_DECLS + +#define G_TYPE_BUFFERED_INPUT_STREAM (g_buffered_input_stream_get_type ()) +#define G_BUFFERED_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_BUFFERED_INPUT_STREAM, GBufferedInputStream)) +#define G_BUFFERED_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_BUFFERED_INPUT_STREAM, GBufferedInputStreamClass)) +#define G_IS_BUFFERED_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_BUFFERED_INPUT_STREAM)) +#define G_IS_BUFFERED_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_BUFFERED_INPUT_STREAM)) +#define G_BUFFERED_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_BUFFERED_INPUT_STREAM, GBufferedInputStreamClass)) + +/** + * GBufferedInputStream: + * + * Implements #GFilterInputStream with a sized input buffer. + **/ +typedef struct _GBufferedInputStream GBufferedInputStream; +typedef struct _GBufferedInputStreamClass GBufferedInputStreamClass; +typedef struct _GBufferedInputStreamPrivate GBufferedInputStreamPrivate; + +struct _GBufferedInputStream +{ + GFilterInputStream parent_instance; + + /*< private >*/ + GBufferedInputStreamPrivate *priv; +}; + +struct _GBufferedInputStreamClass +{ + GFilterInputStreamClass parent_class; + + gssize (* fill) (GBufferedInputStream *stream, + gssize count, + GCancellable *cancellable, + GError **error); + + /* Async ops: (optional in derived classes) */ + void (* fill_async) (GBufferedInputStream *stream, + gssize count, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gssize (* fill_finish) (GBufferedInputStream *stream, + GAsyncResult *result, + GError **error); + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + + +GType g_buffered_input_stream_get_type (void) G_GNUC_CONST; +GInputStream* g_buffered_input_stream_new (GInputStream *base_stream); +GInputStream* g_buffered_input_stream_new_sized (GInputStream *base_stream, + gsize size); + +gsize g_buffered_input_stream_get_buffer_size (GBufferedInputStream *stream); +void g_buffered_input_stream_set_buffer_size (GBufferedInputStream *stream, + gsize size); +gsize g_buffered_input_stream_get_available (GBufferedInputStream *stream); +gsize g_buffered_input_stream_peek (GBufferedInputStream *stream, + void *buffer, + gsize offset, + gsize count); +const void* g_buffered_input_stream_peek_buffer (GBufferedInputStream *stream, + gsize *count); + +gssize g_buffered_input_stream_fill (GBufferedInputStream *stream, + gssize count, + GCancellable *cancellable, + GError **error); +void g_buffered_input_stream_fill_async (GBufferedInputStream *stream, + gssize count, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gssize g_buffered_input_stream_fill_finish (GBufferedInputStream *stream, + GAsyncResult *result, + GError **error); + +int g_buffered_input_stream_read_byte (GBufferedInputStream *stream, + GCancellable *cancellable, + GError **error); + + +G_END_DECLS + +#endif /* __G_BUFFERED_INPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gbufferedoutputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gbufferedoutputstream.h new file mode 100644 index 00000000..5adce9e1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gbufferedoutputstream.h @@ -0,0 +1,87 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Christian Kellner <gicmo@gnome.org> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_BUFFERED_OUTPUT_STREAM_H__ +#define __G_BUFFERED_OUTPUT_STREAM_H__ + +#include <glib-object.h> +#include <gio/gfilteroutputstream.h> + +G_BEGIN_DECLS + +#define G_TYPE_BUFFERED_OUTPUT_STREAM (g_buffered_output_stream_get_type ()) +#define G_BUFFERED_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_BUFFERED_OUTPUT_STREAM, GBufferedOutputStream)) +#define G_BUFFERED_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_BUFFERED_OUTPUT_STREAM, GBufferedOutputStreamClass)) +#define G_IS_BUFFERED_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_BUFFERED_OUTPUT_STREAM)) +#define G_IS_BUFFERED_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_BUFFERED_OUTPUT_STREAM)) +#define G_BUFFERED_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_BUFFERED_OUTPUT_STREAM, GBufferedOutputStreamClass)) + +/** + * GBufferedOutputStream: + * @parent_class: The parent class. + * + * An implementation of #GFilterOutputStream with a sized buffer. + **/ +typedef struct _GBufferedOutputStream GBufferedOutputStream; +typedef struct _GBufferedOutputStreamClass GBufferedOutputStreamClass; +typedef struct _GBufferedOutputStreamPrivate GBufferedOutputStreamPrivate; + +struct _GBufferedOutputStream +{ + GFilterOutputStream parent_instance; + + /*< protected >*/ + GBufferedOutputStreamPrivate *priv; +}; + +struct _GBufferedOutputStreamClass +{ + GOutputStreamClass parent_class; + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + + +GType g_buffered_output_stream_get_type (void) G_GNUC_CONST; +GOutputStream* g_buffered_output_stream_new (GOutputStream *base_stream); +GOutputStream* g_buffered_output_stream_new_sized (GOutputStream *base_stream, + gsize size); +gsize g_buffered_output_stream_get_buffer_size (GBufferedOutputStream *stream); +void g_buffered_output_stream_set_buffer_size (GBufferedOutputStream *stream, + gsize size); +gboolean g_buffered_output_stream_get_auto_grow (GBufferedOutputStream *stream); +void g_buffered_output_stream_set_auto_grow (GBufferedOutputStream *stream, + gboolean auto_grow); + +G_END_DECLS + +#endif /* __G_BUFFERED_OUTPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gcancellable.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gcancellable.h new file mode 100644 index 00000000..7c890be9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gcancellable.h @@ -0,0 +1,84 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_CANCELLABLE_H__ +#define __G_CANCELLABLE_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define G_TYPE_CANCELLABLE (g_cancellable_get_type ()) +#define G_CANCELLABLE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_CANCELLABLE, GCancellable)) +#define G_CANCELLABLE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_CANCELLABLE, GCancellableClass)) +#define G_IS_CANCELLABLE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_CANCELLABLE)) +#define G_IS_CANCELLABLE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_CANCELLABLE)) +#define G_CANCELLABLE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_CANCELLABLE, GCancellableClass)) + +/** + * GCancellable: + * + * Allows actions to be cancelled. + */ +typedef struct _GCancellable GCancellable; +typedef struct _GCancellableClass GCancellableClass; + +struct _GCancellableClass +{ + GObjectClass parent_class; + + void (* cancelled) (GCancellable *cancellable); + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + +GType g_cancellable_get_type (void) G_GNUC_CONST; + +GCancellable *g_cancellable_new (void); + +/* These are only safe to call inside a cancellable op */ +gboolean g_cancellable_is_cancelled (GCancellable *cancellable); +gboolean g_cancellable_set_error_if_cancelled (GCancellable *cancellable, + GError **error); +int g_cancellable_get_fd (GCancellable *cancellable); +GCancellable *g_cancellable_get_current (void); +void g_cancellable_push_current (GCancellable *cancellable); +void g_cancellable_pop_current (GCancellable *cancellable); +void g_cancellable_reset (GCancellable *cancellable); + + +/* This is safe to call from another thread */ +void g_cancellable_cancel (GCancellable *cancellable); + +G_END_DECLS + +#endif /* __G_CANCELLABLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gcontenttype.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gcontenttype.h new file mode 100644 index 00000000..9dcbf149 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gcontenttype.h @@ -0,0 +1,54 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_CONTENT_TYPE_H__ +#define __G_CONTENT_TYPE_H__ + +#include <glib.h> +#include <gio/gicon.h> + +G_BEGIN_DECLS + +gboolean g_content_type_equals (const char *type1, + const char *type2); +gboolean g_content_type_is_a (const char *type, + const char *supertype); +gboolean g_content_type_is_unknown (const char *type); +char * g_content_type_get_description (const char *type); +char * g_content_type_get_mime_type (const char *type); +GIcon * g_content_type_get_icon (const char *type); +gboolean g_content_type_can_be_executable (const char *type); + +char * g_content_type_guess (const char *filename, + const guchar *data, + gsize data_size, + gboolean *result_uncertain ); + +GList * g_content_types_get_registered (void); + +G_END_DECLS + +#endif /* __G_CONTENT_TYPE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gdatainputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gdatainputstream.h new file mode 100644 index 00000000..0ecd14f5 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gdatainputstream.h @@ -0,0 +1,147 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_DATA_INPUT_STREAM_H__ +#define __G_DATA_INPUT_STREAM_H__ + +#include <glib-object.h> +#include <gio/gbufferedinputstream.h> + +G_BEGIN_DECLS + +#define G_TYPE_DATA_INPUT_STREAM (g_data_input_stream_get_type ()) +#define G_DATA_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DATA_INPUT_STREAM, GDataInputStream)) +#define G_DATA_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DATA_INPUT_STREAM, GDataInputStreamClass)) +#define G_IS_DATA_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DATA_INPUT_STREAM)) +#define G_IS_DATA_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DATA_INPUT_STREAM)) +#define G_DATA_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DATA_INPUT_STREAM, GDataInputStreamClass)) + +/** + * GDataInputStream: + * @parent: a #GBufferedInputStream. + * + * An implementation of #GBufferedInputStream that allows for high-level + * data manipulation of arbitrary data (including binary operations). + **/ +typedef struct _GDataInputStream GDataInputStream; +typedef struct _GDataInputStreamClass GDataInputStreamClass; +typedef struct _GDataInputStreamPrivate GDataInputStreamPrivate; + +struct _GDataInputStream +{ + GBufferedInputStream parent_instance; + + /*< private >*/ + GDataInputStreamPrivate *priv; +}; + +struct _GDataInputStreamClass +{ + GBufferedInputStreamClass parent_class; + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + +/** + * GDataStreamByteOrder: + * @G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN: Selects Big Endian byte order. + * @G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN: Selects Little Endian byte order. + * @G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN: Selects endianness based on host machine's architecture. + * + * #GDataStreamByteOrder is used to ensure proper endianness of streaming data sources + * across various machine architectures. + * + **/ +typedef enum { + G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN, + G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN, + G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN +} GDataStreamByteOrder; + +/** + * GDataStreamNewlineType: + * @G_DATA_STREAM_NEWLINE_TYPE_LF: Selects "LF" line endings, common on most modern UNIX platforms. + * @G_DATA_STREAM_NEWLINE_TYPE_CR: Selects "CR" line endings. + * @G_DATA_STREAM_NEWLINE_TYPE_CR_LF: Selects "CR, LF" line ending, common on Microsoft Windows. + * @G_DATA_STREAM_NEWLINE_TYPE_ANY: Automatically try to handle any line ending type. + * + * #GDataStreamNewlineType is used when checking for or setting the line endings for a given file. + **/ +typedef enum { + G_DATA_STREAM_NEWLINE_TYPE_LF, + G_DATA_STREAM_NEWLINE_TYPE_CR, + G_DATA_STREAM_NEWLINE_TYPE_CR_LF, + G_DATA_STREAM_NEWLINE_TYPE_ANY +} GDataStreamNewlineType; + +GType g_data_input_stream_get_type (void) G_GNUC_CONST; +GDataInputStream* g_data_input_stream_new (GInputStream *base_stream); + +void g_data_input_stream_set_byte_order (GDataInputStream *stream, + GDataStreamByteOrder order); +GDataStreamByteOrder g_data_input_stream_get_byte_order (GDataInputStream *stream); +void g_data_input_stream_set_newline_type (GDataInputStream *stream, + GDataStreamNewlineType type); +GDataStreamNewlineType g_data_input_stream_get_newline_type (GDataInputStream *stream); +guchar g_data_input_stream_read_byte (GDataInputStream *stream, + GCancellable *cancellable, + GError **error); +gint16 g_data_input_stream_read_int16 (GDataInputStream *stream, + GCancellable *cancellable, + GError **error); +guint16 g_data_input_stream_read_uint16 (GDataInputStream *stream, + GCancellable *cancellable, + GError **error); +gint32 g_data_input_stream_read_int32 (GDataInputStream *stream, + GCancellable *cancellable, + GError **error); +guint32 g_data_input_stream_read_uint32 (GDataInputStream *stream, + GCancellable *cancellable, + GError **error); +gint64 g_data_input_stream_read_int64 (GDataInputStream *stream, + GCancellable *cancellable, + GError **error); +guint64 g_data_input_stream_read_uint64 (GDataInputStream *stream, + GCancellable *cancellable, + GError **error); +char * g_data_input_stream_read_line (GDataInputStream *stream, + gsize *length, + GCancellable *cancellable, + GError **error); +char * g_data_input_stream_read_until (GDataInputStream *stream, + const gchar *stop_chars, + gsize *length, + GCancellable *cancellable, + GError **error); + +G_END_DECLS + +#endif /* __G_DATA_INPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gdataoutputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gdataoutputstream.h new file mode 100644 index 00000000..7a4e4055 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gdataoutputstream.h @@ -0,0 +1,117 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_DATA_OUTPUT_STREAM_H__ +#define __G_DATA_OUTPUT_STREAM_H__ + +#include <glib-object.h> +#include <gio/gfilteroutputstream.h> +#include <gio/gdatainputstream.h> + +G_BEGIN_DECLS + +#define G_TYPE_DATA_OUTPUT_STREAM (g_data_output_stream_get_type ()) +#define G_DATA_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DATA_OUTPUT_STREAM, GDataOutputStream)) +#define G_DATA_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DATA_OUTPUT_STREAM, GDataOutputStreamClass)) +#define G_IS_DATA_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DATA_OUTPUT_STREAM)) +#define G_IS_DATA_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DATA_OUTPUT_STREAM)) +#define G_DATA_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DATA_OUTPUT_STREAM, GDataOutputStreamClass)) + +/** + * GDataOutputStream: + * @parent_instance: a #GBufferedOutputStream. + * + * An implementation of #GBufferedOutputStream that allows for high-level + * data manipulation of arbitrary data (including binary operations). + **/ +typedef struct _GDataOutputStream GDataOutputStream; +typedef struct _GDataOutputStreamClass GDataOutputStreamClass; +typedef struct _GDataOutputStreamPrivate GDataOutputStreamPrivate; + +struct _GDataOutputStream +{ + GFilterOutputStream parent_instance; + + /*< private >*/ + GDataOutputStreamPrivate *priv; +}; + +struct _GDataOutputStreamClass +{ + GFilterOutputStreamClass parent_class; + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + + +GType g_data_output_stream_get_type (void) G_GNUC_CONST; +GDataOutputStream* g_data_output_stream_new (GOutputStream *base_stream); + +void g_data_output_stream_set_byte_order (GDataOutputStream *stream, + GDataStreamByteOrder order); +GDataStreamByteOrder g_data_output_stream_get_byte_order (GDataOutputStream *stream); + +gboolean g_data_output_stream_put_byte (GDataOutputStream *stream, + guchar data, + GCancellable *cancellable, + GError **error); +gboolean g_data_output_stream_put_int16 (GDataOutputStream *stream, + gint16 data, + GCancellable *cancellable, + GError **error); +gboolean g_data_output_stream_put_uint16 (GDataOutputStream *stream, + guint16 data, + GCancellable *cancellable, + GError **error); +gboolean g_data_output_stream_put_int32 (GDataOutputStream *stream, + gint32 data, + GCancellable *cancellable, + GError **error); +gboolean g_data_output_stream_put_uint32 (GDataOutputStream *stream, + guint32 data, + GCancellable *cancellable, + GError **error); +gboolean g_data_output_stream_put_int64 (GDataOutputStream *stream, + gint64 data, + GCancellable *cancellable, + GError **error); +gboolean g_data_output_stream_put_uint64 (GDataOutputStream *stream, + guint64 data, + GCancellable *cancellable, + GError **error); +gboolean g_data_output_stream_put_string (GDataOutputStream *stream, + const char *str, + GCancellable *cancellable, + GError **error); + +G_END_DECLS + +#endif /* __G_DATA_OUTPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gdrive.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gdrive.h new file mode 100644 index 00000000..26671b91 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gdrive.h @@ -0,0 +1,144 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + * David Zeuthen <davidz@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_DRIVE_H__ +#define __G_DRIVE_H__ + +#include <glib-object.h> +#include <gio/gmount.h> +#include <gio/gvolume.h> +#include <gio/gmountoperation.h> + +G_BEGIN_DECLS + +#define G_TYPE_DRIVE (g_drive_get_type ()) +#define G_DRIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_DRIVE, GDrive)) +#define G_IS_DRIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_DRIVE)) +#define G_DRIVE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_DRIVE, GDriveIface)) + +/** + * GDriveIface: + * @g_iface: The parent interface. + * @changed: Signal emitted when the drive is changed. + * @disconnected: The removed signal that is emitted when the #GDrive have been disconnected. If the recipient is holding references to the object they should release them so the object can be finalized. + * @eject_button: Signal emitted when the physical eject button (if any) of a drive have been pressed. + * @get_name: Returns the name for the given #GDrive. + * @get_icon: Returns a #GIcon for the given #GDrive. + * @has_volumes: Returns %TRUE if the #GDrive has mountable volumes. + * @get_volumes: Returns a list #GList of #GVolume for the #GDrive. + * @is_media_removable: Returns %TRUE if the #GDrive supports removal and insertion of media. + * @has_media: Returns %TRUE if the #GDrive has media inserted. + * @is_media_check_automatic: Returns %TRUE if the #GDrive is capabable of automatically detecting media changes. + * @can_poll_for_media: Returns %TRUE if the #GDrive is capable of manually polling for media change. + * @can_eject: Returns %TRUE if the #GDrive can eject media. + * @eject: Ejects a #GDrive. + * @eject_finish: Finishes an eject operation. + * @poll_for_media: Poll for media insertion/removal on a #GDrive. + * @poll_for_media_finish: Finishes a media poll operation. + * @get_identifier: Returns the identifier of the given kind, or %NULL if + * the #GDrive doesn't have one. + * @enumerate_identifiers: Returns an array strings listing the kinds + * of identifiers which the #GDrive has. + * + * + * Interface for creating #GDrive implementations. + */ +typedef struct _GDriveIface GDriveIface; + +struct _GDriveIface +{ + GTypeInterface g_iface; + + /* signals */ + void (*changed) (GDrive *drive); + void (*disconnected) (GDrive *drive); + void (*eject_button) (GDrive *drive); + + /* Virtual Table */ + char * (*get_name) (GDrive *drive); + GIcon * (*get_icon) (GDrive *drive); + gboolean (*has_volumes) (GDrive *drive); + GList * (*get_volumes) (GDrive *drive); + gboolean (*is_media_removable) (GDrive *drive); + gboolean (*has_media) (GDrive *drive); + gboolean (*is_media_check_automatic) (GDrive *drive); + gboolean (*can_eject) (GDrive *drive); + gboolean (*can_poll_for_media) (GDrive *drive); + void (*eject) (GDrive *drive, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*eject_finish) (GDrive *drive, + GAsyncResult *result, + GError **error); + void (*poll_for_media) (GDrive *drive, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*poll_for_media_finish) (GDrive *drive, + GAsyncResult *result, + GError **error); + + char * (*get_identifier) (GDrive *drive, + const char *kind); + char ** (*enumerate_identifiers) (GDrive *drive); +}; + +GType g_drive_get_type (void) G_GNUC_CONST; + +char * g_drive_get_name (GDrive *drive); +GIcon * g_drive_get_icon (GDrive *drive); +gboolean g_drive_has_volumes (GDrive *drive); +GList * g_drive_get_volumes (GDrive *drive); +gboolean g_drive_is_media_removable (GDrive *drive); +gboolean g_drive_has_media (GDrive *drive); +gboolean g_drive_is_media_check_automatic (GDrive *drive); +gboolean g_drive_can_poll_for_media (GDrive *drive); +gboolean g_drive_can_eject (GDrive *drive); +void g_drive_eject (GDrive *drive, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_drive_eject_finish (GDrive *drive, + GAsyncResult *result, + GError **error); +void g_drive_poll_for_media (GDrive *drive, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_drive_poll_for_media_finish (GDrive *drive, + GAsyncResult *result, + GError **error); +char * g_drive_get_identifier (GDrive *drive, + const char *kind); +char ** g_drive_enumerate_identifiers (GDrive *drive); + +G_END_DECLS + +#endif /* __G_DRIVE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfile.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfile.h new file mode 100644 index 00000000..a67b72eb --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfile.h @@ -0,0 +1,929 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILE_H__ +#define __G_FILE_H__ + +#include <glib-object.h> +#include <gio/gfileinfo.h> +#include <gio/gfileenumerator.h> +#include <gio/gfileinputstream.h> +#include <gio/gfileoutputstream.h> +#include <gio/gmountoperation.h> +#include <gio/gappinfo.h> + +G_BEGIN_DECLS + +#define G_TYPE_FILE (g_file_get_type ()) +#define G_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_FILE, GFile)) +#define G_IS_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_FILE)) +#define G_FILE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_FILE, GFileIface)) + +/** + * GFileQueryInfoFlags: + * @G_FILE_QUERY_INFO_NONE: No flags set. + * @G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS: Don't follow symlinks. + * + * Flags used when querying a #GFileInfo. + */ +typedef enum { + G_FILE_QUERY_INFO_NONE = 0, + G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS = (1<<0) /*< nick=nofollow-symlinks >*/ +} GFileQueryInfoFlags; + +/** + * GFileCreateFlags: + * @G_FILE_CREATE_NONE: No flags set. + * @G_FILE_CREATE_PRIVATE: Create a file that can only be + * accessed by the current user. + * + * Flags used when an operation may create a file. + */ +typedef enum { + G_FILE_CREATE_NONE = 0, + G_FILE_CREATE_PRIVATE = (1<<0) +} GFileCreateFlags; + + +/** + * GMountMountFlags: + * @G_MOUNT_MOUNT_NONE: No flags set. + * + * Flags used when mounting a mount. + */ +typedef enum { + G_MOUNT_MOUNT_NONE = 0 +} GMountMountFlags; + + +/** + * GMountUnmountFlags: + * @G_MOUNT_UNMOUNT_NONE: No flags set. + * @G_MOUNT_UNMOUNT_FORCE: Unmount even if there are outstanding + * file operations on the mount. + * + * Flags used when an unmounting a mount. + */ +typedef enum { + G_MOUNT_UNMOUNT_NONE = 0, + G_MOUNT_UNMOUNT_FORCE = (1<<0) +} GMountUnmountFlags; + +/** + * GFileCopyFlags: + * @G_FILE_COPY_NONE: No flags set. + * @G_FILE_COPY_OVERWRITE: Overwrite any existing files + * @G_FILE_COPY_BACKUP: Make a backup of any existing files. + * @G_FILE_COPY_NOFOLLOW_SYMLINKS: Don't follow symlinks. + * @G_FILE_COPY_ALL_METADATA: Copy all file metadata instead of just default set used for copy (see #GFileInfo). + * @G_FILE_COPY_NO_FALLBACK_FOR_MOVE: Don't use copy and delete fallback if native move not supported. + * + * Flags used when copying or moving files. + */ +typedef enum { + G_FILE_COPY_NONE = 0, /*< nick=none >*/ + G_FILE_COPY_OVERWRITE = (1<<0), + G_FILE_COPY_BACKUP = (1<<1), + G_FILE_COPY_NOFOLLOW_SYMLINKS = (1<<2), + G_FILE_COPY_ALL_METADATA = (1<<3), + G_FILE_COPY_NO_FALLBACK_FOR_MOVE = (1<<4) +} GFileCopyFlags; + +/** + * GFileMonitorFlags: + * @G_FILE_MONITOR_NONE: No flags set. + * @G_FILE_MONITOR_WATCH_MOUNTS: Watch for mount events. + * + * Flags used to set what a #GFileMonitor will watch for. + */ +typedef enum { + G_FILE_MONITOR_NONE = 0, + G_FILE_MONITOR_WATCH_MOUNTS = (1<<0) +} GFileMonitorFlags; + +/** + * GFile: + * + * A handle to an object implementing the #GFileIface interface. + * Generally stores a location within the file system. Handles do not + * necessarily represent files or directories that currently exist. + **/ +typedef struct _GFile GFile; /* Dummy typedef */ +typedef struct _GFileIface GFileIface; +typedef struct _GFileMonitor GFileMonitor; + +/** + * GMount: + * + * A handle to an object implementing the #GMountIface interface. + **/ +typedef struct _GMount GMount; /* Dummy typedef */ + +/** + * GFileProgressCallback: + * @current_num_bytes: the current number of bytes in the operation. + * @total_num_bytes: the total number of bytes in the operation. + * @user_data: user data passed to the callback. + * + * When doing file operations that may take a while, such as moving + * a file or copying a file, a progress callback is used to pass how + * far along that operation is to the application. + **/ +typedef void (*GFileProgressCallback) (goffset current_num_bytes, + goffset total_num_bytes, + gpointer user_data); + +/** + * GFileReadMoreCallback: + * @file_contents: the data as currently read. + * @file_size: the size of the data currently read. + * @callback_data: data passed to the callback. + * + * When loading the partial contents of a file with g_file_read_partial_contents(), + * it may become necessary to determine if any more data from the file should be loaded. + * A #GFileReadMoreCallback function facilitates this by returning %TRUE if more data + * should be read, or %FALSE otherwise. + * + * Returns: %TRUE if more data should be read back. %FALSE otherwise. + **/ +typedef gboolean (* GFileReadMoreCallback) (const char *file_contents, + goffset file_size, + gpointer callback_data); + +/** + * GFileIface: + * @g_iface: The parent interface. + * @dup: Duplicates a #GFile. + * @hash: Creates a hash of a #GFile. + * @equal: Checks equality of two given #GFile<!-- -->s. + * @is_native: Checks to see if a file is native to the system. + * @has_uri_scheme: Checks to see if a #GFile has a given URI scheme. + * @get_uri_scheme: Gets the URI scheme for a #GFile. + * @get_basename: Gets the basename for a given #GFile. + * @get_path: Gets the current path within a #GFile. + * @get_uri: Gets a URI for the path within a #GFile. + * @get_parse_name: Gets the parsed name for the #GFile. + * @get_parent: Gets the parent directory for the #GFile. + * @prefix_matches: Checks whether a #GFile contains a specified file. + * @get_relative_path: Gets the path for a #GFile relative to a given path. + * @resolve_relative_path: Resolves a relative path for a #GFile to an absolute path. + * @get_child_for_display_name: Gets the child #GFile for a given display name. + * @enumerate_children: Gets a #GFileEnumerator with the children of a #GFile. + * @enumerate_children_async: Asynchronously gets a #GFileEnumerator with the children of a #GFile. + * @enumerate_children_finish: Finishes asynchronously enumerating the children. + * @query_info: Gets the #GFileInfo for a #GFile. + * @query_info_async: Asynchronously gets the #GFileInfo for a #GFile. + * @query_info_finish: Finishes an asynchronous query info operation. + * @query_filesystem_info: Gets a #GFileInfo for the file system #GFile is on. + * @query_filesystem_info_async: Asynchronously gets a #GFileInfo for the file system #GFile is on. + * @query_filesystem_info_finish: Finishes asynchronously getting the file system info. + * @find_enclosing_mount: Gets a #GMount for the #GFile. + * @find_enclosing_mount_async: Asynchronously gets the #GMount for a #GFile. + * @find_enclosing_mount_finish: Finishes asynchronously getting the volume. + * @set_display_name: Sets the display name for a #GFile. + * @set_display_name_async: Asynchronously sets a #GFile's display name. + * @set_display_name_finish: Finishes asynchronously setting a #GFile's display name. + * @query_settable_attributes: Returns a list of #GFileAttribute<!-- -->s that can be set. + * @_query_settable_attributes_async: Asynchronously gets a list of #GFileAttribute<!-- -->s that can be set. + * @_query_settable_attributes_finish: Finishes asynchronously querying settable attributes. + * @query_writable_namespaces: Returns a list of #GFileAttribute namespaces that are writable. + * @_query_writable_namespaces_async: Asynchronously gets a list of #GFileAttribute namespaces that are writable. + * @_query_writable_namespaces_finish: Finishes asynchronously querying the writable namespaces. + * @set_attribute: Sets a #GFileAttribute. + * @set_attributes_from_info: Sets a #GFileAttribute with information from a #GFileInfo. + * @set_attributes_async: Asynchronously sets a file's attributes. + * @set_attributes_finish: Finishes setting a file's attributes asynchronously. + * @read_fn: Reads a file asynchronously. + * @read_async: Asynchronously reads a file. + * @read_finish: Finishes asynchronously reading a file. + * @append_to: Writes to the end of a file. + * @append_to_async: Asynchronously writes to the end of a file. + * @append_to_finish: Finishes an asynchronous file append operation. + * @create: Creates a new file. + * @create_async: Asynchronously creates a file. + * @create_finish: Finishes asynchronously creating a file. + * @replace: Replaces the contents of a file. + * @replace_async: Asynchronously replaces the contents of a file. + * @replace_finish: Finishes asynchronously replacing a file. + * @delete_file: Deletes a file. + * @_delete_file_async: Asynchronously deletes a file. + * @_delete_file_finish: Finishes an asynchronous delete. + * @trash: Sends a #GFile to the Trash location. + * @_trash_async: Asynchronously sends a #GFile to the Trash location. + * @_trash_finish: Finishes an asynchronous file trashing operation. + * @make_directory: Makes a directory. + * @_make_directory_async: Asynchronously makes a directory. + * @_make_directory_finish: Finishes making a directory asynchronously. + * @make_symbolic_link: Makes a symbolic link. + * @_make_symbolic_link_async: Asynchronously makes a symbolic link + * @_make_symbolic_link_finish: Finishes making a symbolic link asynchronously. + * @copy: Copies a file. + * @copy_async: Asynchronously copies a file. + * @copy_finish: Finishes an asynchronous copy operation. + * @move: Moves a file. + * @_move_async: Asynchronously moves a file. + * @_move_finish: Finishes an asynchronous move operation. + * @mount_mountable: Mounts a mountable object. + * @mount_mountable_finish: Finishes a mounting operation. + * @unmount_mountable: Unmounts a mountable object. + * @unmount_mountable_finish: Finishes an unmount operation. + * @eject_mountable: Ejects a mountable. + * @eject_mountable_finish: Finishes an eject operation. + * @mount_enclosing_volume: Mounts a specified location. + * @mount_enclosing_volume_finish: Finishes mounting a specified location. + * @monitor_dir: Creates a #GFileMonitor for the location. + * @monitor_file: Creates a #GFileMonitor for the location. + * + * An interface for writing VFS file handles. + **/ +struct _GFileIface +{ + GTypeInterface g_iface; + + /* Virtual Table */ + + GFile * (*dup) (GFile *file); + guint (*hash) (GFile *file); + gboolean (*equal) (GFile *file1, + GFile *file2); + gboolean (*is_native) (GFile *file); + gboolean (*has_uri_scheme) (GFile *file, + const char *uri_scheme); + char * (*get_uri_scheme) (GFile *file); + char * (*get_basename) (GFile *file); + char * (*get_path) (GFile *file); + char * (*get_uri) (GFile *file); + char * (*get_parse_name) (GFile *file); + GFile * (*get_parent) (GFile *file); + gboolean (*prefix_matches) (GFile *prefix, + GFile *file); + char * (*get_relative_path) (GFile *parent, + GFile *descendant); + GFile * (*resolve_relative_path) (GFile *file, + const char *relative_path); + GFile * (*get_child_for_display_name) (GFile *file, + const char *display_name, + GError **error); + + GFileEnumerator * (*enumerate_children) (GFile *file, + const char *attributes, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); + void (*enumerate_children_async) (GFile *file, + const char *attributes, + GFileQueryInfoFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFileEnumerator * (*enumerate_children_finish) (GFile *file, + GAsyncResult *res, + GError **error); + + GFileInfo * (*query_info) (GFile *file, + const char *attributes, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); + void (*query_info_async) (GFile *file, + const char *attributes, + GFileQueryInfoFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFileInfo * (*query_info_finish) (GFile *file, + GAsyncResult *res, + GError **error); + + GFileInfo * (*query_filesystem_info)(GFile *file, + const char *attributes, + GCancellable *cancellable, + GError **error); + void (*query_filesystem_info_async) (GFile *file, + const char *attributes, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFileInfo * (*query_filesystem_info_finish) (GFile *file, + GAsyncResult *res, + GError **error); + + GMount * (*find_enclosing_mount)(GFile *file, + GCancellable *cancellable, + GError **error); + void (*find_enclosing_mount_async)(GFile *file, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GMount * (*find_enclosing_mount_finish)(GFile *file, + GAsyncResult *res, + GError **error); + + GFile * (*set_display_name) (GFile *file, + const char *display_name, + GCancellable *cancellable, + GError **error); + void (*set_display_name_async) (GFile *file, + const char *display_name, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFile * (*set_display_name_finish) (GFile *file, + GAsyncResult *res, + GError **error); + + GFileAttributeInfoList * (*query_settable_attributes) (GFile *file, + GCancellable *cancellable, + GError **error); + void (*_query_settable_attributes_async) (void); + void (*_query_settable_attributes_finish) (void); + + GFileAttributeInfoList * (*query_writable_namespaces) (GFile *file, + GCancellable *cancellable, + GError **error); + void (*_query_writable_namespaces_async) (void); + void (*_query_writable_namespaces_finish) (void); + + gboolean (*set_attribute) (GFile *file, + const char *attribute, + GFileAttributeType type, + gpointer value_p, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); + gboolean (*set_attributes_from_info) (GFile *file, + GFileInfo *info, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); + void (*set_attributes_async) (GFile *file, + GFileInfo *info, + GFileQueryInfoFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*set_attributes_finish) (GFile *file, + GAsyncResult *result, + GFileInfo **info, + GError **error); + + GFileInputStream * (*read_fn) (GFile *file, + GCancellable *cancellable, + GError **error); + void (*read_async) (GFile *file, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFileInputStream * (*read_finish) (GFile *file, + GAsyncResult *res, + GError **error); + + GFileOutputStream * (*append_to) (GFile *file, + GFileCreateFlags flags, + GCancellable *cancellable, + GError **error); + void (*append_to_async) (GFile *file, + GFileCreateFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFileOutputStream * (*append_to_finish) (GFile *file, + GAsyncResult *res, + GError **error); + + GFileOutputStream * (*create) (GFile *file, + GFileCreateFlags flags, + GCancellable *cancellable, + GError **error); + void (*create_async) (GFile *file, + GFileCreateFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFileOutputStream * (*create_finish) (GFile *file, + GAsyncResult *res, + GError **error); + + GFileOutputStream * (*replace) (GFile *file, + const char *etag, + gboolean make_backup, + GFileCreateFlags flags, + GCancellable *cancellable, + GError **error); + void (*replace_async) (GFile *file, + const char *etag, + gboolean make_backup, + GFileCreateFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFileOutputStream * (*replace_finish) (GFile *file, + GAsyncResult *res, + GError **error); + + gboolean (*delete_file) (GFile *file, + GCancellable *cancellable, + GError **error); + void (*_delete_file_async) (void); + void (*_delete_file_finish) (void); + + gboolean (*trash) (GFile *file, + GCancellable *cancellable, + GError **error); + void (*_trash_async) (void); + void (*_trash_finish) (void); + + gboolean (*make_directory) (GFile *file, + GCancellable *cancellable, + GError **error); + void (*_make_directory_async) (void); + void (*_make_directory_finish) (void); + + gboolean (*make_symbolic_link) (GFile *file, + const char *symlink_value, + GCancellable *cancellable, + GError **error); + void (*_make_symbolic_link_async) (void); + void (*_make_symbolic_link_finish) (void); + + gboolean (*copy) (GFile *source, + GFile *destination, + GFileCopyFlags flags, + GCancellable *cancellable, + GFileProgressCallback progress_callback, + gpointer progress_callback_data, + GError **error); + void (*copy_async) (GFile *source, + GFile *destination, + GFileCopyFlags flags, + int io_priority, + GCancellable *cancellable, + GFileProgressCallback progress_callback, + gpointer progress_callback_data, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*copy_finish) (GFile *file, + GAsyncResult *res, + GError **error); + + gboolean (*move) (GFile *source, + GFile *destination, + GFileCopyFlags flags, + GCancellable *cancellable, + GFileProgressCallback progress_callback, + gpointer progress_callback_data, + GError **error); + + void (*_move_async) (void); + void (*_move_finish) (void); + + + void (*mount_mountable) (GFile *file, + GMountMountFlags flags, + GMountOperation *mount_operation, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFile * (*mount_mountable_finish) (GFile *file, + GAsyncResult *result, + GError **error); + void (*unmount_mountable) (GFile *file, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*unmount_mountable_finish) (GFile *file, + GAsyncResult *result, + GError **error); + void (*eject_mountable) (GFile *file, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*eject_mountable_finish) (GFile *file, + GAsyncResult *result, + GError **error); + + + void (*mount_enclosing_volume) (GFile *location, + GMountMountFlags flags, + GMountOperation *mount_operation, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*mount_enclosing_volume_finish) (GFile *location, + GAsyncResult *result, + GError **error); + + GFileMonitor* (*monitor_dir) (GFile *file, + GFileMonitorFlags flags, + GCancellable *cancellable, + GError **error); + + GFileMonitor* (*monitor_file) (GFile *file, + GFileMonitorFlags flags, + GCancellable *cancellable, + GError **error); + +}; + +GType g_file_get_type (void) G_GNUC_CONST; + +GFile * g_file_new_for_path (const char *path); +GFile * g_file_new_for_uri (const char *uri); +GFile * g_file_new_for_commandline_arg (const char *arg); +GFile * g_file_parse_name (const char *parse_name); +GFile * g_file_dup (GFile *file); +guint g_file_hash (gconstpointer file); +gboolean g_file_equal (GFile *file1, + GFile *file2); +char * g_file_get_basename (GFile *file); +char * g_file_get_path (GFile *file); +char * g_file_get_uri (GFile *file); +char * g_file_get_parse_name (GFile *file); +GFile * g_file_get_parent (GFile *file); +GFile * g_file_get_child (GFile *file, + const char *name); +GFile * g_file_get_child_for_display_name (GFile *file, + const char *display_name, + GError **error); +gboolean g_file_has_prefix (GFile *file, + GFile *prefix); +char * g_file_get_relative_path (GFile *parent, + GFile *descendant); +GFile * g_file_resolve_relative_path (GFile *file, + const char *relative_path); +gboolean g_file_is_native (GFile *file); +gboolean g_file_has_uri_scheme (GFile *file, + const char *uri_scheme); +char * g_file_get_uri_scheme (GFile *file); +GFileInputStream * g_file_read (GFile *file, + GCancellable *cancellable, + GError **error); +void g_file_read_async (GFile *file, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFileInputStream * g_file_read_finish (GFile *file, + GAsyncResult *res, + GError **error); +GFileOutputStream * g_file_append_to (GFile *file, + GFileCreateFlags flags, + GCancellable *cancellable, + GError **error); +GFileOutputStream * g_file_create (GFile *file, + GFileCreateFlags flags, + GCancellable *cancellable, + GError **error); +GFileOutputStream * g_file_replace (GFile *file, + const char *etag, + gboolean make_backup, + GFileCreateFlags flags, + GCancellable *cancellable, + GError **error); +void g_file_append_to_async (GFile *file, + GFileCreateFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFileOutputStream * g_file_append_to_finish (GFile *file, + GAsyncResult *res, + GError **error); +void g_file_create_async (GFile *file, + GFileCreateFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFileOutputStream * g_file_create_finish (GFile *file, + GAsyncResult *res, + GError **error); +void g_file_replace_async (GFile *file, + const char *etag, + gboolean make_backup, + GFileCreateFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFileOutputStream * g_file_replace_finish (GFile *file, + GAsyncResult *res, + GError **error); +gboolean g_file_query_exists (GFile *file, + GCancellable *cancellable); +GFileInfo * g_file_query_info (GFile *file, + const char *attributes, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); +void g_file_query_info_async (GFile *file, + const char *attributes, + GFileQueryInfoFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFileInfo * g_file_query_info_finish (GFile *file, + GAsyncResult *res, + GError **error); +GFileInfo * g_file_query_filesystem_info (GFile *file, + const char *attributes, + GCancellable *cancellable, + GError **error); +void g_file_query_filesystem_info_async (GFile *file, + const char *attributes, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFileInfo * g_file_query_filesystem_info_finish (GFile *file, + GAsyncResult *res, + GError **error); +GMount * g_file_find_enclosing_mount (GFile *file, + GCancellable *cancellable, + GError **error); +void g_file_find_enclosing_mount_async (GFile *file, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GMount * g_file_find_enclosing_mount_finish (GFile *file, + GAsyncResult *res, + GError **error); +GFileEnumerator * g_file_enumerate_children (GFile *file, + const char *attributes, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); +void g_file_enumerate_children_async (GFile *file, + const char *attributes, + GFileQueryInfoFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFileEnumerator * g_file_enumerate_children_finish (GFile *file, + GAsyncResult *res, + GError **error); +GFile * g_file_set_display_name (GFile *file, + const char *display_name, + GCancellable *cancellable, + GError **error); +void g_file_set_display_name_async (GFile *file, + const char *display_name, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFile * g_file_set_display_name_finish (GFile *file, + GAsyncResult *res, + GError **error); +gboolean g_file_delete (GFile *file, + GCancellable *cancellable, + GError **error); +gboolean g_file_trash (GFile *file, + GCancellable *cancellable, + GError **error); +gboolean g_file_copy (GFile *source, + GFile *destination, + GFileCopyFlags flags, + GCancellable *cancellable, + GFileProgressCallback progress_callback, + gpointer progress_callback_data, + GError **error); +void g_file_copy_async (GFile *source, + GFile *destination, + GFileCopyFlags flags, + int io_priority, + GCancellable *cancellable, + GFileProgressCallback progress_callback, + gpointer progress_callback_data, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_file_copy_finish (GFile *file, + GAsyncResult *res, + GError **error); +gboolean g_file_move (GFile *source, + GFile *destination, + GFileCopyFlags flags, + GCancellable *cancellable, + GFileProgressCallback progress_callback, + gpointer progress_callback_data, + GError **error); +gboolean g_file_make_directory (GFile *file, + GCancellable *cancellable, + GError **error); +gboolean g_file_make_symbolic_link (GFile *file, + const char *symlink_value, + GCancellable *cancellable, + GError **error); +GFileAttributeInfoList *g_file_query_settable_attributes (GFile *file, + GCancellable *cancellable, + GError **error); +GFileAttributeInfoList *g_file_query_writable_namespaces (GFile *file, + GCancellable *cancellable, + GError **error); +gboolean g_file_set_attribute (GFile *file, + const char *attribute, + GFileAttributeType type, + gpointer value_p, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); +gboolean g_file_set_attributes_from_info (GFile *file, + GFileInfo *info, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); +void g_file_set_attributes_async (GFile *file, + GFileInfo *info, + GFileQueryInfoFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_file_set_attributes_finish (GFile *file, + GAsyncResult *result, + GFileInfo **info, + GError **error); +gboolean g_file_set_attribute_string (GFile *file, + const char *attribute, + const char *value, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); +gboolean g_file_set_attribute_byte_string (GFile *file, + const char *attribute, + const char *value, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); +gboolean g_file_set_attribute_uint32 (GFile *file, + const char *attribute, + guint32 value, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); +gboolean g_file_set_attribute_int32 (GFile *file, + const char *attribute, + gint32 value, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); +gboolean g_file_set_attribute_uint64 (GFile *file, + const char *attribute, + guint64 value, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); +gboolean g_file_set_attribute_int64 (GFile *file, + const char *attribute, + gint64 value, + GFileQueryInfoFlags flags, + GCancellable *cancellable, + GError **error); +void g_file_mount_enclosing_volume (GFile *location, + GMountMountFlags flags, + GMountOperation *mount_operation, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_file_mount_enclosing_volume_finish (GFile *location, + GAsyncResult *result, + GError **error); +void g_file_mount_mountable (GFile *file, + GMountMountFlags flags, + GMountOperation *mount_operation, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFile * g_file_mount_mountable_finish (GFile *file, + GAsyncResult *result, + GError **error); +void g_file_unmount_mountable (GFile *file, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_file_unmount_mountable_finish (GFile *file, + GAsyncResult *result, + GError **error); +void g_file_eject_mountable (GFile *file, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_file_eject_mountable_finish (GFile *file, + GAsyncResult *result, + GError **error); + +gboolean g_file_copy_attributes (GFile *source, + GFile *destination, + GFileCopyFlags flags, + GCancellable *cancellable, + GError **error); + + +GFileMonitor* g_file_monitor_directory (GFile *file, + GFileMonitorFlags flags, + GCancellable *cancellable, + GError **error); +GFileMonitor* g_file_monitor_file (GFile *file, + GFileMonitorFlags flags, + GCancellable *cancellable, + GError **error); + + +/* Utilities */ + +GAppInfo *g_file_query_default_handler (GFile *file, + GCancellable *cancellable, + GError **error); +gboolean g_file_load_contents (GFile *file, + GCancellable *cancellable, + char **contents, + gsize *length, + char **etag_out, + GError **error); +void g_file_load_contents_async (GFile *file, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_file_load_contents_finish (GFile *file, + GAsyncResult *res, + char **contents, + gsize *length, + char **etag_out, + GError **error); +void g_file_load_partial_contents_async (GFile *file, + GCancellable *cancellable, + GFileReadMoreCallback read_more_callback, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_file_load_partial_contents_finish (GFile *file, + GAsyncResult *res, + char **contents, + gsize *length, + char **etag_out, + GError **error); +gboolean g_file_replace_contents (GFile *file, + const char *contents, + gsize length, + const char *etag, + gboolean make_backup, + GFileCreateFlags flags, + char **new_etag, + GCancellable *cancellable, + GError **error); +void g_file_replace_contents_async (GFile *file, + const char *contents, + gsize length, + const char *etag, + gboolean make_backup, + GFileCreateFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_file_replace_contents_finish (GFile *file, + GAsyncResult *res, + char **new_etag, + GError **error); + +G_END_DECLS + +#endif /* __G_FILE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileattribute.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileattribute.h new file mode 100644 index 00000000..758fe9b6 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileattribute.h @@ -0,0 +1,129 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILE_ATTRIBUTE_H__ +#define __G_FILE_ATTRIBUTE_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +/** + * GFileAttributeType: + * @G_FILE_ATTRIBUTE_TYPE_INVALID: indicates an invalid or uninitalized type. + * @G_FILE_ATTRIBUTE_TYPE_STRING: a null terminated UTF8 string. + * @G_FILE_ATTRIBUTE_TYPE_BYTE_STRING: a zero terminated string of non-zero bytes. + * @G_FILE_ATTRIBUTE_TYPE_BOOLEAN: a boolean value. + * @G_FILE_ATTRIBUTE_TYPE_UINT32: an unsigned 4-byte/32-bit integer. + * @G_FILE_ATTRIBUTE_TYPE_INT32: a signed 4-byte/32-bit integer. + * @G_FILE_ATTRIBUTE_TYPE_UINT64: an unsigned 8-byte/64-bit integer. + * @G_FILE_ATTRIBUTE_TYPE_INT64: a signed 8-byte/64-bit integer. + * @G_FILE_ATTRIBUTE_TYPE_OBJECT: a #GObject. + * + * The data types for file attributes. + **/ +typedef enum { + G_FILE_ATTRIBUTE_TYPE_INVALID = 0, + G_FILE_ATTRIBUTE_TYPE_STRING, + G_FILE_ATTRIBUTE_TYPE_BYTE_STRING, /* zero terminated string of non-zero bytes */ + G_FILE_ATTRIBUTE_TYPE_BOOLEAN, + G_FILE_ATTRIBUTE_TYPE_UINT32, + G_FILE_ATTRIBUTE_TYPE_INT32, + G_FILE_ATTRIBUTE_TYPE_UINT64, + G_FILE_ATTRIBUTE_TYPE_INT64, + G_FILE_ATTRIBUTE_TYPE_OBJECT +} GFileAttributeType; + +/** + * GFileAttributeInfoFlags: + * @G_FILE_ATTRIBUTE_INFO_NONE: no flags set. + * @G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE: copy the attribute values when the file is copied. + * @G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED: copy the attribute values when the file is moved. + * + * Flags specifying the behaviour of an attribute. + **/ +typedef enum { + G_FILE_ATTRIBUTE_INFO_NONE = 0, + G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE = 1 << 0, + G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED = 1 << 1 +} GFileAttributeInfoFlags; + +/** + * GFileAttributeStatus: + * @G_FILE_ATTRIBUTE_STATUS_UNSET: Attribute value is unset (empty). + * @G_FILE_ATTRIBUTE_STATUS_SET: Attribute value is set. + * @G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING: Indicates an error in setting the value. + * + * Used by g_file_set_attributes_from_info() when setting file attributes. + **/ +typedef enum { + G_FILE_ATTRIBUTE_STATUS_UNSET = 0, + G_FILE_ATTRIBUTE_STATUS_SET, + G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING +} GFileAttributeStatus; + +/** + * GFileAttributeInfo: + * @name: the name of the attribute. + * @type: the #GFileAttributeType type of the attribute. + * @flags: a set of #GFileAttributeInfoFlags. + * + * Information about a specific attribute. + **/ +typedef struct { + char *name; + GFileAttributeType type; + GFileAttributeInfoFlags flags; +} GFileAttributeInfo; + +/** + * GFileAttributeInfoList: + * @infos: an array of #GFileAttributeInfo<!-- -->s. + * @n_infos: the number of values in the array. + * + * Acts as a lightweight registry for possible valid file attributes. + * The registry stores Key-Value pair formats as #GFileAttributeInfo<!-- -->s. + **/ +typedef struct { + GFileAttributeInfo *infos; + int n_infos; +} GFileAttributeInfoList; + +GFileAttributeInfoList * g_file_attribute_info_list_new (void); +GFileAttributeInfoList * g_file_attribute_info_list_ref (GFileAttributeInfoList *list); +void g_file_attribute_info_list_unref (GFileAttributeInfoList *list); +GFileAttributeInfoList * g_file_attribute_info_list_dup (GFileAttributeInfoList *list); +const GFileAttributeInfo *g_file_attribute_info_list_lookup (GFileAttributeInfoList *list, + const char *name); +void g_file_attribute_info_list_add (GFileAttributeInfoList *list, + const char *name, + GFileAttributeType type, + GFileAttributeInfoFlags flags); + +G_END_DECLS + + +#endif /* __G_FILE_INFO_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileenumerator.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileenumerator.h new file mode 100644 index 00000000..11d04fc4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileenumerator.h @@ -0,0 +1,139 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILE_ENUMERATOR_H__ +#define __G_FILE_ENUMERATOR_H__ + +#include <glib-object.h> +#include <gio/gioerror.h> +#include <gio/gcancellable.h> +#include <gio/gfileinfo.h> +#include <gio/gasyncresult.h> + +G_BEGIN_DECLS + + +#define G_TYPE_FILE_ENUMERATOR (g_file_enumerator_get_type ()) +#define G_FILE_ENUMERATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILE_ENUMERATOR, GFileEnumerator)) +#define G_FILE_ENUMERATOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILE_ENUMERATOR, GFileEnumeratorClass)) +#define G_IS_FILE_ENUMERATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILE_ENUMERATOR)) +#define G_IS_FILE_ENUMERATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILE_ENUMERATOR)) +#define G_FILE_ENUMERATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILE_ENUMERATOR, GFileEnumeratorClass)) + +/** + * GFileEnumerator: + * @parent_instance: The parent class. + * + * A per matched file iterator. + **/ +typedef struct _GFileEnumerator GFileEnumerator; +typedef struct _GFileEnumeratorClass GFileEnumeratorClass; +typedef struct _GFileEnumeratorPrivate GFileEnumeratorPrivate; + + +struct _GFileEnumerator +{ + GObject parent_instance; + + /*< private >*/ + GFileEnumeratorPrivate *priv; +}; + +struct _GFileEnumeratorClass +{ + GObjectClass parent_class; + + /* Virtual Table */ + + GFileInfo *(*next_file) (GFileEnumerator *enumerator, + GCancellable *cancellable, + GError **error); + gboolean (*close_fn) (GFileEnumerator *enumerator, + GCancellable *cancellable, + GError **error); + + void (*next_files_async) (GFileEnumerator *enumerator, + int num_files, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GList * (*next_files_finish) (GFileEnumerator *enumerator, + GAsyncResult *res, + GError **error); + void (*close_async) (GFileEnumerator *enumerator, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*close_finish) (GFileEnumerator *enumerator, + GAsyncResult *res, + GError **error); + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); + void (*_g_reserved6) (void); + void (*_g_reserved7) (void); +}; + +GType g_file_enumerator_get_type (void) G_GNUC_CONST; + +GFileInfo *g_file_enumerator_next_file (GFileEnumerator *enumerator, + GCancellable *cancellable, + GError **error); +gboolean g_file_enumerator_close (GFileEnumerator *enumerator, + GCancellable *cancellable, + GError **error); +void g_file_enumerator_next_files_async (GFileEnumerator *enumerator, + int num_files, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GList * g_file_enumerator_next_files_finish (GFileEnumerator *enumerator, + GAsyncResult *result, + GError **error); +void g_file_enumerator_close_async (GFileEnumerator *enumerator, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_file_enumerator_close_finish (GFileEnumerator *enumerator, + GAsyncResult *result, + GError **error); +gboolean g_file_enumerator_is_closed (GFileEnumerator *enumerator); +gboolean g_file_enumerator_has_pending (GFileEnumerator *enumerator); +void g_file_enumerator_set_pending (GFileEnumerator *enumerator, + gboolean pending); + +G_END_DECLS + +#endif /* __G_FILE_ENUMERATOR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileicon.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileicon.h new file mode 100644 index 00000000..18d73d0d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileicon.h @@ -0,0 +1,58 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILE_ICON_H__ +#define __G_FILE_ICON_H__ + +#include <gio/gloadableicon.h> +#include <gio/gfile.h> + +G_BEGIN_DECLS + +#define G_TYPE_FILE_ICON (g_file_icon_get_type ()) +#define G_FILE_ICON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILE_ICON, GFileIcon)) +#define G_FILE_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILE_ICON, GFileIconClass)) +#define G_IS_FILE_ICON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILE_ICON)) +#define G_IS_FILE_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILE_ICON)) +#define G_FILE_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILE_ICON, GFileIconClass)) + +/** + * GFileIcon: + * + * Gets an icon for a #GFile. Implements #GLoadableIcon. + **/ +typedef struct _GFileIcon GFileIcon; +typedef struct _GFileIconClass GFileIconClass; + +GType g_file_icon_get_type (void) G_GNUC_CONST; + +GIcon *g_file_icon_new (GFile *file); + +GFile *g_file_icon_get_file (GFileIcon *icon); + +G_END_DECLS + +#endif /* __G_FILE_ICON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileinfo.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileinfo.h new file mode 100644 index 00000000..93d74a35 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileinfo.h @@ -0,0 +1,868 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILE_INFO_H__ +#define __G_FILE_INFO_H__ + +#include <glib-object.h> +#include <glib/gfileutils.h> +#include <gio/gfileattribute.h> +#include <gio/gicon.h> + +G_BEGIN_DECLS + +#define G_TYPE_FILE_INFO (g_file_info_get_type ()) +#define G_FILE_INFO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILE_INFO, GFileInfo)) +#define G_FILE_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILE_INFO, GFileInfoClass)) +#define G_IS_FILE_INFO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILE_INFO)) +#define G_IS_FILE_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILE_INFO)) +#define G_FILE_INFO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILE_INFO, GFileInfoClass)) + +/** + * GFileInfo: + * + * Stores information about a file system object referenced by a #GFile. + **/ +typedef struct _GFileInfo GFileInfo; +typedef struct _GFileInfoClass GFileInfoClass; + +/** + * GFileAttributeMatcher: + * + * Determines if a string matches a file attribute. + **/ +typedef struct _GFileAttributeMatcher GFileAttributeMatcher; + +/** + * GFileType: + * @G_FILE_TYPE_UNKNOWN: File's type is unknown. + * @G_FILE_TYPE_REGULAR: File handle represents a regular file. + * @G_FILE_TYPE_DIRECTORY: File handle represents a directory. + * @G_FILE_TYPE_SYMBOLIC_LINK: File handle represents a symbolic link + * (Unix systems). + * @G_FILE_TYPE_SPECIAL: File is a "special" file, such as a socket, fifo, + * block device, or character device. + * @G_FILE_TYPE_SHORTCUT: File is a shortcut (Windows systems). + * @G_FILE_TYPE_MOUNTABLE: File is a mountable location. + * + * Indicates the file's on-disk type. + **/ +typedef enum { + G_FILE_TYPE_UNKNOWN = 0, + G_FILE_TYPE_REGULAR, + G_FILE_TYPE_DIRECTORY, + G_FILE_TYPE_SYMBOLIC_LINK, + G_FILE_TYPE_SPECIAL, /* socket, fifo, blockdev, chardev */ + G_FILE_TYPE_SHORTCUT, + G_FILE_TYPE_MOUNTABLE +} GFileType; + +/** + * GFilesystemPreviewType: + * @G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS: Only preview files if user has explicitly requested it. + * @G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL: Preview files if user has requested preview of "local" files. + * @G_FILESYSTEM_PREVIEW_TYPE_NEVER: Never preview files. + * + * Indicates a hint from the file system whether files should be + * previewed in a file manager. Returned as the value of the key + * #G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW. + **/ +typedef enum { + G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS = 0, + G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL, + G_FILESYSTEM_PREVIEW_TYPE_NEVER +} GFilesystemPreviewType; + +/* Common Attributes: */ +/** + * G_FILE_ATTRIBUTE_STANDARD_TYPE: + * + * A key in the "standard" namespace for storing file types. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. + * The value for this key should contain a #GFileType. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_TYPE "standard::type" /* uint32 (GFileType) */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN: + * + * A key in the "standard" namespace for checking if a file is hidden. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN "standard::is-hidden" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP: + * + * A key in the "standard" namespace for checking if a file is a backup file. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP "standard::is-backup" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK: + * + * A key in the "standard" namespace for checking if the file is a symlink. + * Typically the actual type is something else, if we followed the symlink + * to get the type. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK "standard::is-symlink" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL: + * + * A key in the "standard" namespace for checking if a file is virtual. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL "standard::is-virtual" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_NAME: + * + * A key in the "standard" namespace for getting the name of the file. + * The name is the on-disk filename which may not be in any known encoding, + * and can thus not be generally displayed as is. + * Use #G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME if you need to display the + * name in a user interface. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_NAME "standard::name" /* byte string */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME: + * + * A key in the "standard" namespace for getting the display name of the file. + * A display name is guaranteed to be in UTF8 and can thus be displayed in + * the UI. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME "standard::display-name" /* string */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME: + * + * A key in the "standard" namespace for edit name of the file. + * An edit name is similar to the display name, but it is meant to be + * used when you want to rename the file in the UI. The display name + * might contain information you don't want in the new filename (such as + * "(invalid unicode)" if the filename was in an invalid encoding). + * + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME "standard::edit-name" /* string */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_COPY_NAME: + * + * A key in the "standard" namespace for getting the copy name of the file. + * The copy name is an optional version of the name. If availible its always + * in UTF8, and corresponds directly to the original filename (only transcoded to + * UTF8). This is useful if you want to copy the file to another filesystem that + * might have a different encoding. If the filename is not a valid string in the + * encoding selected for the filesystem it is in then the copy name will not be set. + * + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_COPY_NAME "standard::copy-name" /* string */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION: + * + * A key in the "standard" namespace for getting the description of the file. + * The description is a utf8 string that describes the file, generally containing + * the filename, but can also contain furter information. Example descriptions + * could be "filename (on hostname)" for a remote file or "filename (in trash)" + * for a file in the trash. This is useful for instance as the window title + * when displaying a directory or for a bookmarks menu. + * + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION "standard::description" /* string */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_ICON: + * + * A key in the "standard" namespace for getting the icon for the file. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT. + * The value for this key should contain a #GIcon. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_ICON "standard::icon" /* object (GIcon) */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE: + * + * A key in the "standard" namespace for getting the content type of the file. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + * The value for this key should contain a valid content type. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "standard::content-type" /* string */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE: + * + * A key in the "standard" namespace for getting the fast content type. + * The fast content type isn't as reliable as the regular one, as it + * only uses the filename to guess it, but it is faster to calculate than the + * regular content type. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + * + **/ +#define G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE "standard::fast-content-type" /* string */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_SIZE: + * + * A key in the "standard" namespace for getting the file's size (in bytes). + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_SIZE "standard::size" /* uint64 */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET: + * + * A key in the "standard" namespace for getting the symlink target, if the file + * is a symlink. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET "standard::symlink-target" /* byte string */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_TARGET_URI: + * + * A key in the "standard" namespace for getting the target URI for the file, in + * the case of %G_FILE_TYPE_SHORTCUT or %G_FILE_TYPE_MOUNTABLE files. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_TARGET_URI "standard::target-uri" /* string */ + +/** + * G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER: + * + * A key in the "standard" namespace for setting the sort order of a file. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_INT32. + * An example use would be in file managers, which would use this key + * to set the order files are displayed. Files with smaller sort order + * should be sorted first, and files without sort order as if sort order + * was zero. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER "standard::sort-order" /* int32 */ + +/* Entity tags, used to avoid missing updates on save */ + +/** + * G_FILE_ATTRIBUTE_ETAG_VALUE: + * + * A key in the "etag" namespace for getting the value of the file's + * entity tag. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_ETAG_VALUE "etag::value" /* string */ + +/* File identifier, for e.g. avoiding loops when doing recursive + * directory scanning + */ + +/** + * G_FILE_ATTRIBUTE_ID_FILE: + * + * A key in the "id" namespace for getting a file identifier. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + * An example use would be during listing files, to avoid recursive + * directory scanning. + **/ +#define G_FILE_ATTRIBUTE_ID_FILE "id::file" /* string */ + +/** + * G_FILE_ATTRIBUTE_ID_FILESYSTEM: + * + * A key in the "id" namespace for getting the file system identifier. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + * An example use would be during drag and drop to see if the source + * and target are on the same filesystem (default to move) or not (default + * to copy). + **/ +#define G_FILE_ATTRIBUTE_ID_FILESYSTEM "id::filesystem" /* string */ + +/* Calculated Access Rights for current user */ + +/** + * G_FILE_ATTRIBUTE_ACCESS_CAN_READ: + * + * A key in the "access" namespace for getting read privileges. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + * This attribute will be %TRUE if the user is able to read the file. + **/ +#define G_FILE_ATTRIBUTE_ACCESS_CAN_READ "access::can-read" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE: + * + * A key in the "access" namespace for getting write privileges. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + * This attribute will be %TRUE if the user is able to write to the file. + **/ +#define G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE "access::can-write" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE: + * + * A key in the "access" namespace for getting execution privileges. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + * This attribute will be %TRUE if the user is able to execute the file. + **/ +#define G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE "access::can-execute" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE: + * + * A key in the "access" namespace for checking deletion privileges. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + * This attribute will be %TRUE if the user is able to delete the file. + **/ +#define G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE "access::can-delete" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH: + * + * A key in the "access" namespace for checking trashing privileges. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + * This attribute will be %TRUE if the user is able to move the file to + * the trash. + **/ +#define G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH "access::can-trash" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME: + * + * A key in the "access" namespace for checking renaming privileges. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + * This attribute will be %TRUE if the user is able to rename the file. + **/ +#define G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME "access::can-rename" /* boolean */ + +/* TODO: Should we have special version for directories? can_enumerate, etc */ + +/* Mountable attributes */ + +/** + * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT: + * + * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is mountable. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT "mountable::can-mount" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT: + * + * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) is unmountable. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT "mountable::can-unmount" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT: + * + * A key in the "mountable" namespace for checking if a file (of type G_FILE_TYPE_MOUNTABLE) can be ejected. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT "mountable::can-eject" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE: + * + * A key in the "mountable" namespace for getting the unix device. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE "mountable::unix-device" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI: + * + * A key in the "mountable" namespace for getting the HAL UDI for the mountable + * file. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI "mountable::hal-udi" /* string */ + +/* Time attributes */ + +/** + * G_FILE_ATTRIBUTE_TIME_MODIFIED: + * + * A key in the "time" namespace for getting the time the file was last + * modified. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_UINT64, and contains the UNIX time since the + * file was modified. + **/ +#define G_FILE_ATTRIBUTE_TIME_MODIFIED "time::modified" /* uint64 */ + +/** + * G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC: + * + * A key in the "time" namespace for getting the miliseconds of the time + * the file was last modified. This should be used in conjunction with + * #G_FILE_ATTRIBUTE_TIME_MODIFIED. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC "time::modified-usec" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_TIME_ACCESS: + * + * A key in the "time" namespace for getting the time the file was last + * accessed. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_UINT64, and contains the UNIX time since the + * file was last accessed. + **/ +#define G_FILE_ATTRIBUTE_TIME_ACCESS "time::access" /* uint64 */ + +/** + * G_FILE_ATTRIBUTE_TIME_ACCESS_USEC: + * + * A key in the "time" namespace for getting the microseconds of the time + * the file was last accessed. This should be used in conjunction with + * #G_FILE_ATTRIBUTE_TIME_ACCESS. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_TIME_ACCESS_USEC "time::access-usec" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_TIME_CHANGED: + * + * A key in the "time" namespace for getting the time the file was last + * changed. Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64, + * and contains the UNIX time since the file was last changed. + * + * This corresponds to the traditional UNIX ctime. + **/ +#define G_FILE_ATTRIBUTE_TIME_CHANGED "time::changed" /* uint64 */ + +/** + * G_FILE_ATTRIBUTE_TIME_CHANGED_USEC: + * + * A key in the "time" namespace for getting the microseconds of the time + * the file was last changed. This should be used in conjunction with + * #G_FILE_ATTRIBUTE_TIME_CHANGED. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_TIME_CHANGED_USEC "time::changed-usec" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_TIME_CREATED: + * + * A key in the "time" namespace for getting the time the file was created. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64, + * and contains the UNIX time since the file was created. + * + * This corresponds to the NTFS ctime. + **/ +#define G_FILE_ATTRIBUTE_TIME_CREATED "time::created" /* uint64 */ + +/** + * G_FILE_ATTRIBUTE_TIME_CREATED_USEC: + * + * A key in the "time" namespace for getting the microseconds of the time + * the file was created. This should be used in conjunction with + * #G_FILE_ATTRIBUTE_TIME_CREATED. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_TIME_CREATED_USEC "time::created-usec" /* uint32 */ + +/* Unix specific attributes */ + +/** + * G_FILE_ATTRIBUTE_UNIX_DEVICE: + * + * A key in the "unix" namespace for getting the device id of the device the + * file is located on (see stat() documentation). This attribute is only + * available for UNIX file systems. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_UNIX_DEVICE "unix::device" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_UNIX_INODE: + * + * A key in the "unix" namespace for getting the inode of the file. + * This attribute is only available for UNIX file systems. Corresponding + * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64. + **/ +#define G_FILE_ATTRIBUTE_UNIX_INODE "unix::inode" /* uint64 */ + +/** + * G_FILE_ATTRIBUTE_UNIX_MODE: + * + * A key in the "unix" namespace for getting the mode of the file + * (e.g. whether the file is a regular file, symlink, etc). See lstat() + * documentation. This attribute is only available for UNIX file systems. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_UNIX_MODE "unix::mode" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_UNIX_NLINK: + * + * A key in the "unix" namespace for getting the number of hard links + * for a file. See lstat() documentation. This attribute is only available + * for UNIX file systems. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_UNIX_NLINK "unix::nlink" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_UNIX_UID: + * + * A key in the "unix" namespace for getting the user ID for the file. + * This attribute is only available for UNIX file systems. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_UNIX_UID "unix::uid" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_UNIX_GID: + * + * A key in the "unix" namespace for getting the group ID for the file. + * This attribute is only available for UNIX file systems. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_UNIX_GID "unix::gid" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_UNIX_RDEV: + * + * A key in the "unix" namespace for getting the device ID for the file + * (if it is a special file). See lstat() documentation. This attribute + * is only available for UNIX file systems. Corresponding #GFileAttributeType + * is %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_UNIX_RDEV "unix::rdev" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE: + * + * A key in the "unix" namespace for getting the block size for the file + * system. This attribute is only available for UNIX file systems. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE "unix::block-size" /* uint32 */ + +/** + * G_FILE_ATTRIBUTE_UNIX_BLOCKS: + * + * A key in the "unix" namespace for getting the number of blocks allocated + * for the file. This attribute is only available for UNIX file systems. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64. + **/ +#define G_FILE_ATTRIBUTE_UNIX_BLOCKS "unix::blocks" /* uint64 */ + +/** + * G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT: + * + * A key in the "unix" namespace for checking if the file represents a + * UNIX mount point. This attribute is %TRUE if the file is a UNIX mount + * point. This attribute is only available for UNIX file systems. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT "unix::is-mountpoint" /* boolean */ + +/* DOS specific attributes */ + +/** + * G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE: + * + * A key in the "dos" namespace for checking if the file's archive flag + * is set. This attribute is %TRUE if the archive flag is set. This attribute + * is only available for DOS file systems. Corresponding #GFileAttributeType + * is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE "dos::is-archive" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_DOS_IS_SYSTEM: + * + * A key in the "dos" namespace for checking if the file's backup flag + * is set. This attribute is %TRUE if the backup flag is set. This attribute + * is only available for DOS file systems. Corresponding #GFileAttributeType + * is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_DOS_IS_SYSTEM "dos::is-system" /* boolean */ + +/* Owner attributes */ + +/** + * G_FILE_ATTRIBUTE_OWNER_USER: + * + * A key in the "owner" namespace for getting the user name of the + * file's owner. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_OWNER_USER "owner::user" /* string */ + +/** + * G_FILE_ATTRIBUTE_OWNER_USER_REAL: + * + * A key in the "owner" namespace for getting the real name of the + * user that owns the file. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_OWNER_USER_REAL "owner::user-real" /* string */ + +/** + * G_FILE_ATTRIBUTE_OWNER_GROUP: + * + * A key in the "owner" namespace for getting the file owner's group. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_OWNER_GROUP "owner::group" /* string */ + +/* Thumbnails */ + +/** + * G_FILE_ATTRIBUTE_THUMBNAIL_PATH: + * + * A key in the "thumbnail" namespace for getting the path to the thumbnail + * image. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING. + **/ +#define G_FILE_ATTRIBUTE_THUMBNAIL_PATH "thumbnail::path" /* bytestring */ +/** + * G_FILE_ATTRIBUTE_THUMBNAILING_FAILED: + * + * A key in the "thumbnail" namespace for checking if thumbnailing failed. + * This attribute is %TRUE if thumbnailing failed. Corresponding + * #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_THUMBNAILING_FAILED "thumbnail::failed" /* boolean */ + +/* File system info (for g_file_get_filesystem_info) */ + +/** + * G_FILE_ATTRIBUTE_FILESYSTEM_SIZE: + * + * A key in the "filesystem" namespace for getting the total size (in bytes) of the file system, + * used in g_file_query_filesystem_info(). Corresponding #GFileAttributeType + * is %G_FILE_ATTRIBUTE_TYPE_UINT64. + **/ +#define G_FILE_ATTRIBUTE_FILESYSTEM_SIZE "filesystem::size" /* uint64 */ + +/** + * G_FILE_ATTRIBUTE_FILESYSTEM_FREE: + * + * A key in the "filesystem" namespace for getting the number of bytes of free space left on the + * file system. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_UINT64. + **/ +#define G_FILE_ATTRIBUTE_FILESYSTEM_FREE "filesystem::free" /* uint64 */ + +/** + * G_FILE_ATTRIBUTE_FILESYSTEM_TYPE: + * + * A key in the "filesystem" namespace for getting the file system's type. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_FILESYSTEM_TYPE "filesystem::type" /* string */ + +/** + * G_FILE_ATTRIBUTE_FILESYSTEM_READONLY: + * + * A key in the "filesystem" namespace for checking if the file system + * is read only. Is set to %TRUE if the file system is read only. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN. + **/ +#define G_FILE_ATTRIBUTE_FILESYSTEM_READONLY "filesystem::readonly" /* boolean */ + +/** + * G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW: + * + * A key in the "filesystem" namespace for hinting a file manager + * application whether it should preview (e.g. thumbnail) files on the + * file system. The value for this key contain a + * #GFilesystemPreviewType. + **/ +#define G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW "filesystem::use-preview" /* uint32 (GFilesystemPreviewType) */ + +/** + * G_FILE_ATTRIBUTE_GVFS_BACKEND: + * + * A key in the "gvfs" namespace that gets the name of the current + * GVFS backend in use. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_GVFS_BACKEND "gvfs::backend" /* string */ + +/** + * G_FILE_ATTRIBUTE_SELINUX_CONTEXT: + * + * A key in the "selinux" namespace for getting the file's SELinux + * context. Corresponding #GFileAttributeType is + * %G_FILE_ATTRIBUTE_TYPE_STRING. Note that this attribute is only + * available if GLib has been built with SELinux support. + **/ +#define G_FILE_ATTRIBUTE_SELINUX_CONTEXT "selinux::context" /* string */ + +/** + * G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT: + * + * A key in the "trash" namespace. When requested against + * "trash:///" returns the number of (toplevel) items in the trash folder. + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32. + **/ +#define G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT "trash::item-count" /* uint32 */ + +GType g_file_info_get_type (void) G_GNUC_CONST; + +GFileInfo * g_file_info_new (void); +GFileInfo * g_file_info_dup (GFileInfo *other); +void g_file_info_copy_into (GFileInfo *src_info, + GFileInfo *dest_info); +gboolean g_file_info_has_attribute (GFileInfo *info, + const char *attribute); +char ** g_file_info_list_attributes (GFileInfo *info, + const char *name_space); +gboolean g_file_info_get_attribute_data (GFileInfo *info, + const char *attribute, + GFileAttributeType *type, + gpointer *value_pp, + GFileAttributeStatus *status); +GFileAttributeType g_file_info_get_attribute_type (GFileInfo *info, + const char *attribute); +void g_file_info_remove_attribute (GFileInfo *info, + const char *attribute); +GFileAttributeStatus g_file_info_get_attribute_status (GFileInfo *info, + const char *attribute); +char * g_file_info_get_attribute_as_string (GFileInfo *info, + const char *attribute); +const char * g_file_info_get_attribute_string (GFileInfo *info, + const char *attribute); +const char * g_file_info_get_attribute_byte_string (GFileInfo *info, + const char *attribute); +gboolean g_file_info_get_attribute_boolean (GFileInfo *info, + const char *attribute); +guint32 g_file_info_get_attribute_uint32 (GFileInfo *info, + const char *attribute); +gint32 g_file_info_get_attribute_int32 (GFileInfo *info, + const char *attribute); +guint64 g_file_info_get_attribute_uint64 (GFileInfo *info, + const char *attribute); +gint64 g_file_info_get_attribute_int64 (GFileInfo *info, + const char *attribute); +GObject * g_file_info_get_attribute_object (GFileInfo *info, + const char *attribute); + +void g_file_info_set_attribute (GFileInfo *info, + const char *attribute, + GFileAttributeType type, + gpointer value_p); +void g_file_info_set_attribute_string (GFileInfo *info, + const char *attribute, + const char *attr_value); +void g_file_info_set_attribute_byte_string (GFileInfo *info, + const char *attribute, + const char *attr_value); +void g_file_info_set_attribute_boolean (GFileInfo *info, + const char *attribute, + gboolean attr_value); +void g_file_info_set_attribute_uint32 (GFileInfo *info, + const char *attribute, + guint32 attr_value); +void g_file_info_set_attribute_int32 (GFileInfo *info, + const char *attribute, + gint32 attr_value); +void g_file_info_set_attribute_uint64 (GFileInfo *info, + const char *attribute, + guint64 attr_value); +void g_file_info_set_attribute_int64 (GFileInfo *info, + const char *attribute, + gint64 attr_value); +void g_file_info_set_attribute_object (GFileInfo *info, + const char *attribute, + GObject *attr_value); + +void g_file_info_clear_status (GFileInfo *info); + +/* Helper getters: */ +GFileType g_file_info_get_file_type (GFileInfo *info); +gboolean g_file_info_get_is_hidden (GFileInfo *info); +gboolean g_file_info_get_is_backup (GFileInfo *info); +gboolean g_file_info_get_is_symlink (GFileInfo *info); +const char * g_file_info_get_name (GFileInfo *info); +const char * g_file_info_get_display_name (GFileInfo *info); +const char * g_file_info_get_edit_name (GFileInfo *info); +GIcon * g_file_info_get_icon (GFileInfo *info); +const char * g_file_info_get_content_type (GFileInfo *info); +goffset g_file_info_get_size (GFileInfo *info); +void g_file_info_get_modification_time (GFileInfo *info, + GTimeVal *result); +const char * g_file_info_get_symlink_target (GFileInfo *info); +const char * g_file_info_get_etag (GFileInfo *info); +gint32 g_file_info_get_sort_order (GFileInfo *info); + +void g_file_info_set_attribute_mask (GFileInfo *info, + GFileAttributeMatcher *mask); +void g_file_info_unset_attribute_mask (GFileInfo *info); + +/* Helper setters: */ +void g_file_info_set_file_type (GFileInfo *info, + GFileType type); +void g_file_info_set_is_hidden (GFileInfo *info, + gboolean is_hidden); +void g_file_info_set_is_symlink (GFileInfo *info, + gboolean is_symlink); +void g_file_info_set_name (GFileInfo *info, + const char *name); +void g_file_info_set_display_name (GFileInfo *info, + const char *display_name); +void g_file_info_set_edit_name (GFileInfo *info, + const char *edit_name); +void g_file_info_set_icon (GFileInfo *info, + GIcon *icon); +void g_file_info_set_content_type (GFileInfo *info, + const char *content_type); +void g_file_info_set_size (GFileInfo *info, + goffset size); +void g_file_info_set_modification_time (GFileInfo *info, + GTimeVal *mtime); +void g_file_info_set_symlink_target (GFileInfo *info, + const char *symlink_target); +void g_file_info_set_sort_order (GFileInfo *info, + gint32 sort_order); + +GFileAttributeMatcher *g_file_attribute_matcher_new (const char *attributes); +GFileAttributeMatcher *g_file_attribute_matcher_ref (GFileAttributeMatcher *matcher); +void g_file_attribute_matcher_unref (GFileAttributeMatcher *matcher); +gboolean g_file_attribute_matcher_matches (GFileAttributeMatcher *matcher, + const char *attribute); +gboolean g_file_attribute_matcher_matches_only (GFileAttributeMatcher *matcher, + const char *attribute); +gboolean g_file_attribute_matcher_enumerate_namespace (GFileAttributeMatcher *matcher, + const char *ns); +const char * g_file_attribute_matcher_enumerate_next (GFileAttributeMatcher *matcher); + +G_END_DECLS + + +#endif /* __G_FILE_INFO_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileinputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileinputstream.h new file mode 100644 index 00000000..1abc46eb --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileinputstream.h @@ -0,0 +1,114 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILE_INPUT_STREAM_H__ +#define __G_FILE_INPUT_STREAM_H__ + +#include <gio/ginputstream.h> +#include <gio/gfileinfo.h> + +G_BEGIN_DECLS + +#define G_TYPE_FILE_INPUT_STREAM (g_file_input_stream_get_type ()) +#define G_FILE_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILE_INPUT_STREAM, GFileInputStream)) +#define G_FILE_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILE_INPUT_STREAM, GFileInputStreamClass)) +#define G_IS_FILE_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILE_INPUT_STREAM)) +#define G_IS_FILE_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILE_INPUT_STREAM)) +#define G_FILE_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILE_INPUT_STREAM, GFileInputStreamClass)) + +/** + * GFileInputStream: + * + * A subclass of GInputStream for opened files. This adds + * a few file-specific operations and seeking. + * + * #GFileInputStream implements #GSeekable. + **/ +typedef struct _GFileInputStream GFileInputStream; +typedef struct _GFileInputStreamClass GFileInputStreamClass; +typedef struct _GFileInputStreamPrivate GFileInputStreamPrivate; + +struct _GFileInputStream +{ + GInputStream parent_instance; + + /*< private >*/ + GFileInputStreamPrivate *priv; +}; + +struct _GFileInputStreamClass +{ + GInputStreamClass parent_class; + + goffset (*tell) (GFileInputStream *stream); + gboolean (*can_seek) (GFileInputStream *stream); + gboolean (*seek) (GFileInputStream *stream, + goffset offset, + GSeekType type, + GCancellable *cancellable, + GError **error); + GFileInfo *(*query_info) (GFileInputStream *stream, + char *attributes, + GCancellable *cancellable, + GError **error); + void (*query_info_async) (GFileInputStream *stream, + char *attributes, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFileInfo *(*query_info_finish) (GFileInputStream *stream, + GAsyncResult *res, + GError **error); + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + +GType g_file_input_stream_get_type (void) G_GNUC_CONST; + +GFileInfo *g_file_input_stream_query_info (GFileInputStream *stream, + char *attributes, + GCancellable *cancellable, + GError **error); +void g_file_input_stream_query_info_async (GFileInputStream *stream, + char *attributes, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFileInfo *g_file_input_stream_query_info_finish (GFileInputStream *stream, + GAsyncResult *result, + GError **error); + + +G_END_DECLS + +#endif /* __G_FILE_FILE_INPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilemonitor.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilemonitor.h new file mode 100644 index 00000000..dfc3e26d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilemonitor.h @@ -0,0 +1,118 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILE_MONITOR_H__ +#define __G_FILE_MONITOR_H__ + +#include <glib-object.h> +#include <gio/gfile.h> + +G_BEGIN_DECLS + +#define G_TYPE_FILE_MONITOR (g_file_monitor_get_type ()) +#define G_FILE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILE_MONITOR, GFileMonitor)) +#define G_FILE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILE_MONITOR, GFileMonitorClass)) +#define G_IS_FILE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILE_MONITOR)) +#define G_IS_FILE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILE_MONITOR)) +#define G_FILE_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILE_MONITOR, GFileMonitorClass)) + +/** + * GFileMonitorEvent: + * @G_FILE_MONITOR_EVENT_CHANGED: a file changed. + * @G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: a hint that this was probably the last change in a set of changes. + * @G_FILE_MONITOR_EVENT_DELETED: a file was deleted. + * @G_FILE_MONITOR_EVENT_CREATED: a file was created. + * @G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: a file attribute was changed. + * @G_FILE_MONITOR_EVENT_PRE_UNMOUNT: the file location will soon be unmounted. + * @G_FILE_MONITOR_EVENT_UNMOUNTED: the file location was unmounted. + * + * Specifies what type of event a monitor event is. + **/ +typedef enum { + G_FILE_MONITOR_EVENT_CHANGED, + G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT, + G_FILE_MONITOR_EVENT_DELETED, + G_FILE_MONITOR_EVENT_CREATED, + G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED, + G_FILE_MONITOR_EVENT_PRE_UNMOUNT, + G_FILE_MONITOR_EVENT_UNMOUNTED +} GFileMonitorEvent; + +typedef struct _GFileMonitorClass GFileMonitorClass; +typedef struct _GFileMonitorPrivate GFileMonitorPrivate; + +/** + * GFileMonitor: + * + * Watches for changes to a file. + **/ +struct _GFileMonitor +{ + GObject parent_instance; + + /*< private >*/ + GFileMonitorPrivate *priv; +}; + +struct _GFileMonitorClass +{ + GObjectClass parent_class; + + /* Signals */ + void (* changed) (GFileMonitor* monitor, + GFile* file, + GFile* other_file, + GFileMonitorEvent event_type); + + /* Virtual Table */ + gboolean (*cancel)(GFileMonitor* monitor); + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + +GType g_file_monitor_get_type (void) G_GNUC_CONST; + +gboolean g_file_monitor_cancel (GFileMonitor *monitor); +gboolean g_file_monitor_is_cancelled (GFileMonitor *monitor); +void g_file_monitor_set_rate_limit (GFileMonitor *monitor, + int limit_msecs); + + +/* For implementations */ +void g_file_monitor_emit_event (GFileMonitor *monitor, + GFile *child, + GFile *other_file, + GFileMonitorEvent event_type); + +G_END_DECLS + +#endif /* __G_FILE_MONITOR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilenamecompleter.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilenamecompleter.h new file mode 100644 index 00000000..c7fd3835 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilenamecompleter.h @@ -0,0 +1,76 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILENAME_COMPLETER_H__ +#define __G_FILENAME_COMPLETER_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define G_TYPE_FILENAME_COMPLETER (g_filename_completer_get_type ()) +#define G_FILENAME_COMPLETER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILENAME_COMPLETER, GFilenameCompleter)) +#define G_FILENAME_COMPLETER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILENAME_COMPLETER, GFilenameCompleterClass)) +#define G_FILENAME_COMPLETER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILENAME_COMPLETER, GFilenameCompleterClass)) +#define G_IS_FILENAME_COMPLETER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILENAME_COMPLETER)) +#define G_IS_FILENAME_COMPLETER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILENAME_COMPLETER)) + +/** + * GFilenameCompleter: + * + * Completes filenames based on files that exist within the file system. + **/ +typedef struct _GFilenameCompleter GFilenameCompleter; +typedef struct _GFilenameCompleterClass GFilenameCompleterClass; + +struct _GFilenameCompleterClass { + GObjectClass parent_class; + + /*< public >*/ + /* signals */ + void (* got_completion_data) (GFilenameCompleter *filename_completer); + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); +}; + +GType g_filename_completer_get_type (void) G_GNUC_CONST; + +GFilenameCompleter *g_filename_completer_new (void); + +char * g_filename_completer_get_completion_suffix (GFilenameCompleter *completer, + const char *initial_text); +char ** g_filename_completer_get_completions (GFilenameCompleter *completer, + const char *initial_text); +void g_filename_completer_set_dirs_only (GFilenameCompleter *completer, + gboolean dirs_only); + +G_END_DECLS + +#endif /* __G_FILENAME_COMPLETER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileoutputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileoutputstream.h new file mode 100644 index 00000000..aebb3c24 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfileoutputstream.h @@ -0,0 +1,121 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILE_OUTPUT_STREAM_H__ +#define __G_FILE_OUTPUT_STREAM_H__ + +#include <gio/goutputstream.h> +#include <gio/gfileinfo.h> + +G_BEGIN_DECLS + +#define G_TYPE_FILE_OUTPUT_STREAM (g_file_output_stream_get_type ()) +#define G_FILE_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILE_OUTPUT_STREAM, GFileOutputStream)) +#define G_FILE_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILE_OUTPUT_STREAM, GFileOutputStreamClass)) +#define G_IS_FILE_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILE_OUTPUT_STREAM)) +#define G_IS_FILE_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILE_OUTPUT_STREAM)) +#define G_FILE_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILE_OUTPUT_STREAM, GFileOutputStreamClass)) + +/** + * GFileOutputStream: + * + * A subclass of GOutputStream for opened files. This adds + * a few file-specific operations and seeking and truncating. + * + * #GFileOutputStream implements GSeekable. + **/ +typedef struct _GFileOutputStream GFileOutputStream; +typedef struct _GFileOutputStreamClass GFileOutputStreamClass; +typedef struct _GFileOutputStreamPrivate GFileOutputStreamPrivate; + +struct _GFileOutputStream +{ + GOutputStream parent_instance; + + /*< private >*/ + GFileOutputStreamPrivate *priv; +}; + +struct _GFileOutputStreamClass +{ + GOutputStreamClass parent_class; + + goffset (*tell) (GFileOutputStream *stream); + gboolean (*can_seek) (GFileOutputStream *stream); + gboolean (*seek) (GFileOutputStream *stream, + goffset offset, + GSeekType type, + GCancellable *cancellable, + GError **error); + gboolean (*can_truncate) (GFileOutputStream *stream); + gboolean (*truncate_fn) (GFileOutputStream *stream, + goffset size, + GCancellable *cancellable, + GError **error); + GFileInfo *(*query_info) (GFileOutputStream *stream, + char *attributes, + GCancellable *cancellable, + GError **error); + void (*query_info_async) (GFileOutputStream *stream, + char *attributes, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GFileInfo *(*query_info_finish) (GFileOutputStream *stream, + GAsyncResult *res, + GError **error); + char *(*get_etag) (GFileOutputStream *stream); + + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + +GType g_file_output_stream_get_type (void) G_GNUC_CONST; + + +GFileInfo *g_file_output_stream_query_info (GFileOutputStream *stream, + char *attributes, + GCancellable *cancellable, + GError **error); +void g_file_output_stream_query_info_async (GFileOutputStream *stream, + char *attributes, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GFileInfo *g_file_output_stream_query_info_finish (GFileOutputStream *stream, + GAsyncResult *result, + GError **error); +char * g_file_output_stream_get_etag (GFileOutputStream *stream); + +G_END_DECLS + +#endif /* __G_FILE_FILE_OUTPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilterinputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilterinputstream.h new file mode 100644 index 00000000..ee6d9152 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilterinputstream.h @@ -0,0 +1,75 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Christian Kellner <gicmo@gnome.org> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILTER_INPUT_STREAM_H__ +#define __G_FILTER_INPUT_STREAM_H__ + +#include <glib-object.h> +#include <gio/ginputstream.h> + +G_BEGIN_DECLS + +#define G_TYPE_FILTER_INPUT_STREAM (g_filter_input_stream_get_type ()) +#define G_FILTER_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILTER_INPUT_STREAM, GFilterInputStream)) +#define G_FILTER_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILTER_INPUT_STREAM, GFilterInputStreamClass)) +#define G_IS_FILTER_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILTER_INPUT_STREAM)) +#define G_IS_FILTER_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILTER_INPUT_STREAM)) +#define G_FILTER_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILTER_INPUT_STREAM, GFilterInputStreamClass)) + +/** + * GFilterInputStream: + * + * A base class for all input streams that work on an underlying stream. + **/ +typedef struct _GFilterInputStream GFilterInputStream; +typedef struct _GFilterInputStreamClass GFilterInputStreamClass; +typedef struct _GFilterInputStreamPrivate GFilterInputStreamPrivate; + +struct _GFilterInputStream +{ + GInputStream parent_instance; + + /*<protected >*/ + GInputStream *base_stream; +}; + +struct _GFilterInputStreamClass +{ + GInputStreamClass parent_class; + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); +}; + + +GType g_filter_input_stream_get_type (void) G_GNUC_CONST; +GInputStream *g_filter_input_stream_get_base_stream (GFilterInputStream *stream); +G_END_DECLS + +#endif /* __G_FILTER_INPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilteroutputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilteroutputstream.h new file mode 100644 index 00000000..ba2d968e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gfilteroutputstream.h @@ -0,0 +1,75 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Christian Kellner <gicmo@gnome.org> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_FILTER_OUTPUT_STREAM_H__ +#define __G_FILTER_OUTPUT_STREAM_H__ + +#include <glib-object.h> +#include <gio/goutputstream.h> + +G_BEGIN_DECLS + +#define G_TYPE_FILTER_OUTPUT_STREAM (g_filter_output_stream_get_type ()) +#define G_FILTER_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILTER_OUTPUT_STREAM, GFilterOutputStream)) +#define G_FILTER_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILTER_OUTPUT_STREAM, GFilterOutputStreamClass)) +#define G_IS_FILTER_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_FILTER_OUTPUT_STREAM)) +#define G_IS_FILTER_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_FILTER_OUTPUT_STREAM)) +#define G_FILTER_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_FILTER_OUTPUT_STREAM, GFilterOutputStreamClass)) + +/** + * GFilterOutputStream: + * + * A base class for all output streams that work on an underlying stream. + **/ +typedef struct _GFilterOutputStream GFilterOutputStream; +typedef struct _GFilterOutputStreamClass GFilterOutputStreamClass; +typedef struct _GFilterOutputStreamPrivate GFilterOutputStreamPrivate; + +struct _GFilterOutputStream +{ + GOutputStream parent_instance; + + /*< protected >*/ + GOutputStream *base_stream; +}; + +struct _GFilterOutputStreamClass +{ + GOutputStreamClass parent_class; + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); +}; + + +GType g_filter_output_stream_get_type (void) G_GNUC_CONST; +GOutputStream *g_filter_output_stream_get_base_stream (GFilterOutputStream *stream); +G_END_DECLS + +#endif /* __G_FILTER_OUTPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gicon.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gicon.h new file mode 100644 index 00000000..dd028899 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gicon.h @@ -0,0 +1,76 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_ICON_H__ +#define __G_ICON_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define G_TYPE_ICON (g_icon_get_type ()) +#define G_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_ICON, GIcon)) +#define G_IS_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_ICON)) +#define G_ICON_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_ICON, GIconIface)) + +/** + * GIcon: + * + * An abstract type that specifies an icon. + **/ +typedef struct _GIcon GIcon; /* Dummy typedef */ +typedef struct _GIconIface GIconIface; + +/** + * GIconIface: + * @g_iface: The parent interface. + * @hash: A hash for a given #GIcon. + * @equal: Checks if two #GIcon<!-- -->s are equal. + * + * GIconIface is used to implement GIcon types for various + * different systems. See #GThemedIcon and #GLoadableIcon for + * examples of how to implement this interface. + */ +struct _GIconIface +{ + GTypeInterface g_iface; + + /* Virtual Table */ + + guint (*hash) (GIcon *icon); + gboolean (*equal) (GIcon *icon1, + GIcon *icon2); +}; + +GType g_icon_get_type (void) G_GNUC_CONST; + +guint g_icon_hash (gconstpointer icon); +gboolean g_icon_equal (GIcon *icon1, + GIcon *icon2); + +G_END_DECLS + +#endif /* __G_ICON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/ginputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/ginputstream.h new file mode 100644 index 00000000..3759fec7 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/ginputstream.h @@ -0,0 +1,176 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_INPUT_STREAM_H__ +#define __G_INPUT_STREAM_H__ + +#include <glib-object.h> +#include <gio/gioerror.h> +#include <gio/gcancellable.h> +#include <gio/gasyncresult.h> + +G_BEGIN_DECLS + +#define G_TYPE_INPUT_STREAM (g_input_stream_get_type ()) +#define G_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_INPUT_STREAM, GInputStream)) +#define G_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_INPUT_STREAM, GInputStreamClass)) +#define G_IS_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_INPUT_STREAM)) +#define G_IS_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_INPUT_STREAM)) +#define G_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_INPUT_STREAM, GInputStreamClass)) + +/** + * GInputStream: + * + * Base class for streaming input operations. + **/ +typedef struct _GInputStream GInputStream; +typedef struct _GInputStreamClass GInputStreamClass; +typedef struct _GInputStreamPrivate GInputStreamPrivate; + +struct _GInputStream +{ + GObject parent_instance; + + /*< private >*/ + GInputStreamPrivate *priv; +}; + +struct _GInputStreamClass +{ + GObjectClass parent_class; + + /* Sync ops: */ + + gssize (* read_fn) (GInputStream *stream, + void *buffer, + gsize count, + GCancellable *cancellable, + GError **error); + gssize (* skip) (GInputStream *stream, + gsize count, + GCancellable *cancellable, + GError **error); + gboolean (* close_fn) (GInputStream *stream, + GCancellable *cancellable, + GError **error); + + /* Async ops: (optional in derived classes) */ + void (* read_async) (GInputStream *stream, + void *buffer, + gsize count, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gssize (* read_finish) (GInputStream *stream, + GAsyncResult *result, + GError **error); + void (* skip_async) (GInputStream *stream, + gsize count, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gssize (* skip_finish) (GInputStream *stream, + GAsyncResult *result, + GError **error); + void (* close_async) (GInputStream *stream, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (* close_finish)(GInputStream *stream, + GAsyncResult *result, + GError **error); + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + +GType g_input_stream_get_type (void) G_GNUC_CONST; + +gssize g_input_stream_read (GInputStream *stream, + void *buffer, + gsize count, + GCancellable *cancellable, + GError **error); +gboolean g_input_stream_read_all (GInputStream *stream, + void *buffer, + gsize count, + gsize *bytes_read, + GCancellable *cancellable, + GError **error); +gssize g_input_stream_skip (GInputStream *stream, + gsize count, + GCancellable *cancellable, + GError **error); +gboolean g_input_stream_close (GInputStream *stream, + GCancellable *cancellable, + GError **error); +void g_input_stream_read_async (GInputStream *stream, + void *buffer, + gsize count, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gssize g_input_stream_read_finish (GInputStream *stream, + GAsyncResult *result, + GError **error); +void g_input_stream_skip_async (GInputStream *stream, + gsize count, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gssize g_input_stream_skip_finish (GInputStream *stream, + GAsyncResult *result, + GError **error); +void g_input_stream_close_async (GInputStream *stream, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_input_stream_close_finish (GInputStream *stream, + GAsyncResult *result, + GError **error); + +/* For implementations: */ + +gboolean g_input_stream_is_closed (GInputStream *stream); +gboolean g_input_stream_has_pending (GInputStream *stream); +gboolean g_input_stream_set_pending (GInputStream *stream, + GError **error); +void g_input_stream_clear_pending (GInputStream *stream); + +G_END_DECLS + +#endif /* __G_INPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gio.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gio.h new file mode 100644 index 00000000..a81e17fe --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gio.h @@ -0,0 +1,56 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#ifndef __G_IO_H__ +#define __G_IO_H__ + +#define __GIO_GIO_H_INSIDE__ + +#include <gio/gvfs.h> +#include <gio/gfile.h> +#include <gio/gvolumemonitor.h> +#include <gio/gcontenttype.h> +#include <gio/gappinfo.h> +#include <gio/gicon.h> +#include <gio/gfileicon.h> +#include <gio/gloadableicon.h> +#include <gio/gthemedicon.h> +#include <gio/gseekable.h> +#include <gio/gfilemonitor.h> +#include <gio/gbufferedinputstream.h> +#include <gio/gbufferedoutputstream.h> +#include <gio/gdatainputstream.h> +#include <gio/gdataoutputstream.h> +#include <gio/gfilenamecompleter.h> +#include <gio/gfilterinputstream.h> +#include <gio/gfilteroutputstream.h> +#include <gio/giomodule.h> +#include <gio/gioscheduler.h> +#include <gio/gmemoryinputstream.h> +#include <gio/gmemoryoutputstream.h> +#include <gio/gsimpleasyncresult.h> +#include <gio/gioenumtypes.h> +#include <gio/gnativevolumemonitor.h> + +#undef __GIO_GIO_H_INSIDE__ + +#endif /* __G_IO_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gioenumtypes.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gioenumtypes.h new file mode 100644 index 00000000..ef64328f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gioenumtypes.h @@ -0,0 +1,73 @@ + +/* Generated data (by glib-mkenums) */ + +#ifndef __GIO_ENUM_TYPES_H__ +#define __GIO_ENUM_TYPES_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +/* enumerations from "gappinfo.h" */ +GType g_app_info_create_flags_get_type (void) G_GNUC_CONST; +#define G_TYPE_APP_INFO_CREATE_FLAGS (g_app_info_create_flags_get_type ()) + +/* enumerations from "gdatainputstream.h" */ +GType g_data_stream_byte_order_get_type (void) G_GNUC_CONST; +#define G_TYPE_DATA_STREAM_BYTE_ORDER (g_data_stream_byte_order_get_type ()) +GType g_data_stream_newline_type_get_type (void) G_GNUC_CONST; +#define G_TYPE_DATA_STREAM_NEWLINE_TYPE (g_data_stream_newline_type_get_type ()) + +/* enumerations from "gfile.h" */ +GType g_file_query_info_flags_get_type (void) G_GNUC_CONST; +#define G_TYPE_FILE_QUERY_INFO_FLAGS (g_file_query_info_flags_get_type ()) +GType g_file_create_flags_get_type (void) G_GNUC_CONST; +#define G_TYPE_FILE_CREATE_FLAGS (g_file_create_flags_get_type ()) +GType g_mount_mount_flags_get_type (void) G_GNUC_CONST; +#define G_TYPE_MOUNT_MOUNT_FLAGS (g_mount_mount_flags_get_type ()) +GType g_mount_unmount_flags_get_type (void) G_GNUC_CONST; +#define G_TYPE_MOUNT_UNMOUNT_FLAGS (g_mount_unmount_flags_get_type ()) +GType g_file_copy_flags_get_type (void) G_GNUC_CONST; +#define G_TYPE_FILE_COPY_FLAGS (g_file_copy_flags_get_type ()) +GType g_file_monitor_flags_get_type (void) G_GNUC_CONST; +#define G_TYPE_FILE_MONITOR_FLAGS (g_file_monitor_flags_get_type ()) + +/* enumerations from "gfileattribute.h" */ +GType g_file_attribute_type_get_type (void) G_GNUC_CONST; +#define G_TYPE_FILE_ATTRIBUTE_TYPE (g_file_attribute_type_get_type ()) +GType g_file_attribute_info_flags_get_type (void) G_GNUC_CONST; +#define G_TYPE_FILE_ATTRIBUTE_INFO_FLAGS (g_file_attribute_info_flags_get_type ()) +GType g_file_attribute_status_get_type (void) G_GNUC_CONST; +#define G_TYPE_FILE_ATTRIBUTE_STATUS (g_file_attribute_status_get_type ()) + +/* enumerations from "gfileinfo.h" */ +GType g_file_type_get_type (void) G_GNUC_CONST; +#define G_TYPE_FILE_TYPE (g_file_type_get_type ()) +GType g_filesystem_preview_type_get_type (void) G_GNUC_CONST; +#define G_TYPE_FILESYSTEM_PREVIEW_TYPE (g_filesystem_preview_type_get_type ()) + +/* enumerations from "gfilemonitor.h" */ +GType g_file_monitor_event_get_type (void) G_GNUC_CONST; +#define G_TYPE_FILE_MONITOR_EVENT (g_file_monitor_event_get_type ()) + +/* enumerations from "gioerror.h" */ +GType g_io_error_enum_get_type (void) G_GNUC_CONST; +#define G_TYPE_IO_ERROR_ENUM (g_io_error_enum_get_type ()) + +/* enumerations from "gmountoperation.h" */ +GType g_ask_password_flags_get_type (void) G_GNUC_CONST; +#define G_TYPE_ASK_PASSWORD_FLAGS (g_ask_password_flags_get_type ()) +GType g_password_save_get_type (void) G_GNUC_CONST; +#define G_TYPE_PASSWORD_SAVE (g_password_save_get_type ()) +GType g_mount_operation_result_get_type (void) G_GNUC_CONST; +#define G_TYPE_MOUNT_OPERATION_RESULT (g_mount_operation_result_get_type ()) + +/* enumerations from "goutputstream.h" */ +GType g_output_stream_splice_flags_get_type (void) G_GNUC_CONST; +#define G_TYPE_OUTPUT_STREAM_SPLICE_FLAGS (g_output_stream_splice_flags_get_type ()) +G_END_DECLS + +#endif /* __GIO_ENUM_TYPES_H__ */ + +/* Generated data ends here */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gioerror.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gioerror.h new file mode 100644 index 00000000..01a1ae29 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gioerror.h @@ -0,0 +1,126 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_IO_ERROR_H__ +#define __G_IO_ERROR_H__ + +#include <glib/gerror.h> + +G_BEGIN_DECLS + +GQuark g_io_error_quark (void); + +/** + * G_IO_ERROR: + * + * Error domain for GIO. Errors in this domain will be from the #GIOErrorEnum enumeration. + * See #GError for more information on error domains. + **/ +#define G_IO_ERROR g_io_error_quark() + +/* This enumeration conflicts with GIOError in giochannel.h. However, + * that is only used as a return value in some deprecated functions. + * So, we reuse the same prefix for the enumeration values, but call + * the actual enumeration (which is rarely used) GIOErrorEnum. + */ + +/** + * GIOErrorEnum: + * @G_IO_ERROR_FAILED: Generic error condition for when any operation fails. + * @G_IO_ERROR_NOT_FOUND: File not found error. + * @G_IO_ERROR_EXISTS: File already exists error. + * @G_IO_ERROR_IS_DIRECTORY: File is a directory error. + * @G_IO_ERROR_NOT_DIRECTORY: File is not a directory. + * @G_IO_ERROR_NOT_EMPTY: File is a directory that isn't empty. + * @G_IO_ERROR_NOT_REGULAR_FILE: File is not a regular file. + * @G_IO_ERROR_NOT_SYMBOLIC_LINK: File is not a symbolic link. + * @G_IO_ERROR_NOT_MOUNTABLE_FILE: File cannot be mounted. + * @G_IO_ERROR_FILENAME_TOO_LONG: Filename is too many characters. + * @G_IO_ERROR_INVALID_FILENAME: Filename is invalid or contains invalid characters. + * @G_IO_ERROR_TOO_MANY_LINKS: File contains too many symbolic links. + * @G_IO_ERROR_NO_SPACE: No space left on drive. + * @G_IO_ERROR_INVALID_ARGUMENT: Invalid argument. + * @G_IO_ERROR_PERMISSION_DENIED: Permission denied. + * @G_IO_ERROR_NOT_SUPPORTED: Operation not supported for the current backend. + * @G_IO_ERROR_NOT_MOUNTED: File isn't mounted. + * @G_IO_ERROR_ALREADY_MOUNTED: File is already mounted. + * @G_IO_ERROR_CLOSED: File was closed. + * @G_IO_ERROR_CANCELLED: Operation was cancelled. See #GCancellable. + * @G_IO_ERROR_PENDING: Operations are still pending. + * @G_IO_ERROR_READ_ONLY: File is read only. + * @G_IO_ERROR_CANT_CREATE_BACKUP: Backup couldn't be created. + * @G_IO_ERROR_WRONG_ETAG: File's Entity Tag was incorrect. + * @G_IO_ERROR_TIMED_OUT: Operation timed out. + * @G_IO_ERROR_WOULD_RECURSE: Operation would be recursive. + * @G_IO_ERROR_BUSY: File is busy. + * @G_IO_ERROR_WOULD_BLOCK: Operation would block. + * @G_IO_ERROR_HOST_NOT_FOUND: Host couldn't be found (remote operations). + * @G_IO_ERROR_WOULD_MERGE: Operation would merge files. + * @G_IO_ERROR_FAILED_HANDLED: Operation failed and a helper program has already interacted with the user. Do not display any error dialog. + * + * Error codes returned by GIO functions. + * + **/ +typedef enum +{ + G_IO_ERROR_FAILED, + G_IO_ERROR_NOT_FOUND, + G_IO_ERROR_EXISTS, + G_IO_ERROR_IS_DIRECTORY, + G_IO_ERROR_NOT_DIRECTORY, + G_IO_ERROR_NOT_EMPTY, + G_IO_ERROR_NOT_REGULAR_FILE, + G_IO_ERROR_NOT_SYMBOLIC_LINK, + G_IO_ERROR_NOT_MOUNTABLE_FILE, + G_IO_ERROR_FILENAME_TOO_LONG, + G_IO_ERROR_INVALID_FILENAME, + G_IO_ERROR_TOO_MANY_LINKS, + G_IO_ERROR_NO_SPACE, + G_IO_ERROR_INVALID_ARGUMENT, + G_IO_ERROR_PERMISSION_DENIED, + G_IO_ERROR_NOT_SUPPORTED, + G_IO_ERROR_NOT_MOUNTED, + G_IO_ERROR_ALREADY_MOUNTED, + G_IO_ERROR_CLOSED, + G_IO_ERROR_CANCELLED, + G_IO_ERROR_PENDING, + G_IO_ERROR_READ_ONLY, + G_IO_ERROR_CANT_CREATE_BACKUP, + G_IO_ERROR_WRONG_ETAG, + G_IO_ERROR_TIMED_OUT, + G_IO_ERROR_WOULD_RECURSE, + G_IO_ERROR_BUSY, + G_IO_ERROR_WOULD_BLOCK, + G_IO_ERROR_HOST_NOT_FOUND, + G_IO_ERROR_WOULD_MERGE, + G_IO_ERROR_FAILED_HANDLED +} GIOErrorEnum; + +GIOErrorEnum g_io_error_from_errno (gint err_no); + +G_END_DECLS + +#endif /* __G_IO_ERROR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/giomodule.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/giomodule.h new file mode 100644 index 00000000..2801d773 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/giomodule.h @@ -0,0 +1,99 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_IO_MODULE_H__ +#define __G_IO_MODULE_H__ + +#include <glib-object.h> +#include <gmodule.h> + +G_BEGIN_DECLS + +#define G_IO_TYPE_MODULE (g_io_module_get_type ()) +#define G_IO_MODULE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_IO_TYPE_MODULE, GIOModule)) +#define G_IO_MODULE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_IO_TYPE_MODULE, GIOModuleClass)) +#define G_IO_IS_MODULE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_IO_TYPE_MODULE)) +#define G_IO_IS_MODULE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_IO_TYPE_MODULE)) +#define G_IO_MODULE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_IO_TYPE_MODULE, GIOModuleClass)) + +/** + * GIOModule: + * + * Opaque module base class for extending GIO. + **/ +typedef struct _GIOModule GIOModule; +typedef struct _GIOModuleClass GIOModuleClass; + +typedef struct _GIOExtensionPoint GIOExtensionPoint; +typedef struct _GIOExtension GIOExtension; + +GType g_io_module_get_type (void) G_GNUC_CONST; +GIOModule *g_io_module_new (const gchar *filename); + +GList *g_io_modules_load_all_in_directory (const char *dirname); + +GIOExtensionPoint *g_io_extension_point_register (const char *name); +GIOExtensionPoint *g_io_extension_point_lookup (const char *name); +void g_io_extension_point_set_required_type (GIOExtensionPoint *extension_point, + GType type); +GType g_io_extension_point_get_required_type (GIOExtensionPoint *extension_point); +GList *g_io_extension_point_get_extensions (GIOExtensionPoint *extension_point); +GIOExtension * g_io_extension_point_get_extension_by_name (GIOExtensionPoint *extension_point, + const char *name); +GIOExtension * g_io_extension_point_implement (const char *extension_point_name, + GType type, + const char *extension_name, + gint priority); + +GType g_io_extension_get_type (GIOExtension *extension); +const char * g_io_extension_get_name (GIOExtension *extension); +gint g_io_extension_get_priority (GIOExtension *extension); +GTypeClass* g_io_extension_ref_class (GIOExtension *extension); + +/* API for the modules to implement */ +/** + * g_io_module_load: + * @module: a #GIOModule. + * + * Required API for GIO modules to implement. + * This function is ran after the module has been loaded into GIO, + * to initialize the module. + **/ +void g_io_module_load (GIOModule *module); + +/** + * g_io_module_unload: + * @module: a #GIOModule. + * + * Required API for GIO modules to implement. + * This function is ran when the module is being unloaded from GIO, + * to finalize the module. + **/ +void g_io_module_unload (GIOModule *module); + +G_END_DECLS + +#endif /* __G_IO_MODULE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gioscheduler.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gioscheduler.h new file mode 100644 index 00000000..03c7f94f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gioscheduler.h @@ -0,0 +1,81 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_IO_SCHEDULER_H__ +#define __G_IO_SCHEDULER_H__ + +#include <glib.h> +#include <gio/gcancellable.h> + +G_BEGIN_DECLS + +/** + * GIOSchedulerJob: + * + * Opaque class for definining and scheduling IO jobs. + **/ +typedef struct _GIOSchedulerJob GIOSchedulerJob; + +/** + * GIOSchedulerJobFunc: + * @job: a #GIOSchedulerJob. + * @cancellable: optional #GCancellable object, %NULL to ignore. + * @user_data: the data to pass to callback function + * + * I/O Job function. + * + * Note that depending on whether threads are available, the + * #GIOScheduler may run jobs in separate threads or in an idle + * in the mainloop. + * + * Long-running jobs should periodically check the @cancellable + * to see if they have been cancelled. + * + * Returns: %TRUE if this function should be called again to + * complete the job, %FALSE if the job is complete (or cancelled) + **/ +typedef gboolean (*GIOSchedulerJobFunc) (GIOSchedulerJob *job, + GCancellable *cancellable, + gpointer user_data); + +void g_io_scheduler_push_job (GIOSchedulerJobFunc job_func, + gpointer user_data, + GDestroyNotify notify, + gint io_priority, + GCancellable *cancellable); +void g_io_scheduler_cancel_all_jobs (void); +gboolean g_io_scheduler_job_send_to_mainloop (GIOSchedulerJob *job, + GSourceFunc func, + gpointer user_data, + GDestroyNotify notify); +void g_io_scheduler_job_send_to_mainloop_async (GIOSchedulerJob *job, + GSourceFunc func, + gpointer user_data, + GDestroyNotify notify); + +G_END_DECLS + +#endif /* __G_IO_SCHEDULER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gloadableicon.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gloadableicon.h new file mode 100644 index 00000000..3973f74d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gloadableicon.h @@ -0,0 +1,101 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_LOADABLE_ICON_H__ +#define __G_LOADABLE_ICON_H__ + +#include <glib-object.h> +#include <gio/gicon.h> +#include <gio/ginputstream.h> + +G_BEGIN_DECLS + +#define G_TYPE_LOADABLE_ICON (g_loadable_icon_get_type ()) +#define G_LOADABLE_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_LOADABLE_ICON, GLoadableIcon)) +#define G_IS_LOADABLE_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_LOADABLE_ICON)) +#define G_LOADABLE_ICON_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_LOADABLE_ICON, GLoadableIconIface)) + +/** + * GLoadableIcon: + * + * Generic type for all kinds of icons that can be loaded + * as a stream. + **/ +typedef struct _GLoadableIcon GLoadableIcon; /* Dummy typedef */ +typedef struct _GLoadableIconIface GLoadableIconIface; + +/** + * GLoadableIconIface: + * @g_iface: The parent interface. + * @load: Loads an icon. + * @load_async: Loads an icon asynchronously. + * @load_finish: Finishes an asynchronous icon load. + * + * Interface for icons that can be loaded as a stream. + **/ +struct _GLoadableIconIface +{ + GTypeInterface g_iface; + + /* Virtual Table */ + + GInputStream * (*load) (GLoadableIcon *icon, + int size, + char **type, + GCancellable *cancellable, + GError **error); + void (*load_async) (GLoadableIcon *icon, + int size, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + GInputStream * (*load_finish) (GLoadableIcon *icon, + GAsyncResult *res, + char **type, + GError **error); +}; + +GType g_loadable_icon_get_type (void) G_GNUC_CONST; + + +GInputStream *g_loadable_icon_load (GLoadableIcon *icon, + int size, + char **type, + GCancellable *cancellable, + GError **error); +void g_loadable_icon_load_async (GLoadableIcon *icon, + int size, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GInputStream *g_loadable_icon_load_finish (GLoadableIcon *icon, + GAsyncResult *res, + char **type, + GError **error); + +G_END_DECLS + +#endif /* __G_LOADABLE_ICON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmemoryinputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmemoryinputstream.h new file mode 100644 index 00000000..0e3e43f2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmemoryinputstream.h @@ -0,0 +1,84 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Christian Kellner <gicmo@gnome.org> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_MEMORY_INPUT_STREAM_H__ +#define __G_MEMORY_INPUT_STREAM_H__ + +#include <glib-object.h> +#include <gio/ginputstream.h> + +G_BEGIN_DECLS + +#define G_TYPE_MEMORY_INPUT_STREAM (g_memory_input_stream_get_type ()) +#define G_MEMORY_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_MEMORY_INPUT_STREAM, GMemoryInputStream)) +#define G_MEMORY_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_MEMORY_INPUT_STREAM, GMemoryInputStreamClass)) +#define G_IS_MEMORY_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_MEMORY_INPUT_STREAM)) +#define G_IS_MEMORY_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MEMORY_INPUT_STREAM)) +#define G_MEMORY_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_MEMORY_INPUT_STREAM, GMemoryInputStreamClass)) + +/** + * GMemoryInputStream: + * + * Implements #GInputStream for arbitrary memory chunks. + **/ +typedef struct _GMemoryInputStream GMemoryInputStream; +typedef struct _GMemoryInputStreamClass GMemoryInputStreamClass; +typedef struct _GMemoryInputStreamPrivate GMemoryInputStreamPrivate; + +struct _GMemoryInputStream +{ + GInputStream parent_instance; + + /*< private >*/ + GMemoryInputStreamPrivate *priv; +}; + +struct _GMemoryInputStreamClass +{ + GInputStreamClass parent_class; + + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + + +GType g_memory_input_stream_get_type (void) G_GNUC_CONST; +GInputStream * g_memory_input_stream_new (void); +GInputStream * g_memory_input_stream_new_from_data (const void *data, + gssize len, + GDestroyNotify destroy); +void g_memory_input_stream_add_data (GMemoryInputStream *stream, + const void *data, + gssize len, + GDestroyNotify destroy); + +G_END_DECLS + +#endif /* __G_MEMORY_INPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmemoryoutputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmemoryoutputstream.h new file mode 100644 index 00000000..99fd8c2e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmemoryoutputstream.h @@ -0,0 +1,97 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Christian Kellner <gicmo@gnome.org> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_MEMORY_OUTPUT_STREAM_H__ +#define __G_MEMORY_OUTPUT_STREAM_H__ + +#include <glib-object.h> +#include <gio/goutputstream.h> + +G_BEGIN_DECLS + +#define G_TYPE_MEMORY_OUTPUT_STREAM (g_memory_output_stream_get_type ()) +#define G_MEMORY_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_MEMORY_OUTPUT_STREAM, GMemoryOutputStream)) +#define G_MEMORY_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_MEMORY_OUTPUT_STREAM, GMemoryOutputStreamClass)) +#define G_IS_MEMORY_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_MEMORY_OUTPUT_STREAM)) +#define G_IS_MEMORY_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MEMORY_OUTPUT_STREAM)) +#define G_MEMORY_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_MEMORY_OUTPUT_STREAM, GMemoryOutputStreamClass)) + +/** + * GMemoryOutputStream: + * + * Implements #GOutputStream for arbitrary memory chunks. + **/ +typedef struct _GMemoryOutputStream GMemoryOutputStream; +typedef struct _GMemoryOutputStreamClass GMemoryOutputStreamClass; +typedef struct _GMemoryOutputStreamPrivate GMemoryOutputStreamPrivate; + +struct _GMemoryOutputStream +{ + GOutputStream parent_instance; + + /*< private >*/ + GMemoryOutputStreamPrivate *priv; +}; + +struct _GMemoryOutputStreamClass +{ + GOutputStreamClass parent_class; + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); +}; + +/** + * GReallocFunc: + * @data: memory block to reallocate + * @size: size to reallocate @data to + * + * Changes the size of the memory block pointed to by @data to + * @size bytes. + * + * The function should have the same semantics as realloc(). + * + * Returns: a pointer to the reallocated memory + */ +typedef gpointer (*GReallocFunc) (gpointer data, gsize size); + +GType g_memory_output_stream_get_type (void) G_GNUC_CONST; + +GOutputStream *g_memory_output_stream_new (gpointer data, + gsize len, + GReallocFunc realloc_fn, + GDestroyNotify destroy); +gpointer g_memory_output_stream_get_data (GMemoryOutputStream *ostream); +gsize g_memory_output_stream_get_size (GMemoryOutputStream *ostream); + +G_END_DECLS + +#endif /* __G_MEMORY_OUTPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmount.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmount.h new file mode 100644 index 00000000..c2474d56 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmount.h @@ -0,0 +1,164 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + * David Zeuthen <davidz@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_MOUNT_H__ +#define __G_MOUNT_H__ + +#include <glib-object.h> +#include <gio/gfile.h> + +G_BEGIN_DECLS + +#define G_TYPE_MOUNT (g_mount_get_type ()) +#define G_MOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_MOUNT, GMount)) +#define G_IS_MOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_MOUNT)) +#define G_MOUNT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_MOUNT, GMountIface)) + +/* GMount typedef is in gfile.h due to include order issues */ +/** + * GVolume: + * + * Opaque mountable volume object. + **/ +typedef struct _GVolume GVolume; /* Dummy typedef */ + +/** + * GDrive: + * + * Opaque drive object. + **/ +typedef struct _GDrive GDrive; /* Dummy typedef */ + +typedef struct _GMountIface GMountIface; + +/** + * GMountIface: + * @g_iface: The parent interface. + * @changed: Changed signal that is emitted when the mount's state has changed. + * @unmounted: The unmounted signal that is emitted when the #GMount have been unmounted. If the recipient is holding references to the object they should release them so the object can be finalized. + * @get_root: Gets a #GFile to the root directory of the #GMount. + * @get_name: Gets a string containing the name of the #GMount. + * @get_icon: Gets a #GIcon for the #GMount. + * @get_uuid: Gets the UUID for the #GMount. The reference is typically based on the file system UUID for the mount in question and should be considered an opaque string. Returns %NULL if there is no UUID available. + * @get_volume: Gets a #GVolume the mount is located on. Returns %NULL if the #GMount is not associated with a #GVolume. + * @get_drive: Gets a #GDrive the volume of the mount is located on. Returns %NULL if the #GMount is not associated with a #GDrive or a #GVolume. This is convenience method for getting the #GVolume and using that to get the #GDrive. + * @can_unmount: Checks if a #GMount can be unmounted. + * @can_eject: Checks if a #GMount can be ejected. + * @unmount: Starts unmounting a #GMount. + * @unmount_finish: Finishes an unmounting operation. + * @eject: Starts ejecting a #GMount. + * @eject_finish: Finishes an eject operation. + * @remount: Starts remounting a #GMount. + * @remount_finish: Finishes a remounting operation. + * + * Interface for implementing operations for mounts. + **/ +struct _GMountIface +{ + GTypeInterface g_iface; + + /* signals */ + + void (*changed) (GMount *mount); + void (*unmounted) (GMount *mount); + + /* Virtual Table */ + + GFile * (*get_root) (GMount *mount); + char * (*get_name) (GMount *mount); + GIcon * (*get_icon) (GMount *mount); + char * (*get_uuid) (GMount *mount); + GVolume * (*get_volume) (GMount *mount); + GDrive * (*get_drive) (GMount *mount); + gboolean (*can_unmount) (GMount *mount); + gboolean (*can_eject) (GMount *mount); + void (*unmount) (GMount *mount, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*unmount_finish) (GMount *mount, + GAsyncResult *result, + GError **error); + void (*eject) (GMount *mount, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*eject_finish) (GMount *mount, + GAsyncResult *result, + GError **error); + void (*remount) (GMount *mount, + GMountMountFlags flags, + GMountOperation *mount_operation, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*remount_finish) (GMount *mount, + GAsyncResult *result, + GError **error); +}; + +GType g_mount_get_type (void) G_GNUC_CONST; + +GFile * g_mount_get_root (GMount *mount); +char * g_mount_get_name (GMount *mount); +GIcon * g_mount_get_icon (GMount *mount); +char * g_mount_get_uuid (GMount *mount); +GVolume * g_mount_get_volume (GMount *mount); +GDrive * g_mount_get_drive (GMount *mount); +gboolean g_mount_can_unmount (GMount *mount); +gboolean g_mount_can_eject (GMount *mount); +void g_mount_unmount (GMount *mount, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_mount_unmount_finish (GMount *mount, + GAsyncResult *result, + GError **error); +void g_mount_eject (GMount *mount, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_mount_eject_finish (GMount *mount, + GAsyncResult *result, + GError **error); +void g_mount_remount (GMount *mount, + GMountMountFlags flags, + GMountOperation *mount_operation, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_mount_remount_finish (GMount *mount, + GAsyncResult *result, + GError **error); + +G_END_DECLS + +#endif /* __G_MOUNT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmountoperation.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmountoperation.h new file mode 100644 index 00000000..a220d954 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gmountoperation.h @@ -0,0 +1,172 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_MOUNT_OPERATION_H__ +#define __G_MOUNT_OPERATION_H__ + +#include <sys/stat.h> + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define G_TYPE_MOUNT_OPERATION (g_mount_operation_get_type ()) +#define G_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_MOUNT_OPERATION, GMountOperation)) +#define G_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_MOUNT_OPERATION, GMountOperationClass)) +#define G_IS_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_MOUNT_OPERATION)) +#define G_IS_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MOUNT_OPERATION)) +#define G_MOUNT_OPERATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_MOUNT_OPERATION, GMountOperationClass)) + +/** + * GMountOperation: + * + * Class for providing authentication methods for mounting operations, + * such as mounting a file locally, or authenticating with a server. + **/ +typedef struct _GMountOperation GMountOperation; +typedef struct _GMountOperationClass GMountOperationClass; +typedef struct _GMountOperationPrivate GMountOperationPrivate; + +struct _GMountOperation +{ + GObject parent_instance; + + GMountOperationPrivate *priv; +}; + +/** + * GAskPasswordFlags: + * @G_ASK_PASSWORD_NEED_PASSWORD: operation requires a password. + * @G_ASK_PASSWORD_NEED_USERNAME: operation requires a username. + * @G_ASK_PASSWORD_NEED_DOMAIN: operation requires a domain. + * @G_ASK_PASSWORD_SAVING_SUPPORTED: operation supports saving settings. + * @G_ASK_PASSWORD_ANONYMOUS_SUPPORTED: operation supports anonymous users. + * + * #GAskPasswordFlags are used to request specific information from the + * user, or to notify the user of their choices in an authentication + * situation. + * + **/ +typedef enum { + G_ASK_PASSWORD_NEED_PASSWORD = 1<<0, + G_ASK_PASSWORD_NEED_USERNAME = 1<<1, + G_ASK_PASSWORD_NEED_DOMAIN = 1<<2, + G_ASK_PASSWORD_SAVING_SUPPORTED = 1<<3, + G_ASK_PASSWORD_ANONYMOUS_SUPPORTED = 1<<4 +} GAskPasswordFlags; + +/** + * GPasswordSave: + * @G_PASSWORD_SAVE_NEVER: never save a password. + * @G_PASSWORD_SAVE_FOR_SESSION: save a password for the session. + * @G_PASSWORD_SAVE_PERMANENTLY: save a password permanently. + * + * #GPasswordSave is used to indicate the lifespan of a saved password. + **/ +typedef enum { + G_PASSWORD_SAVE_NEVER, + G_PASSWORD_SAVE_FOR_SESSION, + G_PASSWORD_SAVE_PERMANENTLY +} GPasswordSave; + +/** + * GMountOperationResult: + * @G_MOUNT_OPERATION_HANDLED: The request was fulfilled and the user specified data is now availible + * @G_MOUNT_OPERATION_ABORTED: The user requested the mount operation to be aborted + * @G_MOUNT_OPERATION_UNHANDLED: The request was unhandled (i.e. not implemented) + * + * #GMountOperationResult is returned as a result when a request for information + * is send by the mounting operation. + **/ +typedef enum { + G_MOUNT_OPERATION_HANDLED, + G_MOUNT_OPERATION_ABORTED, + G_MOUNT_OPERATION_UNHANDLED +} GMountOperationResult; + +struct _GMountOperationClass +{ + GObjectClass parent_class; + + /* signals: */ + + void (* ask_password) (GMountOperation *op, + const char *message, + const char *default_user, + const char *default_domain, + GAskPasswordFlags flags); + + void (* ask_question) (GMountOperation *op, + const char *message, + const char *choices[]); + + void (* reply) (GMountOperation *op, + GMountOperationResult result); + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); + void (*_g_reserved6) (void); + void (*_g_reserved7) (void); + void (*_g_reserved8) (void); + void (*_g_reserved9) (void); + void (*_g_reserved10) (void); + void (*_g_reserved11) (void); + void (*_g_reserved12) (void); +}; + +GType g_mount_operation_get_type (void) G_GNUC_CONST; + +GMountOperation * g_mount_operation_new (void); + +const char * g_mount_operation_get_username (GMountOperation *op); +void g_mount_operation_set_username (GMountOperation *op, + const char *username); +const char * g_mount_operation_get_password (GMountOperation *op); +void g_mount_operation_set_password (GMountOperation *op, + const char *password); +gboolean g_mount_operation_get_anonymous (GMountOperation *op); +void g_mount_operation_set_anonymous (GMountOperation *op, + gboolean anonymous); +const char * g_mount_operation_get_domain (GMountOperation *op); +void g_mount_operation_set_domain (GMountOperation *op, + const char *domain); +GPasswordSave g_mount_operation_get_password_save (GMountOperation *op); +void g_mount_operation_set_password_save (GMountOperation *op, + GPasswordSave save); +int g_mount_operation_get_choice (GMountOperation *op); +void g_mount_operation_set_choice (GMountOperation *op, + int choice); +void g_mount_operation_reply (GMountOperation *op, + GMountOperationResult result); + +G_END_DECLS + +#endif /* __G_MOUNT_OPERATION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gnativevolumemonitor.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gnativevolumemonitor.h new file mode 100644 index 00000000..3face1b2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gnativevolumemonitor.h @@ -0,0 +1,36 @@ +#ifndef __G_NATIVE_VOLUME_MONITOR_H__ +#define __G_NATIVE_VOLUME_MONITOR_H__ + +#include <glib-object.h> +#include <gio/gvolumemonitor.h> + +G_BEGIN_DECLS + +#define G_TYPE_NATIVE_VOLUME_MONITOR (g_native_volume_monitor_get_type ()) +#define G_NATIVE_VOLUME_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_NATIVE_VOLUME_MONITOR, GNativeVolumeMonitor)) +#define G_NATIVE_VOLUME_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_NATIVE_VOLUME_MONITOR, GNativeVolumeMonitorClass)) +#define G_IS_NATIVE_VOLUME_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_NATIVE_VOLUME_MONITOR)) +#define G_IS_NATIVE_VOLUME_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_NATIVE_VOLUME_MONITOR)) + +#define G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME "gio-native-volume-monitor" + +typedef struct _GNativeVolumeMonitor GNativeVolumeMonitor; +typedef struct _GNativeVolumeMonitorClass GNativeVolumeMonitorClass; + +struct _GNativeVolumeMonitor { + GVolumeMonitor parent_instance; +}; + +struct _GNativeVolumeMonitorClass { + GVolumeMonitorClass parent_class; + + GMount * (*get_mount_for_mount_path) (const char *mount_path, + GCancellable *cancellable); +}; + +GType g_native_volume_monitor_get_type (void) G_GNUC_CONST; + + +G_END_DECLS + +#endif /* __G_NATIVE_VOLUME_MONITOR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/goutputstream.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/goutputstream.h new file mode 100644 index 00000000..263e6e6d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/goutputstream.h @@ -0,0 +1,225 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_OUTPUT_STREAM_H__ +#define __G_OUTPUT_STREAM_H__ + +#include <glib-object.h> +#include <gio/gioerror.h> +#include <gio/gasyncresult.h> +#include <gio/gcancellable.h> +#include <gio/ginputstream.h> + +G_BEGIN_DECLS + +#define G_TYPE_OUTPUT_STREAM (g_output_stream_get_type ()) +#define G_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_OUTPUT_STREAM, GOutputStream)) +#define G_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_OUTPUT_STREAM, GOutputStreamClass)) +#define G_IS_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_OUTPUT_STREAM)) +#define G_IS_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_OUTPUT_STREAM)) +#define G_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_OUTPUT_STREAM, GOutputStreamClass)) + +/** + * GOutputStreamSpliceFlags: + * @G_OUTPUT_STREAM_SPLICE_NONE: Do not close either stream. + * @G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE: Close the source stream after the splice. + * @G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET: Close the target stream after the splice. + * + * GOutputStreamSpliceFlags determine how streams should be spliced. + **/ +typedef enum { + G_OUTPUT_STREAM_SPLICE_NONE = 0, + G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE = 1 << 0, + G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET = 1 << 1 +} GOutputStreamSpliceFlags; + +/** + * GOutputStream: + * + * Base class for writing output. + * + * All classes derived from GOutputStream should implement synchronous + * writing, splicing, flushing and closing streams, but may implement + * asynchronous versions. + **/ +typedef struct _GOutputStream GOutputStream; +typedef struct _GOutputStreamClass GOutputStreamClass; +typedef struct _GOutputStreamPrivate GOutputStreamPrivate; + +struct _GOutputStream +{ + GObject parent_instance; + + /*< private >*/ + GOutputStreamPrivate *priv; +}; + + +struct _GOutputStreamClass +{ + GObjectClass parent_class; + + /* Sync ops: */ + + gssize (* write_fn)(GOutputStream *stream, + const void *buffer, + gsize count, + GCancellable *cancellable, + GError **error); + gssize (* splice) (GOutputStream *stream, + GInputStream *source, + GOutputStreamSpliceFlags flags, + GCancellable *cancellable, + GError **error); + gboolean (* flush) (GOutputStream *stream, + GCancellable *cancellable, + GError **error); + gboolean (* close_fn)(GOutputStream *stream, + GCancellable *cancellable, + GError **error); + + /* Async ops: (optional in derived classes) */ + + void (* write_async) (GOutputStream *stream, + const void *buffer, + gsize count, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gssize (* write_finish) (GOutputStream *stream, + GAsyncResult *result, + GError **error); + void (* splice_async) (GOutputStream *stream, + GInputStream *source, + GOutputStreamSpliceFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer data); + gssize (* splice_finish)(GOutputStream *stream, + GAsyncResult *result, + GError **error); + void (* flush_async) (GOutputStream *stream, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (* flush_finish) (GOutputStream *stream, + GAsyncResult *result, + GError **error); + void (* close_async) (GOutputStream *stream, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (* close_finish) (GOutputStream *stream, + GAsyncResult *result, + GError **error); + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); + void (*_g_reserved6) (void); + void (*_g_reserved7) (void); + void (*_g_reserved8) (void); +}; + +GType g_output_stream_get_type (void) G_GNUC_CONST; + +gssize g_output_stream_write (GOutputStream *stream, + const void *buffer, + gsize count, + GCancellable *cancellable, + GError **error); +gboolean g_output_stream_write_all (GOutputStream *stream, + const void *buffer, + gsize count, + gsize *bytes_written, + GCancellable *cancellable, + GError **error); +gssize g_output_stream_splice (GOutputStream *stream, + GInputStream *source, + GOutputStreamSpliceFlags flags, + GCancellable *cancellable, + GError **error); +gboolean g_output_stream_flush (GOutputStream *stream, + GCancellable *cancellable, + GError **error); +gboolean g_output_stream_close (GOutputStream *stream, + GCancellable *cancellable, + GError **error); +void g_output_stream_write_async (GOutputStream *stream, + const void *buffer, + gsize count, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gssize g_output_stream_write_finish (GOutputStream *stream, + GAsyncResult *result, + GError **error); +void g_output_stream_splice_async (GOutputStream *stream, + GInputStream *source, + GOutputStreamSpliceFlags flags, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gssize g_output_stream_splice_finish (GOutputStream *stream, + GAsyncResult *result, + GError **error); +void g_output_stream_flush_async (GOutputStream *stream, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_output_stream_flush_finish (GOutputStream *stream, + GAsyncResult *result, + GError **error); +void g_output_stream_close_async (GOutputStream *stream, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_output_stream_close_finish (GOutputStream *stream, + GAsyncResult *result, + GError **error); + +gboolean g_output_stream_is_closed (GOutputStream *stream); +gboolean g_output_stream_has_pending (GOutputStream *stream); +gboolean g_output_stream_set_pending (GOutputStream *stream, + GError **error); +void g_output_stream_clear_pending (GOutputStream *stream); + + +G_END_DECLS + +#endif /* __G_OUTPUT_STREAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gseekable.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gseekable.h new file mode 100644 index 00000000..78b8998c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gseekable.h @@ -0,0 +1,101 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_SEEKABLE_H__ +#define __G_SEEKABLE_H__ + +#include <glib-object.h> +#include <gio/gcancellable.h> + +G_BEGIN_DECLS + +#define G_TYPE_SEEKABLE (g_seekable_get_type ()) +#define G_SEEKABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_SEEKABLE, GSeekable)) +#define G_IS_SEEKABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_SEEKABLE)) +#define G_SEEKABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_SEEKABLE, GSeekableIface)) + +/** + * GSeekable: + * + * Seek object for streaming operations. + **/ +typedef struct _GSeekable GSeekable; +typedef struct _GSeekableIface GSeekableIface; + +/** + * GSeekableIface: + * @g_iface: The parent interface. + * @tell: Tells the current location within a stream. + * @can_seek: Checks if seeking is supported by the stream. + * @seek: Seeks to a location within a stream. + * @can_truncate: Chekcs if truncation is suppored by the stream. + * @truncate_fn: Truncates a stream. + * + * Provides an interface for implementing seekable functionality on I/O Streams. + **/ +struct _GSeekableIface +{ + GTypeInterface g_iface; + + /* Virtual Table */ + + goffset (* tell) (GSeekable *seekable); + + gboolean (* can_seek) (GSeekable *seekable); + gboolean (* seek) (GSeekable *seekable, + goffset offset, + GSeekType type, + GCancellable *cancellable, + GError **error); + + gboolean (* can_truncate) (GSeekable *seekable); + gboolean (* truncate_fn) (GSeekable *seekable, + goffset offset, + GCancellable *cancellable, + GError **error); + + /* TODO: Async seek/truncate */ +}; + +GType g_seekable_get_type (void) G_GNUC_CONST; + +goffset g_seekable_tell (GSeekable *seekable); +gboolean g_seekable_can_seek (GSeekable *seekable); +gboolean g_seekable_seek (GSeekable *seekable, + goffset offset, + GSeekType type, + GCancellable *cancellable, + GError **error); +gboolean g_seekable_can_truncate (GSeekable *seekable); +gboolean g_seekable_truncate (GSeekable *seekable, + goffset offset, + GCancellable *cancellable, + GError **error); + +G_END_DECLS + + +#endif /* __G_SEEKABLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gsimpleasyncresult.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gsimpleasyncresult.h new file mode 100644 index 00000000..f2f9b36d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gsimpleasyncresult.h @@ -0,0 +1,137 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_SIMPLE_ASYNC_RESULT_H__ +#define __G_SIMPLE_ASYNC_RESULT_H__ + +#include <gio/gasyncresult.h> +#include <gio/gcancellable.h> + +G_BEGIN_DECLS + +#define G_TYPE_SIMPLE_ASYNC_RESULT (g_simple_async_result_get_type ()) +#define G_SIMPLE_ASYNC_RESULT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_SIMPLE_ASYNC_RESULT, GSimpleAsyncResult)) +#define G_SIMPLE_ASYNC_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_SIMPLE_ASYNC_RESULT, GSimpleAsyncResultClass)) +#define G_IS_SIMPLE_ASYNC_RESULT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_SIMPLE_ASYNC_RESULT)) +#define G_IS_SIMPLE_ASYNC_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_SIMPLE_ASYNC_RESULT)) +#define G_SIMPLE_ASYNC_RESULT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_SIMPLE_ASYNC_RESULT, GSimpleAsyncResultClass)) + +/** + * GSimpleAsyncResult: + * + * A simple implementation of #GAsyncResult. + **/ +typedef struct _GSimpleAsyncResult GSimpleAsyncResult; +typedef struct _GSimpleAsyncResultClass GSimpleAsyncResultClass; + +/** + * GSimpleAsyncThreadFunc: + * @res: a #GSimpleAsyncResult. + * @object: a #GObject. + * @cancellable: optional #GCancellable object, %NULL to ignore. + * + * Simple thread function that runs an asynchronous operation and + * checks for cancellation. + **/ +typedef void (*GSimpleAsyncThreadFunc) (GSimpleAsyncResult *res, + GObject *object, + GCancellable *cancellable); + + +GType g_simple_async_result_get_type (void) G_GNUC_CONST; + +GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object, + GAsyncReadyCallback callback, + gpointer user_data, + gpointer source_tag); +GSimpleAsyncResult *g_simple_async_result_new_error (GObject *source_object, + GAsyncReadyCallback callback, + gpointer user_data, + GQuark domain, + gint code, + const char *format, + ...) G_GNUC_PRINTF (6, 7); +GSimpleAsyncResult *g_simple_async_result_new_from_error (GObject *source_object, + GAsyncReadyCallback callback, + gpointer user_data, + GError *error); + +void g_simple_async_result_set_op_res_gpointer (GSimpleAsyncResult *simple, + gpointer op_res, + GDestroyNotify destroy_op_res); +gpointer g_simple_async_result_get_op_res_gpointer (GSimpleAsyncResult *simple); + +void g_simple_async_result_set_op_res_gssize (GSimpleAsyncResult *simple, + gssize op_res); +gssize g_simple_async_result_get_op_res_gssize (GSimpleAsyncResult *simple); + +void g_simple_async_result_set_op_res_gboolean (GSimpleAsyncResult *simple, + gboolean op_res); +gboolean g_simple_async_result_get_op_res_gboolean (GSimpleAsyncResult *simple); + + + +gpointer g_simple_async_result_get_source_tag (GSimpleAsyncResult *simple); +void g_simple_async_result_set_handle_cancellation (GSimpleAsyncResult *simple, + gboolean handle_cancellation); +void g_simple_async_result_complete (GSimpleAsyncResult *simple); +void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple); +void g_simple_async_result_run_in_thread (GSimpleAsyncResult *simple, + GSimpleAsyncThreadFunc func, + int io_priority, + GCancellable *cancellable); +void g_simple_async_result_set_from_error (GSimpleAsyncResult *simple, + GError *error); +gboolean g_simple_async_result_propagate_error (GSimpleAsyncResult *simple, + GError **dest); +void g_simple_async_result_set_error (GSimpleAsyncResult *simple, + GQuark domain, + gint code, + const char *format, + ...) G_GNUC_PRINTF (4, 5); +void g_simple_async_result_set_error_va (GSimpleAsyncResult *simple, + GQuark domain, + gint code, + const char *format, + va_list args); + +void g_simple_async_report_error_in_idle (GObject *object, + GAsyncReadyCallback callback, + gpointer user_data, + GQuark domain, + gint code, + const char *format, + ...); +void g_simple_async_report_gerror_in_idle (GObject *object, + GAsyncReadyCallback callback, + gpointer user_data, + GError *error); + +G_END_DECLS + + + +#endif /* __G_SIMPLE_ASYNC_RESULT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gthemedicon.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gthemedicon.h new file mode 100644 index 00000000..5fb8a6b4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gthemedicon.h @@ -0,0 +1,60 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_THEMED_ICON_H__ +#define __G_THEMED_ICON_H__ + +#include <gio/gicon.h> + +G_BEGIN_DECLS + +#define G_TYPE_THEMED_ICON (g_themed_icon_get_type ()) +#define G_THEMED_ICON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_THEMED_ICON, GThemedIcon)) +#define G_THEMED_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_THEMED_ICON, GThemedIconClass)) +#define G_IS_THEMED_ICON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_THEMED_ICON)) +#define G_IS_THEMED_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_THEMED_ICON)) +#define G_THEMED_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_THEMED_ICON, GThemedIconClass)) + +/** + * GThemedIcon: + * + * An implementation of #GIcon for themed icons. + **/ +typedef struct _GThemedIcon GThemedIcon; +typedef struct _GThemedIconClass GThemedIconClass; + +GType g_themed_icon_get_type (void) G_GNUC_CONST; + +GIcon *g_themed_icon_new (const char *iconname); +GIcon *g_themed_icon_new_with_default_fallbacks (const char *iconname); +GIcon *g_themed_icon_new_from_names (char **iconnames, int len); +void g_themed_icon_append_name (GThemedIcon *icon, const char *iconname); + +const char * const *g_themed_icon_get_names (GThemedIcon *icon); + +G_END_DECLS + +#endif /* __G_THEMED_ICON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gvfs.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gvfs.h new file mode 100644 index 00000000..9c513468 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gvfs.h @@ -0,0 +1,112 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_VFS_H__ +#define __G_VFS_H__ + +#include <glib-object.h> +#include <gio/gfile.h> + +G_BEGIN_DECLS + +#define G_TYPE_VFS (g_vfs_get_type ()) +#define G_VFS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_VFS, GVfs)) +#define G_VFS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_VFS, GVfsClass)) +#define G_VFS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_VFS, GVfsClass)) +#define G_IS_VFS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_VFS)) +#define G_IS_VFS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_VFS)) + +/** + * G_VFS_EXTENSION_POINT_NAME: + * + * Extension point for #GVfs functionality. + * See <link linkend="gio-extension-points">Extending GIO</link>. + */ +#define G_VFS_EXTENSION_POINT_NAME "gio-vfs" + +/** + * GVfs: + * + * Virtual File System object. + **/ +typedef struct _GVfs GVfs; /* Dummy typedef */ +typedef struct _GVfsClass GVfsClass; + +struct _GVfs { + GObject parent_instance; +}; + +struct _GVfsClass +{ + GObjectClass parent_class; + + /* Virtual Table */ + + gboolean (*is_active) (GVfs *vfs); + GFile *(*get_file_for_path) (GVfs *vfs, + const char *path); + GFile *(*get_file_for_uri) (GVfs *vfs, + const char *uri); + const gchar * const *(*get_supported_uri_schemes) (GVfs *vfs); + GFile *(*parse_name) (GVfs *vfs, + const char *parse_name); + + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); + void (*_g_reserved6) (void); + void (*_g_reserved7) (void); + void (*_g_reserved8) (void); + void (*_g_reserved9) (void); + void (*_g_reserved10) (void); + void (*_g_reserved11) (void); + void (*_g_reserved12) (void); + +}; + +GType g_vfs_get_type (void) G_GNUC_CONST; + +gboolean g_vfs_is_active (GVfs *vfs); +GFile * g_vfs_get_file_for_path (GVfs *vfs, + const char *path); +GFile * g_vfs_get_file_for_uri (GVfs *vfs, + const char *uri); +const gchar * const * g_vfs_get_supported_uri_schemes (GVfs *vfs); + +GFile * g_vfs_parse_name (GVfs *vfs, + const char *parse_name); + +GVfs * g_vfs_get_default (void); +GVfs * g_vfs_get_local (void); + +G_END_DECLS + +#endif /* __G_VFS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gvolume.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gvolume.h new file mode 100644 index 00000000..f1ec0f5f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gvolume.h @@ -0,0 +1,182 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + * David Zeuthen <davidz@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_VOLUME_H__ +#define __G_VOLUME_H__ + +#include <glib-object.h> +#include <gio/gfile.h> +#include <gio/gdrive.h> + +G_BEGIN_DECLS + +/** + * G_VOLUME_IDENTIFIER_KIND_HAL_UDI: + * + * The string used to obtain a Hal UDI with g_volume_get_identifier(). + */ +#define G_VOLUME_IDENTIFIER_KIND_HAL_UDI "hal-udi" + +/** + * G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE: + * + * The string used to obtain a Unix device path with g_volume_get_identifier(). + */ +#define G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE "unix-device" + +/** + * G_VOLUME_IDENTIFIER_KIND_LABEL: + * + * The string used to obtain a filesystem label with g_volume_get_identifier(). + */ +#define G_VOLUME_IDENTIFIER_KIND_LABEL "label" + +/** + * G_VOLUME_IDENTIFIER_KIND_UUID: + * + * The string used to obtain a UUID with g_volume_get_identifier(). + */ +#define G_VOLUME_IDENTIFIER_KIND_UUID "uuid" + +/** + * G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT: + * + * The string used to obtain a NFS mount with g_volume_get_identifier(). + */ +#define G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT "nfs-mount" + + +#define G_TYPE_VOLUME (g_volume_get_type ()) +#define G_VOLUME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_VOLUME, GVolume)) +#define G_IS_VOLUME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_VOLUME)) +#define G_VOLUME_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_VOLUME, GVolumeIface)) + +/** + * GVolumeIface: + * @g_iface: The parent interface. + * @changed: Changed signal that is emitted when the volume's state has changed. + * @removed: The removed signal that is emitted when the #GVolume have been removed. If the recipient is holding references to the object they should release them so the object can be finalized. + * @get_name: Gets a string containing the name of the #GVolume. + * @get_icon: Gets a #GIcon for the #GVolume. + * @get_uuid: Gets the UUID for the #GVolume. The reference is typically based on the file system UUID for the mount in question and should be considered an opaque string. Returns %NULL if there is no UUID available. + * @get_drive: Gets a #GDrive the volume is located on. Returns %NULL if the #GVolume is not associated with a #GDrive. + * @get_mount: Gets a #GMount representing the mounted volume. Returns %NULL if the #GVolume is not mounted. + * @can_mount: Returns %TRUE if the #GVolume can be mounted. + * @can_eject: Checks if a #GVolume can be ejected. + * @mount_fn: Mounts a given #GVolume. + * @mount_finish: Finishes a mount operation. + * @eject: Ejects a given #GVolume. + * @eject_finish: Finishes an eject operation. + * @get_identifier: Returns the <link linkend="volume-identifier">identifier</link> of the given kind, or %NULL if + * the #GVolume doesn't have one. + * @enumerate_identifiers: Returns an array strings listing the kinds + * of <link linkend="volume-identifier">identifiers</link> which the #GVolume has. + * @should_automount: Returns %TRUE if the #GVolume should be automatically mounted. + * + * Interface for implementing operations for mountable volumes. + **/ +typedef struct _GVolumeIface GVolumeIface; + +struct _GVolumeIface +{ + GTypeInterface g_iface; + + /* signals */ + + void (*changed) (GVolume *volume); + void (*removed) (GVolume *volume); + + /* Virtual Table */ + + char * (*get_name) (GVolume *volume); + GIcon * (*get_icon) (GVolume *volume); + char * (*get_uuid) (GVolume *volume); + GDrive * (*get_drive) (GVolume *volume); + GMount * (*get_mount) (GVolume *volume); + gboolean (*can_mount) (GVolume *volume); + gboolean (*can_eject) (GVolume *volume); + void (*mount_fn) (GVolume *volume, + GMountMountFlags flags, + GMountOperation *mount_operation, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*mount_finish) (GVolume *volume, + GAsyncResult *result, + GError **error); + void (*eject) (GVolume *volume, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*eject_finish) (GVolume *volume, + GAsyncResult *result, + GError **error); + + char * (*get_identifier) (GVolume *volume, + const char *kind); + char ** (*enumerate_identifiers) (GVolume *volume); + + gboolean (*should_automount) (GVolume *volume); + +}; + +GType g_volume_get_type (void) G_GNUC_CONST; + +char * g_volume_get_name (GVolume *volume); +GIcon * g_volume_get_icon (GVolume *volume); +char * g_volume_get_uuid (GVolume *volume); +GDrive * g_volume_get_drive (GVolume *volume); +GMount * g_volume_get_mount (GVolume *volume); +gboolean g_volume_can_mount (GVolume *volume); +gboolean g_volume_can_eject (GVolume *volume); +gboolean g_volume_should_automount (GVolume *volume); +void g_volume_mount (GVolume *volume, + GMountMountFlags flags, + GMountOperation *mount_operation, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_volume_mount_finish (GVolume *volume, + GAsyncResult *result, + GError **error); +void g_volume_eject (GVolume *volume, + GMountUnmountFlags flags, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean g_volume_eject_finish (GVolume *volume, + GAsyncResult *result, + GError **error); +char * g_volume_get_identifier (GVolume *volume, + const char *kind); +char ** g_volume_enumerate_identifiers (GVolume *volume); + + +G_END_DECLS + +#endif /* __G_VOLUME_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gvolumemonitor.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gvolumemonitor.h new file mode 100644 index 00000000..9d32ceab --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gio/gvolumemonitor.h @@ -0,0 +1,145 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ + +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + * David Zeuthen <davidz@redhat.com> + */ + +#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) +#error "Only <gio/gio.h> can be included directly." +#endif + +#ifndef __G_VOLUME_MONITOR_H__ +#define __G_VOLUME_MONITOR_H__ + +#include <glib-object.h> +#include <gio/gmount.h> +#include <gio/gvolume.h> +#include <gio/gdrive.h> + +G_BEGIN_DECLS + +#define G_TYPE_VOLUME_MONITOR (g_volume_monitor_get_type ()) +#define G_VOLUME_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_VOLUME_MONITOR, GVolumeMonitor)) +#define G_VOLUME_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_VOLUME_MONITOR, GVolumeMonitorClass)) +#define G_VOLUME_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_VOLUME_MONITOR, GVolumeMonitorClass)) +#define G_IS_VOLUME_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_VOLUME_MONITOR)) +#define G_IS_VOLUME_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_VOLUME_MONITOR)) + +/** + * G_VOLUME_MONITOR_EXTENSION_POINT_NAME: + * + * Extension point for volume monitor functionality. + * See <link linkend="gio-extension-points">Extending GIO</link>. + */ +#define G_VOLUME_MONITOR_EXTENSION_POINT_NAME "gio-volume-monitor" + +/** + * GVolumeMonitor: + * @parent_instance: The parent instance. + * + * A Volume Monitor that watches for volume events. + **/ +typedef struct _GVolumeMonitor GVolumeMonitor; +typedef struct _GVolumeMonitorClass GVolumeMonitorClass; + +struct _GVolumeMonitor { + GObject parent_instance; + + /*< private >*/ + gpointer priv; +}; + +struct _GVolumeMonitorClass { + GObjectClass parent_class; + + /*< public >*/ + /* signals */ + void (* volume_added) (GVolumeMonitor *volume_monitor, + GVolume *volume); + void (* volume_removed) (GVolumeMonitor *volume_monitor, + GVolume *volume); + void (* volume_changed) (GVolumeMonitor *volume_monitor, + GVolume *volume); + + void (* mount_added) (GVolumeMonitor *volume_monitor, + GMount *mount); + void (* mount_removed) (GVolumeMonitor *volume_monitor, + GMount *mount); + void (* mount_pre_unmount) (GVolumeMonitor *volume_monitor, + GMount *mount); + void (* mount_changed) (GVolumeMonitor *volume_monitor, + GMount *mount); + + void (* drive_connected) (GVolumeMonitor *volume_monitor, + GDrive *drive); + void (* drive_disconnected) (GVolumeMonitor *volume_monitor, + GDrive *drive); + void (* drive_changed) (GVolumeMonitor *volume_monitor, + GDrive *drive); + + /* Vtable */ + + gboolean (*is_supported) (void); + + GList * (*get_connected_drives) (GVolumeMonitor *volume_monitor); + GList * (*get_volumes) (GVolumeMonitor *volume_monitor); + GList * (*get_mounts) (GVolumeMonitor *volume_monitor); + + GVolume * (*get_volume_for_uuid) (GVolumeMonitor *volume_monitor, + const char *uuid); + + GMount * (*get_mount_for_uuid) (GVolumeMonitor *volume_monitor, + const char *uuid); + + + /* These arguments are unfortunately backwards by mistake (bug #520169) */ + GVolume * (*adopt_orphan_mount) (GMount *mount, + GVolumeMonitor *volume_monitor); + + /*< private >*/ + /* Padding for future expansion */ + void (*_g_reserved1) (void); + void (*_g_reserved2) (void); + void (*_g_reserved3) (void); + void (*_g_reserved4) (void); + void (*_g_reserved5) (void); + void (*_g_reserved6) (void); + void (*_g_reserved7) (void); + void (*_g_reserved8) (void); +}; + +GType g_volume_monitor_get_type (void) G_GNUC_CONST; + +GVolumeMonitor *g_volume_monitor_get (void); +GList * g_volume_monitor_get_connected_drives (GVolumeMonitor *volume_monitor); +GList * g_volume_monitor_get_volumes (GVolumeMonitor *volume_monitor); +GList * g_volume_monitor_get_mounts (GVolumeMonitor *volume_monitor); +GVolume * g_volume_monitor_get_volume_for_uuid (GVolumeMonitor *volume_monitor, + const char *uuid); +GMount * g_volume_monitor_get_mount_for_uuid (GVolumeMonitor *volume_monitor, + const char *uuid); + +GVolume * g_volume_monitor_adopt_orphan_mount (GMount *mount); + +G_END_DECLS + +#endif /* __G_VOLUME_MONITOR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib-object.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib-object.h new file mode 100644 index 00000000..8687ef1f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib-object.h @@ -0,0 +1,41 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 1998, 1999, 2000 Tim Janik and Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GLIB_GOBJECT_H__ +#define __GLIB_GOBJECT_H__ + +#define __GLIB_GOBJECT_H_INSIDE__ + +/* topmost include file for GObject header files */ +#include <gobject/gboxed.h> +#include <gobject/genums.h> +#include <gobject/gobject.h> +#include <gobject/gparam.h> +#include <gobject/gparamspecs.h> +#include <gobject/gsignal.h> +#include <gobject/gsourceclosure.h> +#include <gobject/gtype.h> +#include <gobject/gtypemodule.h> +#include <gobject/gtypeplugin.h> +#include <gobject/gvalue.h> +#include <gobject/gvaluearray.h> +#include <gobject/gvaluetypes.h> + +#undef __GLIB_GOBJECT_H_INSIDE__ + +#endif /* __GLIB_GOBJECT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib.h new file mode 100644 index 00000000..529c831e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib.h @@ -0,0 +1,87 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_LIB_H__ +#define __G_LIB_H__ + +#include <glib/galloca.h> +#include <glib/garray.h> +#include <glib/gasyncqueue.h> +#include <glib/gatomic.h> +#include <glib/gbacktrace.h> +#include <glib/gbase64.h> +#include <glib/gbookmarkfile.h> +#include <glib/gcache.h> +#include <glib/gchecksum.h> +#include <glib/gcompletion.h> +#include <glib/gconvert.h> +#include <glib/gdataset.h> +#include <glib/gdate.h> +#include <glib/gdir.h> +#include <glib/gerror.h> +#include <glib/gfileutils.h> +#include <glib/ghash.h> +#include <glib/ghook.h> +#include <glib/giochannel.h> +#include <glib/gkeyfile.h> +#include <glib/glist.h> +#include <glib/gmacros.h> +#include <glib/gmain.h> +#include <glib/gmappedfile.h> +#include <glib/gmarkup.h> +#include <glib/gmem.h> +#include <glib/gmessages.h> +#include <glib/gnode.h> +#include <glib/goption.h> +#include <glib/gpattern.h> +#include <glib/gprimes.h> +#include <glib/gqsort.h> +#include <glib/gquark.h> +#include <glib/gqueue.h> +#include <glib/grand.h> +#include <glib/grel.h> +#include <glib/gregex.h> +#include <glib/gscanner.h> +#include <glib/gsequence.h> +#include <glib/gshell.h> +#include <glib/gslist.h> +#include <glib/gspawn.h> +#include <glib/gstrfuncs.h> +#include <glib/gstring.h> +#include <glib/gtestutils.h> +#include <glib/gthread.h> +#include <glib/gthreadpool.h> +#include <glib/gtimer.h> +#include <glib/gtree.h> +#include <glib/gtypes.h> +#include <glib/gunicode.h> +#include <glib/gurifuncs.h> +#include <glib/gutils.h> +#ifdef G_PLATFORM_WIN32 +#include <glib/gwin32.h> +#endif + +#endif /* __G_LIB_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/galloca.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/galloca.h new file mode 100644 index 00000000..baf80096 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/galloca.h @@ -0,0 +1,60 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_ALLOCA_H__ +#define __G_ALLOCA_H__ + +#include <glib/gtypes.h> + +#ifdef __GNUC__ +/* GCC does the right thing */ +# undef alloca +# define alloca(size) __builtin_alloca (size) +#elif defined (GLIB_HAVE_ALLOCA_H) +/* a native and working alloca.h is there */ +# include <alloca.h> +#else /* !__GNUC__ && !GLIB_HAVE_ALLOCA_H */ +# if defined(_MSC_VER) || defined(__DMC__) +# include <malloc.h> +# define alloca _alloca +# else /* !_MSC_VER && !__DMC__ */ +# ifdef _AIX +# pragma alloca +# else /* !_AIX */ +# ifndef alloca /* predefined by HP cc +Olibcalls */ +G_BEGIN_DECLS +char *alloca (); +G_END_DECLS +# endif /* !alloca */ +# endif /* !_AIX */ +# endif /* !_MSC_VER && !__DMC__ */ +#endif /* !__GNUC__ && !GLIB_HAVE_ALLOCA_H */ + +#define g_alloca(size) alloca (size) +#define g_newa(struct_type, n_structs) ((struct_type*) g_alloca (sizeof (struct_type) * (gsize) (n_structs))) + + +#endif /* __G_ALLOCA_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/garray.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/garray.h new file mode 100644 index 00000000..7858e395 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/garray.h @@ -0,0 +1,167 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_ARRAY_H__ +#define __G_ARRAY_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +typedef struct _GArray GArray; +typedef struct _GByteArray GByteArray; +typedef struct _GPtrArray GPtrArray; + +struct _GArray +{ + gchar *data; + guint len; +}; + +struct _GByteArray +{ + guint8 *data; + guint len; +}; + +struct _GPtrArray +{ + gpointer *pdata; + guint len; +}; + +/* Resizable arrays. remove fills any cleared spot and shortens the + * array, while preserving the order. remove_fast will distort the + * order by moving the last element to the position of the removed. + */ + +#define g_array_append_val(a,v) g_array_append_vals (a, &(v), 1) +#define g_array_prepend_val(a,v) g_array_prepend_vals (a, &(v), 1) +#define g_array_insert_val(a,i,v) g_array_insert_vals (a, i, &(v), 1) +#define g_array_index(a,t,i) (((t*) (void *) (a)->data) [(i)]) + +GArray* g_array_new (gboolean zero_terminated, + gboolean clear_, + guint element_size); +GArray* g_array_sized_new (gboolean zero_terminated, + gboolean clear_, + guint element_size, + guint reserved_size); +gchar* g_array_free (GArray *array, + gboolean free_segment); +GArray* g_array_append_vals (GArray *array, + gconstpointer data, + guint len); +GArray* g_array_prepend_vals (GArray *array, + gconstpointer data, + guint len); +GArray* g_array_insert_vals (GArray *array, + guint index_, + gconstpointer data, + guint len); +GArray* g_array_set_size (GArray *array, + guint length); +GArray* g_array_remove_index (GArray *array, + guint index_); +GArray* g_array_remove_index_fast (GArray *array, + guint index_); +GArray* g_array_remove_range (GArray *array, + guint index_, + guint length); +void g_array_sort (GArray *array, + GCompareFunc compare_func); +void g_array_sort_with_data (GArray *array, + GCompareDataFunc compare_func, + gpointer user_data); + +/* Resizable pointer array. This interface is much less complicated + * than the above. Add appends a pointer. Remove fills any cleared + * spot and shortens the array. remove_fast will again distort order. + */ +#define g_ptr_array_index(array,index_) ((array)->pdata)[index_] +GPtrArray* g_ptr_array_new (void); +GPtrArray* g_ptr_array_sized_new (guint reserved_size); +gpointer* g_ptr_array_free (GPtrArray *array, + gboolean free_seg); +void g_ptr_array_set_size (GPtrArray *array, + gint length); +gpointer g_ptr_array_remove_index (GPtrArray *array, + guint index_); +gpointer g_ptr_array_remove_index_fast (GPtrArray *array, + guint index_); +gboolean g_ptr_array_remove (GPtrArray *array, + gpointer data); +gboolean g_ptr_array_remove_fast (GPtrArray *array, + gpointer data); +void g_ptr_array_remove_range (GPtrArray *array, + guint index_, + guint length); +void g_ptr_array_add (GPtrArray *array, + gpointer data); +void g_ptr_array_sort (GPtrArray *array, + GCompareFunc compare_func); +void g_ptr_array_sort_with_data (GPtrArray *array, + GCompareDataFunc compare_func, + gpointer user_data); +void g_ptr_array_foreach (GPtrArray *array, + GFunc func, + gpointer user_data); + + +/* Byte arrays, an array of guint8. Implemented as a GArray, + * but type-safe. + */ + +GByteArray* g_byte_array_new (void); +GByteArray* g_byte_array_sized_new (guint reserved_size); +guint8* g_byte_array_free (GByteArray *array, + gboolean free_segment); +GByteArray* g_byte_array_append (GByteArray *array, + const guint8 *data, + guint len); +GByteArray* g_byte_array_prepend (GByteArray *array, + const guint8 *data, + guint len); +GByteArray* g_byte_array_set_size (GByteArray *array, + guint length); +GByteArray* g_byte_array_remove_index (GByteArray *array, + guint index_); +GByteArray* g_byte_array_remove_index_fast (GByteArray *array, + guint index_); +GByteArray* g_byte_array_remove_range (GByteArray *array, + guint index_, + guint length); +void g_byte_array_sort (GByteArray *array, + GCompareFunc compare_func); +void g_byte_array_sort_with_data (GByteArray *array, + GCompareDataFunc compare_func, + gpointer user_data); + + +G_END_DECLS + +#endif /* __G_ARRAY_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gasyncqueue.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gasyncqueue.h new file mode 100644 index 00000000..7c860e85 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gasyncqueue.h @@ -0,0 +1,117 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_ASYNCQUEUE_H__ +#define __G_ASYNCQUEUE_H__ + +#include <glib/gthread.h> + +G_BEGIN_DECLS + +typedef struct _GAsyncQueue GAsyncQueue; + +/* Asyncronous Queues, can be used to communicate between threads */ + +/* Get a new GAsyncQueue with the ref_count 1 */ +GAsyncQueue* g_async_queue_new (void); + +GAsyncQueue* g_async_queue_new_full (GDestroyNotify item_free_func); + +/* Lock and unlock a GAsyncQueue. All functions lock the queue for + * themselves, but in certain cirumstances you want to hold the lock longer, + * thus you lock the queue, call the *_unlocked functions and unlock it again. + */ +void g_async_queue_lock (GAsyncQueue *queue); +void g_async_queue_unlock (GAsyncQueue *queue); + +/* Ref and unref the GAsyncQueue. */ +GAsyncQueue* g_async_queue_ref (GAsyncQueue *queue); +void g_async_queue_unref (GAsyncQueue *queue); + +#ifndef G_DISABLE_DEPRECATED +/* You don't have to hold the lock for calling *_ref and *_unref anymore. */ +void g_async_queue_ref_unlocked (GAsyncQueue *queue); +void g_async_queue_unref_and_unlock (GAsyncQueue *queue); +#endif /* !G_DISABLE_DEPRECATED */ + +/* Push data into the async queue. Must not be NULL. */ +void g_async_queue_push (GAsyncQueue *queue, + gpointer data); +void g_async_queue_push_unlocked (GAsyncQueue *queue, + gpointer data); + +void g_async_queue_push_sorted (GAsyncQueue *queue, + gpointer data, + GCompareDataFunc func, + gpointer user_data); +void g_async_queue_push_sorted_unlocked (GAsyncQueue *queue, + gpointer data, + GCompareDataFunc func, + gpointer user_data); + +/* Pop data from the async queue. When no data is there, the thread is blocked + * until data arrives. + */ +gpointer g_async_queue_pop (GAsyncQueue *queue); +gpointer g_async_queue_pop_unlocked (GAsyncQueue *queue); + +/* Try to pop data. NULL is returned in case of empty queue. */ +gpointer g_async_queue_try_pop (GAsyncQueue *queue); +gpointer g_async_queue_try_pop_unlocked (GAsyncQueue *queue); + + + +/* Wait for data until at maximum until end_time is reached. NULL is returned + * in case of empty queue. + */ +gpointer g_async_queue_timed_pop (GAsyncQueue *queue, + GTimeVal *end_time); +gpointer g_async_queue_timed_pop_unlocked (GAsyncQueue *queue, + GTimeVal *end_time); + +/* Return the length of the queue. Negative values mean that threads + * are waiting, positve values mean that there are entries in the + * queue. Actually this function returns the length of the queue minus + * the number of waiting threads, g_async_queue_length == 0 could also + * mean 'n' entries in the queue and 'n' thread waiting. Such can + * happen due to locking of the queue or due to scheduling. + */ +gint g_async_queue_length (GAsyncQueue *queue); +gint g_async_queue_length_unlocked (GAsyncQueue *queue); +void g_async_queue_sort (GAsyncQueue *queue, + GCompareDataFunc func, + gpointer user_data); +void g_async_queue_sort_unlocked (GAsyncQueue *queue, + GCompareDataFunc func, + gpointer user_data); + +/* Private API */ +GMutex* _g_async_queue_get_mutex (GAsyncQueue *queue); + +G_END_DECLS + +#endif /* __G_ASYNCQUEUE_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gatomic.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gatomic.h new file mode 100644 index 00000000..fefe2aff --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gatomic.h @@ -0,0 +1,68 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * g_atomic_*: atomic operations. + * Copyright (C) 2003 Sebastian Wilhelmi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_ATOMIC_H__ +#define __G_ATOMIC_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +gint g_atomic_int_exchange_and_add (volatile gint *atomic, + gint val); +void g_atomic_int_add (volatile gint *atomic, + gint val); +gboolean g_atomic_int_compare_and_exchange (volatile gint *atomic, + gint oldval, + gint newval); +gboolean g_atomic_pointer_compare_and_exchange (volatile gpointer *atomic, + gpointer oldval, + gpointer newval); + +gint g_atomic_int_get (volatile gint *atomic); +void g_atomic_int_set (volatile gint *atomic, + gint newval); +gpointer g_atomic_pointer_get (volatile gpointer *atomic); +void g_atomic_pointer_set (volatile gpointer *atomic, + gpointer newval); + +#ifndef G_ATOMIC_OP_MEMORY_BARRIER_NEEDED +# define g_atomic_int_get(atomic) (*(atomic)) +# define g_atomic_int_set(atomic, newval) ((void) (*(atomic) = (newval))) +# define g_atomic_pointer_get(atomic) (*(atomic)) +# define g_atomic_pointer_set(atomic, newval) ((void) (*(atomic) = (newval))) +#endif /* G_ATOMIC_OP_MEMORY_BARRIER_NEEDED */ + +#define g_atomic_int_inc(atomic) (g_atomic_int_add ((atomic), 1)) +#define g_atomic_int_dec_and_test(atomic) \ + (g_atomic_int_exchange_and_add ((atomic), -1) == 1) + +G_END_DECLS + +#endif /* __G_ATOMIC_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gbacktrace.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gbacktrace.h new file mode 100644 index 00000000..836264ea --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gbacktrace.h @@ -0,0 +1,61 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_BACKTRACE_H__ +#define __G_BACKTRACE_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +/* Fatal error handlers. + * g_on_error_query() will prompt the user to either + * [E]xit, [H]alt, [P]roceed or show [S]tack trace. + * g_on_error_stack_trace() invokes gdb, which attaches to the current + * process and shows a stack trace. + * These function may cause different actions on non-unix platforms. + * The prg_name arg is required by gdb to find the executable, if it is + * passed as NULL, g_on_error_query() will try g_get_prgname(). + */ +void g_on_error_query (const gchar *prg_name); +void g_on_error_stack_trace (const gchar *prg_name); + +/* Hacker macro to place breakpoints for selected machines. + * Actual use is strongly discouraged of course ;) + */ +#if (defined (__i386__) || defined (__x86_64__)) && defined (__GNUC__) && __GNUC__ >= 2 +# define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("int $03"); }G_STMT_END +#elif (defined (_MSC_VER) || defined (__DMC__)) && defined (_M_IX86) +# define G_BREAKPOINT() G_STMT_START{ __asm int 3h }G_STMT_END +#elif defined (__alpha__) && !defined(__osf__) && defined (__GNUC__) && __GNUC__ >= 2 +# define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("bpt"); }G_STMT_END +#else /* !__i386__ && !__alpha__ */ +# define G_BREAKPOINT() G_STMT_START{ raise (SIGTRAP); }G_STMT_END +#endif /* __i386__ */ + +G_END_DECLS + +#endif /* __G_BACKTRACE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gbase64.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gbase64.h new file mode 100644 index 00000000..6637984e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gbase64.h @@ -0,0 +1,50 @@ +/* gbase64.h - Base64 coding functions + * + * Copyright (C) 2005 Alexander Larsson <alexl@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_BASE64_H__ +#define __G_BASE64_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +gsize g_base64_encode_step (const guchar *in, + gsize len, + gboolean break_lines, + gchar *out, + gint *state, + gint *save); +gsize g_base64_encode_close (gboolean break_lines, + gchar *out, + gint *state, + gint *save); +gchar* g_base64_encode (const guchar *data, + gsize len) G_GNUC_MALLOC; +gsize g_base64_decode_step (const gchar *in, + gsize len, + guchar *out, + gint *state, + guint *save); +guchar *g_base64_decode (const gchar *text, + gsize *out_len) G_GNUC_MALLOC; + +G_END_DECLS + +#endif /* __G_BASE64_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gbookmarkfile.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gbookmarkfile.h new file mode 100644 index 00000000..2448e4a3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gbookmarkfile.h @@ -0,0 +1,187 @@ +/* gbookmarkfile.h: parsing and building desktop bookmarks + * + * Copyright (C) 2005-2006 Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + */ + +#ifndef __G_BOOKMARK_FILE_H__ +#define __G_BOOKMARK_FILE_H__ + +#include <glib/gerror.h> +#include <time.h> + +G_BEGIN_DECLS + +/* GError enumeration + */ +#define G_BOOKMARK_FILE_ERROR (g_bookmark_file_error_quark ()) + +typedef enum +{ + G_BOOKMARK_FILE_ERROR_INVALID_URI, + G_BOOKMARK_FILE_ERROR_INVALID_VALUE, + G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED, + G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND, + G_BOOKMARK_FILE_ERROR_READ, + G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING, + G_BOOKMARK_FILE_ERROR_WRITE, + G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND +} GBookmarkFileError; + +GQuark g_bookmark_file_error_quark (void); + +/* + * GBookmarkFile + */ +typedef struct _GBookmarkFile GBookmarkFile; + +GBookmarkFile *g_bookmark_file_new (void); +void g_bookmark_file_free (GBookmarkFile *bookmark); + +gboolean g_bookmark_file_load_from_file (GBookmarkFile *bookmark, + const gchar *filename, + GError **error); +gboolean g_bookmark_file_load_from_data (GBookmarkFile *bookmark, + const gchar *data, + gsize length, + GError **error); +gboolean g_bookmark_file_load_from_data_dirs (GBookmarkFile *bookmark, + const gchar *file, + gchar **full_path, + GError **error); +gchar * g_bookmark_file_to_data (GBookmarkFile *bookmark, + gsize *length, + GError **error) G_GNUC_MALLOC; +gboolean g_bookmark_file_to_file (GBookmarkFile *bookmark, + const gchar *filename, + GError **error); + +void g_bookmark_file_set_title (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *title); +gchar * g_bookmark_file_get_title (GBookmarkFile *bookmark, + const gchar *uri, + GError **error) G_GNUC_MALLOC; +void g_bookmark_file_set_description (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *description); +gchar * g_bookmark_file_get_description (GBookmarkFile *bookmark, + const gchar *uri, + GError **error) G_GNUC_MALLOC; +void g_bookmark_file_set_mime_type (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *mime_type); +gchar * g_bookmark_file_get_mime_type (GBookmarkFile *bookmark, + const gchar *uri, + GError **error) G_GNUC_MALLOC; +void g_bookmark_file_set_groups (GBookmarkFile *bookmark, + const gchar *uri, + const gchar **groups, + gsize length); +void g_bookmark_file_add_group (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *group); +gboolean g_bookmark_file_has_group (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *group, + GError **error); +gchar ** g_bookmark_file_get_groups (GBookmarkFile *bookmark, + const gchar *uri, + gsize *length, + GError **error) G_GNUC_MALLOC; +void g_bookmark_file_add_application (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *name, + const gchar *exec); +gboolean g_bookmark_file_has_application (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *name, + GError **error); +gchar ** g_bookmark_file_get_applications (GBookmarkFile *bookmark, + const gchar *uri, + gsize *length, + GError **error) G_GNUC_MALLOC; +gboolean g_bookmark_file_set_app_info (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *name, + const gchar *exec, + gint count, + time_t stamp, + GError **error); +gboolean g_bookmark_file_get_app_info (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *name, + gchar **exec, + guint *count, + time_t *stamp, + GError **error); +void g_bookmark_file_set_is_private (GBookmarkFile *bookmark, + const gchar *uri, + gboolean is_private); +gboolean g_bookmark_file_get_is_private (GBookmarkFile *bookmark, + const gchar *uri, + GError **error); +void g_bookmark_file_set_icon (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *href, + const gchar *mime_type); +gboolean g_bookmark_file_get_icon (GBookmarkFile *bookmark, + const gchar *uri, + gchar **href, + gchar **mime_type, + GError **error); +void g_bookmark_file_set_added (GBookmarkFile *bookmark, + const gchar *uri, + time_t added); +time_t g_bookmark_file_get_added (GBookmarkFile *bookmark, + const gchar *uri, + GError **error); +void g_bookmark_file_set_modified (GBookmarkFile *bookmark, + const gchar *uri, + time_t modified); +time_t g_bookmark_file_get_modified (GBookmarkFile *bookmark, + const gchar *uri, + GError **error); +void g_bookmark_file_set_visited (GBookmarkFile *bookmark, + const gchar *uri, + time_t visited); +time_t g_bookmark_file_get_visited (GBookmarkFile *bookmark, + const gchar *uri, + GError **error); +gboolean g_bookmark_file_has_item (GBookmarkFile *bookmark, + const gchar *uri); +gint g_bookmark_file_get_size (GBookmarkFile *bookmark); +gchar ** g_bookmark_file_get_uris (GBookmarkFile *bookmark, + gsize *length) G_GNUC_MALLOC; +gboolean g_bookmark_file_remove_group (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *group, + GError **error); +gboolean g_bookmark_file_remove_application (GBookmarkFile *bookmark, + const gchar *uri, + const gchar *name, + GError **error); +gboolean g_bookmark_file_remove_item (GBookmarkFile *bookmark, + const gchar *uri, + GError **error); +gboolean g_bookmark_file_move_item (GBookmarkFile *bookmark, + const gchar *old_uri, + const gchar *new_uri, + GError **error); + +G_END_DECLS + +#endif /* __G_BOOKMARK_FILE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gcache.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gcache.h new file mode 100644 index 00000000..93341b87 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gcache.h @@ -0,0 +1,68 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_CACHE_H__ +#define __G_CACHE_H__ + +#include <glib/glist.h> + +G_BEGIN_DECLS + +typedef struct _GCache GCache; + +typedef gpointer (*GCacheNewFunc) (gpointer key); +typedef gpointer (*GCacheDupFunc) (gpointer value); +typedef void (*GCacheDestroyFunc) (gpointer value); + +/* Caches + */ +GCache* g_cache_new (GCacheNewFunc value_new_func, + GCacheDestroyFunc value_destroy_func, + GCacheDupFunc key_dup_func, + GCacheDestroyFunc key_destroy_func, + GHashFunc hash_key_func, + GHashFunc hash_value_func, + GEqualFunc key_equal_func); +void g_cache_destroy (GCache *cache); +gpointer g_cache_insert (GCache *cache, + gpointer key); +void g_cache_remove (GCache *cache, + gconstpointer value); +void g_cache_key_foreach (GCache *cache, + GHFunc func, + gpointer user_data); +#ifndef G_DISABLE_DEPRECATED +void g_cache_value_foreach (GCache *cache, + GHFunc func, + gpointer user_data); +#endif + +G_END_DECLS + +#endif /* __G_CACHE_H__ */ + + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gchecksum.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gchecksum.h new file mode 100644 index 00000000..8f7d8082 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gchecksum.h @@ -0,0 +1,72 @@ +/* gchecksum.h - data hashing functions + * + * Copyright (C) 2007 Emmanuele Bassi <ebassi@gnome.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_CHECKSUM_H__ +#define __G_CHECKSUM_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +/** + * GChecksumType: + * @G_CHECKSUM_MD5: Use the MD5 hashing algorithm + * @G_CHECKSUM_SHA1: Use the SHA-1 hashing algorithm + * @G_CHECKSUM_SHA256: Use the SHA-256 hashing algorithm + * + * The hashing algorithm to be used by #GChecksum when performing the + * digest of some data. + * + * Note that the #GChecksumType enumeration may be extended at a later + * date to include new hashing algorithm types. + * + * Since: 2.16 + */ +typedef enum { + G_CHECKSUM_MD5, + G_CHECKSUM_SHA1, + G_CHECKSUM_SHA256 +} GChecksumType; + +typedef struct _GChecksum GChecksum; + +gssize g_checksum_type_get_length (GChecksumType checksum_type); + +GChecksum * g_checksum_new (GChecksumType checksum_type); +GChecksum * g_checksum_copy (const GChecksum *checksum); +void g_checksum_free (GChecksum *checksum); +void g_checksum_update (GChecksum *checksum, + const guchar *data, + gssize length); +G_CONST_RETURN gchar *g_checksum_get_string (GChecksum *checksum); +void g_checksum_get_digest (GChecksum *checksum, + guint8 *buffer, + gsize *digest_len); + +gchar *g_compute_checksum_for_data (GChecksumType checksum_type, + const guchar *data, + gsize length); +gchar *g_compute_checksum_for_string (GChecksumType checksum_type, + const gchar *str, + gssize length); + +G_END_DECLS + +#endif /* __G_CHECKSUM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gcompletion.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gcompletion.h new file mode 100644 index 00000000..8adb2313 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gcompletion.h @@ -0,0 +1,74 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_COMPLETION_H__ +#define __G_COMPLETION_H__ + +#include <glib/glist.h> + +G_BEGIN_DECLS + +typedef struct _GCompletion GCompletion; + +typedef gchar* (*GCompletionFunc) (gpointer); + +/* GCompletion + */ + +typedef gint (*GCompletionStrncmpFunc) (const gchar *s1, + const gchar *s2, + gsize n); + +struct _GCompletion +{ + GList* items; + GCompletionFunc func; + + gchar* prefix; + GList* cache; + GCompletionStrncmpFunc strncmp_func; +}; + +GCompletion* g_completion_new (GCompletionFunc func); +void g_completion_add_items (GCompletion* cmp, + GList* items); +void g_completion_remove_items (GCompletion* cmp, + GList* items); +void g_completion_clear_items (GCompletion* cmp); +GList* g_completion_complete (GCompletion* cmp, + const gchar* prefix, + gchar** new_prefix); +GList* g_completion_complete_utf8 (GCompletion *cmp, + const gchar* prefix, + gchar** new_prefix); +void g_completion_set_compare (GCompletion *cmp, + GCompletionStrncmpFunc strncmp_func); +void g_completion_free (GCompletion* cmp); + +G_END_DECLS + +#endif /* __G_COMPLETION_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gconvert.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gconvert.h new file mode 100644 index 00000000..9e6ca650 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gconvert.h @@ -0,0 +1,134 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_CONVERT_H__ +#define __G_CONVERT_H__ + +#include <glib/gerror.h> + +G_BEGIN_DECLS + +typedef enum +{ + G_CONVERT_ERROR_NO_CONVERSION, + G_CONVERT_ERROR_ILLEGAL_SEQUENCE, + G_CONVERT_ERROR_FAILED, + G_CONVERT_ERROR_PARTIAL_INPUT, + G_CONVERT_ERROR_BAD_URI, + G_CONVERT_ERROR_NOT_ABSOLUTE_PATH +} GConvertError; + +#define G_CONVERT_ERROR g_convert_error_quark() +GQuark g_convert_error_quark (void); + +/* Thin wrappers around iconv + */ +typedef struct _GIConv *GIConv; + +GIConv g_iconv_open (const gchar *to_codeset, + const gchar *from_codeset); +gsize g_iconv (GIConv converter, + gchar **inbuf, + gsize *inbytes_left, + gchar **outbuf, + gsize *outbytes_left); +gint g_iconv_close (GIConv converter); + + +gchar* g_convert (const gchar *str, + gssize len, + const gchar *to_codeset, + const gchar *from_codeset, + gsize *bytes_read, + gsize *bytes_written, + GError **error) G_GNUC_MALLOC; +gchar* g_convert_with_iconv (const gchar *str, + gssize len, + GIConv converter, + gsize *bytes_read, + gsize *bytes_written, + GError **error) G_GNUC_MALLOC; +gchar* g_convert_with_fallback (const gchar *str, + gssize len, + const gchar *to_codeset, + const gchar *from_codeset, + gchar *fallback, + gsize *bytes_read, + gsize *bytes_written, + GError **error) G_GNUC_MALLOC; + + +/* Convert between libc's idea of strings and UTF-8. + */ +gchar* g_locale_to_utf8 (const gchar *opsysstring, + gssize len, + gsize *bytes_read, + gsize *bytes_written, + GError **error) G_GNUC_MALLOC; +gchar* g_locale_from_utf8 (const gchar *utf8string, + gssize len, + gsize *bytes_read, + gsize *bytes_written, + GError **error) G_GNUC_MALLOC; + +/* Convert between the operating system (or C runtime) + * representation of file names and UTF-8. + */ +#ifdef G_OS_WIN32 +#define g_filename_to_utf8 g_filename_to_utf8_utf8 +#define g_filename_from_utf8 g_filename_from_utf8_utf8 +#define g_filename_from_uri g_filename_from_uri_utf8 +#define g_filename_to_uri g_filename_to_uri_utf8 +#endif + +gchar* g_filename_to_utf8 (const gchar *opsysstring, + gssize len, + gsize *bytes_read, + gsize *bytes_written, + GError **error) G_GNUC_MALLOC; +gchar* g_filename_from_utf8 (const gchar *utf8string, + gssize len, + gsize *bytes_read, + gsize *bytes_written, + GError **error) G_GNUC_MALLOC; + +gchar *g_filename_from_uri (const gchar *uri, + gchar **hostname, + GError **error) G_GNUC_MALLOC; + +gchar *g_filename_to_uri (const gchar *filename, + const gchar *hostname, + GError **error) G_GNUC_MALLOC; +gchar *g_filename_display_name (const gchar *filename) G_GNUC_MALLOC; +gboolean g_get_filename_charsets (G_CONST_RETURN gchar ***charsets); + +gchar *g_filename_display_basename (const gchar *filename) G_GNUC_MALLOC; + +gchar **g_uri_list_extract_uris (const gchar *uri_list) G_GNUC_MALLOC; + +G_END_DECLS + +#endif /* __G_CONVERT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gdataset.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gdataset.h new file mode 100644 index 00000000..0376cac9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gdataset.h @@ -0,0 +1,122 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_DATASET_H__ +#define __G_DATASET_H__ + +#include <glib/gquark.h> + +G_BEGIN_DECLS + +typedef struct _GData GData; + +typedef void (*GDataForeachFunc) (GQuark key_id, + gpointer data, + gpointer user_data); + +/* Keyed Data List + */ +void g_datalist_init (GData **datalist); +void g_datalist_clear (GData **datalist); +gpointer g_datalist_id_get_data (GData **datalist, + GQuark key_id); +void g_datalist_id_set_data_full (GData **datalist, + GQuark key_id, + gpointer data, + GDestroyNotify destroy_func); +gpointer g_datalist_id_remove_no_notify (GData **datalist, + GQuark key_id); +void g_datalist_foreach (GData **datalist, + GDataForeachFunc func, + gpointer user_data); + +/** + * G_DATALIST_FLAGS_MASK: + * + * A bitmask that restricts the possible flags passed to + * g_datalist_set_flags(). Passing a flags value where + * flags & ~G_DATALIST_FLAGS_MASK != 0 is an error. + */ +#define G_DATALIST_FLAGS_MASK 0x3 + +void g_datalist_set_flags (GData **datalist, + guint flags); +void g_datalist_unset_flags (GData **datalist, + guint flags); +guint g_datalist_get_flags (GData **datalist); + +#define g_datalist_id_set_data(dl, q, d) \ + g_datalist_id_set_data_full ((dl), (q), (d), NULL) +#define g_datalist_id_remove_data(dl, q) \ + g_datalist_id_set_data ((dl), (q), NULL) +#define g_datalist_get_data(dl, k) \ + (g_datalist_id_get_data ((dl), g_quark_try_string (k))) +#define g_datalist_set_data_full(dl, k, d, f) \ + g_datalist_id_set_data_full ((dl), g_quark_from_string (k), (d), (f)) +#define g_datalist_remove_no_notify(dl, k) \ + g_datalist_id_remove_no_notify ((dl), g_quark_try_string (k)) +#define g_datalist_set_data(dl, k, d) \ + g_datalist_set_data_full ((dl), (k), (d), NULL) +#define g_datalist_remove_data(dl, k) \ + g_datalist_id_set_data ((dl), g_quark_try_string (k), NULL) + + +/* Location Associated Keyed Data + */ +void g_dataset_destroy (gconstpointer dataset_location); +gpointer g_dataset_id_get_data (gconstpointer dataset_location, + GQuark key_id); +void g_dataset_id_set_data_full (gconstpointer dataset_location, + GQuark key_id, + gpointer data, + GDestroyNotify destroy_func); +gpointer g_dataset_id_remove_no_notify (gconstpointer dataset_location, + GQuark key_id); +void g_dataset_foreach (gconstpointer dataset_location, + GDataForeachFunc func, + gpointer user_data); +#define g_dataset_id_set_data(l, k, d) \ + g_dataset_id_set_data_full ((l), (k), (d), NULL) +#define g_dataset_id_remove_data(l, k) \ + g_dataset_id_set_data ((l), (k), NULL) +#define g_dataset_get_data(l, k) \ + (g_dataset_id_get_data ((l), g_quark_try_string (k))) +#define g_dataset_set_data_full(l, k, d, f) \ + g_dataset_id_set_data_full ((l), g_quark_from_string (k), (d), (f)) +#define g_dataset_remove_no_notify(l, k) \ + g_dataset_id_remove_no_notify ((l), g_quark_try_string (k)) +#define g_dataset_set_data(l, k, d) \ + g_dataset_set_data_full ((l), (k), (d), NULL) +#define g_dataset_remove_data(l, k) \ + g_dataset_id_set_data ((l), g_quark_try_string (k), NULL) + +G_END_DECLS + +#endif /* __G_DATASET_H__ */ + + + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gdate.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gdate.h new file mode 100644 index 00000000..8ec02afc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gdate.h @@ -0,0 +1,260 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_DATE_H__ +#define __G_DATE_H__ + +#include <time.h> + +#include <glib/gtypes.h> +#include <glib/gquark.h> + +G_BEGIN_DECLS + +/* GDate + * + * Date calculations (not time for now, to be resolved). These are a + * mutant combination of Steffen Beyer's DateCalc routines + * (http://www.perl.com/CPAN/authors/id/STBEY/) and Jon Trowbridge's + * date routines (written for in-house software). Written by Havoc + * Pennington <hp@pobox.com> + */ + +typedef gint32 GTime; +typedef guint16 GDateYear; +typedef guint8 GDateDay; /* day of the month */ +typedef struct _GDate GDate; + +/* enum used to specify order of appearance in parsed date strings */ +typedef enum +{ + G_DATE_DAY = 0, + G_DATE_MONTH = 1, + G_DATE_YEAR = 2 +} GDateDMY; + +/* actual week and month values */ +typedef enum +{ + G_DATE_BAD_WEEKDAY = 0, + G_DATE_MONDAY = 1, + G_DATE_TUESDAY = 2, + G_DATE_WEDNESDAY = 3, + G_DATE_THURSDAY = 4, + G_DATE_FRIDAY = 5, + G_DATE_SATURDAY = 6, + G_DATE_SUNDAY = 7 +} GDateWeekday; +typedef enum +{ + G_DATE_BAD_MONTH = 0, + G_DATE_JANUARY = 1, + G_DATE_FEBRUARY = 2, + G_DATE_MARCH = 3, + G_DATE_APRIL = 4, + G_DATE_MAY = 5, + G_DATE_JUNE = 6, + G_DATE_JULY = 7, + G_DATE_AUGUST = 8, + G_DATE_SEPTEMBER = 9, + G_DATE_OCTOBER = 10, + G_DATE_NOVEMBER = 11, + G_DATE_DECEMBER = 12 +} GDateMonth; + +#define G_DATE_BAD_JULIAN 0U +#define G_DATE_BAD_DAY 0U +#define G_DATE_BAD_YEAR 0U + +/* Note: directly manipulating structs is generally a bad idea, but + * in this case it's an *incredibly* bad idea, because all or part + * of this struct can be invalid at any given time. Use the functions, + * or you will get hosed, I promise. + */ +struct _GDate +{ + guint julian_days : 32; /* julian days representation - we use a + * bitfield hoping that 64 bit platforms + * will pack this whole struct in one big + * int + */ + + guint julian : 1; /* julian is valid */ + guint dmy : 1; /* dmy is valid */ + + /* DMY representation */ + guint day : 6; + guint month : 4; + guint year : 16; +}; + +/* g_date_new() returns an invalid date, you then have to _set() stuff + * to get a usable object. You can also allocate a GDate statically, + * then call g_date_clear() to initialize. + */ +GDate* g_date_new (void); +GDate* g_date_new_dmy (GDateDay day, + GDateMonth month, + GDateYear year); +GDate* g_date_new_julian (guint32 julian_day); +void g_date_free (GDate *date); + +/* check g_date_valid() after doing an operation that might fail, like + * _parse. Almost all g_date operations are undefined on invalid + * dates (the exceptions are the mutators, since you need those to + * return to validity). + */ +gboolean g_date_valid (const GDate *date); +gboolean g_date_valid_day (GDateDay day) G_GNUC_CONST; +gboolean g_date_valid_month (GDateMonth month) G_GNUC_CONST; +gboolean g_date_valid_year (GDateYear year) G_GNUC_CONST; +gboolean g_date_valid_weekday (GDateWeekday weekday) G_GNUC_CONST; +gboolean g_date_valid_julian (guint32 julian_date) G_GNUC_CONST; +gboolean g_date_valid_dmy (GDateDay day, + GDateMonth month, + GDateYear year) G_GNUC_CONST; + +GDateWeekday g_date_get_weekday (const GDate *date); +GDateMonth g_date_get_month (const GDate *date); +GDateYear g_date_get_year (const GDate *date); +GDateDay g_date_get_day (const GDate *date); +guint32 g_date_get_julian (const GDate *date); +guint g_date_get_day_of_year (const GDate *date); +/* First monday/sunday is the start of week 1; if we haven't reached + * that day, return 0. These are not ISO weeks of the year; that + * routine needs to be added. + * these functions return the number of weeks, starting on the + * corrsponding day + */ +guint g_date_get_monday_week_of_year (const GDate *date); +guint g_date_get_sunday_week_of_year (const GDate *date); +guint g_date_get_iso8601_week_of_year (const GDate *date); + +/* If you create a static date struct you need to clear it to get it + * in a sane state before use. You can clear a whole array at + * once with the ndates argument. + */ +void g_date_clear (GDate *date, + guint n_dates); + +/* The parse routine is meant for dates typed in by a user, so it + * permits many formats but tries to catch common typos. If your data + * needs to be strictly validated, it is not an appropriate function. + */ +void g_date_set_parse (GDate *date, + const gchar *str); +void g_date_set_time_t (GDate *date, + time_t timet); +void g_date_set_time_val (GDate *date, + GTimeVal *timeval); +#ifndef G_DISABLE_DEPRECATED +void g_date_set_time (GDate *date, + GTime time_); +#endif +void g_date_set_month (GDate *date, + GDateMonth month); +void g_date_set_day (GDate *date, + GDateDay day); +void g_date_set_year (GDate *date, + GDateYear year); +void g_date_set_dmy (GDate *date, + GDateDay day, + GDateMonth month, + GDateYear y); +void g_date_set_julian (GDate *date, + guint32 julian_date); +gboolean g_date_is_first_of_month (const GDate *date); +gboolean g_date_is_last_of_month (const GDate *date); + +/* To go forward by some number of weeks just go forward weeks*7 days */ +void g_date_add_days (GDate *date, + guint n_days); +void g_date_subtract_days (GDate *date, + guint n_days); + +/* If you add/sub months while day > 28, the day might change */ +void g_date_add_months (GDate *date, + guint n_months); +void g_date_subtract_months (GDate *date, + guint n_months); + +/* If it's feb 29, changing years can move you to the 28th */ +void g_date_add_years (GDate *date, + guint n_years); +void g_date_subtract_years (GDate *date, + guint n_years); +gboolean g_date_is_leap_year (GDateYear year) G_GNUC_CONST; +guint8 g_date_get_days_in_month (GDateMonth month, + GDateYear year) G_GNUC_CONST; +guint8 g_date_get_monday_weeks_in_year (GDateYear year) G_GNUC_CONST; +guint8 g_date_get_sunday_weeks_in_year (GDateYear year) G_GNUC_CONST; + +/* Returns the number of days between the two dates. If date2 comes + before date1, a negative value is return. */ +gint g_date_days_between (const GDate *date1, + const GDate *date2); + +/* qsort-friendly (with a cast...) */ +gint g_date_compare (const GDate *lhs, + const GDate *rhs); +void g_date_to_struct_tm (const GDate *date, + struct tm *tm); + +void g_date_clamp (GDate *date, + const GDate *min_date, + const GDate *max_date); + +/* Swap date1 and date2's values if date1 > date2. */ +void g_date_order (GDate *date1, GDate *date2); + +/* Just like strftime() except you can only use date-related formats. + * Using a time format is undefined. + */ +gsize g_date_strftime (gchar *s, + gsize slen, + const gchar *format, + const GDate *date); + +#ifndef G_DISABLE_DEPRECATED + +#define g_date_weekday g_date_get_weekday +#define g_date_month g_date_get_month +#define g_date_year g_date_get_year +#define g_date_day g_date_get_day +#define g_date_julian g_date_get_julian +#define g_date_day_of_year g_date_get_day_of_year +#define g_date_monday_week_of_year g_date_get_monday_week_of_year +#define g_date_sunday_week_of_year g_date_get_sunday_week_of_year +#define g_date_days_in_month g_date_get_days_in_month +#define g_date_monday_weeks_in_year g_date_get_monday_weeks_in_year +#define g_date_sunday_weeks_in_year g_date_get_sunday_weeks_in_year + +#endif /* G_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __G_DATE_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gdir.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gdir.h new file mode 100644 index 00000000..011174eb --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gdir.h @@ -0,0 +1,47 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * gdir.c: Simplified wrapper around the DIRENT functions. + * + * Copyright 2001 Hans Breuer + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __G_DIR_H__ +#define __G_DIR_H__ + +#include <glib/gerror.h> + +G_BEGIN_DECLS + +typedef struct _GDir GDir; + +#ifdef G_OS_WIN32 +/* For DLL ABI stability, keep old names for old (non-UTF-8) functionality. */ +#define g_dir_open g_dir_open_utf8 +#define g_dir_read_name g_dir_read_name_utf8 +#endif + +GDir * g_dir_open (const gchar *path, + guint flags, + GError **error); +G_CONST_RETURN gchar *g_dir_read_name (GDir *dir); +void g_dir_rewind (GDir *dir); +void g_dir_close (GDir *dir); + +G_END_DECLS + +#endif /* __G_DIR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gerror.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gerror.h new file mode 100644 index 00000000..7fa8ef0f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gerror.h @@ -0,0 +1,84 @@ +/* gerror.h - Error reporting system + * + * Copyright 2000 Red Hat, Inc. + * + * The Gnome Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * The Gnome Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with the Gnome Library; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_ERROR_H__ +#define __G_ERROR_H__ + +#include <glib/gquark.h> + +G_BEGIN_DECLS + +typedef struct _GError GError; + +struct _GError +{ + GQuark domain; + gint code; + gchar *message; +}; + +GError* g_error_new (GQuark domain, + gint code, + const gchar *format, + ...) G_GNUC_PRINTF (3, 4); + +GError* g_error_new_literal (GQuark domain, + gint code, + const gchar *message); + +void g_error_free (GError *error); +GError* g_error_copy (const GError *error); + +gboolean g_error_matches (const GError *error, + GQuark domain, + gint code); + +/* if (err) *err = g_error_new(domain, code, format, ...), also has + * some sanity checks. + */ +void g_set_error (GError **err, + GQuark domain, + gint code, + const gchar *format, + ...) G_GNUC_PRINTF (4, 5); + +/* if (dest) *dest = src; also has some sanity checks. + */ +void g_propagate_error (GError **dest, + GError *src); + +/* if (err && *err) { g_error_free(*err); *err = NULL; } */ +void g_clear_error (GError **err); + +/* if (err) prefix the formatted string to the ->message */ +void g_prefix_error (GError **err, + const gchar *format, + ...) G_GNUC_PRINTF (2, 3); + +/* g_propagate_error then g_error_prefix on dest */ +void g_propagate_prefixed_error (GError **dest, + GError *src, + const gchar *format, + ...) G_GNUC_PRINTF (3, 4); + +G_END_DECLS + +#endif /* __G_ERROR_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gfileutils.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gfileutils.h new file mode 100644 index 00000000..58f2d23a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gfileutils.h @@ -0,0 +1,121 @@ +/* gfileutils.h - File utility functions + * + * Copyright 2000 Red Hat, Inc. + * + * GLib is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * GLib is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with GLib; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_FILEUTILS_H__ +#define __G_FILEUTILS_H__ + +#include <glib/gerror.h> + +G_BEGIN_DECLS + +#define G_FILE_ERROR g_file_error_quark () + +typedef enum +{ + G_FILE_ERROR_EXIST, + G_FILE_ERROR_ISDIR, + G_FILE_ERROR_ACCES, + G_FILE_ERROR_NAMETOOLONG, + G_FILE_ERROR_NOENT, + G_FILE_ERROR_NOTDIR, + G_FILE_ERROR_NXIO, + G_FILE_ERROR_NODEV, + G_FILE_ERROR_ROFS, + G_FILE_ERROR_TXTBSY, + G_FILE_ERROR_FAULT, + G_FILE_ERROR_LOOP, + G_FILE_ERROR_NOSPC, + G_FILE_ERROR_NOMEM, + G_FILE_ERROR_MFILE, + G_FILE_ERROR_NFILE, + G_FILE_ERROR_BADF, + G_FILE_ERROR_INVAL, + G_FILE_ERROR_PIPE, + G_FILE_ERROR_AGAIN, + G_FILE_ERROR_INTR, + G_FILE_ERROR_IO, + G_FILE_ERROR_PERM, + G_FILE_ERROR_NOSYS, + G_FILE_ERROR_FAILED +} GFileError; + +/* For backward-compat reasons, these are synced to an old + * anonymous enum in libgnome. But don't use that enum + * in new code. + */ +typedef enum +{ + G_FILE_TEST_IS_REGULAR = 1 << 0, + G_FILE_TEST_IS_SYMLINK = 1 << 1, + G_FILE_TEST_IS_DIR = 1 << 2, + G_FILE_TEST_IS_EXECUTABLE = 1 << 3, + G_FILE_TEST_EXISTS = 1 << 4 +} GFileTest; + +GQuark g_file_error_quark (void); +/* So other code can generate a GFileError */ +GFileError g_file_error_from_errno (gint err_no); + +#ifdef G_OS_WIN32 +#define g_file_test g_file_test_utf8 +#define g_file_get_contents g_file_get_contents_utf8 +#define g_mkstemp g_mkstemp_utf8 +#define g_file_open_tmp g_file_open_tmp_utf8 +#endif + +gboolean g_file_test (const gchar *filename, + GFileTest test); +gboolean g_file_get_contents (const gchar *filename, + gchar **contents, + gsize *length, + GError **error); +gboolean g_file_set_contents (const gchar *filename, + const gchar *contents, + gssize length, + GError **error); +gchar *g_file_read_link (const gchar *filename, + GError **error); + +/* Wrapper / workalike for mkstemp() */ +gint g_mkstemp (gchar *tmpl); + +/* Wrapper for g_mkstemp */ +gint g_file_open_tmp (const gchar *tmpl, + gchar **name_used, + GError **error); + +char *g_format_size_for_display (goffset size); + +gchar *g_build_path (const gchar *separator, + const gchar *first_element, + ...) G_GNUC_MALLOC G_GNUC_NULL_TERMINATED; +gchar *g_build_pathv (const gchar *separator, + gchar **args) G_GNUC_MALLOC; + +gchar *g_build_filename (const gchar *first_element, + ...) G_GNUC_MALLOC G_GNUC_NULL_TERMINATED; +gchar *g_build_filenamev (gchar **args) G_GNUC_MALLOC; + +int g_mkdir_with_parents (const gchar *pathname, + int mode); + +G_END_DECLS + +#endif /* __G_FILEUTILS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/ghash.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/ghash.h new file mode 100644 index 00000000..17ca7de6 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/ghash.h @@ -0,0 +1,142 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_HASH_H__ +#define __G_HASH_H__ + +#include <glib/gtypes.h> +#include <glib/glist.h> + +G_BEGIN_DECLS + +typedef struct _GHashTable GHashTable; + +typedef gboolean (*GHRFunc) (gpointer key, + gpointer value, + gpointer user_data); + +typedef struct _GHashTableIter GHashTableIter; + +struct _GHashTableIter +{ + /*< private >*/ + gpointer dummy1; + gpointer dummy2; + gpointer dummy3; + int dummy4; + gboolean dummy5; + gpointer dummy6; +}; + +/* Hash tables + */ +GHashTable* g_hash_table_new (GHashFunc hash_func, + GEqualFunc key_equal_func); +GHashTable* g_hash_table_new_full (GHashFunc hash_func, + GEqualFunc key_equal_func, + GDestroyNotify key_destroy_func, + GDestroyNotify value_destroy_func); +void g_hash_table_destroy (GHashTable *hash_table); +void g_hash_table_insert (GHashTable *hash_table, + gpointer key, + gpointer value); +void g_hash_table_replace (GHashTable *hash_table, + gpointer key, + gpointer value); +gboolean g_hash_table_remove (GHashTable *hash_table, + gconstpointer key); +void g_hash_table_remove_all (GHashTable *hash_table); +gboolean g_hash_table_steal (GHashTable *hash_table, + gconstpointer key); +void g_hash_table_steal_all (GHashTable *hash_table); +gpointer g_hash_table_lookup (GHashTable *hash_table, + gconstpointer key); +gboolean g_hash_table_lookup_extended (GHashTable *hash_table, + gconstpointer lookup_key, + gpointer *orig_key, + gpointer *value); +void g_hash_table_foreach (GHashTable *hash_table, + GHFunc func, + gpointer user_data); +gpointer g_hash_table_find (GHashTable *hash_table, + GHRFunc predicate, + gpointer user_data); +guint g_hash_table_foreach_remove (GHashTable *hash_table, + GHRFunc func, + gpointer user_data); +guint g_hash_table_foreach_steal (GHashTable *hash_table, + GHRFunc func, + gpointer user_data); +guint g_hash_table_size (GHashTable *hash_table); +GList * g_hash_table_get_keys (GHashTable *hash_table); +GList * g_hash_table_get_values (GHashTable *hash_table); + +void g_hash_table_iter_init (GHashTableIter *iter, + GHashTable *hash_table); +gboolean g_hash_table_iter_next (GHashTableIter *iter, + gpointer *key, + gpointer *value); +GHashTable* g_hash_table_iter_get_hash_table (GHashTableIter *iter); +void g_hash_table_iter_remove (GHashTableIter *iter); +void g_hash_table_iter_steal (GHashTableIter *iter); + +/* keeping hash tables alive */ +GHashTable* g_hash_table_ref (GHashTable *hash_table); +void g_hash_table_unref (GHashTable *hash_table); + +#ifndef G_DISABLE_DEPRECATED + +/* The following two functions are deprecated and will be removed in + * the next major release. They do no good. */ +#define g_hash_table_freeze(hash_table) ((void)0) +#define g_hash_table_thaw(hash_table) ((void)0) + +#endif /* G_DISABLE_DEPRECATED */ + +/* Hash Functions + */ +gboolean g_str_equal (gconstpointer v1, + gconstpointer v2); +guint g_str_hash (gconstpointer v); + +gboolean g_int_equal (gconstpointer v1, + gconstpointer v2); +guint g_int_hash (gconstpointer v); + +/* This "hash" function will just return the key's address as an + * unsigned integer. Useful for hashing on plain addresses or + * simple integer values. + * Passing NULL into g_hash_table_new() as GHashFunc has the + * same effect as passing g_direct_hash(). + */ +guint g_direct_hash (gconstpointer v) G_GNUC_CONST; +gboolean g_direct_equal (gconstpointer v1, + gconstpointer v2) G_GNUC_CONST; + +G_END_DECLS + +#endif /* __G_HASH_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/ghook.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/ghook.h new file mode 100644 index 00000000..cb4f8e1c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/ghook.h @@ -0,0 +1,178 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_HOOK_H__ +#define __G_HOOK_H__ + +#include <glib/gmem.h> + +G_BEGIN_DECLS + + +/* --- typedefs --- */ +typedef struct _GHook GHook; +typedef struct _GHookList GHookList; + +typedef gint (*GHookCompareFunc) (GHook *new_hook, + GHook *sibling); +typedef gboolean (*GHookFindFunc) (GHook *hook, + gpointer data); +typedef void (*GHookMarshaller) (GHook *hook, + gpointer marshal_data); +typedef gboolean (*GHookCheckMarshaller) (GHook *hook, + gpointer marshal_data); +typedef void (*GHookFunc) (gpointer data); +typedef gboolean (*GHookCheckFunc) (gpointer data); +typedef void (*GHookFinalizeFunc) (GHookList *hook_list, + GHook *hook); +typedef enum +{ + G_HOOK_FLAG_ACTIVE = 1 << 0, + G_HOOK_FLAG_IN_CALL = 1 << 1, + G_HOOK_FLAG_MASK = 0x0f +} GHookFlagMask; +#define G_HOOK_FLAG_USER_SHIFT (4) + + +/* --- structures --- */ +struct _GHookList +{ + gulong seq_id; + guint hook_size : 16; + guint is_setup : 1; + GHook *hooks; + gpointer dummy3; + GHookFinalizeFunc finalize_hook; + gpointer dummy[2]; +}; +struct _GHook +{ + gpointer data; + GHook *next; + GHook *prev; + guint ref_count; + gulong hook_id; + guint flags; + gpointer func; + GDestroyNotify destroy; +}; + + +/* --- macros --- */ +#define G_HOOK(hook) ((GHook*) (hook)) +#define G_HOOK_FLAGS(hook) (G_HOOK (hook)->flags) +#define G_HOOK_ACTIVE(hook) ((G_HOOK_FLAGS (hook) & \ + G_HOOK_FLAG_ACTIVE) != 0) +#define G_HOOK_IN_CALL(hook) ((G_HOOK_FLAGS (hook) & \ + G_HOOK_FLAG_IN_CALL) != 0) +#define G_HOOK_IS_VALID(hook) (G_HOOK (hook)->hook_id != 0 && \ + (G_HOOK_FLAGS (hook) & \ + G_HOOK_FLAG_ACTIVE)) +#define G_HOOK_IS_UNLINKED(hook) (G_HOOK (hook)->next == NULL && \ + G_HOOK (hook)->prev == NULL && \ + G_HOOK (hook)->hook_id == 0 && \ + G_HOOK (hook)->ref_count == 0) + + +/* --- prototypes --- */ +/* callback maintenance functions */ +void g_hook_list_init (GHookList *hook_list, + guint hook_size); +void g_hook_list_clear (GHookList *hook_list); +GHook* g_hook_alloc (GHookList *hook_list); +void g_hook_free (GHookList *hook_list, + GHook *hook); +GHook * g_hook_ref (GHookList *hook_list, + GHook *hook); +void g_hook_unref (GHookList *hook_list, + GHook *hook); +gboolean g_hook_destroy (GHookList *hook_list, + gulong hook_id); +void g_hook_destroy_link (GHookList *hook_list, + GHook *hook); +void g_hook_prepend (GHookList *hook_list, + GHook *hook); +void g_hook_insert_before (GHookList *hook_list, + GHook *sibling, + GHook *hook); +void g_hook_insert_sorted (GHookList *hook_list, + GHook *hook, + GHookCompareFunc func); +GHook* g_hook_get (GHookList *hook_list, + gulong hook_id); +GHook* g_hook_find (GHookList *hook_list, + gboolean need_valids, + GHookFindFunc func, + gpointer data); +GHook* g_hook_find_data (GHookList *hook_list, + gboolean need_valids, + gpointer data); +GHook* g_hook_find_func (GHookList *hook_list, + gboolean need_valids, + gpointer func); +GHook* g_hook_find_func_data (GHookList *hook_list, + gboolean need_valids, + gpointer func, + gpointer data); +/* return the first valid hook, and increment its reference count */ +GHook* g_hook_first_valid (GHookList *hook_list, + gboolean may_be_in_call); +/* return the next valid hook with incremented reference count, and + * decrement the reference count of the original hook + */ +GHook* g_hook_next_valid (GHookList *hook_list, + GHook *hook, + gboolean may_be_in_call); +/* GHookCompareFunc implementation to insert hooks sorted by their id */ +gint g_hook_compare_ids (GHook *new_hook, + GHook *sibling); +/* convenience macros */ +#define g_hook_append( hook_list, hook ) \ + g_hook_insert_before ((hook_list), NULL, (hook)) +/* invoke all valid hooks with the (*GHookFunc) signature. + */ +void g_hook_list_invoke (GHookList *hook_list, + gboolean may_recurse); +/* invoke all valid hooks with the (*GHookCheckFunc) signature, + * and destroy the hook if FALSE is returned. + */ +void g_hook_list_invoke_check (GHookList *hook_list, + gboolean may_recurse); +/* invoke a marshaller on all valid hooks. + */ +void g_hook_list_marshal (GHookList *hook_list, + gboolean may_recurse, + GHookMarshaller marshaller, + gpointer marshal_data); +void g_hook_list_marshal_check (GHookList *hook_list, + gboolean may_recurse, + GHookCheckMarshaller marshaller, + gpointer marshal_data); + +G_END_DECLS + +#endif /* __G_HOOK_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gi18n-lib.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gi18n-lib.h new file mode 100644 index 00000000..674466e4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gi18n-lib.h @@ -0,0 +1,37 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997, 2002 Peter Mattis, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __G_I18N_LIB_H__ +#define __G_I18N_LIB_H__ + +#include <glib/gstrfuncs.h> + +#include <libintl.h> +#include <string.h> + +#ifndef GETTEXT_PACKAGE +#error You must define GETTEXT_PACKAGE before including gi18n-lib.h. +#endif + +#define _(String) dgettext (GETTEXT_PACKAGE, String) +#define Q_(String) g_dpgettext (GETTEXT_PACKAGE, String, 0) +#define N_(String) (String) +#define C_(Context,String) g_dpgettext (GETTEXT_PACKAGE, Context "\004" String, strlen (Context) + 1) + + +#endif /* __G_I18N_LIB_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gi18n.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gi18n.h new file mode 100644 index 00000000..c94e8c13 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gi18n.h @@ -0,0 +1,34 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997, 2002 Peter Mattis, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __G_I18N_H__ +#define __G_I18N_H__ + +#include <glib/gstrfuncs.h> +#include <libintl.h> +#include <string.h> + +#define _(String) gettext (String) +#define Q_(String) g_dpgettext (NULL, String, 0) +#define N_(String) (String) +#define C_(Context,String) g_dpgettext (NULL, Context "\004" String, strlen (Context) + 1) + + +#endif /* __G_I18N_H__ */ + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/giochannel.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/giochannel.h new file mode 100644 index 00000000..846c9ba4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/giochannel.h @@ -0,0 +1,354 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_IOCHANNEL_H__ +#define __G_IOCHANNEL_H__ + +#include <glib/gconvert.h> +#include <glib/gmain.h> +#include <glib/gstring.h> + +G_BEGIN_DECLS + +/* GIOChannel + */ + +typedef struct _GIOChannel GIOChannel; +typedef struct _GIOFuncs GIOFuncs; + +typedef enum +{ + G_IO_ERROR_NONE, + G_IO_ERROR_AGAIN, + G_IO_ERROR_INVAL, + G_IO_ERROR_UNKNOWN +} GIOError; + +#define G_IO_CHANNEL_ERROR g_io_channel_error_quark() + +typedef enum +{ + /* Derived from errno */ + G_IO_CHANNEL_ERROR_FBIG, + G_IO_CHANNEL_ERROR_INVAL, + G_IO_CHANNEL_ERROR_IO, + G_IO_CHANNEL_ERROR_ISDIR, + G_IO_CHANNEL_ERROR_NOSPC, + G_IO_CHANNEL_ERROR_NXIO, + G_IO_CHANNEL_ERROR_OVERFLOW, + G_IO_CHANNEL_ERROR_PIPE, + /* Other */ + G_IO_CHANNEL_ERROR_FAILED +} GIOChannelError; + +typedef enum +{ + G_IO_STATUS_ERROR, + G_IO_STATUS_NORMAL, + G_IO_STATUS_EOF, + G_IO_STATUS_AGAIN +} GIOStatus; + +typedef enum +{ + G_SEEK_CUR, + G_SEEK_SET, + G_SEEK_END +} GSeekType; + +typedef enum +{ + G_IO_IN GLIB_SYSDEF_POLLIN, + G_IO_OUT GLIB_SYSDEF_POLLOUT, + G_IO_PRI GLIB_SYSDEF_POLLPRI, + G_IO_ERR GLIB_SYSDEF_POLLERR, + G_IO_HUP GLIB_SYSDEF_POLLHUP, + G_IO_NVAL GLIB_SYSDEF_POLLNVAL +} GIOCondition; + +typedef enum +{ + G_IO_FLAG_APPEND = 1 << 0, + G_IO_FLAG_NONBLOCK = 1 << 1, + G_IO_FLAG_IS_READABLE = 1 << 2, /* Read only flag */ + G_IO_FLAG_IS_WRITEABLE = 1 << 3, /* Read only flag */ + G_IO_FLAG_IS_SEEKABLE = 1 << 4, /* Read only flag */ + G_IO_FLAG_MASK = (1 << 5) - 1, + G_IO_FLAG_GET_MASK = G_IO_FLAG_MASK, + G_IO_FLAG_SET_MASK = G_IO_FLAG_APPEND | G_IO_FLAG_NONBLOCK +} GIOFlags; + +struct _GIOChannel +{ + /*< private >*/ + gint ref_count; + GIOFuncs *funcs; + + gchar *encoding; + GIConv read_cd; + GIConv write_cd; + gchar *line_term; /* String which indicates the end of a line of text */ + guint line_term_len; /* So we can have null in the line term */ + + gsize buf_size; + GString *read_buf; /* Raw data from the channel */ + GString *encoded_read_buf; /* Channel data converted to UTF-8 */ + GString *write_buf; /* Data ready to be written to the file */ + gchar partial_write_buf[6]; /* UTF-8 partial characters, null terminated */ + + /* Group the flags together, immediately after partial_write_buf, to save memory */ + + guint use_buffer : 1; /* The encoding uses the buffers */ + guint do_encode : 1; /* The encoding uses the GIConv coverters */ + guint close_on_unref : 1; /* Close the channel on final unref */ + guint is_readable : 1; /* Cached GIOFlag */ + guint is_writeable : 1; /* ditto */ + guint is_seekable : 1; /* ditto */ + + gpointer reserved1; + gpointer reserved2; +}; + +typedef gboolean (*GIOFunc) (GIOChannel *source, + GIOCondition condition, + gpointer data); +struct _GIOFuncs +{ + GIOStatus (*io_read) (GIOChannel *channel, + gchar *buf, + gsize count, + gsize *bytes_read, + GError **err); + GIOStatus (*io_write) (GIOChannel *channel, + const gchar *buf, + gsize count, + gsize *bytes_written, + GError **err); + GIOStatus (*io_seek) (GIOChannel *channel, + gint64 offset, + GSeekType type, + GError **err); + GIOStatus (*io_close) (GIOChannel *channel, + GError **err); + GSource* (*io_create_watch) (GIOChannel *channel, + GIOCondition condition); + void (*io_free) (GIOChannel *channel); + GIOStatus (*io_set_flags) (GIOChannel *channel, + GIOFlags flags, + GError **err); + GIOFlags (*io_get_flags) (GIOChannel *channel); +}; + +void g_io_channel_init (GIOChannel *channel); +GIOChannel *g_io_channel_ref (GIOChannel *channel); +void g_io_channel_unref (GIOChannel *channel); + +#ifndef G_DISABLE_DEPRECATED +GIOError g_io_channel_read (GIOChannel *channel, + gchar *buf, + gsize count, + gsize *bytes_read); +GIOError g_io_channel_write (GIOChannel *channel, + const gchar *buf, + gsize count, + gsize *bytes_written); +GIOError g_io_channel_seek (GIOChannel *channel, + gint64 offset, + GSeekType type); +void g_io_channel_close (GIOChannel *channel); +#endif /* G_DISABLE_DEPRECATED */ + +GIOStatus g_io_channel_shutdown (GIOChannel *channel, + gboolean flush, + GError **err); +guint g_io_add_watch_full (GIOChannel *channel, + gint priority, + GIOCondition condition, + GIOFunc func, + gpointer user_data, + GDestroyNotify notify); +GSource * g_io_create_watch (GIOChannel *channel, + GIOCondition condition); +guint g_io_add_watch (GIOChannel *channel, + GIOCondition condition, + GIOFunc func, + gpointer user_data); + +/* character encoding conversion involved functions. + */ + +void g_io_channel_set_buffer_size (GIOChannel *channel, + gsize size); +gsize g_io_channel_get_buffer_size (GIOChannel *channel); +GIOCondition g_io_channel_get_buffer_condition (GIOChannel *channel); +GIOStatus g_io_channel_set_flags (GIOChannel *channel, + GIOFlags flags, + GError **error); +GIOFlags g_io_channel_get_flags (GIOChannel *channel); +void g_io_channel_set_line_term (GIOChannel *channel, + const gchar *line_term, + gint length); +G_CONST_RETURN gchar* g_io_channel_get_line_term (GIOChannel *channel, + gint *length); +void g_io_channel_set_buffered (GIOChannel *channel, + gboolean buffered); +gboolean g_io_channel_get_buffered (GIOChannel *channel); +GIOStatus g_io_channel_set_encoding (GIOChannel *channel, + const gchar *encoding, + GError **error); +G_CONST_RETURN gchar* g_io_channel_get_encoding (GIOChannel *channel); +void g_io_channel_set_close_on_unref (GIOChannel *channel, + gboolean do_close); +gboolean g_io_channel_get_close_on_unref (GIOChannel *channel); + + +GIOStatus g_io_channel_flush (GIOChannel *channel, + GError **error); +GIOStatus g_io_channel_read_line (GIOChannel *channel, + gchar **str_return, + gsize *length, + gsize *terminator_pos, + GError **error); +GIOStatus g_io_channel_read_line_string (GIOChannel *channel, + GString *buffer, + gsize *terminator_pos, + GError **error); +GIOStatus g_io_channel_read_to_end (GIOChannel *channel, + gchar **str_return, + gsize *length, + GError **error); +GIOStatus g_io_channel_read_chars (GIOChannel *channel, + gchar *buf, + gsize count, + gsize *bytes_read, + GError **error); +GIOStatus g_io_channel_read_unichar (GIOChannel *channel, + gunichar *thechar, + GError **error); +GIOStatus g_io_channel_write_chars (GIOChannel *channel, + const gchar *buf, + gssize count, + gsize *bytes_written, + GError **error); +GIOStatus g_io_channel_write_unichar (GIOChannel *channel, + gunichar thechar, + GError **error); +GIOStatus g_io_channel_seek_position (GIOChannel *channel, + gint64 offset, + GSeekType type, + GError **error); +#ifdef G_OS_WIN32 +#define g_io_channel_new_file g_io_channel_new_file_utf8 +#endif + +GIOChannel* g_io_channel_new_file (const gchar *filename, + const gchar *mode, + GError **error); + +/* Error handling */ + +GQuark g_io_channel_error_quark (void); +GIOChannelError g_io_channel_error_from_errno (gint en); + +/* On Unix, IO channels created with this function for any file + * descriptor or socket. + * + * On Win32, this can be used either for files opened with the MSVCRT + * (the Microsoft run-time C library) _open() or _pipe, including file + * descriptors 0, 1 and 2 (corresponding to stdin, stdout and stderr), + * or for Winsock SOCKETs. If the parameter is a legal file + * descriptor, it is assumed to be such, otherwise it should be a + * SOCKET. This relies on SOCKETs and file descriptors not + * overlapping. If you want to be certain, call either + * g_io_channel_win32_new_fd() or g_io_channel_win32_new_socket() + * instead as appropriate. + * + * The term file descriptor as used in the context of Win32 refers to + * the emulated Unix-like file descriptors MSVCRT provides. The native + * corresponding concept is file HANDLE. There isn't as of yet a way to + * get GIOChannels for Win32 file HANDLEs. + */ +GIOChannel* g_io_channel_unix_new (int fd); +gint g_io_channel_unix_get_fd (GIOChannel *channel); + + +/* Hook for GClosure / GSource integration. Don't touch */ +GLIB_VAR GSourceFuncs g_io_watch_funcs; + +#ifdef G_OS_WIN32 + +/* You can use this "pseudo file descriptor" in a GPollFD to add + * polling for Windows messages. GTK applications should not do that. + */ + +#define G_WIN32_MSG_HANDLE 19981206 + +/* Use this to get a GPollFD from a GIOChannel, so that you can call + * g_io_channel_win32_poll(). After calling this you should only use + * g_io_channel_read() to read from the GIOChannel, i.e. never read() + * from the underlying file descriptor. For SOCKETs, it is possible to call + * recv(). + */ +void g_io_channel_win32_make_pollfd (GIOChannel *channel, + GIOCondition condition, + GPollFD *fd); + +/* This can be used to wait a until at least one of the channels is readable. + * On Unix you would do a select() on the file descriptors of the channels. + */ +gint g_io_channel_win32_poll (GPollFD *fds, + gint n_fds, + gint timeout_); + +/* Create an IO channel for Windows messages for window handle hwnd. */ +GIOChannel *g_io_channel_win32_new_messages (guint hwnd); + +/* Create an IO channel for C runtime (emulated Unix-like) file + * descriptors. After calling g_io_add_watch() on a IO channel + * returned by this function, you shouldn't call read() on the file + * descriptor. This is because adding polling for a file descriptor is + * implemented on Win32 by starting a thread that sits blocked in a + * read() from the file descriptor most of the time. All reads from + * the file descriptor should be done by this internal GLib + * thread. Your code should call only g_io_channel_read(). + */ +GIOChannel* g_io_channel_win32_new_fd (gint fd); + +/* Get the C runtime file descriptor of a channel. */ +gint g_io_channel_win32_get_fd (GIOChannel *channel); + +/* Create an IO channel for a winsock socket. The parameter should be + * a SOCKET. Contrary to IO channels for file descriptors (on *Win32), + * you can use normal recv() or recvfrom() on sockets even if GLib + * is polling them. + */ +GIOChannel *g_io_channel_win32_new_socket (gint socket); + +#endif + +G_END_DECLS + +#endif /* __G_IOCHANNEL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gkeyfile.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gkeyfile.h new file mode 100644 index 00000000..e7eadc68 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gkeyfile.h @@ -0,0 +1,246 @@ +/* gkeyfile.h - desktop entry file parser + * + * Copyright 2004 Red Hat, Inc. + * + * Ray Strode <halfline@hawaii.rr.com> + * + * GLib is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * GLib is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with GLib; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_KEY_FILE_H__ +#define __G_KEY_FILE_H__ + +#include <glib/gerror.h> + +G_BEGIN_DECLS + +typedef enum +{ + G_KEY_FILE_ERROR_UNKNOWN_ENCODING, + G_KEY_FILE_ERROR_PARSE, + G_KEY_FILE_ERROR_NOT_FOUND, + G_KEY_FILE_ERROR_KEY_NOT_FOUND, + G_KEY_FILE_ERROR_GROUP_NOT_FOUND, + G_KEY_FILE_ERROR_INVALID_VALUE +} GKeyFileError; + +#define G_KEY_FILE_ERROR g_key_file_error_quark() + +GQuark g_key_file_error_quark (void); + +typedef struct _GKeyFile GKeyFile; + +typedef enum +{ + G_KEY_FILE_NONE = 0, + G_KEY_FILE_KEEP_COMMENTS = 1 << 0, + G_KEY_FILE_KEEP_TRANSLATIONS = 1 << 1 +} GKeyFileFlags; + +GKeyFile *g_key_file_new (void); +void g_key_file_free (GKeyFile *key_file); +void g_key_file_set_list_separator (GKeyFile *key_file, + gchar separator); +gboolean g_key_file_load_from_file (GKeyFile *key_file, + const gchar *file, + GKeyFileFlags flags, + GError **error); +gboolean g_key_file_load_from_data (GKeyFile *key_file, + const gchar *data, + gsize length, + GKeyFileFlags flags, + GError **error); +gboolean g_key_file_load_from_dirs (GKeyFile *key_file, + const gchar *file, + const gchar **search_dirs, + gchar **full_path, + GKeyFileFlags flags, + GError **error); +gboolean g_key_file_load_from_data_dirs (GKeyFile *key_file, + const gchar *file, + gchar **full_path, + GKeyFileFlags flags, + GError **error); +gchar *g_key_file_to_data (GKeyFile *key_file, + gsize *length, + GError **error) G_GNUC_MALLOC; +gchar *g_key_file_get_start_group (GKeyFile *key_file) G_GNUC_MALLOC; +gchar **g_key_file_get_groups (GKeyFile *key_file, + gsize *length) G_GNUC_MALLOC; +gchar **g_key_file_get_keys (GKeyFile *key_file, + const gchar *group_name, + gsize *length, + GError **error) G_GNUC_MALLOC; +gboolean g_key_file_has_group (GKeyFile *key_file, + const gchar *group_name); +gboolean g_key_file_has_key (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + GError **error); +gchar *g_key_file_get_value (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + GError **error) G_GNUC_MALLOC; +void g_key_file_set_value (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + const gchar *value); +gchar *g_key_file_get_string (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + GError **error) G_GNUC_MALLOC; +void g_key_file_set_string (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + const gchar *string); +gchar *g_key_file_get_locale_string (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + const gchar *locale, + GError **error) G_GNUC_MALLOC; +void g_key_file_set_locale_string (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + const gchar *locale, + const gchar *string); +gboolean g_key_file_get_boolean (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + GError **error); +void g_key_file_set_boolean (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + gboolean value); +gint g_key_file_get_integer (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + GError **error); +void g_key_file_set_integer (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + gint value); +gdouble g_key_file_get_double (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + GError **error); +void g_key_file_set_double (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + gdouble value); +gchar **g_key_file_get_string_list (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + gsize *length, + GError **error) G_GNUC_MALLOC; +void g_key_file_set_string_list (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + const gchar * const list[], + gsize length); +gchar **g_key_file_get_locale_string_list (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + const gchar *locale, + gsize *length, + GError **error) G_GNUC_MALLOC; +void g_key_file_set_locale_string_list (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + const gchar *locale, + const gchar * const list[], + gsize length); +gboolean *g_key_file_get_boolean_list (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + gsize *length, + GError **error) G_GNUC_MALLOC; +void g_key_file_set_boolean_list (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + gboolean list[], + gsize length); +gint *g_key_file_get_integer_list (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + gsize *length, + GError **error) G_GNUC_MALLOC; +void g_key_file_set_double_list (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + gdouble list[], + gsize length); +gdouble *g_key_file_get_double_list (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + gsize *length, + GError **error) G_GNUC_MALLOC; +void g_key_file_set_integer_list (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + gint list[], + gsize length); +gboolean g_key_file_set_comment (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + const gchar *comment, + GError **error); +gchar *g_key_file_get_comment (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + GError **error) G_GNUC_MALLOC; + +gboolean g_key_file_remove_comment (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + GError **error); +gboolean g_key_file_remove_key (GKeyFile *key_file, + const gchar *group_name, + const gchar *key, + GError **error); +gboolean g_key_file_remove_group (GKeyFile *key_file, + const gchar *group_name, + GError **error); + +/* Defines for handling freedesktop.org Desktop files */ +#define G_KEY_FILE_DESKTOP_GROUP "Desktop Entry" + +#define G_KEY_FILE_DESKTOP_KEY_TYPE "Type" +#define G_KEY_FILE_DESKTOP_KEY_VERSION "Version" +#define G_KEY_FILE_DESKTOP_KEY_NAME "Name" +#define G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME "GenericName" +#define G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY "NoDisplay" +#define G_KEY_FILE_DESKTOP_KEY_COMMENT "Comment" +#define G_KEY_FILE_DESKTOP_KEY_ICON "Icon" +#define G_KEY_FILE_DESKTOP_KEY_HIDDEN "Hidden" +#define G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN "OnlyShowIn" +#define G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN "NotShowIn" +#define G_KEY_FILE_DESKTOP_KEY_TRY_EXEC "TryExec" +#define G_KEY_FILE_DESKTOP_KEY_EXEC "Exec" +#define G_KEY_FILE_DESKTOP_KEY_PATH "Path" +#define G_KEY_FILE_DESKTOP_KEY_TERMINAL "Terminal" +#define G_KEY_FILE_DESKTOP_KEY_MIME_TYPE "MimeType" +#define G_KEY_FILE_DESKTOP_KEY_CATEGORIES "Categories" +#define G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY "StartupNotify" +#define G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS "StartupWMClass" +#define G_KEY_FILE_DESKTOP_KEY_URL "URL" + +#define G_KEY_FILE_DESKTOP_TYPE_APPLICATION "Application" +#define G_KEY_FILE_DESKTOP_TYPE_LINK "Link" +#define G_KEY_FILE_DESKTOP_TYPE_DIRECTORY "Directory" + +G_END_DECLS + +#endif /* __G_KEY_FILE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/glist.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/glist.h new file mode 100644 index 00000000..258dcd1e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/glist.h @@ -0,0 +1,116 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_LIST_H__ +#define __G_LIST_H__ + +#include <glib/gmem.h> + +G_BEGIN_DECLS + +typedef struct _GList GList; + +struct _GList +{ + gpointer data; + GList *next; + GList *prev; +}; + +/* Doubly linked lists + */ +GList* g_list_alloc (void) G_GNUC_WARN_UNUSED_RESULT; +void g_list_free (GList *list); +void g_list_free_1 (GList *list); +#define g_list_free1 g_list_free_1 +GList* g_list_append (GList *list, + gpointer data) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_prepend (GList *list, + gpointer data) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_insert (GList *list, + gpointer data, + gint position) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_insert_sorted (GList *list, + gpointer data, + GCompareFunc func) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_insert_sorted_with_data (GList *list, + gpointer data, + GCompareDataFunc func, + gpointer user_data) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_insert_before (GList *list, + GList *sibling, + gpointer data) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_concat (GList *list1, + GList *list2) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_remove (GList *list, + gconstpointer data) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_remove_all (GList *list, + gconstpointer data) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_remove_link (GList *list, + GList *llink) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_delete_link (GList *list, + GList *link_) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_reverse (GList *list) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_copy (GList *list) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_nth (GList *list, + guint n); +GList* g_list_nth_prev (GList *list, + guint n); +GList* g_list_find (GList *list, + gconstpointer data); +GList* g_list_find_custom (GList *list, + gconstpointer data, + GCompareFunc func); +gint g_list_position (GList *list, + GList *llink); +gint g_list_index (GList *list, + gconstpointer data); +GList* g_list_last (GList *list); +GList* g_list_first (GList *list); +guint g_list_length (GList *list); +void g_list_foreach (GList *list, + GFunc func, + gpointer user_data); +GList* g_list_sort (GList *list, + GCompareFunc compare_func) G_GNUC_WARN_UNUSED_RESULT; +GList* g_list_sort_with_data (GList *list, + GCompareDataFunc compare_func, + gpointer user_data) G_GNUC_WARN_UNUSED_RESULT; +gpointer g_list_nth_data (GList *list, + guint n); + + +#define g_list_previous(list) ((list) ? (((GList *)(list))->prev) : NULL) +#define g_list_next(list) ((list) ? (((GList *)(list))->next) : NULL) + +#ifndef G_DISABLE_DEPRECATED +void g_list_push_allocator (gpointer allocator); +void g_list_pop_allocator (void); +#endif +G_END_DECLS + +#endif /* __G_LIST_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmacros.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmacros.h new file mode 100644 index 00000000..eb6b02c5 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmacros.h @@ -0,0 +1,269 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +/* This file must not include any other glib header file and must thus + * not refer to variables from glibconfig.h + */ + +#ifndef __G_MACROS_H__ +#define __G_MACROS_H__ + +/* We include stddef.h to get the system's definition of NULL + */ +#include <stddef.h> + +/* Here we provide G_GNUC_EXTENSION as an alias for __extension__, + * where this is valid. This allows for warningless compilation of + * "long long" types even in the presence of '-ansi -pedantic'. + */ +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8) +# define G_GNUC_EXTENSION __extension__ +#else +# define G_GNUC_EXTENSION +#endif + +/* Provide macros to feature the GCC function attribute. + */ +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) +#define G_GNUC_PURE \ + __attribute__((__pure__)) +#define G_GNUC_MALLOC \ + __attribute__((__malloc__)) +#else +#define G_GNUC_PURE +#define G_GNUC_MALLOC +#endif + +#if __GNUC__ >= 4 +#define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__)) +#else +#define G_GNUC_NULL_TERMINATED +#endif + +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) +#define G_GNUC_PRINTF( format_idx, arg_idx ) \ + __attribute__((__format__ (__printf__, format_idx, arg_idx))) +#define G_GNUC_SCANF( format_idx, arg_idx ) \ + __attribute__((__format__ (__scanf__, format_idx, arg_idx))) +#define G_GNUC_FORMAT( arg_idx ) \ + __attribute__((__format_arg__ (arg_idx))) +#define G_GNUC_NORETURN \ + __attribute__((__noreturn__)) +#define G_GNUC_CONST \ + __attribute__((__const__)) +#define G_GNUC_UNUSED \ + __attribute__((__unused__)) +#define G_GNUC_NO_INSTRUMENT \ + __attribute__((__no_instrument_function__)) +#else /* !__GNUC__ */ +#define G_GNUC_PRINTF( format_idx, arg_idx ) +#define G_GNUC_SCANF( format_idx, arg_idx ) +#define G_GNUC_FORMAT( arg_idx ) +#define G_GNUC_NORETURN +#define G_GNUC_CONST +#define G_GNUC_UNUSED +#define G_GNUC_NO_INSTRUMENT +#endif /* !__GNUC__ */ + +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) +#define G_GNUC_DEPRECATED \ + __attribute__((__deprecated__)) +#else +#define G_GNUC_DEPRECATED +#endif /* __GNUC__ */ + +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) +# define G_GNUC_MAY_ALIAS __attribute__((may_alias)) +#else +# define G_GNUC_MAY_ALIAS +#endif + +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +#define G_GNUC_WARN_UNUSED_RESULT \ + __attribute__((warn_unused_result)) +#else +#define G_GNUC_WARN_UNUSED_RESULT +#endif /* __GNUC__ */ + +#ifndef G_DISABLE_DEPRECATED +/* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with + * macros, so we can refer to them as strings unconditionally. + * usage not-recommended since gcc-3.0 + */ +#if defined (__GNUC__) && (__GNUC__ < 3) +#define G_GNUC_FUNCTION __FUNCTION__ +#define G_GNUC_PRETTY_FUNCTION __PRETTY_FUNCTION__ +#else /* !__GNUC__ */ +#define G_GNUC_FUNCTION "" +#define G_GNUC_PRETTY_FUNCTION "" +#endif /* !__GNUC__ */ +#endif /* !G_DISABLE_DEPRECATED */ + +#define G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string) +#define G_STRINGIFY_ARG(contents) #contents + +/* Provide a string identifying the current code position */ +#if defined(__GNUC__) && (__GNUC__ < 3) && !defined(__cplusplus) +# define G_STRLOC __FILE__ ":" G_STRINGIFY (__LINE__) ":" __PRETTY_FUNCTION__ "()" +#else +# define G_STRLOC __FILE__ ":" G_STRINGIFY (__LINE__) +#endif + +/* Provide a string identifying the current function, non-concatenatable */ +#if defined (__GNUC__) +# define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__)) +#elif defined (G_HAVE_ISO_VARARGS) +# define G_STRFUNC ((const char*) (__func__)) +#else +# define G_STRFUNC ((const char*) ("???")) +#endif + +/* Guard C code in headers, while including them from C++ */ +#ifdef __cplusplus +# define G_BEGIN_DECLS extern "C" { +# define G_END_DECLS } +#else +# define G_BEGIN_DECLS +# define G_END_DECLS +#endif + +/* Provide definitions for some commonly used macros. + * Some of them are only provided if they haven't already + * been defined. It is assumed that if they are already + * defined then the current definition is correct. + */ +#ifndef NULL +# ifdef __cplusplus +# define NULL (0L) +# else /* !__cplusplus */ +# define NULL ((void*) 0) +# endif /* !__cplusplus */ +#endif + +#ifndef FALSE +#define FALSE (0) +#endif + +#ifndef TRUE +#define TRUE (!FALSE) +#endif + +#undef MAX +#define MAX(a, b) (((a) > (b)) ? (a) : (b)) + +#undef MIN +#define MIN(a, b) (((a) < (b)) ? (a) : (b)) + +#undef ABS +#define ABS(a) (((a) < 0) ? -(a) : (a)) + +#undef CLAMP +#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) + +/* Count the number of elements in an array. The array must be defined + * as such; using this with a dynamically allocated array will give + * incorrect results. + */ +#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0])) + +/* Macros by analogy to GINT_TO_POINTER, GPOINTER_TO_INT + */ +#define GPOINTER_TO_SIZE(p) ((gsize) (p)) +#define GSIZE_TO_POINTER(s) ((gpointer) (gsize) (s)) + +/* Provide convenience macros for handling structure + * fields through their offsets. + */ +#define G_STRUCT_OFFSET(struct_type, member) \ + ((glong) ((guint8*) &((struct_type*) 0)->member)) +#define G_STRUCT_MEMBER_P(struct_p, struct_offset) \ + ((gpointer) ((guint8*) (struct_p) + (glong) (struct_offset))) +#define G_STRUCT_MEMBER(member_type, struct_p, struct_offset) \ + (*(member_type*) G_STRUCT_MEMBER_P ((struct_p), (struct_offset))) + +/* Provide simple macro statement wrappers (adapted from Perl): + * G_STMT_START { statements; } G_STMT_END; + * can be used as a single statement, as in + * if (x) G_STMT_START { ... } G_STMT_END; else ... + * + * When GCC is compiling C code in non-ANSI mode, it will use the + * compiler __extension__ to wrap the statements wihin `({' and '})' braces. + * When compiling on platforms where configure has defined + * HAVE_DOWHILE_MACROS, statements will be wrapped with `do' and `while (0)'. + * For any other platforms (SunOS4 is known to have this issue), wrap the + * statements with `if (1)' and `else (void) 0'. + */ +#if !(defined (G_STMT_START) && defined (G_STMT_END)) +# if defined (__GNUC__) && !defined (__STRICT_ANSI__) && !defined (__cplusplus) +# define G_STMT_START (void) __extension__ ( +# define G_STMT_END ) +# else /* !(__GNUC__ && !__STRICT_ANSI__ && !__cplusplus) */ +# if defined (HAVE_DOWHILE_MACROS) +# define G_STMT_START do +# define G_STMT_END while (0) +# else /* !HAVE_DOWHILE_MACROS */ +# define G_STMT_START if (1) +# define G_STMT_END else (void) 0 +# endif /* !HAVE_DOWHILE_MACROS */ +# endif /* !(__GNUC__ && !__STRICT_ANSI__ && !__cplusplus) */ +#endif + +/* Allow the app programmer to select whether or not return values + * (usually char*) are const or not. Don't try using this feature for + * functions with C++ linkage. + */ +#ifdef G_DISABLE_CONST_RETURNS +#define G_CONST_RETURN +#else +#define G_CONST_RETURN const +#endif + +/* + * The G_LIKELY and G_UNLIKELY macros let the programmer give hints to + * the compiler about the expected result of an expression. Some compilers + * can use this information for optimizations. + * + * The _G_BOOLEAN_EXPR macro is intended to trigger a gcc warning when + * putting assignments in g_return_if_fail (). + */ +#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__) +#define _G_BOOLEAN_EXPR(expr) \ + __extension__ ({ \ + int _g_boolean_var_; \ + if (expr) \ + _g_boolean_var_ = 1; \ + else \ + _g_boolean_var_ = 0; \ + _g_boolean_var_; \ +}) +#define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1)) +#define G_UNLIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 0)) +#else +#define G_LIKELY(expr) (expr) +#define G_UNLIKELY(expr) (expr) +#endif + +#endif /* __G_MACROS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmain.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmain.h new file mode 100644 index 00000000..67250da4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmain.h @@ -0,0 +1,337 @@ +/* gmain.h - the GLib Main loop + * Copyright (C) 1998-2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_MAIN_H__ +#define __G_MAIN_H__ + +#include <glib/gslist.h> +#include <glib/gthread.h> + +G_BEGIN_DECLS + +typedef struct _GMainContext GMainContext; /* Opaque */ +typedef struct _GMainLoop GMainLoop; /* Opaque */ +typedef struct _GSource GSource; +typedef struct _GSourceCallbackFuncs GSourceCallbackFuncs; +typedef struct _GSourceFuncs GSourceFuncs; + +typedef gboolean (*GSourceFunc) (gpointer data); +typedef void (*GChildWatchFunc) (GPid pid, + gint status, + gpointer data); +struct _GSource +{ + /*< private >*/ + gpointer callback_data; + GSourceCallbackFuncs *callback_funcs; + + GSourceFuncs *source_funcs; + guint ref_count; + + GMainContext *context; + + gint priority; + guint flags; + guint source_id; + + GSList *poll_fds; + + GSource *prev; + GSource *next; + + gpointer reserved1; + gpointer reserved2; +}; + +struct _GSourceCallbackFuncs +{ + void (*ref) (gpointer cb_data); + void (*unref) (gpointer cb_data); + void (*get) (gpointer cb_data, + GSource *source, + GSourceFunc *func, + gpointer *data); +}; + +typedef void (*GSourceDummyMarshal) (void); + +struct _GSourceFuncs +{ + gboolean (*prepare) (GSource *source, + gint *timeout_); + gboolean (*check) (GSource *source); + gboolean (*dispatch) (GSource *source, + GSourceFunc callback, + gpointer user_data); + void (*finalize) (GSource *source); /* Can be NULL */ + + /* For use by g_source_set_closure */ + GSourceFunc closure_callback; + GSourceDummyMarshal closure_marshal; /* Really is of type GClosureMarshal */ +}; + +/* Any definitions using GPollFD or GPollFunc are primarily + * for Unix and not guaranteed to be the compatible on all + * operating systems on which GLib runs. Right now, the + * GLib does use these functions on Win32 as well, but interprets + * them in a fairly different way than on Unix. If you use + * these definitions, you are should be prepared to recode + * for different operating systems. + * + * + * On Win32, the fd in a GPollFD should be Win32 HANDLE (*not* a file + * descriptor as provided by the C runtime) that can be used by + * MsgWaitForMultipleObjects. This does *not* include file handles + * from CreateFile, SOCKETs, nor pipe handles. (But you can use + * WSAEventSelect to signal events when a SOCKET is readable). + * + * On Win32, fd can also be the special value G_WIN32_MSG_HANDLE to + * indicate polling for messages. + * + * But note that G_WIN32_MSG_HANDLE GPollFDs should not be used by GDK + * (GTK) programs, as GDK itself wants to read messages and convert them + * to GDK events. + * + * So, unless you really know what you are doing, it's best not to try + * to use the main loop polling stuff for your own needs on + * Win32. It's really only written for the GIMP's needs so + * far. + */ +typedef struct _GPollFD GPollFD; +typedef gint (*GPollFunc) (GPollFD *ufds, + guint nfsd, + gint timeout_); + +struct _GPollFD +{ +#if defined (G_OS_WIN32) && GLIB_SIZEOF_VOID_P == 8 + gint64 fd; +#else + gint fd; +#endif + gushort events; + gushort revents; +}; + +/* Standard priorities */ + +#define G_PRIORITY_HIGH -100 +#define G_PRIORITY_DEFAULT 0 +#define G_PRIORITY_HIGH_IDLE 100 +#define G_PRIORITY_DEFAULT_IDLE 200 +#define G_PRIORITY_LOW 300 + +/* GMainContext: */ + +GMainContext *g_main_context_new (void); +GMainContext *g_main_context_ref (GMainContext *context); +void g_main_context_unref (GMainContext *context); +GMainContext *g_main_context_default (void); + +gboolean g_main_context_iteration (GMainContext *context, + gboolean may_block); +gboolean g_main_context_pending (GMainContext *context); + +/* For implementation of legacy interfaces + */ +GSource *g_main_context_find_source_by_id (GMainContext *context, + guint source_id); +GSource *g_main_context_find_source_by_user_data (GMainContext *context, + gpointer user_data); +GSource *g_main_context_find_source_by_funcs_user_data (GMainContext *context, + GSourceFuncs *funcs, + gpointer user_data); + +/* Low level functions for implementing custom main loops. + */ +void g_main_context_wakeup (GMainContext *context); +gboolean g_main_context_acquire (GMainContext *context); +void g_main_context_release (GMainContext *context); +gboolean g_main_context_is_owner (GMainContext *context); +gboolean g_main_context_wait (GMainContext *context, + GCond *cond, + GMutex *mutex); + +gboolean g_main_context_prepare (GMainContext *context, + gint *priority); +gint g_main_context_query (GMainContext *context, + gint max_priority, + gint *timeout_, + GPollFD *fds, + gint n_fds); +gint g_main_context_check (GMainContext *context, + gint max_priority, + GPollFD *fds, + gint n_fds); +void g_main_context_dispatch (GMainContext *context); + +void g_main_context_set_poll_func (GMainContext *context, + GPollFunc func); +GPollFunc g_main_context_get_poll_func (GMainContext *context); + +/* Low level functions for use by source implementations + */ +void g_main_context_add_poll (GMainContext *context, + GPollFD *fd, + gint priority); +void g_main_context_remove_poll (GMainContext *context, + GPollFD *fd); + +gint g_main_depth (void); +GSource *g_main_current_source (void); + + +/* GMainLoop: */ + +GMainLoop *g_main_loop_new (GMainContext *context, + gboolean is_running); +void g_main_loop_run (GMainLoop *loop); +void g_main_loop_quit (GMainLoop *loop); +GMainLoop *g_main_loop_ref (GMainLoop *loop); +void g_main_loop_unref (GMainLoop *loop); +gboolean g_main_loop_is_running (GMainLoop *loop); +GMainContext *g_main_loop_get_context (GMainLoop *loop); + +/* GSource: */ + +GSource *g_source_new (GSourceFuncs *source_funcs, + guint struct_size); +GSource *g_source_ref (GSource *source); +void g_source_unref (GSource *source); + +guint g_source_attach (GSource *source, + GMainContext *context); +void g_source_destroy (GSource *source); + +void g_source_set_priority (GSource *source, + gint priority); +gint g_source_get_priority (GSource *source); +void g_source_set_can_recurse (GSource *source, + gboolean can_recurse); +gboolean g_source_get_can_recurse (GSource *source); +guint g_source_get_id (GSource *source); + +GMainContext *g_source_get_context (GSource *source); + +void g_source_set_callback (GSource *source, + GSourceFunc func, + gpointer data, + GDestroyNotify notify); + +void g_source_set_funcs (GSource *source, + GSourceFuncs *funcs); +gboolean g_source_is_destroyed (GSource *source); + +/* Used to implement g_source_connect_closure and internally*/ +void g_source_set_callback_indirect (GSource *source, + gpointer callback_data, + GSourceCallbackFuncs *callback_funcs); + +void g_source_add_poll (GSource *source, + GPollFD *fd); +void g_source_remove_poll (GSource *source, + GPollFD *fd); + +void g_source_get_current_time (GSource *source, + GTimeVal *timeval); + + /* void g_source_connect_closure (GSource *source, + GClosure *closure); + */ + +/* Specific source types + */ +GSource *g_idle_source_new (void); +GSource *g_child_watch_source_new (GPid pid); +GSource *g_timeout_source_new (guint interval); +GSource *g_timeout_source_new_seconds (guint interval); + +/* Miscellaneous functions + */ +void g_get_current_time (GTimeVal *result); + +/* ============== Compat main loop stuff ================== */ + +#ifndef G_DISABLE_DEPRECATED + +/* Legacy names for GMainLoop functions + */ +#define g_main_new(is_running) g_main_loop_new (NULL, is_running); +#define g_main_run(loop) g_main_loop_run(loop) +#define g_main_quit(loop) g_main_loop_quit(loop) +#define g_main_destroy(loop) g_main_loop_unref(loop) +#define g_main_is_running(loop) g_main_loop_is_running(loop) + +/* Functions to manipulate the default main loop + */ + +#define g_main_iteration(may_block) g_main_context_iteration (NULL, may_block) +#define g_main_pending() g_main_context_pending (NULL) + +#define g_main_set_poll_func(func) g_main_context_set_poll_func (NULL, func) + +#endif /* G_DISABLE_DEPRECATED */ + +/* Source manipulation by ID */ +gboolean g_source_remove (guint tag); +gboolean g_source_remove_by_user_data (gpointer user_data); +gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs, + gpointer user_data); + +/* Idles, child watchers and timeouts */ +guint g_timeout_add_full (gint priority, + guint interval, + GSourceFunc function, + gpointer data, + GDestroyNotify notify); +guint g_timeout_add (guint interval, + GSourceFunc function, + gpointer data); +guint g_timeout_add_seconds_full (gint priority, + guint interval, + GSourceFunc function, + gpointer data, + GDestroyNotify notify); +guint g_timeout_add_seconds (guint interval, + GSourceFunc function, + gpointer data); +guint g_child_watch_add_full (gint priority, + GPid pid, + GChildWatchFunc function, + gpointer data, + GDestroyNotify notify); +guint g_child_watch_add (GPid pid, + GChildWatchFunc function, + gpointer data); +guint g_idle_add (GSourceFunc function, + gpointer data); +guint g_idle_add_full (gint priority, + GSourceFunc function, + gpointer data, + GDestroyNotify notify); +gboolean g_idle_remove_by_data (gpointer data); + +/* Hook for GClosure / GSource integration. Don't touch */ +GLIB_VAR GSourceFuncs g_timeout_funcs; +GLIB_VAR GSourceFuncs g_child_watch_funcs; +GLIB_VAR GSourceFuncs g_idle_funcs; + +G_END_DECLS + +#endif /* __G_MAIN_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmappedfile.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmappedfile.h new file mode 100644 index 00000000..123bc6af --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmappedfile.h @@ -0,0 +1,39 @@ +/* GLIB - Library of useful routines for C programming + * gmappedfile.h: Simplified wrapper around the mmap function + * + * Copyright 2005 Matthias Clasen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __G_MAPPED_FILE_H__ +#define __G_MAPPED_FILE_H__ + +#include <glib/gerror.h> + +G_BEGIN_DECLS + +typedef struct _GMappedFile GMappedFile; + +GMappedFile *g_mapped_file_new (const gchar *filename, + gboolean writable, + GError **error) G_GNUC_MALLOC; +gsize g_mapped_file_get_length (GMappedFile *file); +gchar *g_mapped_file_get_contents (GMappedFile *file); +void g_mapped_file_free (GMappedFile *file); + +G_END_DECLS + +#endif /* __G_MAPPED_FILE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmarkup.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmarkup.h new file mode 100644 index 00000000..340a2181 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmarkup.h @@ -0,0 +1,155 @@ +/* gmarkup.h - Simple XML-like string parser/writer + * + * Copyright 2000 Red Hat, Inc. + * + * GLib is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * GLib is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with GLib; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_MARKUP_H__ +#define __G_MARKUP_H__ + +#include <stdarg.h> + +#include <glib/gerror.h> +#include <glib/gslist.h> + +G_BEGIN_DECLS + +typedef enum +{ + G_MARKUP_ERROR_BAD_UTF8, + G_MARKUP_ERROR_EMPTY, + G_MARKUP_ERROR_PARSE, + /* The following are primarily intended for specific GMarkupParser + * implementations to set. + */ + G_MARKUP_ERROR_UNKNOWN_ELEMENT, + G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE, + G_MARKUP_ERROR_INVALID_CONTENT, + G_MARKUP_ERROR_MISSING_ATTRIBUTE +} GMarkupError; + +#define G_MARKUP_ERROR g_markup_error_quark () + +GQuark g_markup_error_quark (void); + +typedef enum +{ + G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG = 1 << 0, + G_MARKUP_TREAT_CDATA_AS_TEXT = 1 << 1, + G_MARKUP_PREFIX_ERROR_POSITION = 1 << 2 +} GMarkupParseFlags; + +typedef struct _GMarkupParseContext GMarkupParseContext; +typedef struct _GMarkupParser GMarkupParser; + +struct _GMarkupParser +{ + /* Called for open tags <foo bar="baz"> */ + void (*start_element) (GMarkupParseContext *context, + const gchar *element_name, + const gchar **attribute_names, + const gchar **attribute_values, + gpointer user_data, + GError **error); + + /* Called for close tags </foo> */ + void (*end_element) (GMarkupParseContext *context, + const gchar *element_name, + gpointer user_data, + GError **error); + + /* Called for character data */ + /* text is not nul-terminated */ + void (*text) (GMarkupParseContext *context, + const gchar *text, + gsize text_len, + gpointer user_data, + GError **error); + + /* Called for strings that should be re-saved verbatim in this same + * position, but are not otherwise interpretable. At the moment + * this includes comments and processing instructions. + */ + /* text is not nul-terminated. */ + void (*passthrough) (GMarkupParseContext *context, + const gchar *passthrough_text, + gsize text_len, + gpointer user_data, + GError **error); + + /* Called on error, including one set by other + * methods in the vtable. The GError should not be freed. + */ + void (*error) (GMarkupParseContext *context, + GError *error, + gpointer user_data); +}; + +GMarkupParseContext *g_markup_parse_context_new (const GMarkupParser *parser, + GMarkupParseFlags flags, + gpointer user_data, + GDestroyNotify user_data_dnotify); +void g_markup_parse_context_free (GMarkupParseContext *context); +gboolean g_markup_parse_context_parse (GMarkupParseContext *context, + const gchar *text, + gssize text_len, + GError **error); + +gboolean g_markup_parse_context_end_parse (GMarkupParseContext *context, + GError **error); +G_CONST_RETURN gchar *g_markup_parse_context_get_element (GMarkupParseContext *context); +G_CONST_RETURN GSList *g_markup_parse_context_get_element_stack (GMarkupParseContext *context); + +/* For user-constructed error messages, has no precise semantics */ +void g_markup_parse_context_get_position (GMarkupParseContext *context, + gint *line_number, + gint *char_number); + +/* useful when saving */ +gchar* g_markup_escape_text (const gchar *text, + gssize length); + +gchar *g_markup_printf_escaped (const char *format, + ...) G_GNUC_PRINTF (1, 2); +gchar *g_markup_vprintf_escaped (const char *format, + va_list args); + +typedef enum +{ + G_MARKUP_COLLECT_INVALID, + G_MARKUP_COLLECT_STRING, + G_MARKUP_COLLECT_STRDUP, + G_MARKUP_COLLECT_BOOLEAN, + G_MARKUP_COLLECT_TRISTATE, + + G_MARKUP_COLLECT_OPTIONAL = (1 << 16) +} GMarkupCollectType; + + +/* useful from start_element */ +gboolean g_markup_collect_attributes (const gchar *element_name, + const gchar **attribute_names, + const gchar **attribute_values, + GError **error, + GMarkupCollectType first_type, + const gchar *first_attr, + ...); + +G_END_DECLS + +#endif /* __G_MARKUP_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmem.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmem.h new file mode 100644 index 00000000..69a0befc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmem.h @@ -0,0 +1,148 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_MEM_H__ +#define __G_MEM_H__ + +#include <glib/gslice.h> +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +typedef struct _GMemVTable GMemVTable; + + +#if GLIB_SIZEOF_VOID_P > GLIB_SIZEOF_LONG +# define G_MEM_ALIGN GLIB_SIZEOF_VOID_P +#else /* GLIB_SIZEOF_VOID_P <= GLIB_SIZEOF_LONG */ +# define G_MEM_ALIGN GLIB_SIZEOF_LONG +#endif /* GLIB_SIZEOF_VOID_P <= GLIB_SIZEOF_LONG */ + + +/* Memory allocation functions + */ +gpointer g_malloc (gsize n_bytes) G_GNUC_MALLOC; +gpointer g_malloc0 (gsize n_bytes) G_GNUC_MALLOC; +gpointer g_realloc (gpointer mem, + gsize n_bytes) G_GNUC_WARN_UNUSED_RESULT; +void g_free (gpointer mem); +gpointer g_try_malloc (gsize n_bytes) G_GNUC_MALLOC; +gpointer g_try_malloc0 (gsize n_bytes) G_GNUC_MALLOC; +gpointer g_try_realloc (gpointer mem, + gsize n_bytes) G_GNUC_WARN_UNUSED_RESULT; + + +/* Convenience memory allocators + */ +#define g_new(struct_type, n_structs) \ + ((struct_type *) g_malloc (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) +#define g_new0(struct_type, n_structs) \ + ((struct_type *) g_malloc0 (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) +#define g_renew(struct_type, mem, n_structs) \ + ((struct_type *) g_realloc ((mem), ((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) + +#define g_try_new(struct_type, n_structs) \ + ((struct_type *) g_try_malloc (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) +#define g_try_new0(struct_type, n_structs) \ + ((struct_type *) g_try_malloc0 (((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) +#define g_try_renew(struct_type, mem, n_structs) \ + ((struct_type *) g_try_realloc ((mem), ((gsize) sizeof (struct_type)) * ((gsize) (n_structs)))) + + +/* Memory allocation virtualization for debugging purposes + * g_mem_set_vtable() has to be the very first GLib function called + * if being used + */ +struct _GMemVTable +{ + gpointer (*malloc) (gsize n_bytes); + gpointer (*realloc) (gpointer mem, + gsize n_bytes); + void (*free) (gpointer mem); + /* optional; set to NULL if not used ! */ + gpointer (*calloc) (gsize n_blocks, + gsize n_block_bytes); + gpointer (*try_malloc) (gsize n_bytes); + gpointer (*try_realloc) (gpointer mem, + gsize n_bytes); +}; +void g_mem_set_vtable (GMemVTable *vtable); +gboolean g_mem_is_system_malloc (void); + +GLIB_VAR gboolean g_mem_gc_friendly; + +/* Memory profiler and checker, has to be enabled via g_mem_set_vtable() + */ +GLIB_VAR GMemVTable *glib_mem_profiler_table; +void g_mem_profile (void); + + +/* deprecated memchunks and allocators */ +#if !defined (G_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) || defined (GDK_COMPILATION) +typedef struct _GAllocator GAllocator; +typedef struct _GMemChunk GMemChunk; +#define g_mem_chunk_create(type, pre_alloc, alloc_type) ( \ + g_mem_chunk_new (#type " mem chunks (" #pre_alloc ")", \ + sizeof (type), \ + sizeof (type) * (pre_alloc), \ + (alloc_type)) \ +) +#define g_chunk_new(type, chunk) ( \ + (type *) g_mem_chunk_alloc (chunk) \ +) +#define g_chunk_new0(type, chunk) ( \ + (type *) g_mem_chunk_alloc0 (chunk) \ +) +#define g_chunk_free(mem, mem_chunk) G_STMT_START { \ + g_mem_chunk_free ((mem_chunk), (mem)); \ +} G_STMT_END +#define G_ALLOC_ONLY 1 +#define G_ALLOC_AND_FREE 2 +GMemChunk* g_mem_chunk_new (const gchar *name, + gint atom_size, + gsize area_size, + gint type); +void g_mem_chunk_destroy (GMemChunk *mem_chunk); +gpointer g_mem_chunk_alloc (GMemChunk *mem_chunk); +gpointer g_mem_chunk_alloc0 (GMemChunk *mem_chunk); +void g_mem_chunk_free (GMemChunk *mem_chunk, + gpointer mem); +void g_mem_chunk_clean (GMemChunk *mem_chunk); +void g_mem_chunk_reset (GMemChunk *mem_chunk); +void g_mem_chunk_print (GMemChunk *mem_chunk); +void g_mem_chunk_info (void); +void g_blow_chunks (void); +GAllocator*g_allocator_new (const gchar *name, + guint n_preallocs); +void g_allocator_free (GAllocator *allocator); +#define G_ALLOCATOR_LIST (1) +#define G_ALLOCATOR_SLIST (2) +#define G_ALLOCATOR_NODE (3) +#endif /* G_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __G_MEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmessages.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmessages.h new file mode 100644 index 00000000..eb2ca8f9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gmessages.h @@ -0,0 +1,338 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_MESSAGES_H__ +#define __G_MESSAGES_H__ + +#include <stdarg.h> +#include <glib/gtypes.h> +#include <glib/gmacros.h> + +/* Suppress warnings when GCC is in -pedantic mode and not -std=c99 + */ +#if (__GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)) +#pragma GCC system_header +#endif + +G_BEGIN_DECLS + +/* calculate a string size, guaranteed to fit format + args. + */ +gsize g_printf_string_upper_bound (const gchar* format, + va_list args); + +/* Log level shift offset for user defined + * log levels (0-7 are used by GLib). + */ +#define G_LOG_LEVEL_USER_SHIFT (8) + +/* Glib log levels and flags. + */ +typedef enum +{ + /* log flags */ + G_LOG_FLAG_RECURSION = 1 << 0, + G_LOG_FLAG_FATAL = 1 << 1, + + /* GLib log levels */ + G_LOG_LEVEL_ERROR = 1 << 2, /* always fatal */ + G_LOG_LEVEL_CRITICAL = 1 << 3, + G_LOG_LEVEL_WARNING = 1 << 4, + G_LOG_LEVEL_MESSAGE = 1 << 5, + G_LOG_LEVEL_INFO = 1 << 6, + G_LOG_LEVEL_DEBUG = 1 << 7, + + G_LOG_LEVEL_MASK = ~(G_LOG_FLAG_RECURSION | G_LOG_FLAG_FATAL) +} GLogLevelFlags; + +/* GLib log levels that are considered fatal by default */ +#define G_LOG_FATAL_MASK (G_LOG_FLAG_RECURSION | G_LOG_LEVEL_ERROR) + +typedef void (*GLogFunc) (const gchar *log_domain, + GLogLevelFlags log_level, + const gchar *message, + gpointer user_data); + +/* Logging mechanism + */ +guint g_log_set_handler (const gchar *log_domain, + GLogLevelFlags log_levels, + GLogFunc log_func, + gpointer user_data); +void g_log_remove_handler (const gchar *log_domain, + guint handler_id); +void g_log_default_handler (const gchar *log_domain, + GLogLevelFlags log_level, + const gchar *message, + gpointer unused_data); +GLogFunc g_log_set_default_handler (GLogFunc log_func, + gpointer user_data); +void g_log (const gchar *log_domain, + GLogLevelFlags log_level, + const gchar *format, + ...) G_GNUC_PRINTF (3, 4); +void g_logv (const gchar *log_domain, + GLogLevelFlags log_level, + const gchar *format, + va_list args); +GLogLevelFlags g_log_set_fatal_mask (const gchar *log_domain, + GLogLevelFlags fatal_mask); +GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask); + +/* internal */ +G_GNUC_INTERNAL void _g_log_fallback_handler (const gchar *log_domain, + GLogLevelFlags log_level, + const gchar *message, + gpointer unused_data); + +/* Internal functions, used to implement the following macros */ +void g_return_if_fail_warning (const char *log_domain, + const char *pretty_function, + const char *expression); +void g_warn_message (const char *domain, + const char *file, + int line, + const char *func, + const char *warnexpr); +#ifndef G_DISABLE_DEPRECATED +void g_assert_warning (const char *log_domain, + const char *file, + const int line, + const char *pretty_function, + const char *expression) G_GNUC_NORETURN; +#endif /* !G_DISABLE_DEPRECATED */ + + +#ifndef G_LOG_DOMAIN +#define G_LOG_DOMAIN ((gchar*) 0) +#endif /* G_LOG_DOMAIN */ +#ifdef G_HAVE_ISO_VARARGS +/* for(;;); so that GCC knows that control doesn't go past g_error() */ +#define g_error(...) G_STMT_START { \ + g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_ERROR, \ + __VA_ARGS__); \ + for (;;); \ + } G_STMT_END + +#define g_message(...) g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_MESSAGE, \ + __VA_ARGS__) +#define g_critical(...) g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_CRITICAL, \ + __VA_ARGS__) +#define g_warning(...) g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_WARNING, \ + __VA_ARGS__) +#define g_debug(...) g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_DEBUG, \ + __VA_ARGS__) +#elif defined(G_HAVE_GNUC_VARARGS) +#define g_error(format...) G_STMT_START { \ + g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_ERROR, \ + format); \ + for (;;); \ + } G_STMT_END + +#define g_message(format...) g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_MESSAGE, \ + format) +#define g_critical(format...) g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_CRITICAL, \ + format) +#define g_warning(format...) g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_WARNING, \ + format) +#define g_debug(format...) g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_DEBUG, \ + format) +#else /* no varargs macros */ +static void +g_error (const gchar *format, + ...) +{ + va_list args; + va_start (args, format); + g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args); + va_end (args); + + for(;;); +} +static void +g_message (const gchar *format, + ...) +{ + va_list args; + va_start (args, format); + g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, format, args); + va_end (args); +} +static void +g_critical (const gchar *format, + ...) +{ + va_list args; + va_start (args, format); + g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, format, args); + va_end (args); +} +static void +g_warning (const gchar *format, + ...) +{ + va_list args; + va_start (args, format); + g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, format, args); + va_end (args); +} +static void +g_debug (const gchar *format, + ...) +{ + va_list args; + va_start (args, format); + g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format, args); + va_end (args); +} +#endif /* !__GNUC__ */ + +typedef void (*GPrintFunc) (const gchar *string); +void g_print (const gchar *format, + ...) G_GNUC_PRINTF (1, 2); +GPrintFunc g_set_print_handler (GPrintFunc func); +void g_printerr (const gchar *format, + ...) G_GNUC_PRINTF (1, 2); +GPrintFunc g_set_printerr_handler (GPrintFunc func); + + +/* Provide macros for graceful error handling. + * The "return" macros will return from the current function. + * Two different definitions are given for the macros in + * order to support gcc's __PRETTY_FUNCTION__ capability. + */ + +#define g_warn_if_reached() do { g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, NULL); } while (0) +#define g_warn_if_fail(expr) do { if G_LIKELY (expr) ; else \ + g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, #expr); } while (0) + +#ifdef G_DISABLE_CHECKS + +#define g_return_if_fail(expr) G_STMT_START{ (void)0; }G_STMT_END +#define g_return_val_if_fail(expr,val) G_STMT_START{ (void)0; }G_STMT_END +#define g_return_if_reached() G_STMT_START{ return; }G_STMT_END +#define g_return_val_if_reached(val) G_STMT_START{ return (val); }G_STMT_END + +#else /* !G_DISABLE_CHECKS */ + +#ifdef __GNUC__ + +#define g_return_if_fail(expr) G_STMT_START{ \ + if G_LIKELY(expr) { } else \ + { \ + g_return_if_fail_warning (G_LOG_DOMAIN, \ + __PRETTY_FUNCTION__, \ + #expr); \ + return; \ + }; }G_STMT_END + +#define g_return_val_if_fail(expr,val) G_STMT_START{ \ + if G_LIKELY(expr) { } else \ + { \ + g_return_if_fail_warning (G_LOG_DOMAIN, \ + __PRETTY_FUNCTION__, \ + #expr); \ + return (val); \ + }; }G_STMT_END + +#define g_return_if_reached() G_STMT_START{ \ + g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_CRITICAL, \ + "file %s: line %d (%s): should not be reached", \ + __FILE__, \ + __LINE__, \ + __PRETTY_FUNCTION__); \ + return; }G_STMT_END + +#define g_return_val_if_reached(val) G_STMT_START{ \ + g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_CRITICAL, \ + "file %s: line %d (%s): should not be reached", \ + __FILE__, \ + __LINE__, \ + __PRETTY_FUNCTION__); \ + return (val); }G_STMT_END + +#else /* !__GNUC__ */ + +#define g_return_if_fail(expr) G_STMT_START{ \ + if (expr) { } else \ + { \ + g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_CRITICAL, \ + "file %s: line %d: assertion `%s' failed", \ + __FILE__, \ + __LINE__, \ + #expr); \ + return; \ + }; }G_STMT_END + +#define g_return_val_if_fail(expr, val) G_STMT_START{ \ + if (expr) { } else \ + { \ + g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_CRITICAL, \ + "file %s: line %d: assertion `%s' failed", \ + __FILE__, \ + __LINE__, \ + #expr); \ + return (val); \ + }; }G_STMT_END + +#define g_return_if_reached() G_STMT_START{ \ + g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_CRITICAL, \ + "file %s: line %d: should not be reached", \ + __FILE__, \ + __LINE__); \ + return; }G_STMT_END + +#define g_return_val_if_reached(val) G_STMT_START{ \ + g_log (G_LOG_DOMAIN, \ + G_LOG_LEVEL_CRITICAL, \ + "file %s: line %d: should not be reached", \ + __FILE__, \ + __LINE__); \ + return (val); }G_STMT_END + +#endif /* !__GNUC__ */ + +#endif /* !G_DISABLE_CHECKS */ + +G_END_DECLS + +#endif /* __G_MESSAGES_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gnode.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gnode.h new file mode 100644 index 00000000..e5b7ebc8 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gnode.h @@ -0,0 +1,283 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_NODE_H__ +#define __G_NODE_H__ + +#include <glib/gmem.h> + +G_BEGIN_DECLS + +typedef struct _GNode GNode; + +/* Tree traverse flags */ +typedef enum +{ + G_TRAVERSE_LEAVES = 1 << 0, + G_TRAVERSE_NON_LEAVES = 1 << 1, + G_TRAVERSE_ALL = G_TRAVERSE_LEAVES | G_TRAVERSE_NON_LEAVES, + G_TRAVERSE_MASK = 0x03, + G_TRAVERSE_LEAFS = G_TRAVERSE_LEAVES, + G_TRAVERSE_NON_LEAFS = G_TRAVERSE_NON_LEAVES +} GTraverseFlags; + +/* Tree traverse orders */ +typedef enum +{ + G_IN_ORDER, + G_PRE_ORDER, + G_POST_ORDER, + G_LEVEL_ORDER +} GTraverseType; + +typedef gboolean (*GNodeTraverseFunc) (GNode *node, + gpointer data); +typedef void (*GNodeForeachFunc) (GNode *node, + gpointer data); + +/** + * GCopyFunc: + * @src: A pointer to the data which should be copied + * @data: Additional data + * + * A function of this signature is used to copy the node data + * when doing a deep-copy of a tree. + * + * Returns: A pointer to the copy + * + * Since: 2.4 + */ +typedef gpointer (*GCopyFunc) (gconstpointer src, + gpointer data); + +/* N-way tree implementation + */ +struct _GNode +{ + gpointer data; + GNode *next; + GNode *prev; + GNode *parent; + GNode *children; +}; + +/** + * G_NODE_IS_ROOT: + * @node: a #GNode + * + * Returns %TRUE if a #GNode is the root of a tree. + * + * Returns: %TRUE if the #GNode is the root of a tree + * (i.e. it has no parent or siblings) + */ +#define G_NODE_IS_ROOT(node) (((GNode*) (node))->parent == NULL && \ + ((GNode*) (node))->prev == NULL && \ + ((GNode*) (node))->next == NULL) + +/** + * G_NODE_IS_LEAF: + * @node: a #GNode + * + * Returns %TRUE if a #GNode is a leaf node. + * + * Returns: %TRUE if the #GNode is a leaf node + * (i.e. it has no children) + */ +#define G_NODE_IS_LEAF(node) (((GNode*) (node))->children == NULL) + +GNode* g_node_new (gpointer data); +void g_node_destroy (GNode *root); +void g_node_unlink (GNode *node); +GNode* g_node_copy_deep (GNode *node, + GCopyFunc copy_func, + gpointer data); +GNode* g_node_copy (GNode *node); +GNode* g_node_insert (GNode *parent, + gint position, + GNode *node); +GNode* g_node_insert_before (GNode *parent, + GNode *sibling, + GNode *node); +GNode* g_node_insert_after (GNode *parent, + GNode *sibling, + GNode *node); +GNode* g_node_prepend (GNode *parent, + GNode *node); +guint g_node_n_nodes (GNode *root, + GTraverseFlags flags); +GNode* g_node_get_root (GNode *node); +gboolean g_node_is_ancestor (GNode *node, + GNode *descendant); +guint g_node_depth (GNode *node); +GNode* g_node_find (GNode *root, + GTraverseType order, + GTraverseFlags flags, + gpointer data); + +/* convenience macros */ +/** + * g_node_append: + * @parent: the #GNode to place the new #GNode under + * @node: the #GNode to insert + * + * Inserts a #GNode as the last child of the given parent. + * + * Returns: the inserted #GNode + */ +#define g_node_append(parent, node) \ + g_node_insert_before ((parent), NULL, (node)) + +/** + * g_node_insert_data: + * @parent: the #GNode to place the new #GNode under + * @position: the position to place the new #GNode at. If position is -1, + * the new #GNode is inserted as the last child of @parent + * @data: the data for the new #GNode + * + * Inserts a new #GNode at the given position. + * + * Returns: the new #GNode + */ +#define g_node_insert_data(parent, position, data) \ + g_node_insert ((parent), (position), g_node_new (data)) + +/** + * g_node_insert_data_before: + * @parent: the #GNode to place the new #GNode under + * @sibling: the sibling #GNode to place the new #GNode before + * @data: the data for the new #GNode + * + * Inserts a new #GNode before the given sibling. + * + * Returns: the new #GNode + */ +#define g_node_insert_data_before(parent, sibling, data) \ + g_node_insert_before ((parent), (sibling), g_node_new (data)) + +/** + * g_node_prepend_data: + * @parent: the #GNode to place the new #GNode under + * @data: the data for the new #GNode + * + * Inserts a new #GNode as the first child of the given parent. + * + * Returns: the new #GNode + */ +#define g_node_prepend_data(parent, data) \ + g_node_prepend ((parent), g_node_new (data)) + +/** + * g_node_append_data: + * @parent: the #GNode to place the new #GNode under + * @data: the data for the new #GNode + * + * Inserts a new #GNode as the last child of the given parent. + * + * Returns: the new #GNode + */ +#define g_node_append_data(parent, data) \ + g_node_insert_before ((parent), NULL, g_node_new (data)) + +/* traversal function, assumes that `node' is root + * (only traverses `node' and its subtree). + * this function is just a high level interface to + * low level traversal functions, optimized for speed. + */ +void g_node_traverse (GNode *root, + GTraverseType order, + GTraverseFlags flags, + gint max_depth, + GNodeTraverseFunc func, + gpointer data); + +/* return the maximum tree height starting with `node', this is an expensive + * operation, since we need to visit all nodes. this could be shortened by + * adding `guint height' to struct _GNode, but then again, this is not very + * often needed, and would make g_node_insert() more time consuming. + */ +guint g_node_max_height (GNode *root); + +void g_node_children_foreach (GNode *node, + GTraverseFlags flags, + GNodeForeachFunc func, + gpointer data); +void g_node_reverse_children (GNode *node); +guint g_node_n_children (GNode *node); +GNode* g_node_nth_child (GNode *node, + guint n); +GNode* g_node_last_child (GNode *node); +GNode* g_node_find_child (GNode *node, + GTraverseFlags flags, + gpointer data); +gint g_node_child_position (GNode *node, + GNode *child); +gint g_node_child_index (GNode *node, + gpointer data); + +GNode* g_node_first_sibling (GNode *node); +GNode* g_node_last_sibling (GNode *node); + +/** + * g_node_prev_sibling: + * @node: a #GNode + * + * Gets the previous sibling of a #GNode. + * + * Returns: the previous sibling of @node, or %NULL if @node is %NULL + */ +#define g_node_prev_sibling(node) ((node) ? \ + ((GNode*) (node))->prev : NULL) + +/** + * g_node_next_sibling: + * @node: a #GNode + * + * Gets the next sibling of a #GNode. + * + * Returns: the next sibling of @node, or %NULL if @node is %NULL + */ +#define g_node_next_sibling(node) ((node) ? \ + ((GNode*) (node))->next : NULL) + +/** + * g_node_first_child: + * @node: a #GNode + * + * Gets the first child of a #GNode. + * + * Returns: the first child of @node, or %NULL if @node is %NULL + * or has no children + */ +#define g_node_first_child(node) ((node) ? \ + ((GNode*) (node))->children : NULL) + +#ifndef G_DISABLE_DEPRECATED +void g_node_push_allocator (gpointer dummy); +void g_node_pop_allocator (void); +#endif +G_END_DECLS + +#endif /* __G_NODE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/goption.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/goption.h new file mode 100644 index 00000000..908e5319 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/goption.h @@ -0,0 +1,160 @@ +/* goption.h - Option parser + * + * Copyright (C) 2004 Anders Carlsson <andersca@gnome.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_OPTION_H__ +#define __G_OPTION_H__ + +#include <glib/gerror.h> +#include <glib/gquark.h> + +G_BEGIN_DECLS + +typedef struct _GOptionContext GOptionContext; +typedef struct _GOptionGroup GOptionGroup; +typedef struct _GOptionEntry GOptionEntry; + +typedef enum +{ + G_OPTION_FLAG_HIDDEN = 1 << 0, + G_OPTION_FLAG_IN_MAIN = 1 << 1, + G_OPTION_FLAG_REVERSE = 1 << 2, + G_OPTION_FLAG_NO_ARG = 1 << 3, + G_OPTION_FLAG_FILENAME = 1 << 4, + G_OPTION_FLAG_OPTIONAL_ARG = 1 << 5, + G_OPTION_FLAG_NOALIAS = 1 << 6 +} GOptionFlags; + +typedef enum +{ + G_OPTION_ARG_NONE, + G_OPTION_ARG_STRING, + G_OPTION_ARG_INT, + G_OPTION_ARG_CALLBACK, + G_OPTION_ARG_FILENAME, + G_OPTION_ARG_STRING_ARRAY, + G_OPTION_ARG_FILENAME_ARRAY, + G_OPTION_ARG_DOUBLE, + G_OPTION_ARG_INT64 +} GOptionArg; + +typedef gboolean (*GOptionArgFunc) (const gchar *option_name, + const gchar *value, + gpointer data, + GError **error); + +typedef gboolean (*GOptionParseFunc) (GOptionContext *context, + GOptionGroup *group, + gpointer data, + GError **error); + +typedef void (*GOptionErrorFunc) (GOptionContext *context, + GOptionGroup *group, + gpointer data, + GError **error); + +#define G_OPTION_ERROR (g_option_error_quark ()) + +typedef enum +{ + G_OPTION_ERROR_UNKNOWN_OPTION, + G_OPTION_ERROR_BAD_VALUE, + G_OPTION_ERROR_FAILED +} GOptionError; + +GQuark g_option_error_quark (void); + + +struct _GOptionEntry +{ + const gchar *long_name; + gchar short_name; + gint flags; + + GOptionArg arg; + gpointer arg_data; + + const gchar *description; + const gchar *arg_description; +}; + +#define G_OPTION_REMAINING "" + +GOptionContext *g_option_context_new (const gchar *parameter_string); +void g_option_context_set_summary (GOptionContext *context, + const gchar *summary); +G_CONST_RETURN gchar *g_option_context_get_summary (GOptionContext *context); +void g_option_context_set_description (GOptionContext *context, + const gchar *description); +G_CONST_RETURN gchar *g_option_context_get_description (GOptionContext *context); +void g_option_context_free (GOptionContext *context); +void g_option_context_set_help_enabled (GOptionContext *context, + gboolean help_enabled); +gboolean g_option_context_get_help_enabled (GOptionContext *context); +void g_option_context_set_ignore_unknown_options (GOptionContext *context, + gboolean ignore_unknown); +gboolean g_option_context_get_ignore_unknown_options (GOptionContext *context); + +void g_option_context_add_main_entries (GOptionContext *context, + const GOptionEntry *entries, + const gchar *translation_domain); +gboolean g_option_context_parse (GOptionContext *context, + gint *argc, + gchar ***argv, + GError **error); +void g_option_context_set_translate_func (GOptionContext *context, + GTranslateFunc func, + gpointer data, + GDestroyNotify destroy_notify); +void g_option_context_set_translation_domain (GOptionContext *context, + const gchar *domain); + +void g_option_context_add_group (GOptionContext *context, + GOptionGroup *group); +void g_option_context_set_main_group (GOptionContext *context, + GOptionGroup *group); +GOptionGroup *g_option_context_get_main_group (GOptionContext *context); +gchar *g_option_context_get_help (GOptionContext *context, + gboolean main_help, + GOptionGroup *group); + +GOptionGroup *g_option_group_new (const gchar *name, + const gchar *description, + const gchar *help_description, + gpointer user_data, + GDestroyNotify destroy); +void g_option_group_set_parse_hooks (GOptionGroup *group, + GOptionParseFunc pre_parse_func, + GOptionParseFunc post_parse_func); +void g_option_group_set_error_hook (GOptionGroup *group, + GOptionErrorFunc error_func); +void g_option_group_free (GOptionGroup *group); +void g_option_group_add_entries (GOptionGroup *group, + const GOptionEntry *entries); +void g_option_group_set_translate_func (GOptionGroup *group, + GTranslateFunc func, + gpointer data, + GDestroyNotify destroy_notify); +void g_option_group_set_translation_domain (GOptionGroup *group, + const gchar *domain); + + +G_END_DECLS + +#endif /* __G_OPTION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gpattern.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gpattern.h new file mode 100644 index 00000000..5c896687 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gpattern.h @@ -0,0 +1,44 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997, 1999 Peter Mattis, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __G_PATTERN_H__ +#define __G_PATTERN_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + + +typedef struct _GPatternSpec GPatternSpec; + +GPatternSpec* g_pattern_spec_new (const gchar *pattern); +void g_pattern_spec_free (GPatternSpec *pspec); +gboolean g_pattern_spec_equal (GPatternSpec *pspec1, + GPatternSpec *pspec2); +gboolean g_pattern_match (GPatternSpec *pspec, + guint string_length, + const gchar *string, + const gchar *string_reversed); +gboolean g_pattern_match_string (GPatternSpec *pspec, + const gchar *string); +gboolean g_pattern_match_simple (const gchar *pattern, + const gchar *string); + +G_END_DECLS + +#endif /* __G_PATTERN_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gprimes.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gprimes.h new file mode 100644 index 00000000..0f1740cb --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gprimes.h @@ -0,0 +1,47 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_PRIMES_H__ +#define __G_PRIMES_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +/* Prime numbers. + */ + +/* This function returns prime numbers spaced by approximately 1.5-2.0 + * and is for use in resizing data structures which prefer + * prime-valued sizes. The closest spaced prime function returns the + * next largest prime, or the highest it knows about which is about + * MAXINT/4. + */ +guint g_spaced_primes_closest (guint num) G_GNUC_CONST; + +G_END_DECLS + +#endif /* __G_PRIMES_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gprintf.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gprintf.h new file mode 100644 index 00000000..aa542b3d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gprintf.h @@ -0,0 +1,54 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997, 2002 Peter Mattis, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __G_PRINTF_H__ +#define __G_PRINTF_H__ + +#include <glib/gtypes.h> +#include <stdio.h> +#include <stdarg.h> + +G_BEGIN_DECLS + +gint g_printf (gchar const *format, + ...) G_GNUC_PRINTF (1, 2); +gint g_fprintf (FILE *file, + gchar const *format, + ...) G_GNUC_PRINTF (2, 3); +gint g_sprintf (gchar *string, + gchar const *format, + ...) G_GNUC_PRINTF (2, 3); + +gint g_vprintf (gchar const *format, + va_list args); +gint g_vfprintf (FILE *file, + gchar const *format, + va_list args); +gint g_vsprintf (gchar *string, + gchar const *format, + va_list args); +gint g_vasprintf (gchar **string, + gchar const *format, + va_list args); + +G_END_DECLS + +#endif /* __G_PRINTF_H__ */ + + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gqsort.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gqsort.h new file mode 100644 index 00000000..d0ff46a4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gqsort.h @@ -0,0 +1,44 @@ + /* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + + +#ifndef __G_QSORT_H__ +#define __G_QSORT_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +void g_qsort_with_data (gconstpointer pbase, + gint total_elems, + gsize size, + GCompareDataFunc compare_func, + gpointer user_data); + +G_END_DECLS + +#endif /* __G_QSORT_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gquark.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gquark.h new file mode 100644 index 00000000..fc3006ff --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gquark.h @@ -0,0 +1,50 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_QUARK_H__ +#define __G_QUARK_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +typedef guint32 GQuark; + +/* Quarks (string<->id association) + */ +GQuark g_quark_try_string (const gchar *string); +GQuark g_quark_from_static_string (const gchar *string); +GQuark g_quark_from_string (const gchar *string); +G_CONST_RETURN gchar* g_quark_to_string (GQuark quark) G_GNUC_CONST; + +G_CONST_RETURN gchar* g_intern_string (const gchar *string); +G_CONST_RETURN gchar* g_intern_static_string (const gchar *string); + + +G_END_DECLS + +#endif /* __G_QUARK_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gqueue.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gqueue.h new file mode 100644 index 00000000..c4004514 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gqueue.h @@ -0,0 +1,123 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_QUEUE_H__ +#define __G_QUEUE_H__ + +#include <glib/glist.h> + +G_BEGIN_DECLS + +typedef struct _GQueue GQueue; + +struct _GQueue +{ + GList *head; + GList *tail; + guint length; +}; + +#define G_QUEUE_INIT { NULL, NULL, 0 } + +/* Queues + */ +GQueue* g_queue_new (void); +void g_queue_free (GQueue *queue); +void g_queue_init (GQueue *queue); +void g_queue_clear (GQueue *queue); +gboolean g_queue_is_empty (GQueue *queue); +guint g_queue_get_length (GQueue *queue); +void g_queue_reverse (GQueue *queue); +GQueue * g_queue_copy (GQueue *queue); +void g_queue_foreach (GQueue *queue, + GFunc func, + gpointer user_data); +GList * g_queue_find (GQueue *queue, + gconstpointer data); +GList * g_queue_find_custom (GQueue *queue, + gconstpointer data, + GCompareFunc func); +void g_queue_sort (GQueue *queue, + GCompareDataFunc compare_func, + gpointer user_data); + +void g_queue_push_head (GQueue *queue, + gpointer data); +void g_queue_push_tail (GQueue *queue, + gpointer data); +void g_queue_push_nth (GQueue *queue, + gpointer data, + gint n); +gpointer g_queue_pop_head (GQueue *queue); +gpointer g_queue_pop_tail (GQueue *queue); +gpointer g_queue_pop_nth (GQueue *queue, + guint n); +gpointer g_queue_peek_head (GQueue *queue); +gpointer g_queue_peek_tail (GQueue *queue); +gpointer g_queue_peek_nth (GQueue *queue, + guint n); +gint g_queue_index (GQueue *queue, + gconstpointer data); +void g_queue_remove (GQueue *queue, + gconstpointer data); +void g_queue_remove_all (GQueue *queue, + gconstpointer data); +void g_queue_insert_before (GQueue *queue, + GList *sibling, + gpointer data); +void g_queue_insert_after (GQueue *queue, + GList *sibling, + gpointer data); +void g_queue_insert_sorted (GQueue *queue, + gpointer data, + GCompareDataFunc func, + gpointer user_data); + +void g_queue_push_head_link (GQueue *queue, + GList *link_); +void g_queue_push_tail_link (GQueue *queue, + GList *link_); +void g_queue_push_nth_link (GQueue *queue, + gint n, + GList *link_); +GList* g_queue_pop_head_link (GQueue *queue); +GList* g_queue_pop_tail_link (GQueue *queue); +GList* g_queue_pop_nth_link (GQueue *queue, + guint n); +GList* g_queue_peek_head_link (GQueue *queue); +GList* g_queue_peek_tail_link (GQueue *queue); +GList* g_queue_peek_nth_link (GQueue *queue, + guint n); +gint g_queue_link_index (GQueue *queue, + GList *link_); +void g_queue_unlink (GQueue *queue, + GList *link_); +void g_queue_delete_link (GQueue *queue, + GList *link_); + +G_END_DECLS + +#endif /* __G_QUEUE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/grand.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/grand.h new file mode 100644 index 00000000..cb6887bc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/grand.h @@ -0,0 +1,87 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_RAND_H__ +#define __G_RAND_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +typedef struct _GRand GRand; + +/* GRand - a good and fast random number generator: Mersenne Twister + * see http://www.math.keio.ac.jp/~matumoto/emt.html for more info. + * The range functions return a value in the intervall [begin, end). + * int -> [0..2^32-1] + * int_range -> [begin..end-1] + * double -> [0..1) + * double_range -> [begin..end) + */ + +GRand* g_rand_new_with_seed (guint32 seed); +GRand* g_rand_new_with_seed_array (const guint32 *seed, + guint seed_length); +GRand* g_rand_new (void); +void g_rand_free (GRand *rand_); +GRand* g_rand_copy (GRand *rand_); +void g_rand_set_seed (GRand *rand_, + guint32 seed); +void g_rand_set_seed_array (GRand *rand_, + const guint32 *seed, + guint seed_length); + +#define g_rand_boolean(rand_) ((g_rand_int (rand_) & (1 << 15)) != 0) + +guint32 g_rand_int (GRand *rand_); +gint32 g_rand_int_range (GRand *rand_, + gint32 begin, + gint32 end); +gdouble g_rand_double (GRand *rand_); +gdouble g_rand_double_range (GRand *rand_, + gdouble begin, + gdouble end); +void g_random_set_seed (guint32 seed); + +#define g_random_boolean() ((g_random_int () & (1 << 15)) != 0) + +guint32 g_random_int (void); +gint32 g_random_int_range (gint32 begin, + gint32 end); +gdouble g_random_double (void); +gdouble g_random_double_range (gdouble begin, + gdouble end); + + +G_END_DECLS + +#endif /* __G_RAND_H__ */ + + + + + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gregex.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gregex.h new file mode 100644 index 00000000..c60b447f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gregex.h @@ -0,0 +1,240 @@ +/* GRegex -- regular expression API wrapper around PCRE. + * + * Copyright (C) 1999, 2000 Scott Wimer + * Copyright (C) 2004, Matthias Clasen <mclasen@redhat.com> + * Copyright (C) 2005 - 2007, Marco Barisione <marco@barisione.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __G_REGEX_H__ +#define __G_REGEX_H__ + +#include <glib/gerror.h> +#include <glib/gstring.h> + +G_BEGIN_DECLS + +typedef enum +{ + G_REGEX_ERROR_COMPILE, + G_REGEX_ERROR_OPTIMIZE, + G_REGEX_ERROR_REPLACE, + G_REGEX_ERROR_MATCH, + G_REGEX_ERROR_INTERNAL, + + /* These are the error codes from PCRE + 100 */ + G_REGEX_ERROR_STRAY_BACKSLASH = 101, + G_REGEX_ERROR_MISSING_CONTROL_CHAR = 102, + G_REGEX_ERROR_UNRECOGNIZED_ESCAPE = 103, + G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER = 104, + G_REGEX_ERROR_QUANTIFIER_TOO_BIG = 105, + G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS = 106, + G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS = 107, + G_REGEX_ERROR_RANGE_OUT_OF_ORDER = 108, + G_REGEX_ERROR_NOTHING_TO_REPEAT = 109, + G_REGEX_ERROR_UNRECOGNIZED_CHARACTER = 112, + G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS = 113, + G_REGEX_ERROR_UNMATCHED_PARENTHESIS = 114, + G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE = 115, + G_REGEX_ERROR_UNTERMINATED_COMMENT = 118, + G_REGEX_ERROR_EXPRESSION_TOO_LARGE = 120, + G_REGEX_ERROR_MEMORY_ERROR = 121, + G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND = 125, + G_REGEX_ERROR_MALFORMED_CONDITION = 126, + G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES = 127, + G_REGEX_ERROR_ASSERTION_EXPECTED = 128, + G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME = 130, + G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED = 131, + G_REGEX_ERROR_HEX_CODE_TOO_LARGE = 134, + G_REGEX_ERROR_INVALID_CONDITION = 135, + G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND = 136, + G_REGEX_ERROR_INFINITE_LOOP = 140, + G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR = 142, + G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME = 143, + G_REGEX_ERROR_MALFORMED_PROPERTY = 146, + G_REGEX_ERROR_UNKNOWN_PROPERTY = 147, + G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG = 148, + G_REGEX_ERROR_TOO_MANY_SUBPATTERNS = 149, + G_REGEX_ERROR_INVALID_OCTAL_VALUE = 151, + G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE = 154, + G_REGEX_ERROR_DEFINE_REPETION = 155, + G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS = 156, + G_REGEX_ERROR_MISSING_BACK_REFERENCE = 157 +} GRegexError; + +#define G_REGEX_ERROR g_regex_error_quark () + +GQuark g_regex_error_quark (void); + +/* Remember to update G_REGEX_COMPILE_MASK in gregex.c after + * adding a new flag. */ +typedef enum +{ + G_REGEX_CASELESS = 1 << 0, + G_REGEX_MULTILINE = 1 << 1, + G_REGEX_DOTALL = 1 << 2, + G_REGEX_EXTENDED = 1 << 3, + G_REGEX_ANCHORED = 1 << 4, + G_REGEX_DOLLAR_ENDONLY = 1 << 5, + G_REGEX_UNGREEDY = 1 << 9, + G_REGEX_RAW = 1 << 11, + G_REGEX_NO_AUTO_CAPTURE = 1 << 12, + G_REGEX_OPTIMIZE = 1 << 13, + G_REGEX_DUPNAMES = 1 << 19, + G_REGEX_NEWLINE_CR = 1 << 20, + G_REGEX_NEWLINE_LF = 1 << 21, + G_REGEX_NEWLINE_CRLF = G_REGEX_NEWLINE_CR | G_REGEX_NEWLINE_LF +} GRegexCompileFlags; + +/* Remember to update G_REGEX_MATCH_MASK in gregex.c after + * adding a new flag. */ +typedef enum +{ + G_REGEX_MATCH_ANCHORED = 1 << 4, + G_REGEX_MATCH_NOTBOL = 1 << 7, + G_REGEX_MATCH_NOTEOL = 1 << 8, + G_REGEX_MATCH_NOTEMPTY = 1 << 10, + G_REGEX_MATCH_PARTIAL = 1 << 15, + G_REGEX_MATCH_NEWLINE_CR = 1 << 20, + G_REGEX_MATCH_NEWLINE_LF = 1 << 21, + G_REGEX_MATCH_NEWLINE_CRLF = G_REGEX_MATCH_NEWLINE_CR | G_REGEX_MATCH_NEWLINE_LF, + G_REGEX_MATCH_NEWLINE_ANY = 1 << 22 +} GRegexMatchFlags; + +typedef struct _GRegex GRegex; +typedef struct _GMatchInfo GMatchInfo; + +typedef gboolean (*GRegexEvalCallback) (const GMatchInfo *match_info, + GString *result, + gpointer user_data); + + +GRegex *g_regex_new (const gchar *pattern, + GRegexCompileFlags compile_options, + GRegexMatchFlags match_options, + GError **error); +GRegex *g_regex_ref (GRegex *regex); +void g_regex_unref (GRegex *regex); +const gchar *g_regex_get_pattern (const GRegex *regex); +gint g_regex_get_max_backref (const GRegex *regex); +gint g_regex_get_capture_count (const GRegex *regex); +gint g_regex_get_string_number (const GRegex *regex, + const gchar *name); +gchar *g_regex_escape_string (const gchar *string, + gint length); + +/* Matching. */ +gboolean g_regex_match_simple (const gchar *pattern, + const gchar *string, + GRegexCompileFlags compile_options, + GRegexMatchFlags match_options); +gboolean g_regex_match (const GRegex *regex, + const gchar *string, + GRegexMatchFlags match_options, + GMatchInfo **match_info); +gboolean g_regex_match_full (const GRegex *regex, + const gchar *string, + gssize string_len, + gint start_position, + GRegexMatchFlags match_options, + GMatchInfo **match_info, + GError **error); +gboolean g_regex_match_all (const GRegex *regex, + const gchar *string, + GRegexMatchFlags match_options, + GMatchInfo **match_info); +gboolean g_regex_match_all_full (const GRegex *regex, + const gchar *string, + gssize string_len, + gint start_position, + GRegexMatchFlags match_options, + GMatchInfo **match_info, + GError **error); + +/* String splitting. */ +gchar **g_regex_split_simple (const gchar *pattern, + const gchar *string, + GRegexCompileFlags compile_options, + GRegexMatchFlags match_options); +gchar **g_regex_split (const GRegex *regex, + const gchar *string, + GRegexMatchFlags match_options); +gchar **g_regex_split_full (const GRegex *regex, + const gchar *string, + gssize string_len, + gint start_position, + GRegexMatchFlags match_options, + gint max_tokens, + GError **error); + +/* String replacement. */ +gchar *g_regex_replace (const GRegex *regex, + const gchar *string, + gssize string_len, + gint start_position, + const gchar *replacement, + GRegexMatchFlags match_options, + GError **error); +gchar *g_regex_replace_literal (const GRegex *regex, + const gchar *string, + gssize string_len, + gint start_position, + const gchar *replacement, + GRegexMatchFlags match_options, + GError **error); +gchar *g_regex_replace_eval (const GRegex *regex, + const gchar *string, + gssize string_len, + gint start_position, + GRegexMatchFlags match_options, + GRegexEvalCallback eval, + gpointer user_data, + GError **error); +gboolean g_regex_check_replacement (const gchar *replacement, + gboolean *has_references, + GError **error); + +/* Match info */ +GRegex *g_match_info_get_regex (const GMatchInfo *match_info); +const gchar *g_match_info_get_string (const GMatchInfo *match_info); + +void g_match_info_free (GMatchInfo *match_info); +gboolean g_match_info_next (GMatchInfo *match_info, + GError **error); +gboolean g_match_info_matches (const GMatchInfo *match_info); +gint g_match_info_get_match_count (const GMatchInfo *match_info); +gboolean g_match_info_is_partial_match (const GMatchInfo *match_info); +gchar *g_match_info_expand_references(const GMatchInfo *match_info, + const gchar *string_to_expand, + GError **error); +gchar *g_match_info_fetch (const GMatchInfo *match_info, + gint match_num); +gboolean g_match_info_fetch_pos (const GMatchInfo *match_info, + gint match_num, + gint *start_pos, + gint *end_pos); +gchar *g_match_info_fetch_named (const GMatchInfo *match_info, + const gchar *name); +gboolean g_match_info_fetch_named_pos (const GMatchInfo *match_info, + const gchar *name, + gint *start_pos, + gint *end_pos); +gchar **g_match_info_fetch_all (const GMatchInfo *match_info); + +G_END_DECLS + + +#endif /* __G_REGEX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/grel.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/grel.h new file mode 100644 index 00000000..275f0549 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/grel.h @@ -0,0 +1,94 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_REL_H__ +#define __G_REL_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +typedef struct _GRelation GRelation; +typedef struct _GTuples GTuples; + +struct _GTuples +{ + guint len; +}; + +/* GRelation + * + * Indexed Relations. Imagine a really simple table in a + * database. Relations are not ordered. This data type is meant for + * maintaining a N-way mapping. + * + * g_relation_new() creates a relation with FIELDS fields + * + * g_relation_destroy() frees all resources + * g_tuples_destroy() frees the result of g_relation_select() + * + * g_relation_index() indexes relation FIELD with the provided + * equality and hash functions. this must be done before any + * calls to insert are made. + * + * g_relation_insert() inserts a new tuple. you are expected to + * provide the right number of fields. + * + * g_relation_delete() deletes all relations with KEY in FIELD + * g_relation_select() returns ... + * g_relation_count() counts ... + */ + +GRelation* g_relation_new (gint fields); +void g_relation_destroy (GRelation *relation); +void g_relation_index (GRelation *relation, + gint field, + GHashFunc hash_func, + GEqualFunc key_equal_func); +void g_relation_insert (GRelation *relation, + ...); +gint g_relation_delete (GRelation *relation, + gconstpointer key, + gint field); +GTuples* g_relation_select (GRelation *relation, + gconstpointer key, + gint field); +gint g_relation_count (GRelation *relation, + gconstpointer key, + gint field); +gboolean g_relation_exists (GRelation *relation, + ...); +void g_relation_print (GRelation *relation); + +void g_tuples_destroy (GTuples *tuples); +gpointer g_tuples_index (GTuples *tuples, + gint index_, + gint field); + +G_END_DECLS + +#endif /* __G_REL_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gscanner.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gscanner.h new file mode 100644 index 00000000..a61c0a5b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gscanner.h @@ -0,0 +1,275 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_SCANNER_H__ +#define __G_SCANNER_H__ + +#include <glib/gdataset.h> +#include <glib/ghash.h> + +G_BEGIN_DECLS + +typedef struct _GScanner GScanner; +typedef struct _GScannerConfig GScannerConfig; +typedef union _GTokenValue GTokenValue; + +typedef void (*GScannerMsgFunc) (GScanner *scanner, + gchar *message, + gboolean error); + +/* GScanner: Flexible lexical scanner for general purpose. + */ + +/* Character sets */ +#define G_CSET_A_2_Z "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +#define G_CSET_a_2_z "abcdefghijklmnopqrstuvwxyz" +#define G_CSET_DIGITS "0123456789" +#define G_CSET_LATINC "\300\301\302\303\304\305\306"\ + "\307\310\311\312\313\314\315\316\317\320"\ + "\321\322\323\324\325\326"\ + "\330\331\332\333\334\335\336" +#define G_CSET_LATINS "\337\340\341\342\343\344\345\346"\ + "\347\350\351\352\353\354\355\356\357\360"\ + "\361\362\363\364\365\366"\ + "\370\371\372\373\374\375\376\377" + +/* Error types */ +typedef enum +{ + G_ERR_UNKNOWN, + G_ERR_UNEXP_EOF, + G_ERR_UNEXP_EOF_IN_STRING, + G_ERR_UNEXP_EOF_IN_COMMENT, + G_ERR_NON_DIGIT_IN_CONST, + G_ERR_DIGIT_RADIX, + G_ERR_FLOAT_RADIX, + G_ERR_FLOAT_MALFORMED +} GErrorType; + +/* Token types */ +typedef enum +{ + G_TOKEN_EOF = 0, + + G_TOKEN_LEFT_PAREN = '(', + G_TOKEN_RIGHT_PAREN = ')', + G_TOKEN_LEFT_CURLY = '{', + G_TOKEN_RIGHT_CURLY = '}', + G_TOKEN_LEFT_BRACE = '[', + G_TOKEN_RIGHT_BRACE = ']', + G_TOKEN_EQUAL_SIGN = '=', + G_TOKEN_COMMA = ',', + + G_TOKEN_NONE = 256, + + G_TOKEN_ERROR, + + G_TOKEN_CHAR, + G_TOKEN_BINARY, + G_TOKEN_OCTAL, + G_TOKEN_INT, + G_TOKEN_HEX, + G_TOKEN_FLOAT, + G_TOKEN_STRING, + + G_TOKEN_SYMBOL, + G_TOKEN_IDENTIFIER, + G_TOKEN_IDENTIFIER_NULL, + + G_TOKEN_COMMENT_SINGLE, + G_TOKEN_COMMENT_MULTI, + G_TOKEN_LAST +} GTokenType; + +union _GTokenValue +{ + gpointer v_symbol; + gchar *v_identifier; + gulong v_binary; + gulong v_octal; + gulong v_int; + guint64 v_int64; + gdouble v_float; + gulong v_hex; + gchar *v_string; + gchar *v_comment; + guchar v_char; + guint v_error; +}; + +struct _GScannerConfig +{ + /* Character sets + */ + gchar *cset_skip_characters; /* default: " \t\n" */ + gchar *cset_identifier_first; + gchar *cset_identifier_nth; + gchar *cpair_comment_single; /* default: "#\n" */ + + /* Should symbol lookup work case sensitive? + */ + guint case_sensitive : 1; + + /* Boolean values to be adjusted "on the fly" + * to configure scanning behaviour. + */ + guint skip_comment_multi : 1; /* C like comment */ + guint skip_comment_single : 1; /* single line comment */ + guint scan_comment_multi : 1; /* scan multi line comments? */ + guint scan_identifier : 1; + guint scan_identifier_1char : 1; + guint scan_identifier_NULL : 1; + guint scan_symbols : 1; + guint scan_binary : 1; + guint scan_octal : 1; + guint scan_float : 1; + guint scan_hex : 1; /* `0x0ff0' */ + guint scan_hex_dollar : 1; /* `$0ff0' */ + guint scan_string_sq : 1; /* string: 'anything' */ + guint scan_string_dq : 1; /* string: "\\-escapes!\n" */ + guint numbers_2_int : 1; /* bin, octal, hex => int */ + guint int_2_float : 1; /* int => G_TOKEN_FLOAT? */ + guint identifier_2_string : 1; + guint char_2_token : 1; /* return G_TOKEN_CHAR? */ + guint symbol_2_token : 1; + guint scope_0_fallback : 1; /* try scope 0 on lookups? */ + guint store_int64 : 1; /* use value.v_int64 rather than v_int */ + guint padding_dummy; +}; + +struct _GScanner +{ + /* unused fields */ + gpointer user_data; + guint max_parse_errors; + + /* g_scanner_error() increments this field */ + guint parse_errors; + + /* name of input stream, featured by the default message handler */ + const gchar *input_name; + + /* quarked data */ + GData *qdata; + + /* link into the scanner configuration */ + GScannerConfig *config; + + /* fields filled in after g_scanner_get_next_token() */ + GTokenType token; + GTokenValue value; + guint line; + guint position; + + /* fields filled in after g_scanner_peek_next_token() */ + GTokenType next_token; + GTokenValue next_value; + guint next_line; + guint next_position; + + /* to be considered private */ + GHashTable *symbol_table; + gint input_fd; + const gchar *text; + const gchar *text_end; + gchar *buffer; + guint scope_id; + + /* handler function for _warn and _error */ + GScannerMsgFunc msg_handler; +}; + +GScanner* g_scanner_new (const GScannerConfig *config_templ); +void g_scanner_destroy (GScanner *scanner); +void g_scanner_input_file (GScanner *scanner, + gint input_fd); +void g_scanner_sync_file_offset (GScanner *scanner); +void g_scanner_input_text (GScanner *scanner, + const gchar *text, + guint text_len); +GTokenType g_scanner_get_next_token (GScanner *scanner); +GTokenType g_scanner_peek_next_token (GScanner *scanner); +GTokenType g_scanner_cur_token (GScanner *scanner); +GTokenValue g_scanner_cur_value (GScanner *scanner); +guint g_scanner_cur_line (GScanner *scanner); +guint g_scanner_cur_position (GScanner *scanner); +gboolean g_scanner_eof (GScanner *scanner); +guint g_scanner_set_scope (GScanner *scanner, + guint scope_id); +void g_scanner_scope_add_symbol (GScanner *scanner, + guint scope_id, + const gchar *symbol, + gpointer value); +void g_scanner_scope_remove_symbol (GScanner *scanner, + guint scope_id, + const gchar *symbol); +gpointer g_scanner_scope_lookup_symbol (GScanner *scanner, + guint scope_id, + const gchar *symbol); +void g_scanner_scope_foreach_symbol (GScanner *scanner, + guint scope_id, + GHFunc func, + gpointer user_data); +gpointer g_scanner_lookup_symbol (GScanner *scanner, + const gchar *symbol); +void g_scanner_unexp_token (GScanner *scanner, + GTokenType expected_token, + const gchar *identifier_spec, + const gchar *symbol_spec, + const gchar *symbol_name, + const gchar *message, + gint is_error); +void g_scanner_error (GScanner *scanner, + const gchar *format, + ...) G_GNUC_PRINTF (2,3); +void g_scanner_warn (GScanner *scanner, + const gchar *format, + ...) G_GNUC_PRINTF (2,3); + +#ifndef G_DISABLE_DEPRECATED + +/* keep downward source compatibility */ +#define g_scanner_add_symbol( scanner, symbol, value ) G_STMT_START { \ + g_scanner_scope_add_symbol ((scanner), 0, (symbol), (value)); \ +} G_STMT_END +#define g_scanner_remove_symbol( scanner, symbol ) G_STMT_START { \ + g_scanner_scope_remove_symbol ((scanner), 0, (symbol)); \ +} G_STMT_END +#define g_scanner_foreach_symbol( scanner, func, data ) G_STMT_START { \ + g_scanner_scope_foreach_symbol ((scanner), 0, (func), (data)); \ +} G_STMT_END + +/* The following two functions are deprecated and will be removed in + * the next major release. They do no good. */ +#define g_scanner_freeze_symbol_table(scanner) ((void)0) +#define g_scanner_thaw_symbol_table(scanner) ((void)0) + +#endif /* G_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __G_SCANNER_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gsequence.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gsequence.h new file mode 100644 index 00000000..ffac6c62 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gsequence.h @@ -0,0 +1,121 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 + * Soeren Sandmann (sandmann@daimi.au.dk) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#include <glib/gtypes.h> + +#ifndef __G_SEQUENCE_H__ +#define __G_SEQUENCE_H__ + +typedef struct _GSequence GSequence; +typedef struct _GSequenceNode GSequenceIter; + +typedef gint (* GSequenceIterCompareFunc) (GSequenceIter *a, + GSequenceIter *b, + gpointer data); + + +/* GSequence */ +GSequence * g_sequence_new (GDestroyNotify data_destroy); +void g_sequence_free (GSequence *seq); +gint g_sequence_get_length (GSequence *seq); +void g_sequence_foreach (GSequence *seq, + GFunc func, + gpointer user_data); +void g_sequence_foreach_range (GSequenceIter *begin, + GSequenceIter *end, + GFunc func, + gpointer user_data); +void g_sequence_sort (GSequence *seq, + GCompareDataFunc cmp_func, + gpointer cmp_data); +void g_sequence_sort_iter (GSequence *seq, + GSequenceIterCompareFunc cmp_func, + gpointer cmp_data); + + +/* Getting iters */ +GSequenceIter *g_sequence_get_begin_iter (GSequence *seq); +GSequenceIter *g_sequence_get_end_iter (GSequence *seq); +GSequenceIter *g_sequence_get_iter_at_pos (GSequence *seq, + gint pos); +GSequenceIter *g_sequence_append (GSequence *seq, + gpointer data); +GSequenceIter *g_sequence_prepend (GSequence *seq, + gpointer data); +GSequenceIter *g_sequence_insert_before (GSequenceIter *iter, + gpointer data); +void g_sequence_move (GSequenceIter *src, + GSequenceIter *dest); +void g_sequence_swap (GSequenceIter *a, + GSequenceIter *b); +GSequenceIter *g_sequence_insert_sorted (GSequence *seq, + gpointer data, + GCompareDataFunc cmp_func, + gpointer cmp_data); +GSequenceIter *g_sequence_insert_sorted_iter (GSequence *seq, + gpointer data, + GSequenceIterCompareFunc iter_cmp, + gpointer cmp_data); +void g_sequence_sort_changed (GSequenceIter *iter, + GCompareDataFunc cmp_func, + gpointer cmp_data); +void g_sequence_sort_changed_iter (GSequenceIter *iter, + GSequenceIterCompareFunc iter_cmp, + gpointer cmp_data); +void g_sequence_remove (GSequenceIter *iter); +void g_sequence_remove_range (GSequenceIter *begin, + GSequenceIter *end); +void g_sequence_move_range (GSequenceIter *dest, + GSequenceIter *begin, + GSequenceIter *end); +GSequenceIter *g_sequence_search (GSequence *seq, + gpointer data, + GCompareDataFunc cmp_func, + gpointer cmp_data); +GSequenceIter *g_sequence_search_iter (GSequence *seq, + gpointer data, + GSequenceIterCompareFunc iter_cmp, + gpointer cmp_data); + + +/* Dereferencing */ +gpointer g_sequence_get (GSequenceIter *iter); +void g_sequence_set (GSequenceIter *iter, + gpointer data); + +/* Operations on GSequenceIter * */ +gboolean g_sequence_iter_is_begin (GSequenceIter *iter); +gboolean g_sequence_iter_is_end (GSequenceIter *iter); +GSequenceIter *g_sequence_iter_next (GSequenceIter *iter); +GSequenceIter *g_sequence_iter_prev (GSequenceIter *iter); +gint g_sequence_iter_get_position (GSequenceIter *iter); +GSequenceIter *g_sequence_iter_move (GSequenceIter *iter, + gint delta); +GSequence * g_sequence_iter_get_sequence (GSequenceIter *iter); + + +/* Search */ +gint g_sequence_iter_compare (GSequenceIter *a, + GSequenceIter *b); +GSequenceIter *g_sequence_range_get_midpoint (GSequenceIter *begin, + GSequenceIter *end); + + +#endif /* __G_SEQUENCE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gshell.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gshell.h new file mode 100644 index 00000000..b3f9d914 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gshell.h @@ -0,0 +1,53 @@ +/* gshell.h - Shell-related utilities + * + * Copyright 2000 Red Hat, Inc. + * + * GLib is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * GLib is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with GLib; see the file COPYING.LIB. If not, write + * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_SHELL_H__ +#define __G_SHELL_H__ + +#include <glib/gerror.h> + +G_BEGIN_DECLS + +#define G_SHELL_ERROR g_shell_error_quark () + +typedef enum +{ + /* mismatched or otherwise mangled quoting */ + G_SHELL_ERROR_BAD_QUOTING, + /* string to be parsed was empty */ + G_SHELL_ERROR_EMPTY_STRING, + G_SHELL_ERROR_FAILED +} GShellError; + +GQuark g_shell_error_quark (void); + +gchar* g_shell_quote (const gchar *unquoted_string); +gchar* g_shell_unquote (const gchar *quoted_string, + GError **error); +gboolean g_shell_parse_argv (const gchar *command_line, + gint *argcp, + gchar ***argvp, + GError **error); + +G_END_DECLS + +#endif /* __G_SHELL_H__ */ + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gslice.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gslice.h new file mode 100644 index 00000000..9b46da7e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gslice.h @@ -0,0 +1,85 @@ +/* GLIB sliced memory - fast threaded memory chunk allocator + * Copyright (C) 2005 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __G_SLICE_H__ +#define __G_SLICE_H__ + +#ifndef __G_MEM_H__ +#error Include <glib.h> instead of <gslice.h> +#endif + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +/* slices - fast allocation/release of small memory blocks + */ +gpointer g_slice_alloc (gsize block_size) G_GNUC_MALLOC; +gpointer g_slice_alloc0 (gsize block_size) G_GNUC_MALLOC; +gpointer g_slice_copy (gsize block_size, + gconstpointer mem_block) G_GNUC_MALLOC; +void g_slice_free1 (gsize block_size, + gpointer mem_block); +void g_slice_free_chain_with_offset (gsize block_size, + gpointer mem_chain, + gsize next_offset); +#define g_slice_new(type) ((type*) g_slice_alloc (sizeof (type))) +#define g_slice_new0(type) ((type*) g_slice_alloc0 (sizeof (type))) +/* MemoryBlockType * + * g_slice_dup (MemoryBlockType, + * MemoryBlockType *mem_block); + * g_slice_free (MemoryBlockType, + * MemoryBlockType *mem_block); + * g_slice_free_chain (MemoryBlockType, + * MemoryBlockType *first_chain_block, + * memory_block_next_field); + * pseudo prototypes for the macro + * definitions following below. + */ + +/* we go through extra hoops to ensure type safety */ +#define g_slice_dup(type, mem) \ + (1 ? (type*) g_slice_copy (sizeof (type), (mem)) \ + : ((void) ((type*) 0 == (mem)), (type*) 0)) +#define g_slice_free(type, mem) do { \ + if (1) g_slice_free1 (sizeof (type), (mem)); \ + else (void) ((type*) 0 == (mem)); \ +} while (0) +#define g_slice_free_chain(type, mem_chain, next) do { \ + if (1) g_slice_free_chain_with_offset (sizeof (type), \ + (mem_chain), G_STRUCT_OFFSET (type, next)); \ + else (void) ((type*) 0 == (mem_chain)); \ +} while (0) + + +/* --- internal debugging API --- */ +typedef enum { + G_SLICE_CONFIG_ALWAYS_MALLOC = 1, + G_SLICE_CONFIG_BYPASS_MAGAZINES, + G_SLICE_CONFIG_WORKING_SET_MSECS, + G_SLICE_CONFIG_COLOR_INCREMENT, + G_SLICE_CONFIG_CHUNK_SIZES, + G_SLICE_CONFIG_CONTENTION_COUNTER +} GSliceConfig; +void g_slice_set_config (GSliceConfig ckey, gint64 value); +gint64 g_slice_get_config (GSliceConfig ckey); +gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values); + +G_END_DECLS + +#endif /* __G_SLICE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gslist.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gslist.h new file mode 100644 index 00000000..8ef54088 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gslist.h @@ -0,0 +1,110 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_SLIST_H__ +#define __G_SLIST_H__ + +#include <glib/gmem.h> + +G_BEGIN_DECLS + +typedef struct _GSList GSList; + +struct _GSList +{ + gpointer data; + GSList *next; +}; + +/* Singly linked lists + */ +GSList* g_slist_alloc (void) G_GNUC_WARN_UNUSED_RESULT; +void g_slist_free (GSList *list); +void g_slist_free_1 (GSList *list); +#define g_slist_free1 g_slist_free_1 +GSList* g_slist_append (GSList *list, + gpointer data) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_prepend (GSList *list, + gpointer data) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_insert (GSList *list, + gpointer data, + gint position) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_insert_sorted (GSList *list, + gpointer data, + GCompareFunc func) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_insert_sorted_with_data (GSList *list, + gpointer data, + GCompareDataFunc func, + gpointer user_data) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_insert_before (GSList *slist, + GSList *sibling, + gpointer data) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_concat (GSList *list1, + GSList *list2) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_remove (GSList *list, + gconstpointer data) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_remove_all (GSList *list, + gconstpointer data) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_remove_link (GSList *list, + GSList *link_) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_delete_link (GSList *list, + GSList *link_) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_reverse (GSList *list) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_copy (GSList *list) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_nth (GSList *list, + guint n); +GSList* g_slist_find (GSList *list, + gconstpointer data); +GSList* g_slist_find_custom (GSList *list, + gconstpointer data, + GCompareFunc func); +gint g_slist_position (GSList *list, + GSList *llink); +gint g_slist_index (GSList *list, + gconstpointer data); +GSList* g_slist_last (GSList *list); +guint g_slist_length (GSList *list); +void g_slist_foreach (GSList *list, + GFunc func, + gpointer user_data); +GSList* g_slist_sort (GSList *list, + GCompareFunc compare_func) G_GNUC_WARN_UNUSED_RESULT; +GSList* g_slist_sort_with_data (GSList *list, + GCompareDataFunc compare_func, + gpointer user_data) G_GNUC_WARN_UNUSED_RESULT; +gpointer g_slist_nth_data (GSList *list, + guint n); + +#define g_slist_next(slist) ((slist) ? (((GSList *)(slist))->next) : NULL) + +#ifndef G_DISABLE_DEPRECATED +void g_slist_push_allocator (gpointer dummy); +void g_slist_pop_allocator (void); +#endif +G_END_DECLS + +#endif /* __G_SLIST_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gspawn.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gspawn.h new file mode 100644 index 00000000..adb67417 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gspawn.h @@ -0,0 +1,138 @@ +/* gspawn.h - Process launching + * + * Copyright 2000 Red Hat, Inc. + * + * GLib is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * GLib is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with GLib; see the file COPYING.LIB. If not, write + * to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_SPAWN_H__ +#define __G_SPAWN_H__ + +#include <glib/gerror.h> + +G_BEGIN_DECLS + +/* I'm not sure I remember our proposed naming convention here. */ +#define G_SPAWN_ERROR g_spawn_error_quark () + +typedef enum +{ + G_SPAWN_ERROR_FORK, /* fork failed due to lack of memory */ + G_SPAWN_ERROR_READ, /* read or select on pipes failed */ + G_SPAWN_ERROR_CHDIR, /* changing to working dir failed */ + G_SPAWN_ERROR_ACCES, /* execv() returned EACCES */ + G_SPAWN_ERROR_PERM, /* execv() returned EPERM */ + G_SPAWN_ERROR_2BIG, /* execv() returned E2BIG */ + G_SPAWN_ERROR_NOEXEC, /* execv() returned ENOEXEC */ + G_SPAWN_ERROR_NAMETOOLONG, /* "" "" ENAMETOOLONG */ + G_SPAWN_ERROR_NOENT, /* "" "" ENOENT */ + G_SPAWN_ERROR_NOMEM, /* "" "" ENOMEM */ + G_SPAWN_ERROR_NOTDIR, /* "" "" ENOTDIR */ + G_SPAWN_ERROR_LOOP, /* "" "" ELOOP */ + G_SPAWN_ERROR_TXTBUSY, /* "" "" ETXTBUSY */ + G_SPAWN_ERROR_IO, /* "" "" EIO */ + G_SPAWN_ERROR_NFILE, /* "" "" ENFILE */ + G_SPAWN_ERROR_MFILE, /* "" "" EMFLE */ + G_SPAWN_ERROR_INVAL, /* "" "" EINVAL */ + G_SPAWN_ERROR_ISDIR, /* "" "" EISDIR */ + G_SPAWN_ERROR_LIBBAD, /* "" "" ELIBBAD */ + G_SPAWN_ERROR_FAILED /* other fatal failure, error->message + * should explain + */ +} GSpawnError; + +typedef void (* GSpawnChildSetupFunc) (gpointer user_data); + +typedef enum +{ + G_SPAWN_LEAVE_DESCRIPTORS_OPEN = 1 << 0, + G_SPAWN_DO_NOT_REAP_CHILD = 1 << 1, + /* look for argv[0] in the path i.e. use execvp() */ + G_SPAWN_SEARCH_PATH = 1 << 2, + /* Dump output to /dev/null */ + G_SPAWN_STDOUT_TO_DEV_NULL = 1 << 3, + G_SPAWN_STDERR_TO_DEV_NULL = 1 << 4, + G_SPAWN_CHILD_INHERITS_STDIN = 1 << 5, + G_SPAWN_FILE_AND_ARGV_ZERO = 1 << 6 +} GSpawnFlags; + +GQuark g_spawn_error_quark (void); + +#ifdef G_OS_WIN32 +#define g_spawn_async g_spawn_async_utf8 +#define g_spawn_async_with_pipes g_spawn_async_with_pipes_utf8 +#define g_spawn_sync g_spawn_sync_utf8 +#define g_spawn_command_line_sync g_spawn_command_line_sync_utf8 +#define g_spawn_command_line_async g_spawn_command_line_async_utf8 +#endif + +gboolean g_spawn_async (const gchar *working_directory, + gchar **argv, + gchar **envp, + GSpawnFlags flags, + GSpawnChildSetupFunc child_setup, + gpointer user_data, + GPid *child_pid, + GError **error); + + +/* Opens pipes for non-NULL standard_output, standard_input, standard_error, + * and returns the parent's end of the pipes. + */ +gboolean g_spawn_async_with_pipes (const gchar *working_directory, + gchar **argv, + gchar **envp, + GSpawnFlags flags, + GSpawnChildSetupFunc child_setup, + gpointer user_data, + GPid *child_pid, + gint *standard_input, + gint *standard_output, + gint *standard_error, + GError **error); + + +/* If standard_output or standard_error are non-NULL, the full + * standard output or error of the command will be placed there. + */ + +gboolean g_spawn_sync (const gchar *working_directory, + gchar **argv, + gchar **envp, + GSpawnFlags flags, + GSpawnChildSetupFunc child_setup, + gpointer user_data, + gchar **standard_output, + gchar **standard_error, + gint *exit_status, + GError **error); + +gboolean g_spawn_command_line_sync (const gchar *command_line, + gchar **standard_output, + gchar **standard_error, + gint *exit_status, + GError **error); +gboolean g_spawn_command_line_async (const gchar *command_line, + GError **error); + +void g_spawn_close_pid (GPid pid); + + +G_END_DECLS + +#endif /* __G_SPAWN_H__ */ + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gstdio.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gstdio.h new file mode 100644 index 00000000..dd9e82ad --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gstdio.h @@ -0,0 +1,114 @@ +/* gstdio.h - GFilename wrappers for C library functions + * + * Copyright 2004 Tor Lillqvist + * + * GLib is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * GLib is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with GLib; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_STDIO_H__ +#define __G_STDIO_H__ + +#include <glib/gprintf.h> + +#include <sys/stat.h> + +G_BEGIN_DECLS + +#if defined(G_OS_UNIX) && !defined(G_STDIO_NO_WRAP_ON_UNIX) + +/* Just pass on to the system functions, so there's no potential for data + * format mismatches, especially with large file interfaces. + * A few functions can't be handled in this way, since they are not defined + * in a portable system header that we could include here. + */ + +#define g_chmod chmod +#define g_open open +#define g_creat creat +#define g_rename rename +#define g_mkdir mkdir +#define g_stat stat +#define g_lstat lstat +#define g_remove remove +#define g_fopen fopen +#define g_freopen freopen + +int g_access (const gchar *filename, + int mode); + +int g_chdir (const gchar *path); + +int g_unlink (const gchar *filename); + +int g_rmdir (const gchar *filename); + +#else /* ! G_OS_UNIX */ + +/* Wrappers for C library functions that take pathname arguments. On + * Unix, the pathname is a file name as it literally is in the file + * system. On well-maintained systems with consistent users who know + * what they are doing and no exchange of files with others this would + * be a well-defined encoding, preferrably UTF-8. On Windows, the + * pathname is always in UTF-8, even if that is not the on-disk + * encoding, and not the encoding accepted by the C library or Win32 + * API. + */ + +int g_access (const gchar *filename, + int mode); + +int g_chmod (const gchar *filename, + int mode); + +int g_open (const gchar *filename, + int flags, + int mode); + +int g_creat (const gchar *filename, + int mode); + +int g_rename (const gchar *oldfilename, + const gchar *newfilename); + +int g_mkdir (const gchar *filename, + int mode); + +int g_chdir (const gchar *path); + +int g_stat (const gchar *filename, + struct stat *buf); + +int g_lstat (const gchar *filename, + struct stat *buf); + +int g_unlink (const gchar *filename); + +int g_remove (const gchar *filename); + +int g_rmdir (const gchar *filename); + +FILE *g_fopen (const gchar *filename, + const gchar *mode); + +FILE *g_freopen (const gchar *filename, + const gchar *mode, + FILE *stream); + +#endif /* G_OS_UNIX */ + +G_END_DECLS + +#endif /* __G_STDIO_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gstrfuncs.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gstrfuncs.h new file mode 100644 index 00000000..bf35326f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gstrfuncs.h @@ -0,0 +1,252 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_STRFUNCS_H__ +#define __G_STRFUNCS_H__ + +#include <stdarg.h> +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +/* Functions like the ones in <ctype.h> that are not affected by locale. */ +typedef enum { + G_ASCII_ALNUM = 1 << 0, + G_ASCII_ALPHA = 1 << 1, + G_ASCII_CNTRL = 1 << 2, + G_ASCII_DIGIT = 1 << 3, + G_ASCII_GRAPH = 1 << 4, + G_ASCII_LOWER = 1 << 5, + G_ASCII_PRINT = 1 << 6, + G_ASCII_PUNCT = 1 << 7, + G_ASCII_SPACE = 1 << 8, + G_ASCII_UPPER = 1 << 9, + G_ASCII_XDIGIT = 1 << 10 +} GAsciiType; + +GLIB_VAR const guint16 * const g_ascii_table; + +#define g_ascii_isalnum(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_ALNUM) != 0) + +#define g_ascii_isalpha(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_ALPHA) != 0) + +#define g_ascii_iscntrl(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_CNTRL) != 0) + +#define g_ascii_isdigit(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_DIGIT) != 0) + +#define g_ascii_isgraph(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_GRAPH) != 0) + +#define g_ascii_islower(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_LOWER) != 0) + +#define g_ascii_isprint(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_PRINT) != 0) + +#define g_ascii_ispunct(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_PUNCT) != 0) + +#define g_ascii_isspace(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_SPACE) != 0) + +#define g_ascii_isupper(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_UPPER) != 0) + +#define g_ascii_isxdigit(c) \ + ((g_ascii_table[(guchar) (c)] & G_ASCII_XDIGIT) != 0) + +gchar g_ascii_tolower (gchar c) G_GNUC_CONST; +gchar g_ascii_toupper (gchar c) G_GNUC_CONST; + +gint g_ascii_digit_value (gchar c) G_GNUC_CONST; +gint g_ascii_xdigit_value (gchar c) G_GNUC_CONST; + +/* String utility functions that modify a string argument or + * return a constant string that must not be freed. + */ +#define G_STR_DELIMITERS "_-|> <." +gchar* g_strdelimit (gchar *string, + const gchar *delimiters, + gchar new_delimiter); +gchar* g_strcanon (gchar *string, + const gchar *valid_chars, + gchar substitutor); +G_CONST_RETURN gchar* g_strerror (gint errnum) G_GNUC_CONST; +G_CONST_RETURN gchar* g_strsignal (gint signum) G_GNUC_CONST; +gchar* g_strreverse (gchar *string); +gsize g_strlcpy (gchar *dest, + const gchar *src, + gsize dest_size); +gsize g_strlcat (gchar *dest, + const gchar *src, + gsize dest_size); +gchar * g_strstr_len (const gchar *haystack, + gssize haystack_len, + const gchar *needle); +gchar * g_strrstr (const gchar *haystack, + const gchar *needle); +gchar * g_strrstr_len (const gchar *haystack, + gssize haystack_len, + const gchar *needle); + +gboolean g_str_has_suffix (const gchar *str, + const gchar *suffix); +gboolean g_str_has_prefix (const gchar *str, + const gchar *prefix); + +/* String to/from double conversion functions */ + +gdouble g_strtod (const gchar *nptr, + gchar **endptr); +gdouble g_ascii_strtod (const gchar *nptr, + gchar **endptr); +guint64 g_ascii_strtoull (const gchar *nptr, + gchar **endptr, + guint base); +gint64 g_ascii_strtoll (const gchar *nptr, + gchar **endptr, + guint base); +/* 29 bytes should enough for all possible values that + * g_ascii_dtostr can produce. + * Then add 10 for good measure */ +#define G_ASCII_DTOSTR_BUF_SIZE (29 + 10) +gchar * g_ascii_dtostr (gchar *buffer, + gint buf_len, + gdouble d); +gchar * g_ascii_formatd (gchar *buffer, + gint buf_len, + const gchar *format, + gdouble d); + +/* removes leading spaces */ +gchar* g_strchug (gchar *string); +/* removes trailing spaces */ +gchar* g_strchomp (gchar *string); +/* removes leading & trailing spaces */ +#define g_strstrip( string ) g_strchomp (g_strchug (string)) + +gint g_ascii_strcasecmp (const gchar *s1, + const gchar *s2); +gint g_ascii_strncasecmp (const gchar *s1, + const gchar *s2, + gsize n); +gchar* g_ascii_strdown (const gchar *str, + gssize len) G_GNUC_MALLOC; +gchar* g_ascii_strup (const gchar *str, + gssize len) G_GNUC_MALLOC; + +#ifndef G_DISABLE_DEPRECATED + +/* The following four functions are deprecated and will be removed in + * the next major release. They use the locale-specific tolower and + * toupper, which is almost never the right thing. + */ + +gint g_strcasecmp (const gchar *s1, + const gchar *s2); +gint g_strncasecmp (const gchar *s1, + const gchar *s2, + guint n); +gchar* g_strdown (gchar *string); +gchar* g_strup (gchar *string); + +#endif /* G_DISABLE_DEPRECATED */ + +/* String utility functions that return a newly allocated string which + * ought to be freed with g_free from the caller at some point. + */ +gchar* g_strdup (const gchar *str) G_GNUC_MALLOC; +gchar* g_strdup_printf (const gchar *format, + ...) G_GNUC_PRINTF (1, 2) G_GNUC_MALLOC; +gchar* g_strdup_vprintf (const gchar *format, + va_list args) G_GNUC_MALLOC; +gchar* g_strndup (const gchar *str, + gsize n) G_GNUC_MALLOC; +gchar* g_strnfill (gsize length, + gchar fill_char) G_GNUC_MALLOC; +gchar* g_strconcat (const gchar *string1, + ...) G_GNUC_MALLOC G_GNUC_NULL_TERMINATED; +gchar* g_strjoin (const gchar *separator, + ...) G_GNUC_MALLOC G_GNUC_NULL_TERMINATED; + +/* Make a copy of a string interpreting C string -style escape + * sequences. Inverse of g_strescape. The recognized sequences are \b + * \f \n \r \t \\ \" and the octal format. + */ +gchar* g_strcompress (const gchar *source) G_GNUC_MALLOC; + +/* Copy a string escaping nonprintable characters like in C strings. + * Inverse of g_strcompress. The exceptions parameter, if non-NULL, points + * to a string containing characters that are not to be escaped. + * + * Deprecated API: gchar* g_strescape (const gchar *source); + * Luckily this function wasn't used much, using NULL as second parameter + * provides mostly identical semantics. + */ +gchar* g_strescape (const gchar *source, + const gchar *exceptions) G_GNUC_MALLOC; + +gpointer g_memdup (gconstpointer mem, + guint byte_size) G_GNUC_MALLOC; + +/* NULL terminated string arrays. + * g_strsplit(), g_strsplit_set() split up string into max_tokens tokens + * at delim and return a newly allocated string array. + * g_strjoinv() concatenates all of str_array's strings, sliding in an + * optional separator, the returned string is newly allocated. + * g_strfreev() frees the array itself and all of its strings. + * g_strdupv() copies a NULL-terminated array of strings + * g_strv_length() returns the length of a NULL-terminated array of strings + */ +gchar** g_strsplit (const gchar *string, + const gchar *delimiter, + gint max_tokens) G_GNUC_MALLOC; +gchar ** g_strsplit_set (const gchar *string, + const gchar *delimiters, + gint max_tokens) G_GNUC_MALLOC; +gchar* g_strjoinv (const gchar *separator, + gchar **str_array) G_GNUC_MALLOC; +void g_strfreev (gchar **str_array); +gchar** g_strdupv (gchar **str_array) G_GNUC_MALLOC; +guint g_strv_length (gchar **str_array); + +gchar* g_stpcpy (gchar *dest, + const char *src); + +G_CONST_RETURN gchar *g_strip_context (const gchar *msgid, + const gchar *msgval); + +G_CONST_RETURN gchar *g_dpgettext (const gchar *domain, + const gchar *msgctxtid, + gsize msgidoffset); + +G_END_DECLS + +#endif /* __G_STRFUNCS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gstring.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gstring.h new file mode 100644 index 00000000..427b56ee --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gstring.h @@ -0,0 +1,175 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_STRING_H__ +#define __G_STRING_H__ + +#include <glib/gtypes.h> +#include <glib/gunicode.h> +#include <glib/gutils.h> /* for G_CAN_INLINE */ + +G_BEGIN_DECLS + +typedef struct _GString GString; +typedef struct _GStringChunk GStringChunk; + +struct _GString +{ + gchar *str; + gsize len; + gsize allocated_len; +}; + +/* String Chunks + */ +GStringChunk* g_string_chunk_new (gsize size); +void g_string_chunk_free (GStringChunk *chunk); +void g_string_chunk_clear (GStringChunk *chunk); +gchar* g_string_chunk_insert (GStringChunk *chunk, + const gchar *string); +gchar* g_string_chunk_insert_len (GStringChunk *chunk, + const gchar *string, + gssize len); +gchar* g_string_chunk_insert_const (GStringChunk *chunk, + const gchar *string); + + +/* Strings + */ +GString* g_string_new (const gchar *init); +GString* g_string_new_len (const gchar *init, + gssize len); +GString* g_string_sized_new (gsize dfl_size); +gchar* g_string_free (GString *string, + gboolean free_segment); +gboolean g_string_equal (const GString *v, + const GString *v2); +guint g_string_hash (const GString *str); +GString* g_string_assign (GString *string, + const gchar *rval); +GString* g_string_truncate (GString *string, + gsize len); +GString* g_string_set_size (GString *string, + gsize len); +GString* g_string_insert_len (GString *string, + gssize pos, + const gchar *val, + gssize len); +GString* g_string_append (GString *string, + const gchar *val); +GString* g_string_append_len (GString *string, + const gchar *val, + gssize len); +GString* g_string_append_c (GString *string, + gchar c); +GString* g_string_append_unichar (GString *string, + gunichar wc); +GString* g_string_prepend (GString *string, + const gchar *val); +GString* g_string_prepend_c (GString *string, + gchar c); +GString* g_string_prepend_unichar (GString *string, + gunichar wc); +GString* g_string_prepend_len (GString *string, + const gchar *val, + gssize len); +GString* g_string_insert (GString *string, + gssize pos, + const gchar *val); +GString* g_string_insert_c (GString *string, + gssize pos, + gchar c); +GString* g_string_insert_unichar (GString *string, + gssize pos, + gunichar wc); +GString* g_string_overwrite (GString *string, + gsize pos, + const gchar *val); +GString* g_string_overwrite_len (GString *string, + gsize pos, + const gchar *val, + gssize len); +GString* g_string_erase (GString *string, + gssize pos, + gssize len); +GString* g_string_ascii_down (GString *string); +GString* g_string_ascii_up (GString *string); +void g_string_vprintf (GString *string, + const gchar *format, + va_list args); +void g_string_printf (GString *string, + const gchar *format, + ...) G_GNUC_PRINTF (2, 3); +void g_string_append_vprintf (GString *string, + const gchar *format, + va_list args); +void g_string_append_printf (GString *string, + const gchar *format, + ...) G_GNUC_PRINTF (2, 3); +GString * g_string_append_uri_escaped(GString *string, + const char *unescaped, + const char *reserved_chars_allowed, + gboolean allow_utf8); + +/* -- optimize g_strig_append_c --- */ +#ifdef G_CAN_INLINE +static inline GString* +g_string_append_c_inline (GString *gstring, + gchar c) +{ + if (gstring->len + 1 < gstring->allocated_len) + { + gstring->str[gstring->len++] = c; + gstring->str[gstring->len] = 0; + } + else + g_string_insert_c (gstring, -1, c); + return gstring; +} +#define g_string_append_c(gstr,c) g_string_append_c_inline (gstr, c) +#endif /* G_CAN_INLINE */ + + +#ifndef G_DISABLE_DEPRECATED + +/* The following two functions are deprecated and will be removed in + * the next major release. They use the locale-specific tolower and + * toupper, which is almost never the right thing. + */ + +GString* g_string_down (GString *string); +GString* g_string_up (GString *string); + +/* These aliases are included for compatibility. */ +#define g_string_sprintf g_string_printf +#define g_string_sprintfa g_string_append_printf + +#endif /* G_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __G_STRING_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtestutils.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtestutils.h new file mode 100644 index 00000000..7deb2a38 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtestutils.h @@ -0,0 +1,248 @@ +/* GLib testing utilities + * Copyright (C) 2007 Imendio AB + * Authors: Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __G_TEST_UTILS_H__ +#define __G_TEST_UTILS_H__ + +#include <glib.h> + +G_BEGIN_DECLS + +typedef struct GTestCase GTestCase; +typedef struct GTestSuite GTestSuite; + +/* assertion API */ +#define g_assert_cmpstr(s1, cmp, s2) do { const char *__s1 = (s1), *__s2 = (s2); \ + if (g_strcmp0 (__s1, __s2) cmp 0) ; else \ + g_assertion_message_cmpstr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ + #s1 " " #cmp " " #s2, __s1, #cmp, __s2); } while (0) +#define g_assert_cmpint(n1, cmp, n2) do { gint64 __n1 = (n1), __n2 = (n2); \ + if (__n1 cmp __n2) ; else \ + g_assertion_message_cmpnum (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ + #n1 " " #cmp " " #n2, __n1, #cmp, __n2, 'i'); } while (0) +#define g_assert_cmpuint(n1, cmp, n2) do { guint64 __n1 = (n1), __n2 = (n2); \ + if (__n1 cmp __n2) ; else \ + g_assertion_message_cmpnum (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ + #n1 " " #cmp " " #n2, __n1, #cmp, __n2, 'i'); } while (0) +#define g_assert_cmphex(n1, cmp, n2) do { guint64 __n1 = (n1), __n2 = (n2); \ + if (__n1 cmp __n2) ; else \ + g_assertion_message_cmpnum (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ + #n1 " " #cmp " " #n2, __n1, #cmp, __n2, 'x'); } while (0) +#define g_assert_cmpfloat(n1,cmp,n2) do { long double __n1 = (n1), __n2 = (n2); \ + if (__n1 cmp __n2) ; else \ + g_assertion_message_cmpnum (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ + #n1 " " #cmp " " #n2, __n1, #cmp, __n2, 'f'); } while (0) +#ifdef G_DISABLE_ASSERT +#define g_assert_not_reached() do { (void) 0; } while (0) +#define g_assert(expr) do { (void) 0; } while (0) +#else /* !G_DISABLE_ASSERT */ +#define g_assert_not_reached() do { g_assertion_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, NULL); } while (0) +#define g_assert(expr) do { if G_LIKELY (expr) ; else \ + g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ + #expr); } while (0) +#endif /* !G_DISABLE_ASSERT */ + +int g_strcmp0 (const char *str1, + const char *str2); + +/* report performance results */ +void g_test_minimized_result (double minimized_quantity, + const char *format, + ...) G_GNUC_PRINTF (2, 3); +void g_test_maximized_result (double maximized_quantity, + const char *format, + ...) G_GNUC_PRINTF (2, 3); + +/* initialize testing framework */ +void g_test_init (int *argc, + char ***argv, + ...); +/* query testing framework config */ +#define g_test_quick() (g_test_config_vars->test_quick) +#define g_test_slow() (!g_test_config_vars->test_quick) +#define g_test_thorough() (!g_test_config_vars->test_quick) +#define g_test_perf() (g_test_config_vars->test_perf) +#define g_test_verbose() (g_test_config_vars->test_verbose) +#define g_test_quiet() (g_test_config_vars->test_quiet) +/* run all tests under toplevel suite (path: /) */ +int g_test_run (void); +/* hook up a test functions under test path */ +void g_test_add_func (const char *testpath, + void (*test_func) (void)); +void g_test_add_data_func (const char *testpath, + gconstpointer test_data, + void (*test_func) (gconstpointer)); +/* hook up a test with fixture under test path */ +#define g_test_add(testpath, Fixture, tdata, fsetup, ftest, fteardown) \ + G_STMT_START { \ + void (*add_vtable) (const char*, \ + gsize, \ + gconstpointer, \ + void (*) (Fixture*, gconstpointer), \ + void (*) (Fixture*, gconstpointer), \ + void (*) (Fixture*, gconstpointer)) = (void (*) (const gchar *, gsize, gconstpointer, void (*) (Fixture*, gconstpointer), void (*) (Fixture*, gconstpointer), void (*) (Fixture*, gconstpointer))) g_test_add_vtable; \ + add_vtable \ + (testpath, sizeof (Fixture), tdata, fsetup, ftest, fteardown); \ + } G_STMT_END + +/* add test messages to the test report */ +void g_test_message (const char *format, + ...) G_GNUC_PRINTF (1, 2); +void g_test_bug_base (const char *uri_pattern); +void g_test_bug (const char *bug_uri_snippet); +/* measure test timings */ +void g_test_timer_start (void); +double g_test_timer_elapsed (void); /* elapsed seconds */ +double g_test_timer_last (void); /* repeat last elapsed() result */ + +/* automatically g_free or g_object_unref upon teardown */ +void g_test_queue_free (gpointer gfree_pointer); +void g_test_queue_destroy (GDestroyNotify destroy_func, + gpointer destroy_data); +#define g_test_queue_unref(gobject) g_test_queue_destroy (g_object_unref, gobject) + +/* test traps are guards used around forked tests */ +typedef enum { + G_TEST_TRAP_SILENCE_STDOUT = 1 << 7, + G_TEST_TRAP_SILENCE_STDERR = 1 << 8, + G_TEST_TRAP_INHERIT_STDIN = 1 << 9 +} GTestTrapFlags; +gboolean g_test_trap_fork (guint64 usec_timeout, + GTestTrapFlags test_trap_flags); +gboolean g_test_trap_has_passed (void); +gboolean g_test_trap_reached_timeout (void); +#define g_test_trap_assert_passed() g_test_trap_assertions (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, 0, 0) +#define g_test_trap_assert_failed() g_test_trap_assertions (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, 1, 0) +#define g_test_trap_assert_stdout(soutpattern) g_test_trap_assertions (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, 2, soutpattern) +#define g_test_trap_assert_stdout_unmatched(soutpattern) g_test_trap_assertions (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, 3, soutpattern) +#define g_test_trap_assert_stderr(serrpattern) g_test_trap_assertions (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, 4, serrpattern) +#define g_test_trap_assert_stderr_unmatched(serrpattern) g_test_trap_assertions (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, 5, serrpattern) + +/* provide seed-able random numbers for tests */ +#define g_test_rand_bit() (0 != (g_test_rand_int() & (1 << 15))) +gint32 g_test_rand_int (void); +gint32 g_test_rand_int_range (gint32 begin, + gint32 end); +double g_test_rand_double (void); +double g_test_rand_double_range (double range_start, + double range_end); + +/* semi-internal API */ +GTestCase* g_test_create_case (const char *test_name, + gsize data_size, + gconstpointer test_data, + void (*data_setup) (void), + void (*data_test) (void), + void (*data_teardown) (void)); +GTestSuite* g_test_create_suite (const char *suite_name); +GTestSuite* g_test_get_root (void); +void g_test_suite_add (GTestSuite *suite, + GTestCase *test_case); +void g_test_suite_add_suite (GTestSuite *suite, + GTestSuite *nestedsuite); +int g_test_run_suite (GTestSuite *suite); + +/* internal ABI */ +void g_test_trap_assertions (const char *domain, + const char *file, + int line, + const char *func, + guint64 assertion_flags, /* 0-pass, 1-fail, 2-outpattern, 4-errpattern */ + const char *pattern); +void g_assertion_message (const char *domain, + const char *file, + int line, + const char *func, + const char *message) G_GNUC_NORETURN; +void g_assertion_message_expr (const char *domain, + const char *file, + int line, + const char *func, + const char *expr) G_GNUC_NORETURN; +void g_assertion_message_cmpstr (const char *domain, + const char *file, + int line, + const char *func, + const char *expr, + const char *arg1, + const char *cmp, + const char *arg2) G_GNUC_NORETURN; +void g_assertion_message_cmpnum (const char *domain, + const char *file, + int line, + const char *func, + const char *expr, + long double arg1, + const char *cmp, + long double arg2, + char numtype) G_GNUC_NORETURN; +void g_test_add_vtable (const char *testpath, + gsize data_size, + gconstpointer test_data, + void (*data_setup) (void), + void (*data_test) (void), + void (*data_teardown) (void)); +typedef struct { + gboolean test_initialized; + gboolean test_quick; /* disable thorough tests */ + gboolean test_perf; /* run performance tests */ + gboolean test_verbose; /* extra info */ + gboolean test_quiet; /* reduce output */ +} GTestConfig; +GLIB_VAR const GTestConfig * const g_test_config_vars; + +/* internal logging API */ +typedef enum { + G_TEST_LOG_NONE, + G_TEST_LOG_ERROR, /* s:msg */ + G_TEST_LOG_START_BINARY, /* s:binaryname s:seed */ + G_TEST_LOG_LIST_CASE, /* s:testpath */ + G_TEST_LOG_SKIP_CASE, /* s:testpath */ + G_TEST_LOG_START_CASE, /* s:testpath */ + G_TEST_LOG_STOP_CASE, /* d:status d:nforks d:elapsed */ + G_TEST_LOG_MIN_RESULT, /* s:blurb d:result */ + G_TEST_LOG_MAX_RESULT, /* s:blurb d:result */ + G_TEST_LOG_MESSAGE /* s:blurb */ +} GTestLogType; + +typedef struct { + GTestLogType log_type; + guint n_strings; + gchar **strings; /* NULL terminated */ + guint n_nums; + long double *nums; +} GTestLogMsg; +typedef struct { + /*< private >*/ + GString *data; + GSList *msgs; +} GTestLogBuffer; + +const char* g_test_log_type_name (GTestLogType log_type); +GTestLogBuffer* g_test_log_buffer_new (void); +void g_test_log_buffer_free (GTestLogBuffer *tbuffer); +void g_test_log_buffer_push (GTestLogBuffer *tbuffer, + guint n_bytes, + const guint8 *bytes); +GTestLogMsg* g_test_log_buffer_pop (GTestLogBuffer *tbuffer); +void g_test_log_msg_free (GTestLogMsg *tmsg); + +G_END_DECLS + +#endif /* __G_TEST_UTILS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gthread.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gthread.h new file mode 100644 index 00000000..032507c2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gthread.h @@ -0,0 +1,396 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_THREAD_H__ +#define __G_THREAD_H__ + +#include <glib/gerror.h> +#include <glib/gtypes.h> +#include <glib/gutils.h> /* for G_INLINE_FUNC */ +#include <glib/gatomic.h> /* for g_atomic_pointer_get */ + +G_BEGIN_DECLS + +/* GLib Thread support + */ + +extern GQuark g_thread_error_quark (void); +#define G_THREAD_ERROR g_thread_error_quark () + +typedef enum +{ + G_THREAD_ERROR_AGAIN /* Resource temporarily unavailable */ +} GThreadError; + +typedef gpointer (*GThreadFunc) (gpointer data); + +typedef enum +{ + G_THREAD_PRIORITY_LOW, + G_THREAD_PRIORITY_NORMAL, + G_THREAD_PRIORITY_HIGH, + G_THREAD_PRIORITY_URGENT +} GThreadPriority; + +typedef struct _GThread GThread; +struct _GThread +{ + /*< private >*/ + GThreadFunc func; + gpointer data; + gboolean joinable; + GThreadPriority priority; +}; + +typedef struct _GMutex GMutex; +typedef struct _GCond GCond; +typedef struct _GPrivate GPrivate; +typedef struct _GStaticPrivate GStaticPrivate; + +typedef struct _GThreadFunctions GThreadFunctions; +struct _GThreadFunctions +{ + GMutex* (*mutex_new) (void); + void (*mutex_lock) (GMutex *mutex); + gboolean (*mutex_trylock) (GMutex *mutex); + void (*mutex_unlock) (GMutex *mutex); + void (*mutex_free) (GMutex *mutex); + GCond* (*cond_new) (void); + void (*cond_signal) (GCond *cond); + void (*cond_broadcast) (GCond *cond); + void (*cond_wait) (GCond *cond, + GMutex *mutex); + gboolean (*cond_timed_wait) (GCond *cond, + GMutex *mutex, + GTimeVal *end_time); + void (*cond_free) (GCond *cond); + GPrivate* (*private_new) (GDestroyNotify destructor); + gpointer (*private_get) (GPrivate *private_key); + void (*private_set) (GPrivate *private_key, + gpointer data); + void (*thread_create) (GThreadFunc func, + gpointer data, + gulong stack_size, + gboolean joinable, + gboolean bound, + GThreadPriority priority, + gpointer thread, + GError **error); + void (*thread_yield) (void); + void (*thread_join) (gpointer thread); + void (*thread_exit) (void); + void (*thread_set_priority)(gpointer thread, + GThreadPriority priority); + void (*thread_self) (gpointer thread); + gboolean (*thread_equal) (gpointer thread1, + gpointer thread2); +}; + +GLIB_VAR GThreadFunctions g_thread_functions_for_glib_use; +GLIB_VAR gboolean g_thread_use_default_impl; +GLIB_VAR gboolean g_threads_got_initialized; + +GLIB_VAR guint64 (*g_thread_gettime) (void); + +/* initializes the mutex/cond/private implementation for glib, might + * only be called once, and must not be called directly or indirectly + * from another glib-function, e.g. as a callback. + */ +void g_thread_init (GThreadFunctions *vtable); + +/* Errorcheck mutexes. If you define G_ERRORCHECK_MUTEXES, then all + * mutexes will check for re-locking and re-unlocking */ + +/* Initialize thread system with errorcheck mutexes. vtable must be + * NULL. Do not call directly. Use #define G_ERRORCHECK_MUTEXES + * instead. + */ +void g_thread_init_with_errorcheck_mutexes (GThreadFunctions* vtable); + +/* A random number to recognize debug calls to g_mutex_... */ +#define G_MUTEX_DEBUG_MAGIC 0xf8e18ad7 + +#ifdef G_ERRORCHECK_MUTEXES +#define g_thread_init(vtable) g_thread_init_with_errorcheck_mutexes (vtable) +#endif + +/* internal function for fallback static mutex implementation */ +GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex); + +#define g_static_mutex_get_mutex_impl_shortcut(mutex) \ + (g_atomic_pointer_get ((gpointer*)(void*)mutex) ? *(mutex) : \ + g_static_mutex_get_mutex_impl (mutex)) + +/* shorthands for conditional and unconditional function calls */ + +#define G_THREAD_UF(op, arglist) \ + (*g_thread_functions_for_glib_use . op) arglist +#define G_THREAD_CF(op, fail, arg) \ + (g_thread_supported () ? G_THREAD_UF (op, arg) : (fail)) +#define G_THREAD_ECF(op, fail, mutex, type) \ + (g_thread_supported () ? \ + ((type(*)(GMutex*, const gulong, gchar const*)) \ + (*g_thread_functions_for_glib_use . op)) \ + (mutex, G_MUTEX_DEBUG_MAGIC, G_STRLOC) : (fail)) + +#ifndef G_ERRORCHECK_MUTEXES +# define g_mutex_lock(mutex) \ + G_THREAD_CF (mutex_lock, (void)0, (mutex)) +# define g_mutex_trylock(mutex) \ + G_THREAD_CF (mutex_trylock, TRUE, (mutex)) +# define g_mutex_unlock(mutex) \ + G_THREAD_CF (mutex_unlock, (void)0, (mutex)) +# define g_mutex_free(mutex) \ + G_THREAD_CF (mutex_free, (void)0, (mutex)) +# define g_cond_wait(cond, mutex) \ + G_THREAD_CF (cond_wait, (void)0, (cond, mutex)) +# define g_cond_timed_wait(cond, mutex, abs_time) \ + G_THREAD_CF (cond_timed_wait, TRUE, (cond, mutex, abs_time)) +#else /* G_ERRORCHECK_MUTEXES */ +# define g_mutex_lock(mutex) \ + G_THREAD_ECF (mutex_lock, (void)0, (mutex), void) +# define g_mutex_trylock(mutex) \ + G_THREAD_ECF (mutex_trylock, TRUE, (mutex), gboolean) +# define g_mutex_unlock(mutex) \ + G_THREAD_ECF (mutex_unlock, (void)0, (mutex), void) +# define g_mutex_free(mutex) \ + G_THREAD_ECF (mutex_free, (void)0, (mutex), void) +# define g_cond_wait(cond, mutex) \ + (g_thread_supported () ? ((void(*)(GCond*, GMutex*, gulong, gchar*))\ + g_thread_functions_for_glib_use.cond_wait) \ + (cond, mutex, G_MUTEX_DEBUG_MAGIC, G_STRLOC) : (void) 0) +# define g_cond_timed_wait(cond, mutex, abs_time) \ + (g_thread_supported () ? \ + ((gboolean(*)(GCond*, GMutex*, GTimeVal*, gulong, gchar*)) \ + g_thread_functions_for_glib_use.cond_timed_wait) \ + (cond, mutex, abs_time, G_MUTEX_DEBUG_MAGIC, G_STRLOC) : TRUE) +#endif /* G_ERRORCHECK_MUTEXES */ + +#define g_thread_supported() (g_threads_got_initialized) +#define g_mutex_new() G_THREAD_UF (mutex_new, ()) +#define g_cond_new() G_THREAD_UF (cond_new, ()) +#define g_cond_signal(cond) G_THREAD_CF (cond_signal, (void)0, (cond)) +#define g_cond_broadcast(cond) G_THREAD_CF (cond_broadcast, (void)0, (cond)) +#define g_cond_free(cond) G_THREAD_CF (cond_free, (void)0, (cond)) +#define g_private_new(destructor) G_THREAD_UF (private_new, (destructor)) +#define g_private_get(private_key) G_THREAD_CF (private_get, \ + ((gpointer)private_key), \ + (private_key)) +#define g_private_set(private_key, value) G_THREAD_CF (private_set, \ + (void) (private_key = \ + (GPrivate*) (value)), \ + (private_key, value)) +#define g_thread_yield() G_THREAD_CF (thread_yield, (void)0, ()) + +#define g_thread_create(func, data, joinable, error) \ + (g_thread_create_full (func, data, 0, joinable, FALSE, \ + G_THREAD_PRIORITY_NORMAL, error)) + +GThread* g_thread_create_full (GThreadFunc func, + gpointer data, + gulong stack_size, + gboolean joinable, + gboolean bound, + GThreadPriority priority, + GError **error); +GThread* g_thread_self (void); +void g_thread_exit (gpointer retval); +gpointer g_thread_join (GThread *thread); + +void g_thread_set_priority (GThread *thread, + GThreadPriority priority); + +/* GStaticMutexes can be statically initialized with the value + * G_STATIC_MUTEX_INIT, and then they can directly be used, that is + * much easier, than having to explicitly allocate the mutex before + * use + */ +#define g_static_mutex_lock(mutex) \ + g_mutex_lock (g_static_mutex_get_mutex (mutex)) +#define g_static_mutex_trylock(mutex) \ + g_mutex_trylock (g_static_mutex_get_mutex (mutex)) +#define g_static_mutex_unlock(mutex) \ + g_mutex_unlock (g_static_mutex_get_mutex (mutex)) +void g_static_mutex_init (GStaticMutex *mutex); +void g_static_mutex_free (GStaticMutex *mutex); + +struct _GStaticPrivate +{ + /*< private >*/ + guint index; +}; +#define G_STATIC_PRIVATE_INIT { 0 } +void g_static_private_init (GStaticPrivate *private_key); +gpointer g_static_private_get (GStaticPrivate *private_key); +void g_static_private_set (GStaticPrivate *private_key, + gpointer data, + GDestroyNotify notify); +void g_static_private_free (GStaticPrivate *private_key); + +typedef struct _GStaticRecMutex GStaticRecMutex; +struct _GStaticRecMutex +{ + /*< private >*/ + GStaticMutex mutex; + guint depth; + GSystemThread owner; +}; + +#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT } +void g_static_rec_mutex_init (GStaticRecMutex *mutex); +void g_static_rec_mutex_lock (GStaticRecMutex *mutex); +gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex); +void g_static_rec_mutex_unlock (GStaticRecMutex *mutex); +void g_static_rec_mutex_lock_full (GStaticRecMutex *mutex, + guint depth); +guint g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex); +void g_static_rec_mutex_free (GStaticRecMutex *mutex); + +typedef struct _GStaticRWLock GStaticRWLock; +struct _GStaticRWLock +{ + /*< private >*/ + GStaticMutex mutex; + GCond *read_cond; + GCond *write_cond; + guint read_counter; + gboolean have_writer; + guint want_to_read; + guint want_to_write; +}; + +#define G_STATIC_RW_LOCK_INIT { G_STATIC_MUTEX_INIT, NULL, NULL, 0, FALSE, 0, 0 } + +void g_static_rw_lock_init (GStaticRWLock* lock); +void g_static_rw_lock_reader_lock (GStaticRWLock* lock); +gboolean g_static_rw_lock_reader_trylock (GStaticRWLock* lock); +void g_static_rw_lock_reader_unlock (GStaticRWLock* lock); +void g_static_rw_lock_writer_lock (GStaticRWLock* lock); +gboolean g_static_rw_lock_writer_trylock (GStaticRWLock* lock); +void g_static_rw_lock_writer_unlock (GStaticRWLock* lock); +void g_static_rw_lock_free (GStaticRWLock* lock); + +void g_thread_foreach (GFunc thread_func, + gpointer user_data); + +typedef enum +{ + G_ONCE_STATUS_NOTCALLED, + G_ONCE_STATUS_PROGRESS, + G_ONCE_STATUS_READY +} GOnceStatus; + +typedef struct _GOnce GOnce; +struct _GOnce +{ + volatile GOnceStatus status; + volatile gpointer retval; +}; + +#define G_ONCE_INIT { G_ONCE_STATUS_NOTCALLED, NULL } + +gpointer g_once_impl (GOnce *once, GThreadFunc func, gpointer arg); + +#ifdef G_ATOMIC_OP_MEMORY_BARRIER_NEEDED +# define g_once(once, func, arg) g_once_impl ((once), (func), (arg)) +#else /* !G_ATOMIC_OP_MEMORY_BARRIER_NEEDED*/ +# define g_once(once, func, arg) \ + (((once)->status == G_ONCE_STATUS_READY) ? \ + (once)->retval : \ + g_once_impl ((once), (func), (arg))) +#endif /* G_ATOMIC_OP_MEMORY_BARRIER_NEEDED */ + +/* initialize-once guards, keyed by value_location */ +G_INLINE_FUNC gboolean g_once_init_enter (volatile gsize *value_location); +gboolean g_once_init_enter_impl (volatile gsize *value_location); +void g_once_init_leave (volatile gsize *value_location, + gsize initialization_value); +#if defined (G_CAN_INLINE) || defined (__G_THREAD_C__) +G_INLINE_FUNC gboolean +g_once_init_enter (volatile gsize *value_location) +{ + if G_LIKELY (g_atomic_pointer_get ((void*volatile*) value_location) != NULL) + return FALSE; + else + return g_once_init_enter_impl (value_location); +} +#endif /* G_CAN_INLINE || __G_THREAD_C__ */ + +/* these are some convenience macros that expand to nothing if GLib + * was configured with --disable-threads. for using StaticMutexes, + * you define them with G_LOCK_DEFINE_STATIC (name) or G_LOCK_DEFINE (name) + * if you need to export the mutex. With G_LOCK_EXTERN (name) you can + * declare such an globally defined lock. name is a unique identifier + * for the protected varibale or code portion. locking, testing and + * unlocking of such mutexes can be done with G_LOCK(), G_UNLOCK() and + * G_TRYLOCK() respectively. + */ +extern void glib_dummy_decl (void); +#define G_LOCK_NAME(name) g__ ## name ## _lock +#ifdef G_THREADS_ENABLED +# define G_LOCK_DEFINE_STATIC(name) static G_LOCK_DEFINE (name) +# define G_LOCK_DEFINE(name) \ + GStaticMutex G_LOCK_NAME (name) = G_STATIC_MUTEX_INIT +# define G_LOCK_EXTERN(name) extern GStaticMutex G_LOCK_NAME (name) + +# ifdef G_DEBUG_LOCKS +# define G_LOCK(name) G_STMT_START{ \ + g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \ + "file %s: line %d (%s): locking: %s ", \ + __FILE__, __LINE__, G_STRFUNC, \ + #name); \ + g_static_mutex_lock (&G_LOCK_NAME (name)); \ + }G_STMT_END +# define G_UNLOCK(name) G_STMT_START{ \ + g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \ + "file %s: line %d (%s): unlocking: %s ", \ + __FILE__, __LINE__, G_STRFUNC, \ + #name); \ + g_static_mutex_unlock (&G_LOCK_NAME (name)); \ + }G_STMT_END +# define G_TRYLOCK(name) \ + (g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \ + "file %s: line %d (%s): try locking: %s ", \ + __FILE__, __LINE__, G_STRFUNC, \ + #name), g_static_mutex_trylock (&G_LOCK_NAME (name))) +# else /* !G_DEBUG_LOCKS */ +# define G_LOCK(name) g_static_mutex_lock (&G_LOCK_NAME (name)) +# define G_UNLOCK(name) g_static_mutex_unlock (&G_LOCK_NAME (name)) +# define G_TRYLOCK(name) g_static_mutex_trylock (&G_LOCK_NAME (name)) +# endif /* !G_DEBUG_LOCKS */ +#else /* !G_THREADS_ENABLED */ +# define G_LOCK_DEFINE_STATIC(name) extern void glib_dummy_decl (void) +# define G_LOCK_DEFINE(name) extern void glib_dummy_decl (void) +# define G_LOCK_EXTERN(name) extern void glib_dummy_decl (void) +# define G_LOCK(name) +# define G_UNLOCK(name) +# define G_TRYLOCK(name) (TRUE) +#endif /* !G_THREADS_ENABLED */ + + +G_END_DECLS + +#endif /* __G_THREAD_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gthreadpool.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gthreadpool.h new file mode 100644 index 00000000..91a02d6a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gthreadpool.h @@ -0,0 +1,111 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_THREADPOOL_H__ +#define __G_THREADPOOL_H__ + +#include <glib/gthread.h> + +G_BEGIN_DECLS + +typedef struct _GThreadPool GThreadPool; + +/* Thread Pools + */ + +/* The real GThreadPool is bigger, so you may only create a thread + * pool with the constructor function */ +struct _GThreadPool +{ + GFunc func; + gpointer user_data; + gboolean exclusive; +}; + +/* Get a thread pool with the function func, at most max_threads may + * run at a time (max_threads == -1 means no limit), exclusive == TRUE + * means, that the threads shouldn't be shared and that they will be + * prestarted (otherwise they are started as needed) user_data is the + * 2nd argument to the func */ +GThreadPool* g_thread_pool_new (GFunc func, + gpointer user_data, + gint max_threads, + gboolean exclusive, + GError **error); + +/* Push new data into the thread pool. This task is assigned to a thread later + * (when the maximal number of threads is reached for that pool) or now + * (otherwise). If necessary a new thread will be started. The function + * returns immediatly */ +void g_thread_pool_push (GThreadPool *pool, + gpointer data, + GError **error); + +/* Set the number of threads, which can run concurrently for that pool, -1 + * means no limit. 0 means has the effect, that the pool won't process + * requests until the limit is set higher again */ +void g_thread_pool_set_max_threads (GThreadPool *pool, + gint max_threads, + GError **error); +gint g_thread_pool_get_max_threads (GThreadPool *pool); + +/* Get the number of threads assigned to that pool. This number doesn't + * necessarily represent the number of working threads in that pool */ +guint g_thread_pool_get_num_threads (GThreadPool *pool); + +/* Get the number of unprocessed items in the pool */ +guint g_thread_pool_unprocessed (GThreadPool *pool); + +/* Free the pool, immediate means, that all unprocessed items in the queue + * wont be processed, wait means, that the function doesn't return immediatly, + * but after all threads in the pool are ready processing items. immediate + * does however not mean, that threads are killed. */ +void g_thread_pool_free (GThreadPool *pool, + gboolean immediate, + gboolean wait_); + +/* Set the maximal number of unused threads before threads will be stopped by + * GLib, -1 means no limit */ +void g_thread_pool_set_max_unused_threads (gint max_threads); +gint g_thread_pool_get_max_unused_threads (void); +guint g_thread_pool_get_num_unused_threads (void); + +/* Stop all currently unused threads, but leave the limit untouched */ +void g_thread_pool_stop_unused_threads (void); + +/* Set sort function for priority threading */ +void g_thread_pool_set_sort_function (GThreadPool *pool, + GCompareDataFunc func, + gpointer user_data); + +/* Set maximum time a thread can be idle in the pool before it is stopped */ +void g_thread_pool_set_max_idle_time (guint interval); +guint g_thread_pool_get_max_idle_time (void); + +G_END_DECLS + +#endif /* __G_THREADPOOL_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtimer.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtimer.h new file mode 100644 index 00000000..d602ae1b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtimer.h @@ -0,0 +1,61 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_TIMER_H__ +#define __G_TIMER_H__ + +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +/* Timer + */ + +/* microseconds per second */ +typedef struct _GTimer GTimer; + +#define G_USEC_PER_SEC 1000000 + +GTimer* g_timer_new (void); +void g_timer_destroy (GTimer *timer); +void g_timer_start (GTimer *timer); +void g_timer_stop (GTimer *timer); +void g_timer_reset (GTimer *timer); +void g_timer_continue (GTimer *timer); +gdouble g_timer_elapsed (GTimer *timer, + gulong *microseconds); + +void g_usleep (gulong microseconds); + +void g_time_val_add (GTimeVal *time_, + glong microseconds); +gboolean g_time_val_from_iso8601 (const gchar *iso_date, + GTimeVal *time_); +gchar* g_time_val_to_iso8601 (GTimeVal *time_) G_GNUC_MALLOC; + +G_END_DECLS + +#endif /* __G_TIMER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtree.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtree.h new file mode 100644 index 00000000..bab71279 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtree.h @@ -0,0 +1,88 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_TREE_H__ +#define __G_TREE_H__ + +#include <glib/gnode.h> + +G_BEGIN_DECLS + +typedef struct _GTree GTree; + +typedef gboolean (*GTraverseFunc) (gpointer key, + gpointer value, + gpointer data); + +/* Balanced binary trees + */ +GTree* g_tree_new (GCompareFunc key_compare_func); +GTree* g_tree_new_with_data (GCompareDataFunc key_compare_func, + gpointer key_compare_data); +GTree* g_tree_new_full (GCompareDataFunc key_compare_func, + gpointer key_compare_data, + GDestroyNotify key_destroy_func, + GDestroyNotify value_destroy_func); +void g_tree_destroy (GTree *tree); +void g_tree_insert (GTree *tree, + gpointer key, + gpointer value); +void g_tree_replace (GTree *tree, + gpointer key, + gpointer value); +gboolean g_tree_remove (GTree *tree, + gconstpointer key); +gboolean g_tree_steal (GTree *tree, + gconstpointer key); +gpointer g_tree_lookup (GTree *tree, + gconstpointer key); +gboolean g_tree_lookup_extended (GTree *tree, + gconstpointer lookup_key, + gpointer *orig_key, + gpointer *value); +void g_tree_foreach (GTree *tree, + GTraverseFunc func, + gpointer user_data); + +#ifndef G_DISABLE_DEPRECATED +void g_tree_traverse (GTree *tree, + GTraverseFunc traverse_func, + GTraverseType traverse_type, + gpointer user_data); +#endif /* G_DISABLE_DEPRECATED */ + +gpointer g_tree_search (GTree *tree, + GCompareFunc search_func, + gconstpointer user_data); +gint g_tree_height (GTree *tree); +gint g_tree_nnodes (GTree *tree); + + + +G_END_DECLS + +#endif /* __G_TREE_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtypes.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtypes.h new file mode 100644 index 00000000..eaeabd2a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gtypes.h @@ -0,0 +1,429 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_TYPES_H__ +#define __G_TYPES_H__ + +#include <glibconfig.h> + +G_BEGIN_DECLS + +/* Provide type definitions for commonly used types. + * These are useful because a "gint8" can be adjusted + * to be 1 byte (8 bits) on all platforms. Similarly and + * more importantly, "gint32" can be adjusted to be + * 4 bytes (32 bits) on all platforms. + */ + +typedef char gchar; +typedef short gshort; +typedef long glong; +typedef int gint; +typedef gint gboolean; + +typedef unsigned char guchar; +typedef unsigned short gushort; +typedef unsigned long gulong; +typedef unsigned int guint; + +typedef float gfloat; +typedef double gdouble; + +/* Define min and max constants for the fixed size numerical types */ +#define G_MININT8 ((gint8) 0x80) +#define G_MAXINT8 ((gint8) 0x7f) +#define G_MAXUINT8 ((guint8) 0xff) + +#define G_MININT16 ((gint16) 0x8000) +#define G_MAXINT16 ((gint16) 0x7fff) +#define G_MAXUINT16 ((guint16) 0xffff) + +#define G_MININT32 ((gint32) 0x80000000) +#define G_MAXINT32 ((gint32) 0x7fffffff) +#define G_MAXUINT32 ((guint32) 0xffffffff) + +#define G_MININT64 ((gint64) G_GINT64_CONSTANT(0x8000000000000000)) +#define G_MAXINT64 G_GINT64_CONSTANT(0x7fffffffffffffff) +#define G_MAXUINT64 G_GINT64_CONSTANT(0xffffffffffffffffU) + +typedef void* gpointer; +typedef const void *gconstpointer; + +typedef gint (*GCompareFunc) (gconstpointer a, + gconstpointer b); +typedef gint (*GCompareDataFunc) (gconstpointer a, + gconstpointer b, + gpointer user_data); +typedef gboolean (*GEqualFunc) (gconstpointer a, + gconstpointer b); +typedef void (*GDestroyNotify) (gpointer data); +typedef void (*GFunc) (gpointer data, + gpointer user_data); +typedef guint (*GHashFunc) (gconstpointer key); +typedef void (*GHFunc) (gpointer key, + gpointer value, + gpointer user_data); +typedef void (*GFreeFunc) (gpointer data); +typedef const gchar * (*GTranslateFunc) (const gchar *str, + gpointer data); + + +/* Define some mathematical constants that aren't available + * symbolically in some strict ISO C implementations. + * + * Note that the large number of digits used in these definitions + * doesn't imply that GLib or current computers in general would be + * able to handle floating point numbers with an accuracy like this. + * It's mostly an exercise in futility and future proofing. For + * extended precision floating point support, look somewhere else + * than GLib. + */ +#define G_E 2.7182818284590452353602874713526624977572470937000 +#define G_LN2 0.69314718055994530941723212145817656807550013436026 +#define G_LN10 2.3025850929940456840179914546843642076011014886288 +#define G_PI 3.1415926535897932384626433832795028841971693993751 +#define G_PI_2 1.5707963267948966192313216916397514420985846996876 +#define G_PI_4 0.78539816339744830961566084581987572104929234984378 +#define G_SQRT2 1.4142135623730950488016887242096980785696718753769 + +/* Portable endian checks and conversions + * + * glibconfig.h defines G_BYTE_ORDER which expands to one of + * the below macros. + */ +#define G_LITTLE_ENDIAN 1234 +#define G_BIG_ENDIAN 4321 +#define G_PDP_ENDIAN 3412 /* unused, need specific PDP check */ + + +/* Basic bit swapping functions + */ +#define GUINT16_SWAP_LE_BE_CONSTANT(val) ((guint16) ( \ + (guint16) ((guint16) (val) >> 8) | \ + (guint16) ((guint16) (val) << 8))) + +#define GUINT32_SWAP_LE_BE_CONSTANT(val) ((guint32) ( \ + (((guint32) (val) & (guint32) 0x000000ffU) << 24) | \ + (((guint32) (val) & (guint32) 0x0000ff00U) << 8) | \ + (((guint32) (val) & (guint32) 0x00ff0000U) >> 8) | \ + (((guint32) (val) & (guint32) 0xff000000U) >> 24))) + +#define GUINT64_SWAP_LE_BE_CONSTANT(val) ((guint64) ( \ + (((guint64) (val) & \ + (guint64) G_GINT64_CONSTANT (0x00000000000000ffU)) << 56) | \ + (((guint64) (val) & \ + (guint64) G_GINT64_CONSTANT (0x000000000000ff00U)) << 40) | \ + (((guint64) (val) & \ + (guint64) G_GINT64_CONSTANT (0x0000000000ff0000U)) << 24) | \ + (((guint64) (val) & \ + (guint64) G_GINT64_CONSTANT (0x00000000ff000000U)) << 8) | \ + (((guint64) (val) & \ + (guint64) G_GINT64_CONSTANT (0x000000ff00000000U)) >> 8) | \ + (((guint64) (val) & \ + (guint64) G_GINT64_CONSTANT (0x0000ff0000000000U)) >> 24) | \ + (((guint64) (val) & \ + (guint64) G_GINT64_CONSTANT (0x00ff000000000000U)) >> 40) | \ + (((guint64) (val) & \ + (guint64) G_GINT64_CONSTANT (0xff00000000000000U)) >> 56))) + +/* Arch specific stuff for speed + */ +#if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__) +# if defined (__i386__) +# define GUINT16_SWAP_LE_BE_IA32(val) \ + (__extension__ \ + ({ register guint16 __v, __x = ((guint16) (val)); \ + if (__builtin_constant_p (__x)) \ + __v = GUINT16_SWAP_LE_BE_CONSTANT (__x); \ + else \ + __asm__ ("rorw $8, %w0" \ + : "=r" (__v) \ + : "0" (__x) \ + : "cc"); \ + __v; })) +# if !defined (__i486__) && !defined (__i586__) \ + && !defined (__pentium__) && !defined (__i686__) \ + && !defined (__pentiumpro__) && !defined (__pentium4__) +# define GUINT32_SWAP_LE_BE_IA32(val) \ + (__extension__ \ + ({ register guint32 __v, __x = ((guint32) (val)); \ + if (__builtin_constant_p (__x)) \ + __v = GUINT32_SWAP_LE_BE_CONSTANT (__x); \ + else \ + __asm__ ("rorw $8, %w0\n\t" \ + "rorl $16, %0\n\t" \ + "rorw $8, %w0" \ + : "=r" (__v) \ + : "0" (__x) \ + : "cc"); \ + __v; })) +# else /* 486 and higher has bswap */ +# define GUINT32_SWAP_LE_BE_IA32(val) \ + (__extension__ \ + ({ register guint32 __v, __x = ((guint32) (val)); \ + if (__builtin_constant_p (__x)) \ + __v = GUINT32_SWAP_LE_BE_CONSTANT (__x); \ + else \ + __asm__ ("bswap %0" \ + : "=r" (__v) \ + : "0" (__x)); \ + __v; })) +# endif /* processor specific 32-bit stuff */ +# define GUINT64_SWAP_LE_BE_IA32(val) \ + (__extension__ \ + ({ union { guint64 __ll; \ + guint32 __l[2]; } __w, __r; \ + __w.__ll = ((guint64) (val)); \ + if (__builtin_constant_p (__w.__ll)) \ + __r.__ll = GUINT64_SWAP_LE_BE_CONSTANT (__w.__ll); \ + else \ + { \ + __r.__l[0] = GUINT32_SWAP_LE_BE (__w.__l[1]); \ + __r.__l[1] = GUINT32_SWAP_LE_BE (__w.__l[0]); \ + } \ + __r.__ll; })) + /* Possibly just use the constant version and let gcc figure it out? */ +# define GUINT16_SWAP_LE_BE(val) (GUINT16_SWAP_LE_BE_IA32 (val)) +# define GUINT32_SWAP_LE_BE(val) (GUINT32_SWAP_LE_BE_IA32 (val)) +# define GUINT64_SWAP_LE_BE(val) (GUINT64_SWAP_LE_BE_IA32 (val)) +# elif defined (__ia64__) +# define GUINT16_SWAP_LE_BE_IA64(val) \ + (__extension__ \ + ({ register guint16 __v, __x = ((guint16) (val)); \ + if (__builtin_constant_p (__x)) \ + __v = GUINT16_SWAP_LE_BE_CONSTANT (__x); \ + else \ + __asm__ __volatile__ ("shl %0 = %1, 48 ;;" \ + "mux1 %0 = %0, @rev ;;" \ + : "=r" (__v) \ + : "r" (__x)); \ + __v; })) +# define GUINT32_SWAP_LE_BE_IA64(val) \ + (__extension__ \ + ({ register guint32 __v, __x = ((guint32) (val)); \ + if (__builtin_constant_p (__x)) \ + __v = GUINT32_SWAP_LE_BE_CONSTANT (__x); \ + else \ + __asm__ __volatile__ ("shl %0 = %1, 32 ;;" \ + "mux1 %0 = %0, @rev ;;" \ + : "=r" (__v) \ + : "r" (__x)); \ + __v; })) +# define GUINT64_SWAP_LE_BE_IA64(val) \ + (__extension__ \ + ({ register guint64 __v, __x = ((guint64) (val)); \ + if (__builtin_constant_p (__x)) \ + __v = GUINT64_SWAP_LE_BE_CONSTANT (__x); \ + else \ + __asm__ __volatile__ ("mux1 %0 = %1, @rev ;;" \ + : "=r" (__v) \ + : "r" (__x)); \ + __v; })) +# define GUINT16_SWAP_LE_BE(val) (GUINT16_SWAP_LE_BE_IA64 (val)) +# define GUINT32_SWAP_LE_BE(val) (GUINT32_SWAP_LE_BE_IA64 (val)) +# define GUINT64_SWAP_LE_BE(val) (GUINT64_SWAP_LE_BE_IA64 (val)) +# elif defined (__x86_64__) +# define GUINT32_SWAP_LE_BE_X86_64(val) \ + (__extension__ \ + ({ register guint32 __v, __x = ((guint32) (val)); \ + if (__builtin_constant_p (__x)) \ + __v = GUINT32_SWAP_LE_BE_CONSTANT (__x); \ + else \ + __asm__ ("bswapl %0" \ + : "=r" (__v) \ + : "0" (__x)); \ + __v; })) +# define GUINT64_SWAP_LE_BE_X86_64(val) \ + (__extension__ \ + ({ register guint64 __v, __x = ((guint64) (val)); \ + if (__builtin_constant_p (__x)) \ + __v = GUINT64_SWAP_LE_BE_CONSTANT (__x); \ + else \ + __asm__ ("bswapq %0" \ + : "=r" (__v) \ + : "0" (__x)); \ + __v; })) + /* gcc seems to figure out optimal code for this on its own */ +# define GUINT16_SWAP_LE_BE(val) (GUINT16_SWAP_LE_BE_CONSTANT (val)) +# define GUINT32_SWAP_LE_BE(val) (GUINT32_SWAP_LE_BE_X86_64 (val)) +# define GUINT64_SWAP_LE_BE(val) (GUINT64_SWAP_LE_BE_X86_64 (val)) +# else /* generic gcc */ +# define GUINT16_SWAP_LE_BE(val) (GUINT16_SWAP_LE_BE_CONSTANT (val)) +# define GUINT32_SWAP_LE_BE(val) (GUINT32_SWAP_LE_BE_CONSTANT (val)) +# define GUINT64_SWAP_LE_BE(val) (GUINT64_SWAP_LE_BE_CONSTANT (val)) +# endif +#else /* generic */ +# define GUINT16_SWAP_LE_BE(val) (GUINT16_SWAP_LE_BE_CONSTANT (val)) +# define GUINT32_SWAP_LE_BE(val) (GUINT32_SWAP_LE_BE_CONSTANT (val)) +# define GUINT64_SWAP_LE_BE(val) (GUINT64_SWAP_LE_BE_CONSTANT (val)) +#endif /* generic */ + +#define GUINT16_SWAP_LE_PDP(val) ((guint16) (val)) +#define GUINT16_SWAP_BE_PDP(val) (GUINT16_SWAP_LE_BE (val)) +#define GUINT32_SWAP_LE_PDP(val) ((guint32) ( \ + (((guint32) (val) & (guint32) 0x0000ffffU) << 16) | \ + (((guint32) (val) & (guint32) 0xffff0000U) >> 16))) +#define GUINT32_SWAP_BE_PDP(val) ((guint32) ( \ + (((guint32) (val) & (guint32) 0x00ff00ffU) << 8) | \ + (((guint32) (val) & (guint32) 0xff00ff00U) >> 8))) + +/* The G*_TO_?E() macros are defined in glibconfig.h. + * The transformation is symmetric, so the FROM just maps to the TO. + */ +#define GINT16_FROM_LE(val) (GINT16_TO_LE (val)) +#define GUINT16_FROM_LE(val) (GUINT16_TO_LE (val)) +#define GINT16_FROM_BE(val) (GINT16_TO_BE (val)) +#define GUINT16_FROM_BE(val) (GUINT16_TO_BE (val)) +#define GINT32_FROM_LE(val) (GINT32_TO_LE (val)) +#define GUINT32_FROM_LE(val) (GUINT32_TO_LE (val)) +#define GINT32_FROM_BE(val) (GINT32_TO_BE (val)) +#define GUINT32_FROM_BE(val) (GUINT32_TO_BE (val)) + +#define GINT64_FROM_LE(val) (GINT64_TO_LE (val)) +#define GUINT64_FROM_LE(val) (GUINT64_TO_LE (val)) +#define GINT64_FROM_BE(val) (GINT64_TO_BE (val)) +#define GUINT64_FROM_BE(val) (GUINT64_TO_BE (val)) + +#define GLONG_FROM_LE(val) (GLONG_TO_LE (val)) +#define GULONG_FROM_LE(val) (GULONG_TO_LE (val)) +#define GLONG_FROM_BE(val) (GLONG_TO_BE (val)) +#define GULONG_FROM_BE(val) (GULONG_TO_BE (val)) + +#define GINT_FROM_LE(val) (GINT_TO_LE (val)) +#define GUINT_FROM_LE(val) (GUINT_TO_LE (val)) +#define GINT_FROM_BE(val) (GINT_TO_BE (val)) +#define GUINT_FROM_BE(val) (GUINT_TO_BE (val)) + + +/* Portable versions of host-network order stuff + */ +#define g_ntohl(val) (GUINT32_FROM_BE (val)) +#define g_ntohs(val) (GUINT16_FROM_BE (val)) +#define g_htonl(val) (GUINT32_TO_BE (val)) +#define g_htons(val) (GUINT16_TO_BE (val)) + +/* IEEE Standard 754 Single Precision Storage Format (gfloat): + * + * 31 30 23 22 0 + * +--------+---------------+---------------+ + * | s 1bit | e[30:23] 8bit | f[22:0] 23bit | + * +--------+---------------+---------------+ + * B0------------------->B1------->B2-->B3--> + * + * IEEE Standard 754 Double Precision Storage Format (gdouble): + * + * 63 62 52 51 32 31 0 + * +--------+----------------+----------------+ +---------------+ + * | s 1bit | e[62:52] 11bit | f[51:32] 20bit | | f[31:0] 32bit | + * +--------+----------------+----------------+ +---------------+ + * B0--------------->B1---------->B2--->B3----> B4->B5->B6->B7-> + */ +/* subtract from biased_exponent to form base2 exponent (normal numbers) */ +typedef union _GDoubleIEEE754 GDoubleIEEE754; +typedef union _GFloatIEEE754 GFloatIEEE754; +#define G_IEEE754_FLOAT_BIAS (127) +#define G_IEEE754_DOUBLE_BIAS (1023) +/* multiply with base2 exponent to get base10 exponent (normal numbers) */ +#define G_LOG_2_BASE_10 (0.30102999566398119521) +#if G_BYTE_ORDER == G_LITTLE_ENDIAN +union _GFloatIEEE754 +{ + gfloat v_float; + struct { + guint mantissa : 23; + guint biased_exponent : 8; + guint sign : 1; + } mpn; +}; +union _GDoubleIEEE754 +{ + gdouble v_double; + struct { + guint mantissa_low : 32; + guint mantissa_high : 20; + guint biased_exponent : 11; + guint sign : 1; + } mpn; +}; +#elif G_BYTE_ORDER == G_BIG_ENDIAN +union _GFloatIEEE754 +{ + gfloat v_float; + struct { + guint sign : 1; + guint biased_exponent : 8; + guint mantissa : 23; + } mpn; +}; +union _GDoubleIEEE754 +{ + gdouble v_double; + struct { + guint sign : 1; + guint biased_exponent : 11; + guint mantissa_high : 20; + guint mantissa_low : 32; + } mpn; +}; +#else /* !G_LITTLE_ENDIAN && !G_BIG_ENDIAN */ +#error unknown ENDIAN type +#endif /* !G_LITTLE_ENDIAN && !G_BIG_ENDIAN */ + +typedef struct _GTimeVal GTimeVal; + +struct _GTimeVal +{ + glong tv_sec; + glong tv_usec; +}; + +G_END_DECLS + +/* We prefix variable declarations so they can + * properly get exported in windows dlls. + */ +#ifndef GLIB_VAR +# ifdef G_PLATFORM_WIN32 +# ifdef GLIB_STATIC_COMPILATION +# define GLIB_VAR extern +# else /* !GLIB_STATIC_COMPILATION */ +# ifdef GLIB_COMPILATION +# ifdef DLL_EXPORT +# define GLIB_VAR __declspec(dllexport) +# else /* !DLL_EXPORT */ +# define GLIB_VAR extern +# endif /* !DLL_EXPORT */ +# else /* !GLIB_COMPILATION */ +# define GLIB_VAR extern __declspec(dllimport) +# endif /* !GLIB_COMPILATION */ +# endif /* !GLIB_STATIC_COMPILATION */ +# else /* !G_PLATFORM_WIN32 */ +# define GLIB_VAR extern +# endif /* !G_PLATFORM_WIN32 */ +#endif /* GLIB_VAR */ + +#endif /* __G_TYPES_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gunicode.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gunicode.h new file mode 100644 index 00000000..d27878cb --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gunicode.h @@ -0,0 +1,401 @@ +/* gunicode.h - Unicode manipulation functions + * + * Copyright (C) 1999, 2000 Tom Tromey + * Copyright 2000, 2005 Red Hat, Inc. + * + * The Gnome Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * The Gnome Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with the Gnome Library; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __G_UNICODE_H__ +#define __G_UNICODE_H__ + +#include <glib/gerror.h> +#include <glib/gtypes.h> + +G_BEGIN_DECLS + +typedef guint32 gunichar; +typedef guint16 gunichar2; + +/* These are the possible character classifications. + * See http://www.unicode.org/Public/UNIDATA/UCD.html#General_Category_Values + */ +typedef enum +{ + G_UNICODE_CONTROL, + G_UNICODE_FORMAT, + G_UNICODE_UNASSIGNED, + G_UNICODE_PRIVATE_USE, + G_UNICODE_SURROGATE, + G_UNICODE_LOWERCASE_LETTER, + G_UNICODE_MODIFIER_LETTER, + G_UNICODE_OTHER_LETTER, + G_UNICODE_TITLECASE_LETTER, + G_UNICODE_UPPERCASE_LETTER, + G_UNICODE_COMBINING_MARK, + G_UNICODE_ENCLOSING_MARK, + G_UNICODE_NON_SPACING_MARK, + G_UNICODE_DECIMAL_NUMBER, + G_UNICODE_LETTER_NUMBER, + G_UNICODE_OTHER_NUMBER, + G_UNICODE_CONNECT_PUNCTUATION, + G_UNICODE_DASH_PUNCTUATION, + G_UNICODE_CLOSE_PUNCTUATION, + G_UNICODE_FINAL_PUNCTUATION, + G_UNICODE_INITIAL_PUNCTUATION, + G_UNICODE_OTHER_PUNCTUATION, + G_UNICODE_OPEN_PUNCTUATION, + G_UNICODE_CURRENCY_SYMBOL, + G_UNICODE_MODIFIER_SYMBOL, + G_UNICODE_MATH_SYMBOL, + G_UNICODE_OTHER_SYMBOL, + G_UNICODE_LINE_SEPARATOR, + G_UNICODE_PARAGRAPH_SEPARATOR, + G_UNICODE_SPACE_SEPARATOR +} GUnicodeType; + +/* These are the possible line break classifications. + * Note that new types may be added in the future. + * Implementations may regard unknown values like G_UNICODE_BREAK_UNKNOWN + * See http://www.unicode.org/unicode/reports/tr14/ + */ +typedef enum +{ + G_UNICODE_BREAK_MANDATORY, + G_UNICODE_BREAK_CARRIAGE_RETURN, + G_UNICODE_BREAK_LINE_FEED, + G_UNICODE_BREAK_COMBINING_MARK, + G_UNICODE_BREAK_SURROGATE, + G_UNICODE_BREAK_ZERO_WIDTH_SPACE, + G_UNICODE_BREAK_INSEPARABLE, + G_UNICODE_BREAK_NON_BREAKING_GLUE, + G_UNICODE_BREAK_CONTINGENT, + G_UNICODE_BREAK_SPACE, + G_UNICODE_BREAK_AFTER, + G_UNICODE_BREAK_BEFORE, + G_UNICODE_BREAK_BEFORE_AND_AFTER, + G_UNICODE_BREAK_HYPHEN, + G_UNICODE_BREAK_NON_STARTER, + G_UNICODE_BREAK_OPEN_PUNCTUATION, + G_UNICODE_BREAK_CLOSE_PUNCTUATION, + G_UNICODE_BREAK_QUOTATION, + G_UNICODE_BREAK_EXCLAMATION, + G_UNICODE_BREAK_IDEOGRAPHIC, + G_UNICODE_BREAK_NUMERIC, + G_UNICODE_BREAK_INFIX_SEPARATOR, + G_UNICODE_BREAK_SYMBOL, + G_UNICODE_BREAK_ALPHABETIC, + G_UNICODE_BREAK_PREFIX, + G_UNICODE_BREAK_POSTFIX, + G_UNICODE_BREAK_COMPLEX_CONTEXT, + G_UNICODE_BREAK_AMBIGUOUS, + G_UNICODE_BREAK_UNKNOWN, + G_UNICODE_BREAK_NEXT_LINE, + G_UNICODE_BREAK_WORD_JOINER, + G_UNICODE_BREAK_HANGUL_L_JAMO, + G_UNICODE_BREAK_HANGUL_V_JAMO, + G_UNICODE_BREAK_HANGUL_T_JAMO, + G_UNICODE_BREAK_HANGUL_LV_SYLLABLE, + G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE +} GUnicodeBreakType; + +typedef enum +{ /* ISO 15924 code */ + G_UNICODE_SCRIPT_INVALID_CODE = -1, + G_UNICODE_SCRIPT_COMMON = 0, /* Zyyy */ + G_UNICODE_SCRIPT_INHERITED, /* Qaai */ + G_UNICODE_SCRIPT_ARABIC, /* Arab */ + G_UNICODE_SCRIPT_ARMENIAN, /* Armn */ + G_UNICODE_SCRIPT_BENGALI, /* Beng */ + G_UNICODE_SCRIPT_BOPOMOFO, /* Bopo */ + G_UNICODE_SCRIPT_CHEROKEE, /* Cher */ + G_UNICODE_SCRIPT_COPTIC, /* Qaac */ + G_UNICODE_SCRIPT_CYRILLIC, /* Cyrl (Cyrs) */ + G_UNICODE_SCRIPT_DESERET, /* Dsrt */ + G_UNICODE_SCRIPT_DEVANAGARI, /* Deva */ + G_UNICODE_SCRIPT_ETHIOPIC, /* Ethi */ + G_UNICODE_SCRIPT_GEORGIAN, /* Geor (Geon, Geoa) */ + G_UNICODE_SCRIPT_GOTHIC, /* Goth */ + G_UNICODE_SCRIPT_GREEK, /* Grek */ + G_UNICODE_SCRIPT_GUJARATI, /* Gujr */ + G_UNICODE_SCRIPT_GURMUKHI, /* Guru */ + G_UNICODE_SCRIPT_HAN, /* Hani */ + G_UNICODE_SCRIPT_HANGUL, /* Hang */ + G_UNICODE_SCRIPT_HEBREW, /* Hebr */ + G_UNICODE_SCRIPT_HIRAGANA, /* Hira */ + G_UNICODE_SCRIPT_KANNADA, /* Knda */ + G_UNICODE_SCRIPT_KATAKANA, /* Kana */ + G_UNICODE_SCRIPT_KHMER, /* Khmr */ + G_UNICODE_SCRIPT_LAO, /* Laoo */ + G_UNICODE_SCRIPT_LATIN, /* Latn (Latf, Latg) */ + G_UNICODE_SCRIPT_MALAYALAM, /* Mlym */ + G_UNICODE_SCRIPT_MONGOLIAN, /* Mong */ + G_UNICODE_SCRIPT_MYANMAR, /* Mymr */ + G_UNICODE_SCRIPT_OGHAM, /* Ogam */ + G_UNICODE_SCRIPT_OLD_ITALIC, /* Ital */ + G_UNICODE_SCRIPT_ORIYA, /* Orya */ + G_UNICODE_SCRIPT_RUNIC, /* Runr */ + G_UNICODE_SCRIPT_SINHALA, /* Sinh */ + G_UNICODE_SCRIPT_SYRIAC, /* Syrc (Syrj, Syrn, Syre) */ + G_UNICODE_SCRIPT_TAMIL, /* Taml */ + G_UNICODE_SCRIPT_TELUGU, /* Telu */ + G_UNICODE_SCRIPT_THAANA, /* Thaa */ + G_UNICODE_SCRIPT_THAI, /* Thai */ + G_UNICODE_SCRIPT_TIBETAN, /* Tibt */ + G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL, /* Cans */ + G_UNICODE_SCRIPT_YI, /* Yiii */ + G_UNICODE_SCRIPT_TAGALOG, /* Tglg */ + G_UNICODE_SCRIPT_HANUNOO, /* Hano */ + G_UNICODE_SCRIPT_BUHID, /* Buhd */ + G_UNICODE_SCRIPT_TAGBANWA, /* Tagb */ + + /* Unicode-4.0 additions */ + G_UNICODE_SCRIPT_BRAILLE, /* Brai */ + G_UNICODE_SCRIPT_CYPRIOT, /* Cprt */ + G_UNICODE_SCRIPT_LIMBU, /* Limb */ + G_UNICODE_SCRIPT_OSMANYA, /* Osma */ + G_UNICODE_SCRIPT_SHAVIAN, /* Shaw */ + G_UNICODE_SCRIPT_LINEAR_B, /* Linb */ + G_UNICODE_SCRIPT_TAI_LE, /* Tale */ + G_UNICODE_SCRIPT_UGARITIC, /* Ugar */ + + /* Unicode-4.1 additions */ + G_UNICODE_SCRIPT_NEW_TAI_LUE, /* Talu */ + G_UNICODE_SCRIPT_BUGINESE, /* Bugi */ + G_UNICODE_SCRIPT_GLAGOLITIC, /* Glag */ + G_UNICODE_SCRIPT_TIFINAGH, /* Tfng */ + G_UNICODE_SCRIPT_SYLOTI_NAGRI, /* Sylo */ + G_UNICODE_SCRIPT_OLD_PERSIAN, /* Xpeo */ + G_UNICODE_SCRIPT_KHAROSHTHI, /* Khar */ + + /* Unicode-5.0 additions */ + G_UNICODE_SCRIPT_UNKNOWN, /* Zzzz */ + G_UNICODE_SCRIPT_BALINESE, /* Bali */ + G_UNICODE_SCRIPT_CUNEIFORM, /* Xsux */ + G_UNICODE_SCRIPT_PHOENICIAN, /* Phnx */ + G_UNICODE_SCRIPT_PHAGS_PA, /* Phag */ + G_UNICODE_SCRIPT_NKO, /* Nkoo */ + + /* Unicode-5.1 additions */ + G_UNICODE_SCRIPT_KAYAH_LI, + G_UNICODE_SCRIPT_LEPCHA, + G_UNICODE_SCRIPT_REJANG, + G_UNICODE_SCRIPT_SUNDANESE, + G_UNICODE_SCRIPT_SAURASHTRA, + G_UNICODE_SCRIPT_CHAM, + G_UNICODE_SCRIPT_OL_CHIKI, + G_UNICODE_SCRIPT_VAI, + G_UNICODE_SCRIPT_CARIAN, + G_UNICODE_SCRIPT_LYCIAN, + G_UNICODE_SCRIPT_LYDIAN +} GUnicodeScript; + +/* Returns TRUE if current locale uses UTF-8 charset. If CHARSET is + * not null, sets *CHARSET to the name of the current locale's + * charset. This value is statically allocated, and should be copied + * in case the locale's charset will be changed later using setlocale() + * or in some other way. + */ +gboolean g_get_charset (G_CONST_RETURN char **charset); + +/* These are all analogs of the <ctype.h> functions. + */ +gboolean g_unichar_isalnum (gunichar c) G_GNUC_CONST; +gboolean g_unichar_isalpha (gunichar c) G_GNUC_CONST; +gboolean g_unichar_iscntrl (gunichar c) G_GNUC_CONST; +gboolean g_unichar_isdigit (gunichar c) G_GNUC_CONST; +gboolean g_unichar_isgraph (gunichar c) G_GNUC_CONST; +gboolean g_unichar_islower (gunichar c) G_GNUC_CONST; +gboolean g_unichar_isprint (gunichar c) G_GNUC_CONST; +gboolean g_unichar_ispunct (gunichar c) G_GNUC_CONST; +gboolean g_unichar_isspace (gunichar c) G_GNUC_CONST; +gboolean g_unichar_isupper (gunichar c) G_GNUC_CONST; +gboolean g_unichar_isxdigit (gunichar c) G_GNUC_CONST; +gboolean g_unichar_istitle (gunichar c) G_GNUC_CONST; +gboolean g_unichar_isdefined (gunichar c) G_GNUC_CONST; +gboolean g_unichar_iswide (gunichar c) G_GNUC_CONST; +gboolean g_unichar_iswide_cjk(gunichar c) G_GNUC_CONST; +gboolean g_unichar_iszerowidth(gunichar c) G_GNUC_CONST; +gboolean g_unichar_ismark (gunichar c) G_GNUC_CONST; + +/* More <ctype.h> functions. These convert between the three cases. + * See the Unicode book to understand title case. */ +gunichar g_unichar_toupper (gunichar c) G_GNUC_CONST; +gunichar g_unichar_tolower (gunichar c) G_GNUC_CONST; +gunichar g_unichar_totitle (gunichar c) G_GNUC_CONST; + +/* If C is a digit (according to `g_unichar_isdigit'), then return its + numeric value. Otherwise return -1. */ +gint g_unichar_digit_value (gunichar c) G_GNUC_CONST; + +gint g_unichar_xdigit_value (gunichar c) G_GNUC_CONST; + +/* Return the Unicode character type of a given character. */ +GUnicodeType g_unichar_type (gunichar c) G_GNUC_CONST; + +/* Return the line break property for a given character */ +GUnicodeBreakType g_unichar_break_type (gunichar c) G_GNUC_CONST; + +/* Returns the combining class for a given character */ +gint g_unichar_combining_class (gunichar uc) G_GNUC_CONST; + + +/* Compute canonical ordering of a string in-place. This rearranges + decomposed characters in the string according to their combining + classes. See the Unicode manual for more information. */ +void g_unicode_canonical_ordering (gunichar *string, + gsize len); + +/* Compute canonical decomposition of a character. Returns g_malloc()d + string of Unicode characters. RESULT_LEN is set to the resulting + length of the string. */ +gunichar *g_unicode_canonical_decomposition (gunichar ch, + gsize *result_len) G_GNUC_MALLOC; + +/* Array of skip-bytes-per-initial character. + */ +GLIB_VAR const gchar * const g_utf8_skip; + +#define g_utf8_next_char(p) (char *)((p) + g_utf8_skip[*(const guchar *)(p)]) + +gunichar g_utf8_get_char (const gchar *p) G_GNUC_PURE; +gunichar g_utf8_get_char_validated (const gchar *p, + gssize max_len) G_GNUC_PURE; + +gchar* g_utf8_offset_to_pointer (const gchar *str, + glong offset) G_GNUC_PURE; +glong g_utf8_pointer_to_offset (const gchar *str, + const gchar *pos) G_GNUC_PURE; +gchar* g_utf8_prev_char (const gchar *p) G_GNUC_PURE; +gchar* g_utf8_find_next_char (const gchar *p, + const gchar *end) G_GNUC_PURE; +gchar* g_utf8_find_prev_char (const gchar *str, + const gchar *p) G_GNUC_PURE; + +glong g_utf8_strlen (const gchar *p, + gssize max) G_GNUC_PURE; + +/* Copies n characters from src to dest */ +gchar* g_utf8_strncpy (gchar *dest, + const gchar *src, + gsize n); + +/* Find the UTF-8 character corresponding to ch, in string p. These + functions are equivalants to strchr and strrchr */ +gchar* g_utf8_strchr (const gchar *p, + gssize len, + gunichar c); +gchar* g_utf8_strrchr (const gchar *p, + gssize len, + gunichar c); +gchar* g_utf8_strreverse (const gchar *str, + gssize len); + +gunichar2 *g_utf8_to_utf16 (const gchar *str, + glong len, + glong *items_read, + glong *items_written, + GError **error) G_GNUC_MALLOC; +gunichar * g_utf8_to_ucs4 (const gchar *str, + glong len, + glong *items_read, + glong *items_written, + GError **error) G_GNUC_MALLOC; +gunichar * g_utf8_to_ucs4_fast (const gchar *str, + glong len, + glong *items_written) G_GNUC_MALLOC; +gunichar * g_utf16_to_ucs4 (const gunichar2 *str, + glong len, + glong *items_read, + glong *items_written, + GError **error) G_GNUC_MALLOC; +gchar* g_utf16_to_utf8 (const gunichar2 *str, + glong len, + glong *items_read, + glong *items_written, + GError **error) G_GNUC_MALLOC; +gunichar2 *g_ucs4_to_utf16 (const gunichar *str, + glong len, + glong *items_read, + glong *items_written, + GError **error) G_GNUC_MALLOC; +gchar* g_ucs4_to_utf8 (const gunichar *str, + glong len, + glong *items_read, + glong *items_written, + GError **error) G_GNUC_MALLOC; + +/* Convert a single character into UTF-8. outbuf must have at + * least 6 bytes of space. Returns the number of bytes in the + * result. + */ +gint g_unichar_to_utf8 (gunichar c, + gchar *outbuf); + +/* Validate a UTF8 string, return TRUE if valid, put pointer to + * first invalid char in **end + */ + +gboolean g_utf8_validate (const gchar *str, + gssize max_len, + const gchar **end); + +/* Validate a Unicode character */ +gboolean g_unichar_validate (gunichar ch) G_GNUC_CONST; + +gchar *g_utf8_strup (const gchar *str, + gssize len) G_GNUC_MALLOC; +gchar *g_utf8_strdown (const gchar *str, + gssize len) G_GNUC_MALLOC; +gchar *g_utf8_casefold (const gchar *str, + gssize len) G_GNUC_MALLOC; + +typedef enum { + G_NORMALIZE_DEFAULT, + G_NORMALIZE_NFD = G_NORMALIZE_DEFAULT, + G_NORMALIZE_DEFAULT_COMPOSE, + G_NORMALIZE_NFC = G_NORMALIZE_DEFAULT_COMPOSE, + G_NORMALIZE_ALL, + G_NORMALIZE_NFKD = G_NORMALIZE_ALL, + G_NORMALIZE_ALL_COMPOSE, + G_NORMALIZE_NFKC = G_NORMALIZE_ALL_COMPOSE +} GNormalizeMode; + +gchar *g_utf8_normalize (const gchar *str, + gssize len, + GNormalizeMode mode) G_GNUC_MALLOC; + +gint g_utf8_collate (const gchar *str1, + const gchar *str2) G_GNUC_PURE; +gchar *g_utf8_collate_key (const gchar *str, + gssize len) G_GNUC_MALLOC; +gchar *g_utf8_collate_key_for_filename (const gchar *str, + gssize len) G_GNUC_MALLOC; + +gboolean g_unichar_get_mirror_char (gunichar ch, + gunichar *mirrored_ch); + +GUnicodeScript g_unichar_get_script (gunichar ch) G_GNUC_CONST; + + +/* private */ + +gchar *_g_utf8_make_valid (const gchar *name); + + +G_END_DECLS + +#endif /* __G_UNICODE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gurifuncs.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gurifuncs.h new file mode 100644 index 00000000..62f1dd28 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gurifuncs.h @@ -0,0 +1,77 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2006-2007 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Alexander Larsson <alexl@redhat.com> + */ + +#ifndef __G_URI_FUNCS_H__ +#define __G_URI_FUNCS_H__ + +#include <glib.h> + +G_BEGIN_DECLS + +/** + * G_URI_RESERVED_CHARS_GENERIC_DELIMITERS: + * + * Generic delimiters characters as defined in RFC 3986. Includes ":/?#[]@". + **/ +#define G_URI_RESERVED_CHARS_GENERIC_DELIMITERS ":/?#[]@" + +/** + * G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS + * + * Subcomponent delimiter characters as defined in RFC 3986. Includes "!$&'()*+,;=". + **/ +#define G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS "!$&'()*+,;=" + +/** + * G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT: + * + * Allowed characters in path elements. Includes "!$&'()*+,;=:@". + **/ +#define G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS ":@" + +/** + * G_URI_RESERVED_CHARS_ALLOWED_IN_PATH: + * + * Allowed characters in a path. Includes "!$&'()*+,;=:@/". + **/ +#define G_URI_RESERVED_CHARS_ALLOWED_IN_PATH G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT "/" + +/** + * G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO: + * + * Allowed characters in userinfo as defined in RFC 3986. Includes "!$&'()*+,;=:". + **/ +#define G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS ":" + +char * g_uri_unescape_string (const char *escaped_string, + const char *illegal_characters); +char * g_uri_unescape_segment (const char *escaped_string, + const char *escaped_string_end, + const char *illegal_characters); +char * g_uri_parse_scheme (const char *uri); +char * g_uri_escape_string (const char *unescaped, + const char *reserved_chars_allowed, + gboolean allow_utf8); + +G_END_DECLS + +#endif /* __G_URI_FUNCS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gutils.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gutils.h new file mode 100644 index 00000000..7685809f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gutils.h @@ -0,0 +1,477 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_UTILS_H__ +#define __G_UTILS_H__ + +#include <glib/gtypes.h> +#include <stdarg.h> + +G_BEGIN_DECLS + +#ifdef G_OS_WIN32 + +/* On Win32, the canonical directory separator is the backslash, and + * the search path separator is the semicolon. Note that also the + * (forward) slash works as directory separator. + */ +#define G_DIR_SEPARATOR '\\' +#define G_DIR_SEPARATOR_S "\\" +#define G_IS_DIR_SEPARATOR(c) ((c) == G_DIR_SEPARATOR || (c) == '/') +#define G_SEARCHPATH_SEPARATOR ';' +#define G_SEARCHPATH_SEPARATOR_S ";" + +#else /* !G_OS_WIN32 */ + +/* Unix */ + +#define G_DIR_SEPARATOR '/' +#define G_DIR_SEPARATOR_S "/" +#define G_IS_DIR_SEPARATOR(c) ((c) == G_DIR_SEPARATOR) +#define G_SEARCHPATH_SEPARATOR ':' +#define G_SEARCHPATH_SEPARATOR_S ":" + +#endif /* !G_OS_WIN32 */ + +/* Define G_VA_COPY() to do the right thing for copying va_list variables. + * glibconfig.h may have already defined G_VA_COPY as va_copy or __va_copy. + */ +#if !defined (G_VA_COPY) +# if defined (__GNUC__) && defined (__PPC__) && (defined (_CALL_SYSV) || defined (_WIN32)) +# define G_VA_COPY(ap1, ap2) (*(ap1) = *(ap2)) +# elif defined (G_VA_COPY_AS_ARRAY) +# define G_VA_COPY(ap1, ap2) g_memmove ((ap1), (ap2), sizeof (va_list)) +# else /* va_list is a pointer */ +# define G_VA_COPY(ap1, ap2) ((ap1) = (ap2)) +# endif /* va_list is a pointer */ +#endif /* !G_VA_COPY */ + +/* inlining hassle. for compilers that don't allow the `inline' keyword, + * mostly because of strict ANSI C compliance or dumbness, we try to fall + * back to either `__inline__' or `__inline'. + * G_CAN_INLINE is defined in glibconfig.h if the compiler seems to be + * actually *capable* to do function inlining, in which case inline + * function bodies do make sense. we also define G_INLINE_FUNC to properly + * export the function prototypes if no inlining can be performed. + * inline function bodies have to be special cased with G_CAN_INLINE and a + * .c file specific macro to allow one compiled instance with extern linkage + * of the functions by defining G_IMPLEMENT_INLINES and the .c file macro. + */ +#if defined (G_HAVE_INLINE) && defined (__GNUC__) && defined (__STRICT_ANSI__) +# undef inline +# define inline __inline__ +#elif !defined (G_HAVE_INLINE) +# undef inline +# if defined (G_HAVE___INLINE__) +# define inline __inline__ +# elif defined (G_HAVE___INLINE) +# define inline __inline +# else /* !inline && !__inline__ && !__inline */ +# define inline /* don't inline, then */ +# endif +#endif +#ifdef G_IMPLEMENT_INLINES +# define G_INLINE_FUNC +# undef G_CAN_INLINE +#elif defined (__GNUC__) +# if defined (__GNUC_STDC_INLINE__) || defined (__GNUC_GNU_INLINE__) +# define G_INLINE_FUNC extern inline __attribute__ ((__gnu_inline__)) +# else +# define G_INLINE_FUNC extern inline +# endif +#elif defined (G_CAN_INLINE) +# define G_INLINE_FUNC static inline +#else /* can't inline */ +# define G_INLINE_FUNC +#endif /* !G_INLINE_FUNC */ + +/* Retrive static string info + */ +#ifdef G_OS_WIN32 +#define g_get_user_name g_get_user_name_utf8 +#define g_get_real_name g_get_real_name_utf8 +#define g_get_home_dir g_get_home_dir_utf8 +#define g_get_tmp_dir g_get_tmp_dir_utf8 +#endif + +G_CONST_RETURN gchar* g_get_user_name (void); +G_CONST_RETURN gchar* g_get_real_name (void); +G_CONST_RETURN gchar* g_get_home_dir (void); +G_CONST_RETURN gchar* g_get_tmp_dir (void); +G_CONST_RETURN gchar* g_get_host_name (void); +gchar* g_get_prgname (void); +void g_set_prgname (const gchar *prgname); +G_CONST_RETURN gchar* g_get_application_name (void); +void g_set_application_name (const gchar *application_name); + +G_CONST_RETURN gchar* g_get_user_data_dir (void); +G_CONST_RETURN gchar* g_get_user_config_dir (void); +G_CONST_RETURN gchar* g_get_user_cache_dir (void); +G_CONST_RETURN gchar* G_CONST_RETURN * g_get_system_data_dirs (void); + +#ifdef G_OS_WIN32 +G_CONST_RETURN gchar* G_CONST_RETURN * g_win32_get_system_data_dirs_for_module (gconstpointer address); +#endif + +#if defined (G_OS_WIN32) && defined (G_CAN_INLINE) && !defined (__cplusplus) +static inline G_CONST_RETURN gchar * G_CONST_RETURN * +g_win32_get_system_data_dirs (void) +{ + return g_win32_get_system_data_dirs_for_module ((gconstpointer) &g_win32_get_system_data_dirs); +} +#define g_get_system_data_dirs g_win32_get_system_data_dirs +#endif + +G_CONST_RETURN gchar* G_CONST_RETURN * g_get_system_config_dirs (void); + +G_CONST_RETURN gchar* G_CONST_RETURN * g_get_language_names (void); + +/** + * GUserDirectory: + * @G_USER_DIRECTORY_DESKTOP: the user's Desktop directory + * @G_USER_DIRECTORY_DOCUMENTS: the user's Documents directory + * @G_USER_DIRECTORY_DOWNLOAD: the user's Downloads directory + * @G_USER_DIRECTORY_MUSIC: the user's Music directory + * @G_USER_DIRECTORY_PICTURES: the user's Pictures directory + * @G_USER_DIRECTORY_PUBLIC_SHARE: the user's shared directory + * @G_USER_DIRECTORY_TEMPLATES: the user's Templates directory + * @G_USER_DIRECTORY_VIDEOS: the user's Movies directory + * @G_USER_N_DIRECTORIES: the number of enum values + * + * These are logical ids for special directories which are defined + * depending on the platform used. You should use g_get_user_special_dir() + * to retrieve the full path associated to the logical id. + * + * The #GUserDirectory enumeration can be extended at later date. Not + * every platform has a directory for every logical id in this + * enumeration. + * + * Since: 2.14 + */ +typedef enum { + G_USER_DIRECTORY_DESKTOP, + G_USER_DIRECTORY_DOCUMENTS, + G_USER_DIRECTORY_DOWNLOAD, + G_USER_DIRECTORY_MUSIC, + G_USER_DIRECTORY_PICTURES, + G_USER_DIRECTORY_PUBLIC_SHARE, + G_USER_DIRECTORY_TEMPLATES, + G_USER_DIRECTORY_VIDEOS, + + G_USER_N_DIRECTORIES +} GUserDirectory; + +G_CONST_RETURN gchar* g_get_user_special_dir (GUserDirectory directory); + +typedef struct _GDebugKey GDebugKey; +struct _GDebugKey +{ + gchar *key; + guint value; +}; + +/* Miscellaneous utility functions + */ +guint g_parse_debug_string (const gchar *string, + const GDebugKey *keys, + guint nkeys); + +gint g_snprintf (gchar *string, + gulong n, + gchar const *format, + ...) G_GNUC_PRINTF (3, 4); +gint g_vsnprintf (gchar *string, + gulong n, + gchar const *format, + va_list args); + +/* Check if a file name is an absolute path */ +gboolean g_path_is_absolute (const gchar *file_name); + +/* In case of absolute paths, skip the root part */ +G_CONST_RETURN gchar* g_path_skip_root (const gchar *file_name); + +#ifndef G_DISABLE_DEPRECATED + +/* These two functions are deprecated and will be removed in the next + * major release of GLib. Use g_path_get_dirname/g_path_get_basename + * instead. Whatch out! The string returned by g_path_get_basename + * must be g_freed, while the string returned by g_basename must not.*/ +G_CONST_RETURN gchar* g_basename (const gchar *file_name); +#define g_dirname g_path_get_dirname + +#endif /* G_DISABLE_DEPRECATED */ + +#ifdef G_OS_WIN32 +#define g_get_current_dir g_get_current_dir_utf8 +#endif + +/* The returned strings are newly allocated with g_malloc() */ +gchar* g_get_current_dir (void); +gchar* g_path_get_basename (const gchar *file_name) G_GNUC_MALLOC; +gchar* g_path_get_dirname (const gchar *file_name) G_GNUC_MALLOC; + +/* Set the pointer at the specified location to NULL */ +void g_nullify_pointer (gpointer *nullify_location); + +/* return the environment string for the variable. The returned memory + * must not be freed. */ +#ifdef G_OS_WIN32 +#define g_getenv g_getenv_utf8 +#define g_setenv g_setenv_utf8 +#define g_unsetenv g_unsetenv_utf8 +#define g_find_program_in_path g_find_program_in_path_utf8 +#endif + +G_CONST_RETURN gchar* g_getenv (const gchar *variable); +gboolean g_setenv (const gchar *variable, + const gchar *value, + gboolean overwrite); +void g_unsetenv (const gchar *variable); +gchar** g_listenv (void); + +/* private */ +const gchar* _g_getenv_nomalloc (const gchar *variable, + gchar buffer[1024]); + +/* we try to provide a useful equivalent for ATEXIT if it is + * not defined, but use is actually abandoned. people should + * use g_atexit() instead. + */ +typedef void (*GVoidFunc) (void); +#ifndef ATEXIT +# define ATEXIT(proc) g_ATEXIT(proc) +#else +# define G_NATIVE_ATEXIT +#endif /* ATEXIT */ +/* we use a GLib function as a replacement for ATEXIT, so + * the programmer is not required to check the return value + * (if there is any in the implementation) and doesn't encounter + * missing include files. + */ +void g_atexit (GVoidFunc func); + +#ifdef G_OS_WIN32 +/* It's a bad idea to wrap atexit() on Windows. If the GLib DLL calls + * atexit(), the function will be called when the GLib DLL is detached + * from the program, which is not what the caller wants. The caller + * wants the function to be called when it *itself* exits (or is + * detached, in case the caller, too, is a DLL). + */ +int atexit (void (*)(void)); +#define g_atexit(func) atexit(func) +#endif + +/* Look for an executable in PATH, following execvp() rules */ +gchar* g_find_program_in_path (const gchar *program); + +/* Bit tests + */ +G_INLINE_FUNC gint g_bit_nth_lsf (gulong mask, + gint nth_bit) G_GNUC_CONST; +G_INLINE_FUNC gint g_bit_nth_msf (gulong mask, + gint nth_bit) G_GNUC_CONST; +G_INLINE_FUNC guint g_bit_storage (gulong number) G_GNUC_CONST; + +/* Trash Stacks + * elements need to be >= sizeof (gpointer) + */ +typedef struct _GTrashStack GTrashStack; +struct _GTrashStack +{ + GTrashStack *next; +}; + +G_INLINE_FUNC void g_trash_stack_push (GTrashStack **stack_p, + gpointer data_p); +G_INLINE_FUNC gpointer g_trash_stack_pop (GTrashStack **stack_p); +G_INLINE_FUNC gpointer g_trash_stack_peek (GTrashStack **stack_p); +G_INLINE_FUNC guint g_trash_stack_height (GTrashStack **stack_p); + +/* inline function implementations + */ +#if defined (G_CAN_INLINE) || defined (__G_UTILS_C__) +G_INLINE_FUNC gint +g_bit_nth_lsf (gulong mask, + gint nth_bit) +{ + if (G_UNLIKELY (nth_bit < -1)) + nth_bit = -1; + while (nth_bit < ((GLIB_SIZEOF_LONG * 8) - 1)) + { + nth_bit++; + if (mask & (1UL << nth_bit)) + return nth_bit; + } + return -1; +} +G_INLINE_FUNC gint +g_bit_nth_msf (gulong mask, + gint nth_bit) +{ + if (nth_bit < 0 || G_UNLIKELY (nth_bit > GLIB_SIZEOF_LONG * 8)) + nth_bit = GLIB_SIZEOF_LONG * 8; + while (nth_bit > 0) + { + nth_bit--; + if (mask & (1UL << nth_bit)) + return nth_bit; + } + return -1; +} +G_INLINE_FUNC guint +g_bit_storage (gulong number) +{ +#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__) + return G_LIKELY (number) ? + ((GLIB_SIZEOF_LONG * 8 - 1) ^ __builtin_clzl(number)) + 1 : 1; +#else + register guint n_bits = 0; + + do + { + n_bits++; + number >>= 1; + } + while (number); + return n_bits; +#endif +} +G_INLINE_FUNC void +g_trash_stack_push (GTrashStack **stack_p, + gpointer data_p) +{ + GTrashStack *data = (GTrashStack *) data_p; + + data->next = *stack_p; + *stack_p = data; +} +G_INLINE_FUNC gpointer +g_trash_stack_pop (GTrashStack **stack_p) +{ + GTrashStack *data; + + data = *stack_p; + if (data) + { + *stack_p = data->next; + /* NULLify private pointer here, most platforms store NULL as + * subsequent 0 bytes + */ + data->next = NULL; + } + + return data; +} +G_INLINE_FUNC gpointer +g_trash_stack_peek (GTrashStack **stack_p) +{ + GTrashStack *data; + + data = *stack_p; + + return data; +} +G_INLINE_FUNC guint +g_trash_stack_height (GTrashStack **stack_p) +{ + GTrashStack *data; + guint i = 0; + + for (data = *stack_p; data; data = data->next) + i++; + + return i; +} +#endif /* G_CAN_INLINE || __G_UTILS_C__ */ + +/* Glib version. + * we prefix variable declarations so they can + * properly get exported in windows dlls. + */ +GLIB_VAR const guint glib_major_version; +GLIB_VAR const guint glib_minor_version; +GLIB_VAR const guint glib_micro_version; +GLIB_VAR const guint glib_interface_age; +GLIB_VAR const guint glib_binary_age; + +const gchar * glib_check_version (guint required_major, + guint required_minor, + guint required_micro); + +#define GLIB_CHECK_VERSION(major,minor,micro) \ + (GLIB_MAJOR_VERSION > (major) || \ + (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION > (minor)) || \ + (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION == (minor) && \ + GLIB_MICRO_VERSION >= (micro))) + +G_END_DECLS + +/* + * This macro will be deprecated in the future. This DllMain() is too + * complex. It is recommended to have a DLlMain() that just saves the + * handle to the DLL and then use that handle in normal code instead, + * for instance passing it to + * g_win32_get_package_installation_directory_of_module(). + * + * On Windows, this macro defines a DllMain function that stores the + * actual DLL name that the code being compiled will be included in. + * STATIC should be empty or 'static'. DLL_NAME is the name of the + * (pointer to the) char array where the DLL name will be stored. If + * this is used, you must also include <windows.h>. If you need a more complex + * DLL entry point function, you cannot use this. + * + * On non-Windows platforms, expands to nothing. + */ + +#ifndef G_PLATFORM_WIN32 +# define G_WIN32_DLLMAIN_FOR_DLL_NAME(static, dll_name) +#else +# define G_WIN32_DLLMAIN_FOR_DLL_NAME(static, dll_name) \ +static char *dll_name; \ + \ +BOOL WINAPI \ +DllMain (HINSTANCE hinstDLL, \ + DWORD fdwReason, \ + LPVOID lpvReserved) \ +{ \ + wchar_t wcbfr[1000]; \ + char *tem; \ + switch (fdwReason) \ + { \ + case DLL_PROCESS_ATTACH: \ + GetModuleFileNameW ((HMODULE) hinstDLL, wcbfr, G_N_ELEMENTS (wcbfr)); \ + tem = g_utf16_to_utf8 (wcbfr, -1, NULL, NULL, NULL); \ + dll_name = g_path_get_basename (tem); \ + g_free (tem); \ + break; \ + } \ + \ + return TRUE; \ +} +#endif /* G_PLATFORM_WIN32 */ + +#endif /* __G_UTILS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gwin32.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gwin32.h new file mode 100644 index 00000000..7b6aa141 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/glib/gwin32.h @@ -0,0 +1,106 @@ +/* GLIB - Library of useful routines for C programming + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __G_WIN32_H__ +#define __G_WIN32_H__ + +#include <glib/gtypes.h> + +#ifdef G_PLATFORM_WIN32 + +G_BEGIN_DECLS + +#ifndef MAXPATHLEN +#define MAXPATHLEN 1024 +#endif + +#ifdef G_OS_WIN32 + +/* + * To get prototypes for the following POSIXish functions, you have to + * include the indicated non-POSIX headers. The functions are defined + * in OLDNAMES.LIB (MSVC) or -lmoldname-msvc (mingw32). But note that + * for POSIX functions that take or return file names in the system + * codepage, in many cases you would want to use the GLib wrappers in + * gstdio.h and UTF-8 instead. + * + * getcwd: <direct.h> (MSVC), <io.h> (mingw32) + * getpid: <process.h> + * access: <io.h> + * unlink: <stdio.h> or <io.h> + * open, read, write, lseek, close: <io.h> + * rmdir: <io.h> + * pipe: <io.h> (actually, _pipe()) + */ + +/* For some POSIX functions that are not provided by the MS runtime, + * we provide emulation functions in glib, which are prefixed with + * g_win32_. Or that was the idea at some time, but there is just one + * of those: + */ +gint g_win32_ftruncate (gint f, + guint size); +#endif /* G_OS_WIN32 */ + +/* The MS setlocale uses locale names of the form "English_United + * States.1252" etc. We want the Unixish standard form "en", "zh_TW" + * etc. This function gets the current thread locale from Windows and + * returns it as a string of the above form for use in forming file + * names etc. The returned string should be deallocated with g_free(). + */ +gchar* g_win32_getlocale (void); + +/* Translate a Win32 error code (as returned by GetLastError()) into + * the corresponding message. The returned string should be deallocated + * with g_free(). + */ +gchar* g_win32_error_message (gint error); + +#define g_win32_get_package_installation_directory g_win32_get_package_installation_directory_utf8 +#define g_win32_get_package_installation_subdirectory g_win32_get_package_installation_subdirectory_utf8 + +gchar* g_win32_get_package_installation_directory (const gchar *package, + const gchar *dll_name); + +gchar* g_win32_get_package_installation_subdirectory (const gchar *package, + const gchar *dll_name, + const gchar *subdir); + +gchar* g_win32_get_package_installation_directory_of_module (gpointer hmodule); + +guint g_win32_get_windows_version (void); + +gchar* g_win32_locale_filename_from_utf8 (const gchar *utf8filename); + +/* As of GLib 2.14 we only support NT-based Windows */ +#define G_WIN32_IS_NT_BASED() TRUE +#define G_WIN32_HAVE_WIDECHAR_API() TRUE + +G_END_DECLS + +#endif /* G_PLATFORM_WIN32 */ + +#endif /* __G_WIN32_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gmodule.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gmodule.h new file mode 100644 index 00000000..ae7f8e54 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gmodule.h @@ -0,0 +1,101 @@ +/* GMODULE - GLIB wrapper code for dynamic module loading + * Copyright (C) 1998 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GLib Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GLib Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GLib at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GMODULE_H__ +#define __GMODULE_H__ + +#include <glib.h> + +G_BEGIN_DECLS + +/* exporting and importing functions, this is special cased + * to feature Windows dll stubs. + */ +#define G_MODULE_IMPORT extern +#ifdef G_PLATFORM_WIN32 +# define G_MODULE_EXPORT __declspec(dllexport) +#else /* !G_PLATFORM_WIN32 */ +# define G_MODULE_EXPORT +#endif /* !G_PLATFORM_WIN32 */ + +typedef enum +{ + G_MODULE_BIND_LAZY = 1 << 0, + G_MODULE_BIND_LOCAL = 1 << 1, + G_MODULE_BIND_MASK = 0x03 +} GModuleFlags; + +typedef struct _GModule GModule; +typedef const gchar* (*GModuleCheckInit) (GModule *module); +typedef void (*GModuleUnload) (GModule *module); + +#ifdef G_OS_WIN32 +#define g_module_open g_module_open_utf8 +#define g_module_name g_module_name_utf8 +#endif + +/* return TRUE if dynamic module loading is supported */ +gboolean g_module_supported (void) G_GNUC_CONST; + +/* open a module `file_name' and return handle, which is NULL on error */ +GModule* g_module_open (const gchar *file_name, + GModuleFlags flags); + +/* close a previously opened module, returns TRUE on success */ +gboolean g_module_close (GModule *module); + +/* make a module resident so g_module_close on it will be ignored */ +void g_module_make_resident (GModule *module); + +/* query the last module error as a string */ +G_CONST_RETURN gchar* g_module_error (void); + +/* retrieve a symbol pointer from `module', returns TRUE on success */ +gboolean g_module_symbol (GModule *module, + const gchar *symbol_name, + gpointer *symbol); + +/* retrieve the file name from an existing module */ +G_CONST_RETURN gchar* g_module_name (GModule *module); + +/* Build the actual file name containing a module. `directory' is the + * directory where the module file is supposed to be, or NULL or empty + * in which case it should either be in the current directory or, on + * some operating systems, in some standard place, for instance on the + * PATH. Hence, to be absoultely sure to get the correct module, + * always pass in a directory. The file name consists of the directory, + * if supplied, and `module_name' suitably decorated accoring to + * the operating system's conventions (for instance lib*.so or *.dll). + * + * No checks are made that the file exists, or is of correct type. + */ +gchar* g_module_build_path (const gchar *directory, + const gchar *module_name); + + +G_END_DECLS + +#endif /* __GMODULE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gboxed.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gboxed.h new file mode 100644 index 00000000..622b1e76 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gboxed.h @@ -0,0 +1,89 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 2000-2001 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_BOXED_H__ +#define __G_BOXED_H__ + +#include <gobject/gtype.h> + +G_BEGIN_DECLS + +/* --- type macros --- */ +#define G_TYPE_IS_BOXED(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_BOXED) +#define G_VALUE_HOLDS_BOXED(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_BOXED)) + + +/* --- typedefs --- */ +typedef gpointer (*GBoxedCopyFunc) (gpointer boxed); +typedef void (*GBoxedFreeFunc) (gpointer boxed); + + +/* --- prototypes --- */ +gpointer g_boxed_copy (GType boxed_type, + gconstpointer src_boxed); +void g_boxed_free (GType boxed_type, + gpointer boxed); +void g_value_set_boxed (GValue *value, + gconstpointer v_boxed); +void g_value_set_static_boxed (GValue *value, + gconstpointer v_boxed); +gpointer g_value_get_boxed (const GValue *value); +gpointer g_value_dup_boxed (const GValue *value); + + +/* --- convenience --- */ +GType g_boxed_type_register_static (const gchar *name, + GBoxedCopyFunc boxed_copy, + GBoxedFreeFunc boxed_free); + + +/* --- GLib boxed types --- */ +#define G_TYPE_CLOSURE (g_closure_get_type ()) +#define G_TYPE_VALUE (g_value_get_type ()) +#define G_TYPE_VALUE_ARRAY (g_value_array_get_type ()) +#define G_TYPE_DATE (g_date_get_type ()) +#define G_TYPE_STRV (g_strv_get_type ()) +#define G_TYPE_GSTRING (g_gstring_get_type ()) +#define G_TYPE_HASH_TABLE (g_hash_table_get_type ()) +#define G_TYPE_REGEX (g_regex_get_type ()) + + +void g_value_take_boxed (GValue *value, + gconstpointer v_boxed); +#ifndef G_DISABLE_DEPRECATED +void g_value_set_boxed_take_ownership (GValue *value, + gconstpointer v_boxed); +#endif +GType g_closure_get_type (void) G_GNUC_CONST; +GType g_value_get_type (void) G_GNUC_CONST; +GType g_value_array_get_type (void) G_GNUC_CONST; +GType g_date_get_type (void) G_GNUC_CONST; +GType g_strv_get_type (void) G_GNUC_CONST; +GType g_gstring_get_type (void) G_GNUC_CONST; +GType g_hash_table_get_type (void) G_GNUC_CONST; +GType g_regex_get_type (void) G_GNUC_CONST; + +typedef gchar** GStrv; + +G_END_DECLS + +#endif /* __G_BOXED_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gclosure.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gclosure.h new file mode 100644 index 00000000..c4b6208b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gclosure.h @@ -0,0 +1,166 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 2000-2001 Red Hat, Inc. + * Copyright (C) 2005 Imendio AB + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_CLOSURE_H__ +#define __G_CLOSURE_H__ + +#include <gobject/gtype.h> + +G_BEGIN_DECLS + +/* --- defines --- */ +#define G_CLOSURE_NEEDS_MARSHAL(closure) (((GClosure*) (closure))->marshal == NULL) +#define G_CLOSURE_N_NOTIFIERS(cl) ((cl)->meta_marshal + ((cl)->n_guards << 1L) + \ + (cl)->n_fnotifiers + (cl)->n_inotifiers) +#define G_CCLOSURE_SWAP_DATA(cclosure) (((GClosure*) (cclosure))->derivative_flag) +#define G_CALLBACK(f) ((GCallback) (f)) + + +/* -- typedefs --- */ +typedef struct _GClosure GClosure; +typedef struct _GClosureNotifyData GClosureNotifyData; +typedef void (*GCallback) (void); +typedef void (*GClosureNotify) (gpointer data, + GClosure *closure); +typedef void (*GClosureMarshal) (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +typedef struct _GCClosure GCClosure; + + +/* --- structures --- */ +struct _GClosureNotifyData +{ + gpointer data; + GClosureNotify notify; +}; +struct _GClosure +{ + /*< private >*/ + volatile guint ref_count : 15; + volatile guint meta_marshal : 1; + volatile guint n_guards : 1; + volatile guint n_fnotifiers : 2; /* finalization notifiers */ + volatile guint n_inotifiers : 8; /* invalidation notifiers */ + volatile guint in_inotify : 1; + volatile guint floating : 1; + /*< protected >*/ + volatile guint derivative_flag : 1; + /*< public >*/ + volatile guint in_marshal : 1; + volatile guint is_invalid : 1; + + /*< private >*/ void (*marshal) (GClosure *closure, + GValue /*out*/ *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + /*< protected >*/ gpointer data; + + /*< private >*/ GClosureNotifyData *notifiers; + + /* invariants/constrains: + * - ->marshal and ->data are _invalid_ as soon as ->is_invalid==TRUE + * - invocation of all inotifiers occours prior to fnotifiers + * - order of inotifiers is random + * inotifiers may _not_ free/invalidate parameter values (e.g. ->data) + * - order of fnotifiers is random + * - each notifier may only be removed before or during its invocation + * - reference counting may only happen prior to fnotify invocation + * (in that sense, fnotifiers are really finalization handlers) + */ +}; +/* closure for C function calls, callback() is the user function + */ +struct _GCClosure +{ + GClosure closure; + gpointer callback; +}; + + +/* --- prototypes --- */ +GClosure* g_cclosure_new (GCallback callback_func, + gpointer user_data, + GClosureNotify destroy_data); +GClosure* g_cclosure_new_swap (GCallback callback_func, + gpointer user_data, + GClosureNotify destroy_data); +GClosure* g_signal_type_cclosure_new (GType itype, + guint struct_offset); + + +/* --- prototypes --- */ +GClosure* g_closure_ref (GClosure *closure); +void g_closure_sink (GClosure *closure); +void g_closure_unref (GClosure *closure); +/* intimidating */ +GClosure* g_closure_new_simple (guint sizeof_closure, + gpointer data); +void g_closure_add_finalize_notifier (GClosure *closure, + gpointer notify_data, + GClosureNotify notify_func); +void g_closure_remove_finalize_notifier (GClosure *closure, + gpointer notify_data, + GClosureNotify notify_func); +void g_closure_add_invalidate_notifier (GClosure *closure, + gpointer notify_data, + GClosureNotify notify_func); +void g_closure_remove_invalidate_notifier (GClosure *closure, + gpointer notify_data, + GClosureNotify notify_func); +void g_closure_add_marshal_guards (GClosure *closure, + gpointer pre_marshal_data, + GClosureNotify pre_marshal_notify, + gpointer post_marshal_data, + GClosureNotify post_marshal_notify); +void g_closure_set_marshal (GClosure *closure, + GClosureMarshal marshal); +void g_closure_set_meta_marshal (GClosure *closure, + gpointer marshal_data, + GClosureMarshal meta_marshal); +void g_closure_invalidate (GClosure *closure); +void g_closure_invoke (GClosure *closure, + GValue /*out*/ *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint); + +/* FIXME: + OK: data_object::destroy -> closure_invalidate(); + MIS: closure_invalidate() -> disconnect(closure); + MIS: disconnect(closure) -> (unlink) closure_unref(); + OK: closure_finalize() -> g_free (data_string); + + random remarks: + - need marshaller repo with decent aliasing to base types + - provide marshaller collection, virtually covering anything out there +*/ + +G_END_DECLS + +#endif /* __G_CLOSURE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/genums.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/genums.h new file mode 100644 index 00000000..5d16c53c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/genums.h @@ -0,0 +1,125 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 1998-1999, 2000-2001 Tim Janik and Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_ENUMS_H__ +#define __G_ENUMS_H__ + +#include <gobject/gtype.h> + +G_BEGIN_DECLS + +/* --- type macros --- */ +#define G_TYPE_IS_ENUM(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_ENUM) +#define G_ENUM_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_ENUM, GEnumClass)) +#define G_IS_ENUM_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_ENUM)) +#define G_ENUM_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class)) +#define G_ENUM_CLASS_TYPE_NAME(class) (g_type_name (G_ENUM_CLASS_TYPE (class))) +#define G_TYPE_IS_FLAGS(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_FLAGS) +#define G_FLAGS_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_FLAGS, GFlagsClass)) +#define G_IS_FLAGS_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_FLAGS)) +#define G_FLAGS_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class)) +#define G_FLAGS_CLASS_TYPE_NAME(class) (g_type_name (G_FLAGS_CLASS_TYPE (class))) +#define G_VALUE_HOLDS_ENUM(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_ENUM)) +#define G_VALUE_HOLDS_FLAGS(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_FLAGS)) + + +/* --- enum/flag values & classes --- */ +typedef struct _GEnumClass GEnumClass; +typedef struct _GFlagsClass GFlagsClass; +typedef struct _GEnumValue GEnumValue; +typedef struct _GFlagsValue GFlagsValue; +struct _GEnumClass +{ + GTypeClass g_type_class; + + /*< public >*/ + gint minimum; + gint maximum; + guint n_values; + GEnumValue *values; +}; +struct _GFlagsClass +{ + GTypeClass g_type_class; + + /*< public >*/ + guint mask; + guint n_values; + GFlagsValue *values; +}; +struct _GEnumValue +{ + gint value; + const gchar *value_name; + const gchar *value_nick; +}; +struct _GFlagsValue +{ + guint value; + const gchar *value_name; + const gchar *value_nick; +}; + + +/* --- prototypes --- */ +GEnumValue* g_enum_get_value (GEnumClass *enum_class, + gint value); +GEnumValue* g_enum_get_value_by_name (GEnumClass *enum_class, + const gchar *name); +GEnumValue* g_enum_get_value_by_nick (GEnumClass *enum_class, + const gchar *nick); +GFlagsValue* g_flags_get_first_value (GFlagsClass *flags_class, + guint value); +GFlagsValue* g_flags_get_value_by_name (GFlagsClass *flags_class, + const gchar *name); +GFlagsValue* g_flags_get_value_by_nick (GFlagsClass *flags_class, + const gchar *nick); +void g_value_set_enum (GValue *value, + gint v_enum); +gint g_value_get_enum (const GValue *value); +void g_value_set_flags (GValue *value, + guint v_flags); +guint g_value_get_flags (const GValue *value); + + + +/* --- registration functions --- */ +/* const_static_values is a NULL terminated array of enum/flags + * values that is taken over! + */ +GType g_enum_register_static (const gchar *name, + const GEnumValue *const_static_values); +GType g_flags_register_static (const gchar *name, + const GFlagsValue *const_static_values); +/* functions to complete the type information + * for enums/flags implemented by plugins + */ +void g_enum_complete_type_info (GType g_enum_type, + GTypeInfo *info, + const GEnumValue *const_values); +void g_flags_complete_type_info (GType g_flags_type, + GTypeInfo *info, + const GFlagsValue *const_values); + +G_END_DECLS + +#endif /* __G_ENUMS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gmarshal.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gmarshal.h new file mode 100644 index 00000000..3c24cba1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gmarshal.h @@ -0,0 +1,169 @@ +#ifndef __G_MARSHAL_H__ +#define __G_MARSHAL_H__ + +G_BEGIN_DECLS + +/* VOID:VOID (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:26) */ +extern void g_cclosure_marshal_VOID__VOID (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:BOOLEAN (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:27) */ +extern void g_cclosure_marshal_VOID__BOOLEAN (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:CHAR (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:28) */ +extern void g_cclosure_marshal_VOID__CHAR (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:UCHAR (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:29) */ +extern void g_cclosure_marshal_VOID__UCHAR (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:INT (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:30) */ +extern void g_cclosure_marshal_VOID__INT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:UINT (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:31) */ +extern void g_cclosure_marshal_VOID__UINT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:LONG (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:32) */ +extern void g_cclosure_marshal_VOID__LONG (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:ULONG (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:33) */ +extern void g_cclosure_marshal_VOID__ULONG (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:ENUM (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:34) */ +extern void g_cclosure_marshal_VOID__ENUM (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:FLAGS (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:35) */ +extern void g_cclosure_marshal_VOID__FLAGS (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:FLOAT (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:36) */ +extern void g_cclosure_marshal_VOID__FLOAT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:DOUBLE (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:37) */ +extern void g_cclosure_marshal_VOID__DOUBLE (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:STRING (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:38) */ +extern void g_cclosure_marshal_VOID__STRING (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:PARAM (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:39) */ +extern void g_cclosure_marshal_VOID__PARAM (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:BOXED (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:40) */ +extern void g_cclosure_marshal_VOID__BOXED (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:POINTER (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:41) */ +extern void g_cclosure_marshal_VOID__POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:OBJECT (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:42) */ +extern void g_cclosure_marshal_VOID__OBJECT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:UINT,POINTER (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:45) */ +extern void g_cclosure_marshal_VOID__UINT_POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* BOOL:FLAGS (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:46) */ +extern void g_cclosure_marshal_BOOLEAN__FLAGS (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define g_cclosure_marshal_BOOL__FLAGS g_cclosure_marshal_BOOLEAN__FLAGS + +/* STRING:OBJECT,POINTER (/build/buildd-glib2.0_2.16.6-3-i386-fvJQDr/glib2.0-2.16.6/gobject/gmarshal.list:47) */ +extern void g_cclosure_marshal_STRING__OBJECT_POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +G_END_DECLS + +#endif /* __G_MARSHAL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gobject.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gobject.h new file mode 100644 index 00000000..4f7ef570 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gobject.h @@ -0,0 +1,286 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 1998-1999, 2000-2001 Tim Janik and Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_OBJECT_H__ +#define __G_OBJECT_H__ + +#include <gobject/gtype.h> +#include <gobject/gvalue.h> +#include <gobject/gparam.h> +#include <gobject/gclosure.h> +#include <gobject/gsignal.h> + +G_BEGIN_DECLS + +/* --- type macros --- */ +#define G_TYPE_IS_OBJECT(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_OBJECT) +#define G_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_OBJECT, GObject)) +#define G_OBJECT_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_OBJECT, GObjectClass)) +#define G_IS_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_OBJECT)) +#define G_IS_OBJECT_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_OBJECT)) +#define G_OBJECT_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), G_TYPE_OBJECT, GObjectClass)) +#define G_OBJECT_TYPE(object) (G_TYPE_FROM_INSTANCE (object)) +#define G_OBJECT_TYPE_NAME(object) (g_type_name (G_OBJECT_TYPE (object))) +#define G_OBJECT_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class)) +#define G_OBJECT_CLASS_NAME(class) (g_type_name (G_OBJECT_CLASS_TYPE (class))) +#define G_VALUE_HOLDS_OBJECT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_OBJECT)) + +/* --- type macros --- */ +#define G_TYPE_INITIALLY_UNOWNED (g_initially_unowned_get_type()) +#define G_INITIALLY_UNOWNED(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_INITIALLY_UNOWNED, GInitiallyUnowned)) +#define G_INITIALLY_UNOWNED_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_INITIALLY_UNOWNED, GInitiallyUnownedClass)) +#define G_IS_INITIALLY_UNOWNED(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_INITIALLY_UNOWNED)) +#define G_IS_INITIALLY_UNOWNED_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_INITIALLY_UNOWNED)) +#define G_INITIALLY_UNOWNED_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), G_TYPE_INITIALLY_UNOWNED, GInitiallyUnownedClass)) +/* GInitiallyUnowned ia a GObject with initially floating reference count */ + + +/* --- typedefs & structures --- */ +typedef struct _GObject GObject; +typedef struct _GObjectClass GObjectClass; +typedef struct _GObject GInitiallyUnowned; +typedef struct _GObjectClass GInitiallyUnownedClass; +typedef struct _GObjectConstructParam GObjectConstructParam; +typedef void (*GObjectGetPropertyFunc) (GObject *object, + guint property_id, + GValue *value, + GParamSpec *pspec); +typedef void (*GObjectSetPropertyFunc) (GObject *object, + guint property_id, + const GValue *value, + GParamSpec *pspec); +typedef void (*GObjectFinalizeFunc) (GObject *object); +typedef void (*GWeakNotify) (gpointer data, + GObject *where_the_object_was); +struct _GObject +{ + GTypeInstance g_type_instance; + + /*< private >*/ + volatile guint ref_count; + GData *qdata; +}; +struct _GObjectClass +{ + GTypeClass g_type_class; + + /*< private >*/ + GSList *construct_properties; + + /*< public >*/ + /* seldomly overidden */ + GObject* (*constructor) (GType type, + guint n_construct_properties, + GObjectConstructParam *construct_properties); + /* overridable methods */ + void (*set_property) (GObject *object, + guint property_id, + const GValue *value, + GParamSpec *pspec); + void (*get_property) (GObject *object, + guint property_id, + GValue *value, + GParamSpec *pspec); + void (*dispose) (GObject *object); + void (*finalize) (GObject *object); + /* seldomly overidden */ + void (*dispatch_properties_changed) (GObject *object, + guint n_pspecs, + GParamSpec **pspecs); + /* signals */ + void (*notify) (GObject *object, + GParamSpec *pspec); + + /* called when done constructing */ + void (*constructed) (GObject *object); + + /*< private >*/ + /* padding */ + gpointer pdummy[7]; +}; +struct _GObjectConstructParam +{ + GParamSpec *pspec; + GValue *value; +}; + + +/* --- prototypes --- */ +GType g_initially_unowned_get_type (void); +void g_object_class_install_property (GObjectClass *oclass, + guint property_id, + GParamSpec *pspec); +GParamSpec* g_object_class_find_property (GObjectClass *oclass, + const gchar *property_name); +GParamSpec**g_object_class_list_properties (GObjectClass *oclass, + guint *n_properties); +void g_object_class_override_property (GObjectClass *oclass, + guint property_id, + const gchar *name); + +void g_object_interface_install_property (gpointer g_iface, + GParamSpec *pspec); +GParamSpec* g_object_interface_find_property (gpointer g_iface, + const gchar *property_name); +GParamSpec**g_object_interface_list_properties (gpointer g_iface, + guint *n_properties_p); + +gpointer g_object_new (GType object_type, + const gchar *first_property_name, + ...); +gpointer g_object_newv (GType object_type, + guint n_parameters, + GParameter *parameters); +GObject* g_object_new_valist (GType object_type, + const gchar *first_property_name, + va_list var_args); +void g_object_set (gpointer object, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; +void g_object_get (gpointer object, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; +gpointer g_object_connect (gpointer object, + const gchar *signal_spec, + ...) G_GNUC_NULL_TERMINATED; +void g_object_disconnect (gpointer object, + const gchar *signal_spec, + ...) G_GNUC_NULL_TERMINATED; +void g_object_set_valist (GObject *object, + const gchar *first_property_name, + va_list var_args); +void g_object_get_valist (GObject *object, + const gchar *first_property_name, + va_list var_args); +void g_object_set_property (GObject *object, + const gchar *property_name, + const GValue *value); +void g_object_get_property (GObject *object, + const gchar *property_name, + GValue *value); +void g_object_freeze_notify (GObject *object); +void g_object_notify (GObject *object, + const gchar *property_name); +void g_object_thaw_notify (GObject *object); +gboolean g_object_is_floating (gpointer object); +gpointer g_object_ref_sink (gpointer object); +gpointer g_object_ref (gpointer object); +void g_object_unref (gpointer object); +void g_object_weak_ref (GObject *object, + GWeakNotify notify, + gpointer data); +void g_object_weak_unref (GObject *object, + GWeakNotify notify, + gpointer data); +void g_object_add_weak_pointer (GObject *object, + gpointer *weak_pointer_location); +void g_object_remove_weak_pointer (GObject *object, + gpointer *weak_pointer_location); + +typedef void (*GToggleNotify) (gpointer data, + GObject *object, + gboolean is_last_ref); + +void g_object_add_toggle_ref (GObject *object, + GToggleNotify notify, + gpointer data); +void g_object_remove_toggle_ref (GObject *object, + GToggleNotify notify, + gpointer data); + +gpointer g_object_get_qdata (GObject *object, + GQuark quark); +void g_object_set_qdata (GObject *object, + GQuark quark, + gpointer data); +void g_object_set_qdata_full (GObject *object, + GQuark quark, + gpointer data, + GDestroyNotify destroy); +gpointer g_object_steal_qdata (GObject *object, + GQuark quark); +gpointer g_object_get_data (GObject *object, + const gchar *key); +void g_object_set_data (GObject *object, + const gchar *key, + gpointer data); +void g_object_set_data_full (GObject *object, + const gchar *key, + gpointer data, + GDestroyNotify destroy); +gpointer g_object_steal_data (GObject *object, + const gchar *key); +void g_object_watch_closure (GObject *object, + GClosure *closure); +GClosure* g_cclosure_new_object (GCallback callback_func, + GObject *object); +GClosure* g_cclosure_new_object_swap (GCallback callback_func, + GObject *object); +GClosure* g_closure_new_object (guint sizeof_closure, + GObject *object); +void g_value_set_object (GValue *value, + gpointer v_object); +gpointer g_value_get_object (const GValue *value); +gpointer g_value_dup_object (const GValue *value); +gulong g_signal_connect_object (gpointer instance, + const gchar *detailed_signal, + GCallback c_handler, + gpointer gobject, + GConnectFlags connect_flags); + +/*< protected >*/ +void g_object_force_floating (GObject *object); +void g_object_run_dispose (GObject *object); + + +void g_value_take_object (GValue *value, + gpointer v_object); +#ifndef G_DISABLE_DEPRECATED +void g_value_set_object_take_ownership (GValue *value, + gpointer v_object); +#endif + +#if !defined(G_DISABLE_DEPRECATED) || defined(GTK_COMPILATION) +gsize g_object_compat_control (gsize what, + gpointer data); +#endif + +/* --- implementation macros --- */ +#define G_OBJECT_WARN_INVALID_PSPEC(object, pname, property_id, pspec) \ +G_STMT_START { \ + GObject *_object = (GObject*) (object); \ + GParamSpec *_pspec = (GParamSpec*) (pspec); \ + guint _property_id = (property_id); \ + g_warning ("%s: invalid %s id %u for \"%s\" of type `%s' in `%s'", \ + G_STRLOC, \ + (pname), \ + _property_id, \ + _pspec->name, \ + g_type_name (G_PARAM_SPEC_TYPE (_pspec)), \ + G_OBJECT_TYPE_NAME (_object)); \ +} G_STMT_END +#define G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec) \ + G_OBJECT_WARN_INVALID_PSPEC ((object), "property", (property_id), (pspec)) + +G_END_DECLS + +#endif /* __G_OBJECT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gobjectnotifyqueue.c b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gobjectnotifyqueue.c new file mode 100644 index 00000000..60c1c280 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gobjectnotifyqueue.c @@ -0,0 +1,169 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 1998-1999, 2000-2001 Tim Janik and Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __G_OBJECT_NOTIFY_QUEUE_H__ +#define __G_OBJECT_NOTIFY_QUEUE_H__ + +#include <string.h> /* memset */ +#include <glib-object.h> + +G_BEGIN_DECLS + + +/* --- typedefs --- */ +typedef struct _GObjectNotifyContext GObjectNotifyContext; +typedef struct _GObjectNotifyQueue GObjectNotifyQueue; +typedef void (*GObjectNotifyQueueDispatcher) (GObject *object, + guint n_pspecs, + GParamSpec **pspecs); + + +/* --- structures --- */ +struct _GObjectNotifyContext +{ + GQuark quark_notify_queue; + GObjectNotifyQueueDispatcher dispatcher; + GTrashStack *_nqueue_trash; /* unused */ +}; +struct _GObjectNotifyQueue +{ + GObjectNotifyContext *context; + GSList *pspecs; + guint16 n_pspecs; + guint16 freeze_count; + /* currently, this structure abuses the GList allocation chain and thus + * must be <= sizeof (GList) + */ +}; + + +/* --- functions --- */ +static void +g_object_notify_queue_free (gpointer data) +{ + GObjectNotifyQueue *nqueue = data; + + g_slist_free (nqueue->pspecs); + g_list_free_1 ((void*) nqueue); +} + +static inline GObjectNotifyQueue* +g_object_notify_queue_freeze (GObject *object, + GObjectNotifyContext *context) +{ + GObjectNotifyQueue *nqueue; + + nqueue = g_datalist_id_get_data (&object->qdata, context->quark_notify_queue); + if (!nqueue) + { + nqueue = (void*) g_list_alloc (); + memset (nqueue, 0, sizeof (*nqueue)); + nqueue->context = context; + g_datalist_id_set_data_full (&object->qdata, context->quark_notify_queue, + nqueue, g_object_notify_queue_free); + } + + g_return_val_if_fail (nqueue->freeze_count < 65535, nqueue); + nqueue->freeze_count++; + + return nqueue; +} + +static inline void +g_object_notify_queue_thaw (GObject *object, + GObjectNotifyQueue *nqueue) +{ + GObjectNotifyContext *context = nqueue->context; + GParamSpec *pspecs_mem[16], **pspecs, **free_me = NULL; + GSList *slist; + guint n_pspecs = 0; + + g_return_if_fail (nqueue->freeze_count > 0); + + nqueue->freeze_count--; + if (nqueue->freeze_count) + return; + g_return_if_fail (object->ref_count > 0); + + pspecs = nqueue->n_pspecs > 16 ? free_me = g_new (GParamSpec*, nqueue->n_pspecs) : pspecs_mem; + /* set first entry to NULL since it's checked unconditionally */ + pspecs[0] = NULL; + for (slist = nqueue->pspecs; slist; slist = slist->next) + { + GParamSpec *pspec = slist->data; + guint i = 0; + + /* dedup, make pspecs in the list unique */ + redo_dedup_check: + if (pspecs[i] == pspec) + continue; + if (++i < n_pspecs) + goto redo_dedup_check; + + pspecs[n_pspecs++] = pspec; + } + g_datalist_id_set_data (&object->qdata, context->quark_notify_queue, NULL); + + if (n_pspecs) + context->dispatcher (object, n_pspecs, pspecs); + g_free (free_me); +} + +static inline void +g_object_notify_queue_clear (GObject *object, + GObjectNotifyQueue *nqueue) +{ + g_return_if_fail (nqueue->freeze_count > 0); + + g_slist_free (nqueue->pspecs); + nqueue->pspecs = NULL; + nqueue->n_pspecs = 0; +} + +static inline void +g_object_notify_queue_add (GObject *object, + GObjectNotifyQueue *nqueue, + GParamSpec *pspec) +{ + if (pspec->flags & G_PARAM_READABLE) + { + GParamSpec *redirect; + + g_return_if_fail (nqueue->n_pspecs < 65535); + + redirect = g_param_spec_get_redirect_target (pspec); + if (redirect) + pspec = redirect; + + /* we do the deduping in _thaw */ + nqueue->pspecs = g_slist_prepend (nqueue->pspecs, pspec); + nqueue->n_pspecs++; + } +} + +static inline GObjectNotifyQueue* +g_object_notify_queue_from_object (GObject *object, + GObjectNotifyContext *context) +{ + return g_datalist_id_get_data (&object->qdata, context->quark_notify_queue); +} + + +G_END_DECLS + +#endif /* __G_OBJECT_NOTIFY_QUEUE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gparam.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gparam.h new file mode 100644 index 00000000..3790712e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gparam.h @@ -0,0 +1,235 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 1997-1999, 2000-2001 Tim Janik and Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * gparam.h: GParamSpec base class implementation + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_PARAM_H__ +#define __G_PARAM_H__ + +#include <gobject/gvalue.h> + +G_BEGIN_DECLS + +/* --- standard type macros --- */ +#define G_TYPE_IS_PARAM(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_PARAM) +#define G_PARAM_SPEC(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM, GParamSpec)) +#define G_IS_PARAM_SPEC(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM)) +#define G_PARAM_SPEC_CLASS(pclass) (G_TYPE_CHECK_CLASS_CAST ((pclass), G_TYPE_PARAM, GParamSpecClass)) +#define G_IS_PARAM_SPEC_CLASS(pclass) (G_TYPE_CHECK_CLASS_TYPE ((pclass), G_TYPE_PARAM)) +#define G_PARAM_SPEC_GET_CLASS(pspec) (G_TYPE_INSTANCE_GET_CLASS ((pspec), G_TYPE_PARAM, GParamSpecClass)) + + +/* --- convenience macros --- */ +#define G_PARAM_SPEC_TYPE(pspec) (G_TYPE_FROM_INSTANCE (pspec)) +#define G_PARAM_SPEC_TYPE_NAME(pspec) (g_type_name (G_PARAM_SPEC_TYPE (pspec))) +#define G_PARAM_SPEC_VALUE_TYPE(pspec) (G_PARAM_SPEC (pspec)->value_type) +#define G_VALUE_HOLDS_PARAM(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_PARAM)) + + +/* --- flags --- */ +typedef enum +{ + G_PARAM_READABLE = 1 << 0, + G_PARAM_WRITABLE = 1 << 1, + G_PARAM_CONSTRUCT = 1 << 2, + G_PARAM_CONSTRUCT_ONLY = 1 << 3, + G_PARAM_LAX_VALIDATION = 1 << 4, + G_PARAM_STATIC_NAME = 1 << 5, +#ifndef G_DISABLE_DEPRECATED + G_PARAM_PRIVATE = G_PARAM_STATIC_NAME, +#endif + G_PARAM_STATIC_NICK = 1 << 6, + G_PARAM_STATIC_BLURB = 1 << 7 +} GParamFlags; +#define G_PARAM_READWRITE (G_PARAM_READABLE | G_PARAM_WRITABLE) +#define G_PARAM_STATIC_STRINGS (G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB) +#define G_PARAM_MASK (0x000000ff) +/* bits in the range 0xffffff00 are reserved for 3rd party usage */ +#define G_PARAM_USER_SHIFT (8) + + +/* --- typedefs & structures --- */ +typedef struct _GParamSpec GParamSpec; +typedef struct _GParamSpecClass GParamSpecClass; +typedef struct _GParameter GParameter; +typedef struct _GParamSpecPool GParamSpecPool; +struct _GParamSpec +{ + GTypeInstance g_type_instance; + + gchar *name; + GParamFlags flags; + GType value_type; + GType owner_type; /* class or interface using this property */ + + /*< private >*/ + gchar *_nick; + gchar *_blurb; + GData *qdata; + guint ref_count; + guint param_id; /* sort-criteria */ +}; +struct _GParamSpecClass +{ + GTypeClass g_type_class; + + GType value_type; + + void (*finalize) (GParamSpec *pspec); + + /* GParam methods */ + void (*value_set_default) (GParamSpec *pspec, + GValue *value); + gboolean (*value_validate) (GParamSpec *pspec, + GValue *value); + gint (*values_cmp) (GParamSpec *pspec, + const GValue *value1, + const GValue *value2); + /*< private >*/ + gpointer dummy[4]; +}; +struct _GParameter /* auxillary structure for _setv() variants */ +{ + const gchar *name; + GValue value; +}; + + +/* --- prototypes --- */ +GParamSpec* g_param_spec_ref (GParamSpec *pspec); +void g_param_spec_unref (GParamSpec *pspec); +void g_param_spec_sink (GParamSpec *pspec); +GParamSpec* g_param_spec_ref_sink (GParamSpec *pspec); +gpointer g_param_spec_get_qdata (GParamSpec *pspec, + GQuark quark); +void g_param_spec_set_qdata (GParamSpec *pspec, + GQuark quark, + gpointer data); +void g_param_spec_set_qdata_full (GParamSpec *pspec, + GQuark quark, + gpointer data, + GDestroyNotify destroy); +gpointer g_param_spec_steal_qdata (GParamSpec *pspec, + GQuark quark); +GParamSpec* g_param_spec_get_redirect_target (GParamSpec *pspec); + +void g_param_value_set_default (GParamSpec *pspec, + GValue *value); +gboolean g_param_value_defaults (GParamSpec *pspec, + GValue *value); +gboolean g_param_value_validate (GParamSpec *pspec, + GValue *value); +gboolean g_param_value_convert (GParamSpec *pspec, + const GValue *src_value, + GValue *dest_value, + gboolean strict_validation); +gint g_param_values_cmp (GParamSpec *pspec, + const GValue *value1, + const GValue *value2); +G_CONST_RETURN gchar* g_param_spec_get_name (GParamSpec *pspec); +G_CONST_RETURN gchar* g_param_spec_get_nick (GParamSpec *pspec); +G_CONST_RETURN gchar* g_param_spec_get_blurb (GParamSpec *pspec); +void g_value_set_param (GValue *value, + GParamSpec *param); +GParamSpec* g_value_get_param (const GValue *value); +GParamSpec* g_value_dup_param (const GValue *value); + + +void g_value_take_param (GValue *value, + GParamSpec *param); +#ifndef G_DISABLE_DEPRECATED +void g_value_set_param_take_ownership (GValue *value, + GParamSpec *param); +#endif + +/* --- convenience functions --- */ +typedef struct _GParamSpecTypeInfo GParamSpecTypeInfo; +struct _GParamSpecTypeInfo +{ + /* type system portion */ + guint16 instance_size; /* obligatory */ + guint16 n_preallocs; /* optional */ + void (*instance_init) (GParamSpec *pspec); /* optional */ + + /* class portion */ + GType value_type; /* obligatory */ + void (*finalize) (GParamSpec *pspec); /* optional */ + void (*value_set_default) (GParamSpec *pspec, /* recommended */ + GValue *value); + gboolean (*value_validate) (GParamSpec *pspec, /* optional */ + GValue *value); + gint (*values_cmp) (GParamSpec *pspec, /* recommended */ + const GValue *value1, + const GValue *value2); +}; +GType g_param_type_register_static (const gchar *name, + const GParamSpecTypeInfo *pspec_info); + +/* For registering builting types */ +GType _g_param_type_register_static_constant (const gchar *name, + const GParamSpecTypeInfo *pspec_info, + GType opt_type); + + +/* --- protected --- */ +gpointer g_param_spec_internal (GType param_type, + const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +GParamSpecPool* g_param_spec_pool_new (gboolean type_prefixing); +void g_param_spec_pool_insert (GParamSpecPool *pool, + GParamSpec *pspec, + GType owner_type); +void g_param_spec_pool_remove (GParamSpecPool *pool, + GParamSpec *pspec); +GParamSpec* g_param_spec_pool_lookup (GParamSpecPool *pool, + const gchar *param_name, + GType owner_type, + gboolean walk_ancestors); +GList* g_param_spec_pool_list_owned (GParamSpecPool *pool, + GType owner_type); +GParamSpec** g_param_spec_pool_list (GParamSpecPool *pool, + GType owner_type, + guint *n_pspecs_p); + + + +/* contracts: + * + * gboolean value_validate (GParamSpec *pspec, + * GValue *value): + * modify value contents in the least destructive way, so + * that it complies with pspec's requirements (i.e. + * according to minimum/maximum ranges etc...). return + * whether modification was necessary. + * + * gint values_cmp (GParamSpec *pspec, + * const GValue *value1, + * const GValue *value2): + * return value1 - value2, i.e. (-1) if value1 < value2, + * (+1) if value1 > value2, and (0) otherwise (equality) + */ + +G_END_DECLS + +#endif /* __G_PARAM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gparamspecs.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gparamspecs.h new file mode 100644 index 00000000..b6add1cb --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gparamspecs.h @@ -0,0 +1,439 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 1997-1999, 2000-2001 Tim Janik and Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * gparamspecs.h: GLib default param specs + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_PARAMSPECS_H__ +#define __G_PARAMSPECS_H__ + +#include <gobject/gvalue.h> +#include <gobject/genums.h> +#include <gobject/gboxed.h> +#include <gobject/gobject.h> + +G_BEGIN_DECLS + +/* --- type macros --- */ +#define G_TYPE_PARAM_CHAR (g_param_spec_types[0]) +#define G_IS_PARAM_SPEC_CHAR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_CHAR)) +#define G_PARAM_SPEC_CHAR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_CHAR, GParamSpecChar)) +#define G_TYPE_PARAM_UCHAR (g_param_spec_types[1]) +#define G_IS_PARAM_SPEC_UCHAR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UCHAR)) +#define G_PARAM_SPEC_UCHAR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UCHAR, GParamSpecUChar)) +#define G_TYPE_PARAM_BOOLEAN (g_param_spec_types[2]) +#define G_IS_PARAM_SPEC_BOOLEAN(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_BOOLEAN)) +#define G_PARAM_SPEC_BOOLEAN(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_BOOLEAN, GParamSpecBoolean)) +#define G_TYPE_PARAM_INT (g_param_spec_types[3]) +#define G_IS_PARAM_SPEC_INT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_INT)) +#define G_PARAM_SPEC_INT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_INT, GParamSpecInt)) +#define G_TYPE_PARAM_UINT (g_param_spec_types[4]) +#define G_IS_PARAM_SPEC_UINT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UINT)) +#define G_PARAM_SPEC_UINT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UINT, GParamSpecUInt)) +#define G_TYPE_PARAM_LONG (g_param_spec_types[5]) +#define G_IS_PARAM_SPEC_LONG(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_LONG)) +#define G_PARAM_SPEC_LONG(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_LONG, GParamSpecLong)) +#define G_TYPE_PARAM_ULONG (g_param_spec_types[6]) +#define G_IS_PARAM_SPEC_ULONG(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_ULONG)) +#define G_PARAM_SPEC_ULONG(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_ULONG, GParamSpecULong)) +#define G_TYPE_PARAM_INT64 (g_param_spec_types[7]) +#define G_IS_PARAM_SPEC_INT64(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_INT64)) +#define G_PARAM_SPEC_INT64(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_INT64, GParamSpecInt64)) +#define G_TYPE_PARAM_UINT64 (g_param_spec_types[8]) +#define G_IS_PARAM_SPEC_UINT64(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UINT64)) +#define G_PARAM_SPEC_UINT64(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UINT64, GParamSpecUInt64)) +#define G_TYPE_PARAM_UNICHAR (g_param_spec_types[9]) +#define G_PARAM_SPEC_UNICHAR(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_UNICHAR, GParamSpecUnichar)) +#define G_IS_PARAM_SPEC_UNICHAR(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_UNICHAR)) +#define G_TYPE_PARAM_ENUM (g_param_spec_types[10]) +#define G_IS_PARAM_SPEC_ENUM(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_ENUM)) +#define G_PARAM_SPEC_ENUM(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_ENUM, GParamSpecEnum)) +#define G_TYPE_PARAM_FLAGS (g_param_spec_types[11]) +#define G_IS_PARAM_SPEC_FLAGS(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_FLAGS)) +#define G_PARAM_SPEC_FLAGS(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_FLAGS, GParamSpecFlags)) +#define G_TYPE_PARAM_FLOAT (g_param_spec_types[12]) +#define G_IS_PARAM_SPEC_FLOAT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_FLOAT)) +#define G_PARAM_SPEC_FLOAT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_FLOAT, GParamSpecFloat)) +#define G_TYPE_PARAM_DOUBLE (g_param_spec_types[13]) +#define G_IS_PARAM_SPEC_DOUBLE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_DOUBLE)) +#define G_PARAM_SPEC_DOUBLE(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_DOUBLE, GParamSpecDouble)) +#define G_TYPE_PARAM_STRING (g_param_spec_types[14]) +#define G_IS_PARAM_SPEC_STRING(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_STRING)) +#define G_PARAM_SPEC_STRING(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_STRING, GParamSpecString)) +#define G_TYPE_PARAM_PARAM (g_param_spec_types[15]) +#define G_IS_PARAM_SPEC_PARAM(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_PARAM)) +#define G_PARAM_SPEC_PARAM(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_PARAM, GParamSpecParam)) +#define G_TYPE_PARAM_BOXED (g_param_spec_types[16]) +#define G_IS_PARAM_SPEC_BOXED(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_BOXED)) +#define G_PARAM_SPEC_BOXED(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_BOXED, GParamSpecBoxed)) +#define G_TYPE_PARAM_POINTER (g_param_spec_types[17]) +#define G_IS_PARAM_SPEC_POINTER(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_POINTER)) +#define G_PARAM_SPEC_POINTER(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_POINTER, GParamSpecPointer)) +#define G_TYPE_PARAM_VALUE_ARRAY (g_param_spec_types[18]) +#define G_IS_PARAM_SPEC_VALUE_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_VALUE_ARRAY)) +#define G_PARAM_SPEC_VALUE_ARRAY(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_VALUE_ARRAY, GParamSpecValueArray)) +#define G_TYPE_PARAM_OBJECT (g_param_spec_types[19]) +#define G_IS_PARAM_SPEC_OBJECT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_OBJECT)) +#define G_PARAM_SPEC_OBJECT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_OBJECT, GParamSpecObject)) +#define G_TYPE_PARAM_OVERRIDE (g_param_spec_types[20]) +#define G_IS_PARAM_SPEC_OVERRIDE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_OVERRIDE)) +#define G_PARAM_SPEC_OVERRIDE(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_OVERRIDE, GParamSpecOverride)) +#define G_TYPE_PARAM_GTYPE (g_param_spec_types[21]) +#define G_IS_PARAM_SPEC_GTYPE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM_GTYPE)) +#define G_PARAM_SPEC_GTYPE(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_GTYPE, GParamSpecGType)) + + +/* --- typedefs & structures --- */ +typedef struct _GParamSpecChar GParamSpecChar; +typedef struct _GParamSpecUChar GParamSpecUChar; +typedef struct _GParamSpecBoolean GParamSpecBoolean; +typedef struct _GParamSpecInt GParamSpecInt; +typedef struct _GParamSpecUInt GParamSpecUInt; +typedef struct _GParamSpecLong GParamSpecLong; +typedef struct _GParamSpecULong GParamSpecULong; +typedef struct _GParamSpecInt64 GParamSpecInt64; +typedef struct _GParamSpecUInt64 GParamSpecUInt64; +typedef struct _GParamSpecUnichar GParamSpecUnichar; +typedef struct _GParamSpecEnum GParamSpecEnum; +typedef struct _GParamSpecFlags GParamSpecFlags; +typedef struct _GParamSpecFloat GParamSpecFloat; +typedef struct _GParamSpecDouble GParamSpecDouble; +typedef struct _GParamSpecString GParamSpecString; +typedef struct _GParamSpecParam GParamSpecParam; +typedef struct _GParamSpecBoxed GParamSpecBoxed; +typedef struct _GParamSpecPointer GParamSpecPointer; +typedef struct _GParamSpecValueArray GParamSpecValueArray; +typedef struct _GParamSpecObject GParamSpecObject; +typedef struct _GParamSpecOverride GParamSpecOverride; +typedef struct _GParamSpecGType GParamSpecGType; + +struct _GParamSpecChar +{ + GParamSpec parent_instance; + + gint8 minimum; + gint8 maximum; + gint8 default_value; +}; +struct _GParamSpecUChar +{ + GParamSpec parent_instance; + + guint8 minimum; + guint8 maximum; + guint8 default_value; +}; +struct _GParamSpecBoolean +{ + GParamSpec parent_instance; + + gboolean default_value; +}; +struct _GParamSpecInt +{ + GParamSpec parent_instance; + + gint minimum; + gint maximum; + gint default_value; +}; +struct _GParamSpecUInt +{ + GParamSpec parent_instance; + + guint minimum; + guint maximum; + guint default_value; +}; +struct _GParamSpecLong +{ + GParamSpec parent_instance; + + glong minimum; + glong maximum; + glong default_value; +}; +struct _GParamSpecULong +{ + GParamSpec parent_instance; + + gulong minimum; + gulong maximum; + gulong default_value; +}; +struct _GParamSpecInt64 +{ + GParamSpec parent_instance; + + gint64 minimum; + gint64 maximum; + gint64 default_value; +}; +struct _GParamSpecUInt64 +{ + GParamSpec parent_instance; + + guint64 minimum; + guint64 maximum; + guint64 default_value; +}; +struct _GParamSpecUnichar +{ + GParamSpec parent_instance; + + gunichar default_value; +}; +struct _GParamSpecEnum +{ + GParamSpec parent_instance; + + GEnumClass *enum_class; + gint default_value; +}; +struct _GParamSpecFlags +{ + GParamSpec parent_instance; + + GFlagsClass *flags_class; + guint default_value; +}; +struct _GParamSpecFloat +{ + GParamSpec parent_instance; + + gfloat minimum; + gfloat maximum; + gfloat default_value; + gfloat epsilon; +}; +struct _GParamSpecDouble +{ + GParamSpec parent_instance; + + gdouble minimum; + gdouble maximum; + gdouble default_value; + gdouble epsilon; +}; +struct _GParamSpecString +{ + GParamSpec parent_instance; + + gchar *default_value; + gchar *cset_first; + gchar *cset_nth; + gchar substitutor; + guint null_fold_if_empty : 1; + guint ensure_non_null : 1; +}; +struct _GParamSpecParam +{ + GParamSpec parent_instance; +}; +struct _GParamSpecBoxed +{ + GParamSpec parent_instance; +}; +struct _GParamSpecPointer +{ + GParamSpec parent_instance; +}; +struct _GParamSpecValueArray +{ + GParamSpec parent_instance; + GParamSpec *element_spec; + guint fixed_n_elements; +}; +struct _GParamSpecObject +{ + GParamSpec parent_instance; +}; +struct _GParamSpecOverride +{ + /*< private >*/ + GParamSpec parent_instance; + GParamSpec *overridden; +}; +struct _GParamSpecGType +{ + GParamSpec parent_instance; + GType is_a_type; +}; + +/* --- GParamSpec prototypes --- */ +GParamSpec* g_param_spec_char (const gchar *name, + const gchar *nick, + const gchar *blurb, + gint8 minimum, + gint8 maximum, + gint8 default_value, + GParamFlags flags); +GParamSpec* g_param_spec_uchar (const gchar *name, + const gchar *nick, + const gchar *blurb, + guint8 minimum, + guint8 maximum, + guint8 default_value, + GParamFlags flags); +GParamSpec* g_param_spec_boolean (const gchar *name, + const gchar *nick, + const gchar *blurb, + gboolean default_value, + GParamFlags flags); +GParamSpec* g_param_spec_int (const gchar *name, + const gchar *nick, + const gchar *blurb, + gint minimum, + gint maximum, + gint default_value, + GParamFlags flags); +GParamSpec* g_param_spec_uint (const gchar *name, + const gchar *nick, + const gchar *blurb, + guint minimum, + guint maximum, + guint default_value, + GParamFlags flags); +GParamSpec* g_param_spec_long (const gchar *name, + const gchar *nick, + const gchar *blurb, + glong minimum, + glong maximum, + glong default_value, + GParamFlags flags); +GParamSpec* g_param_spec_ulong (const gchar *name, + const gchar *nick, + const gchar *blurb, + gulong minimum, + gulong maximum, + gulong default_value, + GParamFlags flags); +GParamSpec* g_param_spec_int64 (const gchar *name, + const gchar *nick, + const gchar *blurb, + gint64 minimum, + gint64 maximum, + gint64 default_value, + GParamFlags flags); +GParamSpec* g_param_spec_uint64 (const gchar *name, + const gchar *nick, + const gchar *blurb, + guint64 minimum, + guint64 maximum, + guint64 default_value, + GParamFlags flags); +GParamSpec* g_param_spec_unichar (const gchar *name, + const gchar *nick, + const gchar *blurb, + gunichar default_value, + GParamFlags flags); +GParamSpec* g_param_spec_enum (const gchar *name, + const gchar *nick, + const gchar *blurb, + GType enum_type, + gint default_value, + GParamFlags flags); +GParamSpec* g_param_spec_flags (const gchar *name, + const gchar *nick, + const gchar *blurb, + GType flags_type, + guint default_value, + GParamFlags flags); +GParamSpec* g_param_spec_float (const gchar *name, + const gchar *nick, + const gchar *blurb, + gfloat minimum, + gfloat maximum, + gfloat default_value, + GParamFlags flags); +GParamSpec* g_param_spec_double (const gchar *name, + const gchar *nick, + const gchar *blurb, + gdouble minimum, + gdouble maximum, + gdouble default_value, + GParamFlags flags); +GParamSpec* g_param_spec_string (const gchar *name, + const gchar *nick, + const gchar *blurb, + const gchar *default_value, + GParamFlags flags); +GParamSpec* g_param_spec_param (const gchar *name, + const gchar *nick, + const gchar *blurb, + GType param_type, + GParamFlags flags); +GParamSpec* g_param_spec_boxed (const gchar *name, + const gchar *nick, + const gchar *blurb, + GType boxed_type, + GParamFlags flags); +GParamSpec* g_param_spec_pointer (const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamFlags flags); +GParamSpec* g_param_spec_value_array (const gchar *name, + const gchar *nick, + const gchar *blurb, + GParamSpec *element_spec, + GParamFlags flags); +GParamSpec* g_param_spec_object (const gchar *name, + const gchar *nick, + const gchar *blurb, + GType object_type, + GParamFlags flags); +GParamSpec* g_param_spec_override (const gchar *name, + GParamSpec *overridden); +GParamSpec* g_param_spec_gtype (const gchar *name, + const gchar *nick, + const gchar *blurb, + GType is_a_type, + GParamFlags flags); + +/* --- internal --- */ +/* We prefix variable declarations so they can + * properly get exported in windows dlls. + */ +#ifndef GOBJECT_VAR +# ifdef G_PLATFORM_WIN32 +# ifdef GOBJECT_STATIC_COMPILATION +# define GOBJECT_VAR extern +# else /* !GOBJECT_STATIC_COMPILATION */ +# ifdef GOBJECT_COMPILATION +# ifdef DLL_EXPORT +# define GOBJECT_VAR __declspec(dllexport) +# else /* !DLL_EXPORT */ +# define GOBJECT_VAR extern +# endif /* !DLL_EXPORT */ +# else /* !GOBJECT_COMPILATION */ +# define GOBJECT_VAR extern __declspec(dllimport) +# endif /* !GOBJECT_COMPILATION */ +# endif /* !GOBJECT_STATIC_COMPILATION */ +# else /* !G_PLATFORM_WIN32 */ +# define GOBJECT_VAR extern +# endif /* !G_PLATFORM_WIN32 */ +#endif /* GOBJECT_VAR */ + +GOBJECT_VAR GType *g_param_spec_types; + +G_END_DECLS + +#endif /* __G_PARAMSPECS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gsignal.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gsignal.h new file mode 100644 index 00000000..61345dcb --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gsignal.h @@ -0,0 +1,270 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 2000-2001 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_SIGNAL_H__ +#define __G_SIGNAL_H__ + +#include <gobject/gclosure.h> +#include <gobject/gvalue.h> +#include <gobject/gparam.h> +#include <gobject/gmarshal.h> + +G_BEGIN_DECLS + +/* --- typedefs --- */ +typedef struct _GSignalQuery GSignalQuery; +typedef struct _GSignalInvocationHint GSignalInvocationHint; +typedef GClosureMarshal GSignalCMarshaller; +typedef gboolean (*GSignalEmissionHook) (GSignalInvocationHint *ihint, + guint n_param_values, + const GValue *param_values, + gpointer data); +typedef gboolean (*GSignalAccumulator) (GSignalInvocationHint *ihint, + GValue *return_accu, + const GValue *handler_return, + gpointer data); + + +/* --- run, match and connect types --- */ +typedef enum +{ + G_SIGNAL_RUN_FIRST = 1 << 0, + G_SIGNAL_RUN_LAST = 1 << 1, + G_SIGNAL_RUN_CLEANUP = 1 << 2, + G_SIGNAL_NO_RECURSE = 1 << 3, + G_SIGNAL_DETAILED = 1 << 4, + G_SIGNAL_ACTION = 1 << 5, + G_SIGNAL_NO_HOOKS = 1 << 6 +} GSignalFlags; +#define G_SIGNAL_FLAGS_MASK 0x7f +typedef enum +{ + G_CONNECT_AFTER = 1 << 0, + G_CONNECT_SWAPPED = 1 << 1 +} GConnectFlags; +typedef enum +{ + G_SIGNAL_MATCH_ID = 1 << 0, + G_SIGNAL_MATCH_DETAIL = 1 << 1, + G_SIGNAL_MATCH_CLOSURE = 1 << 2, + G_SIGNAL_MATCH_FUNC = 1 << 3, + G_SIGNAL_MATCH_DATA = 1 << 4, + G_SIGNAL_MATCH_UNBLOCKED = 1 << 5 +} GSignalMatchType; +#define G_SIGNAL_MATCH_MASK 0x3f +#define G_SIGNAL_TYPE_STATIC_SCOPE (G_TYPE_FLAG_RESERVED_ID_BIT) + + +/* --- signal information --- */ +struct _GSignalInvocationHint +{ + guint signal_id; + GQuark detail; + GSignalFlags run_type; +}; +struct _GSignalQuery +{ + guint signal_id; + const gchar *signal_name; + GType itype; + GSignalFlags signal_flags; + GType return_type; /* mangled with G_SIGNAL_TYPE_STATIC_SCOPE flag */ + guint n_params; + const GType *param_types; /* mangled with G_SIGNAL_TYPE_STATIC_SCOPE flag */ +}; + + +/* --- signals --- */ +guint g_signal_newv (const gchar *signal_name, + GType itype, + GSignalFlags signal_flags, + GClosure *class_closure, + GSignalAccumulator accumulator, + gpointer accu_data, + GSignalCMarshaller c_marshaller, + GType return_type, + guint n_params, + GType *param_types); +guint g_signal_new_valist (const gchar *signal_name, + GType itype, + GSignalFlags signal_flags, + GClosure *class_closure, + GSignalAccumulator accumulator, + gpointer accu_data, + GSignalCMarshaller c_marshaller, + GType return_type, + guint n_params, + va_list args); +guint g_signal_new (const gchar *signal_name, + GType itype, + GSignalFlags signal_flags, + guint class_offset, + GSignalAccumulator accumulator, + gpointer accu_data, + GSignalCMarshaller c_marshaller, + GType return_type, + guint n_params, + ...); +void g_signal_emitv (const GValue *instance_and_params, + guint signal_id, + GQuark detail, + GValue *return_value); +void g_signal_emit_valist (gpointer instance, + guint signal_id, + GQuark detail, + va_list var_args); +void g_signal_emit (gpointer instance, + guint signal_id, + GQuark detail, + ...); +void g_signal_emit_by_name (gpointer instance, + const gchar *detailed_signal, + ...); +guint g_signal_lookup (const gchar *name, + GType itype); +G_CONST_RETURN gchar* g_signal_name (guint signal_id); +void g_signal_query (guint signal_id, + GSignalQuery *query); +guint* g_signal_list_ids (GType itype, + guint *n_ids); +gboolean g_signal_parse_name (const gchar *detailed_signal, + GType itype, + guint *signal_id_p, + GQuark *detail_p, + gboolean force_detail_quark); +GSignalInvocationHint* g_signal_get_invocation_hint (gpointer instance); + + +/* --- signal emissions --- */ +void g_signal_stop_emission (gpointer instance, + guint signal_id, + GQuark detail); +void g_signal_stop_emission_by_name (gpointer instance, + const gchar *detailed_signal); +gulong g_signal_add_emission_hook (guint signal_id, + GQuark detail, + GSignalEmissionHook hook_func, + gpointer hook_data, + GDestroyNotify data_destroy); +void g_signal_remove_emission_hook (guint signal_id, + gulong hook_id); + + +/* --- signal handlers --- */ +gboolean g_signal_has_handler_pending (gpointer instance, + guint signal_id, + GQuark detail, + gboolean may_be_blocked); +gulong g_signal_connect_closure_by_id (gpointer instance, + guint signal_id, + GQuark detail, + GClosure *closure, + gboolean after); +gulong g_signal_connect_closure (gpointer instance, + const gchar *detailed_signal, + GClosure *closure, + gboolean after); +gulong g_signal_connect_data (gpointer instance, + const gchar *detailed_signal, + GCallback c_handler, + gpointer data, + GClosureNotify destroy_data, + GConnectFlags connect_flags); +void g_signal_handler_block (gpointer instance, + gulong handler_id); +void g_signal_handler_unblock (gpointer instance, + gulong handler_id); +void g_signal_handler_disconnect (gpointer instance, + gulong handler_id); +gboolean g_signal_handler_is_connected (gpointer instance, + gulong handler_id); +gulong g_signal_handler_find (gpointer instance, + GSignalMatchType mask, + guint signal_id, + GQuark detail, + GClosure *closure, + gpointer func, + gpointer data); +guint g_signal_handlers_block_matched (gpointer instance, + GSignalMatchType mask, + guint signal_id, + GQuark detail, + GClosure *closure, + gpointer func, + gpointer data); +guint g_signal_handlers_unblock_matched (gpointer instance, + GSignalMatchType mask, + guint signal_id, + GQuark detail, + GClosure *closure, + gpointer func, + gpointer data); +guint g_signal_handlers_disconnect_matched (gpointer instance, + GSignalMatchType mask, + guint signal_id, + GQuark detail, + GClosure *closure, + gpointer func, + gpointer data); + + +/* --- chaining for language bindings --- */ +void g_signal_override_class_closure (guint signal_id, + GType instance_type, + GClosure *class_closure); +void g_signal_chain_from_overridden (const GValue *instance_and_params, + GValue *return_value); + + +/* --- convenience --- */ +#define g_signal_connect(instance, detailed_signal, c_handler, data) \ + g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) +#define g_signal_connect_after(instance, detailed_signal, c_handler, data) \ + g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_AFTER) +#define g_signal_connect_swapped(instance, detailed_signal, c_handler, data) \ + g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_SWAPPED) +#define g_signal_handlers_disconnect_by_func(instance, func, data) \ + g_signal_handlers_disconnect_matched ((instance), \ + (GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), \ + 0, 0, NULL, (func), (data)) +#define g_signal_handlers_block_by_func(instance, func, data) \ + g_signal_handlers_block_matched ((instance), \ + (GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), \ + 0, 0, NULL, (func), (data)) +#define g_signal_handlers_unblock_by_func(instance, func, data) \ + g_signal_handlers_unblock_matched ((instance), \ + (GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA), \ + 0, 0, NULL, (func), (data)) + + +gboolean g_signal_accumulator_true_handled (GSignalInvocationHint *ihint, + GValue *return_accu, + const GValue *handler_return, + gpointer dummy); + +/*< private >*/ +void g_signal_handlers_destroy (gpointer instance); +void _g_signals_destroy (GType itype); + +G_END_DECLS + +#endif /* __G_SIGNAL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gsourceclosure.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gsourceclosure.h new file mode 100644 index 00000000..e371235a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gsourceclosure.h @@ -0,0 +1,41 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 2001 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_SOURCECLOSURE_H__ +#define __G_SOURCECLOSURE_H__ + +#include <gobject/gclosure.h> + +G_BEGIN_DECLS + +void g_source_set_closure (GSource *source, + GClosure *closure); + +GType g_io_channel_get_type (void); +GType g_io_condition_get_type (void); + +#define G_TYPE_IO_CHANNEL (g_io_channel_get_type ()) +#define G_TYPE_IO_CONDITION (g_io_condition_get_type ()) + +G_END_DECLS + +#endif /* __G_SOURCECLOSURE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gtype.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gtype.h new file mode 100644 index 00000000..5fa98606 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gtype.h @@ -0,0 +1,499 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 1998-1999, 2000-2001 Tim Janik and Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_TYPE_H__ +#define __G_TYPE_H__ + +#include <glib.h> + +G_BEGIN_DECLS + +/* Basic Type Macros + */ +#define G_TYPE_FUNDAMENTAL(type) (g_type_fundamental (type)) +#define G_TYPE_FUNDAMENTAL_MAX (255 << G_TYPE_FUNDAMENTAL_SHIFT) + +/* Constant fundamental types, + * introduced by g_type_init(). + */ +#define G_TYPE_INVALID G_TYPE_MAKE_FUNDAMENTAL (0) +#define G_TYPE_NONE G_TYPE_MAKE_FUNDAMENTAL (1) +#define G_TYPE_INTERFACE G_TYPE_MAKE_FUNDAMENTAL (2) +#define G_TYPE_CHAR G_TYPE_MAKE_FUNDAMENTAL (3) +#define G_TYPE_UCHAR G_TYPE_MAKE_FUNDAMENTAL (4) +#define G_TYPE_BOOLEAN G_TYPE_MAKE_FUNDAMENTAL (5) +#define G_TYPE_INT G_TYPE_MAKE_FUNDAMENTAL (6) +#define G_TYPE_UINT G_TYPE_MAKE_FUNDAMENTAL (7) +#define G_TYPE_LONG G_TYPE_MAKE_FUNDAMENTAL (8) +#define G_TYPE_ULONG G_TYPE_MAKE_FUNDAMENTAL (9) +#define G_TYPE_INT64 G_TYPE_MAKE_FUNDAMENTAL (10) +#define G_TYPE_UINT64 G_TYPE_MAKE_FUNDAMENTAL (11) +#define G_TYPE_ENUM G_TYPE_MAKE_FUNDAMENTAL (12) +#define G_TYPE_FLAGS G_TYPE_MAKE_FUNDAMENTAL (13) +#define G_TYPE_FLOAT G_TYPE_MAKE_FUNDAMENTAL (14) +#define G_TYPE_DOUBLE G_TYPE_MAKE_FUNDAMENTAL (15) +#define G_TYPE_STRING G_TYPE_MAKE_FUNDAMENTAL (16) +#define G_TYPE_POINTER G_TYPE_MAKE_FUNDAMENTAL (17) +#define G_TYPE_BOXED G_TYPE_MAKE_FUNDAMENTAL (18) +#define G_TYPE_PARAM G_TYPE_MAKE_FUNDAMENTAL (19) +#define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20) + + +/* Reserved fundamental type numbers to create new fundamental + * type IDs with G_TYPE_MAKE_FUNDAMENTAL(). + * Send email to gtk-devel-list@redhat.com for reservations. + */ +#define G_TYPE_FUNDAMENTAL_SHIFT (2) +#define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT)) +#define G_TYPE_RESERVED_GLIB_FIRST (21) +#define G_TYPE_RESERVED_GLIB_LAST (31) +#define G_TYPE_RESERVED_BSE_FIRST (32) +#define G_TYPE_RESERVED_BSE_LAST (48) +#define G_TYPE_RESERVED_USER_FIRST (49) + + +/* Type Checking Macros + */ +#define G_TYPE_IS_FUNDAMENTAL(type) ((type) <= G_TYPE_FUNDAMENTAL_MAX) +#define G_TYPE_IS_DERIVED(type) ((type) > G_TYPE_FUNDAMENTAL_MAX) +#define G_TYPE_IS_INTERFACE(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_INTERFACE) +#define G_TYPE_IS_CLASSED(type) (g_type_test_flags ((type), G_TYPE_FLAG_CLASSED)) +#define G_TYPE_IS_INSTANTIATABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_INSTANTIATABLE)) +#define G_TYPE_IS_DERIVABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_DERIVABLE)) +#define G_TYPE_IS_DEEP_DERIVABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_DEEP_DERIVABLE)) +#define G_TYPE_IS_ABSTRACT(type) (g_type_test_flags ((type), G_TYPE_FLAG_ABSTRACT)) +#define G_TYPE_IS_VALUE_ABSTRACT(type) (g_type_test_flags ((type), G_TYPE_FLAG_VALUE_ABSTRACT)) +#define G_TYPE_IS_VALUE_TYPE(type) (g_type_check_is_value_type (type)) +#define G_TYPE_HAS_VALUE_TABLE(type) (g_type_value_table_peek (type) != NULL) + + +/* Typedefs + */ +#if GLIB_SIZEOF_SIZE_T != GLIB_SIZEOF_LONG || !defined __cplusplus +typedef gsize GType; +#else /* for historic reasons, C++ links against gulong GTypes */ +typedef gulong GType; +#endif +typedef struct _GValue GValue; +typedef union _GTypeCValue GTypeCValue; +typedef struct _GTypePlugin GTypePlugin; +typedef struct _GTypeClass GTypeClass; +typedef struct _GTypeInterface GTypeInterface; +typedef struct _GTypeInstance GTypeInstance; +typedef struct _GTypeInfo GTypeInfo; +typedef struct _GTypeFundamentalInfo GTypeFundamentalInfo; +typedef struct _GInterfaceInfo GInterfaceInfo; +typedef struct _GTypeValueTable GTypeValueTable; +typedef struct _GTypeQuery GTypeQuery; + + +/* Basic Type Structures + */ +struct _GTypeClass +{ + /*< private >*/ + GType g_type; +}; +struct _GTypeInstance +{ + /*< private >*/ + GTypeClass *g_class; +}; +struct _GTypeInterface +{ + /*< private >*/ + GType g_type; /* iface type */ + GType g_instance_type; +}; +struct _GTypeQuery +{ + GType type; + const gchar *type_name; + guint class_size; + guint instance_size; +}; + + +/* Casts, checks and accessors for structured types + * usage of these macros is reserved to type implementations only + */ +/*< protected >*/ +#define G_TYPE_CHECK_INSTANCE(instance) (_G_TYPE_CHI ((GTypeInstance*) (instance))) +#define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) +#define G_TYPE_CHECK_INSTANCE_TYPE(instance, g_type) (_G_TYPE_CIT ((instance), (g_type))) +#define G_TYPE_INSTANCE_GET_CLASS(instance, g_type, c_type) (_G_TYPE_IGC ((instance), (g_type), c_type)) +#define G_TYPE_INSTANCE_GET_INTERFACE(instance, g_type, c_type) (_G_TYPE_IGI ((instance), (g_type), c_type)) +#define G_TYPE_CHECK_CLASS_CAST(g_class, g_type, c_type) (_G_TYPE_CCC ((g_class), (g_type), c_type)) +#define G_TYPE_CHECK_CLASS_TYPE(g_class, g_type) (_G_TYPE_CCT ((g_class), (g_type))) +#define G_TYPE_CHECK_VALUE(value) (_G_TYPE_CHV ((value))) +#define G_TYPE_CHECK_VALUE_TYPE(value, g_type) (_G_TYPE_CVH ((value), (g_type))) +#define G_TYPE_FROM_INSTANCE(instance) (G_TYPE_FROM_CLASS (((GTypeInstance*) (instance))->g_class)) +#define G_TYPE_FROM_CLASS(g_class) (((GTypeClass*) (g_class))->g_type) +#define G_TYPE_FROM_INTERFACE(g_iface) (((GTypeInterface*) (g_iface))->g_type) + +#define G_TYPE_INSTANCE_GET_PRIVATE(instance, g_type, c_type) ((c_type*) g_type_instance_get_private ((GTypeInstance*) (instance), (g_type))) + + +/* debug flags for g_type_init_with_debug_flags() */ +typedef enum /*< skip >*/ +{ + G_TYPE_DEBUG_NONE = 0, + G_TYPE_DEBUG_OBJECTS = 1 << 0, + G_TYPE_DEBUG_SIGNALS = 1 << 1, + G_TYPE_DEBUG_MASK = 0x03 +} GTypeDebugFlags; + + +/* --- prototypes --- */ +void g_type_init (void); +void g_type_init_with_debug_flags (GTypeDebugFlags debug_flags); +G_CONST_RETURN gchar* g_type_name (GType type); +GQuark g_type_qname (GType type); +GType g_type_from_name (const gchar *name); +GType g_type_parent (GType type); +guint g_type_depth (GType type); +GType g_type_next_base (GType leaf_type, + GType root_type); +gboolean g_type_is_a (GType type, + GType is_a_type); +gpointer g_type_class_ref (GType type); +gpointer g_type_class_peek (GType type); +gpointer g_type_class_peek_static (GType type); +void g_type_class_unref (gpointer g_class); +gpointer g_type_class_peek_parent (gpointer g_class); +gpointer g_type_interface_peek (gpointer instance_class, + GType iface_type); +gpointer g_type_interface_peek_parent (gpointer g_iface); + +gpointer g_type_default_interface_ref (GType g_type); +gpointer g_type_default_interface_peek (GType g_type); +void g_type_default_interface_unref (gpointer g_iface); + +/* g_free() the returned arrays */ +GType* g_type_children (GType type, + guint *n_children); +GType* g_type_interfaces (GType type, + guint *n_interfaces); + +/* per-type _static_ data */ +void g_type_set_qdata (GType type, + GQuark quark, + gpointer data); +gpointer g_type_get_qdata (GType type, + GQuark quark); +void g_type_query (GType type, + GTypeQuery *query); + + +/* --- type registration --- */ +typedef void (*GBaseInitFunc) (gpointer g_class); +typedef void (*GBaseFinalizeFunc) (gpointer g_class); +typedef void (*GClassInitFunc) (gpointer g_class, + gpointer class_data); +typedef void (*GClassFinalizeFunc) (gpointer g_class, + gpointer class_data); +typedef void (*GInstanceInitFunc) (GTypeInstance *instance, + gpointer g_class); +typedef void (*GInterfaceInitFunc) (gpointer g_iface, + gpointer iface_data); +typedef void (*GInterfaceFinalizeFunc) (gpointer g_iface, + gpointer iface_data); +typedef gboolean (*GTypeClassCacheFunc) (gpointer cache_data, + GTypeClass *g_class); +typedef void (*GTypeInterfaceCheckFunc) (gpointer check_data, + gpointer g_iface); +typedef enum /*< skip >*/ +{ + G_TYPE_FLAG_CLASSED = (1 << 0), + G_TYPE_FLAG_INSTANTIATABLE = (1 << 1), + G_TYPE_FLAG_DERIVABLE = (1 << 2), + G_TYPE_FLAG_DEEP_DERIVABLE = (1 << 3) +} GTypeFundamentalFlags; +typedef enum /*< skip >*/ +{ + G_TYPE_FLAG_ABSTRACT = (1 << 4), + G_TYPE_FLAG_VALUE_ABSTRACT = (1 << 5) +} GTypeFlags; +struct _GTypeInfo +{ + /* interface types, classed types, instantiated types */ + guint16 class_size; + + GBaseInitFunc base_init; + GBaseFinalizeFunc base_finalize; + + /* interface types, classed types, instantiated types */ + GClassInitFunc class_init; + GClassFinalizeFunc class_finalize; + gconstpointer class_data; + + /* instantiated types */ + guint16 instance_size; + guint16 n_preallocs; + GInstanceInitFunc instance_init; + + /* value handling */ + const GTypeValueTable *value_table; +}; +struct _GTypeFundamentalInfo +{ + GTypeFundamentalFlags type_flags; +}; +struct _GInterfaceInfo +{ + GInterfaceInitFunc interface_init; + GInterfaceFinalizeFunc interface_finalize; + gpointer interface_data; +}; +struct _GTypeValueTable +{ + void (*value_init) (GValue *value); + void (*value_free) (GValue *value); + void (*value_copy) (const GValue *src_value, + GValue *dest_value); + /* varargs functionality (optional) */ + gpointer (*value_peek_pointer) (const GValue *value); + gchar *collect_format; + gchar* (*collect_value) (GValue *value, + guint n_collect_values, + GTypeCValue *collect_values, + guint collect_flags); + gchar *lcopy_format; + gchar* (*lcopy_value) (const GValue *value, + guint n_collect_values, + GTypeCValue *collect_values, + guint collect_flags); +}; +GType g_type_register_static (GType parent_type, + const gchar *type_name, + const GTypeInfo *info, + GTypeFlags flags); +GType g_type_register_static_simple (GType parent_type, + const gchar *type_name, + guint class_size, + GClassInitFunc class_init, + guint instance_size, + GInstanceInitFunc instance_init, + GTypeFlags flags); + +GType g_type_register_dynamic (GType parent_type, + const gchar *type_name, + GTypePlugin *plugin, + GTypeFlags flags); +GType g_type_register_fundamental (GType type_id, + const gchar *type_name, + const GTypeInfo *info, + const GTypeFundamentalInfo *finfo, + GTypeFlags flags); +void g_type_add_interface_static (GType instance_type, + GType interface_type, + const GInterfaceInfo *info); +void g_type_add_interface_dynamic (GType instance_type, + GType interface_type, + GTypePlugin *plugin); +void g_type_interface_add_prerequisite (GType interface_type, + GType prerequisite_type); +GType*g_type_interface_prerequisites (GType interface_type, + guint *n_prerequisites); +void g_type_class_add_private (gpointer g_class, + gsize private_size); +gpointer g_type_instance_get_private (GTypeInstance *instance, + GType private_type); + + +/* --- GType boilerplate --- */ +/* convenience macros for type implementations, which for a type GtkGadget will: + * - prototype: static void gtk_gadget_class_init (GtkGadgetClass *klass); + * - prototype: static void gtk_gadget_init (GtkGadget *self); + * - define: static gpointer gtk_gadget_parent_class = NULL; + * gtk_gadget_parent_class is initialized prior to calling gtk_gadget_class_init() + * - implement: GType gtk_gadget_get_type (void) { ... } + * - support custom code in gtk_gadget_get_type() after the type is registered. + * + * macro arguments: TypeName, type_name, TYPE_PARENT, CODE + * example: G_DEFINE_TYPE_WITH_CODE (GtkGadget, gtk_gadget, GTK_TYPE_WIDGET, + * g_print ("GtkGadget-id: %lu\n", g_define_type_id)); + */ +#define G_DEFINE_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {}) +#define G_DEFINE_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, 0) {_C_;} _G_DEFINE_TYPE_EXTENDED_END() +#define G_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {}) +#define G_DEFINE_ABSTRACT_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT) {_C_;} _G_DEFINE_TYPE_EXTENDED_END() +#define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END() + +/* convenience macro to ease interface addition in the CODE + * section of G_DEFINE_TYPE_WITH_CODE() (this macro relies on + * the g_define_type_id present within G_DEFINE_TYPE_WITH_CODE()). + * usage example: + * G_DEFINE_TYPE_WITH_CODE (GtkTreeStore, gtk_tree_store, G_TYPE_OBJECT, + * G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL, + * gtk_tree_store_tree_model_init)); + */ +#define G_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init) { \ + const GInterfaceInfo g_implement_interface_info = { \ + (GInterfaceInitFunc) iface_init, NULL, NULL \ + }; \ + g_type_add_interface_static (g_define_type_id, TYPE_IFACE, &g_implement_interface_info); \ +} + +#define _G_DEFINE_TYPE_EXTENDED_BEGIN(TypeName, type_name, TYPE_PARENT, flags) \ +\ +static void type_name##_init (TypeName *self); \ +static void type_name##_class_init (TypeName##Class *klass); \ +static gpointer type_name##_parent_class = NULL; \ +static void type_name##_class_intern_init (gpointer klass) \ +{ \ + type_name##_parent_class = g_type_class_peek_parent (klass); \ + type_name##_class_init ((TypeName##Class*) klass); \ +} \ +\ +GType \ +type_name##_get_type (void) \ +{ \ + static volatile gsize g_define_type_id__volatile = 0; \ + if (g_once_init_enter (&g_define_type_id__volatile)) \ + { \ + GType g_define_type_id = \ + g_type_register_static_simple (TYPE_PARENT, \ + g_intern_static_string (#TypeName), \ + sizeof (TypeName##Class), \ + (GClassInitFunc) type_name##_class_intern_init, \ + sizeof (TypeName), \ + (GInstanceInitFunc) type_name##_init, \ + (GTypeFlags) flags); \ + { /* custom code follows */ +#define _G_DEFINE_TYPE_EXTENDED_END() \ + /* following custom code */ \ + } \ + g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); \ + } \ + return g_define_type_id__volatile; \ +} /* closes type_name##_get_type() */ + + +/* --- protected (for fundamental type implementations) --- */ +GTypePlugin* g_type_get_plugin (GType type); +GTypePlugin* g_type_interface_get_plugin (GType instance_type, + GType interface_type); +GType g_type_fundamental_next (void); +GType g_type_fundamental (GType type_id); +GTypeInstance* g_type_create_instance (GType type); +void g_type_free_instance (GTypeInstance *instance); + +void g_type_add_class_cache_func (gpointer cache_data, + GTypeClassCacheFunc cache_func); +void g_type_remove_class_cache_func (gpointer cache_data, + GTypeClassCacheFunc cache_func); +void g_type_class_unref_uncached (gpointer g_class); + +void g_type_add_interface_check (gpointer check_data, + GTypeInterfaceCheckFunc check_func); +void g_type_remove_interface_check (gpointer check_data, + GTypeInterfaceCheckFunc check_func); + +GTypeValueTable* g_type_value_table_peek (GType type); + + +/*< private >*/ +gboolean g_type_check_instance (GTypeInstance *instance) G_GNUC_PURE; +GTypeInstance* g_type_check_instance_cast (GTypeInstance *instance, + GType iface_type); +gboolean g_type_check_instance_is_a (GTypeInstance *instance, + GType iface_type) G_GNUC_PURE; +GTypeClass* g_type_check_class_cast (GTypeClass *g_class, + GType is_a_type); +gboolean g_type_check_class_is_a (GTypeClass *g_class, + GType is_a_type) G_GNUC_PURE; +gboolean g_type_check_is_value_type (GType type) G_GNUC_CONST; +gboolean g_type_check_value (GValue *value) G_GNUC_PURE; +gboolean g_type_check_value_holds (GValue *value, + GType type) G_GNUC_PURE; +gboolean g_type_test_flags (GType type, + guint flags) G_GNUC_CONST; + + +/* --- debugging functions --- */ +G_CONST_RETURN gchar* g_type_name_from_instance (GTypeInstance *instance); +G_CONST_RETURN gchar* g_type_name_from_class (GTypeClass *g_class); + + +/* --- internal functions --- */ +G_GNUC_INTERNAL void g_value_c_init (void); /* sync with gvalue.c */ +G_GNUC_INTERNAL void g_value_types_init (void); /* sync with gvaluetypes.c */ +G_GNUC_INTERNAL void g_enum_types_init (void); /* sync with genums.c */ +G_GNUC_INTERNAL void g_param_type_init (void); /* sync with gparam.c */ +G_GNUC_INTERNAL void g_boxed_type_init (void); /* sync with gboxed.c */ +G_GNUC_INTERNAL void g_object_type_init (void); /* sync with gobject.c */ +G_GNUC_INTERNAL void g_param_spec_types_init (void); /* sync with gparamspecs.c */ +G_GNUC_INTERNAL void g_value_transforms_init (void); /* sync with gvaluetransform.c */ +G_GNUC_INTERNAL void g_signal_init (void); /* sync with gsignal.c */ + + +/* --- implementation bits --- */ +#ifndef G_DISABLE_CAST_CHECKS +# define _G_TYPE_CIC(ip, gt, ct) \ + ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) +# define _G_TYPE_CCC(cp, gt, ct) \ + ((ct*) g_type_check_class_cast ((GTypeClass*) cp, gt)) +#else /* G_DISABLE_CAST_CHECKS */ +# define _G_TYPE_CIC(ip, gt, ct) ((ct*) ip) +# define _G_TYPE_CCC(cp, gt, ct) ((ct*) cp) +#endif /* G_DISABLE_CAST_CHECKS */ +#define _G_TYPE_CHI(ip) (g_type_check_instance ((GTypeInstance*) ip)) +#define _G_TYPE_CHV(vl) (g_type_check_value ((GValue*) vl)) +#define _G_TYPE_IGC(ip, gt, ct) ((ct*) (((GTypeInstance*) ip)->g_class)) +#define _G_TYPE_IGI(ip, gt, ct) ((ct*) g_type_interface_peek (((GTypeInstance*) ip)->g_class, gt)) +#ifdef __GNUC__ +# define _G_TYPE_CIT(ip, gt) (G_GNUC_EXTENSION ({ \ + GTypeInstance *__inst = (GTypeInstance*) ip; GType __t = gt; gboolean __r; \ + if (__inst && __inst->g_class && __inst->g_class->g_type == __t) \ + __r = TRUE; \ + else \ + __r = g_type_check_instance_is_a (__inst, __t); \ + __r; \ +})) +# define _G_TYPE_CCT(cp, gt) (G_GNUC_EXTENSION ({ \ + GTypeClass *__class = (GTypeClass*) cp; GType __t = gt; gboolean __r; \ + if (__class && __class->g_type == __t) \ + __r = TRUE; \ + else \ + __r = g_type_check_class_is_a (__class, __t); \ + __r; \ +})) +# define _G_TYPE_CVH(vl, gt) (G_GNUC_EXTENSION ({ \ + GValue *__val = (GValue*) vl; GType __t = gt; gboolean __r; \ + if (__val && __val->g_type == __t) \ + __r = TRUE; \ + else \ + __r = g_type_check_value_holds (__val, __t); \ + __r; \ +})) +#else /* !__GNUC__ */ +# define _G_TYPE_CIT(ip, gt) (g_type_check_instance_is_a ((GTypeInstance*) ip, gt)) +# define _G_TYPE_CCT(cp, gt) (g_type_check_class_is_a ((GTypeClass*) cp, gt)) +# define _G_TYPE_CVH(vl, gt) (g_type_check_value_holds ((GValue*) vl, gt)) +#endif /* !__GNUC__ */ +#define G_TYPE_FLAG_RESERVED_ID_BIT ((GType) (1 << 0)) +extern GTypeDebugFlags _g_type_debug_flags; + +G_END_DECLS + +#endif /* __G_TYPE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gtypemodule.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gtypemodule.h new file mode 100644 index 00000000..46858f59 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gtypemodule.h @@ -0,0 +1,135 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_TYPE_MODULE_H__ +#define __G_TYPE_MODULE_H__ + +#include <gobject/gobject.h> +#include <gobject/genums.h> + +G_BEGIN_DECLS + +typedef struct _GTypeModule GTypeModule; +typedef struct _GTypeModuleClass GTypeModuleClass; + +#define G_TYPE_TYPE_MODULE (g_type_module_get_type ()) +#define G_TYPE_MODULE(module) (G_TYPE_CHECK_INSTANCE_CAST ((module), G_TYPE_TYPE_MODULE, GTypeModule)) +#define G_TYPE_MODULE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_TYPE_MODULE, GTypeModuleClass)) +#define G_IS_TYPE_MODULE(module) (G_TYPE_CHECK_INSTANCE_TYPE ((module), G_TYPE_TYPE_MODULE)) +#define G_IS_TYPE_MODULE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_TYPE_MODULE)) +#define G_TYPE_MODULE_GET_CLASS(module) (G_TYPE_INSTANCE_GET_CLASS ((module), G_TYPE_TYPE_MODULE, GTypeModuleClass)) + +struct _GTypeModule +{ + GObject parent_instance; + + guint use_count; + GSList *type_infos; + GSList *interface_infos; + + /*< public >*/ + gchar *name; +}; + +struct _GTypeModuleClass +{ + GObjectClass parent_class; + + /*< public >*/ + gboolean (* load) (GTypeModule *module); + void (* unload) (GTypeModule *module); + + /*< private >*/ + /* Padding for future expansion */ + void (*reserved1) (void); + void (*reserved2) (void); + void (*reserved3) (void); + void (*reserved4) (void); +}; + +#define G_DEFINE_DYNAMIC_TYPE(TN, t_n, T_P) G_DEFINE_DYNAMIC_TYPE_EXTENDED (TN, t_n, T_P, 0, {}) +#define G_DEFINE_DYNAMIC_TYPE_EXTENDED(TypeName, type_name, TYPE_PARENT, flags, CODE) \ +static void type_name##_init (TypeName *self); \ +static void type_name##_class_init (TypeName##Class *klass); \ +static void type_name##_class_finalize (TypeName##Class *klass); \ +static gpointer type_name##_parent_class = NULL; \ +static GType type_name##_type_id = 0; \ +static void type_name##_class_intern_init (gpointer klass) \ +{ \ + type_name##_parent_class = g_type_class_peek_parent (klass); \ + type_name##_class_init ((TypeName##Class*) klass); \ +} \ +GType \ +type_name##_get_type (void) \ +{ \ + return type_name##_type_id; \ +} \ +static void \ +type_name##_register_type (GTypeModule *type_module) \ +{ \ + GType g_define_type_id; \ + const GTypeInfo g_define_type_info = { \ + sizeof (TypeName##Class), \ + (GBaseInitFunc) NULL, \ + (GBaseFinalizeFunc) NULL, \ + (GClassInitFunc) type_name##_class_intern_init, \ + (GClassFinalizeFunc) type_name##_class_finalize, \ + NULL, /* class_data */ \ + sizeof (TypeName), \ + 0, /* n_preallocs */ \ + (GInstanceInitFunc) type_name##_init, \ + NULL /* value_table */ \ + }; \ + type_name##_type_id = g_type_module_register_type (type_module, \ + TYPE_PARENT, \ + #TypeName, \ + &g_define_type_info, \ + (GTypeFlags) flags); \ + g_define_type_id = type_name##_type_id; \ + { CODE ; } \ +} + + +GType g_type_module_get_type (void) G_GNUC_CONST; +gboolean g_type_module_use (GTypeModule *module); +void g_type_module_unuse (GTypeModule *module); +void g_type_module_set_name (GTypeModule *module, + const gchar *name); +GType g_type_module_register_type (GTypeModule *module, + GType parent_type, + const gchar *type_name, + const GTypeInfo *type_info, + GTypeFlags flags); +void g_type_module_add_interface (GTypeModule *module, + GType instance_type, + GType interface_type, + const GInterfaceInfo *interface_info); +GType g_type_module_register_enum (GTypeModule *module, + const gchar *name, + const GEnumValue *const_static_values); +GType g_type_module_register_flags (GTypeModule *module, + const gchar *name, + const GFlagsValue *const_static_values); + +G_END_DECLS + +#endif /* __G_TYPE_MODULE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gtypeplugin.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gtypeplugin.h new file mode 100644 index 00000000..a8e9803d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gtypeplugin.h @@ -0,0 +1,79 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_TYPE_PLUGIN_H__ +#define __G_TYPE_PLUGIN_H__ + +#include <gobject/gtype.h> + +G_BEGIN_DECLS + +/* --- type macros --- */ +#define G_TYPE_TYPE_PLUGIN (g_type_plugin_get_type ()) +#define G_TYPE_PLUGIN(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_TYPE_PLUGIN, GTypePlugin)) +#define G_TYPE_PLUGIN_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), G_TYPE_TYPE_PLUGIN, GTypePluginClass)) +#define G_IS_TYPE_PLUGIN(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_TYPE_PLUGIN)) +#define G_IS_TYPE_PLUGIN_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), G_TYPE_TYPE_PLUGIN)) +#define G_TYPE_PLUGIN_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), G_TYPE_TYPE_PLUGIN, GTypePluginClass)) + + +/* --- typedefs & structures --- */ +typedef struct _GTypePluginClass GTypePluginClass; +typedef void (*GTypePluginUse) (GTypePlugin *plugin); +typedef void (*GTypePluginUnuse) (GTypePlugin *plugin); +typedef void (*GTypePluginCompleteTypeInfo) (GTypePlugin *plugin, + GType g_type, + GTypeInfo *info, + GTypeValueTable *value_table); +typedef void (*GTypePluginCompleteInterfaceInfo) (GTypePlugin *plugin, + GType instance_type, + GType interface_type, + GInterfaceInfo *info); +struct _GTypePluginClass +{ + /*< private >*/ + GTypeInterface base_iface; + + /*< public >*/ + GTypePluginUse use_plugin; + GTypePluginUnuse unuse_plugin; + GTypePluginCompleteTypeInfo complete_type_info; + GTypePluginCompleteInterfaceInfo complete_interface_info; +}; + + +/* --- prototypes --- */ +GType g_type_plugin_get_type (void) G_GNUC_CONST; +void g_type_plugin_use (GTypePlugin *plugin); +void g_type_plugin_unuse (GTypePlugin *plugin); +void g_type_plugin_complete_type_info (GTypePlugin *plugin, + GType g_type, + GTypeInfo *info, + GTypeValueTable *value_table); +void g_type_plugin_complete_interface_info (GTypePlugin *plugin, + GType instance_type, + GType interface_type, + GInterfaceInfo *info); + +G_END_DECLS + +#endif /* __G_TYPE_PLUGIN_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvalue.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvalue.h new file mode 100644 index 00000000..b93e1e9d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvalue.h @@ -0,0 +1,94 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 1997-1999, 2000-2001 Tim Janik and Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * gvalue.h: generic GValue functions + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_VALUE_H__ +#define __G_VALUE_H__ + +#include <gobject/gtype.h> + +G_BEGIN_DECLS + +/* --- type macros --- */ +#define G_TYPE_IS_VALUE(type) (g_type_check_is_value_type (type)) +#define G_IS_VALUE(value) (G_TYPE_CHECK_VALUE (value)) +#define G_VALUE_TYPE(value) (((GValue*) (value))->g_type) +#define G_VALUE_TYPE_NAME(value) (g_type_name (G_VALUE_TYPE (value))) +#define G_VALUE_HOLDS(value,type) (G_TYPE_CHECK_VALUE_TYPE ((value), (type))) + + +/* --- typedefs & structures --- */ +typedef void (*GValueTransform) (const GValue *src_value, + GValue *dest_value); +struct _GValue +{ + /*< private >*/ + GType g_type; + + /* public for GTypeValueTable methods */ + union { + gint v_int; + guint v_uint; + glong v_long; + gulong v_ulong; + gint64 v_int64; + guint64 v_uint64; + gfloat v_float; + gdouble v_double; + gpointer v_pointer; + } data[2]; +}; + + +/* --- prototypes --- */ +GValue* g_value_init (GValue *value, + GType g_type); +void g_value_copy (const GValue *src_value, + GValue *dest_value); +GValue* g_value_reset (GValue *value); +void g_value_unset (GValue *value); +void g_value_set_instance (GValue *value, + gpointer instance); + + +/* --- private --- */ +gboolean g_value_fits_pointer (const GValue *value); +gpointer g_value_peek_pointer (const GValue *value); + + +/* --- implementation details --- */ +gboolean g_value_type_compatible (GType src_type, + GType dest_type); +gboolean g_value_type_transformable (GType src_type, + GType dest_type); +gboolean g_value_transform (const GValue *src_value, + GValue *dest_value); +void g_value_register_transform_func (GType src_type, + GType dest_type, + GValueTransform transform_func); +#define G_VALUE_NOCOPY_CONTENTS (1 << 27) + + +G_END_DECLS + +#endif /* __G_VALUE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvaluearray.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvaluearray.h new file mode 100644 index 00000000..d6897148 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvaluearray.h @@ -0,0 +1,70 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 2001 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * gvaluearray.h: GLib array type holding GValues + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_VALUE_ARRAY_H__ +#define __G_VALUE_ARRAY_H__ + +#include <gobject/gvalue.h> + + +G_BEGIN_DECLS + + +/* --- typedefs & structs --- */ +typedef struct _GValueArray GValueArray; +struct _GValueArray +{ + guint n_values; + GValue *values; + + /*< private >*/ + guint n_prealloced; +}; + + +/* --- prototypes --- */ +GValue* g_value_array_get_nth (GValueArray *value_array, + guint index_); +GValueArray* g_value_array_new (guint n_prealloced); +void g_value_array_free (GValueArray *value_array); +GValueArray* g_value_array_copy (const GValueArray *value_array); +GValueArray* g_value_array_prepend (GValueArray *value_array, + const GValue *value); +GValueArray* g_value_array_append (GValueArray *value_array, + const GValue *value); +GValueArray* g_value_array_insert (GValueArray *value_array, + guint index_, + const GValue *value); +GValueArray* g_value_array_remove (GValueArray *value_array, + guint index_); +GValueArray* g_value_array_sort (GValueArray *value_array, + GCompareFunc compare_func); +GValueArray* g_value_array_sort_with_data (GValueArray *value_array, + GCompareDataFunc compare_func, + gpointer user_data); + + +G_END_DECLS + +#endif /* __G_VALUE_ARRAY_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvaluecollector.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvaluecollector.h new file mode 100644 index 00000000..e9379968 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvaluecollector.h @@ -0,0 +1,160 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 1998-1999, 2000-2001 Tim Janik and Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * gvaluecollector.h: GValue varargs stubs + */ +#ifndef __G_VALUE_COLLECTOR_H__ +#define __G_VALUE_COLLECTOR_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +/* we may want to add aggregate types here some day, if requested + * by users. the basic C types are covered already, everything + * smaller than an int is promoted to an integer and floats are + * always promoted to doubles for varargs call constructions. + */ +enum /*< skip >*/ +{ + G_VALUE_COLLECT_INT = 'i', + G_VALUE_COLLECT_LONG = 'l', + G_VALUE_COLLECT_INT64 = 'q', + G_VALUE_COLLECT_DOUBLE = 'd', + G_VALUE_COLLECT_POINTER = 'p' +}; + + +/* vararg union holding actuall values collected + */ +union _GTypeCValue +{ + gint v_int; + glong v_long; + gint64 v_int64; + gdouble v_double; + gpointer v_pointer; +}; + + +/* G_VALUE_COLLECT() collects a variable argument value + * from a va_list. we have to implement the varargs collection as a + * macro, because on some systems va_list variables cannot be passed + * by reference. + * value is supposed to be initialized according to the value + * type to be collected. + * var_args is the va_list variable and may be evaluated multiple times. + * __error is a gchar** variable that will be modified to hold a g_new() + * allocated error messages if something fails. + */ +#define G_VALUE_COLLECT(value, var_args, flags, __error) \ +G_STMT_START { \ + GValue *_value = (value); \ + guint _flags = (flags); \ + GType _value_type = G_VALUE_TYPE (_value); \ + GTypeValueTable *_vtable = g_type_value_table_peek (_value_type); \ + gchar *_collect_format = _vtable->collect_format; \ + GTypeCValue _cvalues[G_VALUE_COLLECT_FORMAT_MAX_LENGTH] = { { 0, }, }; \ + guint _n_values = 0; \ + \ + if (_vtable->value_free) \ + _vtable->value_free (_value); \ + _value->g_type = _value_type; /* value_meminit() from gvalue.c */ \ + memset (_value->data, 0, sizeof (_value->data)); \ + while (*_collect_format) \ + { \ + GTypeCValue *_cvalue = _cvalues + _n_values++; \ + \ + switch (*_collect_format++) \ + { \ + case G_VALUE_COLLECT_INT: \ + _cvalue->v_int = va_arg ((var_args), gint); \ + break; \ + case G_VALUE_COLLECT_LONG: \ + _cvalue->v_long = va_arg ((var_args), glong); \ + break; \ + case G_VALUE_COLLECT_INT64: \ + _cvalue->v_int64 = va_arg ((var_args), gint64); \ + break; \ + case G_VALUE_COLLECT_DOUBLE: \ + _cvalue->v_double = va_arg ((var_args), gdouble); \ + break; \ + case G_VALUE_COLLECT_POINTER: \ + _cvalue->v_pointer = va_arg ((var_args), gpointer); \ + break; \ + default: \ + g_assert_not_reached (); \ + } \ + } \ + *(__error) = _vtable->collect_value (_value, \ + _n_values, \ + _cvalues, \ + _flags); \ +} G_STMT_END + + +/* G_VALUE_LCOPY() collects a value's variable argument + * locations from a va_list. usage is analogous to G_VALUE_COLLECT(). + */ +#define G_VALUE_LCOPY(value, var_args, flags, __error) \ +G_STMT_START { \ + const GValue *_value = (value); \ + guint _flags = (flags); \ + GType _value_type = G_VALUE_TYPE (_value); \ + GTypeValueTable *_vtable = g_type_value_table_peek (_value_type); \ + gchar *_lcopy_format = _vtable->lcopy_format; \ + GTypeCValue _cvalues[G_VALUE_COLLECT_FORMAT_MAX_LENGTH] = { { 0, }, }; \ + guint _n_values = 0; \ + \ + while (*_lcopy_format) \ + { \ + GTypeCValue *_cvalue = _cvalues + _n_values++; \ + \ + switch (*_lcopy_format++) \ + { \ + case G_VALUE_COLLECT_INT: \ + _cvalue->v_int = va_arg ((var_args), gint); \ + break; \ + case G_VALUE_COLLECT_LONG: \ + _cvalue->v_long = va_arg ((var_args), glong); \ + break; \ + case G_VALUE_COLLECT_INT64: \ + _cvalue->v_int64 = va_arg ((var_args), gint64); \ + break; \ + case G_VALUE_COLLECT_DOUBLE: \ + _cvalue->v_double = va_arg ((var_args), gdouble); \ + break; \ + case G_VALUE_COLLECT_POINTER: \ + _cvalue->v_pointer = va_arg ((var_args), gpointer); \ + break; \ + default: \ + g_assert_not_reached (); \ + } \ + } \ + *(__error) = _vtable->lcopy_value (_value, \ + _n_values, \ + _cvalues, \ + _flags); \ +} G_STMT_END + + +#define G_VALUE_COLLECT_FORMAT_MAX_LENGTH (8) + +G_END_DECLS + +#endif /* __G_VALUE_COLLECTOR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvaluetypes.h b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvaluetypes.h new file mode 100644 index 00000000..2931cdaa --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/glib-2.0/gobject/gvaluetypes.h @@ -0,0 +1,120 @@ +/* GObject - GLib Type, Object, Parameter and Signal Library + * Copyright (C) 1997-1999, 2000-2001 Tim Janik and Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * gvaluetypes.h: GLib default values + */ +#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) +#error "Only <glib-object.h> can be included directly." +#endif + +#ifndef __G_VALUETYPES_H__ +#define __G_VALUETYPES_H__ + +#include <gobject/gvalue.h> + +G_BEGIN_DECLS + +/* --- type macros --- */ +#define G_VALUE_HOLDS_CHAR(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_CHAR)) +#define G_VALUE_HOLDS_UCHAR(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_UCHAR)) +#define G_VALUE_HOLDS_BOOLEAN(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_BOOLEAN)) +#define G_VALUE_HOLDS_INT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_INT)) +#define G_VALUE_HOLDS_UINT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_UINT)) +#define G_VALUE_HOLDS_LONG(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_LONG)) +#define G_VALUE_HOLDS_ULONG(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_ULONG)) +#define G_VALUE_HOLDS_INT64(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_INT64)) +#define G_VALUE_HOLDS_UINT64(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_UINT64)) +#define G_VALUE_HOLDS_FLOAT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_FLOAT)) +#define G_VALUE_HOLDS_DOUBLE(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_DOUBLE)) +#define G_VALUE_HOLDS_STRING(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_STRING)) +#define G_VALUE_HOLDS_POINTER(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_POINTER)) +#define G_TYPE_GTYPE (g_gtype_get_type()) +#define G_VALUE_HOLDS_GTYPE(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_GTYPE)) + + +/* --- prototypes --- */ +void g_value_set_char (GValue *value, + gchar v_char); +gchar g_value_get_char (const GValue *value); +void g_value_set_uchar (GValue *value, + guchar v_uchar); +guchar g_value_get_uchar (const GValue *value); +void g_value_set_boolean (GValue *value, + gboolean v_boolean); +gboolean g_value_get_boolean (const GValue *value); +void g_value_set_int (GValue *value, + gint v_int); +gint g_value_get_int (const GValue *value); +void g_value_set_uint (GValue *value, + guint v_uint); +guint g_value_get_uint (const GValue *value); +void g_value_set_long (GValue *value, + glong v_long); +glong g_value_get_long (const GValue *value); +void g_value_set_ulong (GValue *value, + gulong v_ulong); +gulong g_value_get_ulong (const GValue *value); +void g_value_set_int64 (GValue *value, + gint64 v_int64); +gint64 g_value_get_int64 (const GValue *value); +void g_value_set_uint64 (GValue *value, + guint64 v_uint64); +guint64 g_value_get_uint64 (const GValue *value); +void g_value_set_float (GValue *value, + gfloat v_float); +gfloat g_value_get_float (const GValue *value); +void g_value_set_double (GValue *value, + gdouble v_double); +gdouble g_value_get_double (const GValue *value); +void g_value_set_string (GValue *value, + const gchar *v_string); +void g_value_set_static_string (GValue *value, + const gchar *v_string); +G_CONST_RETURN gchar* g_value_get_string (const GValue *value); +gchar* g_value_dup_string (const GValue *value); +void g_value_set_pointer (GValue *value, + gpointer v_pointer); +gpointer g_value_get_pointer (const GValue *value); +GType g_gtype_get_type (void); +void g_value_set_gtype (GValue *value, + GType v_gtype); +GType g_value_get_gtype (const GValue *value); + + +/* Convenience for registering new pointer types */ +GType g_pointer_type_register_static (const gchar *name); + +/* debugging aid, describe value contents as string */ +gchar* g_strdup_value_contents (const GValue *value); + + +void g_value_take_string (GValue *value, + gchar *v_string); +#ifndef G_DISABLE_DEPRECATED +void g_value_set_string_take_ownership (GValue *value, + gchar *v_string); +#endif + + +/* humpf, need a C representable type name for G_TYPE_STRING */ +typedef gchar* gchararray; + + +G_END_DECLS + +#endif /* __G_VALUETYPES_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h new file mode 100644 index 00000000..04f573e7 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h @@ -0,0 +1,91 @@ +/* GdkPixbuf library - Xlib header file + * + * Authors: John Harper <john@dcs.warwick.ac.uk> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GDK_PIXBUF_XLIB_H +#define GDK_PIXBUF_XLIB_H + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include <gdk-pixbuf/gdk-pixbuf.h> +#include <gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h> +#include <X11/Xlib.h> + + + +/* init */ + +void gdk_pixbuf_xlib_init (Display *display, int screen_num); + +void gdk_pixbuf_xlib_init_with_depth (Display *display, int screen_num, + int prefDepth); + + + +/* render */ + +void gdk_pixbuf_xlib_render_threshold_alpha (GdkPixbuf *pixbuf, Pixmap bitmap, + int src_x, int src_y, + int dest_x, int dest_y, + int width, int height, + int alpha_threshold); + +void gdk_pixbuf_xlib_render_to_drawable (GdkPixbuf *pixbuf, + Drawable drawable, GC gc, + int src_x, int src_y, + int dest_x, int dest_y, + int width, int height, + XlibRgbDither dither, + int x_dither, int y_dither); + + +void gdk_pixbuf_xlib_render_to_drawable_alpha (GdkPixbuf *pixbuf, + Drawable drawable, + int src_x, int src_y, + int dest_x, int dest_y, + int width, int height, + GdkPixbufAlphaMode alpha_mode, + int alpha_threshold, + XlibRgbDither dither, + int x_dither, int y_dither); + +void gdk_pixbuf_xlib_render_pixmap_and_mask (GdkPixbuf *pixbuf, + Pixmap *pixmap_return, + Pixmap *mask_return, + int alpha_threshold); + + + +/* drawable */ + +GdkPixbuf *gdk_pixbuf_xlib_get_from_drawable (GdkPixbuf *dest, + Drawable src, + Colormap cmap, Visual *visual, + int src_x, int src_y, + int dest_x, int dest_y, + int width, int height); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* GDK_PIXBUF_XLIB_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h new file mode 100644 index 00000000..c94e746f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h @@ -0,0 +1,193 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "MPL"); you may not use this file except in + * compliance with the MPL. You may obtain a copy of the MPL at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the MPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL + * for the specific language governing rights and limitations under the + * MPL. + * + * Alternatively, the contents of this file may be used under the + * terms of the GNU Library General Public License (the "LGPL"), in + * which case the provisions of the LGPL are applicable instead of + * those above. If you wish to allow use of your version of this file + * only under the terms of the LGPL and not to allow others to use + * your version of this file under the MPL, indicate your decision by + * deleting the provisions above and replace them with the notice and + * other provisions required by the LGPL. If you do not delete the + * provisions above, a recipient may use your version of this file + * under either the MPL or the LGPL. + */ + +/* + * This code is derived from GdkRgb. + * For more information on GdkRgb, see http://www.levien.com/gdkrgb/ + * Raph Levien <raph@acm.org> + */ + +/* Ported by Christopher Blizzard to Xlib. With permission from the + * original authors of this file, the contents of this file are also + * redistributable under the terms of the Mozilla Public license. For + * information about the Mozilla Public License, please see the + * license information at http://www.mozilla.org/MPL/ + */ + +/* This code is copyright the following authors: + * Raph Levien <raph@acm.org> + * Manish Singh <manish@gtk.org> + * Tim Janik <timj@gtk.org> + * Peter Mattis <petm@xcf.berkeley.edu> + * Spencer Kimball <spencer@xcf.berkeley.edu> + * Josh MacDonald <jmacd@xcf.berkeley.edu> + * Christopher Blizzard <blizzard@redhat.com> + * Owen Taylor <otaylor@redhat.com> + * Shawn T. Amundson <amundson@gtk.org> +*/ + + +#ifndef __XLIB_RGB_H__ +#define __XLIB_RGB_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include <X11/Xlib.h> +#include <X11/Xutil.h> + +#include <glib.h> + +typedef struct _XlibRgbCmap XlibRgbCmap; + +struct _XlibRgbCmap { + unsigned int colors[256]; + unsigned char lut[256]; /* for 8-bit modes */ +}; + +void +xlib_rgb_init (Display *display, Screen *screen); +void +xlib_rgb_init_with_depth (Display *display, Screen *screen, int prefDepth); + +unsigned long +xlib_rgb_xpixel_from_rgb (guint32 rgb); + +void +xlib_rgb_gc_set_foreground (GC gc, guint32 rgb); + +void +xlib_rgb_gc_set_background (GC gc, guint32 rgb); + +typedef enum +{ + XLIB_RGB_DITHER_NONE, + XLIB_RGB_DITHER_NORMAL, + XLIB_RGB_DITHER_MAX +} XlibRgbDither; + +void +xlib_draw_rgb_image (Drawable drawable, + GC gc, + int x, + int y, + int width, + int height, + XlibRgbDither dith, + unsigned char *rgb_buf, + int rowstride); + +void +xlib_draw_rgb_image_dithalign (Drawable drawable, + GC gc, + int x, + int y, + int width, + int height, + XlibRgbDither dith, + unsigned char *rgb_buf, + int rowstride, + int xdith, + int ydith); + +void +xlib_draw_rgb_32_image (Drawable drawable, + GC gc, + int x, + int y, + int width, + int height, + XlibRgbDither dith, + unsigned char *buf, + int rowstride); + +void +xlib_draw_gray_image (Drawable drawable, + GC gc, + int x, + int y, + int width, + int height, + XlibRgbDither dith, + unsigned char *buf, + int rowstride); + +XlibRgbCmap * +xlib_rgb_cmap_new (guint32 *colors, int n_colors); + +void +xlib_rgb_cmap_free (XlibRgbCmap *cmap); + +void +xlib_draw_indexed_image (Drawable drawable, + GC gc, + int x, + int y, + int width, + int height, + XlibRgbDither dith, + unsigned char *buf, + int rowstride, + XlibRgbCmap *cmap); + +/* Below are some functions which are primarily useful for debugging + and experimentation. */ +Bool +xlib_rgb_ditherable (void); + +void +xlib_rgb_set_verbose (Bool verbose); + +/* experimental colormap stuff */ +void +xlib_rgb_set_install (Bool install); + +void +xlib_rgb_set_min_colors (int min_colors); + +Colormap +xlib_rgb_get_cmap (void); + +Visual * +xlib_rgb_get_visual (void); + +XVisualInfo * +xlib_rgb_get_visual_info (void); + +int +xlib_rgb_get_depth (void); + +Display * +xlib_rgb_get_display (void); + +Screen * +xlib_rgb_get_screen (void); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __XLIB_RGB_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h new file mode 100644 index 00000000..43347de6 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h @@ -0,0 +1,147 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ +/* GdkPixbuf library - Animation support + * + * Copyright (C) 1999 The Free Software Foundation + * + * Authors: Mark Crichton <crichton@gimp.org> + * Miguel de Icaza <miguel@gnu.org> + * Federico Mena-Quintero <federico@gimp.org> + * Havoc Pennington <hp@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GDK_PIXBUF_ANIMATION_H +#define GDK_PIXBUF_ANIMATION_H + +#include <glib.h> +#include <glib-object.h> +#include <gdk-pixbuf/gdk-pixbuf-core.h> + +G_BEGIN_DECLS + +/* Animation support */ + +typedef struct _GdkPixbufAnimation GdkPixbufAnimation; +typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter; + +#define GDK_TYPE_PIXBUF_ANIMATION (gdk_pixbuf_animation_get_type ()) +#define GDK_PIXBUF_ANIMATION(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_ANIMATION, GdkPixbufAnimation)) +#define GDK_IS_PIXBUF_ANIMATION(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_ANIMATION)) + +#define GDK_TYPE_PIXBUF_ANIMATION_ITER (gdk_pixbuf_animation_iter_get_type ()) +#define GDK_PIXBUF_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_ANIMATION_ITER, GdkPixbufAnimationIter)) +#define GDK_IS_PIXBUF_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_ANIMATION_ITER)) + +GType gdk_pixbuf_animation_get_type (void) G_GNUC_CONST; + +#ifdef G_OS_WIN32 +#define gdk_pixbuf_animation_new_from_file gdk_pixbuf_animation_new_from_file_utf8 +#endif + +GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename, + GError **error); + +#ifndef GDK_PIXBUF_DISABLE_DEPRECATED +GdkPixbufAnimation *gdk_pixbuf_animation_ref (GdkPixbufAnimation *animation); +void gdk_pixbuf_animation_unref (GdkPixbufAnimation *animation); +#endif + +int gdk_pixbuf_animation_get_width (GdkPixbufAnimation *animation); +int gdk_pixbuf_animation_get_height (GdkPixbufAnimation *animation); +gboolean gdk_pixbuf_animation_is_static_image (GdkPixbufAnimation *animation); +GdkPixbuf *gdk_pixbuf_animation_get_static_image (GdkPixbufAnimation *animation); + +GdkPixbufAnimationIter *gdk_pixbuf_animation_get_iter (GdkPixbufAnimation *animation, + const GTimeVal *start_time); +GType gdk_pixbuf_animation_iter_get_type (void) G_GNUC_CONST; +int gdk_pixbuf_animation_iter_get_delay_time (GdkPixbufAnimationIter *iter); +GdkPixbuf *gdk_pixbuf_animation_iter_get_pixbuf (GdkPixbufAnimationIter *iter); +gboolean gdk_pixbuf_animation_iter_on_currently_loading_frame (GdkPixbufAnimationIter *iter); +gboolean gdk_pixbuf_animation_iter_advance (GdkPixbufAnimationIter *iter, + const GTimeVal *current_time); + + +#ifdef GDK_PIXBUF_ENABLE_BACKEND + + + +typedef struct _GdkPixbufAnimationClass GdkPixbufAnimationClass; + +#define GDK_PIXBUF_ANIMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_ANIMATION, GdkPixbufAnimationClass)) +#define GDK_IS_PIXBUF_ANIMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_ANIMATION)) +#define GDK_PIXBUF_ANIMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_ANIMATION, GdkPixbufAnimationClass)) + +/* Private part of the GdkPixbufAnimation structure */ +struct _GdkPixbufAnimation { + GObject parent_instance; + +}; + +struct _GdkPixbufAnimationClass { + GObjectClass parent_class; + + /*< public >*/ + + gboolean (*is_static_image) (GdkPixbufAnimation *anim); + + GdkPixbuf* (*get_static_image) (GdkPixbufAnimation *anim); + + void (*get_size) (GdkPixbufAnimation *anim, + int *width, + int *height); + + GdkPixbufAnimationIter* (*get_iter) (GdkPixbufAnimation *anim, + const GTimeVal *start_time); + +}; + + + +typedef struct _GdkPixbufAnimationIterClass GdkPixbufAnimationIterClass; + +#define GDK_PIXBUF_ANIMATION_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_ANIMATION_ITER, GdkPixbufAnimationIterClass)) +#define GDK_IS_PIXBUF_ANIMATION_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_ANIMATION_ITER)) +#define GDK_PIXBUF_ANIMATION_ITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_ANIMATION_ITER, GdkPixbufAnimationIterClass)) + +struct _GdkPixbufAnimationIter { + GObject parent_instance; + +}; + +struct _GdkPixbufAnimationIterClass { + GObjectClass parent_class; + + /*< public >*/ + + int (*get_delay_time) (GdkPixbufAnimationIter *iter); + + GdkPixbuf* (*get_pixbuf) (GdkPixbufAnimationIter *iter); + + gboolean (*on_currently_loading_frame) (GdkPixbufAnimationIter *iter); + + gboolean (*advance) (GdkPixbufAnimationIter *iter, + const GTimeVal *current_time); +}; + + +GdkPixbufAnimation* gdk_pixbuf_non_anim_new (GdkPixbuf *pixbuf); + +#endif /* GDK_PIXBUF_ENABLE_BACKEND */ + +G_END_DECLS + +#endif /* GDK_PIXBUF_ANIMATION_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h new file mode 100644 index 00000000..4ae58952 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h @@ -0,0 +1,244 @@ +/* GdkPixbuf library - GdkPixbuf data structure + * + * Copyright (C) 2003 The Free Software Foundation + * + * Authors: Mark Crichton <crichton@gimp.org> + * Miguel de Icaza <miguel@gnu.org> + * Federico Mena-Quintero <federico@gimp.org> + * Havoc Pennington <hp@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GDK_PIXBUF_CORE_H +#define GDK_PIXBUF_CORE_H + +#include <glib.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +/* Alpha compositing mode */ +typedef enum +{ + GDK_PIXBUF_ALPHA_BILEVEL, + GDK_PIXBUF_ALPHA_FULL +} GdkPixbufAlphaMode; + +/* Color spaces; right now only RGB is supported. + * Note that these values are encoded in inline pixbufs + * as ints, so don't reorder them + */ +typedef enum { + GDK_COLORSPACE_RGB +} GdkColorspace; + +/* All of these are opaque structures */ +typedef struct _GdkPixbuf GdkPixbuf; + +#define GDK_TYPE_PIXBUF (gdk_pixbuf_get_type ()) +#define GDK_PIXBUF(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF, GdkPixbuf)) +#define GDK_IS_PIXBUF(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF)) + + +/* Handler that must free the pixel array */ +typedef void (* GdkPixbufDestroyNotify) (guchar *pixels, gpointer data); + +#define GDK_PIXBUF_ERROR gdk_pixbuf_error_quark () + +typedef enum { + /* image data hosed */ + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, + /* no mem to load image */ + GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, + /* bad option passed to save routine */ + GDK_PIXBUF_ERROR_BAD_OPTION, + /* unsupported image type (sort of an ENOSYS) */ + GDK_PIXBUF_ERROR_UNKNOWN_TYPE, + /* unsupported operation (load, save) for image type */ + GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION, + GDK_PIXBUF_ERROR_FAILED +} GdkPixbufError; + +GQuark gdk_pixbuf_error_quark (void); + + + +GType gdk_pixbuf_get_type (void) G_GNUC_CONST; + +/* Reference counting */ + +#ifndef GDK_PIXBUF_DISABLE_DEPRECATED +GdkPixbuf *gdk_pixbuf_ref (GdkPixbuf *pixbuf); +void gdk_pixbuf_unref (GdkPixbuf *pixbuf); +#endif + +/* GdkPixbuf accessors */ + +GdkColorspace gdk_pixbuf_get_colorspace (const GdkPixbuf *pixbuf); +int gdk_pixbuf_get_n_channels (const GdkPixbuf *pixbuf); +gboolean gdk_pixbuf_get_has_alpha (const GdkPixbuf *pixbuf); +int gdk_pixbuf_get_bits_per_sample (const GdkPixbuf *pixbuf); +guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf); +int gdk_pixbuf_get_width (const GdkPixbuf *pixbuf); +int gdk_pixbuf_get_height (const GdkPixbuf *pixbuf); +int gdk_pixbuf_get_rowstride (const GdkPixbuf *pixbuf); + + + +/* Create a blank pixbuf with an optimal rowstride and a new buffer */ +GdkPixbuf *gdk_pixbuf_new (GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, + int width, int height); + +/* Copy a pixbuf */ + +GdkPixbuf *gdk_pixbuf_copy (const GdkPixbuf *pixbuf); + +/* Create a pixbuf which points to the pixels of another pixbuf */ +GdkPixbuf *gdk_pixbuf_new_subpixbuf (GdkPixbuf *src_pixbuf, + int src_x, + int src_y, + int width, + int height); + +/* Simple loading */ + +#ifdef G_OS_WIN32 +/* DLL ABI stability hack. */ +#define gdk_pixbuf_new_from_file gdk_pixbuf_new_from_file_utf8 +#define gdk_pixbuf_new_from_file_at_size gdk_pixbuf_new_from_file_at_size_utf8 +#define gdk_pixbuf_new_from_file_at_scale gdk_pixbuf_new_from_file_at_scale_utf8 +#endif + +GdkPixbuf *gdk_pixbuf_new_from_file (const char *filename, + GError **error); +GdkPixbuf *gdk_pixbuf_new_from_file_at_size (const char *filename, + int width, + int height, + GError **error); +GdkPixbuf *gdk_pixbuf_new_from_file_at_scale (const char *filename, + int width, + int height, + gboolean preserve_aspect_ratio, + GError **error); + +GdkPixbuf *gdk_pixbuf_new_from_data (const guchar *data, + GdkColorspace colorspace, + gboolean has_alpha, + int bits_per_sample, + int width, int height, + int rowstride, + GdkPixbufDestroyNotify destroy_fn, + gpointer destroy_fn_data); + +GdkPixbuf *gdk_pixbuf_new_from_xpm_data (const char **data); +GdkPixbuf* gdk_pixbuf_new_from_inline (gint data_length, + const guint8 *data, + gboolean copy_pixels, + GError **error); + +/* Mutations */ +void gdk_pixbuf_fill (GdkPixbuf *pixbuf, + guint32 pixel); + +/* Saving */ + +#ifdef G_OS_WIN32 +/* DLL ABI stability hack. */ +#define gdk_pixbuf_save gdk_pixbuf_save_utf8 +#define gdk_pixbuf_savev gdk_pixbuf_savev_utf8 +#endif + +gboolean gdk_pixbuf_save (GdkPixbuf *pixbuf, + const char *filename, + const char *type, + GError **error, + ...) G_GNUC_NULL_TERMINATED; + +gboolean gdk_pixbuf_savev (GdkPixbuf *pixbuf, + const char *filename, + const char *type, + char **option_keys, + char **option_values, + GError **error); + +/* Saving to a callback function */ + +typedef gboolean (*GdkPixbufSaveFunc) (const gchar *buf, + gsize count, + GError **error, + gpointer data); + +gboolean gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf, + GdkPixbufSaveFunc save_func, + gpointer user_data, + const char *type, + GError **error, + ...) G_GNUC_NULL_TERMINATED; + +gboolean gdk_pixbuf_save_to_callbackv (GdkPixbuf *pixbuf, + GdkPixbufSaveFunc save_func, + gpointer user_data, + const char *type, + char **option_keys, + char **option_values, + GError **error); + +/* Saving into a newly allocated char array */ + +gboolean gdk_pixbuf_save_to_buffer (GdkPixbuf *pixbuf, + gchar **buffer, + gsize *buffer_size, + const char *type, + GError **error, + ...) G_GNUC_NULL_TERMINATED; + +gboolean gdk_pixbuf_save_to_bufferv (GdkPixbuf *pixbuf, + gchar **buffer, + gsize *buffer_size, + const char *type, + char **option_keys, + char **option_values, + GError **error); + +/* Adding an alpha channel */ +GdkPixbuf *gdk_pixbuf_add_alpha (const GdkPixbuf *pixbuf, gboolean substitute_color, + guchar r, guchar g, guchar b); + +/* Copy an area of a pixbuf onto another one */ +void gdk_pixbuf_copy_area (const GdkPixbuf *src_pixbuf, + int src_x, int src_y, + int width, int height, + GdkPixbuf *dest_pixbuf, + int dest_x, int dest_y); + +/* Brighten/darken and optionally make it pixelated-looking */ +void gdk_pixbuf_saturate_and_pixelate (const GdkPixbuf *src, + GdkPixbuf *dest, + gfloat saturation, + gboolean pixelate); + +/* Transform an image to agree with its embedded orientation option / tag */ +GdkPixbuf *gdk_pixbuf_apply_embedded_orientation (GdkPixbuf *src); + +G_CONST_RETURN gchar * gdk_pixbuf_get_option (GdkPixbuf *pixbuf, + const gchar *key); + + +G_END_DECLS + + +#endif /* GDK_PIXBUF_CORE_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h new file mode 100644 index 00000000..f2199cc3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h @@ -0,0 +1,27 @@ + +/* Generated data (by glib-mkenums) */ + +#ifndef __GDK_PIXBUF_ENUM_TYPES_H__ +#define __GDK_PIXBUF_ENUM_TYPES_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS +/* enumerations from "gdk-pixbuf-core.h" */ +GType gdk_pixbuf_alpha_mode_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_PIXBUF_ALPHA_MODE (gdk_pixbuf_alpha_mode_get_type()) +GType gdk_colorspace_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_COLORSPACE (gdk_colorspace_get_type()) +GType gdk_pixbuf_error_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_PIXBUF_ERROR (gdk_pixbuf_error_get_type()) +/* enumerations from "gdk-pixbuf-transform.h" */ +GType gdk_interp_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_INTERP_TYPE (gdk_interp_type_get_type()) +GType gdk_pixbuf_rotation_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_PIXBUF_ROTATION (gdk_pixbuf_rotation_get_type()) +G_END_DECLS + +#endif /* __GDK_PIXBUF_ENUM_TYPES_H__ */ + +/* Generated data ends here */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h new file mode 100644 index 00000000..794ba221 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h @@ -0,0 +1,41 @@ +#ifndef GDK_PIXBUF_FEATURES_H +#define GDK_PIXBUF_FEATURES_H 1 + +#define GDK_PIXBUF_MAJOR (2) +#define GDK_PIXBUF_MINOR (12) +#define GDK_PIXBUF_MICRO (12) +#define GDK_PIXBUF_VERSION "2.12.12" + +/* We prefix variable declarations so they can + * properly get exported/imported from Windows DLLs. + */ +#ifndef GDK_PIXBUF_VAR +# ifdef G_PLATFORM_WIN32 +# ifdef GDK_PIXBUF_STATIC_COMPILATION +# define GDK_PIXBUF_VAR extern +# else /* !GDK_PIXBUF_STATIC_COMPILATION */ +# ifdef GDK_PIXBUF_COMPILATION +# ifdef DLL_EXPORT +# define GDK_PIXBUF_VAR __declspec(dllexport) +# else /* !DLL_EXPORT */ +# define GDK_PIXBUF_VAR extern +# endif /* !DLL_EXPORT */ +# else /* !GDK_PIXBUF_COMPILATION */ +# define GDK_PIXBUF_VAR extern __declspec(dllimport) +# endif /* !GDK_PIXBUF_COMPILATION */ +# endif /* !GDK_PIXBUF_STATIC_COMPILATION */ +# else /* !G_PLATFORM_WIN32 */ +# ifndef GDK_PIXBUF_COMPILATION +# define GDK_PIXBUF_VAR extern +# else +# define GDK_PIXBUF_VAR +# endif /* !GDK_PIXBUF_COMPILATION */ +# endif /* !G_PLATFORM_WIN32 */ +#endif /* GDK_PIXBUF_VAR */ + +GDK_PIXBUF_VAR const guint gdk_pixbuf_major_version; +GDK_PIXBUF_VAR const guint gdk_pixbuf_minor_version; +GDK_PIXBUF_VAR const guint gdk_pixbuf_micro_version; +GDK_PIXBUF_VAR const char *gdk_pixbuf_version; + +#endif diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h new file mode 100644 index 00000000..3fe9226c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h @@ -0,0 +1,168 @@ +/* GdkPixbuf library - Io handling. This is an internal header for + * GdkPixbuf. You should never use it unless you are doing development for + * GdkPixbuf itself. + * + * Copyright (C) 1999 The Free Software Foundation + * + * Authors: Mark Crichton <crichton@gimp.org> + * Miguel de Icaza <miguel@gnu.org> + * Federico Mena-Quintero <federico@gimp.org> + * Jonathan Blandford <jrb@redhat.com> + * Michael Fulbright <drmike@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GDK_PIXBUF_IO_H +#define GDK_PIXBUF_IO_H + +#include <stdio.h> +#include <glib.h> +#include <gmodule.h> +#include <gdk-pixbuf/gdk-pixbuf-core.h> +#include <gdk-pixbuf/gdk-pixbuf-animation.h> + +G_BEGIN_DECLS + +typedef struct _GdkPixbufFormat GdkPixbufFormat; + +GSList *gdk_pixbuf_get_formats (void); +gchar *gdk_pixbuf_format_get_name (GdkPixbufFormat *format); +gchar *gdk_pixbuf_format_get_description (GdkPixbufFormat *format); +gchar **gdk_pixbuf_format_get_mime_types (GdkPixbufFormat *format); +gchar **gdk_pixbuf_format_get_extensions (GdkPixbufFormat *format); +gboolean gdk_pixbuf_format_is_writable (GdkPixbufFormat *format); +gboolean gdk_pixbuf_format_is_scalable (GdkPixbufFormat *format); +gboolean gdk_pixbuf_format_is_disabled (GdkPixbufFormat *format); +void gdk_pixbuf_format_set_disabled (GdkPixbufFormat *format, + gboolean disabled); +gchar *gdk_pixbuf_format_get_license (GdkPixbufFormat *format); + +GdkPixbufFormat *gdk_pixbuf_get_file_info (const gchar *filename, + gint *width, + gint *height); + +#ifdef GDK_PIXBUF_ENABLE_BACKEND + + + +typedef void (* GdkPixbufModuleSizeFunc) (gint *width, + gint *height, + gpointer user_data); + +typedef void (* GdkPixbufModulePreparedFunc) (GdkPixbuf *pixbuf, + GdkPixbufAnimation *anim, + gpointer user_data); +typedef void (* GdkPixbufModuleUpdatedFunc) (GdkPixbuf *pixbuf, + int x, + int y, + int width, + int height, + gpointer user_data); + +typedef struct _GdkPixbufModulePattern GdkPixbufModulePattern; +struct _GdkPixbufModulePattern { + char *prefix; + char *mask; + int relevance; +}; + +typedef struct _GdkPixbufModule GdkPixbufModule; +struct _GdkPixbufModule { + char *module_name; + char *module_path; + GModule *module; + GdkPixbufFormat *info; + + GdkPixbuf *(* load) (FILE *f, + GError **error); + GdkPixbuf *(* load_xpm_data) (const char **data); + + /* Incremental loading */ + + gpointer (* begin_load) (GdkPixbufModuleSizeFunc size_func, + GdkPixbufModulePreparedFunc prepare_func, + GdkPixbufModuleUpdatedFunc update_func, + gpointer user_data, + GError **error); + gboolean (* stop_load) (gpointer context, + GError **error); + gboolean (* load_increment) (gpointer context, + const guchar *buf, + guint size, + GError **error); + + /* Animation loading */ + GdkPixbufAnimation *(* load_animation) (FILE *f, + GError **error); + + /* Saving */ + gboolean (* save) (FILE *f, + GdkPixbuf *pixbuf, + gchar **param_keys, + gchar **param_values, + GError **error); + + gboolean (*save_to_callback) (GdkPixbufSaveFunc save_func, + gpointer user_data, + GdkPixbuf *pixbuf, + gchar **option_keys, + gchar **option_values, + GError **error); + + /*< private >*/ + void (*_reserved1) (void); + void (*_reserved2) (void); + void (*_reserved3) (void); + void (*_reserved4) (void); + void (*_reserved5) (void); + +}; + +typedef void (* GdkPixbufModuleFillVtableFunc) (GdkPixbufModule *module); +typedef void (* GdkPixbufModuleFillInfoFunc) (GdkPixbufFormat *info); + +/* key/value pairs that can be attached by the pixbuf loader */ + +gboolean gdk_pixbuf_set_option (GdkPixbuf *pixbuf, + const gchar *key, + const gchar *value); + +typedef enum /*< skip >*/ +{ + GDK_PIXBUF_FORMAT_WRITABLE = 1 << 0, + GDK_PIXBUF_FORMAT_SCALABLE = 1 << 1, + GDK_PIXBUF_FORMAT_THREADSAFE = 1 << 2 +} GdkPixbufFormatFlags; + +struct _GdkPixbufFormat { + gchar *name; + GdkPixbufModulePattern *signature; + gchar *domain; + gchar *description; + gchar **mime_types; + gchar **extensions; + guint32 flags; + gboolean disabled; + gchar *license; +}; + + +#endif /* GDK_PIXBUF_ENABLE_BACKEND */ + +G_END_DECLS + +#endif /* GDK_PIXBUF_IO_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h new file mode 100644 index 00000000..d9b2b7dc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h @@ -0,0 +1,98 @@ +/* GdkPixbuf library - Progressive loader object + * + * Copyright (C) 1999 The Free Software Foundation + * + * Authors: Mark Crichton <crichton@gimp.org> + * Miguel de Icaza <miguel@gnu.org> + * Federico Mena-Quintero <federico@gimp.org> + * Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GDK_PIXBUF_LOADER_H +#define GDK_PIXBUF_LOADER_H + +#include <glib.h> +#include <glib-object.h> +#include <gdk-pixbuf/gdk-pixbuf-core.h> +#include <gdk-pixbuf/gdk-pixbuf-animation.h> +#include <gdk-pixbuf/gdk-pixbuf-io.h> + +G_BEGIN_DECLS + +#define GDK_TYPE_PIXBUF_LOADER (gdk_pixbuf_loader_get_type ()) +#define GDK_PIXBUF_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoader)) +#define GDK_PIXBUF_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoaderClass)) +#define GDK_IS_PIXBUF_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_PIXBUF_LOADER)) +#define GDK_IS_PIXBUF_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_LOADER)) +#define GDK_PIXBUF_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoaderClass)) + + +typedef struct _GdkPixbufLoader GdkPixbufLoader; +struct _GdkPixbufLoader +{ + GObject parent_instance; + + /*< private >*/ + gpointer priv; +}; + +typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass; +struct _GdkPixbufLoaderClass +{ + GObjectClass parent_class; + + void (*size_prepared) (GdkPixbufLoader *loader, + int width, + int height); + + void (*area_prepared) (GdkPixbufLoader *loader); + + /* Last known frame needs a redraw for x, y, width, height */ + void (*area_updated) (GdkPixbufLoader *loader, + int x, + int y, + int width, + int height); + + void (*closed) (GdkPixbufLoader *loader); +}; + +GType gdk_pixbuf_loader_get_type (void) G_GNUC_CONST; +GdkPixbufLoader * gdk_pixbuf_loader_new (void); +GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type, + GError **error); +GdkPixbufLoader * gdk_pixbuf_loader_new_with_mime_type (const char *mime_type, + GError **error); +void gdk_pixbuf_loader_set_size (GdkPixbufLoader *loader, + int width, + int height); +gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader, + const guchar *buf, + gsize count, + GError **error); +GdkPixbuf * gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader); +GdkPixbufAnimation * gdk_pixbuf_loader_get_animation (GdkPixbufLoader *loader); +gboolean gdk_pixbuf_loader_close (GdkPixbufLoader *loader, + GError **error); +GdkPixbufFormat *gdk_pixbuf_loader_get_format (GdkPixbufLoader *loader); + +G_END_DECLS + +#endif + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h new file mode 100644 index 00000000..64222c2c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h @@ -0,0 +1,34 @@ + +#ifndef ___gdk_pixbuf_marshal_MARSHAL_H__ +#define ___gdk_pixbuf_marshal_MARSHAL_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +/* VOID:VOID (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gdk-pixbuf/gdk-pixbuf-marshal.list:25) */ +#define _gdk_pixbuf_marshal_VOID__VOID g_cclosure_marshal_VOID__VOID + +/* VOID:INT,INT,INT,INT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gdk-pixbuf/gdk-pixbuf-marshal.list:26) */ +extern void _gdk_pixbuf_marshal_VOID__INT_INT_INT_INT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* VOID:POINTER (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gdk-pixbuf/gdk-pixbuf-marshal.list:27) */ +#define _gdk_pixbuf_marshal_VOID__POINTER g_cclosure_marshal_VOID__POINTER + +/* VOID:INT,INT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gdk-pixbuf/gdk-pixbuf-marshal.list:28) */ +extern void _gdk_pixbuf_marshal_VOID__INT_INT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +G_END_DECLS + +#endif /* ___gdk_pixbuf_marshal_MARSHAL_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h new file mode 100644 index 00000000..d2624042 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h @@ -0,0 +1,54 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ +/* GdkPixbuf library - Simple frame-based animations + * + * Copyright (C) 2004 Dom Lachowicz + * + * Authors: Dom Lachowicz <cinamod@hotmail.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GDK_PIXBUF_SIMPLE_ANIM_H +#define GDK_PIXBUF_SIMPLE_ANIM_H + +#include <gdk-pixbuf/gdk-pixbuf-animation.h> + +G_BEGIN_DECLS + +typedef struct _GdkPixbufSimpleAnim GdkPixbufSimpleAnim; +typedef struct _GdkPixbufSimpleAnimClass GdkPixbufSimpleAnimClass; + +#define GDK_TYPE_PIXBUF_SIMPLE_ANIM (gdk_pixbuf_simple_anim_get_type ()) +#define GDK_PIXBUF_SIMPLE_ANIM(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnim)) +#define GDK_IS_PIXBUF_SIMPLE_ANIM(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_SIMPLE_ANIM)) + +#define GDK_PIXBUF_SIMPLE_ANIM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnimClass)) +#define GDK_IS_PIXBUF_SIMPLE_ANIM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_SIMPLE_ANIM)) +#define GDK_PIXBUF_SIMPLE_ANIM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_SIMPLE_ANIM, GdkPixbufSimpleAnimClass)) + +GType gdk_pixbuf_simple_anim_get_type (void) G_GNUC_CONST; +GType gdk_pixbuf_simple_anim_iter_get_type (void) G_GNUC_CONST; + +GdkPixbufSimpleAnim *gdk_pixbuf_simple_anim_new (gint width, + gint height, + gfloat rate); +void gdk_pixbuf_simple_anim_add_frame (GdkPixbufSimpleAnim *animation, + GdkPixbuf *pixbuf); + +G_END_DECLS + + +#endif /* GDK_PIXBUF_SIMPLE_ANIM_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h new file mode 100644 index 00000000..6a1bb1e5 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h @@ -0,0 +1,115 @@ +/* GdkPixbuf library - transformations + * + * Copyright (C) 2003 The Free Software Foundation + * + * Authors: Mark Crichton <crichton@gimp.org> + * Miguel de Icaza <miguel@gnu.org> + * Federico Mena-Quintero <federico@gimp.org> + * Havoc Pennington <hp@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GDK_PIXBUF_TRANSFORM_H +#define GDK_PIXBUF_TRANSFORM_H + +#include <glib.h> +#include <gdk-pixbuf/gdk-pixbuf-core.h> + + +G_BEGIN_DECLS + +/* Scaling */ + +/* Interpolation modes */ +typedef enum { + GDK_INTERP_NEAREST, + GDK_INTERP_TILES, + GDK_INTERP_BILINEAR, + GDK_INTERP_HYPER +} GdkInterpType; + +typedef enum { + GDK_PIXBUF_ROTATE_NONE = 0, + GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90, + GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180, + GDK_PIXBUF_ROTATE_CLOCKWISE = 270 +} GdkPixbufRotation; + +void gdk_pixbuf_scale (const GdkPixbuf *src, + GdkPixbuf *dest, + int dest_x, + int dest_y, + int dest_width, + int dest_height, + double offset_x, + double offset_y, + double scale_x, + double scale_y, + GdkInterpType interp_type); +void gdk_pixbuf_composite (const GdkPixbuf *src, + GdkPixbuf *dest, + int dest_x, + int dest_y, + int dest_width, + int dest_height, + double offset_x, + double offset_y, + double scale_x, + double scale_y, + GdkInterpType interp_type, + int overall_alpha); +void gdk_pixbuf_composite_color (const GdkPixbuf *src, + GdkPixbuf *dest, + int dest_x, + int dest_y, + int dest_width, + int dest_height, + double offset_x, + double offset_y, + double scale_x, + double scale_y, + GdkInterpType interp_type, + int overall_alpha, + int check_x, + int check_y, + int check_size, + guint32 color1, + guint32 color2); + +GdkPixbuf *gdk_pixbuf_scale_simple (const GdkPixbuf *src, + int dest_width, + int dest_height, + GdkInterpType interp_type); + +GdkPixbuf *gdk_pixbuf_composite_color_simple (const GdkPixbuf *src, + int dest_width, + int dest_height, + GdkInterpType interp_type, + int overall_alpha, + int check_size, + guint32 color1, + guint32 color2); + +GdkPixbuf *gdk_pixbuf_rotate_simple (const GdkPixbuf *src, + GdkPixbufRotation angle); +GdkPixbuf *gdk_pixbuf_flip (const GdkPixbuf *src, + gboolean horizontal); + +G_END_DECLS + + +#endif /* GDK_PIXBUF_TRANSFORM_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h new file mode 100644 index 00000000..0d77b2bf --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h @@ -0,0 +1,42 @@ +/* GdkPixbuf library - Main header file + * + * Copyright (C) 1999 The Free Software Foundation + * + * Authors: Mark Crichton <crichton@gimp.org> + * Miguel de Icaza <miguel@gnu.org> + * Federico Mena-Quintero <federico@gimp.org> + * Havoc Pennington <hp@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GDK_PIXBUF_H +#define GDK_PIXBUF_H + +#include <glib.h> +#include <gdk-pixbuf/gdk-pixbuf-features.h> +#include <glib-object.h> + +#include <gdk-pixbuf/gdk-pixbuf-core.h> +#include <gdk-pixbuf/gdk-pixbuf-transform.h> +#include <gdk-pixbuf/gdk-pixbuf-animation.h> +#include <gdk-pixbuf/gdk-pixbuf-simple-anim.h> +#include <gdk-pixbuf/gdk-pixbuf-io.h> +#include <gdk-pixbuf/gdk-pixbuf-loader.h> +#include <gdk-pixbuf/gdk-pixbuf-enum-types.h> + + +#endif /* GDK_PIXBUF_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixdata.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixdata.h new file mode 100644 index 00000000..eb85034b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixdata.h @@ -0,0 +1,170 @@ +/* GdkPixbuf library - GdkPixdata - functions for inlined pixbuf handling + * Copyright (C) 1999, 2001 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GDK_PIXDATA_H__ +#define __GDK_PIXDATA_H__ + +#include <gdk-pixbuf/gdk-pixbuf.h> + +G_BEGIN_DECLS + +/** + * GDK_PIXBUF_MAGIC_NUMBER: + * + * Magic number for #GdkPixdata structures. + **/ +#define GDK_PIXBUF_MAGIC_NUMBER (0x47646b50) /* 'GdkP' */ + +/** + * GdkPixdataType: + * @GDK_PIXDATA_COLOR_TYPE_RGB: each pixel has red, green and blue samples. + * @GDK_PIXDATA_COLOR_TYPE_RGBA: each pixel has red, green and blue samples + * and an alpha value. + * @GDK_PIXDATA_COLOR_TYPE_MASK: mask for the colortype flags of the enum. + * @GDK_PIXDATA_SAMPLE_WIDTH_8: each sample has 8 bits. + * @GDK_PIXDATA_SAMPLE_WIDTH_MASK: mask for the sample width flags of the enum. + * @GDK_PIXDATA_ENCODING_RAW: the pixel data is in raw form. + * @GDK_PIXDATA_ENCODING_RLE: the pixel data is run-length encoded. Runs may + * be up to 127 bytes long; their length is stored in a single byte + * preceding the pixel data for the run. If a run is constant, its length + * byte has the high bit set and the pixel data consists of a single pixel + * which must be repeated. + * @GDK_PIXDATA_ENCODING_MASK: mask for the encoding flags of the enum. + * + * An enumeration containing three sets of flags for a #GdkPixdata struct: + * one for the used colorspace, one for the width of the samples and one + * for the encoding of the pixel data. + **/ +typedef enum +{ + /* colorspace + alpha */ + GDK_PIXDATA_COLOR_TYPE_RGB = 0x01, + GDK_PIXDATA_COLOR_TYPE_RGBA = 0x02, + GDK_PIXDATA_COLOR_TYPE_MASK = 0xff, + /* width, support 8bits only currently */ + GDK_PIXDATA_SAMPLE_WIDTH_8 = 0x01 << 16, + GDK_PIXDATA_SAMPLE_WIDTH_MASK = 0x0f << 16, + /* encoding */ + GDK_PIXDATA_ENCODING_RAW = 0x01 << 24, + GDK_PIXDATA_ENCODING_RLE = 0x02 << 24, + GDK_PIXDATA_ENCODING_MASK = 0x0f << 24 +} GdkPixdataType; + +/** + * GdkPixdata: + * @magic: magic number. A valid #GdkPixdata structure must have + * #GDK_PIXBUF_MAGIC_NUMBER here. + * @length: less than 1 to disable length checks, otherwise + * #GDK_PIXDATA_HEADER_LENGTH + length of @pixel_data. + * @pixdata_type: information about colorspace, sample width and + * encoding, in a #GdkPixdataType. + * @rowstride: Distance in bytes between rows. + * @width: Width of the image in pixels. + * @height: Height of the image in pixels. + * @pixel_data: @width x @height pixels, encoded according to @pixdata_type + * and @rowstride. + * + * A #GdkPixdata contains pixbuf information in a form suitable for + * serialization and streaming. + **/ +typedef struct _GdkPixdata GdkPixdata; +struct _GdkPixdata +{ + guint32 magic; /* GDK_PIXBUF_MAGIC_NUMBER */ + gint32 length; /* <1 to disable length checks, otherwise: + * GDK_PIXDATA_HEADER_LENGTH + pixel_data length + */ + guint32 pixdata_type; /* GdkPixdataType */ + guint32 rowstride; + guint32 width; + guint32 height; + guint8 *pixel_data; +}; + +/** + * GDK_PIXDATA_HEADER_LENGTH: + * + * The length of a #GdkPixdata structure without the @pixel_data pointer. + **/ +#define GDK_PIXDATA_HEADER_LENGTH (4 + 4 + 4 + 4 + 4 + 4) + +/* the returned stream is plain htonl of GdkPixdata members + pixel_data */ +guint8* gdk_pixdata_serialize (const GdkPixdata *pixdata, + guint *stream_length_p); +gboolean gdk_pixdata_deserialize (GdkPixdata *pixdata, + guint stream_length, + const guint8 *stream, + GError **error); +gpointer gdk_pixdata_from_pixbuf (GdkPixdata *pixdata, + const GdkPixbuf *pixbuf, + gboolean use_rle); +GdkPixbuf* gdk_pixbuf_from_pixdata (const GdkPixdata *pixdata, + gboolean copy_pixels, + GError **error); +/** + * GdkPixdataDumpType: + * @GDK_PIXDATA_DUMP_PIXDATA_STREAM: Generate pixbuf data stream (a single + * string containing a serialized #GdkPixdata structure in network byte + * order). + * @GDK_PIXDATA_DUMP_PIXDATA_STRUCT: Generate #GdkPixdata structure (needs + * the #GdkPixdata structure definition from gdk-pixdata.h). + * @GDK_PIXDATA_DUMP_MACROS: Generate <function>*_ROWSTRIDE</function>, + * <function>*_WIDTH</function>, <function>*_HEIGHT</function>, + * <function>*_BYTES_PER_PIXEL</function> and + * <function>*_RLE_PIXEL_DATA</function> or <function>*_PIXEL_DATA</function> + * macro definitions for the image. + * @GDK_PIXDATA_DUMP_GTYPES: Generate GLib data types instead of + * standard C data types. + * @GDK_PIXDATA_DUMP_CTYPES: Generate standard C data types instead of + * GLib data types. + * @GDK_PIXDATA_DUMP_STATIC: Generate static symbols. + * @GDK_PIXDATA_DUMP_CONST: Generate const symbols. + * @GDK_PIXDATA_DUMP_RLE_DECODER: Provide a <function>*_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp)</function> + * macro definition to decode run-length encoded image data. + * + * An enumeration which is used by gdk_pixdata_to_csource() to + * determine the form of C source to be generated. The three values + * @GDK_PIXDATA_DUMP_PIXDATA_STREAM, @GDK_PIXDATA_DUMP_PIXDATA_STRUCT + * and @GDK_PIXDATA_DUMP_MACROS are mutually exclusive, as are + * @GDK_PIXBUF_DUMP_GTYPES and @GDK_PIXBUF_DUMP_CTYPES. The remaining + * elements are optional flags that can be freely added. + **/ +typedef enum +{ + /* type of source to save */ + GDK_PIXDATA_DUMP_PIXDATA_STREAM = 0, + GDK_PIXDATA_DUMP_PIXDATA_STRUCT = 1, + GDK_PIXDATA_DUMP_MACROS = 2, + /* type of variables to use */ + GDK_PIXDATA_DUMP_GTYPES = 0, + GDK_PIXDATA_DUMP_CTYPES = 1 << 8, + GDK_PIXDATA_DUMP_STATIC = 1 << 9, + GDK_PIXDATA_DUMP_CONST = 1 << 10, + /* save RLE decoder macro? */ + GDK_PIXDATA_DUMP_RLE_DECODER = 1 << 16 +} GdkPixdataDumpType; + + +GString* gdk_pixdata_to_csource (GdkPixdata *pixdata, + const gchar *name, + GdkPixdataDumpType dump_type); + + +G_END_DECLS + +#endif /* __GDK_PIXDATA_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdk.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdk.h new file mode 100644 index 00000000..d84d304a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdk.h @@ -0,0 +1,230 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_H__ +#define __GDK_H__ + +#include <gdk/gdkcairo.h> +#include <gdk/gdkcolor.h> +#include <gdk/gdkcursor.h> +#include <gdk/gdkdisplay.h> +#include <gdk/gdkdnd.h> +#include <gdk/gdkdrawable.h> +#include <gdk/gdkenumtypes.h> +#include <gdk/gdkevents.h> +#include <gdk/gdkfont.h> +#include <gdk/gdkgc.h> +#include <gdk/gdkimage.h> +#include <gdk/gdkinput.h> +#include <gdk/gdkkeys.h> +#include <gdk/gdkdisplaymanager.h> +#include <gdk/gdkpango.h> +#include <gdk/gdkpixbuf.h> +#include <gdk/gdkpixmap.h> +#include <gdk/gdkproperty.h> +#include <gdk/gdkregion.h> +#include <gdk/gdkrgb.h> +#include <gdk/gdkscreen.h> +#include <gdk/gdkselection.h> +#include <gdk/gdkspawn.h> +#include <gdk/gdktypes.h> +#include <gdk/gdkvisual.h> +#include <gdk/gdkwindow.h> + +G_BEGIN_DECLS + + +/* Initialization, exit and events + */ +#define GDK_PRIORITY_EVENTS (G_PRIORITY_DEFAULT) +void gdk_parse_args (gint *argc, + gchar ***argv); +void gdk_init (gint *argc, + gchar ***argv); +gboolean gdk_init_check (gint *argc, + gchar ***argv); +void gdk_add_option_entries_libgtk_only (GOptionGroup *group); +void gdk_pre_parse_libgtk_only (void); + +#ifndef GDK_DISABLE_DEPRECATED +void gdk_exit (gint error_code); +#endif /* GDK_DISABLE_DEPRECATED */ +gchar* gdk_set_locale (void); + +G_CONST_RETURN char *gdk_get_program_class (void); +void gdk_set_program_class (const char *program_class); + +/* Push and pop error handlers for X errors + */ +void gdk_error_trap_push (void); +gint gdk_error_trap_pop (void); + +#ifndef GDK_DISABLE_DEPRECATED +void gdk_set_use_xshm (gboolean use_xshm); +gboolean gdk_get_use_xshm (void); +#endif /* GDK_DISABLE_DEPRECATED */ + +gchar* gdk_get_display (void); +G_CONST_RETURN gchar* gdk_get_display_arg_name (void); + +#if !defined (GDK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) +/* Used by gtk_input_add_full () */ +gint gdk_input_add_full (gint source, + GdkInputCondition condition, + GdkInputFunction function, + gpointer data, + GdkDestroyNotify destroy); +#endif /* !GDK_DISABLE_DEPRECATED || GTK_COMPILATION */ +#ifndef GDK_DISABLE_DEPRECATED +gint gdk_input_add (gint source, + GdkInputCondition condition, + GdkInputFunction function, + gpointer data); +void gdk_input_remove (gint tag); +#endif /* GDK_DISABLE_DEPRECATED */ + +GdkGrabStatus gdk_pointer_grab (GdkWindow *window, + gboolean owner_events, + GdkEventMask event_mask, + GdkWindow *confine_to, + GdkCursor *cursor, + guint32 time_); +GdkGrabStatus gdk_keyboard_grab (GdkWindow *window, + gboolean owner_events, + guint32 time_); + +gboolean gdk_pointer_grab_info_libgtk_only (GdkDisplay *display, + GdkWindow **grab_window, + gboolean *owner_events); +gboolean gdk_keyboard_grab_info_libgtk_only (GdkDisplay *display, + GdkWindow **grab_window, + gboolean *owner_events); + +#ifndef GDK_MULTIHEAD_SAFE +void gdk_pointer_ungrab (guint32 time_); +void gdk_keyboard_ungrab (guint32 time_); +gboolean gdk_pointer_is_grabbed (void); + +gint gdk_screen_width (void) G_GNUC_CONST; +gint gdk_screen_height (void) G_GNUC_CONST; + +gint gdk_screen_width_mm (void) G_GNUC_CONST; +gint gdk_screen_height_mm (void) G_GNUC_CONST; + +void gdk_beep (void); +#endif /* GDK_MULTIHEAD_SAFE */ + +void gdk_flush (void); + +#ifndef GDK_MULTIHEAD_SAFE +void gdk_set_double_click_time (guint msec); +#endif + +/* Rectangle utilities + */ +gboolean gdk_rectangle_intersect (GdkRectangle *src1, + GdkRectangle *src2, + GdkRectangle *dest); +void gdk_rectangle_union (GdkRectangle *src1, + GdkRectangle *src2, + GdkRectangle *dest); + +GType gdk_rectangle_get_type (void) G_GNUC_CONST; + +#define GDK_TYPE_RECTANGLE (gdk_rectangle_get_type ()) + +/* Conversion functions between wide char and multibyte strings. + */ +#ifndef GDK_DISABLE_DEPRECATED +gchar *gdk_wcstombs (const GdkWChar *src); +gint gdk_mbstowcs (GdkWChar *dest, + const gchar *src, + gint dest_max); +#endif + +/* Miscellaneous */ +#ifndef GDK_MULTIHEAD_SAFE +gboolean gdk_event_send_client_message (GdkEvent *event, + GdkNativeWindow winid); +void gdk_event_send_clientmessage_toall (GdkEvent *event); +#endif +gboolean gdk_event_send_client_message_for_display (GdkDisplay *display, + GdkEvent *event, + GdkNativeWindow winid); + +void gdk_notify_startup_complete (void); + +void gdk_notify_startup_complete_with_id (const gchar* startup_id); + +/* Threading + */ + +#if !defined (GDK_DISABLE_DEPRECATED) || defined (GDK_COMPILATION) +GDKVAR GMutex *gdk_threads_mutex; /* private */ +#endif + +GDKVAR GCallback gdk_threads_lock; +GDKVAR GCallback gdk_threads_unlock; + +void gdk_threads_enter (void); +void gdk_threads_leave (void); +void gdk_threads_init (void); +void gdk_threads_set_lock_functions (GCallback enter_fn, + GCallback leave_fn); + +guint gdk_threads_add_idle_full (gint priority, + GSourceFunc function, + gpointer data, + GDestroyNotify notify); +guint gdk_threads_add_idle (GSourceFunc function, + gpointer data); +guint gdk_threads_add_timeout_full (gint priority, + guint interval, + GSourceFunc function, + gpointer data, + GDestroyNotify notify); +guint gdk_threads_add_timeout (guint interval, + GSourceFunc function, + gpointer data); + +#ifdef G_THREADS_ENABLED +# define GDK_THREADS_ENTER() G_STMT_START { \ + if (gdk_threads_lock) \ + (*gdk_threads_lock) (); \ + } G_STMT_END +# define GDK_THREADS_LEAVE() G_STMT_START { \ + if (gdk_threads_unlock) \ + (*gdk_threads_unlock) (); \ + } G_STMT_END +#else /* !G_THREADS_ENABLED */ +# define GDK_THREADS_ENTER() +# define GDK_THREADS_LEAVE() +#endif /* !G_THREADS_ENABLED */ + +G_END_DECLS + + +#endif /* __GDK_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkalias.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkalias.h new file mode 100644 index 00000000..a3b907ac --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkalias.h @@ -0,0 +1,2524 @@ +/* Generated by makegdkalias.pl */ + +#ifndef DISABLE_VISIBILITY + +#include <glib.h> + +#ifdef G_HAVE_GNUC_VISIBILITY + +#define IN_FILE(x) 1 +#define IN_HEADER defined + +#if IN_HEADER(__GDK_EVENTS_H__) +#if IN_FILE(__GDK_EVENTS_X11_C__) +extern __typeof (gdk_add_client_message_filter) IA__gdk_add_client_message_filter __attribute((visibility("hidden"))); +#define gdk_add_client_message_filter IA__gdk_add_client_message_filter + +extern __typeof (gdk_event_get_graphics_expose) IA__gdk_event_get_graphics_expose __attribute((visibility("hidden"))); +#define gdk_event_get_graphics_expose IA__gdk_event_get_graphics_expose + +extern __typeof (gdk_events_pending) IA__gdk_events_pending __attribute((visibility("hidden"))); +#define gdk_events_pending IA__gdk_events_pending + +#endif +#endif +#if IN_HEADER(__GDK_EVENTS_H__) +#if IN_FILE(__GDK_EVENTS_C__) +extern __typeof (gdk_event_copy) IA__gdk_event_copy __attribute((visibility("hidden"))); +#define gdk_event_copy IA__gdk_event_copy + +extern __typeof (gdk_event_free) IA__gdk_event_free __attribute((visibility("hidden"))); +#define gdk_event_free IA__gdk_event_free + +extern __typeof (gdk_event_get) IA__gdk_event_get __attribute((visibility("hidden"))); +#define gdk_event_get IA__gdk_event_get + +extern __typeof (gdk_event_get_axis) IA__gdk_event_get_axis __attribute((visibility("hidden"))); +#define gdk_event_get_axis IA__gdk_event_get_axis + +extern __typeof (gdk_event_get_coords) IA__gdk_event_get_coords __attribute((visibility("hidden"))); +#define gdk_event_get_coords IA__gdk_event_get_coords + +extern __typeof (gdk_event_get_root_coords) IA__gdk_event_get_root_coords __attribute((visibility("hidden"))); +#define gdk_event_get_root_coords IA__gdk_event_get_root_coords + +extern __typeof (gdk_event_get_screen) IA__gdk_event_get_screen __attribute((visibility("hidden"))); +#define gdk_event_get_screen IA__gdk_event_get_screen + +extern __typeof (gdk_event_get_state) IA__gdk_event_get_state __attribute((visibility("hidden"))); +#define gdk_event_get_state IA__gdk_event_get_state + +extern __typeof (gdk_event_get_time) IA__gdk_event_get_time __attribute((visibility("hidden"))); +#define gdk_event_get_time IA__gdk_event_get_time + +extern __typeof (gdk_event_get_type) IA__gdk_event_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_event_get_type IA__gdk_event_get_type + +extern __typeof (gdk_event_handler_set) IA__gdk_event_handler_set __attribute((visibility("hidden"))); +#define gdk_event_handler_set IA__gdk_event_handler_set + +extern __typeof (gdk_event_new) IA__gdk_event_new __attribute((visibility("hidden"))); +#define gdk_event_new IA__gdk_event_new + +extern __typeof (gdk_event_peek) IA__gdk_event_peek __attribute((visibility("hidden"))); +#define gdk_event_peek IA__gdk_event_peek + +extern __typeof (gdk_event_put) IA__gdk_event_put __attribute((visibility("hidden"))); +#define gdk_event_put IA__gdk_event_put + +extern __typeof (gdk_event_request_motions) IA__gdk_event_request_motions __attribute((visibility("hidden"))); +#define gdk_event_request_motions IA__gdk_event_request_motions + +extern __typeof (gdk_event_set_screen) IA__gdk_event_set_screen __attribute((visibility("hidden"))); +#define gdk_event_set_screen IA__gdk_event_set_screen + +extern __typeof (gdk_get_show_events) IA__gdk_get_show_events __attribute((visibility("hidden"))); +#define gdk_get_show_events IA__gdk_get_show_events + +extern __typeof (gdk_set_show_events) IA__gdk_set_show_events __attribute((visibility("hidden"))); +#define gdk_set_show_events IA__gdk_set_show_events + +extern __typeof (gdk_setting_get) IA__gdk_setting_get __attribute((visibility("hidden"))); +#define gdk_setting_get IA__gdk_setting_get + +#endif +#endif +#if IN_HEADER(__GDK_H__) +#if IN_FILE(__GDK_MAIN_X11_C__) +extern __typeof (gdk_error_trap_pop) IA__gdk_error_trap_pop __attribute((visibility("hidden"))); +#define gdk_error_trap_pop IA__gdk_error_trap_pop + +extern __typeof (gdk_error_trap_push) IA__gdk_error_trap_push __attribute((visibility("hidden"))); +#define gdk_error_trap_push IA__gdk_error_trap_push + +extern __typeof (gdk_get_display) IA__gdk_get_display __attribute((visibility("hidden"))); +#define gdk_get_display IA__gdk_get_display + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_get_use_xshm) IA__gdk_get_use_xshm __attribute((visibility("hidden"))); +#define gdk_get_use_xshm IA__gdk_get_use_xshm + +extern __typeof (gdk_set_use_xshm) IA__gdk_set_use_xshm __attribute((visibility("hidden"))); +#define gdk_set_use_xshm IA__gdk_set_use_xshm + +#endif +extern __typeof (gdk_keyboard_grab) IA__gdk_keyboard_grab __attribute((visibility("hidden"))); +#define gdk_keyboard_grab IA__gdk_keyboard_grab + +extern __typeof (gdk_keyboard_grab_info_libgtk_only) IA__gdk_keyboard_grab_info_libgtk_only __attribute((visibility("hidden"))); +#define gdk_keyboard_grab_info_libgtk_only IA__gdk_keyboard_grab_info_libgtk_only + +extern __typeof (gdk_pointer_grab) IA__gdk_pointer_grab __attribute((visibility("hidden"))); +#define gdk_pointer_grab IA__gdk_pointer_grab + +extern __typeof (gdk_pointer_grab_info_libgtk_only) IA__gdk_pointer_grab_info_libgtk_only __attribute((visibility("hidden"))); +#define gdk_pointer_grab_info_libgtk_only IA__gdk_pointer_grab_info_libgtk_only + +#endif +#endif +#if IN_HEADER(__GDK_H__) +#if IN_FILE(__GDK_DISPLAY_C__) +extern __typeof (gdk_beep) IA__gdk_beep __attribute((visibility("hidden"))); +#define gdk_beep IA__gdk_beep + +extern __typeof (gdk_set_pointer_hooks) IA__gdk_set_pointer_hooks __attribute((visibility("hidden"))); +#define gdk_set_pointer_hooks IA__gdk_set_pointer_hooks + +extern __typeof (gdk_keyboard_ungrab) IA__gdk_keyboard_ungrab __attribute((visibility("hidden"))); +#define gdk_keyboard_ungrab IA__gdk_keyboard_ungrab + +extern __typeof (gdk_pointer_is_grabbed) IA__gdk_pointer_is_grabbed __attribute((visibility("hidden"))); +#define gdk_pointer_is_grabbed IA__gdk_pointer_is_grabbed + +extern __typeof (gdk_pointer_ungrab) IA__gdk_pointer_ungrab __attribute((visibility("hidden"))); +#define gdk_pointer_ungrab IA__gdk_pointer_ungrab + +extern __typeof (gdk_event_send_client_message) IA__gdk_event_send_client_message __attribute((visibility("hidden"))); +#define gdk_event_send_client_message IA__gdk_event_send_client_message + +extern __typeof (gdk_event_send_clientmessage_toall) IA__gdk_event_send_clientmessage_toall __attribute((visibility("hidden"))); +#define gdk_event_send_clientmessage_toall IA__gdk_event_send_clientmessage_toall + +#endif +#endif +#if IN_HEADER(__GDK_H__) +#if IN_FILE(__GDK_IM_X11_C__) +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_mbstowcs) IA__gdk_mbstowcs __attribute((visibility("hidden"))); +#define gdk_mbstowcs IA__gdk_mbstowcs + +extern __typeof (gdk_wcstombs) IA__gdk_wcstombs __attribute((visibility("hidden"))); +#define gdk_wcstombs IA__gdk_wcstombs + +#endif +extern __typeof (gdk_set_locale) IA__gdk_set_locale __attribute((visibility("hidden"))); +#define gdk_set_locale IA__gdk_set_locale + +#endif +#endif +#if IN_HEADER(__GDK_H__) +#if IN_FILE(__GDK_EVENTS_X11_C__) +extern __typeof (gdk_event_send_client_message_for_display) IA__gdk_event_send_client_message_for_display __attribute((visibility("hidden"))); +#define gdk_event_send_client_message_for_display IA__gdk_event_send_client_message_for_display + +extern __typeof (gdk_flush) IA__gdk_flush __attribute((visibility("hidden"))); +#define gdk_flush IA__gdk_flush + +#endif +#endif +#if IN_HEADER(__GDK_H__) +#if IN_FILE(__GDK_DISPLAY_X11_C__) +extern __typeof (gdk_notify_startup_complete) IA__gdk_notify_startup_complete __attribute((visibility("hidden"))); +#define gdk_notify_startup_complete IA__gdk_notify_startup_complete + +extern __typeof (gdk_notify_startup_complete_with_id) IA__gdk_notify_startup_complete_with_id __attribute((visibility("hidden"))); +#define gdk_notify_startup_complete_with_id IA__gdk_notify_startup_complete_with_id + +#endif +#endif +#if IN_HEADER(__GDK_H__) +#if IN_FILE(__GDK_RECTANGLE_C__) +extern __typeof (gdk_rectangle_get_type) IA__gdk_rectangle_get_type __attribute((visibility("hidden"))); +#define gdk_rectangle_get_type IA__gdk_rectangle_get_type + +extern __typeof (gdk_rectangle_intersect) IA__gdk_rectangle_intersect __attribute((visibility("hidden"))); +#define gdk_rectangle_intersect IA__gdk_rectangle_intersect + +extern __typeof (gdk_rectangle_union) IA__gdk_rectangle_union __attribute((visibility("hidden"))); +#define gdk_rectangle_union IA__gdk_rectangle_union + +#endif +#endif +#if IN_HEADER(__GDK_H__) +#if IN_FILE(__GDK_EVENTS_C__) +extern __typeof (gdk_set_double_click_time) IA__gdk_set_double_click_time __attribute((visibility("hidden"))); +#define gdk_set_double_click_time IA__gdk_set_double_click_time + +#endif +#endif +#if IN_HEADER(__GDK_H__) +#if IN_FILE(__GDK_C__) +extern __typeof (gdk_add_option_entries_libgtk_only) IA__gdk_add_option_entries_libgtk_only __attribute((visibility("hidden"))); +#define gdk_add_option_entries_libgtk_only IA__gdk_add_option_entries_libgtk_only + +extern __typeof (gdk_get_display_arg_name) IA__gdk_get_display_arg_name __attribute((visibility("hidden"))); +#define gdk_get_display_arg_name IA__gdk_get_display_arg_name + +extern __typeof (gdk_get_program_class) IA__gdk_get_program_class __attribute((visibility("hidden"))); +#define gdk_get_program_class IA__gdk_get_program_class + +extern __typeof (gdk_init) IA__gdk_init __attribute((visibility("hidden"))); +#define gdk_init IA__gdk_init + +extern __typeof (gdk_init_check) IA__gdk_init_check __attribute((visibility("hidden"))); +#define gdk_init_check IA__gdk_init_check + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_exit) IA__gdk_exit __attribute((visibility("hidden"))); +#define gdk_exit IA__gdk_exit + +#endif +extern __typeof (gdk_pre_parse_libgtk_only) IA__gdk_pre_parse_libgtk_only __attribute((visibility("hidden"))); +#define gdk_pre_parse_libgtk_only IA__gdk_pre_parse_libgtk_only + +extern __typeof (gdk_parse_args) IA__gdk_parse_args __attribute((visibility("hidden"))); +#define gdk_parse_args IA__gdk_parse_args + +extern __typeof (gdk_set_program_class) IA__gdk_set_program_class __attribute((visibility("hidden"))); +#define gdk_set_program_class IA__gdk_set_program_class + +extern __typeof (gdk_threads_enter) IA__gdk_threads_enter __attribute((visibility("hidden"))); +#define gdk_threads_enter IA__gdk_threads_enter + +extern __typeof (gdk_threads_init) IA__gdk_threads_init __attribute((visibility("hidden"))); +#define gdk_threads_init IA__gdk_threads_init + +extern __typeof (gdk_threads_leave) IA__gdk_threads_leave __attribute((visibility("hidden"))); +#define gdk_threads_leave IA__gdk_threads_leave + +extern __typeof (gdk_threads_set_lock_functions) IA__gdk_threads_set_lock_functions __attribute((visibility("hidden"))); +#define gdk_threads_set_lock_functions IA__gdk_threads_set_lock_functions + +extern __typeof (gdk_threads_add_idle) IA__gdk_threads_add_idle __attribute((visibility("hidden"))); +#define gdk_threads_add_idle IA__gdk_threads_add_idle + +extern __typeof (gdk_threads_add_idle_full) IA__gdk_threads_add_idle_full __attribute((visibility("hidden"))); +#define gdk_threads_add_idle_full IA__gdk_threads_add_idle_full + +extern __typeof (gdk_threads_add_timeout) IA__gdk_threads_add_timeout __attribute((visibility("hidden"))); +#define gdk_threads_add_timeout IA__gdk_threads_add_timeout + +extern __typeof (gdk_threads_add_timeout_full) IA__gdk_threads_add_timeout_full __attribute((visibility("hidden"))); +#define gdk_threads_add_timeout_full IA__gdk_threads_add_timeout_full + +#endif +#endif +#if IN_HEADER(__GDK_H__) +#if IN_FILE(__GDK_EVENTS_C__) +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_input_add) IA__gdk_input_add __attribute((visibility("hidden"))); +#define gdk_input_add IA__gdk_input_add + +extern __typeof (gdk_input_remove) IA__gdk_input_remove __attribute((visibility("hidden"))); +#define gdk_input_remove IA__gdk_input_remove + +extern __typeof (gdk_input_add_full) IA__gdk_input_add_full __attribute((visibility("hidden"))); +#define gdk_input_add_full IA__gdk_input_add_full + +#endif +#endif +#endif +#if IN_HEADER(__GDK_H__) +#if IN_FILE(__GDK_SCREEN_C__) +extern __typeof (gdk_screen_width) IA__gdk_screen_width __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_screen_width IA__gdk_screen_width + +extern __typeof (gdk_screen_width_mm) IA__gdk_screen_width_mm __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_screen_width_mm IA__gdk_screen_width_mm + +extern __typeof (gdk_screen_height) IA__gdk_screen_height __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_screen_height IA__gdk_screen_height + +extern __typeof (gdk_screen_height_mm) IA__gdk_screen_height_mm __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_screen_height_mm IA__gdk_screen_height_mm + +#endif +#endif +#if IN_HEADER(__GDK_PROPERTY_H__) +#if IN_FILE(__GDK_SELECTION_C__) +extern __typeof (gdk_string_to_compound_text) IA__gdk_string_to_compound_text __attribute((visibility("hidden"))); +#define gdk_string_to_compound_text IA__gdk_string_to_compound_text + +extern __typeof (gdk_text_property_to_text_list) IA__gdk_text_property_to_text_list __attribute((visibility("hidden"))); +#define gdk_text_property_to_text_list IA__gdk_text_property_to_text_list + +extern __typeof (gdk_text_property_to_utf8_list) IA__gdk_text_property_to_utf8_list __attribute((visibility("hidden"))); +#define gdk_text_property_to_utf8_list IA__gdk_text_property_to_utf8_list + +extern __typeof (gdk_utf8_to_compound_text) IA__gdk_utf8_to_compound_text __attribute((visibility("hidden"))); +#define gdk_utf8_to_compound_text IA__gdk_utf8_to_compound_text + +#endif +#endif +#if IN_HEADER(__GDK_PROPERTY_H__) +#if IN_FILE(__GDK_PROPERTY_X11_C__) +extern __typeof (gdk_atom_intern) IA__gdk_atom_intern __attribute((visibility("hidden"))); +#define gdk_atom_intern IA__gdk_atom_intern + +extern __typeof (gdk_atom_intern_static_string) IA__gdk_atom_intern_static_string __attribute((visibility("hidden"))); +#define gdk_atom_intern_static_string IA__gdk_atom_intern_static_string + +extern __typeof (gdk_atom_name) IA__gdk_atom_name __attribute((visibility("hidden"))); +#define gdk_atom_name IA__gdk_atom_name + +extern __typeof (gdk_property_change) IA__gdk_property_change __attribute((visibility("hidden"))); +#define gdk_property_change IA__gdk_property_change + +extern __typeof (gdk_property_delete) IA__gdk_property_delete __attribute((visibility("hidden"))); +#define gdk_property_delete IA__gdk_property_delete + +extern __typeof (gdk_property_get) IA__gdk_property_get __attribute((visibility("hidden"))); +#define gdk_property_get IA__gdk_property_get + +#endif +#endif +#if IN_HEADER(__GDK_PROPERTY_H__) +#if IN_FILE(__GDK_SELECTION_X11_C__) +extern __typeof (gdk_free_compound_text) IA__gdk_free_compound_text __attribute((visibility("hidden"))); +#define gdk_free_compound_text IA__gdk_free_compound_text + +extern __typeof (gdk_free_text_list) IA__gdk_free_text_list __attribute((visibility("hidden"))); +#define gdk_free_text_list IA__gdk_free_text_list + +extern __typeof (gdk_string_to_compound_text_for_display) IA__gdk_string_to_compound_text_for_display __attribute((visibility("hidden"))); +#define gdk_string_to_compound_text_for_display IA__gdk_string_to_compound_text_for_display + +extern __typeof (gdk_text_property_to_text_list_for_display) IA__gdk_text_property_to_text_list_for_display __attribute((visibility("hidden"))); +#define gdk_text_property_to_text_list_for_display IA__gdk_text_property_to_text_list_for_display + +extern __typeof (gdk_text_property_to_utf8_list_for_display) IA__gdk_text_property_to_utf8_list_for_display __attribute((visibility("hidden"))); +#define gdk_text_property_to_utf8_list_for_display IA__gdk_text_property_to_utf8_list_for_display + +extern __typeof (gdk_utf8_to_string_target) IA__gdk_utf8_to_string_target __attribute((visibility("hidden"))); +#define gdk_utf8_to_string_target IA__gdk_utf8_to_string_target + +extern __typeof (gdk_utf8_to_compound_text_for_display) IA__gdk_utf8_to_compound_text_for_display __attribute((visibility("hidden"))); +#define gdk_utf8_to_compound_text_for_display IA__gdk_utf8_to_compound_text_for_display + +#endif +#endif +#if IN_HEADER(__GDK_ENUM_TYPES_H__) +#if IN_FILE(__GDK_ENUM_TYPES_C__) +extern __typeof (gdk_rgb_dither_get_type) IA__gdk_rgb_dither_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_rgb_dither_get_type IA__gdk_rgb_dither_get_type + +extern __typeof (gdk_drag_protocol_get_type) IA__gdk_drag_protocol_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_drag_protocol_get_type IA__gdk_drag_protocol_get_type + +extern __typeof (gdk_input_source_get_type) IA__gdk_input_source_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_input_source_get_type IA__gdk_input_source_get_type + +extern __typeof (gdk_input_condition_get_type) IA__gdk_input_condition_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_input_condition_get_type IA__gdk_input_condition_get_type + +extern __typeof (gdk_input_mode_get_type) IA__gdk_input_mode_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_input_mode_get_type IA__gdk_input_mode_get_type + +extern __typeof (gdk_axis_use_get_type) IA__gdk_axis_use_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_axis_use_get_type IA__gdk_axis_use_get_type + +extern __typeof (gdk_byte_order_get_type) IA__gdk_byte_order_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_byte_order_get_type IA__gdk_byte_order_get_type + +extern __typeof (gdk_cap_style_get_type) IA__gdk_cap_style_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_cap_style_get_type IA__gdk_cap_style_get_type + +extern __typeof (gdk_crossing_mode_get_type) IA__gdk_crossing_mode_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_crossing_mode_get_type IA__gdk_crossing_mode_get_type + +extern __typeof (gdk_extension_mode_get_type) IA__gdk_extension_mode_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_extension_mode_get_type IA__gdk_extension_mode_get_type + +extern __typeof (gdk_event_mask_get_type) IA__gdk_event_mask_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_event_mask_get_type IA__gdk_event_mask_get_type + +extern __typeof (gdk_event_type_get_type) IA__gdk_event_type_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_event_type_get_type IA__gdk_event_type_get_type + +extern __typeof (gdk_fill_get_type) IA__gdk_fill_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_fill_get_type IA__gdk_fill_get_type + +extern __typeof (gdk_fill_rule_get_type) IA__gdk_fill_rule_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_fill_rule_get_type IA__gdk_fill_rule_get_type + +extern __typeof (gdk_filter_return_get_type) IA__gdk_filter_return_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_filter_return_get_type IA__gdk_filter_return_get_type + +extern __typeof (gdk_function_get_type) IA__gdk_function_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_function_get_type IA__gdk_function_get_type + +extern __typeof (gdk_grab_status_get_type) IA__gdk_grab_status_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_grab_status_get_type IA__gdk_grab_status_get_type + +extern __typeof (gdk_gravity_get_type) IA__gdk_gravity_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_gravity_get_type IA__gdk_gravity_get_type + +extern __typeof (gdk_join_style_get_type) IA__gdk_join_style_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_join_style_get_type IA__gdk_join_style_get_type + +extern __typeof (gdk_line_style_get_type) IA__gdk_line_style_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_line_style_get_type IA__gdk_line_style_get_type + +extern __typeof (gdk_modifier_type_get_type) IA__gdk_modifier_type_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_modifier_type_get_type IA__gdk_modifier_type_get_type + +extern __typeof (gdk_notify_type_get_type) IA__gdk_notify_type_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_notify_type_get_type IA__gdk_notify_type_get_type + +extern __typeof (gdk_overlap_type_get_type) IA__gdk_overlap_type_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_overlap_type_get_type IA__gdk_overlap_type_get_type + +extern __typeof (gdk_owner_change_get_type) IA__gdk_owner_change_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_owner_change_get_type IA__gdk_owner_change_get_type + +extern __typeof (gdk_property_state_get_type) IA__gdk_property_state_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_property_state_get_type IA__gdk_property_state_get_type + +extern __typeof (gdk_prop_mode_get_type) IA__gdk_prop_mode_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_prop_mode_get_type IA__gdk_prop_mode_get_type + +extern __typeof (gdk_scroll_direction_get_type) IA__gdk_scroll_direction_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_scroll_direction_get_type IA__gdk_scroll_direction_get_type + +extern __typeof (gdk_setting_action_get_type) IA__gdk_setting_action_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_setting_action_get_type IA__gdk_setting_action_get_type + +extern __typeof (gdk_status_get_type) IA__gdk_status_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_status_get_type IA__gdk_status_get_type + +extern __typeof (gdk_subwindow_mode_get_type) IA__gdk_subwindow_mode_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_subwindow_mode_get_type IA__gdk_subwindow_mode_get_type + +extern __typeof (gdk_visibility_state_get_type) IA__gdk_visibility_state_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_visibility_state_get_type IA__gdk_visibility_state_get_type + +extern __typeof (gdk_wm_decoration_get_type) IA__gdk_wm_decoration_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_wm_decoration_get_type IA__gdk_wm_decoration_get_type + +extern __typeof (gdk_wm_function_get_type) IA__gdk_wm_function_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_wm_function_get_type IA__gdk_wm_function_get_type + +extern __typeof (gdk_font_type_get_type) IA__gdk_font_type_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_font_type_get_type IA__gdk_font_type_get_type + +extern __typeof (gdk_cursor_type_get_type) IA__gdk_cursor_type_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_cursor_type_get_type IA__gdk_cursor_type_get_type + +extern __typeof (gdk_drag_action_get_type) IA__gdk_drag_action_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_drag_action_get_type IA__gdk_drag_action_get_type + +extern __typeof (gdk_gc_values_mask_get_type) IA__gdk_gc_values_mask_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_gc_values_mask_get_type IA__gdk_gc_values_mask_get_type + +extern __typeof (gdk_window_attributes_type_get_type) IA__gdk_window_attributes_type_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_window_attributes_type_get_type IA__gdk_window_attributes_type_get_type + +extern __typeof (gdk_window_class_get_type) IA__gdk_window_class_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_window_class_get_type IA__gdk_window_class_get_type + +extern __typeof (gdk_window_edge_get_type) IA__gdk_window_edge_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_window_edge_get_type IA__gdk_window_edge_get_type + +extern __typeof (gdk_window_hints_get_type) IA__gdk_window_hints_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_window_hints_get_type IA__gdk_window_hints_get_type + +extern __typeof (gdk_window_state_get_type) IA__gdk_window_state_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_window_state_get_type IA__gdk_window_state_get_type + +extern __typeof (gdk_window_type_get_type) IA__gdk_window_type_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_window_type_get_type IA__gdk_window_type_get_type + +extern __typeof (gdk_window_type_hint_get_type) IA__gdk_window_type_hint_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_window_type_hint_get_type IA__gdk_window_type_hint_get_type + +extern __typeof (gdk_image_type_get_type) IA__gdk_image_type_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_image_type_get_type IA__gdk_image_type_get_type + +extern __typeof (gdk_visual_type_get_type) IA__gdk_visual_type_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_visual_type_get_type IA__gdk_visual_type_get_type + +#endif +#endif +#if IN_HEADER(__GDK_PIXMAP_H__) +#if IN_FILE(__GDK_PIXMAP_X11_C__) +extern __typeof (gdk_bitmap_create_from_data) IA__gdk_bitmap_create_from_data __attribute((visibility("hidden"))); +#define gdk_bitmap_create_from_data IA__gdk_bitmap_create_from_data + +#endif +#endif +#if IN_HEADER(__GDK_FONT_H__) +#if IN_FILE(__GDK_FONT_C__) +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_font_from_description) IA__gdk_font_from_description __attribute((visibility("hidden"))); +#define gdk_font_from_description IA__gdk_font_from_description + +#endif +extern __typeof (gdk_font_get_type) IA__gdk_font_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_font_get_type IA__gdk_font_get_type + +extern __typeof (gdk_font_ref) IA__gdk_font_ref __attribute((visibility("hidden"))); +#define gdk_font_ref IA__gdk_font_ref + +extern __typeof (gdk_font_unref) IA__gdk_font_unref __attribute((visibility("hidden"))); +#define gdk_font_unref IA__gdk_font_unref + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_font_load) IA__gdk_font_load __attribute((visibility("hidden"))); +#define gdk_font_load IA__gdk_font_load + +extern __typeof (gdk_string_width) IA__gdk_string_width __attribute((visibility("hidden"))); +#define gdk_string_width IA__gdk_string_width + +extern __typeof (gdk_char_width) IA__gdk_char_width __attribute((visibility("hidden"))); +#define gdk_char_width IA__gdk_char_width + +extern __typeof (gdk_char_width_wc) IA__gdk_char_width_wc __attribute((visibility("hidden"))); +#define gdk_char_width_wc IA__gdk_char_width_wc + +extern __typeof (gdk_string_measure) IA__gdk_string_measure __attribute((visibility("hidden"))); +#define gdk_string_measure IA__gdk_string_measure + +extern __typeof (gdk_text_measure) IA__gdk_text_measure __attribute((visibility("hidden"))); +#define gdk_text_measure IA__gdk_text_measure + +extern __typeof (gdk_char_measure) IA__gdk_char_measure __attribute((visibility("hidden"))); +#define gdk_char_measure IA__gdk_char_measure + +extern __typeof (gdk_string_height) IA__gdk_string_height __attribute((visibility("hidden"))); +#define gdk_string_height IA__gdk_string_height + +extern __typeof (gdk_text_height) IA__gdk_text_height __attribute((visibility("hidden"))); +#define gdk_text_height IA__gdk_text_height + +extern __typeof (gdk_char_height) IA__gdk_char_height __attribute((visibility("hidden"))); +#define gdk_char_height IA__gdk_char_height + +extern __typeof (gdk_string_extents) IA__gdk_string_extents __attribute((visibility("hidden"))); +#define gdk_string_extents IA__gdk_string_extents + +#endif +#endif +#endif +#if IN_HEADER(__GDK_FONT_H__) +#if IN_FILE(__GDK_FONT_X11_C__) +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_text_extents) IA__gdk_text_extents __attribute((visibility("hidden"))); +#define gdk_text_extents IA__gdk_text_extents + +extern __typeof (gdk_text_extents_wc) IA__gdk_text_extents_wc __attribute((visibility("hidden"))); +#define gdk_text_extents_wc IA__gdk_text_extents_wc + +extern __typeof (gdk_text_width) IA__gdk_text_width __attribute((visibility("hidden"))); +#define gdk_text_width IA__gdk_text_width + +extern __typeof (gdk_text_width_wc) IA__gdk_text_width_wc __attribute((visibility("hidden"))); +#define gdk_text_width_wc IA__gdk_text_width_wc + +extern __typeof (gdk_font_get_display) IA__gdk_font_get_display __attribute((visibility("hidden"))); +#define gdk_font_get_display IA__gdk_font_get_display + +extern __typeof (gdk_fontset_load) IA__gdk_fontset_load __attribute((visibility("hidden"))); +#define gdk_fontset_load IA__gdk_fontset_load + +#endif +extern __typeof (gdk_font_id) IA__gdk_font_id __attribute((visibility("hidden"))); +#define gdk_font_id IA__gdk_font_id + +extern __typeof (gdk_font_equal) IA__gdk_font_equal __attribute((visibility("hidden"))); +#define gdk_font_equal IA__gdk_font_equal + +extern __typeof (gdk_font_load_for_display) IA__gdk_font_load_for_display __attribute((visibility("hidden"))); +#define gdk_font_load_for_display IA__gdk_font_load_for_display + +extern __typeof (gdk_font_from_description_for_display) IA__gdk_font_from_description_for_display __attribute((visibility("hidden"))); +#define gdk_font_from_description_for_display IA__gdk_font_from_description_for_display + +extern __typeof (gdk_fontset_load_for_display) IA__gdk_fontset_load_for_display __attribute((visibility("hidden"))); +#define gdk_fontset_load_for_display IA__gdk_fontset_load_for_display + +#endif +#endif +#if IN_HEADER(__GDK_CAIRO_H__) +#if IN_FILE(__GDK_CAIRO_C__) +extern __typeof (gdk_cairo_create) IA__gdk_cairo_create __attribute((visibility("hidden"))); +#define gdk_cairo_create IA__gdk_cairo_create + +extern __typeof (gdk_cairo_set_source_color) IA__gdk_cairo_set_source_color __attribute((visibility("hidden"))); +#define gdk_cairo_set_source_color IA__gdk_cairo_set_source_color + +extern __typeof (gdk_cairo_set_source_pixbuf) IA__gdk_cairo_set_source_pixbuf __attribute((visibility("hidden"))); +#define gdk_cairo_set_source_pixbuf IA__gdk_cairo_set_source_pixbuf + +extern __typeof (gdk_cairo_set_source_pixmap) IA__gdk_cairo_set_source_pixmap __attribute((visibility("hidden"))); +#define gdk_cairo_set_source_pixmap IA__gdk_cairo_set_source_pixmap + +extern __typeof (gdk_cairo_rectangle) IA__gdk_cairo_rectangle __attribute((visibility("hidden"))); +#define gdk_cairo_rectangle IA__gdk_cairo_rectangle + +extern __typeof (gdk_cairo_region) IA__gdk_cairo_region __attribute((visibility("hidden"))); +#define gdk_cairo_region IA__gdk_cairo_region + +#endif +#endif +#if IN_HEADER(__GDK_COLOR_H__) +#if IN_FILE(__GDK_COLOR_C__) +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_colors_store) IA__gdk_colors_store __attribute((visibility("hidden"))); +#define gdk_colors_store IA__gdk_colors_store + +extern __typeof (gdk_color_white) IA__gdk_color_white __attribute((visibility("hidden"))); +#define gdk_color_white IA__gdk_color_white + +extern __typeof (gdk_color_black) IA__gdk_color_black __attribute((visibility("hidden"))); +#define gdk_color_black IA__gdk_color_black + +extern __typeof (gdk_color_alloc) IA__gdk_color_alloc __attribute((visibility("hidden"))); +#define gdk_color_alloc IA__gdk_color_alloc + +#endif +extern __typeof (gdk_color_copy) IA__gdk_color_copy __attribute((visibility("hidden"))); +#define gdk_color_copy IA__gdk_color_copy + +extern __typeof (gdk_color_equal) IA__gdk_color_equal __attribute((visibility("hidden"))); +#define gdk_color_equal IA__gdk_color_equal + +extern __typeof (gdk_color_free) IA__gdk_color_free __attribute((visibility("hidden"))); +#define gdk_color_free IA__gdk_color_free + +extern __typeof (gdk_color_get_type) IA__gdk_color_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_color_get_type IA__gdk_color_get_type + +extern __typeof (gdk_color_hash) IA__gdk_color_hash __attribute((visibility("hidden"))); +#define gdk_color_hash IA__gdk_color_hash + +extern __typeof (gdk_colormap_alloc_color) IA__gdk_colormap_alloc_color __attribute((visibility("hidden"))); +#define gdk_colormap_alloc_color IA__gdk_colormap_alloc_color + +extern __typeof (gdk_colormap_get_system) IA__gdk_colormap_get_system __attribute((visibility("hidden"))); +#define gdk_colormap_get_system IA__gdk_colormap_get_system + +extern __typeof (gdk_colormap_get_visual) IA__gdk_colormap_get_visual __attribute((visibility("hidden"))); +#define gdk_colormap_get_visual IA__gdk_colormap_get_visual + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_colormap_ref) IA__gdk_colormap_ref __attribute((visibility("hidden"))); +#define gdk_colormap_ref IA__gdk_colormap_ref + +extern __typeof (gdk_colormap_unref) IA__gdk_colormap_unref __attribute((visibility("hidden"))); +#define gdk_colormap_unref IA__gdk_colormap_unref + +#endif +extern __typeof (gdk_color_parse) IA__gdk_color_parse __attribute((visibility("hidden"))); +#define gdk_color_parse IA__gdk_color_parse + +extern __typeof (gdk_color_to_string) IA__gdk_color_to_string __attribute((visibility("hidden"))); +#define gdk_color_to_string IA__gdk_color_to_string + +#endif +#endif +#if IN_HEADER(__GDK_COLOR_H__) +#if IN_FILE(__GDK_COLOR_X11_C__) +extern __typeof (gdk_colormap_new) IA__gdk_colormap_new __attribute((visibility("hidden"))); +#define gdk_colormap_new IA__gdk_colormap_new + +extern __typeof (gdk_colormap_get_type) IA__gdk_colormap_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_colormap_get_type IA__gdk_colormap_get_type + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_colormap_change) IA__gdk_colormap_change __attribute((visibility("hidden"))); +#define gdk_colormap_change IA__gdk_colormap_change + +extern __typeof (gdk_colors_alloc) IA__gdk_colors_alloc __attribute((visibility("hidden"))); +#define gdk_colors_alloc IA__gdk_colors_alloc + +extern __typeof (gdk_colors_free) IA__gdk_colors_free __attribute((visibility("hidden"))); +#define gdk_colors_free IA__gdk_colors_free + +extern __typeof (gdk_colormap_get_system_size) IA__gdk_colormap_get_system_size __attribute((visibility("hidden"))); +#define gdk_colormap_get_system_size IA__gdk_colormap_get_system_size + +extern __typeof (gdk_color_change) IA__gdk_color_change __attribute((visibility("hidden"))); +#define gdk_color_change IA__gdk_color_change + +#endif +extern __typeof (gdk_colormap_alloc_colors) IA__gdk_colormap_alloc_colors __attribute((visibility("hidden"))); +#define gdk_colormap_alloc_colors IA__gdk_colormap_alloc_colors + +extern __typeof (gdk_colormap_free_colors) IA__gdk_colormap_free_colors __attribute((visibility("hidden"))); +#define gdk_colormap_free_colors IA__gdk_colormap_free_colors + +extern __typeof (gdk_colormap_query_color) IA__gdk_colormap_query_color __attribute((visibility("hidden"))); +#define gdk_colormap_query_color IA__gdk_colormap_query_color + +extern __typeof (gdk_colormap_get_screen) IA__gdk_colormap_get_screen __attribute((visibility("hidden"))); +#define gdk_colormap_get_screen IA__gdk_colormap_get_screen + +#endif +#endif +#if IN_HEADER(__GDK_CURSOR_H__) +#if IN_FILE(__GDK_CURSOR_C__) +extern __typeof (gdk_cursor_get_type) IA__gdk_cursor_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_cursor_get_type IA__gdk_cursor_get_type + +extern __typeof (gdk_cursor_new) IA__gdk_cursor_new __attribute((visibility("hidden"))); +#define gdk_cursor_new IA__gdk_cursor_new + +extern __typeof (gdk_cursor_ref) IA__gdk_cursor_ref __attribute((visibility("hidden"))); +#define gdk_cursor_ref IA__gdk_cursor_ref + +extern __typeof (gdk_cursor_unref) IA__gdk_cursor_unref __attribute((visibility("hidden"))); +#define gdk_cursor_unref IA__gdk_cursor_unref + +#endif +#endif +#if IN_HEADER(__GDK_CURSOR_H__) +#if IN_FILE(__GDK_CURSOR_X11_C__) +extern __typeof (gdk_cursor_get_display) IA__gdk_cursor_get_display __attribute((visibility("hidden"))); +#define gdk_cursor_get_display IA__gdk_cursor_get_display + +extern __typeof (gdk_cursor_new_for_display) IA__gdk_cursor_new_for_display __attribute((visibility("hidden"))); +#define gdk_cursor_new_for_display IA__gdk_cursor_new_for_display + +extern __typeof (gdk_cursor_new_from_pixbuf) IA__gdk_cursor_new_from_pixbuf __attribute((visibility("hidden"))); +#define gdk_cursor_new_from_pixbuf IA__gdk_cursor_new_from_pixbuf + +extern __typeof (gdk_cursor_new_from_pixmap) IA__gdk_cursor_new_from_pixmap __attribute((visibility("hidden"))); +#define gdk_cursor_new_from_pixmap IA__gdk_cursor_new_from_pixmap + +extern __typeof (gdk_cursor_new_from_name) IA__gdk_cursor_new_from_name __attribute((visibility("hidden"))); +#define gdk_cursor_new_from_name IA__gdk_cursor_new_from_name + +extern __typeof (gdk_cursor_get_image) IA__gdk_cursor_get_image __attribute((visibility("hidden"))); +#define gdk_cursor_get_image IA__gdk_cursor_get_image + +#endif +#endif +#if IN_HEADER(__GDK_INPUT_H__) +#if IN_FILE(__GDK_INPUT_C__) +extern __typeof (gdk_device_free_history) IA__gdk_device_free_history __attribute((visibility("hidden"))); +#define gdk_device_free_history IA__gdk_device_free_history + +extern __typeof (gdk_device_get_axis) IA__gdk_device_get_axis __attribute((visibility("hidden"))); +#define gdk_device_get_axis IA__gdk_device_get_axis + +extern __typeof (gdk_device_get_history) IA__gdk_device_get_history __attribute((visibility("hidden"))); +#define gdk_device_get_history IA__gdk_device_get_history + +extern __typeof (gdk_device_get_type) IA__gdk_device_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_device_get_type IA__gdk_device_get_type + +extern __typeof (gdk_device_set_axis_use) IA__gdk_device_set_axis_use __attribute((visibility("hidden"))); +#define gdk_device_set_axis_use IA__gdk_device_set_axis_use + +extern __typeof (gdk_device_set_key) IA__gdk_device_set_key __attribute((visibility("hidden"))); +#define gdk_device_set_key IA__gdk_device_set_key + +extern __typeof (gdk_device_set_source) IA__gdk_device_set_source __attribute((visibility("hidden"))); +#define gdk_device_set_source IA__gdk_device_set_source + +extern __typeof (gdk_devices_list) IA__gdk_devices_list __attribute((visibility("hidden"))); +#define gdk_devices_list IA__gdk_devices_list + +extern __typeof (gdk_input_set_extension_events) IA__gdk_input_set_extension_events __attribute((visibility("hidden"))); +#define gdk_input_set_extension_events IA__gdk_input_set_extension_events + +#endif +#endif +#if IN_HEADER(__GDK_INPUT_H__) +#if IN_FILE(__GDK_DISPLAY_C__) +extern __typeof (gdk_device_get_core_pointer) IA__gdk_device_get_core_pointer __attribute((visibility("hidden"))); +#define gdk_device_get_core_pointer IA__gdk_device_get_core_pointer + +#endif +#endif +#if IN_HEADER(__GDK_INPUT_H__) +#if IN_FILE(__GDK_INPUT_X11_C__) +extern __typeof (gdk_device_get_state) IA__gdk_device_get_state __attribute((visibility("hidden"))); +#define gdk_device_get_state IA__gdk_device_get_state + +#endif +#endif +#if IN_HEADER(__GDK_INPUT_H__) +#if IN_FILE(__GDK_INPUT_XFREE_C__) +extern __typeof (gdk_device_set_mode) IA__gdk_device_set_mode __attribute((visibility("hidden"))); +#define gdk_device_set_mode IA__gdk_device_set_mode + +#endif +#endif +#if IN_HEADER(__GDK_INPUT_H__) +#if IN_FILE(__GDK_INPUT_NONE_C__) +extern __typeof (gdk_device_get_state) IA__gdk_device_get_state __attribute((visibility("hidden"))); +#define gdk_device_get_state IA__gdk_device_get_state + +extern __typeof (gdk_device_set_mode) IA__gdk_device_set_mode __attribute((visibility("hidden"))); +#define gdk_device_set_mode IA__gdk_device_set_mode + +#endif +#endif +#if IN_HEADER(__GDK_DISPLAY_H__) +#if IN_FILE(__GDK_EVENTS_X11_C__) +extern __typeof (gdk_display_add_client_message_filter) IA__gdk_display_add_client_message_filter __attribute((visibility("hidden"))); +#define gdk_display_add_client_message_filter IA__gdk_display_add_client_message_filter + +#endif +#endif +#if IN_HEADER(__GDK_DISPLAY_H__) +#if IN_FILE(__GDK_DISPLAY_C__) +extern __typeof (gdk_display_close) IA__gdk_display_close __attribute((visibility("hidden"))); +#define gdk_display_close IA__gdk_display_close + +extern __typeof (gdk_display_get_core_pointer) IA__gdk_display_get_core_pointer __attribute((visibility("hidden"))); +#define gdk_display_get_core_pointer IA__gdk_display_get_core_pointer + +extern __typeof (gdk_display_get_event) IA__gdk_display_get_event __attribute((visibility("hidden"))); +#define gdk_display_get_event IA__gdk_display_get_event + +extern __typeof (gdk_display_get_pointer) IA__gdk_display_get_pointer __attribute((visibility("hidden"))); +#define gdk_display_get_pointer IA__gdk_display_get_pointer + +extern __typeof (gdk_display_get_type) IA__gdk_display_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_display_get_type IA__gdk_display_get_type + +extern __typeof (gdk_display_get_window_at_pointer) IA__gdk_display_get_window_at_pointer __attribute((visibility("hidden"))); +#define gdk_display_get_window_at_pointer IA__gdk_display_get_window_at_pointer + +extern __typeof (gdk_display_peek_event) IA__gdk_display_peek_event __attribute((visibility("hidden"))); +#define gdk_display_peek_event IA__gdk_display_peek_event + +extern __typeof (gdk_display_put_event) IA__gdk_display_put_event __attribute((visibility("hidden"))); +#define gdk_display_put_event IA__gdk_display_put_event + +extern __typeof (gdk_display_set_pointer_hooks) IA__gdk_display_set_pointer_hooks __attribute((visibility("hidden"))); +#define gdk_display_set_pointer_hooks IA__gdk_display_set_pointer_hooks + +#endif +#endif +#if IN_HEADER(__GDK_DISPLAY_H__) +#if IN_FILE(__GDK_WINDOW_X11_C__) +extern __typeof (gdk_display_warp_pointer) IA__gdk_display_warp_pointer __attribute((visibility("hidden"))); +#define gdk_display_warp_pointer IA__gdk_display_warp_pointer + +#endif +#endif +#if IN_HEADER(__GDK_DISPLAY_H__) +#if IN_FILE(__GDK_DISPLAY_MANAGER_C__) +extern __typeof (gdk_display_get_default) IA__gdk_display_get_default __attribute((visibility("hidden"))); +#define gdk_display_get_default IA__gdk_display_get_default + +#endif +#endif +#if IN_HEADER(__GDK_DISPLAY_H__) +#if IN_FILE(__GDK_CURSOR_X11_C__) +extern __typeof (gdk_display_get_default_cursor_size) IA__gdk_display_get_default_cursor_size __attribute((visibility("hidden"))); +#define gdk_display_get_default_cursor_size IA__gdk_display_get_default_cursor_size + +extern __typeof (gdk_display_get_maximal_cursor_size) IA__gdk_display_get_maximal_cursor_size __attribute((visibility("hidden"))); +#define gdk_display_get_maximal_cursor_size IA__gdk_display_get_maximal_cursor_size + +extern __typeof (gdk_display_supports_cursor_alpha) IA__gdk_display_supports_cursor_alpha __attribute((visibility("hidden"))); +#define gdk_display_supports_cursor_alpha IA__gdk_display_supports_cursor_alpha + +extern __typeof (gdk_display_supports_cursor_color) IA__gdk_display_supports_cursor_color __attribute((visibility("hidden"))); +#define gdk_display_supports_cursor_color IA__gdk_display_supports_cursor_color + +#endif +#endif +#if IN_HEADER(__GDK_DISPLAY_H__) +#if IN_FILE(__GDK_DISPLAY_X11_C__) +extern __typeof (gdk_display_beep) IA__gdk_display_beep __attribute((visibility("hidden"))); +#define gdk_display_beep IA__gdk_display_beep + +extern __typeof (gdk_display_sync) IA__gdk_display_sync __attribute((visibility("hidden"))); +#define gdk_display_sync IA__gdk_display_sync + +extern __typeof (gdk_display_flush) IA__gdk_display_flush __attribute((visibility("hidden"))); +#define gdk_display_flush IA__gdk_display_flush + +extern __typeof (gdk_display_get_default_group) IA__gdk_display_get_default_group __attribute((visibility("hidden"))); +#define gdk_display_get_default_group IA__gdk_display_get_default_group + +extern __typeof (gdk_display_get_default_screen) IA__gdk_display_get_default_screen __attribute((visibility("hidden"))); +#define gdk_display_get_default_screen IA__gdk_display_get_default_screen + +extern __typeof (gdk_display_get_name) IA__gdk_display_get_name __attribute((visibility("hidden"))); +#define gdk_display_get_name IA__gdk_display_get_name + +extern __typeof (gdk_display_get_n_screens) IA__gdk_display_get_n_screens __attribute((visibility("hidden"))); +#define gdk_display_get_n_screens IA__gdk_display_get_n_screens + +extern __typeof (gdk_display_get_screen) IA__gdk_display_get_screen __attribute((visibility("hidden"))); +#define gdk_display_get_screen IA__gdk_display_get_screen + +extern __typeof (gdk_display_pointer_is_grabbed) IA__gdk_display_pointer_is_grabbed __attribute((visibility("hidden"))); +#define gdk_display_pointer_is_grabbed IA__gdk_display_pointer_is_grabbed + +extern __typeof (gdk_display_pointer_ungrab) IA__gdk_display_pointer_ungrab __attribute((visibility("hidden"))); +#define gdk_display_pointer_ungrab IA__gdk_display_pointer_ungrab + +extern __typeof (gdk_display_keyboard_ungrab) IA__gdk_display_keyboard_ungrab __attribute((visibility("hidden"))); +#define gdk_display_keyboard_ungrab IA__gdk_display_keyboard_ungrab + +extern __typeof (gdk_display_open) IA__gdk_display_open __attribute((visibility("hidden"))); +#define gdk_display_open IA__gdk_display_open + +extern __typeof (gdk_display_request_selection_notification) IA__gdk_display_request_selection_notification __attribute((visibility("hidden"))); +#define gdk_display_request_selection_notification IA__gdk_display_request_selection_notification + +extern __typeof (gdk_display_store_clipboard) IA__gdk_display_store_clipboard __attribute((visibility("hidden"))); +#define gdk_display_store_clipboard IA__gdk_display_store_clipboard + +extern __typeof (gdk_display_supports_clipboard_persistence) IA__gdk_display_supports_clipboard_persistence __attribute((visibility("hidden"))); +#define gdk_display_supports_clipboard_persistence IA__gdk_display_supports_clipboard_persistence + +extern __typeof (gdk_display_supports_selection_notification) IA__gdk_display_supports_selection_notification __attribute((visibility("hidden"))); +#define gdk_display_supports_selection_notification IA__gdk_display_supports_selection_notification + +extern __typeof (gdk_display_supports_shapes) IA__gdk_display_supports_shapes __attribute((visibility("hidden"))); +#define gdk_display_supports_shapes IA__gdk_display_supports_shapes + +extern __typeof (gdk_display_supports_input_shapes) IA__gdk_display_supports_input_shapes __attribute((visibility("hidden"))); +#define gdk_display_supports_input_shapes IA__gdk_display_supports_input_shapes + +extern __typeof (gdk_display_supports_composite) IA__gdk_display_supports_composite __attribute((visibility("hidden"))); +#define gdk_display_supports_composite IA__gdk_display_supports_composite + +#endif +#endif +#if IN_HEADER(__GDK_DISPLAY_H__) +#if IN_FILE(__GDK_INPUT_C__) +extern __typeof (gdk_display_list_devices) IA__gdk_display_list_devices __attribute((visibility("hidden"))); +#define gdk_display_list_devices IA__gdk_display_list_devices + +#endif +#endif +#if IN_HEADER(__GDK_DISPLAY_H__) +#if IN_FILE(__GDK_C__) +extern __typeof (gdk_display_open_default_libgtk_only) IA__gdk_display_open_default_libgtk_only __attribute((visibility("hidden"))); +#define gdk_display_open_default_libgtk_only IA__gdk_display_open_default_libgtk_only + +#endif +#endif +#if IN_HEADER(__GDK_DISPLAY_H__) +#if IN_FILE(__GDK_EVENTS_C__) +extern __typeof (gdk_display_set_double_click_distance) IA__gdk_display_set_double_click_distance __attribute((visibility("hidden"))); +#define gdk_display_set_double_click_distance IA__gdk_display_set_double_click_distance + +extern __typeof (gdk_display_set_double_click_time) IA__gdk_display_set_double_click_time __attribute((visibility("hidden"))); +#define gdk_display_set_double_click_time IA__gdk_display_set_double_click_time + +#endif +#endif +#if IN_HEADER(__GDK_DISPLAY_MANAGER_H__) +#if IN_FILE(__GDK_DISPLAY_MANAGER_C__) +extern __typeof (gdk_display_manager_get) IA__gdk_display_manager_get __attribute((visibility("hidden"))); +#define gdk_display_manager_get IA__gdk_display_manager_get + +extern __typeof (gdk_display_manager_get_type) IA__gdk_display_manager_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_display_manager_get_type IA__gdk_display_manager_get_type + +extern __typeof (gdk_display_manager_list_displays) IA__gdk_display_manager_list_displays __attribute((visibility("hidden"))); +#define gdk_display_manager_list_displays IA__gdk_display_manager_list_displays + +extern __typeof (gdk_display_manager_set_default_display) IA__gdk_display_manager_set_default_display __attribute((visibility("hidden"))); +#define gdk_display_manager_set_default_display IA__gdk_display_manager_set_default_display + +extern __typeof (gdk_display_manager_get_default_display) IA__gdk_display_manager_get_default_display __attribute((visibility("hidden"))); +#define gdk_display_manager_get_default_display IA__gdk_display_manager_get_default_display + +#endif +#endif +#if IN_HEADER(__GDK_DND_H__) +#if IN_FILE(__GDK_DND_X11_C__) +extern __typeof (gdk_drag_abort) IA__gdk_drag_abort __attribute((visibility("hidden"))); +#define gdk_drag_abort IA__gdk_drag_abort + +extern __typeof (gdk_drag_begin) IA__gdk_drag_begin __attribute((visibility("hidden"))); +#define gdk_drag_begin IA__gdk_drag_begin + +extern __typeof (gdk_drag_context_get_type) IA__gdk_drag_context_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_drag_context_get_type IA__gdk_drag_context_get_type + +extern __typeof (gdk_drag_context_new) IA__gdk_drag_context_new __attribute((visibility("hidden"))); +#define gdk_drag_context_new IA__gdk_drag_context_new + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_drag_context_ref) IA__gdk_drag_context_ref __attribute((visibility("hidden"))); +#define gdk_drag_context_ref IA__gdk_drag_context_ref + +extern __typeof (gdk_drag_context_unref) IA__gdk_drag_context_unref __attribute((visibility("hidden"))); +#define gdk_drag_context_unref IA__gdk_drag_context_unref + +#endif +extern __typeof (gdk_drag_drop) IA__gdk_drag_drop __attribute((visibility("hidden"))); +#define gdk_drag_drop IA__gdk_drag_drop + +extern __typeof (gdk_drag_drop_succeeded) IA__gdk_drag_drop_succeeded __attribute((visibility("hidden"))); +#define gdk_drag_drop_succeeded IA__gdk_drag_drop_succeeded + +extern __typeof (gdk_drag_find_window_for_screen) IA__gdk_drag_find_window_for_screen __attribute((visibility("hidden"))); +#define gdk_drag_find_window_for_screen IA__gdk_drag_find_window_for_screen + +extern __typeof (gdk_drag_get_protocol_for_display) IA__gdk_drag_get_protocol_for_display __attribute((visibility("hidden"))); +#define gdk_drag_get_protocol_for_display IA__gdk_drag_get_protocol_for_display + +extern __typeof (gdk_drag_get_selection) IA__gdk_drag_get_selection __attribute((visibility("hidden"))); +#define gdk_drag_get_selection IA__gdk_drag_get_selection + +extern __typeof (gdk_drag_motion) IA__gdk_drag_motion __attribute((visibility("hidden"))); +#define gdk_drag_motion IA__gdk_drag_motion + +extern __typeof (gdk_drag_status) IA__gdk_drag_status __attribute((visibility("hidden"))); +#define gdk_drag_status IA__gdk_drag_status + +extern __typeof (gdk_drop_finish) IA__gdk_drop_finish __attribute((visibility("hidden"))); +#define gdk_drop_finish IA__gdk_drop_finish + +extern __typeof (gdk_drop_reply) IA__gdk_drop_reply __attribute((visibility("hidden"))); +#define gdk_drop_reply IA__gdk_drop_reply + +#endif +#endif +#if IN_HEADER(__GDK_DND_H__) +#if IN_FILE(__GDK_DND_C__) +extern __typeof (gdk_drag_find_window) IA__gdk_drag_find_window __attribute((visibility("hidden"))); +#define gdk_drag_find_window IA__gdk_drag_find_window + +extern __typeof (gdk_drag_get_protocol) IA__gdk_drag_get_protocol __attribute((visibility("hidden"))); +#define gdk_drag_get_protocol IA__gdk_drag_get_protocol + +#endif +#endif +#if IN_HEADER(__GDK_DRAWABLE_H__) +#if IN_FILE(__GDK_DRAW_C__) +extern __typeof (gdk_drawable_copy_to_image) IA__gdk_drawable_copy_to_image __attribute((visibility("hidden"))); +#define gdk_drawable_copy_to_image IA__gdk_drawable_copy_to_image + +extern __typeof (gdk_drawable_get_clip_region) IA__gdk_drawable_get_clip_region __attribute((visibility("hidden"))); +#define gdk_drawable_get_clip_region IA__gdk_drawable_get_clip_region + +extern __typeof (gdk_drawable_get_colormap) IA__gdk_drawable_get_colormap __attribute((visibility("hidden"))); +#define gdk_drawable_get_colormap IA__gdk_drawable_get_colormap + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_drawable_get_data) IA__gdk_drawable_get_data __attribute((visibility("hidden"))); +#define gdk_drawable_get_data IA__gdk_drawable_get_data + +extern __typeof (gdk_drawable_set_data) IA__gdk_drawable_set_data __attribute((visibility("hidden"))); +#define gdk_drawable_set_data IA__gdk_drawable_set_data + +extern __typeof (gdk_drawable_ref) IA__gdk_drawable_ref __attribute((visibility("hidden"))); +#define gdk_drawable_ref IA__gdk_drawable_ref + +extern __typeof (gdk_drawable_unref) IA__gdk_drawable_unref __attribute((visibility("hidden"))); +#define gdk_drawable_unref IA__gdk_drawable_unref + +extern __typeof (gdk_draw_string) IA__gdk_draw_string __attribute((visibility("hidden"))); +#define gdk_draw_string IA__gdk_draw_string + +extern __typeof (gdk_draw_text) IA__gdk_draw_text __attribute((visibility("hidden"))); +#define gdk_draw_text IA__gdk_draw_text + +extern __typeof (gdk_draw_text_wc) IA__gdk_draw_text_wc __attribute((visibility("hidden"))); +#define gdk_draw_text_wc IA__gdk_draw_text_wc + +#endif +extern __typeof (gdk_drawable_get_depth) IA__gdk_drawable_get_depth __attribute((visibility("hidden"))); +#define gdk_drawable_get_depth IA__gdk_drawable_get_depth + +extern __typeof (gdk_drawable_get_display) IA__gdk_drawable_get_display __attribute((visibility("hidden"))); +#define gdk_drawable_get_display IA__gdk_drawable_get_display + +extern __typeof (gdk_drawable_get_image) IA__gdk_drawable_get_image __attribute((visibility("hidden"))); +#define gdk_drawable_get_image IA__gdk_drawable_get_image + +extern __typeof (gdk_drawable_get_screen) IA__gdk_drawable_get_screen __attribute((visibility("hidden"))); +#define gdk_drawable_get_screen IA__gdk_drawable_get_screen + +extern __typeof (gdk_drawable_get_size) IA__gdk_drawable_get_size __attribute((visibility("hidden"))); +#define gdk_drawable_get_size IA__gdk_drawable_get_size + +extern __typeof (gdk_drawable_get_type) IA__gdk_drawable_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_drawable_get_type IA__gdk_drawable_get_type + +extern __typeof (gdk_drawable_get_visible_region) IA__gdk_drawable_get_visible_region __attribute((visibility("hidden"))); +#define gdk_drawable_get_visible_region IA__gdk_drawable_get_visible_region + +extern __typeof (gdk_drawable_get_visual) IA__gdk_drawable_get_visual __attribute((visibility("hidden"))); +#define gdk_drawable_get_visual IA__gdk_drawable_get_visual + +extern __typeof (gdk_drawable_set_colormap) IA__gdk_drawable_set_colormap __attribute((visibility("hidden"))); +#define gdk_drawable_set_colormap IA__gdk_drawable_set_colormap + +extern __typeof (gdk_draw_arc) IA__gdk_draw_arc __attribute((visibility("hidden"))); +#define gdk_draw_arc IA__gdk_draw_arc + +extern __typeof (gdk_draw_drawable) IA__gdk_draw_drawable __attribute((visibility("hidden"))); +#define gdk_draw_drawable IA__gdk_draw_drawable + +extern __typeof (gdk_draw_glyphs) IA__gdk_draw_glyphs __attribute((visibility("hidden"))); +#define gdk_draw_glyphs IA__gdk_draw_glyphs + +extern __typeof (gdk_draw_glyphs_transformed) IA__gdk_draw_glyphs_transformed __attribute((visibility("hidden"))); +#define gdk_draw_glyphs_transformed IA__gdk_draw_glyphs_transformed + +extern __typeof (gdk_draw_image) IA__gdk_draw_image __attribute((visibility("hidden"))); +#define gdk_draw_image IA__gdk_draw_image + +extern __typeof (gdk_draw_line) IA__gdk_draw_line __attribute((visibility("hidden"))); +#define gdk_draw_line IA__gdk_draw_line + +extern __typeof (gdk_draw_lines) IA__gdk_draw_lines __attribute((visibility("hidden"))); +#define gdk_draw_lines IA__gdk_draw_lines + +extern __typeof (gdk_draw_pixbuf) IA__gdk_draw_pixbuf __attribute((visibility("hidden"))); +#define gdk_draw_pixbuf IA__gdk_draw_pixbuf + +extern __typeof (gdk_draw_point) IA__gdk_draw_point __attribute((visibility("hidden"))); +#define gdk_draw_point IA__gdk_draw_point + +extern __typeof (gdk_draw_points) IA__gdk_draw_points __attribute((visibility("hidden"))); +#define gdk_draw_points IA__gdk_draw_points + +extern __typeof (gdk_draw_polygon) IA__gdk_draw_polygon __attribute((visibility("hidden"))); +#define gdk_draw_polygon IA__gdk_draw_polygon + +extern __typeof (gdk_draw_rectangle) IA__gdk_draw_rectangle __attribute((visibility("hidden"))); +#define gdk_draw_rectangle IA__gdk_draw_rectangle + +extern __typeof (gdk_draw_segments) IA__gdk_draw_segments __attribute((visibility("hidden"))); +#define gdk_draw_segments IA__gdk_draw_segments + +extern __typeof (gdk_draw_trapezoids) IA__gdk_draw_trapezoids __attribute((visibility("hidden"))); +#define gdk_draw_trapezoids IA__gdk_draw_trapezoids + +#endif +#endif +#if IN_HEADER(__GDK_DRAWABLE_H__) +#if IN_FILE(__GDK_PANGO_C__) +extern __typeof (gdk_draw_layout) IA__gdk_draw_layout __attribute((visibility("hidden"))); +#define gdk_draw_layout IA__gdk_draw_layout + +extern __typeof (gdk_draw_layout_line) IA__gdk_draw_layout_line __attribute((visibility("hidden"))); +#define gdk_draw_layout_line IA__gdk_draw_layout_line + +extern __typeof (gdk_draw_layout_line_with_colors) IA__gdk_draw_layout_line_with_colors __attribute((visibility("hidden"))); +#define gdk_draw_layout_line_with_colors IA__gdk_draw_layout_line_with_colors + +extern __typeof (gdk_draw_layout_with_colors) IA__gdk_draw_layout_with_colors __attribute((visibility("hidden"))); +#define gdk_draw_layout_with_colors IA__gdk_draw_layout_with_colors + +#endif +#endif +#if IN_HEADER(__GDK_GC_H__) +#if IN_FILE(__GDK_GC_C__) +extern __typeof (gdk_gc_new) IA__gdk_gc_new __attribute((visibility("hidden"))); +#define gdk_gc_new IA__gdk_gc_new + +extern __typeof (gdk_gc_get_type) IA__gdk_gc_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_gc_get_type IA__gdk_gc_get_type + +extern __typeof (gdk_gc_new_with_values) IA__gdk_gc_new_with_values __attribute((visibility("hidden"))); +#define gdk_gc_new_with_values IA__gdk_gc_new_with_values + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_gc_ref) IA__gdk_gc_ref __attribute((visibility("hidden"))); +#define gdk_gc_ref IA__gdk_gc_ref + +extern __typeof (gdk_gc_unref) IA__gdk_gc_unref __attribute((visibility("hidden"))); +#define gdk_gc_unref IA__gdk_gc_unref + +extern __typeof (gdk_gc_set_font) IA__gdk_gc_set_font __attribute((visibility("hidden"))); +#define gdk_gc_set_font IA__gdk_gc_set_font + +#endif +extern __typeof (gdk_gc_get_values) IA__gdk_gc_get_values __attribute((visibility("hidden"))); +#define gdk_gc_get_values IA__gdk_gc_get_values + +extern __typeof (gdk_gc_set_values) IA__gdk_gc_set_values __attribute((visibility("hidden"))); +#define gdk_gc_set_values IA__gdk_gc_set_values + +extern __typeof (gdk_gc_set_foreground) IA__gdk_gc_set_foreground __attribute((visibility("hidden"))); +#define gdk_gc_set_foreground IA__gdk_gc_set_foreground + +extern __typeof (gdk_gc_set_background) IA__gdk_gc_set_background __attribute((visibility("hidden"))); +#define gdk_gc_set_background IA__gdk_gc_set_background + +extern __typeof (gdk_gc_set_function) IA__gdk_gc_set_function __attribute((visibility("hidden"))); +#define gdk_gc_set_function IA__gdk_gc_set_function + +extern __typeof (gdk_gc_set_fill) IA__gdk_gc_set_fill __attribute((visibility("hidden"))); +#define gdk_gc_set_fill IA__gdk_gc_set_fill + +extern __typeof (gdk_gc_set_tile) IA__gdk_gc_set_tile __attribute((visibility("hidden"))); +#define gdk_gc_set_tile IA__gdk_gc_set_tile + +extern __typeof (gdk_gc_set_stipple) IA__gdk_gc_set_stipple __attribute((visibility("hidden"))); +#define gdk_gc_set_stipple IA__gdk_gc_set_stipple + +extern __typeof (gdk_gc_set_ts_origin) IA__gdk_gc_set_ts_origin __attribute((visibility("hidden"))); +#define gdk_gc_set_ts_origin IA__gdk_gc_set_ts_origin + +extern __typeof (gdk_gc_set_clip_origin) IA__gdk_gc_set_clip_origin __attribute((visibility("hidden"))); +#define gdk_gc_set_clip_origin IA__gdk_gc_set_clip_origin + +extern __typeof (gdk_gc_set_clip_mask) IA__gdk_gc_set_clip_mask __attribute((visibility("hidden"))); +#define gdk_gc_set_clip_mask IA__gdk_gc_set_clip_mask + +extern __typeof (gdk_gc_set_clip_rectangle) IA__gdk_gc_set_clip_rectangle __attribute((visibility("hidden"))); +#define gdk_gc_set_clip_rectangle IA__gdk_gc_set_clip_rectangle + +extern __typeof (gdk_gc_set_clip_region) IA__gdk_gc_set_clip_region __attribute((visibility("hidden"))); +#define gdk_gc_set_clip_region IA__gdk_gc_set_clip_region + +extern __typeof (gdk_gc_set_subwindow) IA__gdk_gc_set_subwindow __attribute((visibility("hidden"))); +#define gdk_gc_set_subwindow IA__gdk_gc_set_subwindow + +extern __typeof (gdk_gc_set_exposures) IA__gdk_gc_set_exposures __attribute((visibility("hidden"))); +#define gdk_gc_set_exposures IA__gdk_gc_set_exposures + +extern __typeof (gdk_gc_set_line_attributes) IA__gdk_gc_set_line_attributes __attribute((visibility("hidden"))); +#define gdk_gc_set_line_attributes IA__gdk_gc_set_line_attributes + +extern __typeof (gdk_gc_set_dashes) IA__gdk_gc_set_dashes __attribute((visibility("hidden"))); +#define gdk_gc_set_dashes IA__gdk_gc_set_dashes + +extern __typeof (gdk_gc_offset) IA__gdk_gc_offset __attribute((visibility("hidden"))); +#define gdk_gc_offset IA__gdk_gc_offset + +extern __typeof (gdk_gc_copy) IA__gdk_gc_copy __attribute((visibility("hidden"))); +#define gdk_gc_copy IA__gdk_gc_copy + +extern __typeof (gdk_gc_get_colormap) IA__gdk_gc_get_colormap __attribute((visibility("hidden"))); +#define gdk_gc_get_colormap IA__gdk_gc_get_colormap + +extern __typeof (gdk_gc_set_colormap) IA__gdk_gc_set_colormap __attribute((visibility("hidden"))); +#define gdk_gc_set_colormap IA__gdk_gc_set_colormap + +extern __typeof (gdk_gc_set_rgb_bg_color) IA__gdk_gc_set_rgb_bg_color __attribute((visibility("hidden"))); +#define gdk_gc_set_rgb_bg_color IA__gdk_gc_set_rgb_bg_color + +extern __typeof (gdk_gc_set_rgb_fg_color) IA__gdk_gc_set_rgb_fg_color __attribute((visibility("hidden"))); +#define gdk_gc_set_rgb_fg_color IA__gdk_gc_set_rgb_fg_color + +#endif +#endif +#if IN_HEADER(__GDK_GC_H__) +#if IN_FILE(__GDK_GC_X11_C__) +extern __typeof (gdk_gc_get_screen) IA__gdk_gc_get_screen __attribute((visibility("hidden"))); +#define gdk_gc_get_screen IA__gdk_gc_get_screen + +#endif +#endif +#if IN_HEADER(__GDK_PIXMAP_X11_H__) +#if IN_FILE(__GDK_PIXMAP_X11_C__) +#ifdef GDK_WINDOWING_X11 +extern __typeof (gdk_pixmap_impl_x11_get_type) IA__gdk_pixmap_impl_x11_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_pixmap_impl_x11_get_type IA__gdk_pixmap_impl_x11_get_type + +#endif +#endif +#endif +#if IN_HEADER(__GDK_WINDOW_X11_H__) +#if IN_FILE(__GDK_WINDOW_X11_C__) +#ifdef GDK_WINDOWING_X11 +extern __typeof (gdk_window_impl_x11_get_type) IA__gdk_window_impl_x11_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_window_impl_x11_get_type IA__gdk_window_impl_x11_get_type + +#endif +#endif +#endif +#if IN_HEADER(__GDK_WINDOW_H__) +#if IN_FILE(__GDK_WINDOW_C__) +extern __typeof (gdk_get_default_root_window) IA__gdk_get_default_root_window __attribute((visibility("hidden"))); +#define gdk_get_default_root_window IA__gdk_get_default_root_window + +extern __typeof (gdk_window_add_filter) IA__gdk_window_add_filter __attribute((visibility("hidden"))); +#define gdk_window_add_filter IA__gdk_window_add_filter + +extern __typeof (gdk_window_at_pointer) IA__gdk_window_at_pointer __attribute((visibility("hidden"))); +#define gdk_window_at_pointer IA__gdk_window_at_pointer + +extern __typeof (gdk_window_begin_paint_rect) IA__gdk_window_begin_paint_rect __attribute((visibility("hidden"))); +#define gdk_window_begin_paint_rect IA__gdk_window_begin_paint_rect + +extern __typeof (gdk_window_begin_paint_region) IA__gdk_window_begin_paint_region __attribute((visibility("hidden"))); +#define gdk_window_begin_paint_region IA__gdk_window_begin_paint_region + +extern __typeof (gdk_window_clear) IA__gdk_window_clear __attribute((visibility("hidden"))); +#define gdk_window_clear IA__gdk_window_clear + +extern __typeof (gdk_window_clear_area) IA__gdk_window_clear_area __attribute((visibility("hidden"))); +#define gdk_window_clear_area IA__gdk_window_clear_area + +extern __typeof (gdk_window_clear_area_e) IA__gdk_window_clear_area_e __attribute((visibility("hidden"))); +#define gdk_window_clear_area_e IA__gdk_window_clear_area_e + +extern __typeof (gdk_window_constrain_size) IA__gdk_window_constrain_size __attribute((visibility("hidden"))); +#define gdk_window_constrain_size IA__gdk_window_constrain_size + +extern __typeof (gdk_window_destroy) IA__gdk_window_destroy __attribute((visibility("hidden"))); +#define gdk_window_destroy IA__gdk_window_destroy + +extern __typeof (gdk_window_end_paint) IA__gdk_window_end_paint __attribute((visibility("hidden"))); +#define gdk_window_end_paint IA__gdk_window_end_paint + +extern __typeof (gdk_window_foreign_new) IA__gdk_window_foreign_new __attribute((visibility("hidden"))); +#define gdk_window_foreign_new IA__gdk_window_foreign_new + +extern __typeof (gdk_window_freeze_toplevel_updates_libgtk_only) IA__gdk_window_freeze_toplevel_updates_libgtk_only __attribute((visibility("hidden"))); +#define gdk_window_freeze_toplevel_updates_libgtk_only IA__gdk_window_freeze_toplevel_updates_libgtk_only + +extern __typeof (gdk_window_freeze_updates) IA__gdk_window_freeze_updates __attribute((visibility("hidden"))); +#define gdk_window_freeze_updates IA__gdk_window_freeze_updates + +extern __typeof (gdk_window_get_children) IA__gdk_window_get_children __attribute((visibility("hidden"))); +#define gdk_window_get_children IA__gdk_window_get_children + +extern __typeof (gdk_window_get_internal_paint_info) IA__gdk_window_get_internal_paint_info __attribute((visibility("hidden"))); +#define gdk_window_get_internal_paint_info IA__gdk_window_get_internal_paint_info + +extern __typeof (gdk_window_get_parent) IA__gdk_window_get_parent __attribute((visibility("hidden"))); +#define gdk_window_get_parent IA__gdk_window_get_parent + +extern __typeof (gdk_window_get_pointer) IA__gdk_window_get_pointer __attribute((visibility("hidden"))); +#define gdk_window_get_pointer IA__gdk_window_get_pointer + +extern __typeof (gdk_window_get_position) IA__gdk_window_get_position __attribute((visibility("hidden"))); +#define gdk_window_get_position IA__gdk_window_get_position + +extern __typeof (gdk_window_get_state) IA__gdk_window_get_state __attribute((visibility("hidden"))); +#define gdk_window_get_state IA__gdk_window_get_state + +extern __typeof (gdk_window_get_toplevel) IA__gdk_window_get_toplevel __attribute((visibility("hidden"))); +#define gdk_window_get_toplevel IA__gdk_window_get_toplevel + +extern __typeof (gdk_window_get_toplevels) IA__gdk_window_get_toplevels __attribute((visibility("hidden"))); +#define gdk_window_get_toplevels IA__gdk_window_get_toplevels + +extern __typeof (gdk_window_get_update_area) IA__gdk_window_get_update_area __attribute((visibility("hidden"))); +#define gdk_window_get_update_area IA__gdk_window_get_update_area + +extern __typeof (gdk_window_get_user_data) IA__gdk_window_get_user_data __attribute((visibility("hidden"))); +#define gdk_window_get_user_data IA__gdk_window_get_user_data + +extern __typeof (gdk_window_get_window_type) IA__gdk_window_get_window_type __attribute((visibility("hidden"))); +#define gdk_window_get_window_type IA__gdk_window_get_window_type + +extern __typeof (gdk_window_invalidate_maybe_recurse) IA__gdk_window_invalidate_maybe_recurse __attribute((visibility("hidden"))); +#define gdk_window_invalidate_maybe_recurse IA__gdk_window_invalidate_maybe_recurse + +extern __typeof (gdk_window_invalidate_rect) IA__gdk_window_invalidate_rect __attribute((visibility("hidden"))); +#define gdk_window_invalidate_rect IA__gdk_window_invalidate_rect + +extern __typeof (gdk_window_invalidate_region) IA__gdk_window_invalidate_region __attribute((visibility("hidden"))); +#define gdk_window_invalidate_region IA__gdk_window_invalidate_region + +extern __typeof (gdk_window_is_viewable) IA__gdk_window_is_viewable __attribute((visibility("hidden"))); +#define gdk_window_is_viewable IA__gdk_window_is_viewable + +extern __typeof (gdk_window_is_visible) IA__gdk_window_is_visible __attribute((visibility("hidden"))); +#define gdk_window_is_visible IA__gdk_window_is_visible + +extern __typeof (gdk_window_object_get_type) IA__gdk_window_object_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_window_object_get_type IA__gdk_window_object_get_type + +extern __typeof (gdk_window_peek_children) IA__gdk_window_peek_children __attribute((visibility("hidden"))); +#define gdk_window_peek_children IA__gdk_window_peek_children + +extern __typeof (gdk_window_process_all_updates) IA__gdk_window_process_all_updates __attribute((visibility("hidden"))); +#define gdk_window_process_all_updates IA__gdk_window_process_all_updates + +extern __typeof (gdk_window_process_updates) IA__gdk_window_process_updates __attribute((visibility("hidden"))); +#define gdk_window_process_updates IA__gdk_window_process_updates + +extern __typeof (gdk_window_remove_filter) IA__gdk_window_remove_filter __attribute((visibility("hidden"))); +#define gdk_window_remove_filter IA__gdk_window_remove_filter + +extern __typeof (gdk_window_set_debug_updates) IA__gdk_window_set_debug_updates __attribute((visibility("hidden"))); +#define gdk_window_set_debug_updates IA__gdk_window_set_debug_updates + +extern __typeof (gdk_window_set_user_data) IA__gdk_window_set_user_data __attribute((visibility("hidden"))); +#define gdk_window_set_user_data IA__gdk_window_set_user_data + +extern __typeof (gdk_window_thaw_toplevel_updates_libgtk_only) IA__gdk_window_thaw_toplevel_updates_libgtk_only __attribute((visibility("hidden"))); +#define gdk_window_thaw_toplevel_updates_libgtk_only IA__gdk_window_thaw_toplevel_updates_libgtk_only + +extern __typeof (gdk_window_thaw_updates) IA__gdk_window_thaw_updates __attribute((visibility("hidden"))); +#define gdk_window_thaw_updates IA__gdk_window_thaw_updates + +extern __typeof (gdk_window_set_composited) IA__gdk_window_set_composited __attribute((visibility("hidden"))); +#define gdk_window_set_composited IA__gdk_window_set_composited + +#endif +#endif +#if IN_HEADER(__GDK_WINDOW_H__) +#if IN_FILE(__GDK_DND_X11_C__) +extern __typeof (gdk_window_register_dnd) IA__gdk_window_register_dnd __attribute((visibility("hidden"))); +#define gdk_window_register_dnd IA__gdk_window_register_dnd + +#endif +#endif +#if IN_HEADER(__GDK_WINDOW_H__) +#if IN_FILE(__GDK_GEOMETRY_X11_C__) +extern __typeof (gdk_window_scroll) IA__gdk_window_scroll __attribute((visibility("hidden"))); +#define gdk_window_scroll IA__gdk_window_scroll + +extern __typeof (gdk_window_move_region) IA__gdk_window_move_region __attribute((visibility("hidden"))); +#define gdk_window_move_region IA__gdk_window_move_region + +#endif +#endif +#if IN_HEADER(__GDK_WINDOW_H__) +#if IN_FILE(__GDK_WINDOW_X11_C__) +extern __typeof (gdk_window_new) IA__gdk_window_new __attribute((visibility("hidden"))); +#define gdk_window_new IA__gdk_window_new + +extern __typeof (gdk_window_foreign_new_for_display) IA__gdk_window_foreign_new_for_display __attribute((visibility("hidden"))); +#define gdk_window_foreign_new_for_display IA__gdk_window_foreign_new_for_display + +extern __typeof (gdk_window_lookup) IA__gdk_window_lookup __attribute((visibility("hidden"))); +#define gdk_window_lookup IA__gdk_window_lookup + +extern __typeof (gdk_window_lookup_for_display) IA__gdk_window_lookup_for_display __attribute((visibility("hidden"))); +#define gdk_window_lookup_for_display IA__gdk_window_lookup_for_display + +extern __typeof (gdk_window_show_unraised) IA__gdk_window_show_unraised __attribute((visibility("hidden"))); +#define gdk_window_show_unraised IA__gdk_window_show_unraised + +extern __typeof (gdk_window_show) IA__gdk_window_show __attribute((visibility("hidden"))); +#define gdk_window_show IA__gdk_window_show + +extern __typeof (gdk_window_hide) IA__gdk_window_hide __attribute((visibility("hidden"))); +#define gdk_window_hide IA__gdk_window_hide + +extern __typeof (gdk_window_withdraw) IA__gdk_window_withdraw __attribute((visibility("hidden"))); +#define gdk_window_withdraw IA__gdk_window_withdraw + +extern __typeof (gdk_window_move) IA__gdk_window_move __attribute((visibility("hidden"))); +#define gdk_window_move IA__gdk_window_move + +extern __typeof (gdk_window_resize) IA__gdk_window_resize __attribute((visibility("hidden"))); +#define gdk_window_resize IA__gdk_window_resize + +extern __typeof (gdk_window_move_resize) IA__gdk_window_move_resize __attribute((visibility("hidden"))); +#define gdk_window_move_resize IA__gdk_window_move_resize + +extern __typeof (gdk_window_reparent) IA__gdk_window_reparent __attribute((visibility("hidden"))); +#define gdk_window_reparent IA__gdk_window_reparent + +extern __typeof (gdk_window_raise) IA__gdk_window_raise __attribute((visibility("hidden"))); +#define gdk_window_raise IA__gdk_window_raise + +extern __typeof (gdk_window_lower) IA__gdk_window_lower __attribute((visibility("hidden"))); +#define gdk_window_lower IA__gdk_window_lower + +extern __typeof (gdk_window_focus) IA__gdk_window_focus __attribute((visibility("hidden"))); +#define gdk_window_focus IA__gdk_window_focus + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_window_set_hints) IA__gdk_window_set_hints __attribute((visibility("hidden"))); +#define gdk_window_set_hints IA__gdk_window_set_hints + +extern __typeof (gdk_window_get_deskrelative_origin) IA__gdk_window_get_deskrelative_origin __attribute((visibility("hidden"))); +#define gdk_window_get_deskrelative_origin IA__gdk_window_get_deskrelative_origin + +#endif +extern __typeof (gdk_window_get_type_hint) IA__gdk_window_get_type_hint __attribute((visibility("hidden"))); +#define gdk_window_get_type_hint IA__gdk_window_get_type_hint + +extern __typeof (gdk_window_set_type_hint) IA__gdk_window_set_type_hint __attribute((visibility("hidden"))); +#define gdk_window_set_type_hint IA__gdk_window_set_type_hint + +extern __typeof (gdk_window_set_modal_hint) IA__gdk_window_set_modal_hint __attribute((visibility("hidden"))); +#define gdk_window_set_modal_hint IA__gdk_window_set_modal_hint + +extern __typeof (gdk_window_set_skip_taskbar_hint) IA__gdk_window_set_skip_taskbar_hint __attribute((visibility("hidden"))); +#define gdk_window_set_skip_taskbar_hint IA__gdk_window_set_skip_taskbar_hint + +extern __typeof (gdk_window_set_skip_pager_hint) IA__gdk_window_set_skip_pager_hint __attribute((visibility("hidden"))); +#define gdk_window_set_skip_pager_hint IA__gdk_window_set_skip_pager_hint + +extern __typeof (gdk_window_set_urgency_hint) IA__gdk_window_set_urgency_hint __attribute((visibility("hidden"))); +#define gdk_window_set_urgency_hint IA__gdk_window_set_urgency_hint + +extern __typeof (gdk_window_set_geometry_hints) IA__gdk_window_set_geometry_hints __attribute((visibility("hidden"))); +#define gdk_window_set_geometry_hints IA__gdk_window_set_geometry_hints + +extern __typeof (gdk_window_set_title) IA__gdk_window_set_title __attribute((visibility("hidden"))); +#define gdk_window_set_title IA__gdk_window_set_title + +extern __typeof (gdk_window_set_role) IA__gdk_window_set_role __attribute((visibility("hidden"))); +#define gdk_window_set_role IA__gdk_window_set_role + +extern __typeof (gdk_window_set_startup_id) IA__gdk_window_set_startup_id __attribute((visibility("hidden"))); +#define gdk_window_set_startup_id IA__gdk_window_set_startup_id + +extern __typeof (gdk_window_set_transient_for) IA__gdk_window_set_transient_for __attribute((visibility("hidden"))); +#define gdk_window_set_transient_for IA__gdk_window_set_transient_for + +extern __typeof (gdk_window_set_background) IA__gdk_window_set_background __attribute((visibility("hidden"))); +#define gdk_window_set_background IA__gdk_window_set_background + +extern __typeof (gdk_window_set_back_pixmap) IA__gdk_window_set_back_pixmap __attribute((visibility("hidden"))); +#define gdk_window_set_back_pixmap IA__gdk_window_set_back_pixmap + +extern __typeof (gdk_window_set_cursor) IA__gdk_window_set_cursor __attribute((visibility("hidden"))); +#define gdk_window_set_cursor IA__gdk_window_set_cursor + +extern __typeof (gdk_window_get_geometry) IA__gdk_window_get_geometry __attribute((visibility("hidden"))); +#define gdk_window_get_geometry IA__gdk_window_get_geometry + +extern __typeof (gdk_window_get_origin) IA__gdk_window_get_origin __attribute((visibility("hidden"))); +#define gdk_window_get_origin IA__gdk_window_get_origin + +extern __typeof (gdk_window_get_root_origin) IA__gdk_window_get_root_origin __attribute((visibility("hidden"))); +#define gdk_window_get_root_origin IA__gdk_window_get_root_origin + +extern __typeof (gdk_window_get_frame_extents) IA__gdk_window_get_frame_extents __attribute((visibility("hidden"))); +#define gdk_window_get_frame_extents IA__gdk_window_get_frame_extents + +extern __typeof (gdk_window_get_events) IA__gdk_window_get_events __attribute((visibility("hidden"))); +#define gdk_window_get_events IA__gdk_window_get_events + +extern __typeof (gdk_window_set_events) IA__gdk_window_set_events __attribute((visibility("hidden"))); +#define gdk_window_set_events IA__gdk_window_set_events + +extern __typeof (gdk_window_shape_combine_mask) IA__gdk_window_shape_combine_mask __attribute((visibility("hidden"))); +#define gdk_window_shape_combine_mask IA__gdk_window_shape_combine_mask + +extern __typeof (gdk_window_shape_combine_region) IA__gdk_window_shape_combine_region __attribute((visibility("hidden"))); +#define gdk_window_shape_combine_region IA__gdk_window_shape_combine_region + +extern __typeof (gdk_window_input_shape_combine_mask) IA__gdk_window_input_shape_combine_mask __attribute((visibility("hidden"))); +#define gdk_window_input_shape_combine_mask IA__gdk_window_input_shape_combine_mask + +extern __typeof (gdk_window_input_shape_combine_region) IA__gdk_window_input_shape_combine_region __attribute((visibility("hidden"))); +#define gdk_window_input_shape_combine_region IA__gdk_window_input_shape_combine_region + +extern __typeof (gdk_window_set_override_redirect) IA__gdk_window_set_override_redirect __attribute((visibility("hidden"))); +#define gdk_window_set_override_redirect IA__gdk_window_set_override_redirect + +extern __typeof (gdk_window_set_accept_focus) IA__gdk_window_set_accept_focus __attribute((visibility("hidden"))); +#define gdk_window_set_accept_focus IA__gdk_window_set_accept_focus + +extern __typeof (gdk_window_set_focus_on_map) IA__gdk_window_set_focus_on_map __attribute((visibility("hidden"))); +#define gdk_window_set_focus_on_map IA__gdk_window_set_focus_on_map + +extern __typeof (gdk_window_set_icon_list) IA__gdk_window_set_icon_list __attribute((visibility("hidden"))); +#define gdk_window_set_icon_list IA__gdk_window_set_icon_list + +extern __typeof (gdk_window_set_icon) IA__gdk_window_set_icon __attribute((visibility("hidden"))); +#define gdk_window_set_icon IA__gdk_window_set_icon + +extern __typeof (gdk_window_set_icon_name) IA__gdk_window_set_icon_name __attribute((visibility("hidden"))); +#define gdk_window_set_icon_name IA__gdk_window_set_icon_name + +extern __typeof (gdk_window_beep) IA__gdk_window_beep __attribute((visibility("hidden"))); +#define gdk_window_beep IA__gdk_window_beep + +extern __typeof (gdk_window_set_opacity) IA__gdk_window_set_opacity __attribute((visibility("hidden"))); +#define gdk_window_set_opacity IA__gdk_window_set_opacity + +extern __typeof (gdk_window_iconify) IA__gdk_window_iconify __attribute((visibility("hidden"))); +#define gdk_window_iconify IA__gdk_window_iconify + +extern __typeof (gdk_window_deiconify) IA__gdk_window_deiconify __attribute((visibility("hidden"))); +#define gdk_window_deiconify IA__gdk_window_deiconify + +extern __typeof (gdk_window_stick) IA__gdk_window_stick __attribute((visibility("hidden"))); +#define gdk_window_stick IA__gdk_window_stick + +extern __typeof (gdk_window_unstick) IA__gdk_window_unstick __attribute((visibility("hidden"))); +#define gdk_window_unstick IA__gdk_window_unstick + +extern __typeof (gdk_window_maximize) IA__gdk_window_maximize __attribute((visibility("hidden"))); +#define gdk_window_maximize IA__gdk_window_maximize + +extern __typeof (gdk_window_unmaximize) IA__gdk_window_unmaximize __attribute((visibility("hidden"))); +#define gdk_window_unmaximize IA__gdk_window_unmaximize + +extern __typeof (gdk_window_fullscreen) IA__gdk_window_fullscreen __attribute((visibility("hidden"))); +#define gdk_window_fullscreen IA__gdk_window_fullscreen + +extern __typeof (gdk_window_unfullscreen) IA__gdk_window_unfullscreen __attribute((visibility("hidden"))); +#define gdk_window_unfullscreen IA__gdk_window_unfullscreen + +extern __typeof (gdk_window_set_keep_above) IA__gdk_window_set_keep_above __attribute((visibility("hidden"))); +#define gdk_window_set_keep_above IA__gdk_window_set_keep_above + +extern __typeof (gdk_window_set_keep_below) IA__gdk_window_set_keep_below __attribute((visibility("hidden"))); +#define gdk_window_set_keep_below IA__gdk_window_set_keep_below + +extern __typeof (gdk_window_get_group) IA__gdk_window_get_group __attribute((visibility("hidden"))); +#define gdk_window_get_group IA__gdk_window_get_group + +extern __typeof (gdk_window_set_group) IA__gdk_window_set_group __attribute((visibility("hidden"))); +#define gdk_window_set_group IA__gdk_window_set_group + +extern __typeof (gdk_window_get_decorations) IA__gdk_window_get_decorations __attribute((visibility("hidden"))); +#define gdk_window_get_decorations IA__gdk_window_get_decorations + +extern __typeof (gdk_window_set_decorations) IA__gdk_window_set_decorations __attribute((visibility("hidden"))); +#define gdk_window_set_decorations IA__gdk_window_set_decorations + +extern __typeof (gdk_window_set_functions) IA__gdk_window_set_functions __attribute((visibility("hidden"))); +#define gdk_window_set_functions IA__gdk_window_set_functions + +extern __typeof (gdk_window_set_child_shapes) IA__gdk_window_set_child_shapes __attribute((visibility("hidden"))); +#define gdk_window_set_child_shapes IA__gdk_window_set_child_shapes + +extern __typeof (gdk_window_merge_child_shapes) IA__gdk_window_merge_child_shapes __attribute((visibility("hidden"))); +#define gdk_window_merge_child_shapes IA__gdk_window_merge_child_shapes + +extern __typeof (gdk_window_set_child_input_shapes) IA__gdk_window_set_child_input_shapes __attribute((visibility("hidden"))); +#define gdk_window_set_child_input_shapes IA__gdk_window_set_child_input_shapes + +extern __typeof (gdk_window_merge_child_input_shapes) IA__gdk_window_merge_child_input_shapes __attribute((visibility("hidden"))); +#define gdk_window_merge_child_input_shapes IA__gdk_window_merge_child_input_shapes + +extern __typeof (gdk_window_set_static_gravities) IA__gdk_window_set_static_gravities __attribute((visibility("hidden"))); +#define gdk_window_set_static_gravities IA__gdk_window_set_static_gravities + +extern __typeof (gdk_window_begin_move_drag) IA__gdk_window_begin_move_drag __attribute((visibility("hidden"))); +#define gdk_window_begin_move_drag IA__gdk_window_begin_move_drag + +extern __typeof (gdk_window_begin_resize_drag) IA__gdk_window_begin_resize_drag __attribute((visibility("hidden"))); +#define gdk_window_begin_resize_drag IA__gdk_window_begin_resize_drag + +extern __typeof (gdk_window_enable_synchronized_configure) IA__gdk_window_enable_synchronized_configure __attribute((visibility("hidden"))); +#define gdk_window_enable_synchronized_configure IA__gdk_window_enable_synchronized_configure + +extern __typeof (gdk_window_configure_finished) IA__gdk_window_configure_finished __attribute((visibility("hidden"))); +#define gdk_window_configure_finished IA__gdk_window_configure_finished + +#endif +#endif +#if IN_HEADER(__GDK_IMAGE_H__) +#if IN_FILE(__GDK_IMAGE_C__) +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_image_ref) IA__gdk_image_ref __attribute((visibility("hidden"))); +#define gdk_image_ref IA__gdk_image_ref + +extern __typeof (gdk_image_unref) IA__gdk_image_unref __attribute((visibility("hidden"))); +#define gdk_image_unref IA__gdk_image_unref + +extern __typeof (gdk_image_get) IA__gdk_image_get __attribute((visibility("hidden"))); +#define gdk_image_get IA__gdk_image_get + +#endif +extern __typeof (gdk_image_set_colormap) IA__gdk_image_set_colormap __attribute((visibility("hidden"))); +#define gdk_image_set_colormap IA__gdk_image_set_colormap + +extern __typeof (gdk_image_get_colormap) IA__gdk_image_get_colormap __attribute((visibility("hidden"))); +#define gdk_image_get_colormap IA__gdk_image_get_colormap + +extern __typeof (gdk_image_new) IA__gdk_image_new __attribute((visibility("hidden"))); +#define gdk_image_new IA__gdk_image_new + +#endif +#endif +#if IN_HEADER(__GDK_IMAGE_H__) +#if IN_FILE(__GDK_IMAGE_X11_C__) +#ifdef GDK_ENABLE_BROKEN +extern __typeof (gdk_image_new_bitmap) IA__gdk_image_new_bitmap __attribute((visibility("hidden"))); +#define gdk_image_new_bitmap IA__gdk_image_new_bitmap + +#endif +extern __typeof (gdk_image_get_pixel) IA__gdk_image_get_pixel __attribute((visibility("hidden"))); +#define gdk_image_get_pixel IA__gdk_image_get_pixel + +extern __typeof (gdk_image_put_pixel) IA__gdk_image_put_pixel __attribute((visibility("hidden"))); +#define gdk_image_put_pixel IA__gdk_image_put_pixel + +extern __typeof (gdk_image_get_type) IA__gdk_image_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_image_get_type IA__gdk_image_get_type + +#endif +#endif +#if IN_HEADER(__GDK_KEYS_H__) +#if IN_FILE(__GDK_KEYS_C__) +extern __typeof (gdk_keymap_get_default) IA__gdk_keymap_get_default __attribute((visibility("hidden"))); +#define gdk_keymap_get_default IA__gdk_keymap_get_default + +extern __typeof (gdk_keymap_get_type) IA__gdk_keymap_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_keymap_get_type IA__gdk_keymap_get_type + +extern __typeof (gdk_keyval_is_lower) IA__gdk_keyval_is_lower __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_keyval_is_lower IA__gdk_keyval_is_lower + +extern __typeof (gdk_keyval_is_upper) IA__gdk_keyval_is_upper __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_keyval_is_upper IA__gdk_keyval_is_upper + +extern __typeof (gdk_keyval_to_lower) IA__gdk_keyval_to_lower __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_keyval_to_lower IA__gdk_keyval_to_lower + +extern __typeof (gdk_keyval_to_upper) IA__gdk_keyval_to_upper __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_keyval_to_upper IA__gdk_keyval_to_upper + +#endif +#endif +#if IN_HEADER(__GDK_KEYS_H__) +#if IN_FILE(__GDK_KEYUNI_C__) +extern __typeof (gdk_keyval_to_unicode) IA__gdk_keyval_to_unicode __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_keyval_to_unicode IA__gdk_keyval_to_unicode + +extern __typeof (gdk_unicode_to_keyval) IA__gdk_unicode_to_keyval __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_unicode_to_keyval IA__gdk_unicode_to_keyval + +#endif +#endif +#if IN_HEADER(__GDK_KEYS_H__) +#if IN_FILE(__GDK_KEYS_X11_C__) +extern __typeof (gdk_keymap_get_direction) IA__gdk_keymap_get_direction __attribute((visibility("hidden"))); +#define gdk_keymap_get_direction IA__gdk_keymap_get_direction + +extern __typeof (gdk_keymap_get_entries_for_keycode) IA__gdk_keymap_get_entries_for_keycode __attribute((visibility("hidden"))); +#define gdk_keymap_get_entries_for_keycode IA__gdk_keymap_get_entries_for_keycode + +extern __typeof (gdk_keymap_get_entries_for_keyval) IA__gdk_keymap_get_entries_for_keyval __attribute((visibility("hidden"))); +#define gdk_keymap_get_entries_for_keyval IA__gdk_keymap_get_entries_for_keyval + +extern __typeof (gdk_keymap_get_for_display) IA__gdk_keymap_get_for_display __attribute((visibility("hidden"))); +#define gdk_keymap_get_for_display IA__gdk_keymap_get_for_display + +extern __typeof (gdk_keymap_have_bidi_layouts) IA__gdk_keymap_have_bidi_layouts __attribute((visibility("hidden"))); +#define gdk_keymap_have_bidi_layouts IA__gdk_keymap_have_bidi_layouts + +extern __typeof (gdk_keymap_lookup_key) IA__gdk_keymap_lookup_key __attribute((visibility("hidden"))); +#define gdk_keymap_lookup_key IA__gdk_keymap_lookup_key + +extern __typeof (gdk_keymap_translate_keyboard_state) IA__gdk_keymap_translate_keyboard_state __attribute((visibility("hidden"))); +#define gdk_keymap_translate_keyboard_state IA__gdk_keymap_translate_keyboard_state + +extern __typeof (gdk_keyval_convert_case) IA__gdk_keyval_convert_case __attribute((visibility("hidden"))); +#define gdk_keyval_convert_case IA__gdk_keyval_convert_case + +extern __typeof (gdk_keyval_from_name) IA__gdk_keyval_from_name __attribute((visibility("hidden"))); +#define gdk_keyval_from_name IA__gdk_keyval_from_name + +extern __typeof (gdk_keyval_name) IA__gdk_keyval_name __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_keyval_name IA__gdk_keyval_name + +#endif +#endif +#if IN_HEADER(__GDK_KEYS_H__) +#if IN_FILE(__GDK_KEYS_DIRECTFB_C__) +extern __typeof (gdk_keymap_get_direction) IA__gdk_keymap_get_direction __attribute((visibility("hidden"))); +#define gdk_keymap_get_direction IA__gdk_keymap_get_direction + +extern __typeof (gdk_keymap_get_entries_for_keycode) IA__gdk_keymap_get_entries_for_keycode __attribute((visibility("hidden"))); +#define gdk_keymap_get_entries_for_keycode IA__gdk_keymap_get_entries_for_keycode + +extern __typeof (gdk_keymap_get_entries_for_keyval) IA__gdk_keymap_get_entries_for_keyval __attribute((visibility("hidden"))); +#define gdk_keymap_get_entries_for_keyval IA__gdk_keymap_get_entries_for_keyval + +extern __typeof (gdk_keymap_get_for_display) IA__gdk_keymap_get_for_display __attribute((visibility("hidden"))); +#define gdk_keymap_get_for_display IA__gdk_keymap_get_for_display + +extern __typeof (gdk_keymap_lookup_key) IA__gdk_keymap_lookup_key __attribute((visibility("hidden"))); +#define gdk_keymap_lookup_key IA__gdk_keymap_lookup_key + +extern __typeof (gdk_keymap_translate_keyboard_state) IA__gdk_keymap_translate_keyboard_state __attribute((visibility("hidden"))); +#define gdk_keymap_translate_keyboard_state IA__gdk_keymap_translate_keyboard_state + +extern __typeof (gdk_keyval_from_name) IA__gdk_keyval_from_name __attribute((visibility("hidden"))); +#define gdk_keyval_from_name IA__gdk_keyval_from_name + +extern __typeof (gdk_keyval_name) IA__gdk_keyval_name __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_keyval_name IA__gdk_keyval_name + +#endif +#endif +#if IN_HEADER(__GDK_VISUAL_H__) +#if IN_FILE(__GDK_VISUAL_C__) +extern __typeof (gdk_list_visuals) IA__gdk_list_visuals __attribute((visibility("hidden"))); +#define gdk_list_visuals IA__gdk_list_visuals + +extern __typeof (gdk_visual_get_system) IA__gdk_visual_get_system __attribute((visibility("hidden"))); +#define gdk_visual_get_system IA__gdk_visual_get_system + +#endif +#endif +#if IN_HEADER(__GDK_VISUAL_H__) +#if IN_FILE(__GDK_VISUAL_X11_C__) +extern __typeof (gdk_query_depths) IA__gdk_query_depths __attribute((visibility("hidden"))); +#define gdk_query_depths IA__gdk_query_depths + +extern __typeof (gdk_query_visual_types) IA__gdk_query_visual_types __attribute((visibility("hidden"))); +#define gdk_query_visual_types IA__gdk_query_visual_types + +extern __typeof (gdk_visual_get_best) IA__gdk_visual_get_best __attribute((visibility("hidden"))); +#define gdk_visual_get_best IA__gdk_visual_get_best + +extern __typeof (gdk_visual_get_best_depth) IA__gdk_visual_get_best_depth __attribute((visibility("hidden"))); +#define gdk_visual_get_best_depth IA__gdk_visual_get_best_depth + +extern __typeof (gdk_visual_get_best_type) IA__gdk_visual_get_best_type __attribute((visibility("hidden"))); +#define gdk_visual_get_best_type IA__gdk_visual_get_best_type + +extern __typeof (gdk_visual_get_best_with_both) IA__gdk_visual_get_best_with_both __attribute((visibility("hidden"))); +#define gdk_visual_get_best_with_both IA__gdk_visual_get_best_with_both + +extern __typeof (gdk_visual_get_best_with_depth) IA__gdk_visual_get_best_with_depth __attribute((visibility("hidden"))); +#define gdk_visual_get_best_with_depth IA__gdk_visual_get_best_with_depth + +extern __typeof (gdk_visual_get_best_with_type) IA__gdk_visual_get_best_with_type __attribute((visibility("hidden"))); +#define gdk_visual_get_best_with_type IA__gdk_visual_get_best_with_type + +extern __typeof (gdk_visual_get_screen) IA__gdk_visual_get_screen __attribute((visibility("hidden"))); +#define gdk_visual_get_screen IA__gdk_visual_get_screen + +extern __typeof (gdk_visual_get_type) IA__gdk_visual_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_visual_get_type IA__gdk_visual_get_type + +#endif +#endif +#if IN_HEADER(__GDK_X_H__) +#if IN_FILE(__GDK_EVENTS_X11_C__) +extern __typeof (gdk_net_wm_supports) IA__gdk_net_wm_supports __attribute((visibility("hidden"))); +#define gdk_net_wm_supports IA__gdk_net_wm_supports + +#endif +#endif +#if IN_HEADER(__GDK_PANGO_H__) +#if IN_FILE(__GDK_PANGO_C__) +extern __typeof (gdk_pango_attr_emboss_color_new) IA__gdk_pango_attr_emboss_color_new __attribute((visibility("hidden"))); +#define gdk_pango_attr_emboss_color_new IA__gdk_pango_attr_emboss_color_new + +extern __typeof (gdk_pango_attr_embossed_new) IA__gdk_pango_attr_embossed_new __attribute((visibility("hidden"))); +#define gdk_pango_attr_embossed_new IA__gdk_pango_attr_embossed_new + +extern __typeof (gdk_pango_attr_stipple_new) IA__gdk_pango_attr_stipple_new __attribute((visibility("hidden"))); +#define gdk_pango_attr_stipple_new IA__gdk_pango_attr_stipple_new + +extern __typeof (gdk_pango_context_get) IA__gdk_pango_context_get __attribute((visibility("hidden"))); +#define gdk_pango_context_get IA__gdk_pango_context_get + +extern __typeof (gdk_pango_context_get_for_screen) IA__gdk_pango_context_get_for_screen __attribute((visibility("hidden"))); +#define gdk_pango_context_get_for_screen IA__gdk_pango_context_get_for_screen + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_pango_context_set_colormap) IA__gdk_pango_context_set_colormap __attribute((visibility("hidden"))); +#define gdk_pango_context_set_colormap IA__gdk_pango_context_set_colormap + +#endif +extern __typeof (gdk_pango_layout_get_clip_region) IA__gdk_pango_layout_get_clip_region __attribute((visibility("hidden"))); +#define gdk_pango_layout_get_clip_region IA__gdk_pango_layout_get_clip_region + +extern __typeof (gdk_pango_layout_line_get_clip_region) IA__gdk_pango_layout_line_get_clip_region __attribute((visibility("hidden"))); +#define gdk_pango_layout_line_get_clip_region IA__gdk_pango_layout_line_get_clip_region + +extern __typeof (gdk_pango_renderer_get_default) IA__gdk_pango_renderer_get_default __attribute((visibility("hidden"))); +#define gdk_pango_renderer_get_default IA__gdk_pango_renderer_get_default + +extern __typeof (gdk_pango_renderer_get_type) IA__gdk_pango_renderer_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_pango_renderer_get_type IA__gdk_pango_renderer_get_type + +extern __typeof (gdk_pango_renderer_new) IA__gdk_pango_renderer_new __attribute((visibility("hidden"))); +#define gdk_pango_renderer_new IA__gdk_pango_renderer_new + +extern __typeof (gdk_pango_renderer_set_drawable) IA__gdk_pango_renderer_set_drawable __attribute((visibility("hidden"))); +#define gdk_pango_renderer_set_drawable IA__gdk_pango_renderer_set_drawable + +extern __typeof (gdk_pango_renderer_set_gc) IA__gdk_pango_renderer_set_gc __attribute((visibility("hidden"))); +#define gdk_pango_renderer_set_gc IA__gdk_pango_renderer_set_gc + +extern __typeof (gdk_pango_renderer_set_override_color) IA__gdk_pango_renderer_set_override_color __attribute((visibility("hidden"))); +#define gdk_pango_renderer_set_override_color IA__gdk_pango_renderer_set_override_color + +extern __typeof (gdk_pango_renderer_set_stipple) IA__gdk_pango_renderer_set_stipple __attribute((visibility("hidden"))); +#define gdk_pango_renderer_set_stipple IA__gdk_pango_renderer_set_stipple + +#endif +#endif +#if IN_HEADER(__GDK_PIXBUF_H__) +#if IN_FILE(__GDK_PIXBUF_DRAWABLE_C__) +extern __typeof (gdk_pixbuf_get_from_drawable) IA__gdk_pixbuf_get_from_drawable __attribute((visibility("hidden"))); +#define gdk_pixbuf_get_from_drawable IA__gdk_pixbuf_get_from_drawable + +extern __typeof (gdk_pixbuf_get_from_image) IA__gdk_pixbuf_get_from_image __attribute((visibility("hidden"))); +#define gdk_pixbuf_get_from_image IA__gdk_pixbuf_get_from_image + +#endif +#endif +#if IN_HEADER(__GDK_PIXBUF_H__) +#if IN_FILE(__GDK_PIXBUF_RENDER_C__) +extern __typeof (gdk_pixbuf_render_pixmap_and_mask) IA__gdk_pixbuf_render_pixmap_and_mask __attribute((visibility("hidden"))); +#define gdk_pixbuf_render_pixmap_and_mask IA__gdk_pixbuf_render_pixmap_and_mask + +extern __typeof (gdk_pixbuf_render_pixmap_and_mask_for_colormap) IA__gdk_pixbuf_render_pixmap_and_mask_for_colormap __attribute((visibility("hidden"))); +#define gdk_pixbuf_render_pixmap_and_mask_for_colormap IA__gdk_pixbuf_render_pixmap_and_mask_for_colormap + +extern __typeof (gdk_pixbuf_render_threshold_alpha) IA__gdk_pixbuf_render_threshold_alpha __attribute((visibility("hidden"))); +#define gdk_pixbuf_render_threshold_alpha IA__gdk_pixbuf_render_threshold_alpha + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_pixbuf_render_to_drawable) IA__gdk_pixbuf_render_to_drawable __attribute((visibility("hidden"))); +#define gdk_pixbuf_render_to_drawable IA__gdk_pixbuf_render_to_drawable + +extern __typeof (gdk_pixbuf_render_to_drawable_alpha) IA__gdk_pixbuf_render_to_drawable_alpha __attribute((visibility("hidden"))); +#define gdk_pixbuf_render_to_drawable_alpha IA__gdk_pixbuf_render_to_drawable_alpha + +#endif +#endif +#endif +#if IN_HEADER(__GDK_PIXMAP_H__) +#if IN_FILE(__GDK_PIXMAP_C__) +extern __typeof (gdk_pixmap_colormap_create_from_xpm) IA__gdk_pixmap_colormap_create_from_xpm __attribute((visibility("hidden"))); +#define gdk_pixmap_colormap_create_from_xpm IA__gdk_pixmap_colormap_create_from_xpm + +extern __typeof (gdk_pixmap_create_from_xpm) IA__gdk_pixmap_create_from_xpm __attribute((visibility("hidden"))); +#define gdk_pixmap_create_from_xpm IA__gdk_pixmap_create_from_xpm + +extern __typeof (gdk_pixmap_colormap_create_from_xpm_d) IA__gdk_pixmap_colormap_create_from_xpm_d __attribute((visibility("hidden"))); +#define gdk_pixmap_colormap_create_from_xpm_d IA__gdk_pixmap_colormap_create_from_xpm_d + +extern __typeof (gdk_pixmap_create_from_xpm_d) IA__gdk_pixmap_create_from_xpm_d __attribute((visibility("hidden"))); +#define gdk_pixmap_create_from_xpm_d IA__gdk_pixmap_create_from_xpm_d + +extern __typeof (gdk_pixmap_get_type) IA__gdk_pixmap_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_pixmap_get_type IA__gdk_pixmap_get_type + +#endif +#endif +#if IN_HEADER(__GDK_PIXMAP_H__) +#if IN_FILE(__GDK_PIXMAP_X11_C__) +extern __typeof (gdk_pixmap_create_from_data) IA__gdk_pixmap_create_from_data __attribute((visibility("hidden"))); +#define gdk_pixmap_create_from_data IA__gdk_pixmap_create_from_data + +extern __typeof (gdk_pixmap_foreign_new) IA__gdk_pixmap_foreign_new __attribute((visibility("hidden"))); +#define gdk_pixmap_foreign_new IA__gdk_pixmap_foreign_new + +extern __typeof (gdk_pixmap_foreign_new_for_display) IA__gdk_pixmap_foreign_new_for_display __attribute((visibility("hidden"))); +#define gdk_pixmap_foreign_new_for_display IA__gdk_pixmap_foreign_new_for_display + +extern __typeof (gdk_pixmap_foreign_new_for_screen) IA__gdk_pixmap_foreign_new_for_screen __attribute((visibility("hidden"))); +#define gdk_pixmap_foreign_new_for_screen IA__gdk_pixmap_foreign_new_for_screen + +extern __typeof (gdk_pixmap_lookup) IA__gdk_pixmap_lookup __attribute((visibility("hidden"))); +#define gdk_pixmap_lookup IA__gdk_pixmap_lookup + +extern __typeof (gdk_pixmap_lookup_for_display) IA__gdk_pixmap_lookup_for_display __attribute((visibility("hidden"))); +#define gdk_pixmap_lookup_for_display IA__gdk_pixmap_lookup_for_display + +extern __typeof (gdk_pixmap_new) IA__gdk_pixmap_new __attribute((visibility("hidden"))); +#define gdk_pixmap_new IA__gdk_pixmap_new + +#endif +#endif +#if IN_HEADER(__GDK_REGION_H__) +#if IN_FILE(__GDK_REGION_GENERIC_C__) +extern __typeof (gdk_region_copy) IA__gdk_region_copy __attribute((visibility("hidden"))); +#define gdk_region_copy IA__gdk_region_copy + +extern __typeof (gdk_region_destroy) IA__gdk_region_destroy __attribute((visibility("hidden"))); +#define gdk_region_destroy IA__gdk_region_destroy + +extern __typeof (gdk_region_empty) IA__gdk_region_empty __attribute((visibility("hidden"))); +#define gdk_region_empty IA__gdk_region_empty + +extern __typeof (gdk_region_equal) IA__gdk_region_equal __attribute((visibility("hidden"))); +#define gdk_region_equal IA__gdk_region_equal + +extern __typeof (gdk_region_get_clipbox) IA__gdk_region_get_clipbox __attribute((visibility("hidden"))); +#define gdk_region_get_clipbox IA__gdk_region_get_clipbox + +extern __typeof (gdk_region_get_rectangles) IA__gdk_region_get_rectangles __attribute((visibility("hidden"))); +#define gdk_region_get_rectangles IA__gdk_region_get_rectangles + +extern __typeof (gdk_region_intersect) IA__gdk_region_intersect __attribute((visibility("hidden"))); +#define gdk_region_intersect IA__gdk_region_intersect + +extern __typeof (gdk_region_new) IA__gdk_region_new __attribute((visibility("hidden"))); +#define gdk_region_new IA__gdk_region_new + +extern __typeof (gdk_region_offset) IA__gdk_region_offset __attribute((visibility("hidden"))); +#define gdk_region_offset IA__gdk_region_offset + +extern __typeof (gdk_region_point_in) IA__gdk_region_point_in __attribute((visibility("hidden"))); +#define gdk_region_point_in IA__gdk_region_point_in + +extern __typeof (gdk_region_rectangle) IA__gdk_region_rectangle __attribute((visibility("hidden"))); +#define gdk_region_rectangle IA__gdk_region_rectangle + +extern __typeof (gdk_region_rect_in) IA__gdk_region_rect_in __attribute((visibility("hidden"))); +#define gdk_region_rect_in IA__gdk_region_rect_in + +extern __typeof (gdk_region_shrink) IA__gdk_region_shrink __attribute((visibility("hidden"))); +#define gdk_region_shrink IA__gdk_region_shrink + +extern __typeof (gdk_region_spans_intersect_foreach) IA__gdk_region_spans_intersect_foreach __attribute((visibility("hidden"))); +#define gdk_region_spans_intersect_foreach IA__gdk_region_spans_intersect_foreach + +extern __typeof (gdk_region_subtract) IA__gdk_region_subtract __attribute((visibility("hidden"))); +#define gdk_region_subtract IA__gdk_region_subtract + +extern __typeof (gdk_region_union) IA__gdk_region_union __attribute((visibility("hidden"))); +#define gdk_region_union IA__gdk_region_union + +extern __typeof (gdk_region_union_with_rect) IA__gdk_region_union_with_rect __attribute((visibility("hidden"))); +#define gdk_region_union_with_rect IA__gdk_region_union_with_rect + +extern __typeof (gdk_region_xor) IA__gdk_region_xor __attribute((visibility("hidden"))); +#define gdk_region_xor IA__gdk_region_xor + +#endif +#endif +#if IN_HEADER(__GDK_REGION_H__) +#if IN_FILE(__GDK_POLYREG_GENERIC_C__) +extern __typeof (gdk_region_polygon) IA__gdk_region_polygon __attribute((visibility("hidden"))); +#define gdk_region_polygon IA__gdk_region_polygon + +#endif +#endif +#if IN_HEADER(__GDK_RGB_H__) +#if IN_FILE(__GDK_RGB_C__) +extern __typeof (gdk_rgb_cmap_free) IA__gdk_rgb_cmap_free __attribute((visibility("hidden"))); +#define gdk_rgb_cmap_free IA__gdk_rgb_cmap_free + +extern __typeof (gdk_rgb_cmap_new) IA__gdk_rgb_cmap_new __attribute((visibility("hidden"))); +#define gdk_rgb_cmap_new IA__gdk_rgb_cmap_new + +extern __typeof (gdk_rgb_colormap_ditherable) IA__gdk_rgb_colormap_ditherable __attribute((visibility("hidden"))); +#define gdk_rgb_colormap_ditherable IA__gdk_rgb_colormap_ditherable + +extern __typeof (gdk_rgb_ditherable) IA__gdk_rgb_ditherable __attribute((visibility("hidden"))); +#define gdk_rgb_ditherable IA__gdk_rgb_ditherable + +extern __typeof (gdk_rgb_find_color) IA__gdk_rgb_find_color __attribute((visibility("hidden"))); +#define gdk_rgb_find_color IA__gdk_rgb_find_color + +extern __typeof (gdk_rgb_get_colormap) IA__gdk_rgb_get_colormap __attribute((visibility("hidden"))); +#define gdk_rgb_get_colormap IA__gdk_rgb_get_colormap + +extern __typeof (gdk_rgb_get_visual) IA__gdk_rgb_get_visual __attribute((visibility("hidden"))); +#define gdk_rgb_get_visual IA__gdk_rgb_get_visual + +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_rgb_init) IA__gdk_rgb_init __attribute((visibility("hidden"))); +#define gdk_rgb_init IA__gdk_rgb_init + +extern __typeof (gdk_rgb_xpixel_from_rgb) IA__gdk_rgb_xpixel_from_rgb __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_rgb_xpixel_from_rgb IA__gdk_rgb_xpixel_from_rgb + +extern __typeof (gdk_rgb_gc_set_background) IA__gdk_rgb_gc_set_background __attribute((visibility("hidden"))); +#define gdk_rgb_gc_set_background IA__gdk_rgb_gc_set_background + +extern __typeof (gdk_rgb_gc_set_foreground) IA__gdk_rgb_gc_set_foreground __attribute((visibility("hidden"))); +#define gdk_rgb_gc_set_foreground IA__gdk_rgb_gc_set_foreground + +#endif +extern __typeof (gdk_rgb_set_install) IA__gdk_rgb_set_install __attribute((visibility("hidden"))); +#define gdk_rgb_set_install IA__gdk_rgb_set_install + +extern __typeof (gdk_rgb_set_min_colors) IA__gdk_rgb_set_min_colors __attribute((visibility("hidden"))); +#define gdk_rgb_set_min_colors IA__gdk_rgb_set_min_colors + +extern __typeof (gdk_rgb_set_verbose) IA__gdk_rgb_set_verbose __attribute((visibility("hidden"))); +#define gdk_rgb_set_verbose IA__gdk_rgb_set_verbose + +extern __typeof (gdk_draw_gray_image) IA__gdk_draw_gray_image __attribute((visibility("hidden"))); +#define gdk_draw_gray_image IA__gdk_draw_gray_image + +extern __typeof (gdk_draw_indexed_image) IA__gdk_draw_indexed_image __attribute((visibility("hidden"))); +#define gdk_draw_indexed_image IA__gdk_draw_indexed_image + +extern __typeof (gdk_draw_rgb_32_image) IA__gdk_draw_rgb_32_image __attribute((visibility("hidden"))); +#define gdk_draw_rgb_32_image IA__gdk_draw_rgb_32_image + +extern __typeof (gdk_draw_rgb_32_image_dithalign) IA__gdk_draw_rgb_32_image_dithalign __attribute((visibility("hidden"))); +#define gdk_draw_rgb_32_image_dithalign IA__gdk_draw_rgb_32_image_dithalign + +extern __typeof (gdk_draw_rgb_image) IA__gdk_draw_rgb_image __attribute((visibility("hidden"))); +#define gdk_draw_rgb_image IA__gdk_draw_rgb_image + +extern __typeof (gdk_draw_rgb_image_dithalign) IA__gdk_draw_rgb_image_dithalign __attribute((visibility("hidden"))); +#define gdk_draw_rgb_image_dithalign IA__gdk_draw_rgb_image_dithalign + +#endif +#endif +#if IN_HEADER(__GDK_SCREEN_H__) +#if IN_FILE(__GDK_SCREEN_C__) +extern __typeof (gdk_screen_get_type) IA__gdk_screen_get_type __attribute((visibility("hidden"))) G_GNUC_CONST; +#define gdk_screen_get_type IA__gdk_screen_get_type + +extern __typeof (gdk_screen_get_monitor_at_point) IA__gdk_screen_get_monitor_at_point __attribute((visibility("hidden"))); +#define gdk_screen_get_monitor_at_point IA__gdk_screen_get_monitor_at_point + +extern __typeof (gdk_screen_get_monitor_at_window) IA__gdk_screen_get_monitor_at_window __attribute((visibility("hidden"))); +#define gdk_screen_get_monitor_at_window IA__gdk_screen_get_monitor_at_window + +extern __typeof (gdk_screen_set_font_options) IA__gdk_screen_set_font_options __attribute((visibility("hidden"))); +#define gdk_screen_set_font_options IA__gdk_screen_set_font_options + +extern __typeof (gdk_screen_get_font_options) IA__gdk_screen_get_font_options __attribute((visibility("hidden"))); +#define gdk_screen_get_font_options IA__gdk_screen_get_font_options + +extern __typeof (gdk_screen_set_resolution) IA__gdk_screen_set_resolution __attribute((visibility("hidden"))); +#define gdk_screen_set_resolution IA__gdk_screen_set_resolution + +extern __typeof (gdk_screen_get_resolution) IA__gdk_screen_get_resolution __attribute((visibility("hidden"))); +#define gdk_screen_get_resolution IA__gdk_screen_get_resolution + +#endif +#endif +#if IN_HEADER(__GDK_SCREEN_H__) +#if IN_FILE(__GDK_DISPLAY_MANAGER_C__) +extern __typeof (gdk_screen_get_default) IA__gdk_screen_get_default __attribute((visibility("hidden"))); +#define gdk_screen_get_default IA__gdk_screen_get_default + +#endif +#endif +#if IN_HEADER(__GDK_SCREEN_H__) +#if IN_FILE(__GDK_RGB_C__) +extern __typeof (gdk_screen_get_rgb_colormap) IA__gdk_screen_get_rgb_colormap __attribute((visibility("hidden"))); +#define gdk_screen_get_rgb_colormap IA__gdk_screen_get_rgb_colormap + +extern __typeof (gdk_screen_get_rgb_visual) IA__gdk_screen_get_rgb_visual __attribute((visibility("hidden"))); +#define gdk_screen_get_rgb_visual IA__gdk_screen_get_rgb_visual + +#endif +#endif +#if IN_HEADER(__GDK_SCREEN_H__) +#if IN_FILE(__GDK_EVENTS_X11_C__) +extern __typeof (gdk_screen_get_setting) IA__gdk_screen_get_setting __attribute((visibility("hidden"))); +#define gdk_screen_get_setting IA__gdk_screen_get_setting + +extern __typeof (gdk_screen_broadcast_client_message) IA__gdk_screen_broadcast_client_message __attribute((visibility("hidden"))); +#define gdk_screen_broadcast_client_message IA__gdk_screen_broadcast_client_message + +#endif +#endif +#if IN_HEADER(__GDK_SCREEN_H__) +#if IN_FILE(__GDK_VISUAL_X11_C__) +extern __typeof (gdk_screen_get_system_visual) IA__gdk_screen_get_system_visual __attribute((visibility("hidden"))); +#define gdk_screen_get_system_visual IA__gdk_screen_get_system_visual + +extern __typeof (gdk_screen_list_visuals) IA__gdk_screen_list_visuals __attribute((visibility("hidden"))); +#define gdk_screen_list_visuals IA__gdk_screen_list_visuals + +#endif +#endif +#if IN_HEADER(__GDK_SCREEN_H__) +#if IN_FILE(__GDK_WINDOW_C__) +extern __typeof (gdk_screen_get_toplevel_windows) IA__gdk_screen_get_toplevel_windows __attribute((visibility("hidden"))); +#define gdk_screen_get_toplevel_windows IA__gdk_screen_get_toplevel_windows + +#endif +#endif +#if IN_HEADER(__GDK_SCREEN_H__) +#if IN_FILE(__GDK_SCREEN_X11_C__) +extern __typeof (gdk_screen_get_display) IA__gdk_screen_get_display __attribute((visibility("hidden"))); +#define gdk_screen_get_display IA__gdk_screen_get_display + +extern __typeof (gdk_screen_get_width) IA__gdk_screen_get_width __attribute((visibility("hidden"))); +#define gdk_screen_get_width IA__gdk_screen_get_width + +extern __typeof (gdk_screen_get_width_mm) IA__gdk_screen_get_width_mm __attribute((visibility("hidden"))); +#define gdk_screen_get_width_mm IA__gdk_screen_get_width_mm + +extern __typeof (gdk_screen_get_height) IA__gdk_screen_get_height __attribute((visibility("hidden"))); +#define gdk_screen_get_height IA__gdk_screen_get_height + +extern __typeof (gdk_screen_get_height_mm) IA__gdk_screen_get_height_mm __attribute((visibility("hidden"))); +#define gdk_screen_get_height_mm IA__gdk_screen_get_height_mm + +extern __typeof (gdk_screen_get_number) IA__gdk_screen_get_number __attribute((visibility("hidden"))); +#define gdk_screen_get_number IA__gdk_screen_get_number + +extern __typeof (gdk_screen_get_root_window) IA__gdk_screen_get_root_window __attribute((visibility("hidden"))); +#define gdk_screen_get_root_window IA__gdk_screen_get_root_window + +extern __typeof (gdk_screen_get_default_colormap) IA__gdk_screen_get_default_colormap __attribute((visibility("hidden"))); +#define gdk_screen_get_default_colormap IA__gdk_screen_get_default_colormap + +extern __typeof (gdk_screen_set_default_colormap) IA__gdk_screen_set_default_colormap __attribute((visibility("hidden"))); +#define gdk_screen_set_default_colormap IA__gdk_screen_set_default_colormap + +extern __typeof (gdk_screen_get_n_monitors) IA__gdk_screen_get_n_monitors __attribute((visibility("hidden"))); +#define gdk_screen_get_n_monitors IA__gdk_screen_get_n_monitors + +extern __typeof (gdk_screen_get_monitor_geometry) IA__gdk_screen_get_monitor_geometry __attribute((visibility("hidden"))); +#define gdk_screen_get_monitor_geometry IA__gdk_screen_get_monitor_geometry + +extern __typeof (gdk_screen_get_rgba_colormap) IA__gdk_screen_get_rgba_colormap __attribute((visibility("hidden"))); +#define gdk_screen_get_rgba_colormap IA__gdk_screen_get_rgba_colormap + +extern __typeof (gdk_screen_get_rgba_visual) IA__gdk_screen_get_rgba_visual __attribute((visibility("hidden"))); +#define gdk_screen_get_rgba_visual IA__gdk_screen_get_rgba_visual + +extern __typeof (gdk_screen_get_active_window) IA__gdk_screen_get_active_window __attribute((visibility("hidden"))); +#define gdk_screen_get_active_window IA__gdk_screen_get_active_window + +extern __typeof (gdk_screen_get_window_stack) IA__gdk_screen_get_window_stack __attribute((visibility("hidden"))); +#define gdk_screen_get_window_stack IA__gdk_screen_get_window_stack + +extern __typeof (gdk_screen_is_composited) IA__gdk_screen_is_composited __attribute((visibility("hidden"))); +#define gdk_screen_is_composited IA__gdk_screen_is_composited + +extern __typeof (gdk_screen_make_display_name) IA__gdk_screen_make_display_name __attribute((visibility("hidden"))); +#define gdk_screen_make_display_name IA__gdk_screen_make_display_name + +#endif +#endif +#if IN_HEADER(__GDK_SCREEN_H__) +#if IN_FILE(__GDK_COLOR_X11_C__) +extern __typeof (gdk_screen_get_system_colormap) IA__gdk_screen_get_system_colormap __attribute((visibility("hidden"))); +#define gdk_screen_get_system_colormap IA__gdk_screen_get_system_colormap + +#endif +#endif +#if IN_HEADER(__GDK_SELECTION_H__) +#if IN_FILE(__GDK_SELECTION_C__) +extern __typeof (gdk_selection_owner_set) IA__gdk_selection_owner_set __attribute((visibility("hidden"))); +#define gdk_selection_owner_set IA__gdk_selection_owner_set + +extern __typeof (gdk_selection_owner_get) IA__gdk_selection_owner_get __attribute((visibility("hidden"))); +#define gdk_selection_owner_get IA__gdk_selection_owner_get + +extern __typeof (gdk_selection_send_notify) IA__gdk_selection_send_notify __attribute((visibility("hidden"))); +#define gdk_selection_send_notify IA__gdk_selection_send_notify + +#endif +#endif +#if IN_HEADER(__GDK_SELECTION_H__) +#if IN_FILE(__GDK_SELECTION_X11_C__) +extern __typeof (gdk_selection_convert) IA__gdk_selection_convert __attribute((visibility("hidden"))); +#define gdk_selection_convert IA__gdk_selection_convert + +extern __typeof (gdk_selection_owner_get_for_display) IA__gdk_selection_owner_get_for_display __attribute((visibility("hidden"))); +#define gdk_selection_owner_get_for_display IA__gdk_selection_owner_get_for_display + +extern __typeof (gdk_selection_owner_set_for_display) IA__gdk_selection_owner_set_for_display __attribute((visibility("hidden"))); +#define gdk_selection_owner_set_for_display IA__gdk_selection_owner_set_for_display + +extern __typeof (gdk_selection_property_get) IA__gdk_selection_property_get __attribute((visibility("hidden"))); +#define gdk_selection_property_get IA__gdk_selection_property_get + +extern __typeof (gdk_selection_send_notify_for_display) IA__gdk_selection_send_notify_for_display __attribute((visibility("hidden"))); +#define gdk_selection_send_notify_for_display IA__gdk_selection_send_notify_for_display + +#endif +#endif +#if IN_HEADER(__GDK_WINDOW_H__) +#if IN_FILE(__GDK_DISPLAY_C__) +extern __typeof (gdk_set_sm_client_id) IA__gdk_set_sm_client_id __attribute((visibility("hidden"))); +#define gdk_set_sm_client_id IA__gdk_set_sm_client_id + +#endif +#endif +#if IN_HEADER(__GDK_SPAWN_H__) +#if IN_FILE(__GDK_SPAWN_X11_C__) +extern __typeof (gdk_spawn_command_line_on_screen) IA__gdk_spawn_command_line_on_screen __attribute((visibility("hidden"))); +#define gdk_spawn_command_line_on_screen IA__gdk_spawn_command_line_on_screen + +extern __typeof (gdk_spawn_on_screen) IA__gdk_spawn_on_screen __attribute((visibility("hidden"))); +#define gdk_spawn_on_screen IA__gdk_spawn_on_screen + +extern __typeof (gdk_spawn_on_screen_with_pipes) IA__gdk_spawn_on_screen_with_pipes __attribute((visibility("hidden"))); +#define gdk_spawn_on_screen_with_pipes IA__gdk_spawn_on_screen_with_pipes + +#endif +#endif +#if IN_HEADER(__GDK_PRIVATE_H__) +#if IN_FILE(__GDK_EVENTS_C__) +extern __typeof (gdk_synthesize_window_state) IA__gdk_synthesize_window_state __attribute((visibility("hidden"))); +#define gdk_synthesize_window_state IA__gdk_synthesize_window_state + +#endif +#endif +#if IN_HEADER(__GDK_PRIVATE_H__) +#if IN_FILE(__GDK_WINDOW_X11_C__) +extern __typeof (gdk_window_destroy_notify) IA__gdk_window_destroy_notify __attribute((visibility("hidden"))); +#define gdk_window_destroy_notify IA__gdk_window_destroy_notify + +#endif +#endif +#ifdef GDK_WINDOWING_WIN32 +#if IN_HEADER(__GDK_WIN32_H__) +#if IN_FILE(__GDK_WIN32ID_C__) +extern __typeof (gdk_win32_handle_table_lookup) IA__gdk_win32_handle_table_lookup __attribute((visibility("hidden"))); +#define gdk_win32_handle_table_lookup IA__gdk_win32_handle_table_lookup + +#endif +#endif +#if IN_HEADER(__GDK_WIN32_H__) +#if IN_FILE(__GDK_CURSOR_WIN32_C__) +extern __typeof (gdk_win32_icon_to_pixbuf_libgtk_only) IA__gdk_win32_icon_to_pixbuf_libgtk_only __attribute((visibility("hidden"))); +#define gdk_win32_icon_to_pixbuf_libgtk_only IA__gdk_win32_icon_to_pixbuf_libgtk_only + +extern __typeof (gdk_win32_pixbuf_to_hicon_libgtk_only) IA__gdk_win32_pixbuf_to_hicon_libgtk_only __attribute((visibility("hidden"))); +#define gdk_win32_pixbuf_to_hicon_libgtk_only IA__gdk_win32_pixbuf_to_hicon_libgtk_only + +#endif +#endif +#if IN_HEADER(__GDK_WIN32_H__) +#if IN_FILE(__GDK_DRAWABLE_WIN32_C__) +extern __typeof (gdk_win32_drawable_get_handle) IA__gdk_win32_drawable_get_handle __attribute((visibility("hidden"))); +#define gdk_win32_drawable_get_handle IA__gdk_win32_drawable_get_handle + +#endif +#endif +#if IN_HEADER(__GDK_WIN32_H__) +#if IN_FILE(__GDK_EVENTS_WIN32_C__) +extern __typeof (gdk_win32_set_modal_dialog_libgtk_only) IA__gdk_win32_set_modal_dialog_libgtk_only __attribute((visibility("hidden"))); +#define gdk_win32_set_modal_dialog_libgtk_only IA__gdk_win32_set_modal_dialog_libgtk_only + +#endif +#endif +#if IN_HEADER(__GDK_WIN32_H__) +#if IN_FILE(__GDK_GC_WIN32_C__) +extern __typeof (gdk_win32_hdc_get) IA__gdk_win32_hdc_get __attribute((visibility("hidden"))); +#define gdk_win32_hdc_get IA__gdk_win32_hdc_get + +extern __typeof (gdk_win32_hdc_release) IA__gdk_win32_hdc_release __attribute((visibility("hidden"))); +#define gdk_win32_hdc_release IA__gdk_win32_hdc_release + +#endif +#endif +#if IN_HEADER(__GDK_WIN32_H__) +#if IN_FILE(__GDK_SELECTION_WIN32_C__) +extern __typeof (gdk_win32_selection_add_targets) IA__gdk_win32_selection_add_targets __attribute((visibility("hidden"))); +#define gdk_win32_selection_add_targets IA__gdk_win32_selection_add_targets + +#endif +#endif +#endif +#ifdef GDK_WINDOWING_X11 +#if IN_HEADER(__GDK_X_H__) +#if IN_FILE(__GDK_PROPERTY_X11_C__) +extern __typeof (gdk_x11_atom_to_xatom) IA__gdk_x11_atom_to_xatom __attribute((visibility("hidden"))); +#define gdk_x11_atom_to_xatom IA__gdk_x11_atom_to_xatom + +extern __typeof (gdk_x11_atom_to_xatom_for_display) IA__gdk_x11_atom_to_xatom_for_display __attribute((visibility("hidden"))); +#define gdk_x11_atom_to_xatom_for_display IA__gdk_x11_atom_to_xatom_for_display + +extern __typeof (gdk_x11_get_xatom_by_name) IA__gdk_x11_get_xatom_by_name __attribute((visibility("hidden"))); +#define gdk_x11_get_xatom_by_name IA__gdk_x11_get_xatom_by_name + +extern __typeof (gdk_x11_get_xatom_by_name_for_display) IA__gdk_x11_get_xatom_by_name_for_display __attribute((visibility("hidden"))); +#define gdk_x11_get_xatom_by_name_for_display IA__gdk_x11_get_xatom_by_name_for_display + +extern __typeof (gdk_x11_get_xatom_name) IA__gdk_x11_get_xatom_name __attribute((visibility("hidden"))); +#define gdk_x11_get_xatom_name IA__gdk_x11_get_xatom_name + +extern __typeof (gdk_x11_get_xatom_name_for_display) IA__gdk_x11_get_xatom_name_for_display __attribute((visibility("hidden"))); +#define gdk_x11_get_xatom_name_for_display IA__gdk_x11_get_xatom_name_for_display + +extern __typeof (gdk_x11_xatom_to_atom) IA__gdk_x11_xatom_to_atom __attribute((visibility("hidden"))); +#define gdk_x11_xatom_to_atom IA__gdk_x11_xatom_to_atom + +extern __typeof (gdk_x11_xatom_to_atom_for_display) IA__gdk_x11_xatom_to_atom_for_display __attribute((visibility("hidden"))); +#define gdk_x11_xatom_to_atom_for_display IA__gdk_x11_xatom_to_atom_for_display + +#endif +#if IN_FILE(__GDK_COLOR_X11_C__) +extern __typeof (gdk_x11_colormap_foreign_new) IA__gdk_x11_colormap_foreign_new __attribute((visibility("hidden"))); +#define gdk_x11_colormap_foreign_new IA__gdk_x11_colormap_foreign_new + +extern __typeof (gdk_x11_colormap_get_xcolormap) IA__gdk_x11_colormap_get_xcolormap __attribute((visibility("hidden"))); +#define gdk_x11_colormap_get_xcolormap IA__gdk_x11_colormap_get_xcolormap + +extern __typeof (gdk_x11_colormap_get_xdisplay) IA__gdk_x11_colormap_get_xdisplay __attribute((visibility("hidden"))); +#define gdk_x11_colormap_get_xdisplay IA__gdk_x11_colormap_get_xdisplay + +#ifdef GDK_ENABLE_BROKEN +extern __typeof (gdkx_colormap_get) IA__gdkx_colormap_get __attribute((visibility("hidden"))); +#define gdkx_colormap_get IA__gdkx_colormap_get + +#endif +#endif +#if IN_FILE(__GDK_CURSOR_X11_C__) +extern __typeof (gdk_x11_cursor_get_xcursor) IA__gdk_x11_cursor_get_xcursor __attribute((visibility("hidden"))); +#define gdk_x11_cursor_get_xcursor IA__gdk_x11_cursor_get_xcursor + +extern __typeof (gdk_x11_cursor_get_xdisplay) IA__gdk_x11_cursor_get_xdisplay __attribute((visibility("hidden"))); +#define gdk_x11_cursor_get_xdisplay IA__gdk_x11_cursor_get_xdisplay + +extern __typeof (gdk_x11_display_set_cursor_theme) IA__gdk_x11_display_set_cursor_theme __attribute((visibility("hidden"))); +#define gdk_x11_display_set_cursor_theme IA__gdk_x11_display_set_cursor_theme + +#endif +#if IN_FILE(__GDK_DISPLAY_X11_C__) +extern __typeof (gdk_x11_display_get_user_time) IA__gdk_x11_display_get_user_time __attribute((visibility("hidden"))); +#define gdk_x11_display_get_user_time IA__gdk_x11_display_get_user_time + +extern __typeof (gdk_x11_display_get_xdisplay) IA__gdk_x11_display_get_xdisplay __attribute((visibility("hidden"))); +#define gdk_x11_display_get_xdisplay IA__gdk_x11_display_get_xdisplay + +extern __typeof (gdk_x11_display_grab) IA__gdk_x11_display_grab __attribute((visibility("hidden"))); +#define gdk_x11_display_grab IA__gdk_x11_display_grab + +extern __typeof (gdk_x11_display_ungrab) IA__gdk_x11_display_ungrab __attribute((visibility("hidden"))); +#define gdk_x11_display_ungrab IA__gdk_x11_display_ungrab + +extern __typeof (gdk_x11_lookup_xdisplay) IA__gdk_x11_lookup_xdisplay __attribute((visibility("hidden"))); +#define gdk_x11_lookup_xdisplay IA__gdk_x11_lookup_xdisplay + +extern __typeof (gdk_x11_display_broadcast_startup_message) IA__gdk_x11_display_broadcast_startup_message __attribute((visibility("hidden"))); +#define gdk_x11_display_broadcast_startup_message IA__gdk_x11_display_broadcast_startup_message + +extern __typeof (gdk_x11_display_get_startup_notification_id) IA__gdk_x11_display_get_startup_notification_id __attribute((visibility("hidden"))); +#define gdk_x11_display_get_startup_notification_id IA__gdk_x11_display_get_startup_notification_id + +#endif +#if IN_FILE(__GDK_DRAWABLE_X11_C__) +extern __typeof (gdk_x11_drawable_get_xdisplay) IA__gdk_x11_drawable_get_xdisplay __attribute((visibility("hidden"))); +#define gdk_x11_drawable_get_xdisplay IA__gdk_x11_drawable_get_xdisplay + +extern __typeof (gdk_x11_drawable_get_xid) IA__gdk_x11_drawable_get_xid __attribute((visibility("hidden"))); +#define gdk_x11_drawable_get_xid IA__gdk_x11_drawable_get_xid + +#endif +#if IN_FILE(__GDK_FONT_X11_C__) +#ifndef GDK_DISABLE_DEPRECATED +extern __typeof (gdk_x11_font_get_name) IA__gdk_x11_font_get_name __attribute((visibility("hidden"))); +#define gdk_x11_font_get_name IA__gdk_x11_font_get_name + +extern __typeof (gdk_x11_font_get_xdisplay) IA__gdk_x11_font_get_xdisplay __attribute((visibility("hidden"))); +#define gdk_x11_font_get_xdisplay IA__gdk_x11_font_get_xdisplay + +#endif +extern __typeof (gdk_x11_font_get_xfont) IA__gdk_x11_font_get_xfont __attribute((visibility("hidden"))); +#define gdk_x11_font_get_xfont IA__gdk_x11_font_get_xfont + +#endif +#if IN_FILE(__GDK_GC_X11_C__) +extern __typeof (gdk_x11_gc_get_xdisplay) IA__gdk_x11_gc_get_xdisplay __attribute((visibility("hidden"))); +#define gdk_x11_gc_get_xdisplay IA__gdk_x11_gc_get_xdisplay + +extern __typeof (gdk_x11_gc_get_xgc) IA__gdk_x11_gc_get_xgc __attribute((visibility("hidden"))); +#define gdk_x11_gc_get_xgc IA__gdk_x11_gc_get_xgc + +#endif +#if IN_FILE(__GDK_MAIN_X11_C__) +extern __typeof (gdk_x11_get_default_root_xwindow) IA__gdk_x11_get_default_root_xwindow __attribute((visibility("hidden"))); +#define gdk_x11_get_default_root_xwindow IA__gdk_x11_get_default_root_xwindow + +extern __typeof (gdk_x11_get_default_screen) IA__gdk_x11_get_default_screen __attribute((visibility("hidden"))); +#define gdk_x11_get_default_screen IA__gdk_x11_get_default_screen + +extern __typeof (gdk_x11_get_default_xdisplay) IA__gdk_x11_get_default_xdisplay __attribute((visibility("hidden"))); +#define gdk_x11_get_default_xdisplay IA__gdk_x11_get_default_xdisplay + +extern __typeof (gdk_x11_grab_server) IA__gdk_x11_grab_server __attribute((visibility("hidden"))); +#define gdk_x11_grab_server IA__gdk_x11_grab_server + +extern __typeof (gdk_x11_ungrab_server) IA__gdk_x11_ungrab_server __attribute((visibility("hidden"))); +#define gdk_x11_ungrab_server IA__gdk_x11_ungrab_server + +#endif +#if IN_FILE(__GDK_EVENTS_X11_C__) +extern __typeof (gdk_x11_get_server_time) IA__gdk_x11_get_server_time __attribute((visibility("hidden"))); +#define gdk_x11_get_server_time IA__gdk_x11_get_server_time + +extern __typeof (gdk_x11_register_standard_event_type) IA__gdk_x11_register_standard_event_type __attribute((visibility("hidden"))); +#define gdk_x11_register_standard_event_type IA__gdk_x11_register_standard_event_type + +extern __typeof (gdk_x11_screen_get_window_manager_name) IA__gdk_x11_screen_get_window_manager_name __attribute((visibility("hidden"))); +#define gdk_x11_screen_get_window_manager_name IA__gdk_x11_screen_get_window_manager_name + +extern __typeof (gdk_x11_screen_supports_net_wm_hint) IA__gdk_x11_screen_supports_net_wm_hint __attribute((visibility("hidden"))); +#define gdk_x11_screen_supports_net_wm_hint IA__gdk_x11_screen_supports_net_wm_hint + +#endif +#if IN_FILE(__GDK_IMAGE_X11_C__) +extern __typeof (gdk_x11_image_get_xdisplay) IA__gdk_x11_image_get_xdisplay __attribute((visibility("hidden"))); +#define gdk_x11_image_get_xdisplay IA__gdk_x11_image_get_xdisplay + +extern __typeof (gdk_x11_image_get_ximage) IA__gdk_x11_image_get_ximage __attribute((visibility("hidden"))); +#define gdk_x11_image_get_ximage IA__gdk_x11_image_get_ximage + +#endif +#if IN_FILE(__GDK_SCREEN_X11_C__) +extern __typeof (gdk_x11_screen_get_screen_number) IA__gdk_x11_screen_get_screen_number __attribute((visibility("hidden"))); +#define gdk_x11_screen_get_screen_number IA__gdk_x11_screen_get_screen_number + +extern __typeof (gdk_x11_screen_get_xscreen) IA__gdk_x11_screen_get_xscreen __attribute((visibility("hidden"))); +#define gdk_x11_screen_get_xscreen IA__gdk_x11_screen_get_xscreen + +#endif +#if IN_FILE(__GDK_VISUAL_X11_C__) +extern __typeof (gdk_x11_screen_lookup_visual) IA__gdk_x11_screen_lookup_visual __attribute((visibility("hidden"))); +#define gdk_x11_screen_lookup_visual IA__gdk_x11_screen_lookup_visual + +extern __typeof (gdk_x11_visual_get_xvisual) IA__gdk_x11_visual_get_xvisual __attribute((visibility("hidden"))); +#define gdk_x11_visual_get_xvisual IA__gdk_x11_visual_get_xvisual + +extern __typeof (gdkx_visual_get) IA__gdkx_visual_get __attribute((visibility("hidden"))); +#define gdkx_visual_get IA__gdkx_visual_get + +#endif +#if IN_FILE(__GDK_WINDOW_X11_C__) +extern __typeof (gdk_x11_window_set_user_time) IA__gdk_x11_window_set_user_time __attribute((visibility("hidden"))); +#define gdk_x11_window_set_user_time IA__gdk_x11_window_set_user_time + +extern __typeof (gdk_x11_window_move_to_current_desktop) IA__gdk_x11_window_move_to_current_desktop __attribute((visibility("hidden"))); +#define gdk_x11_window_move_to_current_desktop IA__gdk_x11_window_move_to_current_desktop + +#endif +#if IN_FILE(__GDK_XID_C__) +extern __typeof (gdk_xid_table_lookup) IA__gdk_xid_table_lookup __attribute((visibility("hidden"))); +#define gdk_xid_table_lookup IA__gdk_xid_table_lookup + +extern __typeof (gdk_xid_table_lookup_for_display) IA__gdk_xid_table_lookup_for_display __attribute((visibility("hidden"))); +#define gdk_xid_table_lookup_for_display IA__gdk_xid_table_lookup_for_display + +#endif +#endif +#endif +#ifdef GDK_WINDOWING_X11 +#endif + +#endif /* G_HAVE_GNUC_VISIBILITY */ +#endif /* DISABLE_VISIBILITY */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkcairo.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkcairo.h new file mode 100644 index 00000000..8550e6bc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkcairo.h @@ -0,0 +1,49 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 2005 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GDK_CAIRO_H__ +#define __GDK_CAIRO_H__ + +#include <gdk/gdkcolor.h> +#include <gdk/gdkpixbuf.h> +#include <pango/pangocairo.h> + +G_BEGIN_DECLS + +cairo_t *gdk_cairo_create (GdkDrawable *drawable); + +void gdk_cairo_set_source_color (cairo_t *cr, + GdkColor *color); +void gdk_cairo_set_source_pixbuf (cairo_t *cr, + GdkPixbuf *pixbuf, + double pixbuf_x, + double pixbuf_y); +void gdk_cairo_set_source_pixmap (cairo_t *cr, + GdkPixmap *pixmap, + double pixmap_x, + double pixmap_y); + +void gdk_cairo_rectangle (cairo_t *cr, + GdkRectangle *rectangle); +void gdk_cairo_region (cairo_t *cr, + GdkRegion *region); + +G_END_DECLS + +#endif /* __GDK_CAIRO_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkcolor.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkcolor.h new file mode 100644 index 00000000..46f4a645 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkcolor.h @@ -0,0 +1,172 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_COLOR_H__ +#define __GDK_COLOR_H__ + +#include <cairo.h> +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +/* The color type. + * A color consists of red, green and blue values in the + * range 0-65535 and a pixel value. The pixel value is highly + * dependent on the depth and colormap which this color will + * be used to draw into. Therefore, sharing colors between + * colormaps is a bad idea. + */ +struct _GdkColor +{ + guint32 pixel; + guint16 red; + guint16 green; + guint16 blue; +}; + +/* The colormap type. + */ + +typedef struct _GdkColormapClass GdkColormapClass; + +#define GDK_TYPE_COLORMAP (gdk_colormap_get_type ()) +#define GDK_COLORMAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_COLORMAP, GdkColormap)) +#define GDK_COLORMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_COLORMAP, GdkColormapClass)) +#define GDK_IS_COLORMAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_COLORMAP)) +#define GDK_IS_COLORMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_COLORMAP)) +#define GDK_COLORMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_COLORMAP, GdkColormapClass)) + +#define GDK_TYPE_COLOR (gdk_color_get_type ()) + +struct _GdkColormap +{ + /*< private >*/ + GObject parent_instance; + + /*< public >*/ + gint size; + GdkColor *colors; + + /*< private >*/ + GdkVisual *visual; + + gpointer windowing_data; +}; + +struct _GdkColormapClass +{ + GObjectClass parent_class; + +}; + +GType gdk_colormap_get_type (void) G_GNUC_CONST; + +GdkColormap* gdk_colormap_new (GdkVisual *visual, + gboolean allocate); + +#ifndef GDK_DISABLE_DEPRECATED +GdkColormap* gdk_colormap_ref (GdkColormap *cmap); +void gdk_colormap_unref (GdkColormap *cmap); +#endif + +#ifndef GDK_MULTIHEAD_SAFE +GdkColormap* gdk_colormap_get_system (void); +#endif + +GdkScreen *gdk_colormap_get_screen (GdkColormap *cmap); + +#ifndef GDK_DISABLE_DEPRECATED +gint gdk_colormap_get_system_size (void); +#endif + +#if !defined (GDK_DISABLE_DEPRECATED) || defined (GDK_COMPILATION) +/* Used by gdk_colors_store () */ +void gdk_colormap_change (GdkColormap *colormap, + gint ncolors); +#endif + +gint gdk_colormap_alloc_colors (GdkColormap *colormap, + GdkColor *colors, + gint ncolors, + gboolean writeable, + gboolean best_match, + gboolean *success); +gboolean gdk_colormap_alloc_color (GdkColormap *colormap, + GdkColor *color, + gboolean writeable, + gboolean best_match); +void gdk_colormap_free_colors (GdkColormap *colormap, + GdkColor *colors, + gint ncolors); +void gdk_colormap_query_color (GdkColormap *colormap, + gulong pixel, + GdkColor *result); + +GdkVisual *gdk_colormap_get_visual (GdkColormap *colormap); + +GdkColor *gdk_color_copy (const GdkColor *color); +void gdk_color_free (GdkColor *color); +gboolean gdk_color_parse (const gchar *spec, + GdkColor *color); +guint gdk_color_hash (const GdkColor *colora); +gboolean gdk_color_equal (const GdkColor *colora, + const GdkColor *colorb); +gchar * gdk_color_to_string (const GdkColor *color); + +GType gdk_color_get_type (void) G_GNUC_CONST; + +/* The following functions are deprecated */ +#ifndef GDK_DISABLE_DEPRECATED +void gdk_colors_store (GdkColormap *colormap, + GdkColor *colors, + gint ncolors); +gint gdk_color_white (GdkColormap *colormap, + GdkColor *color); +gint gdk_color_black (GdkColormap *colormap, + GdkColor *color); +gint gdk_color_alloc (GdkColormap *colormap, + GdkColor *color); +gint gdk_color_change (GdkColormap *colormap, + GdkColor *color); +#endif /* GDK_DISABLE_DEPRECATED */ + +#if !defined (GDK_DISABLE_DEPRECATED) || defined (GDK_COMPILATION) +/* Used by gdk_rgb_try_colormap () */ +gint gdk_colors_alloc (GdkColormap *colormap, + gboolean contiguous, + gulong *planes, + gint nplanes, + gulong *pixels, + gint npixels); +void gdk_colors_free (GdkColormap *colormap, + gulong *pixels, + gint npixels, + gulong planes); +#endif /* !GDK_DISABLE_DEPRECATED || GDK_COMPILATION */ + +G_END_DECLS + +#endif /* __GDK_COLOR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkcursor.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkcursor.h new file mode 100644 index 00000000..7eaa9cae --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkcursor.h @@ -0,0 +1,162 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_CURSOR_H__ +#define __GDK_CURSOR_H__ + +#include <gdk/gdktypes.h> +#include <gdk-pixbuf/gdk-pixbuf.h> + +G_BEGIN_DECLS + +#define GDK_TYPE_CURSOR (gdk_cursor_get_type ()) + +/* Cursor types. + */ +typedef enum +{ + GDK_X_CURSOR = 0, + GDK_ARROW = 2, + GDK_BASED_ARROW_DOWN = 4, + GDK_BASED_ARROW_UP = 6, + GDK_BOAT = 8, + GDK_BOGOSITY = 10, + GDK_BOTTOM_LEFT_CORNER = 12, + GDK_BOTTOM_RIGHT_CORNER = 14, + GDK_BOTTOM_SIDE = 16, + GDK_BOTTOM_TEE = 18, + GDK_BOX_SPIRAL = 20, + GDK_CENTER_PTR = 22, + GDK_CIRCLE = 24, + GDK_CLOCK = 26, + GDK_COFFEE_MUG = 28, + GDK_CROSS = 30, + GDK_CROSS_REVERSE = 32, + GDK_CROSSHAIR = 34, + GDK_DIAMOND_CROSS = 36, + GDK_DOT = 38, + GDK_DOTBOX = 40, + GDK_DOUBLE_ARROW = 42, + GDK_DRAFT_LARGE = 44, + GDK_DRAFT_SMALL = 46, + GDK_DRAPED_BOX = 48, + GDK_EXCHANGE = 50, + GDK_FLEUR = 52, + GDK_GOBBLER = 54, + GDK_GUMBY = 56, + GDK_HAND1 = 58, + GDK_HAND2 = 60, + GDK_HEART = 62, + GDK_ICON = 64, + GDK_IRON_CROSS = 66, + GDK_LEFT_PTR = 68, + GDK_LEFT_SIDE = 70, + GDK_LEFT_TEE = 72, + GDK_LEFTBUTTON = 74, + GDK_LL_ANGLE = 76, + GDK_LR_ANGLE = 78, + GDK_MAN = 80, + GDK_MIDDLEBUTTON = 82, + GDK_MOUSE = 84, + GDK_PENCIL = 86, + GDK_PIRATE = 88, + GDK_PLUS = 90, + GDK_QUESTION_ARROW = 92, + GDK_RIGHT_PTR = 94, + GDK_RIGHT_SIDE = 96, + GDK_RIGHT_TEE = 98, + GDK_RIGHTBUTTON = 100, + GDK_RTL_LOGO = 102, + GDK_SAILBOAT = 104, + GDK_SB_DOWN_ARROW = 106, + GDK_SB_H_DOUBLE_ARROW = 108, + GDK_SB_LEFT_ARROW = 110, + GDK_SB_RIGHT_ARROW = 112, + GDK_SB_UP_ARROW = 114, + GDK_SB_V_DOUBLE_ARROW = 116, + GDK_SHUTTLE = 118, + GDK_SIZING = 120, + GDK_SPIDER = 122, + GDK_SPRAYCAN = 124, + GDK_STAR = 126, + GDK_TARGET = 128, + GDK_TCROSS = 130, + GDK_TOP_LEFT_ARROW = 132, + GDK_TOP_LEFT_CORNER = 134, + GDK_TOP_RIGHT_CORNER = 136, + GDK_TOP_SIDE = 138, + GDK_TOP_TEE = 140, + GDK_TREK = 142, + GDK_UL_ANGLE = 144, + GDK_UMBRELLA = 146, + GDK_UR_ANGLE = 148, + GDK_WATCH = 150, + GDK_XTERM = 152, + GDK_LAST_CURSOR, + GDK_CURSOR_IS_PIXMAP = -1 +} GdkCursorType; + +struct _GdkCursor +{ + GdkCursorType type; + /*< private >*/ + guint ref_count; +}; + +/* Cursors + */ + +GType gdk_cursor_get_type (void) G_GNUC_CONST; + +GdkCursor* gdk_cursor_new_for_display (GdkDisplay *display, + GdkCursorType cursor_type); +#ifndef GDK_MULTIHEAD_SAFE +GdkCursor* gdk_cursor_new (GdkCursorType cursor_type); +#endif +GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source, + GdkPixmap *mask, + const GdkColor *fg, + const GdkColor *bg, + gint x, + gint y); +GdkCursor* gdk_cursor_new_from_pixbuf (GdkDisplay *display, + GdkPixbuf *pixbuf, + gint x, + gint y); +GdkDisplay* gdk_cursor_get_display (GdkCursor *cursor); +GdkCursor* gdk_cursor_ref (GdkCursor *cursor); +void gdk_cursor_unref (GdkCursor *cursor); +GdkCursor* gdk_cursor_new_from_name (GdkDisplay *display, + const gchar *name); +GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor); + +#ifndef GDK_DISABLE_DEPRECATED +#define gdk_cursor_destroy gdk_cursor_unref +#endif /* GDK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GDK_CURSOR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdisplay.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdisplay.h new file mode 100644 index 00000000..b55b3122 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdisplay.h @@ -0,0 +1,188 @@ +/* + * gdkdisplay.h + * + * Copyright 2001 Sun Microsystems Inc. + * + * Erwann Chenede <erwann.chenede@sun.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GDK_DISPLAY_H__ +#define __GDK_DISPLAY_H__ + +#include <gdk/gdktypes.h> +#include <gdk/gdkevents.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +typedef struct _GdkDisplayClass GdkDisplayClass; +typedef struct _GdkDisplayPointerHooks GdkDisplayPointerHooks; + +#define GDK_TYPE_DISPLAY (gdk_display_get_type ()) +#define GDK_DISPLAY_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DISPLAY, GdkDisplay)) +#define GDK_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DISPLAY, GdkDisplayClass)) +#define GDK_IS_DISPLAY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DISPLAY)) +#define GDK_IS_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DISPLAY)) +#define GDK_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DISPLAY, GdkDisplayClass)) + +struct _GdkDisplay +{ + GObject parent_instance; + + /*< private >*/ + GList *queued_events; + GList *queued_tail; + + /* Information for determining if the latest button click + * is part of a double-click or triple-click + */ + guint32 button_click_time[2]; /* The last 2 button click times. */ + GdkWindow *button_window[2]; /* The last 2 windows to receive button presses. */ + gint button_number[2]; /* The last 2 buttons to be pressed. */ + + guint double_click_time; /* Maximum time between clicks in msecs */ + GdkDevice *core_pointer; /* Core pointer device */ + + const GdkDisplayPointerHooks *pointer_hooks; /* Current hooks for querying pointer */ + + guint closed : 1; /* Whether this display has been closed */ + + guint double_click_distance; /* Maximum distance between clicks in pixels */ + gint button_x[2]; /* The last 2 button click positions. */ + gint button_y[2]; +}; + +struct _GdkDisplayClass +{ + GObjectClass parent_class; + + G_CONST_RETURN gchar * (*get_display_name) (GdkDisplay *display); + gint (*get_n_screens) (GdkDisplay *display); + GdkScreen * (*get_screen) (GdkDisplay *display, + gint screen_num); + GdkScreen * (*get_default_screen) (GdkDisplay *display); + + + /* Signals */ + void (*closed) (GdkDisplay *display, + gboolean is_error); +}; + +struct _GdkDisplayPointerHooks +{ + void (*get_pointer) (GdkDisplay *display, + GdkScreen **screen, + gint *x, + gint *y, + GdkModifierType *mask); + GdkWindow* (*window_get_pointer) (GdkDisplay *display, + GdkWindow *window, + gint *x, + gint *y, + GdkModifierType *mask); + GdkWindow* (*window_at_pointer) (GdkDisplay *display, + gint *win_x, + gint *win_y); +}; + +GType gdk_display_get_type (void) G_GNUC_CONST; +GdkDisplay *gdk_display_open (const gchar *display_name); + +G_CONST_RETURN gchar * gdk_display_get_name (GdkDisplay *display); + +gint gdk_display_get_n_screens (GdkDisplay *display); +GdkScreen * gdk_display_get_screen (GdkDisplay *display, + gint screen_num); +GdkScreen * gdk_display_get_default_screen (GdkDisplay *display); +void gdk_display_pointer_ungrab (GdkDisplay *display, + guint32 time_); +void gdk_display_keyboard_ungrab (GdkDisplay *display, + guint32 time_); +gboolean gdk_display_pointer_is_grabbed (GdkDisplay *display); +void gdk_display_beep (GdkDisplay *display); +void gdk_display_sync (GdkDisplay *display); +void gdk_display_flush (GdkDisplay *display); + +void gdk_display_close (GdkDisplay *display); + +GList * gdk_display_list_devices (GdkDisplay *display); + +GdkEvent* gdk_display_get_event (GdkDisplay *display); +GdkEvent* gdk_display_peek_event (GdkDisplay *display); +void gdk_display_put_event (GdkDisplay *display, + GdkEvent *event); + +void gdk_display_add_client_message_filter (GdkDisplay *display, + GdkAtom message_type, + GdkFilterFunc func, + gpointer data); + +void gdk_display_set_double_click_time (GdkDisplay *display, + guint msec); +void gdk_display_set_double_click_distance (GdkDisplay *display, + guint distance); + +GdkDisplay *gdk_display_get_default (void); + +GdkDevice *gdk_display_get_core_pointer (GdkDisplay *display); + +void gdk_display_get_pointer (GdkDisplay *display, + GdkScreen **screen, + gint *x, + gint *y, + GdkModifierType *mask); +GdkWindow * gdk_display_get_window_at_pointer (GdkDisplay *display, + gint *win_x, + gint *win_y); +void gdk_display_warp_pointer (GdkDisplay *display, + GdkScreen *screen, + gint x, + gint y); + +GdkDisplayPointerHooks *gdk_display_set_pointer_hooks (GdkDisplay *display, + const GdkDisplayPointerHooks *new_hooks); + +GdkDisplay *gdk_display_open_default_libgtk_only (void); + +gboolean gdk_display_supports_cursor_alpha (GdkDisplay *display); +gboolean gdk_display_supports_cursor_color (GdkDisplay *display); +guint gdk_display_get_default_cursor_size (GdkDisplay *display); +void gdk_display_get_maximal_cursor_size (GdkDisplay *display, + guint *width, + guint *height); + +GdkWindow *gdk_display_get_default_group (GdkDisplay *display); + +gboolean gdk_display_supports_selection_notification (GdkDisplay *display); +gboolean gdk_display_request_selection_notification (GdkDisplay *display, + GdkAtom selection); + +gboolean gdk_display_supports_clipboard_persistence (GdkDisplay *display); +void gdk_display_store_clipboard (GdkDisplay *display, + GdkWindow *clipboard_window, + guint32 time_, + GdkAtom *targets, + gint n_targets); + +gboolean gdk_display_supports_shapes (GdkDisplay *display); +gboolean gdk_display_supports_input_shapes (GdkDisplay *display); +gboolean gdk_display_supports_composite (GdkDisplay *display); + +G_END_DECLS + +#endif /* __GDK_DISPLAY_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdisplaymanager.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdisplaymanager.h new file mode 100644 index 00000000..75294417 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdisplaymanager.h @@ -0,0 +1,63 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_DISPLAY_MANAGER_H__ +#define __GDK_DISPLAY_MANAGER_H__ + +#include <gdk/gdktypes.h> +#include <gdk/gdkdisplay.h> + +G_BEGIN_DECLS + +typedef struct _GdkDisplayManager GdkDisplayManager; +typedef struct _GdkDisplayManagerClass GdkDisplayManagerClass; + +#define GDK_TYPE_DISPLAY_MANAGER (gdk_display_manager_get_type ()) +#define GDK_DISPLAY_MANAGER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DISPLAY_MANAGER, GdkDisplayManager)) +#define GDK_DISPLAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DISPLAY_MANAGER, GdkDisplayManagerClass)) +#define GDK_IS_DISPLAY_MANAGER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DISPLAY_MANAGER)) +#define GDK_IS_DISPLAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DISPLAY_MANAGER)) +#define GDK_DISPLAY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DISPLAY_MANAGER, GdkDisplayManagerClass)) + +struct _GdkDisplayManagerClass +{ + GObjectClass parent_class; + + void (*display_opened) (GdkDisplayManager *display_manager, + GdkDisplay *display); +}; + +GType gdk_display_manager_get_type (void) G_GNUC_CONST; + +GdkDisplayManager *gdk_display_manager_get (void); +GdkDisplay * gdk_display_manager_get_default_display (GdkDisplayManager *display_manager); +void gdk_display_manager_set_default_display (GdkDisplayManager *display_manager, + GdkDisplay *display); +GSList * gdk_display_manager_list_displays (GdkDisplayManager *display_manager); + +G_END_DECLS + +#endif /* __GDK_DISPLAY_MANAGER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdnd.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdnd.h new file mode 100644 index 00000000..68440532 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdnd.h @@ -0,0 +1,166 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ +#ifndef __GDK_DND_H__ +#define __GDK_DND_H__ + +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +typedef struct _GdkDragContext GdkDragContext; + +typedef enum +{ + GDK_ACTION_DEFAULT = 1 << 0, + GDK_ACTION_COPY = 1 << 1, + GDK_ACTION_MOVE = 1 << 2, + GDK_ACTION_LINK = 1 << 3, + GDK_ACTION_PRIVATE = 1 << 4, + GDK_ACTION_ASK = 1 << 5 +} GdkDragAction; + +typedef enum +{ + GDK_DRAG_PROTO_MOTIF, + GDK_DRAG_PROTO_XDND, + GDK_DRAG_PROTO_ROOTWIN, /* A root window with nobody claiming + * drags */ + GDK_DRAG_PROTO_NONE, /* Not a valid drag window */ + GDK_DRAG_PROTO_WIN32_DROPFILES, /* The simple WM_DROPFILES dnd */ + GDK_DRAG_PROTO_OLE2, /* The complex OLE2 dnd (not implemented) */ + GDK_DRAG_PROTO_LOCAL /* Intra-app */ +} GdkDragProtocol; + +/* Object that holds information about a drag in progress. + * this is used on both source and destination sides. + */ + +typedef struct _GdkDragContextClass GdkDragContextClass; + +#define GDK_TYPE_DRAG_CONTEXT (gdk_drag_context_get_type ()) +#define GDK_DRAG_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DRAG_CONTEXT, GdkDragContext)) +#define GDK_DRAG_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DRAG_CONTEXT, GdkDragContextClass)) +#define GDK_IS_DRAG_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DRAG_CONTEXT)) +#define GDK_IS_DRAG_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DRAG_CONTEXT)) +#define GDK_DRAG_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DRAG_CONTEXT, GdkDragContextClass)) + +struct _GdkDragContext { + GObject parent_instance; + + /*< public >*/ + + GdkDragProtocol protocol; + + gboolean is_source; + + GdkWindow *source_window; + GdkWindow *dest_window; + + GList *targets; + GdkDragAction actions; + GdkDragAction suggested_action; + GdkDragAction action; + + guint32 start_time; + + /*< private >*/ + + gpointer windowing_data; +}; + +struct _GdkDragContextClass { + GObjectClass parent_class; + + +}; + +/* Drag and Drop */ + +GType gdk_drag_context_get_type (void) G_GNUC_CONST; +GdkDragContext * gdk_drag_context_new (void); + +#ifndef GDK_DISABLE_DEPRECATED +void gdk_drag_context_ref (GdkDragContext *context); +void gdk_drag_context_unref (GdkDragContext *context); +#endif + +/* Destination side */ + +void gdk_drag_status (GdkDragContext *context, + GdkDragAction action, + guint32 time_); +void gdk_drop_reply (GdkDragContext *context, + gboolean ok, + guint32 time_); +void gdk_drop_finish (GdkDragContext *context, + gboolean success, + guint32 time_); +GdkAtom gdk_drag_get_selection (GdkDragContext *context); + +/* Source side */ + +GdkDragContext * gdk_drag_begin (GdkWindow *window, + GList *targets); + +guint32 gdk_drag_get_protocol_for_display (GdkDisplay *display, + guint32 xid, + GdkDragProtocol *protocol); +void gdk_drag_find_window_for_screen (GdkDragContext *context, + GdkWindow *drag_window, + GdkScreen *screen, + gint x_root, + gint y_root, + GdkWindow **dest_window, + GdkDragProtocol *protocol); + +#ifndef GDK_MULTIHEAD_SAFE +guint32 gdk_drag_get_protocol (guint32 xid, + GdkDragProtocol *protocol); +void gdk_drag_find_window (GdkDragContext *context, + GdkWindow *drag_window, + gint x_root, + gint y_root, + GdkWindow **dest_window, + GdkDragProtocol *protocol); +#endif /* GDK_MULTIHEAD_SAFE */ + +gboolean gdk_drag_motion (GdkDragContext *context, + GdkWindow *dest_window, + GdkDragProtocol protocol, + gint x_root, + gint y_root, + GdkDragAction suggested_action, + GdkDragAction possible_actions, + guint32 time_); +void gdk_drag_drop (GdkDragContext *context, + guint32 time_); +void gdk_drag_abort (GdkDragContext *context, + guint32 time_); +gboolean gdk_drag_drop_succeeded (GdkDragContext *context); + +G_END_DECLS + +#endif /* __GDK_DND_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdrawable.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdrawable.h new file mode 100644 index 00000000..ccaa3644 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkdrawable.h @@ -0,0 +1,419 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ +#ifndef __GDK_DRAWABLE_H__ +#define __GDK_DRAWABLE_H__ + +#include <gdk/gdktypes.h> +#include <gdk/gdkgc.h> +#include <gdk/gdkrgb.h> +#include <gdk-pixbuf/gdk-pixbuf.h> + +#include <cairo.h> + +G_BEGIN_DECLS + +typedef struct _GdkDrawableClass GdkDrawableClass; +typedef struct _GdkTrapezoid GdkTrapezoid; + +#define GDK_TYPE_DRAWABLE (gdk_drawable_get_type ()) +#define GDK_DRAWABLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DRAWABLE, GdkDrawable)) +#define GDK_DRAWABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DRAWABLE, GdkDrawableClass)) +#define GDK_IS_DRAWABLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DRAWABLE)) +#define GDK_IS_DRAWABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DRAWABLE)) +#define GDK_DRAWABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DRAWABLE, GdkDrawableClass)) + +struct _GdkDrawable +{ + GObject parent_instance; +}; + +struct _GdkDrawableClass +{ + GObjectClass parent_class; + + GdkGC *(*create_gc) (GdkDrawable *drawable, + GdkGCValues *values, + GdkGCValuesMask mask); + void (*draw_rectangle) (GdkDrawable *drawable, + GdkGC *gc, + gboolean filled, + gint x, + gint y, + gint width, + gint height); + void (*draw_arc) (GdkDrawable *drawable, + GdkGC *gc, + gboolean filled, + gint x, + gint y, + gint width, + gint height, + gint angle1, + gint angle2); + void (*draw_polygon) (GdkDrawable *drawable, + GdkGC *gc, + gboolean filled, + GdkPoint *points, + gint npoints); + void (*draw_text) (GdkDrawable *drawable, + GdkFont *font, + GdkGC *gc, + gint x, + gint y, + const gchar *text, + gint text_length); + void (*draw_text_wc) (GdkDrawable *drawable, + GdkFont *font, + GdkGC *gc, + gint x, + gint y, + const GdkWChar *text, + gint text_length); + void (*draw_drawable) (GdkDrawable *drawable, + GdkGC *gc, + GdkDrawable *src, + gint xsrc, + gint ysrc, + gint xdest, + gint ydest, + gint width, + gint height); + void (*draw_points) (GdkDrawable *drawable, + GdkGC *gc, + GdkPoint *points, + gint npoints); + void (*draw_segments) (GdkDrawable *drawable, + GdkGC *gc, + GdkSegment *segs, + gint nsegs); + void (*draw_lines) (GdkDrawable *drawable, + GdkGC *gc, + GdkPoint *points, + gint npoints); + + void (*draw_glyphs) (GdkDrawable *drawable, + GdkGC *gc, + PangoFont *font, + gint x, + gint y, + PangoGlyphString *glyphs); + + void (*draw_image) (GdkDrawable *drawable, + GdkGC *gc, + GdkImage *image, + gint xsrc, + gint ysrc, + gint xdest, + gint ydest, + gint width, + gint height); + + gint (*get_depth) (GdkDrawable *drawable); + void (*get_size) (GdkDrawable *drawable, + gint *width, + gint *height); + + void (*set_colormap) (GdkDrawable *drawable, + GdkColormap *cmap); + + GdkColormap* (*get_colormap) (GdkDrawable *drawable); + GdkVisual* (*get_visual) (GdkDrawable *drawable); + GdkScreen* (*get_screen) (GdkDrawable *drawable); + + GdkImage* (*get_image) (GdkDrawable *drawable, + gint x, + gint y, + gint width, + gint height); + + GdkRegion* (*get_clip_region) (GdkDrawable *drawable); + GdkRegion* (*get_visible_region) (GdkDrawable *drawable); + + GdkDrawable* (*get_composite_drawable) (GdkDrawable *drawable, + gint x, + gint y, + gint width, + gint height, + gint *composite_x_offset, + gint *composite_y_offset); + + void (*draw_pixbuf) (GdkDrawable *drawable, + GdkGC *gc, + GdkPixbuf *pixbuf, + gint src_x, + gint src_y, + gint dest_x, + gint dest_y, + gint width, + gint height, + GdkRgbDither dither, + gint x_dither, + gint y_dither); + GdkImage* (*_copy_to_image) (GdkDrawable *drawable, + GdkImage *image, + gint src_x, + gint src_y, + gint dest_x, + gint dest_y, + gint width, + gint height); + + void (*draw_glyphs_transformed) (GdkDrawable *drawable, + GdkGC *gc, + PangoMatrix *matrix, + PangoFont *font, + gint x, + gint y, + PangoGlyphString *glyphs); + void (*draw_trapezoids) (GdkDrawable *drawable, + GdkGC *gc, + GdkTrapezoid *trapezoids, + gint n_trapezoids); + + cairo_surface_t *(*ref_cairo_surface) (GdkDrawable *drawable); + + /* Padding for future expansion */ + void (*_gdk_reserved4) (void); + void (*_gdk_reserved5) (void); + void (*_gdk_reserved6) (void); + void (*_gdk_reserved7) (void); + void (*_gdk_reserved9) (void); + void (*_gdk_reserved10) (void); + void (*_gdk_reserved11) (void); + void (*_gdk_reserved12) (void); + void (*_gdk_reserved13) (void); + void (*_gdk_reserved14) (void); + void (*_gdk_reserved15) (void); + void (*_gdk_reserved16) (void); +}; + +struct _GdkTrapezoid +{ + double y1, x11, x21, y2, x12, x22; +}; + +GType gdk_drawable_get_type (void) G_GNUC_CONST; + +/* Manipulation of drawables + */ + +#ifndef GDK_DISABLE_DEPRECATED +void gdk_drawable_set_data (GdkDrawable *drawable, + const gchar *key, + gpointer data, + GDestroyNotify destroy_func); +gpointer gdk_drawable_get_data (GdkDrawable *drawable, + const gchar *key); +#endif /* GDK_DISABLE_DEPRECATED */ + +void gdk_drawable_get_size (GdkDrawable *drawable, + gint *width, + gint *height); +void gdk_drawable_set_colormap (GdkDrawable *drawable, + GdkColormap *colormap); +GdkColormap* gdk_drawable_get_colormap (GdkDrawable *drawable); +GdkVisual* gdk_drawable_get_visual (GdkDrawable *drawable); +gint gdk_drawable_get_depth (GdkDrawable *drawable); +GdkScreen* gdk_drawable_get_screen (GdkDrawable *drawable); +GdkDisplay* gdk_drawable_get_display (GdkDrawable *drawable); + +#ifndef GDK_DISABLE_DEPRECATED +GdkDrawable* gdk_drawable_ref (GdkDrawable *drawable); +void gdk_drawable_unref (GdkDrawable *drawable); +#endif /* GDK_DISABLE_DEPRECATED */ + +/* Drawing + */ +void gdk_draw_point (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y); +void gdk_draw_line (GdkDrawable *drawable, + GdkGC *gc, + gint x1_, + gint y1_, + gint x2_, + gint y2_); +void gdk_draw_rectangle (GdkDrawable *drawable, + GdkGC *gc, + gboolean filled, + gint x, + gint y, + gint width, + gint height); +void gdk_draw_arc (GdkDrawable *drawable, + GdkGC *gc, + gboolean filled, + gint x, + gint y, + gint width, + gint height, + gint angle1, + gint angle2); +void gdk_draw_polygon (GdkDrawable *drawable, + GdkGC *gc, + gboolean filled, + GdkPoint *points, + gint npoints); +#if !defined (GDK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) +/* Used by gtk_default_draw_string () */ +void gdk_draw_string (GdkDrawable *drawable, + GdkFont *font, + GdkGC *gc, + gint x, + gint y, + const gchar *string); +#endif /* !GDK_DISABLE_DEPRECATED || GTK_COMPILATION */ +#if !defined (GDK_DISABLE_DEPRECATED) || defined (GDK_COMPILATION) +/* Used by gdk_pixmap_draw_text (), gdk_window_draw_text() */ +void gdk_draw_text (GdkDrawable *drawable, + GdkFont *font, + GdkGC *gc, + gint x, + gint y, + const gchar *text, + gint text_length); +/* Used by gdk_pixmap_draw_text_wc (), gdk_window_draw_text_wc () */ +void gdk_draw_text_wc (GdkDrawable *drawable, + GdkFont *font, + GdkGC *gc, + gint x, + gint y, + const GdkWChar *text, + gint text_length); +#endif /* !GDK_DISABLE_DEPRECATED || GDK_COMPILATION */ +void gdk_draw_drawable (GdkDrawable *drawable, + GdkGC *gc, + GdkDrawable *src, + gint xsrc, + gint ysrc, + gint xdest, + gint ydest, + gint width, + gint height); +void gdk_draw_image (GdkDrawable *drawable, + GdkGC *gc, + GdkImage *image, + gint xsrc, + gint ysrc, + gint xdest, + gint ydest, + gint width, + gint height); +void gdk_draw_points (GdkDrawable *drawable, + GdkGC *gc, + GdkPoint *points, + gint npoints); +void gdk_draw_segments (GdkDrawable *drawable, + GdkGC *gc, + GdkSegment *segs, + gint nsegs); +void gdk_draw_lines (GdkDrawable *drawable, + GdkGC *gc, + GdkPoint *points, + gint npoints); +void gdk_draw_pixbuf (GdkDrawable *drawable, + GdkGC *gc, + GdkPixbuf *pixbuf, + gint src_x, + gint src_y, + gint dest_x, + gint dest_y, + gint width, + gint height, + GdkRgbDither dither, + gint x_dither, + gint y_dither); + +void gdk_draw_glyphs (GdkDrawable *drawable, + GdkGC *gc, + PangoFont *font, + gint x, + gint y, + PangoGlyphString *glyphs); +void gdk_draw_layout_line (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + PangoLayoutLine *line); +void gdk_draw_layout (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + PangoLayout *layout); + +void gdk_draw_layout_line_with_colors (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + PangoLayoutLine *line, + const GdkColor *foreground, + const GdkColor *background); +void gdk_draw_layout_with_colors (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + PangoLayout *layout, + const GdkColor *foreground, + const GdkColor *background); + +void gdk_draw_glyphs_transformed (GdkDrawable *drawable, + GdkGC *gc, + PangoMatrix *matrix, + PangoFont *font, + gint x, + gint y, + PangoGlyphString *glyphs); +void gdk_draw_trapezoids (GdkDrawable *drawable, + GdkGC *gc, + GdkTrapezoid *trapezoids, + gint n_trapezoids); + +#ifndef GDK_DISABLE_DEPRECATED +#define gdk_draw_pixmap gdk_draw_drawable +#define gdk_draw_bitmap gdk_draw_drawable +#endif /* GDK_DISABLE_DEPRECATED */ + +GdkImage* gdk_drawable_get_image (GdkDrawable *drawable, + gint x, + gint y, + gint width, + gint height); +GdkImage *gdk_drawable_copy_to_image (GdkDrawable *drawable, + GdkImage *image, + gint src_x, + gint src_y, + gint dest_x, + gint dest_y, + gint width, + gint height); + +GdkRegion *gdk_drawable_get_clip_region (GdkDrawable *drawable); +GdkRegion *gdk_drawable_get_visible_region (GdkDrawable *drawable); + +G_END_DECLS + +#endif /* __GDK_DRAWABLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkenumtypes.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkenumtypes.h new file mode 100644 index 00000000..1ffe3dbf --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkenumtypes.h @@ -0,0 +1,120 @@ + +/* Generated data (by glib-mkenums) */ + +#ifndef __GDK_ENUM_TYPES_H__ +#define __GDK_ENUM_TYPES_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS +/* enumerations from "gdkcursor.h" */ +GType gdk_cursor_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_CURSOR_TYPE (gdk_cursor_type_get_type()) +/* enumerations from "gdkdnd.h" */ +GType gdk_drag_action_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_DRAG_ACTION (gdk_drag_action_get_type()) +GType gdk_drag_protocol_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_DRAG_PROTOCOL (gdk_drag_protocol_get_type()) +/* enumerations from "gdkevents.h" */ +GType gdk_filter_return_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_FILTER_RETURN (gdk_filter_return_get_type()) +GType gdk_event_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_EVENT_TYPE (gdk_event_type_get_type()) +GType gdk_event_mask_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_EVENT_MASK (gdk_event_mask_get_type()) +GType gdk_visibility_state_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_VISIBILITY_STATE (gdk_visibility_state_get_type()) +GType gdk_scroll_direction_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_SCROLL_DIRECTION (gdk_scroll_direction_get_type()) +GType gdk_notify_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_NOTIFY_TYPE (gdk_notify_type_get_type()) +GType gdk_crossing_mode_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_CROSSING_MODE (gdk_crossing_mode_get_type()) +GType gdk_property_state_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_PROPERTY_STATE (gdk_property_state_get_type()) +GType gdk_window_state_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_WINDOW_STATE (gdk_window_state_get_type()) +GType gdk_setting_action_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_SETTING_ACTION (gdk_setting_action_get_type()) +GType gdk_owner_change_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_OWNER_CHANGE (gdk_owner_change_get_type()) +/* enumerations from "gdkfont.h" */ +GType gdk_font_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_FONT_TYPE (gdk_font_type_get_type()) +/* enumerations from "gdkgc.h" */ +GType gdk_cap_style_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_CAP_STYLE (gdk_cap_style_get_type()) +GType gdk_fill_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_FILL (gdk_fill_get_type()) +GType gdk_function_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_FUNCTION (gdk_function_get_type()) +GType gdk_join_style_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_JOIN_STYLE (gdk_join_style_get_type()) +GType gdk_line_style_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_LINE_STYLE (gdk_line_style_get_type()) +GType gdk_subwindow_mode_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_SUBWINDOW_MODE (gdk_subwindow_mode_get_type()) +GType gdk_gc_values_mask_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_GC_VALUES_MASK (gdk_gc_values_mask_get_type()) +/* enumerations from "gdkimage.h" */ +GType gdk_image_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_IMAGE_TYPE (gdk_image_type_get_type()) +/* enumerations from "gdkinput.h" */ +GType gdk_extension_mode_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_EXTENSION_MODE (gdk_extension_mode_get_type()) +GType gdk_input_source_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_INPUT_SOURCE (gdk_input_source_get_type()) +GType gdk_input_mode_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_INPUT_MODE (gdk_input_mode_get_type()) +GType gdk_axis_use_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_AXIS_USE (gdk_axis_use_get_type()) +/* enumerations from "gdkproperty.h" */ +GType gdk_prop_mode_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_PROP_MODE (gdk_prop_mode_get_type()) +/* enumerations from "gdkregion.h" */ +GType gdk_fill_rule_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_FILL_RULE (gdk_fill_rule_get_type()) +GType gdk_overlap_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_OVERLAP_TYPE (gdk_overlap_type_get_type()) +/* enumerations from "gdkrgb.h" */ +GType gdk_rgb_dither_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_RGB_DITHER (gdk_rgb_dither_get_type()) +/* enumerations from "gdktypes.h" */ +GType gdk_byte_order_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_BYTE_ORDER (gdk_byte_order_get_type()) +GType gdk_modifier_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_MODIFIER_TYPE (gdk_modifier_type_get_type()) +GType gdk_input_condition_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_INPUT_CONDITION (gdk_input_condition_get_type()) +GType gdk_status_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_STATUS (gdk_status_get_type()) +GType gdk_grab_status_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_GRAB_STATUS (gdk_grab_status_get_type()) +/* enumerations from "gdkvisual.h" */ +GType gdk_visual_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_VISUAL_TYPE (gdk_visual_type_get_type()) +/* enumerations from "gdkwindow.h" */ +GType gdk_window_class_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_WINDOW_CLASS (gdk_window_class_get_type()) +GType gdk_window_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_WINDOW_TYPE (gdk_window_type_get_type()) +GType gdk_window_attributes_type_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_WINDOW_ATTRIBUTES_TYPE (gdk_window_attributes_type_get_type()) +GType gdk_window_hints_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_WINDOW_HINTS (gdk_window_hints_get_type()) +GType gdk_window_type_hint_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_WINDOW_TYPE_HINT (gdk_window_type_hint_get_type()) +GType gdk_wm_decoration_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_WM_DECORATION (gdk_wm_decoration_get_type()) +GType gdk_wm_function_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_WM_FUNCTION (gdk_wm_function_get_type()) +GType gdk_gravity_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_GRAVITY (gdk_gravity_get_type()) +GType gdk_window_edge_get_type (void) G_GNUC_CONST; +#define GDK_TYPE_WINDOW_EDGE (gdk_window_edge_get_type()) +G_END_DECLS + +#endif /* __GDK_ENUM_TYPES_H__ */ + +/* Generated data ends here */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkevents.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkevents.h new file mode 100644 index 00000000..5a30e99a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkevents.h @@ -0,0 +1,555 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_EVENTS_H__ +#define __GDK_EVENTS_H__ + +#include <gdk/gdkcolor.h> +#include <gdk/gdktypes.h> +#include <gdk/gdkdnd.h> +#include <gdk/gdkinput.h> + +G_BEGIN_DECLS + +#define GDK_TYPE_EVENT (gdk_event_get_type ()) + +#define GDK_PRIORITY_EVENTS (G_PRIORITY_DEFAULT) +#define GDK_PRIORITY_REDRAW (G_PRIORITY_HIGH_IDLE + 20) + + +typedef struct _GdkEventAny GdkEventAny; +typedef struct _GdkEventExpose GdkEventExpose; +typedef struct _GdkEventNoExpose GdkEventNoExpose; +typedef struct _GdkEventVisibility GdkEventVisibility; +typedef struct _GdkEventMotion GdkEventMotion; +typedef struct _GdkEventButton GdkEventButton; +typedef struct _GdkEventScroll GdkEventScroll; +typedef struct _GdkEventKey GdkEventKey; +typedef struct _GdkEventFocus GdkEventFocus; +typedef struct _GdkEventCrossing GdkEventCrossing; +typedef struct _GdkEventConfigure GdkEventConfigure; +typedef struct _GdkEventProperty GdkEventProperty; +typedef struct _GdkEventSelection GdkEventSelection; +typedef struct _GdkEventOwnerChange GdkEventOwnerChange; +typedef struct _GdkEventProximity GdkEventProximity; +typedef struct _GdkEventClient GdkEventClient; +typedef struct _GdkEventDND GdkEventDND; +typedef struct _GdkEventWindowState GdkEventWindowState; +typedef struct _GdkEventSetting GdkEventSetting; +typedef struct _GdkEventGrabBroken GdkEventGrabBroken; + +typedef union _GdkEvent GdkEvent; + +typedef void (*GdkEventFunc) (GdkEvent *event, + gpointer data); + +/* Event filtering */ + +typedef void GdkXEvent; /* Can be cast to window system specific + * even type, XEvent on X11, MSG on Win32. + */ + +typedef enum { + GDK_FILTER_CONTINUE, /* Event not handled, continue processesing */ + GDK_FILTER_TRANSLATE, /* Native event translated into a GDK event and + stored in the "event" structure that was + passed in */ + GDK_FILTER_REMOVE /* Terminate processing, removing event */ +} GdkFilterReturn; + +typedef GdkFilterReturn (*GdkFilterFunc) (GdkXEvent *xevent, + GdkEvent *event, + gpointer data); + + +/* Event types. + * Nothing: No event occurred. + * Delete: A window delete event was sent by the window manager. + * The specified window should be deleted. + * Destroy: A window has been destroyed. + * Expose: Part of a window has been uncovered. + * NoExpose: Same as expose, but no expose event was generated. + * VisibilityNotify: A window has become fully/partially/not obscured. + * MotionNotify: The mouse has moved. + * ButtonPress: A mouse button was pressed. + * ButtonRelease: A mouse button was release. + * KeyPress: A key was pressed. + * KeyRelease: A key was released. + * EnterNotify: A window was entered. + * LeaveNotify: A window was exited. + * FocusChange: The focus window has changed. (The focus window gets + * keyboard events). + * Resize: A window has been resized. + * Map: A window has been mapped. (It is now visible on the screen). + * Unmap: A window has been unmapped. (It is no longer visible on + * the screen). + * Scroll: A mouse wheel was scrolled either up or down. + */ +typedef enum +{ + GDK_NOTHING = -1, + GDK_DELETE = 0, + GDK_DESTROY = 1, + GDK_EXPOSE = 2, + GDK_MOTION_NOTIFY = 3, + GDK_BUTTON_PRESS = 4, + GDK_2BUTTON_PRESS = 5, + GDK_3BUTTON_PRESS = 6, + GDK_BUTTON_RELEASE = 7, + GDK_KEY_PRESS = 8, + GDK_KEY_RELEASE = 9, + GDK_ENTER_NOTIFY = 10, + GDK_LEAVE_NOTIFY = 11, + GDK_FOCUS_CHANGE = 12, + GDK_CONFIGURE = 13, + GDK_MAP = 14, + GDK_UNMAP = 15, + GDK_PROPERTY_NOTIFY = 16, + GDK_SELECTION_CLEAR = 17, + GDK_SELECTION_REQUEST = 18, + GDK_SELECTION_NOTIFY = 19, + GDK_PROXIMITY_IN = 20, + GDK_PROXIMITY_OUT = 21, + GDK_DRAG_ENTER = 22, + GDK_DRAG_LEAVE = 23, + GDK_DRAG_MOTION = 24, + GDK_DRAG_STATUS = 25, + GDK_DROP_START = 26, + GDK_DROP_FINISHED = 27, + GDK_CLIENT_EVENT = 28, + GDK_VISIBILITY_NOTIFY = 29, + GDK_NO_EXPOSE = 30, + GDK_SCROLL = 31, + GDK_WINDOW_STATE = 32, + GDK_SETTING = 33, + GDK_OWNER_CHANGE = 34, + GDK_GRAB_BROKEN = 35 +} GdkEventType; + +/* Event masks. (Used to select what types of events a window + * will receive). + */ +typedef enum +{ + GDK_EXPOSURE_MASK = 1 << 1, + GDK_POINTER_MOTION_MASK = 1 << 2, + GDK_POINTER_MOTION_HINT_MASK = 1 << 3, + GDK_BUTTON_MOTION_MASK = 1 << 4, + GDK_BUTTON1_MOTION_MASK = 1 << 5, + GDK_BUTTON2_MOTION_MASK = 1 << 6, + GDK_BUTTON3_MOTION_MASK = 1 << 7, + GDK_BUTTON_PRESS_MASK = 1 << 8, + GDK_BUTTON_RELEASE_MASK = 1 << 9, + GDK_KEY_PRESS_MASK = 1 << 10, + GDK_KEY_RELEASE_MASK = 1 << 11, + GDK_ENTER_NOTIFY_MASK = 1 << 12, + GDK_LEAVE_NOTIFY_MASK = 1 << 13, + GDK_FOCUS_CHANGE_MASK = 1 << 14, + GDK_STRUCTURE_MASK = 1 << 15, + GDK_PROPERTY_CHANGE_MASK = 1 << 16, + GDK_VISIBILITY_NOTIFY_MASK = 1 << 17, + GDK_PROXIMITY_IN_MASK = 1 << 18, + GDK_PROXIMITY_OUT_MASK = 1 << 19, + GDK_SUBSTRUCTURE_MASK = 1 << 20, + GDK_SCROLL_MASK = 1 << 21, + GDK_ALL_EVENTS_MASK = 0x3FFFFE +} GdkEventMask; + +typedef enum +{ + GDK_VISIBILITY_UNOBSCURED, + GDK_VISIBILITY_PARTIAL, + GDK_VISIBILITY_FULLY_OBSCURED +} GdkVisibilityState; + +typedef enum +{ + GDK_SCROLL_UP, + GDK_SCROLL_DOWN, + GDK_SCROLL_LEFT, + GDK_SCROLL_RIGHT +} GdkScrollDirection; + +/* Types of enter/leave notifications. + * Ancestor: + * Virtual: + * Inferior: + * Nonlinear: + * NonlinearVirtual: + * Unknown: An unknown type of enter/leave event occurred. + */ +typedef enum +{ + GDK_NOTIFY_ANCESTOR = 0, + GDK_NOTIFY_VIRTUAL = 1, + GDK_NOTIFY_INFERIOR = 2, + GDK_NOTIFY_NONLINEAR = 3, + GDK_NOTIFY_NONLINEAR_VIRTUAL = 4, + GDK_NOTIFY_UNKNOWN = 5 +} GdkNotifyType; + +/* Enter/leave event modes. + * NotifyNormal + * NotifyGrab + * NotifyUngrab + */ +typedef enum +{ + GDK_CROSSING_NORMAL, + GDK_CROSSING_GRAB, + GDK_CROSSING_UNGRAB +} GdkCrossingMode; + +typedef enum +{ + GDK_PROPERTY_NEW_VALUE, + GDK_PROPERTY_DELETE +} GdkPropertyState; + +typedef enum +{ + GDK_WINDOW_STATE_WITHDRAWN = 1 << 0, + GDK_WINDOW_STATE_ICONIFIED = 1 << 1, + GDK_WINDOW_STATE_MAXIMIZED = 1 << 2, + GDK_WINDOW_STATE_STICKY = 1 << 3, + GDK_WINDOW_STATE_FULLSCREEN = 1 << 4, + GDK_WINDOW_STATE_ABOVE = 1 << 5, + GDK_WINDOW_STATE_BELOW = 1 << 6 +} GdkWindowState; + +typedef enum +{ + GDK_SETTING_ACTION_NEW, + GDK_SETTING_ACTION_CHANGED, + GDK_SETTING_ACTION_DELETED +} GdkSettingAction; + +typedef enum +{ + GDK_OWNER_CHANGE_NEW_OWNER, + GDK_OWNER_CHANGE_DESTROY, + GDK_OWNER_CHANGE_CLOSE +} GdkOwnerChange; + +struct _GdkEventAny +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; +}; + +struct _GdkEventExpose +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + GdkRectangle area; + GdkRegion *region; + gint count; /* If non-zero, how many more events follow. */ +}; + +struct _GdkEventNoExpose +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; +}; + +struct _GdkEventVisibility +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + GdkVisibilityState state; +}; + +struct _GdkEventMotion +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + guint32 time; + gdouble x; + gdouble y; + gdouble *axes; + guint state; + gint16 is_hint; + GdkDevice *device; + gdouble x_root, y_root; +}; + +struct _GdkEventButton +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + guint32 time; + gdouble x; + gdouble y; + gdouble *axes; + guint state; + guint button; + GdkDevice *device; + gdouble x_root, y_root; +}; + +struct _GdkEventScroll +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + guint32 time; + gdouble x; + gdouble y; + guint state; + GdkScrollDirection direction; + GdkDevice *device; + gdouble x_root, y_root; +}; + +struct _GdkEventKey +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + guint32 time; + guint state; + guint keyval; + gint length; + gchar *string; + guint16 hardware_keycode; + guint8 group; + guint is_modifier : 1; +}; + +struct _GdkEventCrossing +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + GdkWindow *subwindow; + guint32 time; + gdouble x; + gdouble y; + gdouble x_root; + gdouble y_root; + GdkCrossingMode mode; + GdkNotifyType detail; + gboolean focus; + guint state; +}; + +struct _GdkEventFocus +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + gint16 in; +}; + +struct _GdkEventConfigure +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + gint x, y; + gint width; + gint height; +}; + +struct _GdkEventProperty +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + GdkAtom atom; + guint32 time; + guint state; +}; + +struct _GdkEventSelection +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + GdkAtom selection; + GdkAtom target; + GdkAtom property; + guint32 time; + GdkNativeWindow requestor; +}; + +struct _GdkEventOwnerChange +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + GdkNativeWindow owner; + GdkOwnerChange reason; + GdkAtom selection; + guint32 time; + guint32 selection_time; +}; + +/* This event type will be used pretty rarely. It only is important + for XInput aware programs that are drawing their own cursor */ + +struct _GdkEventProximity +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + guint32 time; + GdkDevice *device; +}; + +struct _GdkEventClient +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + GdkAtom message_type; + gushort data_format; + union { + char b[20]; + short s[10]; + long l[5]; + } data; +}; + +struct _GdkEventSetting +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + GdkSettingAction action; + char *name; +}; + +struct _GdkEventWindowState +{ + GdkEventType type; + GdkWindow *window; + gint8 send_event; + GdkWindowState changed_mask; + GdkWindowState new_window_state; +}; + +struct _GdkEventGrabBroken { + GdkEventType type; + GdkWindow *window; + gint8 send_event; + gboolean keyboard; + gboolean implicit; + GdkWindow *grab_window; +}; + +/* Event types for DND */ + +struct _GdkEventDND { + GdkEventType type; + GdkWindow *window; + gint8 send_event; + GdkDragContext *context; + + guint32 time; + gshort x_root, y_root; +}; + +union _GdkEvent +{ + GdkEventType type; + GdkEventAny any; + GdkEventExpose expose; + GdkEventNoExpose no_expose; + GdkEventVisibility visibility; + GdkEventMotion motion; + GdkEventButton button; + GdkEventScroll scroll; + GdkEventKey key; + GdkEventCrossing crossing; + GdkEventFocus focus_change; + GdkEventConfigure configure; + GdkEventProperty property; + GdkEventSelection selection; + GdkEventOwnerChange owner_change; + GdkEventProximity proximity; + GdkEventClient client; + GdkEventDND dnd; + GdkEventWindowState window_state; + GdkEventSetting setting; + GdkEventGrabBroken grab_broken; +}; + +GType gdk_event_get_type (void) G_GNUC_CONST; + +gboolean gdk_events_pending (void); +GdkEvent* gdk_event_get (void); + +GdkEvent* gdk_event_peek (void); +GdkEvent* gdk_event_get_graphics_expose (GdkWindow *window); +void gdk_event_put (GdkEvent *event); + +GdkEvent* gdk_event_new (GdkEventType type); +GdkEvent* gdk_event_copy (GdkEvent *event); +void gdk_event_free (GdkEvent *event); + +guint32 gdk_event_get_time (GdkEvent *event); +gboolean gdk_event_get_state (GdkEvent *event, + GdkModifierType *state); +gboolean gdk_event_get_coords (GdkEvent *event, + gdouble *x_win, + gdouble *y_win); +gboolean gdk_event_get_root_coords (GdkEvent *event, + gdouble *x_root, + gdouble *y_root); +gboolean gdk_event_get_axis (GdkEvent *event, + GdkAxisUse axis_use, + gdouble *value); +void gdk_event_request_motions (GdkEventMotion *event); +void gdk_event_handler_set (GdkEventFunc func, + gpointer data, + GDestroyNotify notify); + +void gdk_event_set_screen (GdkEvent *event, + GdkScreen *screen); +GdkScreen *gdk_event_get_screen (GdkEvent *event); + +void gdk_set_show_events (gboolean show_events); +gboolean gdk_get_show_events (void); + +#ifndef GDK_MULTIHEAD_SAFE +void gdk_add_client_message_filter (GdkAtom message_type, + GdkFilterFunc func, + gpointer data); + +gboolean gdk_setting_get (const gchar *name, + GValue *value); +#endif /* GDK_MULTIHEAD_SAFE */ + +G_END_DECLS + +#endif /* __GDK_EVENTS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkfont.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkfont.h new file mode 100644 index 00000000..18061daa --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkfont.h @@ -0,0 +1,138 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined(GDK_DISABLE_DEPRECATED) || defined(GDK_COMPILATION) || defined(GTK_COMPILATION) + +#ifndef __GDK_FONT_H__ +#define __GDK_FONT_H__ + +#include <gdk/gdktypes.h> +#include <pango/pango-font.h> + +G_BEGIN_DECLS + +#define GDK_TYPE_FONT gdk_font_get_type () + +/* Types of font. + * GDK_FONT_FONT: the font is an XFontStruct. + * GDK_FONT_FONTSET: the font is an XFontSet used for I18N. + */ +typedef enum +{ + GDK_FONT_FONT, + GDK_FONT_FONTSET +} GdkFontType; + +struct _GdkFont +{ + GdkFontType type; + gint ascent; + gint descent; +}; + +GType gdk_font_get_type (void) G_GNUC_CONST; + +GdkFont* gdk_font_ref (GdkFont *font); +void gdk_font_unref (GdkFont *font); +gint gdk_font_id (const GdkFont *font); +gboolean gdk_font_equal (const GdkFont *fonta, + const GdkFont *fontb); + +GdkFont *gdk_font_load_for_display (GdkDisplay *display, + const gchar *font_name); +GdkFont *gdk_fontset_load_for_display (GdkDisplay *display, + const gchar *fontset_name); +GdkFont *gdk_font_from_description_for_display (GdkDisplay *display, + PangoFontDescription *font_desc); + +#ifndef GDK_DISABLE_DEPRECATED + +#ifndef GDK_MULTIHEAD_SAFE +GdkFont* gdk_font_load (const gchar *font_name); +GdkFont* gdk_fontset_load (const gchar *fontset_name); +GdkFont* gdk_font_from_description (PangoFontDescription *font_desc); +#endif + +gint gdk_string_width (GdkFont *font, + const gchar *string); +gint gdk_text_width (GdkFont *font, + const gchar *text, + gint text_length); +gint gdk_text_width_wc (GdkFont *font, + const GdkWChar *text, + gint text_length); +gint gdk_char_width (GdkFont *font, + gchar character); +gint gdk_char_width_wc (GdkFont *font, + GdkWChar character); +gint gdk_string_measure (GdkFont *font, + const gchar *string); +gint gdk_text_measure (GdkFont *font, + const gchar *text, + gint text_length); +gint gdk_char_measure (GdkFont *font, + gchar character); +gint gdk_string_height (GdkFont *font, + const gchar *string); +gint gdk_text_height (GdkFont *font, + const gchar *text, + gint text_length); +gint gdk_char_height (GdkFont *font, + gchar character); + +void gdk_text_extents (GdkFont *font, + const gchar *text, + gint text_length, + gint *lbearing, + gint *rbearing, + gint *width, + gint *ascent, + gint *descent); +void gdk_text_extents_wc (GdkFont *font, + const GdkWChar *text, + gint text_length, + gint *lbearing, + gint *rbearing, + gint *width, + gint *ascent, + gint *descent); +void gdk_string_extents (GdkFont *font, + const gchar *string, + gint *lbearing, + gint *rbearing, + gint *width, + gint *ascent, + gint *descent); + +GdkDisplay * gdk_font_get_display (GdkFont *font); + +#endif /* GDK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GDK_FONT_H__ */ + +#endif /* !GDK_DISABLE_DEPRECATED || GDK_COMPILATION || GTK_COMPILATION */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkgc.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkgc.h new file mode 100644 index 00000000..779735c0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkgc.h @@ -0,0 +1,298 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_GC_H__ +#define __GDK_GC_H__ + +#include <gdk/gdkcolor.h> +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +typedef struct _GdkGCValues GdkGCValues; +typedef struct _GdkGCClass GdkGCClass; + +/* GC cap styles + * CapNotLast: + * CapButt: + * CapRound: + * CapProjecting: + */ +typedef enum +{ + GDK_CAP_NOT_LAST, + GDK_CAP_BUTT, + GDK_CAP_ROUND, + GDK_CAP_PROJECTING +} GdkCapStyle; + +/* GC fill types. + * Solid: + * Tiled: + * Stippled: + * OpaqueStippled: + */ +typedef enum +{ + GDK_SOLID, + GDK_TILED, + GDK_STIPPLED, + GDK_OPAQUE_STIPPLED +} GdkFill; + +/* GC function types. + * Copy: Overwrites destination pixels with the source pixels. + * Invert: Inverts the destination pixels. + * Xor: Xor's the destination pixels with the source pixels. + * Clear: set pixels to 0 + * And: source AND destination + * And Reverse: source AND (NOT destination) + * And Invert: (NOT source) AND destination + * Noop: destination + * Or: source OR destination + * Nor: (NOT source) AND (NOT destination) + * Equiv: (NOT source) XOR destination + * Xor Reverse: source OR (NOT destination) + * Copy Inverted: NOT source + * Xor Inverted: (NOT source) OR destination + * Nand: (NOT source) OR (NOT destination) + * Set: set pixels to 1 + */ +typedef enum +{ + GDK_COPY, + GDK_INVERT, + GDK_XOR, + GDK_CLEAR, + GDK_AND, + GDK_AND_REVERSE, + GDK_AND_INVERT, + GDK_NOOP, + GDK_OR, + GDK_EQUIV, + GDK_OR_REVERSE, + GDK_COPY_INVERT, + GDK_OR_INVERT, + GDK_NAND, + GDK_NOR, + GDK_SET +} GdkFunction; + +/* GC join styles + * JoinMiter: + * JoinRound: + * JoinBevel: + */ +typedef enum +{ + GDK_JOIN_MITER, + GDK_JOIN_ROUND, + GDK_JOIN_BEVEL +} GdkJoinStyle; + +/* GC line styles + * Solid: + * OnOffDash: + * DoubleDash: + */ +typedef enum +{ + GDK_LINE_SOLID, + GDK_LINE_ON_OFF_DASH, + GDK_LINE_DOUBLE_DASH +} GdkLineStyle; + +typedef enum +{ + GDK_CLIP_BY_CHILDREN = 0, + GDK_INCLUDE_INFERIORS = 1 +} GdkSubwindowMode; + +typedef enum +{ + GDK_GC_FOREGROUND = 1 << 0, + GDK_GC_BACKGROUND = 1 << 1, + GDK_GC_FONT = 1 << 2, + GDK_GC_FUNCTION = 1 << 3, + GDK_GC_FILL = 1 << 4, + GDK_GC_TILE = 1 << 5, + GDK_GC_STIPPLE = 1 << 6, + GDK_GC_CLIP_MASK = 1 << 7, + GDK_GC_SUBWINDOW = 1 << 8, + GDK_GC_TS_X_ORIGIN = 1 << 9, + GDK_GC_TS_Y_ORIGIN = 1 << 10, + GDK_GC_CLIP_X_ORIGIN = 1 << 11, + GDK_GC_CLIP_Y_ORIGIN = 1 << 12, + GDK_GC_EXPOSURES = 1 << 13, + GDK_GC_LINE_WIDTH = 1 << 14, + GDK_GC_LINE_STYLE = 1 << 15, + GDK_GC_CAP_STYLE = 1 << 16, + GDK_GC_JOIN_STYLE = 1 << 17 +} GdkGCValuesMask; + +struct _GdkGCValues +{ + GdkColor foreground; + GdkColor background; + GdkFont *font; + GdkFunction function; + GdkFill fill; + GdkPixmap *tile; + GdkPixmap *stipple; + GdkPixmap *clip_mask; + GdkSubwindowMode subwindow_mode; + gint ts_x_origin; + gint ts_y_origin; + gint clip_x_origin; + gint clip_y_origin; + gint graphics_exposures; + gint line_width; + GdkLineStyle line_style; + GdkCapStyle cap_style; + GdkJoinStyle join_style; +}; + +#define GDK_TYPE_GC (gdk_gc_get_type ()) +#define GDK_GC(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_GC, GdkGC)) +#define GDK_GC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_GC, GdkGCClass)) +#define GDK_IS_GC(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_GC)) +#define GDK_IS_GC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_GC)) +#define GDK_GC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_GC, GdkGCClass)) + +struct _GdkGC +{ + GObject parent_instance; + + gint clip_x_origin; + gint clip_y_origin; + gint ts_x_origin; + gint ts_y_origin; + + GdkColormap *colormap; +}; + +struct _GdkGCClass +{ + GObjectClass parent_class; + + void (*get_values) (GdkGC *gc, + GdkGCValues *values); + void (*set_values) (GdkGC *gc, + GdkGCValues *values, + GdkGCValuesMask mask); + void (*set_dashes) (GdkGC *gc, + gint dash_offset, + gint8 dash_list[], + gint n); + + /* Padding for future expansion */ + void (*_gdk_reserved1) (void); + void (*_gdk_reserved2) (void); + void (*_gdk_reserved3) (void); + void (*_gdk_reserved4) (void); +}; + + +GType gdk_gc_get_type (void) G_GNUC_CONST; +GdkGC *gdk_gc_new (GdkDrawable *drawable); +GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable, + GdkGCValues *values, + GdkGCValuesMask values_mask); + +#ifndef GDK_DISABLE_DEPRECATED +GdkGC *gdk_gc_ref (GdkGC *gc); +void gdk_gc_unref (GdkGC *gc); +#endif + +void gdk_gc_get_values (GdkGC *gc, + GdkGCValues *values); +void gdk_gc_set_values (GdkGC *gc, + GdkGCValues *values, + GdkGCValuesMask values_mask); +void gdk_gc_set_foreground (GdkGC *gc, + const GdkColor *color); +void gdk_gc_set_background (GdkGC *gc, + const GdkColor *color); +#ifndef GDK_DISABLE_DEPRECATED +void gdk_gc_set_font (GdkGC *gc, + GdkFont *font); +#endif /* GDK_DISABLE_DEPRECATED */ +void gdk_gc_set_function (GdkGC *gc, + GdkFunction function); +void gdk_gc_set_fill (GdkGC *gc, + GdkFill fill); +void gdk_gc_set_tile (GdkGC *gc, + GdkPixmap *tile); +void gdk_gc_set_stipple (GdkGC *gc, + GdkPixmap *stipple); +void gdk_gc_set_ts_origin (GdkGC *gc, + gint x, + gint y); +void gdk_gc_set_clip_origin (GdkGC *gc, + gint x, + gint y); +void gdk_gc_set_clip_mask (GdkGC *gc, + GdkBitmap *mask); +void gdk_gc_set_clip_rectangle (GdkGC *gc, + GdkRectangle *rectangle); +void gdk_gc_set_clip_region (GdkGC *gc, + GdkRegion *region); +void gdk_gc_set_subwindow (GdkGC *gc, + GdkSubwindowMode mode); +void gdk_gc_set_exposures (GdkGC *gc, + gboolean exposures); +void gdk_gc_set_line_attributes (GdkGC *gc, + gint line_width, + GdkLineStyle line_style, + GdkCapStyle cap_style, + GdkJoinStyle join_style); +void gdk_gc_set_dashes (GdkGC *gc, + gint dash_offset, + gint8 dash_list[], + gint n); +void gdk_gc_offset (GdkGC *gc, + gint x_offset, + gint y_offset); +void gdk_gc_copy (GdkGC *dst_gc, + GdkGC *src_gc); + + +void gdk_gc_set_colormap (GdkGC *gc, + GdkColormap *colormap); +GdkColormap *gdk_gc_get_colormap (GdkGC *gc); +void gdk_gc_set_rgb_fg_color (GdkGC *gc, + const GdkColor *color); +void gdk_gc_set_rgb_bg_color (GdkGC *gc, + const GdkColor *color); +GdkScreen * gdk_gc_get_screen (GdkGC *gc); + +#ifndef GDK_DISABLE_DEPRECATED +#define gdk_gc_destroy gdk_gc_unref +#endif /* GDK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GDK_DRAWABLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdki18n.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdki18n.h new file mode 100644 index 00000000..9e70be0b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdki18n.h @@ -0,0 +1,59 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_I18N_H__ +#define __GDK_I18N_H__ + +#ifndef GDK_DISABLE_DEPRECATED + +/* GDK uses "glib". (And so does GTK). + */ +#include <glib.h> +#include <gdkconfig.h> + +/* international string support */ + +#include <stdlib.h> + +#if !defined(GDK_HAVE_BROKEN_WCTYPE) && (defined(GDK_HAVE_WCTYPE_H) || defined(GDK_HAVE_WCHAR_H)) && !defined(X_LOCALE) +# ifdef GDK_HAVE_WCTYPE_H +# include <wctype.h> +# else +# ifdef GDK_HAVE_WCHAR_H +# include <wchar.h> +# endif +# endif +# define gdk_iswalnum(c) iswalnum(c) +# define gdk_iswspace(c) iswspace(c) +#else +# include <ctype.h> +# define gdk_iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c)) +# define gdk_iswspace(c) ((wchar_t)(c) <= 0xFF && isspace(c)) +#endif + +#endif /* GDK_DISABLE_DEPRECATED */ + +#endif /* __GDK_I18N_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkimage.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkimage.h new file mode 100644 index 00000000..5b8303be --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkimage.h @@ -0,0 +1,133 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_IMAGE_H__ +#define __GDK_IMAGE_H__ + +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +/* Types of images. + * Normal: Normal X image type. These are slow as they involve passing + * the entire image through the X connection each time a draw + * request is required. On Win32, a bitmap. + * Shared: Shared memory X image type. These are fast as the X server + * and the program actually use the same piece of memory. They + * should be used with care though as there is the possibility + * for both the X server and the program to be reading/writing + * the image simultaneously and producing undesired results. + * On Win32, also a bitmap. + */ +typedef enum +{ + GDK_IMAGE_NORMAL, + GDK_IMAGE_SHARED, + GDK_IMAGE_FASTEST +} GdkImageType; + +typedef struct _GdkImageClass GdkImageClass; + +#define GDK_TYPE_IMAGE (gdk_image_get_type ()) +#define GDK_IMAGE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_IMAGE, GdkImage)) +#define GDK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_IMAGE, GdkImageClass)) +#define GDK_IS_IMAGE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_IMAGE)) +#define GDK_IS_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_IMAGE)) +#define GDK_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_IMAGE, GdkImageClass)) + +struct _GdkImage +{ + GObject parent_instance; + + /*< public >*/ + + GdkImageType type; /* read only. */ + GdkVisual *visual; /* read only. visual used to create the image */ + GdkByteOrder byte_order; /* read only. */ + gint width; /* read only. */ + gint height; /* read only. */ + guint16 depth; /* read only. */ + guint16 bpp; /* read only. bytes per pixel */ + guint16 bpl; /* read only. bytes per line */ + guint16 bits_per_pixel; /* read only. bits per pixel */ + gpointer mem; + + GdkColormap *colormap; /* read only. */ + + /*< private >*/ + gpointer windowing_data; /* read only. */ +}; + +struct _GdkImageClass +{ + GObjectClass parent_class; +}; + +GType gdk_image_get_type (void) G_GNUC_CONST; + +GdkImage* gdk_image_new (GdkImageType type, + GdkVisual *visual, + gint width, + gint height); + +#ifndef GDK_DISABLE_DEPRECATED +GdkImage* gdk_image_get (GdkDrawable *drawable, + gint x, + gint y, + gint width, + gint height); + +GdkImage * gdk_image_ref (GdkImage *image); +void gdk_image_unref (GdkImage *image); +#endif + +void gdk_image_put_pixel (GdkImage *image, + gint x, + gint y, + guint32 pixel); +guint32 gdk_image_get_pixel (GdkImage *image, + gint x, + gint y); + +void gdk_image_set_colormap (GdkImage *image, + GdkColormap *colormap); +GdkColormap* gdk_image_get_colormap (GdkImage *image); + + +#ifdef GDK_ENABLE_BROKEN +GdkImage* gdk_image_new_bitmap (GdkVisual *visual, + gpointer data, + gint width, + gint height); +#endif /* GDK_ENABLE_BROKEN */ + +#ifndef GDK_DISABLE_DEPRECATED +#define gdk_image_destroy gdk_image_unref +#endif /* GDK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GDK_IMAGE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkinput.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkinput.h new file mode 100644 index 00000000..d5fe003d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkinput.h @@ -0,0 +1,171 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_INPUT_H__ +#define __GDK_INPUT_H__ + +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +#define GDK_TYPE_DEVICE (gdk_device_get_type ()) +#define GDK_DEVICE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DEVICE, GdkDevice)) +#define GDK_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DEVICE, GdkDeviceClass)) +#define GDK_IS_DEVICE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DEVICE)) +#define GDK_IS_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DEVICE)) +#define GDK_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DEVICE, GdkDeviceClass)) + +typedef struct _GdkDeviceKey GdkDeviceKey; +typedef struct _GdkDeviceAxis GdkDeviceAxis; +typedef struct _GdkDevice GdkDevice; +typedef struct _GdkDeviceClass GdkDeviceClass; +typedef struct _GdkTimeCoord GdkTimeCoord; + +typedef enum +{ + GDK_EXTENSION_EVENTS_NONE, + GDK_EXTENSION_EVENTS_ALL, + GDK_EXTENSION_EVENTS_CURSOR +} GdkExtensionMode; + +typedef enum +{ + GDK_SOURCE_MOUSE, + GDK_SOURCE_PEN, + GDK_SOURCE_ERASER, + GDK_SOURCE_CURSOR +} GdkInputSource; + +typedef enum +{ + GDK_MODE_DISABLED, + GDK_MODE_SCREEN, + GDK_MODE_WINDOW +} GdkInputMode; + +typedef enum +{ + GDK_AXIS_IGNORE, + GDK_AXIS_X, + GDK_AXIS_Y, + GDK_AXIS_PRESSURE, + GDK_AXIS_XTILT, + GDK_AXIS_YTILT, + GDK_AXIS_WHEEL, + GDK_AXIS_LAST +} GdkAxisUse; + +struct _GdkDeviceKey +{ + guint keyval; + GdkModifierType modifiers; +}; + +struct _GdkDeviceAxis +{ + GdkAxisUse use; + gdouble min; + gdouble max; +}; + +struct _GdkDevice +{ + GObject parent_instance; + /* All fields are read-only */ + + gchar *name; + GdkInputSource source; + GdkInputMode mode; + gboolean has_cursor; /* TRUE if the X pointer follows device motion */ + + gint num_axes; + GdkDeviceAxis *axes; + + gint num_keys; + GdkDeviceKey *keys; +}; + +/* We don't allocate each coordinate this big, but we use it to + * be ANSI compliant and avoid accessing past the defined limits. + */ +#define GDK_MAX_TIMECOORD_AXES 128 + +struct _GdkTimeCoord +{ + guint32 time; + gdouble axes[GDK_MAX_TIMECOORD_AXES]; +}; + +GType gdk_device_get_type (void) G_GNUC_CONST; + +#ifndef GDK_MULTIHEAD_SAFE +/* Returns a list of GdkDevice * */ +GList * gdk_devices_list (void); +#endif /* GDK_MULTIHEAD_SAFE */ + +/* Functions to configure a device */ +void gdk_device_set_source (GdkDevice *device, + GdkInputSource source); + +gboolean gdk_device_set_mode (GdkDevice *device, + GdkInputMode mode); + +void gdk_device_set_key (GdkDevice *device, + guint index_, + guint keyval, + GdkModifierType modifiers); + +void gdk_device_set_axis_use (GdkDevice *device, + guint index_, + GdkAxisUse use); +void gdk_device_get_state (GdkDevice *device, + GdkWindow *window, + gdouble *axes, + GdkModifierType *mask); +gboolean gdk_device_get_history (GdkDevice *device, + GdkWindow *window, + guint32 start, + guint32 stop, + GdkTimeCoord ***events, + gint *n_events); +void gdk_device_free_history (GdkTimeCoord **events, + gint n_events); +gboolean gdk_device_get_axis (GdkDevice *device, + gdouble *axes, + GdkAxisUse use, + gdouble *value); + +void gdk_input_set_extension_events (GdkWindow *window, + gint mask, + GdkExtensionMode mode); + +#ifndef GDK_MULTIHEAD_SAFE +GdkDevice *gdk_device_get_core_pointer (void); +#endif + +G_END_DECLS + +#endif /* __GDK_INPUT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkkeys.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkkeys.h new file mode 100644 index 00000000..fda2997e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkkeys.h @@ -0,0 +1,124 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_KEYS_H__ +#define __GDK_KEYS_H__ + +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +typedef struct _GdkKeymapKey GdkKeymapKey; + +/* GdkKeymapKey is a hardware key that can be mapped to a keyval */ +struct _GdkKeymapKey +{ + guint keycode; + gint group; + gint level; +}; + +/* A GdkKeymap defines the translation from keyboard state + * (including a hardware key, a modifier mask, and active keyboard group) + * to a keyval. This translation has two phases. The first phase is + * to determine the effective keyboard group and level for the keyboard + * state; the second phase is to look up the keycode/group/level triplet + * in the keymap and see what keyval it corresponds to. + */ + +typedef struct _GdkKeymap GdkKeymap; +typedef struct _GdkKeymapClass GdkKeymapClass; + +#define GDK_TYPE_KEYMAP (gdk_keymap_get_type ()) +#define GDK_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_KEYMAP, GdkKeymap)) +#define GDK_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_KEYMAP, GdkKeymapClass)) +#define GDK_IS_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_KEYMAP)) +#define GDK_IS_KEYMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_KEYMAP)) +#define GDK_KEYMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_KEYMAP, GdkKeymapClass)) + +struct _GdkKeymap +{ + GObject parent_instance; + GdkDisplay *display; +}; + +struct _GdkKeymapClass +{ + GObjectClass parent_class; + + void (*direction_changed) (GdkKeymap *keymap); + void (*keys_changed) (GdkKeymap *keymap); +}; + +GType gdk_keymap_get_type (void) G_GNUC_CONST; + +#ifndef GDK_MULTIHEAD_SAFE +GdkKeymap* gdk_keymap_get_default (void); +#endif +GdkKeymap* gdk_keymap_get_for_display (GdkDisplay *display); + + +guint gdk_keymap_lookup_key (GdkKeymap *keymap, + const GdkKeymapKey *key); +gboolean gdk_keymap_translate_keyboard_state (GdkKeymap *keymap, + guint hardware_keycode, + GdkModifierType state, + gint group, + guint *keyval, + gint *effective_group, + gint *level, + GdkModifierType *consumed_modifiers); +gboolean gdk_keymap_get_entries_for_keyval (GdkKeymap *keymap, + guint keyval, + GdkKeymapKey **keys, + gint *n_keys); +gboolean gdk_keymap_get_entries_for_keycode (GdkKeymap *keymap, + guint hardware_keycode, + GdkKeymapKey **keys, + guint **keyvals, + gint *n_entries); +PangoDirection gdk_keymap_get_direction (GdkKeymap *keymap); +gboolean gdk_keymap_have_bidi_layouts (GdkKeymap *keymap); + +/* Key values + */ +gchar* gdk_keyval_name (guint keyval) G_GNUC_CONST; +guint gdk_keyval_from_name (const gchar *keyval_name); +void gdk_keyval_convert_case (guint symbol, + guint *lower, + guint *upper); +guint gdk_keyval_to_upper (guint keyval) G_GNUC_CONST; +guint gdk_keyval_to_lower (guint keyval) G_GNUC_CONST; +gboolean gdk_keyval_is_upper (guint keyval) G_GNUC_CONST; +gboolean gdk_keyval_is_lower (guint keyval) G_GNUC_CONST; + +guint32 gdk_keyval_to_unicode (guint keyval) G_GNUC_CONST; +guint gdk_unicode_to_keyval (guint32 wc) G_GNUC_CONST; + + +G_END_DECLS + +#endif /* __GDK_KEYS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkkeysyms.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkkeysyms.h new file mode 100644 index 00000000..e642e72a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkkeysyms.h @@ -0,0 +1,1747 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * Copyright (C) 2005 GNOME Foundation + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * File auto-generated from script gdkkeysyms-update.pl + * using the input file + * http://cvs.freedesktop.org/xorg/xc/include/keysymdef.h + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_KEYSYMS_H__ +#define __GDK_KEYSYMS_H__ + + +#define GDK_VoidSymbol 0xffffff +#define GDK_BackSpace 0xff08 +#define GDK_Tab 0xff09 +#define GDK_Linefeed 0xff0a +#define GDK_Clear 0xff0b +#define GDK_Return 0xff0d +#define GDK_Pause 0xff13 +#define GDK_Scroll_Lock 0xff14 +#define GDK_Sys_Req 0xff15 +#define GDK_Escape 0xff1b +#define GDK_Delete 0xffff +#define GDK_Multi_key 0xff20 +#define GDK_Codeinput 0xff37 +#define GDK_SingleCandidate 0xff3c +#define GDK_MultipleCandidate 0xff3d +#define GDK_PreviousCandidate 0xff3e +#define GDK_Kanji 0xff21 +#define GDK_Muhenkan 0xff22 +#define GDK_Henkan_Mode 0xff23 +#define GDK_Henkan 0xff23 +#define GDK_Romaji 0xff24 +#define GDK_Hiragana 0xff25 +#define GDK_Katakana 0xff26 +#define GDK_Hiragana_Katakana 0xff27 +#define GDK_Zenkaku 0xff28 +#define GDK_Hankaku 0xff29 +#define GDK_Zenkaku_Hankaku 0xff2a +#define GDK_Touroku 0xff2b +#define GDK_Massyo 0xff2c +#define GDK_Kana_Lock 0xff2d +#define GDK_Kana_Shift 0xff2e +#define GDK_Eisu_Shift 0xff2f +#define GDK_Eisu_toggle 0xff30 +#define GDK_Kanji_Bangou 0xff37 +#define GDK_Zen_Koho 0xff3d +#define GDK_Mae_Koho 0xff3e +#define GDK_Home 0xff50 +#define GDK_Left 0xff51 +#define GDK_Up 0xff52 +#define GDK_Right 0xff53 +#define GDK_Down 0xff54 +#define GDK_Prior 0xff55 +#define GDK_Page_Up 0xff55 +#define GDK_Next 0xff56 +#define GDK_Page_Down 0xff56 +#define GDK_End 0xff57 +#define GDK_Begin 0xff58 +#define GDK_Select 0xff60 +#define GDK_Print 0xff61 +#define GDK_Execute 0xff62 +#define GDK_Insert 0xff63 +#define GDK_Undo 0xff65 +#define GDK_Redo 0xff66 +#define GDK_Menu 0xff67 +#define GDK_Find 0xff68 +#define GDK_Cancel 0xff69 +#define GDK_Help 0xff6a +#define GDK_Break 0xff6b +#define GDK_Mode_switch 0xff7e +#define GDK_script_switch 0xff7e +#define GDK_Num_Lock 0xff7f +#define GDK_KP_Space 0xff80 +#define GDK_KP_Tab 0xff89 +#define GDK_KP_Enter 0xff8d +#define GDK_KP_F1 0xff91 +#define GDK_KP_F2 0xff92 +#define GDK_KP_F3 0xff93 +#define GDK_KP_F4 0xff94 +#define GDK_KP_Home 0xff95 +#define GDK_KP_Left 0xff96 +#define GDK_KP_Up 0xff97 +#define GDK_KP_Right 0xff98 +#define GDK_KP_Down 0xff99 +#define GDK_KP_Prior 0xff9a +#define GDK_KP_Page_Up 0xff9a +#define GDK_KP_Next 0xff9b +#define GDK_KP_Page_Down 0xff9b +#define GDK_KP_End 0xff9c +#define GDK_KP_Begin 0xff9d +#define GDK_KP_Insert 0xff9e +#define GDK_KP_Delete 0xff9f +#define GDK_KP_Equal 0xffbd +#define GDK_KP_Multiply 0xffaa +#define GDK_KP_Add 0xffab +#define GDK_KP_Separator 0xffac +#define GDK_KP_Subtract 0xffad +#define GDK_KP_Decimal 0xffae +#define GDK_KP_Divide 0xffaf +#define GDK_KP_0 0xffb0 +#define GDK_KP_1 0xffb1 +#define GDK_KP_2 0xffb2 +#define GDK_KP_3 0xffb3 +#define GDK_KP_4 0xffb4 +#define GDK_KP_5 0xffb5 +#define GDK_KP_6 0xffb6 +#define GDK_KP_7 0xffb7 +#define GDK_KP_8 0xffb8 +#define GDK_KP_9 0xffb9 +#define GDK_F1 0xffbe +#define GDK_F2 0xffbf +#define GDK_F3 0xffc0 +#define GDK_F4 0xffc1 +#define GDK_F5 0xffc2 +#define GDK_F6 0xffc3 +#define GDK_F7 0xffc4 +#define GDK_F8 0xffc5 +#define GDK_F9 0xffc6 +#define GDK_F10 0xffc7 +#define GDK_F11 0xffc8 +#define GDK_L1 0xffc8 +#define GDK_F12 0xffc9 +#define GDK_L2 0xffc9 +#define GDK_F13 0xffca +#define GDK_L3 0xffca +#define GDK_F14 0xffcb +#define GDK_L4 0xffcb +#define GDK_F15 0xffcc +#define GDK_L5 0xffcc +#define GDK_F16 0xffcd +#define GDK_L6 0xffcd +#define GDK_F17 0xffce +#define GDK_L7 0xffce +#define GDK_F18 0xffcf +#define GDK_L8 0xffcf +#define GDK_F19 0xffd0 +#define GDK_L9 0xffd0 +#define GDK_F20 0xffd1 +#define GDK_L10 0xffd1 +#define GDK_F21 0xffd2 +#define GDK_R1 0xffd2 +#define GDK_F22 0xffd3 +#define GDK_R2 0xffd3 +#define GDK_F23 0xffd4 +#define GDK_R3 0xffd4 +#define GDK_F24 0xffd5 +#define GDK_R4 0xffd5 +#define GDK_F25 0xffd6 +#define GDK_R5 0xffd6 +#define GDK_F26 0xffd7 +#define GDK_R6 0xffd7 +#define GDK_F27 0xffd8 +#define GDK_R7 0xffd8 +#define GDK_F28 0xffd9 +#define GDK_R8 0xffd9 +#define GDK_F29 0xffda +#define GDK_R9 0xffda +#define GDK_F30 0xffdb +#define GDK_R10 0xffdb +#define GDK_F31 0xffdc +#define GDK_R11 0xffdc +#define GDK_F32 0xffdd +#define GDK_R12 0xffdd +#define GDK_F33 0xffde +#define GDK_R13 0xffde +#define GDK_F34 0xffdf +#define GDK_R14 0xffdf +#define GDK_F35 0xffe0 +#define GDK_R15 0xffe0 +#define GDK_Shift_L 0xffe1 +#define GDK_Shift_R 0xffe2 +#define GDK_Control_L 0xffe3 +#define GDK_Control_R 0xffe4 +#define GDK_Caps_Lock 0xffe5 +#define GDK_Shift_Lock 0xffe6 +#define GDK_Meta_L 0xffe7 +#define GDK_Meta_R 0xffe8 +#define GDK_Alt_L 0xffe9 +#define GDK_Alt_R 0xffea +#define GDK_Super_L 0xffeb +#define GDK_Super_R 0xffec +#define GDK_Hyper_L 0xffed +#define GDK_Hyper_R 0xffee +#define GDK_ISO_Lock 0xfe01 +#define GDK_ISO_Level2_Latch 0xfe02 +#define GDK_ISO_Level3_Shift 0xfe03 +#define GDK_ISO_Level3_Latch 0xfe04 +#define GDK_ISO_Level3_Lock 0xfe05 +#define GDK_ISO_Group_Shift 0xff7e +#define GDK_ISO_Group_Latch 0xfe06 +#define GDK_ISO_Group_Lock 0xfe07 +#define GDK_ISO_Next_Group 0xfe08 +#define GDK_ISO_Next_Group_Lock 0xfe09 +#define GDK_ISO_Prev_Group 0xfe0a +#define GDK_ISO_Prev_Group_Lock 0xfe0b +#define GDK_ISO_First_Group 0xfe0c +#define GDK_ISO_First_Group_Lock 0xfe0d +#define GDK_ISO_Last_Group 0xfe0e +#define GDK_ISO_Last_Group_Lock 0xfe0f +#define GDK_ISO_Left_Tab 0xfe20 +#define GDK_ISO_Move_Line_Up 0xfe21 +#define GDK_ISO_Move_Line_Down 0xfe22 +#define GDK_ISO_Partial_Line_Up 0xfe23 +#define GDK_ISO_Partial_Line_Down 0xfe24 +#define GDK_ISO_Partial_Space_Left 0xfe25 +#define GDK_ISO_Partial_Space_Right 0xfe26 +#define GDK_ISO_Set_Margin_Left 0xfe27 +#define GDK_ISO_Set_Margin_Right 0xfe28 +#define GDK_ISO_Release_Margin_Left 0xfe29 +#define GDK_ISO_Release_Margin_Right 0xfe2a +#define GDK_ISO_Release_Both_Margins 0xfe2b +#define GDK_ISO_Fast_Cursor_Left 0xfe2c +#define GDK_ISO_Fast_Cursor_Right 0xfe2d +#define GDK_ISO_Fast_Cursor_Up 0xfe2e +#define GDK_ISO_Fast_Cursor_Down 0xfe2f +#define GDK_ISO_Continuous_Underline 0xfe30 +#define GDK_ISO_Discontinuous_Underline 0xfe31 +#define GDK_ISO_Emphasize 0xfe32 +#define GDK_ISO_Center_Object 0xfe33 +#define GDK_ISO_Enter 0xfe34 +#define GDK_dead_grave 0xfe50 +#define GDK_dead_acute 0xfe51 +#define GDK_dead_circumflex 0xfe52 +#define GDK_dead_tilde 0xfe53 +#define GDK_dead_macron 0xfe54 +#define GDK_dead_breve 0xfe55 +#define GDK_dead_abovedot 0xfe56 +#define GDK_dead_diaeresis 0xfe57 +#define GDK_dead_abovering 0xfe58 +#define GDK_dead_doubleacute 0xfe59 +#define GDK_dead_caron 0xfe5a +#define GDK_dead_cedilla 0xfe5b +#define GDK_dead_ogonek 0xfe5c +#define GDK_dead_iota 0xfe5d +#define GDK_dead_voiced_sound 0xfe5e +#define GDK_dead_semivoiced_sound 0xfe5f +#define GDK_dead_belowdot 0xfe60 +#define GDK_dead_hook 0xfe61 +#define GDK_dead_horn 0xfe62 +#define GDK_First_Virtual_Screen 0xfed0 +#define GDK_Prev_Virtual_Screen 0xfed1 +#define GDK_Next_Virtual_Screen 0xfed2 +#define GDK_Last_Virtual_Screen 0xfed4 +#define GDK_Terminate_Server 0xfed5 +#define GDK_AccessX_Enable 0xfe70 +#define GDK_AccessX_Feedback_Enable 0xfe71 +#define GDK_RepeatKeys_Enable 0xfe72 +#define GDK_SlowKeys_Enable 0xfe73 +#define GDK_BounceKeys_Enable 0xfe74 +#define GDK_StickyKeys_Enable 0xfe75 +#define GDK_MouseKeys_Enable 0xfe76 +#define GDK_MouseKeys_Accel_Enable 0xfe77 +#define GDK_Overlay1_Enable 0xfe78 +#define GDK_Overlay2_Enable 0xfe79 +#define GDK_AudibleBell_Enable 0xfe7a +#define GDK_Pointer_Left 0xfee0 +#define GDK_Pointer_Right 0xfee1 +#define GDK_Pointer_Up 0xfee2 +#define GDK_Pointer_Down 0xfee3 +#define GDK_Pointer_UpLeft 0xfee4 +#define GDK_Pointer_UpRight 0xfee5 +#define GDK_Pointer_DownLeft 0xfee6 +#define GDK_Pointer_DownRight 0xfee7 +#define GDK_Pointer_Button_Dflt 0xfee8 +#define GDK_Pointer_Button1 0xfee9 +#define GDK_Pointer_Button2 0xfeea +#define GDK_Pointer_Button3 0xfeeb +#define GDK_Pointer_Button4 0xfeec +#define GDK_Pointer_Button5 0xfeed +#define GDK_Pointer_DblClick_Dflt 0xfeee +#define GDK_Pointer_DblClick1 0xfeef +#define GDK_Pointer_DblClick2 0xfef0 +#define GDK_Pointer_DblClick3 0xfef1 +#define GDK_Pointer_DblClick4 0xfef2 +#define GDK_Pointer_DblClick5 0xfef3 +#define GDK_Pointer_Drag_Dflt 0xfef4 +#define GDK_Pointer_Drag1 0xfef5 +#define GDK_Pointer_Drag2 0xfef6 +#define GDK_Pointer_Drag3 0xfef7 +#define GDK_Pointer_Drag4 0xfef8 +#define GDK_Pointer_Drag5 0xfefd +#define GDK_Pointer_EnableKeys 0xfef9 +#define GDK_Pointer_Accelerate 0xfefa +#define GDK_Pointer_DfltBtnNext 0xfefb +#define GDK_Pointer_DfltBtnPrev 0xfefc +#define GDK_3270_Duplicate 0xfd01 +#define GDK_3270_FieldMark 0xfd02 +#define GDK_3270_Right2 0xfd03 +#define GDK_3270_Left2 0xfd04 +#define GDK_3270_BackTab 0xfd05 +#define GDK_3270_EraseEOF 0xfd06 +#define GDK_3270_EraseInput 0xfd07 +#define GDK_3270_Reset 0xfd08 +#define GDK_3270_Quit 0xfd09 +#define GDK_3270_PA1 0xfd0a +#define GDK_3270_PA2 0xfd0b +#define GDK_3270_PA3 0xfd0c +#define GDK_3270_Test 0xfd0d +#define GDK_3270_Attn 0xfd0e +#define GDK_3270_CursorBlink 0xfd0f +#define GDK_3270_AltCursor 0xfd10 +#define GDK_3270_KeyClick 0xfd11 +#define GDK_3270_Jump 0xfd12 +#define GDK_3270_Ident 0xfd13 +#define GDK_3270_Rule 0xfd14 +#define GDK_3270_Copy 0xfd15 +#define GDK_3270_Play 0xfd16 +#define GDK_3270_Setup 0xfd17 +#define GDK_3270_Record 0xfd18 +#define GDK_3270_ChangeScreen 0xfd19 +#define GDK_3270_DeleteWord 0xfd1a +#define GDK_3270_ExSelect 0xfd1b +#define GDK_3270_CursorSelect 0xfd1c +#define GDK_3270_PrintScreen 0xfd1d +#define GDK_3270_Enter 0xfd1e +#define GDK_space 0x020 +#define GDK_exclam 0x021 +#define GDK_quotedbl 0x022 +#define GDK_numbersign 0x023 +#define GDK_dollar 0x024 +#define GDK_percent 0x025 +#define GDK_ampersand 0x026 +#define GDK_apostrophe 0x027 +#define GDK_quoteright 0x027 +#define GDK_parenleft 0x028 +#define GDK_parenright 0x029 +#define GDK_asterisk 0x02a +#define GDK_plus 0x02b +#define GDK_comma 0x02c +#define GDK_minus 0x02d +#define GDK_period 0x02e +#define GDK_slash 0x02f +#define GDK_0 0x030 +#define GDK_1 0x031 +#define GDK_2 0x032 +#define GDK_3 0x033 +#define GDK_4 0x034 +#define GDK_5 0x035 +#define GDK_6 0x036 +#define GDK_7 0x037 +#define GDK_8 0x038 +#define GDK_9 0x039 +#define GDK_colon 0x03a +#define GDK_semicolon 0x03b +#define GDK_less 0x03c +#define GDK_equal 0x03d +#define GDK_greater 0x03e +#define GDK_question 0x03f +#define GDK_at 0x040 +#define GDK_A 0x041 +#define GDK_B 0x042 +#define GDK_C 0x043 +#define GDK_D 0x044 +#define GDK_E 0x045 +#define GDK_F 0x046 +#define GDK_G 0x047 +#define GDK_H 0x048 +#define GDK_I 0x049 +#define GDK_J 0x04a +#define GDK_K 0x04b +#define GDK_L 0x04c +#define GDK_M 0x04d +#define GDK_N 0x04e +#define GDK_O 0x04f +#define GDK_P 0x050 +#define GDK_Q 0x051 +#define GDK_R 0x052 +#define GDK_S 0x053 +#define GDK_T 0x054 +#define GDK_U 0x055 +#define GDK_V 0x056 +#define GDK_W 0x057 +#define GDK_X 0x058 +#define GDK_Y 0x059 +#define GDK_Z 0x05a +#define GDK_bracketleft 0x05b +#define GDK_backslash 0x05c +#define GDK_bracketright 0x05d +#define GDK_asciicircum 0x05e +#define GDK_underscore 0x05f +#define GDK_grave 0x060 +#define GDK_quoteleft 0x060 +#define GDK_a 0x061 +#define GDK_b 0x062 +#define GDK_c 0x063 +#define GDK_d 0x064 +#define GDK_e 0x065 +#define GDK_f 0x066 +#define GDK_g 0x067 +#define GDK_h 0x068 +#define GDK_i 0x069 +#define GDK_j 0x06a +#define GDK_k 0x06b +#define GDK_l 0x06c +#define GDK_m 0x06d +#define GDK_n 0x06e +#define GDK_o 0x06f +#define GDK_p 0x070 +#define GDK_q 0x071 +#define GDK_r 0x072 +#define GDK_s 0x073 +#define GDK_t 0x074 +#define GDK_u 0x075 +#define GDK_v 0x076 +#define GDK_w 0x077 +#define GDK_x 0x078 +#define GDK_y 0x079 +#define GDK_z 0x07a +#define GDK_braceleft 0x07b +#define GDK_bar 0x07c +#define GDK_braceright 0x07d +#define GDK_asciitilde 0x07e +#define GDK_nobreakspace 0x0a0 +#define GDK_exclamdown 0x0a1 +#define GDK_cent 0x0a2 +#define GDK_sterling 0x0a3 +#define GDK_currency 0x0a4 +#define GDK_yen 0x0a5 +#define GDK_brokenbar 0x0a6 +#define GDK_section 0x0a7 +#define GDK_diaeresis 0x0a8 +#define GDK_copyright 0x0a9 +#define GDK_ordfeminine 0x0aa +#define GDK_guillemotleft 0x0ab +#define GDK_notsign 0x0ac +#define GDK_hyphen 0x0ad +#define GDK_registered 0x0ae +#define GDK_macron 0x0af +#define GDK_degree 0x0b0 +#define GDK_plusminus 0x0b1 +#define GDK_twosuperior 0x0b2 +#define GDK_threesuperior 0x0b3 +#define GDK_acute 0x0b4 +#define GDK_mu 0x0b5 +#define GDK_paragraph 0x0b6 +#define GDK_periodcentered 0x0b7 +#define GDK_cedilla 0x0b8 +#define GDK_onesuperior 0x0b9 +#define GDK_masculine 0x0ba +#define GDK_guillemotright 0x0bb +#define GDK_onequarter 0x0bc +#define GDK_onehalf 0x0bd +#define GDK_threequarters 0x0be +#define GDK_questiondown 0x0bf +#define GDK_Agrave 0x0c0 +#define GDK_Aacute 0x0c1 +#define GDK_Acircumflex 0x0c2 +#define GDK_Atilde 0x0c3 +#define GDK_Adiaeresis 0x0c4 +#define GDK_Aring 0x0c5 +#define GDK_AE 0x0c6 +#define GDK_Ccedilla 0x0c7 +#define GDK_Egrave 0x0c8 +#define GDK_Eacute 0x0c9 +#define GDK_Ecircumflex 0x0ca +#define GDK_Ediaeresis 0x0cb +#define GDK_Igrave 0x0cc +#define GDK_Iacute 0x0cd +#define GDK_Icircumflex 0x0ce +#define GDK_Idiaeresis 0x0cf +#define GDK_ETH 0x0d0 +#define GDK_Eth 0x0d0 +#define GDK_Ntilde 0x0d1 +#define GDK_Ograve 0x0d2 +#define GDK_Oacute 0x0d3 +#define GDK_Ocircumflex 0x0d4 +#define GDK_Otilde 0x0d5 +#define GDK_Odiaeresis 0x0d6 +#define GDK_multiply 0x0d7 +#define GDK_Oslash 0x0d8 +#define GDK_Ooblique 0x0d8 +#define GDK_Ugrave 0x0d9 +#define GDK_Uacute 0x0da +#define GDK_Ucircumflex 0x0db +#define GDK_Udiaeresis 0x0dc +#define GDK_Yacute 0x0dd +#define GDK_THORN 0x0de +#define GDK_Thorn 0x0de +#define GDK_ssharp 0x0df +#define GDK_agrave 0x0e0 +#define GDK_aacute 0x0e1 +#define GDK_acircumflex 0x0e2 +#define GDK_atilde 0x0e3 +#define GDK_adiaeresis 0x0e4 +#define GDK_aring 0x0e5 +#define GDK_ae 0x0e6 +#define GDK_ccedilla 0x0e7 +#define GDK_egrave 0x0e8 +#define GDK_eacute 0x0e9 +#define GDK_ecircumflex 0x0ea +#define GDK_ediaeresis 0x0eb +#define GDK_igrave 0x0ec +#define GDK_iacute 0x0ed +#define GDK_icircumflex 0x0ee +#define GDK_idiaeresis 0x0ef +#define GDK_eth 0x0f0 +#define GDK_ntilde 0x0f1 +#define GDK_ograve 0x0f2 +#define GDK_oacute 0x0f3 +#define GDK_ocircumflex 0x0f4 +#define GDK_otilde 0x0f5 +#define GDK_odiaeresis 0x0f6 +#define GDK_division 0x0f7 +#define GDK_oslash 0x0f8 +#define GDK_ooblique 0x0f8 +#define GDK_ugrave 0x0f9 +#define GDK_uacute 0x0fa +#define GDK_ucircumflex 0x0fb +#define GDK_udiaeresis 0x0fc +#define GDK_yacute 0x0fd +#define GDK_thorn 0x0fe +#define GDK_ydiaeresis 0x0ff +#define GDK_Aogonek 0x1a1 +#define GDK_breve 0x1a2 +#define GDK_Lstroke 0x1a3 +#define GDK_Lcaron 0x1a5 +#define GDK_Sacute 0x1a6 +#define GDK_Scaron 0x1a9 +#define GDK_Scedilla 0x1aa +#define GDK_Tcaron 0x1ab +#define GDK_Zacute 0x1ac +#define GDK_Zcaron 0x1ae +#define GDK_Zabovedot 0x1af +#define GDK_aogonek 0x1b1 +#define GDK_ogonek 0x1b2 +#define GDK_lstroke 0x1b3 +#define GDK_lcaron 0x1b5 +#define GDK_sacute 0x1b6 +#define GDK_caron 0x1b7 +#define GDK_scaron 0x1b9 +#define GDK_scedilla 0x1ba +#define GDK_tcaron 0x1bb +#define GDK_zacute 0x1bc +#define GDK_doubleacute 0x1bd +#define GDK_zcaron 0x1be +#define GDK_zabovedot 0x1bf +#define GDK_Racute 0x1c0 +#define GDK_Abreve 0x1c3 +#define GDK_Lacute 0x1c5 +#define GDK_Cacute 0x1c6 +#define GDK_Ccaron 0x1c8 +#define GDK_Eogonek 0x1ca +#define GDK_Ecaron 0x1cc +#define GDK_Dcaron 0x1cf +#define GDK_Dstroke 0x1d0 +#define GDK_Nacute 0x1d1 +#define GDK_Ncaron 0x1d2 +#define GDK_Odoubleacute 0x1d5 +#define GDK_Rcaron 0x1d8 +#define GDK_Uring 0x1d9 +#define GDK_Udoubleacute 0x1db +#define GDK_Tcedilla 0x1de +#define GDK_racute 0x1e0 +#define GDK_abreve 0x1e3 +#define GDK_lacute 0x1e5 +#define GDK_cacute 0x1e6 +#define GDK_ccaron 0x1e8 +#define GDK_eogonek 0x1ea +#define GDK_ecaron 0x1ec +#define GDK_dcaron 0x1ef +#define GDK_dstroke 0x1f0 +#define GDK_nacute 0x1f1 +#define GDK_ncaron 0x1f2 +#define GDK_odoubleacute 0x1f5 +#define GDK_udoubleacute 0x1fb +#define GDK_rcaron 0x1f8 +#define GDK_uring 0x1f9 +#define GDK_tcedilla 0x1fe +#define GDK_abovedot 0x1ff +#define GDK_Hstroke 0x2a1 +#define GDK_Hcircumflex 0x2a6 +#define GDK_Iabovedot 0x2a9 +#define GDK_Gbreve 0x2ab +#define GDK_Jcircumflex 0x2ac +#define GDK_hstroke 0x2b1 +#define GDK_hcircumflex 0x2b6 +#define GDK_idotless 0x2b9 +#define GDK_gbreve 0x2bb +#define GDK_jcircumflex 0x2bc +#define GDK_Cabovedot 0x2c5 +#define GDK_Ccircumflex 0x2c6 +#define GDK_Gabovedot 0x2d5 +#define GDK_Gcircumflex 0x2d8 +#define GDK_Ubreve 0x2dd +#define GDK_Scircumflex 0x2de +#define GDK_cabovedot 0x2e5 +#define GDK_ccircumflex 0x2e6 +#define GDK_gabovedot 0x2f5 +#define GDK_gcircumflex 0x2f8 +#define GDK_ubreve 0x2fd +#define GDK_scircumflex 0x2fe +#define GDK_kra 0x3a2 +#define GDK_kappa 0x3a2 +#define GDK_Rcedilla 0x3a3 +#define GDK_Itilde 0x3a5 +#define GDK_Lcedilla 0x3a6 +#define GDK_Emacron 0x3aa +#define GDK_Gcedilla 0x3ab +#define GDK_Tslash 0x3ac +#define GDK_rcedilla 0x3b3 +#define GDK_itilde 0x3b5 +#define GDK_lcedilla 0x3b6 +#define GDK_emacron 0x3ba +#define GDK_gcedilla 0x3bb +#define GDK_tslash 0x3bc +#define GDK_ENG 0x3bd +#define GDK_eng 0x3bf +#define GDK_Amacron 0x3c0 +#define GDK_Iogonek 0x3c7 +#define GDK_Eabovedot 0x3cc +#define GDK_Imacron 0x3cf +#define GDK_Ncedilla 0x3d1 +#define GDK_Omacron 0x3d2 +#define GDK_Kcedilla 0x3d3 +#define GDK_Uogonek 0x3d9 +#define GDK_Utilde 0x3dd +#define GDK_Umacron 0x3de +#define GDK_amacron 0x3e0 +#define GDK_iogonek 0x3e7 +#define GDK_eabovedot 0x3ec +#define GDK_imacron 0x3ef +#define GDK_ncedilla 0x3f1 +#define GDK_omacron 0x3f2 +#define GDK_kcedilla 0x3f3 +#define GDK_uogonek 0x3f9 +#define GDK_utilde 0x3fd +#define GDK_umacron 0x3fe +#define GDK_Babovedot 0x1001e02 +#define GDK_babovedot 0x1001e03 +#define GDK_Dabovedot 0x1001e0a +#define GDK_Wgrave 0x1001e80 +#define GDK_Wacute 0x1001e82 +#define GDK_dabovedot 0x1001e0b +#define GDK_Ygrave 0x1001ef2 +#define GDK_Fabovedot 0x1001e1e +#define GDK_fabovedot 0x1001e1f +#define GDK_Mabovedot 0x1001e40 +#define GDK_mabovedot 0x1001e41 +#define GDK_Pabovedot 0x1001e56 +#define GDK_wgrave 0x1001e81 +#define GDK_pabovedot 0x1001e57 +#define GDK_wacute 0x1001e83 +#define GDK_Sabovedot 0x1001e60 +#define GDK_ygrave 0x1001ef3 +#define GDK_Wdiaeresis 0x1001e84 +#define GDK_wdiaeresis 0x1001e85 +#define GDK_sabovedot 0x1001e61 +#define GDK_Wcircumflex 0x1000174 +#define GDK_Tabovedot 0x1001e6a +#define GDK_Ycircumflex 0x1000176 +#define GDK_wcircumflex 0x1000175 +#define GDK_tabovedot 0x1001e6b +#define GDK_ycircumflex 0x1000177 +#define GDK_OE 0x13bc +#define GDK_oe 0x13bd +#define GDK_Ydiaeresis 0x13be +#define GDK_overline 0x47e +#define GDK_kana_fullstop 0x4a1 +#define GDK_kana_openingbracket 0x4a2 +#define GDK_kana_closingbracket 0x4a3 +#define GDK_kana_comma 0x4a4 +#define GDK_kana_conjunctive 0x4a5 +#define GDK_kana_middledot 0x4a5 +#define GDK_kana_WO 0x4a6 +#define GDK_kana_a 0x4a7 +#define GDK_kana_i 0x4a8 +#define GDK_kana_u 0x4a9 +#define GDK_kana_e 0x4aa +#define GDK_kana_o 0x4ab +#define GDK_kana_ya 0x4ac +#define GDK_kana_yu 0x4ad +#define GDK_kana_yo 0x4ae +#define GDK_kana_tsu 0x4af +#define GDK_kana_tu 0x4af +#define GDK_prolongedsound 0x4b0 +#define GDK_kana_A 0x4b1 +#define GDK_kana_I 0x4b2 +#define GDK_kana_U 0x4b3 +#define GDK_kana_E 0x4b4 +#define GDK_kana_O 0x4b5 +#define GDK_kana_KA 0x4b6 +#define GDK_kana_KI 0x4b7 +#define GDK_kana_KU 0x4b8 +#define GDK_kana_KE 0x4b9 +#define GDK_kana_KO 0x4ba +#define GDK_kana_SA 0x4bb +#define GDK_kana_SHI 0x4bc +#define GDK_kana_SU 0x4bd +#define GDK_kana_SE 0x4be +#define GDK_kana_SO 0x4bf +#define GDK_kana_TA 0x4c0 +#define GDK_kana_CHI 0x4c1 +#define GDK_kana_TI 0x4c1 +#define GDK_kana_TSU 0x4c2 +#define GDK_kana_TU 0x4c2 +#define GDK_kana_TE 0x4c3 +#define GDK_kana_TO 0x4c4 +#define GDK_kana_NA 0x4c5 +#define GDK_kana_NI 0x4c6 +#define GDK_kana_NU 0x4c7 +#define GDK_kana_NE 0x4c8 +#define GDK_kana_NO 0x4c9 +#define GDK_kana_HA 0x4ca +#define GDK_kana_HI 0x4cb +#define GDK_kana_FU 0x4cc +#define GDK_kana_HU 0x4cc +#define GDK_kana_HE 0x4cd +#define GDK_kana_HO 0x4ce +#define GDK_kana_MA 0x4cf +#define GDK_kana_MI 0x4d0 +#define GDK_kana_MU 0x4d1 +#define GDK_kana_ME 0x4d2 +#define GDK_kana_MO 0x4d3 +#define GDK_kana_YA 0x4d4 +#define GDK_kana_YU 0x4d5 +#define GDK_kana_YO 0x4d6 +#define GDK_kana_RA 0x4d7 +#define GDK_kana_RI 0x4d8 +#define GDK_kana_RU 0x4d9 +#define GDK_kana_RE 0x4da +#define GDK_kana_RO 0x4db +#define GDK_kana_WA 0x4dc +#define GDK_kana_N 0x4dd +#define GDK_voicedsound 0x4de +#define GDK_semivoicedsound 0x4df +#define GDK_kana_switch 0xff7e +#define GDK_Farsi_0 0x10006f0 +#define GDK_Farsi_1 0x10006f1 +#define GDK_Farsi_2 0x10006f2 +#define GDK_Farsi_3 0x10006f3 +#define GDK_Farsi_4 0x10006f4 +#define GDK_Farsi_5 0x10006f5 +#define GDK_Farsi_6 0x10006f6 +#define GDK_Farsi_7 0x10006f7 +#define GDK_Farsi_8 0x10006f8 +#define GDK_Farsi_9 0x10006f9 +#define GDK_Arabic_percent 0x100066a +#define GDK_Arabic_superscript_alef 0x1000670 +#define GDK_Arabic_tteh 0x1000679 +#define GDK_Arabic_peh 0x100067e +#define GDK_Arabic_tcheh 0x1000686 +#define GDK_Arabic_ddal 0x1000688 +#define GDK_Arabic_rreh 0x1000691 +#define GDK_Arabic_comma 0x5ac +#define GDK_Arabic_fullstop 0x10006d4 +#define GDK_Arabic_0 0x1000660 +#define GDK_Arabic_1 0x1000661 +#define GDK_Arabic_2 0x1000662 +#define GDK_Arabic_3 0x1000663 +#define GDK_Arabic_4 0x1000664 +#define GDK_Arabic_5 0x1000665 +#define GDK_Arabic_6 0x1000666 +#define GDK_Arabic_7 0x1000667 +#define GDK_Arabic_8 0x1000668 +#define GDK_Arabic_9 0x1000669 +#define GDK_Arabic_semicolon 0x5bb +#define GDK_Arabic_question_mark 0x5bf +#define GDK_Arabic_hamza 0x5c1 +#define GDK_Arabic_maddaonalef 0x5c2 +#define GDK_Arabic_hamzaonalef 0x5c3 +#define GDK_Arabic_hamzaonwaw 0x5c4 +#define GDK_Arabic_hamzaunderalef 0x5c5 +#define GDK_Arabic_hamzaonyeh 0x5c6 +#define GDK_Arabic_alef 0x5c7 +#define GDK_Arabic_beh 0x5c8 +#define GDK_Arabic_tehmarbuta 0x5c9 +#define GDK_Arabic_teh 0x5ca +#define GDK_Arabic_theh 0x5cb +#define GDK_Arabic_jeem 0x5cc +#define GDK_Arabic_hah 0x5cd +#define GDK_Arabic_khah 0x5ce +#define GDK_Arabic_dal 0x5cf +#define GDK_Arabic_thal 0x5d0 +#define GDK_Arabic_ra 0x5d1 +#define GDK_Arabic_zain 0x5d2 +#define GDK_Arabic_seen 0x5d3 +#define GDK_Arabic_sheen 0x5d4 +#define GDK_Arabic_sad 0x5d5 +#define GDK_Arabic_dad 0x5d6 +#define GDK_Arabic_tah 0x5d7 +#define GDK_Arabic_zah 0x5d8 +#define GDK_Arabic_ain 0x5d9 +#define GDK_Arabic_ghain 0x5da +#define GDK_Arabic_tatweel 0x5e0 +#define GDK_Arabic_feh 0x5e1 +#define GDK_Arabic_qaf 0x5e2 +#define GDK_Arabic_kaf 0x5e3 +#define GDK_Arabic_lam 0x5e4 +#define GDK_Arabic_meem 0x5e5 +#define GDK_Arabic_noon 0x5e6 +#define GDK_Arabic_ha 0x5e7 +#define GDK_Arabic_heh 0x5e7 +#define GDK_Arabic_waw 0x5e8 +#define GDK_Arabic_alefmaksura 0x5e9 +#define GDK_Arabic_yeh 0x5ea +#define GDK_Arabic_fathatan 0x5eb +#define GDK_Arabic_dammatan 0x5ec +#define GDK_Arabic_kasratan 0x5ed +#define GDK_Arabic_fatha 0x5ee +#define GDK_Arabic_damma 0x5ef +#define GDK_Arabic_kasra 0x5f0 +#define GDK_Arabic_shadda 0x5f1 +#define GDK_Arabic_sukun 0x5f2 +#define GDK_Arabic_madda_above 0x1000653 +#define GDK_Arabic_hamza_above 0x1000654 +#define GDK_Arabic_hamza_below 0x1000655 +#define GDK_Arabic_jeh 0x1000698 +#define GDK_Arabic_veh 0x10006a4 +#define GDK_Arabic_keheh 0x10006a9 +#define GDK_Arabic_gaf 0x10006af +#define GDK_Arabic_noon_ghunna 0x10006ba +#define GDK_Arabic_heh_doachashmee 0x10006be +#define GDK_Farsi_yeh 0x10006cc +#define GDK_Arabic_farsi_yeh 0x10006cc +#define GDK_Arabic_yeh_baree 0x10006d2 +#define GDK_Arabic_heh_goal 0x10006c1 +#define GDK_Arabic_switch 0xff7e +#define GDK_Cyrillic_GHE_bar 0x1000492 +#define GDK_Cyrillic_ghe_bar 0x1000493 +#define GDK_Cyrillic_ZHE_descender 0x1000496 +#define GDK_Cyrillic_zhe_descender 0x1000497 +#define GDK_Cyrillic_KA_descender 0x100049a +#define GDK_Cyrillic_ka_descender 0x100049b +#define GDK_Cyrillic_KA_vertstroke 0x100049c +#define GDK_Cyrillic_ka_vertstroke 0x100049d +#define GDK_Cyrillic_EN_descender 0x10004a2 +#define GDK_Cyrillic_en_descender 0x10004a3 +#define GDK_Cyrillic_U_straight 0x10004ae +#define GDK_Cyrillic_u_straight 0x10004af +#define GDK_Cyrillic_U_straight_bar 0x10004b0 +#define GDK_Cyrillic_u_straight_bar 0x10004b1 +#define GDK_Cyrillic_HA_descender 0x10004b2 +#define GDK_Cyrillic_ha_descender 0x10004b3 +#define GDK_Cyrillic_CHE_descender 0x10004b6 +#define GDK_Cyrillic_che_descender 0x10004b7 +#define GDK_Cyrillic_CHE_vertstroke 0x10004b8 +#define GDK_Cyrillic_che_vertstroke 0x10004b9 +#define GDK_Cyrillic_SHHA 0x10004ba +#define GDK_Cyrillic_shha 0x10004bb +#define GDK_Cyrillic_SCHWA 0x10004d8 +#define GDK_Cyrillic_schwa 0x10004d9 +#define GDK_Cyrillic_I_macron 0x10004e2 +#define GDK_Cyrillic_i_macron 0x10004e3 +#define GDK_Cyrillic_O_bar 0x10004e8 +#define GDK_Cyrillic_o_bar 0x10004e9 +#define GDK_Cyrillic_U_macron 0x10004ee +#define GDK_Cyrillic_u_macron 0x10004ef +#define GDK_Serbian_dje 0x6a1 +#define GDK_Macedonia_gje 0x6a2 +#define GDK_Cyrillic_io 0x6a3 +#define GDK_Ukrainian_ie 0x6a4 +#define GDK_Ukranian_je 0x6a4 +#define GDK_Macedonia_dse 0x6a5 +#define GDK_Ukrainian_i 0x6a6 +#define GDK_Ukranian_i 0x6a6 +#define GDK_Ukrainian_yi 0x6a7 +#define GDK_Ukranian_yi 0x6a7 +#define GDK_Cyrillic_je 0x6a8 +#define GDK_Serbian_je 0x6a8 +#define GDK_Cyrillic_lje 0x6a9 +#define GDK_Serbian_lje 0x6a9 +#define GDK_Cyrillic_nje 0x6aa +#define GDK_Serbian_nje 0x6aa +#define GDK_Serbian_tshe 0x6ab +#define GDK_Macedonia_kje 0x6ac +#define GDK_Ukrainian_ghe_with_upturn 0x6ad +#define GDK_Byelorussian_shortu 0x6ae +#define GDK_Cyrillic_dzhe 0x6af +#define GDK_Serbian_dze 0x6af +#define GDK_numerosign 0x6b0 +#define GDK_Serbian_DJE 0x6b1 +#define GDK_Macedonia_GJE 0x6b2 +#define GDK_Cyrillic_IO 0x6b3 +#define GDK_Ukrainian_IE 0x6b4 +#define GDK_Ukranian_JE 0x6b4 +#define GDK_Macedonia_DSE 0x6b5 +#define GDK_Ukrainian_I 0x6b6 +#define GDK_Ukranian_I 0x6b6 +#define GDK_Ukrainian_YI 0x6b7 +#define GDK_Ukranian_YI 0x6b7 +#define GDK_Cyrillic_JE 0x6b8 +#define GDK_Serbian_JE 0x6b8 +#define GDK_Cyrillic_LJE 0x6b9 +#define GDK_Serbian_LJE 0x6b9 +#define GDK_Cyrillic_NJE 0x6ba +#define GDK_Serbian_NJE 0x6ba +#define GDK_Serbian_TSHE 0x6bb +#define GDK_Macedonia_KJE 0x6bc +#define GDK_Ukrainian_GHE_WITH_UPTURN 0x6bd +#define GDK_Byelorussian_SHORTU 0x6be +#define GDK_Cyrillic_DZHE 0x6bf +#define GDK_Serbian_DZE 0x6bf +#define GDK_Cyrillic_yu 0x6c0 +#define GDK_Cyrillic_a 0x6c1 +#define GDK_Cyrillic_be 0x6c2 +#define GDK_Cyrillic_tse 0x6c3 +#define GDK_Cyrillic_de 0x6c4 +#define GDK_Cyrillic_ie 0x6c5 +#define GDK_Cyrillic_ef 0x6c6 +#define GDK_Cyrillic_ghe 0x6c7 +#define GDK_Cyrillic_ha 0x6c8 +#define GDK_Cyrillic_i 0x6c9 +#define GDK_Cyrillic_shorti 0x6ca +#define GDK_Cyrillic_ka 0x6cb +#define GDK_Cyrillic_el 0x6cc +#define GDK_Cyrillic_em 0x6cd +#define GDK_Cyrillic_en 0x6ce +#define GDK_Cyrillic_o 0x6cf +#define GDK_Cyrillic_pe 0x6d0 +#define GDK_Cyrillic_ya 0x6d1 +#define GDK_Cyrillic_er 0x6d2 +#define GDK_Cyrillic_es 0x6d3 +#define GDK_Cyrillic_te 0x6d4 +#define GDK_Cyrillic_u 0x6d5 +#define GDK_Cyrillic_zhe 0x6d6 +#define GDK_Cyrillic_ve 0x6d7 +#define GDK_Cyrillic_softsign 0x6d8 +#define GDK_Cyrillic_yeru 0x6d9 +#define GDK_Cyrillic_ze 0x6da +#define GDK_Cyrillic_sha 0x6db +#define GDK_Cyrillic_e 0x6dc +#define GDK_Cyrillic_shcha 0x6dd +#define GDK_Cyrillic_che 0x6de +#define GDK_Cyrillic_hardsign 0x6df +#define GDK_Cyrillic_YU 0x6e0 +#define GDK_Cyrillic_A 0x6e1 +#define GDK_Cyrillic_BE 0x6e2 +#define GDK_Cyrillic_TSE 0x6e3 +#define GDK_Cyrillic_DE 0x6e4 +#define GDK_Cyrillic_IE 0x6e5 +#define GDK_Cyrillic_EF 0x6e6 +#define GDK_Cyrillic_GHE 0x6e7 +#define GDK_Cyrillic_HA 0x6e8 +#define GDK_Cyrillic_I 0x6e9 +#define GDK_Cyrillic_SHORTI 0x6ea +#define GDK_Cyrillic_KA 0x6eb +#define GDK_Cyrillic_EL 0x6ec +#define GDK_Cyrillic_EM 0x6ed +#define GDK_Cyrillic_EN 0x6ee +#define GDK_Cyrillic_O 0x6ef +#define GDK_Cyrillic_PE 0x6f0 +#define GDK_Cyrillic_YA 0x6f1 +#define GDK_Cyrillic_ER 0x6f2 +#define GDK_Cyrillic_ES 0x6f3 +#define GDK_Cyrillic_TE 0x6f4 +#define GDK_Cyrillic_U 0x6f5 +#define GDK_Cyrillic_ZHE 0x6f6 +#define GDK_Cyrillic_VE 0x6f7 +#define GDK_Cyrillic_SOFTSIGN 0x6f8 +#define GDK_Cyrillic_YERU 0x6f9 +#define GDK_Cyrillic_ZE 0x6fa +#define GDK_Cyrillic_SHA 0x6fb +#define GDK_Cyrillic_E 0x6fc +#define GDK_Cyrillic_SHCHA 0x6fd +#define GDK_Cyrillic_CHE 0x6fe +#define GDK_Cyrillic_HARDSIGN 0x6ff +#define GDK_Greek_ALPHAaccent 0x7a1 +#define GDK_Greek_EPSILONaccent 0x7a2 +#define GDK_Greek_ETAaccent 0x7a3 +#define GDK_Greek_IOTAaccent 0x7a4 +#define GDK_Greek_IOTAdieresis 0x7a5 +#define GDK_Greek_IOTAdiaeresis 0x7a5 +#define GDK_Greek_OMICRONaccent 0x7a7 +#define GDK_Greek_UPSILONaccent 0x7a8 +#define GDK_Greek_UPSILONdieresis 0x7a9 +#define GDK_Greek_OMEGAaccent 0x7ab +#define GDK_Greek_accentdieresis 0x7ae +#define GDK_Greek_horizbar 0x7af +#define GDK_Greek_alphaaccent 0x7b1 +#define GDK_Greek_epsilonaccent 0x7b2 +#define GDK_Greek_etaaccent 0x7b3 +#define GDK_Greek_iotaaccent 0x7b4 +#define GDK_Greek_iotadieresis 0x7b5 +#define GDK_Greek_iotaaccentdieresis 0x7b6 +#define GDK_Greek_omicronaccent 0x7b7 +#define GDK_Greek_upsilonaccent 0x7b8 +#define GDK_Greek_upsilondieresis 0x7b9 +#define GDK_Greek_upsilonaccentdieresis 0x7ba +#define GDK_Greek_omegaaccent 0x7bb +#define GDK_Greek_ALPHA 0x7c1 +#define GDK_Greek_BETA 0x7c2 +#define GDK_Greek_GAMMA 0x7c3 +#define GDK_Greek_DELTA 0x7c4 +#define GDK_Greek_EPSILON 0x7c5 +#define GDK_Greek_ZETA 0x7c6 +#define GDK_Greek_ETA 0x7c7 +#define GDK_Greek_THETA 0x7c8 +#define GDK_Greek_IOTA 0x7c9 +#define GDK_Greek_KAPPA 0x7ca +#define GDK_Greek_LAMDA 0x7cb +#define GDK_Greek_LAMBDA 0x7cb +#define GDK_Greek_MU 0x7cc +#define GDK_Greek_NU 0x7cd +#define GDK_Greek_XI 0x7ce +#define GDK_Greek_OMICRON 0x7cf +#define GDK_Greek_PI 0x7d0 +#define GDK_Greek_RHO 0x7d1 +#define GDK_Greek_SIGMA 0x7d2 +#define GDK_Greek_TAU 0x7d4 +#define GDK_Greek_UPSILON 0x7d5 +#define GDK_Greek_PHI 0x7d6 +#define GDK_Greek_CHI 0x7d7 +#define GDK_Greek_PSI 0x7d8 +#define GDK_Greek_OMEGA 0x7d9 +#define GDK_Greek_alpha 0x7e1 +#define GDK_Greek_beta 0x7e2 +#define GDK_Greek_gamma 0x7e3 +#define GDK_Greek_delta 0x7e4 +#define GDK_Greek_epsilon 0x7e5 +#define GDK_Greek_zeta 0x7e6 +#define GDK_Greek_eta 0x7e7 +#define GDK_Greek_theta 0x7e8 +#define GDK_Greek_iota 0x7e9 +#define GDK_Greek_kappa 0x7ea +#define GDK_Greek_lamda 0x7eb +#define GDK_Greek_lambda 0x7eb +#define GDK_Greek_mu 0x7ec +#define GDK_Greek_nu 0x7ed +#define GDK_Greek_xi 0x7ee +#define GDK_Greek_omicron 0x7ef +#define GDK_Greek_pi 0x7f0 +#define GDK_Greek_rho 0x7f1 +#define GDK_Greek_sigma 0x7f2 +#define GDK_Greek_finalsmallsigma 0x7f3 +#define GDK_Greek_tau 0x7f4 +#define GDK_Greek_upsilon 0x7f5 +#define GDK_Greek_phi 0x7f6 +#define GDK_Greek_chi 0x7f7 +#define GDK_Greek_psi 0x7f8 +#define GDK_Greek_omega 0x7f9 +#define GDK_Greek_switch 0xff7e +#define GDK_leftradical 0x8a1 +#define GDK_topleftradical 0x8a2 +#define GDK_horizconnector 0x8a3 +#define GDK_topintegral 0x8a4 +#define GDK_botintegral 0x8a5 +#define GDK_vertconnector 0x8a6 +#define GDK_topleftsqbracket 0x8a7 +#define GDK_botleftsqbracket 0x8a8 +#define GDK_toprightsqbracket 0x8a9 +#define GDK_botrightsqbracket 0x8aa +#define GDK_topleftparens 0x8ab +#define GDK_botleftparens 0x8ac +#define GDK_toprightparens 0x8ad +#define GDK_botrightparens 0x8ae +#define GDK_leftmiddlecurlybrace 0x8af +#define GDK_rightmiddlecurlybrace 0x8b0 +#define GDK_topleftsummation 0x8b1 +#define GDK_botleftsummation 0x8b2 +#define GDK_topvertsummationconnector 0x8b3 +#define GDK_botvertsummationconnector 0x8b4 +#define GDK_toprightsummation 0x8b5 +#define GDK_botrightsummation 0x8b6 +#define GDK_rightmiddlesummation 0x8b7 +#define GDK_lessthanequal 0x8bc +#define GDK_notequal 0x8bd +#define GDK_greaterthanequal 0x8be +#define GDK_integral 0x8bf +#define GDK_therefore 0x8c0 +#define GDK_variation 0x8c1 +#define GDK_infinity 0x8c2 +#define GDK_nabla 0x8c5 +#define GDK_approximate 0x8c8 +#define GDK_similarequal 0x8c9 +#define GDK_ifonlyif 0x8cd +#define GDK_implies 0x8ce +#define GDK_identical 0x8cf +#define GDK_radical 0x8d6 +#define GDK_includedin 0x8da +#define GDK_includes 0x8db +#define GDK_intersection 0x8dc +#define GDK_union 0x8dd +#define GDK_logicaland 0x8de +#define GDK_logicalor 0x8df +#define GDK_partialderivative 0x8ef +#define GDK_function 0x8f6 +#define GDK_leftarrow 0x8fb +#define GDK_uparrow 0x8fc +#define GDK_rightarrow 0x8fd +#define GDK_downarrow 0x8fe +#define GDK_blank 0x9df +#define GDK_soliddiamond 0x9e0 +#define GDK_checkerboard 0x9e1 +#define GDK_ht 0x9e2 +#define GDK_ff 0x9e3 +#define GDK_cr 0x9e4 +#define GDK_lf 0x9e5 +#define GDK_nl 0x9e8 +#define GDK_vt 0x9e9 +#define GDK_lowrightcorner 0x9ea +#define GDK_uprightcorner 0x9eb +#define GDK_upleftcorner 0x9ec +#define GDK_lowleftcorner 0x9ed +#define GDK_crossinglines 0x9ee +#define GDK_horizlinescan1 0x9ef +#define GDK_horizlinescan3 0x9f0 +#define GDK_horizlinescan5 0x9f1 +#define GDK_horizlinescan7 0x9f2 +#define GDK_horizlinescan9 0x9f3 +#define GDK_leftt 0x9f4 +#define GDK_rightt 0x9f5 +#define GDK_bott 0x9f6 +#define GDK_topt 0x9f7 +#define GDK_vertbar 0x9f8 +#define GDK_emspace 0xaa1 +#define GDK_enspace 0xaa2 +#define GDK_em3space 0xaa3 +#define GDK_em4space 0xaa4 +#define GDK_digitspace 0xaa5 +#define GDK_punctspace 0xaa6 +#define GDK_thinspace 0xaa7 +#define GDK_hairspace 0xaa8 +#define GDK_emdash 0xaa9 +#define GDK_endash 0xaaa +#define GDK_signifblank 0xaac +#define GDK_ellipsis 0xaae +#define GDK_doubbaselinedot 0xaaf +#define GDK_onethird 0xab0 +#define GDK_twothirds 0xab1 +#define GDK_onefifth 0xab2 +#define GDK_twofifths 0xab3 +#define GDK_threefifths 0xab4 +#define GDK_fourfifths 0xab5 +#define GDK_onesixth 0xab6 +#define GDK_fivesixths 0xab7 +#define GDK_careof 0xab8 +#define GDK_figdash 0xabb +#define GDK_leftanglebracket 0xabc +#define GDK_decimalpoint 0xabd +#define GDK_rightanglebracket 0xabe +#define GDK_marker 0xabf +#define GDK_oneeighth 0xac3 +#define GDK_threeeighths 0xac4 +#define GDK_fiveeighths 0xac5 +#define GDK_seveneighths 0xac6 +#define GDK_trademark 0xac9 +#define GDK_signaturemark 0xaca +#define GDK_trademarkincircle 0xacb +#define GDK_leftopentriangle 0xacc +#define GDK_rightopentriangle 0xacd +#define GDK_emopencircle 0xace +#define GDK_emopenrectangle 0xacf +#define GDK_leftsinglequotemark 0xad0 +#define GDK_rightsinglequotemark 0xad1 +#define GDK_leftdoublequotemark 0xad2 +#define GDK_rightdoublequotemark 0xad3 +#define GDK_prescription 0xad4 +#define GDK_minutes 0xad6 +#define GDK_seconds 0xad7 +#define GDK_latincross 0xad9 +#define GDK_hexagram 0xada +#define GDK_filledrectbullet 0xadb +#define GDK_filledlefttribullet 0xadc +#define GDK_filledrighttribullet 0xadd +#define GDK_emfilledcircle 0xade +#define GDK_emfilledrect 0xadf +#define GDK_enopencircbullet 0xae0 +#define GDK_enopensquarebullet 0xae1 +#define GDK_openrectbullet 0xae2 +#define GDK_opentribulletup 0xae3 +#define GDK_opentribulletdown 0xae4 +#define GDK_openstar 0xae5 +#define GDK_enfilledcircbullet 0xae6 +#define GDK_enfilledsqbullet 0xae7 +#define GDK_filledtribulletup 0xae8 +#define GDK_filledtribulletdown 0xae9 +#define GDK_leftpointer 0xaea +#define GDK_rightpointer 0xaeb +#define GDK_club 0xaec +#define GDK_diamond 0xaed +#define GDK_heart 0xaee +#define GDK_maltesecross 0xaf0 +#define GDK_dagger 0xaf1 +#define GDK_doubledagger 0xaf2 +#define GDK_checkmark 0xaf3 +#define GDK_ballotcross 0xaf4 +#define GDK_musicalsharp 0xaf5 +#define GDK_musicalflat 0xaf6 +#define GDK_malesymbol 0xaf7 +#define GDK_femalesymbol 0xaf8 +#define GDK_telephone 0xaf9 +#define GDK_telephonerecorder 0xafa +#define GDK_phonographcopyright 0xafb +#define GDK_caret 0xafc +#define GDK_singlelowquotemark 0xafd +#define GDK_doublelowquotemark 0xafe +#define GDK_cursor 0xaff +#define GDK_leftcaret 0xba3 +#define GDK_rightcaret 0xba6 +#define GDK_downcaret 0xba8 +#define GDK_upcaret 0xba9 +#define GDK_overbar 0xbc0 +#define GDK_downtack 0xbc2 +#define GDK_upshoe 0xbc3 +#define GDK_downstile 0xbc4 +#define GDK_underbar 0xbc6 +#define GDK_jot 0xbca +#define GDK_quad 0xbcc +#define GDK_uptack 0xbce +#define GDK_circle 0xbcf +#define GDK_upstile 0xbd3 +#define GDK_downshoe 0xbd6 +#define GDK_rightshoe 0xbd8 +#define GDK_leftshoe 0xbda +#define GDK_lefttack 0xbdc +#define GDK_righttack 0xbfc +#define GDK_hebrew_doublelowline 0xcdf +#define GDK_hebrew_aleph 0xce0 +#define GDK_hebrew_bet 0xce1 +#define GDK_hebrew_beth 0xce1 +#define GDK_hebrew_gimel 0xce2 +#define GDK_hebrew_gimmel 0xce2 +#define GDK_hebrew_dalet 0xce3 +#define GDK_hebrew_daleth 0xce3 +#define GDK_hebrew_he 0xce4 +#define GDK_hebrew_waw 0xce5 +#define GDK_hebrew_zain 0xce6 +#define GDK_hebrew_zayin 0xce6 +#define GDK_hebrew_chet 0xce7 +#define GDK_hebrew_het 0xce7 +#define GDK_hebrew_tet 0xce8 +#define GDK_hebrew_teth 0xce8 +#define GDK_hebrew_yod 0xce9 +#define GDK_hebrew_finalkaph 0xcea +#define GDK_hebrew_kaph 0xceb +#define GDK_hebrew_lamed 0xcec +#define GDK_hebrew_finalmem 0xced +#define GDK_hebrew_mem 0xcee +#define GDK_hebrew_finalnun 0xcef +#define GDK_hebrew_nun 0xcf0 +#define GDK_hebrew_samech 0xcf1 +#define GDK_hebrew_samekh 0xcf1 +#define GDK_hebrew_ayin 0xcf2 +#define GDK_hebrew_finalpe 0xcf3 +#define GDK_hebrew_pe 0xcf4 +#define GDK_hebrew_finalzade 0xcf5 +#define GDK_hebrew_finalzadi 0xcf5 +#define GDK_hebrew_zade 0xcf6 +#define GDK_hebrew_zadi 0xcf6 +#define GDK_hebrew_qoph 0xcf7 +#define GDK_hebrew_kuf 0xcf7 +#define GDK_hebrew_resh 0xcf8 +#define GDK_hebrew_shin 0xcf9 +#define GDK_hebrew_taw 0xcfa +#define GDK_hebrew_taf 0xcfa +#define GDK_Hebrew_switch 0xff7e +#define GDK_Thai_kokai 0xda1 +#define GDK_Thai_khokhai 0xda2 +#define GDK_Thai_khokhuat 0xda3 +#define GDK_Thai_khokhwai 0xda4 +#define GDK_Thai_khokhon 0xda5 +#define GDK_Thai_khorakhang 0xda6 +#define GDK_Thai_ngongu 0xda7 +#define GDK_Thai_chochan 0xda8 +#define GDK_Thai_choching 0xda9 +#define GDK_Thai_chochang 0xdaa +#define GDK_Thai_soso 0xdab +#define GDK_Thai_chochoe 0xdac +#define GDK_Thai_yoying 0xdad +#define GDK_Thai_dochada 0xdae +#define GDK_Thai_topatak 0xdaf +#define GDK_Thai_thothan 0xdb0 +#define GDK_Thai_thonangmontho 0xdb1 +#define GDK_Thai_thophuthao 0xdb2 +#define GDK_Thai_nonen 0xdb3 +#define GDK_Thai_dodek 0xdb4 +#define GDK_Thai_totao 0xdb5 +#define GDK_Thai_thothung 0xdb6 +#define GDK_Thai_thothahan 0xdb7 +#define GDK_Thai_thothong 0xdb8 +#define GDK_Thai_nonu 0xdb9 +#define GDK_Thai_bobaimai 0xdba +#define GDK_Thai_popla 0xdbb +#define GDK_Thai_phophung 0xdbc +#define GDK_Thai_fofa 0xdbd +#define GDK_Thai_phophan 0xdbe +#define GDK_Thai_fofan 0xdbf +#define GDK_Thai_phosamphao 0xdc0 +#define GDK_Thai_moma 0xdc1 +#define GDK_Thai_yoyak 0xdc2 +#define GDK_Thai_rorua 0xdc3 +#define GDK_Thai_ru 0xdc4 +#define GDK_Thai_loling 0xdc5 +#define GDK_Thai_lu 0xdc6 +#define GDK_Thai_wowaen 0xdc7 +#define GDK_Thai_sosala 0xdc8 +#define GDK_Thai_sorusi 0xdc9 +#define GDK_Thai_sosua 0xdca +#define GDK_Thai_hohip 0xdcb +#define GDK_Thai_lochula 0xdcc +#define GDK_Thai_oang 0xdcd +#define GDK_Thai_honokhuk 0xdce +#define GDK_Thai_paiyannoi 0xdcf +#define GDK_Thai_saraa 0xdd0 +#define GDK_Thai_maihanakat 0xdd1 +#define GDK_Thai_saraaa 0xdd2 +#define GDK_Thai_saraam 0xdd3 +#define GDK_Thai_sarai 0xdd4 +#define GDK_Thai_saraii 0xdd5 +#define GDK_Thai_saraue 0xdd6 +#define GDK_Thai_sarauee 0xdd7 +#define GDK_Thai_sarau 0xdd8 +#define GDK_Thai_sarauu 0xdd9 +#define GDK_Thai_phinthu 0xdda +#define GDK_Thai_maihanakat_maitho 0xdde +#define GDK_Thai_baht 0xddf +#define GDK_Thai_sarae 0xde0 +#define GDK_Thai_saraae 0xde1 +#define GDK_Thai_sarao 0xde2 +#define GDK_Thai_saraaimaimuan 0xde3 +#define GDK_Thai_saraaimaimalai 0xde4 +#define GDK_Thai_lakkhangyao 0xde5 +#define GDK_Thai_maiyamok 0xde6 +#define GDK_Thai_maitaikhu 0xde7 +#define GDK_Thai_maiek 0xde8 +#define GDK_Thai_maitho 0xde9 +#define GDK_Thai_maitri 0xdea +#define GDK_Thai_maichattawa 0xdeb +#define GDK_Thai_thanthakhat 0xdec +#define GDK_Thai_nikhahit 0xded +#define GDK_Thai_leksun 0xdf0 +#define GDK_Thai_leknung 0xdf1 +#define GDK_Thai_leksong 0xdf2 +#define GDK_Thai_leksam 0xdf3 +#define GDK_Thai_leksi 0xdf4 +#define GDK_Thai_lekha 0xdf5 +#define GDK_Thai_lekhok 0xdf6 +#define GDK_Thai_lekchet 0xdf7 +#define GDK_Thai_lekpaet 0xdf8 +#define GDK_Thai_lekkao 0xdf9 +#define GDK_Hangul 0xff31 +#define GDK_Hangul_Start 0xff32 +#define GDK_Hangul_End 0xff33 +#define GDK_Hangul_Hanja 0xff34 +#define GDK_Hangul_Jamo 0xff35 +#define GDK_Hangul_Romaja 0xff36 +#define GDK_Hangul_Codeinput 0xff37 +#define GDK_Hangul_Jeonja 0xff38 +#define GDK_Hangul_Banja 0xff39 +#define GDK_Hangul_PreHanja 0xff3a +#define GDK_Hangul_PostHanja 0xff3b +#define GDK_Hangul_SingleCandidate 0xff3c +#define GDK_Hangul_MultipleCandidate 0xff3d +#define GDK_Hangul_PreviousCandidate 0xff3e +#define GDK_Hangul_Special 0xff3f +#define GDK_Hangul_switch 0xff7e +#define GDK_Hangul_Kiyeog 0xea1 +#define GDK_Hangul_SsangKiyeog 0xea2 +#define GDK_Hangul_KiyeogSios 0xea3 +#define GDK_Hangul_Nieun 0xea4 +#define GDK_Hangul_NieunJieuj 0xea5 +#define GDK_Hangul_NieunHieuh 0xea6 +#define GDK_Hangul_Dikeud 0xea7 +#define GDK_Hangul_SsangDikeud 0xea8 +#define GDK_Hangul_Rieul 0xea9 +#define GDK_Hangul_RieulKiyeog 0xeaa +#define GDK_Hangul_RieulMieum 0xeab +#define GDK_Hangul_RieulPieub 0xeac +#define GDK_Hangul_RieulSios 0xead +#define GDK_Hangul_RieulTieut 0xeae +#define GDK_Hangul_RieulPhieuf 0xeaf +#define GDK_Hangul_RieulHieuh 0xeb0 +#define GDK_Hangul_Mieum 0xeb1 +#define GDK_Hangul_Pieub 0xeb2 +#define GDK_Hangul_SsangPieub 0xeb3 +#define GDK_Hangul_PieubSios 0xeb4 +#define GDK_Hangul_Sios 0xeb5 +#define GDK_Hangul_SsangSios 0xeb6 +#define GDK_Hangul_Ieung 0xeb7 +#define GDK_Hangul_Jieuj 0xeb8 +#define GDK_Hangul_SsangJieuj 0xeb9 +#define GDK_Hangul_Cieuc 0xeba +#define GDK_Hangul_Khieuq 0xebb +#define GDK_Hangul_Tieut 0xebc +#define GDK_Hangul_Phieuf 0xebd +#define GDK_Hangul_Hieuh 0xebe +#define GDK_Hangul_A 0xebf +#define GDK_Hangul_AE 0xec0 +#define GDK_Hangul_YA 0xec1 +#define GDK_Hangul_YAE 0xec2 +#define GDK_Hangul_EO 0xec3 +#define GDK_Hangul_E 0xec4 +#define GDK_Hangul_YEO 0xec5 +#define GDK_Hangul_YE 0xec6 +#define GDK_Hangul_O 0xec7 +#define GDK_Hangul_WA 0xec8 +#define GDK_Hangul_WAE 0xec9 +#define GDK_Hangul_OE 0xeca +#define GDK_Hangul_YO 0xecb +#define GDK_Hangul_U 0xecc +#define GDK_Hangul_WEO 0xecd +#define GDK_Hangul_WE 0xece +#define GDK_Hangul_WI 0xecf +#define GDK_Hangul_YU 0xed0 +#define GDK_Hangul_EU 0xed1 +#define GDK_Hangul_YI 0xed2 +#define GDK_Hangul_I 0xed3 +#define GDK_Hangul_J_Kiyeog 0xed4 +#define GDK_Hangul_J_SsangKiyeog 0xed5 +#define GDK_Hangul_J_KiyeogSios 0xed6 +#define GDK_Hangul_J_Nieun 0xed7 +#define GDK_Hangul_J_NieunJieuj 0xed8 +#define GDK_Hangul_J_NieunHieuh 0xed9 +#define GDK_Hangul_J_Dikeud 0xeda +#define GDK_Hangul_J_Rieul 0xedb +#define GDK_Hangul_J_RieulKiyeog 0xedc +#define GDK_Hangul_J_RieulMieum 0xedd +#define GDK_Hangul_J_RieulPieub 0xede +#define GDK_Hangul_J_RieulSios 0xedf +#define GDK_Hangul_J_RieulTieut 0xee0 +#define GDK_Hangul_J_RieulPhieuf 0xee1 +#define GDK_Hangul_J_RieulHieuh 0xee2 +#define GDK_Hangul_J_Mieum 0xee3 +#define GDK_Hangul_J_Pieub 0xee4 +#define GDK_Hangul_J_PieubSios 0xee5 +#define GDK_Hangul_J_Sios 0xee6 +#define GDK_Hangul_J_SsangSios 0xee7 +#define GDK_Hangul_J_Ieung 0xee8 +#define GDK_Hangul_J_Jieuj 0xee9 +#define GDK_Hangul_J_Cieuc 0xeea +#define GDK_Hangul_J_Khieuq 0xeeb +#define GDK_Hangul_J_Tieut 0xeec +#define GDK_Hangul_J_Phieuf 0xeed +#define GDK_Hangul_J_Hieuh 0xeee +#define GDK_Hangul_RieulYeorinHieuh 0xeef +#define GDK_Hangul_SunkyeongeumMieum 0xef0 +#define GDK_Hangul_SunkyeongeumPieub 0xef1 +#define GDK_Hangul_PanSios 0xef2 +#define GDK_Hangul_KkogjiDalrinIeung 0xef3 +#define GDK_Hangul_SunkyeongeumPhieuf 0xef4 +#define GDK_Hangul_YeorinHieuh 0xef5 +#define GDK_Hangul_AraeA 0xef6 +#define GDK_Hangul_AraeAE 0xef7 +#define GDK_Hangul_J_PanSios 0xef8 +#define GDK_Hangul_J_KkogjiDalrinIeung 0xef9 +#define GDK_Hangul_J_YeorinHieuh 0xefa +#define GDK_Korean_Won 0xeff +#define GDK_Armenian_ligature_ew 0x1000587 +#define GDK_Armenian_full_stop 0x1000589 +#define GDK_Armenian_verjaket 0x1000589 +#define GDK_Armenian_separation_mark 0x100055d +#define GDK_Armenian_but 0x100055d +#define GDK_Armenian_hyphen 0x100058a +#define GDK_Armenian_yentamna 0x100058a +#define GDK_Armenian_exclam 0x100055c +#define GDK_Armenian_amanak 0x100055c +#define GDK_Armenian_accent 0x100055b +#define GDK_Armenian_shesht 0x100055b +#define GDK_Armenian_question 0x100055e +#define GDK_Armenian_paruyk 0x100055e +#define GDK_Armenian_AYB 0x1000531 +#define GDK_Armenian_ayb 0x1000561 +#define GDK_Armenian_BEN 0x1000532 +#define GDK_Armenian_ben 0x1000562 +#define GDK_Armenian_GIM 0x1000533 +#define GDK_Armenian_gim 0x1000563 +#define GDK_Armenian_DA 0x1000534 +#define GDK_Armenian_da 0x1000564 +#define GDK_Armenian_YECH 0x1000535 +#define GDK_Armenian_yech 0x1000565 +#define GDK_Armenian_ZA 0x1000536 +#define GDK_Armenian_za 0x1000566 +#define GDK_Armenian_E 0x1000537 +#define GDK_Armenian_e 0x1000567 +#define GDK_Armenian_AT 0x1000538 +#define GDK_Armenian_at 0x1000568 +#define GDK_Armenian_TO 0x1000539 +#define GDK_Armenian_to 0x1000569 +#define GDK_Armenian_ZHE 0x100053a +#define GDK_Armenian_zhe 0x100056a +#define GDK_Armenian_INI 0x100053b +#define GDK_Armenian_ini 0x100056b +#define GDK_Armenian_LYUN 0x100053c +#define GDK_Armenian_lyun 0x100056c +#define GDK_Armenian_KHE 0x100053d +#define GDK_Armenian_khe 0x100056d +#define GDK_Armenian_TSA 0x100053e +#define GDK_Armenian_tsa 0x100056e +#define GDK_Armenian_KEN 0x100053f +#define GDK_Armenian_ken 0x100056f +#define GDK_Armenian_HO 0x1000540 +#define GDK_Armenian_ho 0x1000570 +#define GDK_Armenian_DZA 0x1000541 +#define GDK_Armenian_dza 0x1000571 +#define GDK_Armenian_GHAT 0x1000542 +#define GDK_Armenian_ghat 0x1000572 +#define GDK_Armenian_TCHE 0x1000543 +#define GDK_Armenian_tche 0x1000573 +#define GDK_Armenian_MEN 0x1000544 +#define GDK_Armenian_men 0x1000574 +#define GDK_Armenian_HI 0x1000545 +#define GDK_Armenian_hi 0x1000575 +#define GDK_Armenian_NU 0x1000546 +#define GDK_Armenian_nu 0x1000576 +#define GDK_Armenian_SHA 0x1000547 +#define GDK_Armenian_sha 0x1000577 +#define GDK_Armenian_VO 0x1000548 +#define GDK_Armenian_vo 0x1000578 +#define GDK_Armenian_CHA 0x1000549 +#define GDK_Armenian_cha 0x1000579 +#define GDK_Armenian_PE 0x100054a +#define GDK_Armenian_pe 0x100057a +#define GDK_Armenian_JE 0x100054b +#define GDK_Armenian_je 0x100057b +#define GDK_Armenian_RA 0x100054c +#define GDK_Armenian_ra 0x100057c +#define GDK_Armenian_SE 0x100054d +#define GDK_Armenian_se 0x100057d +#define GDK_Armenian_VEV 0x100054e +#define GDK_Armenian_vev 0x100057e +#define GDK_Armenian_TYUN 0x100054f +#define GDK_Armenian_tyun 0x100057f +#define GDK_Armenian_RE 0x1000550 +#define GDK_Armenian_re 0x1000580 +#define GDK_Armenian_TSO 0x1000551 +#define GDK_Armenian_tso 0x1000581 +#define GDK_Armenian_VYUN 0x1000552 +#define GDK_Armenian_vyun 0x1000582 +#define GDK_Armenian_PYUR 0x1000553 +#define GDK_Armenian_pyur 0x1000583 +#define GDK_Armenian_KE 0x1000554 +#define GDK_Armenian_ke 0x1000584 +#define GDK_Armenian_O 0x1000555 +#define GDK_Armenian_o 0x1000585 +#define GDK_Armenian_FE 0x1000556 +#define GDK_Armenian_fe 0x1000586 +#define GDK_Armenian_apostrophe 0x100055a +#define GDK_Georgian_an 0x10010d0 +#define GDK_Georgian_ban 0x10010d1 +#define GDK_Georgian_gan 0x10010d2 +#define GDK_Georgian_don 0x10010d3 +#define GDK_Georgian_en 0x10010d4 +#define GDK_Georgian_vin 0x10010d5 +#define GDK_Georgian_zen 0x10010d6 +#define GDK_Georgian_tan 0x10010d7 +#define GDK_Georgian_in 0x10010d8 +#define GDK_Georgian_kan 0x10010d9 +#define GDK_Georgian_las 0x10010da +#define GDK_Georgian_man 0x10010db +#define GDK_Georgian_nar 0x10010dc +#define GDK_Georgian_on 0x10010dd +#define GDK_Georgian_par 0x10010de +#define GDK_Georgian_zhar 0x10010df +#define GDK_Georgian_rae 0x10010e0 +#define GDK_Georgian_san 0x10010e1 +#define GDK_Georgian_tar 0x10010e2 +#define GDK_Georgian_un 0x10010e3 +#define GDK_Georgian_phar 0x10010e4 +#define GDK_Georgian_khar 0x10010e5 +#define GDK_Georgian_ghan 0x10010e6 +#define GDK_Georgian_qar 0x10010e7 +#define GDK_Georgian_shin 0x10010e8 +#define GDK_Georgian_chin 0x10010e9 +#define GDK_Georgian_can 0x10010ea +#define GDK_Georgian_jil 0x10010eb +#define GDK_Georgian_cil 0x10010ec +#define GDK_Georgian_char 0x10010ed +#define GDK_Georgian_xan 0x10010ee +#define GDK_Georgian_jhan 0x10010ef +#define GDK_Georgian_hae 0x10010f0 +#define GDK_Georgian_he 0x10010f1 +#define GDK_Georgian_hie 0x10010f2 +#define GDK_Georgian_we 0x10010f3 +#define GDK_Georgian_har 0x10010f4 +#define GDK_Georgian_hoe 0x10010f5 +#define GDK_Georgian_fi 0x10010f6 +#define GDK_Xabovedot 0x1001e8a +#define GDK_Ibreve 0x100012c +#define GDK_Zstroke 0x10001b5 +#define GDK_Gcaron 0x10001e6 +#define GDK_Ocaron 0x10001d1 +#define GDK_Obarred 0x100019f +#define GDK_xabovedot 0x1001e8b +#define GDK_ibreve 0x100012d +#define GDK_zstroke 0x10001b6 +#define GDK_gcaron 0x10001e7 +#define GDK_ocaron 0x10001d2 +#define GDK_obarred 0x1000275 +#define GDK_SCHWA 0x100018f +#define GDK_schwa 0x1000259 +#define GDK_Lbelowdot 0x1001e36 +#define GDK_lbelowdot 0x1001e37 +#define GDK_Abelowdot 0x1001ea0 +#define GDK_abelowdot 0x1001ea1 +#define GDK_Ahook 0x1001ea2 +#define GDK_ahook 0x1001ea3 +#define GDK_Acircumflexacute 0x1001ea4 +#define GDK_acircumflexacute 0x1001ea5 +#define GDK_Acircumflexgrave 0x1001ea6 +#define GDK_acircumflexgrave 0x1001ea7 +#define GDK_Acircumflexhook 0x1001ea8 +#define GDK_acircumflexhook 0x1001ea9 +#define GDK_Acircumflextilde 0x1001eaa +#define GDK_acircumflextilde 0x1001eab +#define GDK_Acircumflexbelowdot 0x1001eac +#define GDK_acircumflexbelowdot 0x1001ead +#define GDK_Abreveacute 0x1001eae +#define GDK_abreveacute 0x1001eaf +#define GDK_Abrevegrave 0x1001eb0 +#define GDK_abrevegrave 0x1001eb1 +#define GDK_Abrevehook 0x1001eb2 +#define GDK_abrevehook 0x1001eb3 +#define GDK_Abrevetilde 0x1001eb4 +#define GDK_abrevetilde 0x1001eb5 +#define GDK_Abrevebelowdot 0x1001eb6 +#define GDK_abrevebelowdot 0x1001eb7 +#define GDK_Ebelowdot 0x1001eb8 +#define GDK_ebelowdot 0x1001eb9 +#define GDK_Ehook 0x1001eba +#define GDK_ehook 0x1001ebb +#define GDK_Etilde 0x1001ebc +#define GDK_etilde 0x1001ebd +#define GDK_Ecircumflexacute 0x1001ebe +#define GDK_ecircumflexacute 0x1001ebf +#define GDK_Ecircumflexgrave 0x1001ec0 +#define GDK_ecircumflexgrave 0x1001ec1 +#define GDK_Ecircumflexhook 0x1001ec2 +#define GDK_ecircumflexhook 0x1001ec3 +#define GDK_Ecircumflextilde 0x1001ec4 +#define GDK_ecircumflextilde 0x1001ec5 +#define GDK_Ecircumflexbelowdot 0x1001ec6 +#define GDK_ecircumflexbelowdot 0x1001ec7 +#define GDK_Ihook 0x1001ec8 +#define GDK_ihook 0x1001ec9 +#define GDK_Ibelowdot 0x1001eca +#define GDK_ibelowdot 0x1001ecb +#define GDK_Obelowdot 0x1001ecc +#define GDK_obelowdot 0x1001ecd +#define GDK_Ohook 0x1001ece +#define GDK_ohook 0x1001ecf +#define GDK_Ocircumflexacute 0x1001ed0 +#define GDK_ocircumflexacute 0x1001ed1 +#define GDK_Ocircumflexgrave 0x1001ed2 +#define GDK_ocircumflexgrave 0x1001ed3 +#define GDK_Ocircumflexhook 0x1001ed4 +#define GDK_ocircumflexhook 0x1001ed5 +#define GDK_Ocircumflextilde 0x1001ed6 +#define GDK_ocircumflextilde 0x1001ed7 +#define GDK_Ocircumflexbelowdot 0x1001ed8 +#define GDK_ocircumflexbelowdot 0x1001ed9 +#define GDK_Ohornacute 0x1001eda +#define GDK_ohornacute 0x1001edb +#define GDK_Ohorngrave 0x1001edc +#define GDK_ohorngrave 0x1001edd +#define GDK_Ohornhook 0x1001ede +#define GDK_ohornhook 0x1001edf +#define GDK_Ohorntilde 0x1001ee0 +#define GDK_ohorntilde 0x1001ee1 +#define GDK_Ohornbelowdot 0x1001ee2 +#define GDK_ohornbelowdot 0x1001ee3 +#define GDK_Ubelowdot 0x1001ee4 +#define GDK_ubelowdot 0x1001ee5 +#define GDK_Uhook 0x1001ee6 +#define GDK_uhook 0x1001ee7 +#define GDK_Uhornacute 0x1001ee8 +#define GDK_uhornacute 0x1001ee9 +#define GDK_Uhorngrave 0x1001eea +#define GDK_uhorngrave 0x1001eeb +#define GDK_Uhornhook 0x1001eec +#define GDK_uhornhook 0x1001eed +#define GDK_Uhorntilde 0x1001eee +#define GDK_uhorntilde 0x1001eef +#define GDK_Uhornbelowdot 0x1001ef0 +#define GDK_uhornbelowdot 0x1001ef1 +#define GDK_Ybelowdot 0x1001ef4 +#define GDK_ybelowdot 0x1001ef5 +#define GDK_Yhook 0x1001ef6 +#define GDK_yhook 0x1001ef7 +#define GDK_Ytilde 0x1001ef8 +#define GDK_ytilde 0x1001ef9 +#define GDK_Ohorn 0x10001a0 +#define GDK_ohorn 0x10001a1 +#define GDK_Uhorn 0x10001af +#define GDK_uhorn 0x10001b0 +#define GDK_EcuSign 0x10020a0 +#define GDK_ColonSign 0x10020a1 +#define GDK_CruzeiroSign 0x10020a2 +#define GDK_FFrancSign 0x10020a3 +#define GDK_LiraSign 0x10020a4 +#define GDK_MillSign 0x10020a5 +#define GDK_NairaSign 0x10020a6 +#define GDK_PesetaSign 0x10020a7 +#define GDK_RupeeSign 0x10020a8 +#define GDK_WonSign 0x10020a9 +#define GDK_NewSheqelSign 0x10020aa +#define GDK_DongSign 0x10020ab +#define GDK_EuroSign 0x20ac +#define GDK_zerosuperior 0x1002070 +#define GDK_foursuperior 0x1002074 +#define GDK_fivesuperior 0x1002075 +#define GDK_sixsuperior 0x1002076 +#define GDK_sevensuperior 0x1002077 +#define GDK_eightsuperior 0x1002078 +#define GDK_ninesuperior 0x1002079 +#define GDK_zerosubscript 0x1002080 +#define GDK_onesubscript 0x1002081 +#define GDK_twosubscript 0x1002082 +#define GDK_threesubscript 0x1002083 +#define GDK_foursubscript 0x1002084 +#define GDK_fivesubscript 0x1002085 +#define GDK_sixsubscript 0x1002086 +#define GDK_sevensubscript 0x1002087 +#define GDK_eightsubscript 0x1002088 +#define GDK_ninesubscript 0x1002089 +#define GDK_partdifferential 0x1002202 +#define GDK_emptyset 0x1002205 +#define GDK_elementof 0x1002208 +#define GDK_notelementof 0x1002209 +#define GDK_containsas 0x100220b +#define GDK_squareroot 0x100221a +#define GDK_cuberoot 0x100221b +#define GDK_fourthroot 0x100221c +#define GDK_dintegral 0x100222c +#define GDK_tintegral 0x100222d +#define GDK_because 0x1002235 +#define GDK_approxeq 0x1002248 +#define GDK_notapproxeq 0x1002247 +#define GDK_notidentical 0x1002262 +#define GDK_stricteq 0x1002263 + +#endif /* __GDK_KEYSYMS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkpango.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkpango.h new file mode 100644 index 00000000..b2fef357 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkpango.h @@ -0,0 +1,162 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GDK_PANGO_H__ +#define __GDK_PANGO_H__ + +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +/* Pango interaction */ + +typedef struct _GdkPangoRenderer GdkPangoRenderer; +typedef struct _GdkPangoRendererClass GdkPangoRendererClass; +typedef struct _GdkPangoRendererPrivate GdkPangoRendererPrivate; + +#define GDK_TYPE_PANGO_RENDERER (gdk_pango_renderer_get_type()) +#define GDK_PANGO_RENDERER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PANGO_RENDERER, GdkPangoRenderer)) +#define GDK_IS_PANGO_RENDERER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PANGO_RENDERER)) +#define GDK_PANGO_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PANGO_RENDERER, GdkPangoRendererClass)) +#define GDK_IS_PANGO_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PANGO_RENDERER)) +#define GDK_PANGO_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PANGO_RENDERER, GdkPangoRendererClass)) + +/** + * GdkPangoRenderer: + * + * #GdkPangoRenderer is a subclass of #PangoRenderer used for rendering + * Pango objects into GDK drawables. The default renderer for a particular + * screen is obtained with gdk_pango_renderer_get_default(); Pango + * functions like pango_renderer_draw_layout() and + * pango_renderer_draw_layout_line() are then used to draw objects with + * the renderer. + * + * In most simple cases, applications can just use gdk_draw_layout(), and + * don't need to directly use #GdkPangoRenderer at all. Using the + * #GdkPangoRenderer directly is most useful when working with a + * transformation such as a rotation, because the Pango drawing functions + * take user space coordinates (coordinates before the transformation) + * instead of device coordinates. + * + * In certain cases it can be useful to subclass #GdkPangoRenderer. Examples + * of reasons to do this are to add handling of custom attributes by + * overriding 'prepare_run' or to do custom drawing of embedded objects + * by overriding 'draw_shape'. + * + * Since: 2.6 + **/ +struct _GdkPangoRenderer +{ + /*< private >*/ + PangoRenderer parent_instance; + + GdkPangoRendererPrivate *priv; +}; + +/** + * GdkPangoRendererClass: + * + * #GdkPangoRenderer is the class structure for #GdkPangoRenderer. + * + * Since: 2.6 + **/ +struct _GdkPangoRendererClass +{ + /*< private >*/ + PangoRendererClass parent_class; +}; + +GType gdk_pango_renderer_get_type (void) G_GNUC_CONST; + +PangoRenderer *gdk_pango_renderer_new (GdkScreen *screen); +PangoRenderer *gdk_pango_renderer_get_default (GdkScreen *screen); + +void gdk_pango_renderer_set_drawable (GdkPangoRenderer *gdk_renderer, + GdkDrawable *drawable); +void gdk_pango_renderer_set_gc (GdkPangoRenderer *gdk_renderer, + GdkGC *gc); +void gdk_pango_renderer_set_stipple (GdkPangoRenderer *gdk_renderer, + PangoRenderPart part, + GdkBitmap *stipple); +void gdk_pango_renderer_set_override_color (GdkPangoRenderer *gdk_renderer, + PangoRenderPart part, + const GdkColor *color); + +/************************************************************************/ + +PangoContext *gdk_pango_context_get_for_screen (GdkScreen *screen); +#ifndef GDK_MULTIHEAD_SAFE +PangoContext *gdk_pango_context_get (void); +#endif +#ifndef GDK_DISABLE_DEPRECATED +void gdk_pango_context_set_colormap (PangoContext *context, + GdkColormap *colormap); +#endif + + +/* Get a clip region to draw only part of a layout or + * line. index_ranges contains alternating range starts/stops. The + * region is the region which contains the given ranges, i.e. if you + * draw with the region as clip, only the given ranges are drawn. + */ + +GdkRegion *gdk_pango_layout_line_get_clip_region (PangoLayoutLine *line, + gint x_origin, + gint y_origin, + gint *index_ranges, + gint n_ranges); +GdkRegion *gdk_pango_layout_get_clip_region (PangoLayout *layout, + gint x_origin, + gint y_origin, + gint *index_ranges, + gint n_ranges); + + + +/* Attributes use to render insensitive text in GTK+. */ + +typedef struct _GdkPangoAttrStipple GdkPangoAttrStipple; +typedef struct _GdkPangoAttrEmbossed GdkPangoAttrEmbossed; +typedef struct _GdkPangoAttrEmbossColor GdkPangoAttrEmbossColor; + +struct _GdkPangoAttrStipple +{ + PangoAttribute attr; + GdkBitmap *stipple; +}; + +struct _GdkPangoAttrEmbossed +{ + PangoAttribute attr; + gboolean embossed; +}; + +struct _GdkPangoAttrEmbossColor +{ + PangoAttribute attr; + PangoColor color; +}; + +PangoAttribute *gdk_pango_attr_stipple_new (GdkBitmap *stipple); +PangoAttribute *gdk_pango_attr_embossed_new (gboolean embossed); +PangoAttribute *gdk_pango_attr_emboss_color_new (const GdkColor *color); + +G_END_DECLS + +#endif /* __GDK_FONT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkpixbuf.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkpixbuf.h new file mode 100644 index 00000000..7ec71644 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkpixbuf.h @@ -0,0 +1,111 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_PIXBUF_H__ +#define __GDK_PIXBUF_H__ + +#include <cairo.h> +#include <gdk/gdktypes.h> +#include <gdk/gdkrgb.h> +#include <gdk-pixbuf/gdk-pixbuf.h> + +G_BEGIN_DECLS + +/* Rendering to a drawable */ + +void gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf, + GdkBitmap *bitmap, + int src_x, + int src_y, + int dest_x, + int dest_y, + int width, + int height, + int alpha_threshold); +#ifndef GDK_DISABLE_DEPRECATED +void gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf, + GdkDrawable *drawable, + GdkGC *gc, + int src_x, + int src_y, + int dest_x, + int dest_y, + int width, + int height, + GdkRgbDither dither, + int x_dither, + int y_dither); +void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf *pixbuf, + GdkDrawable *drawable, + int src_x, + int src_y, + int dest_x, + int dest_y, + int width, + int height, + GdkPixbufAlphaMode alpha_mode, + int alpha_threshold, + GdkRgbDither dither, + int x_dither, + int y_dither); +#endif /* GDK_DISABLE_DEPRECATED */ +void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf, + GdkColormap *colormap, + GdkPixmap **pixmap_return, + GdkBitmap **mask_return, + int alpha_threshold); +#ifndef GDK_MULTIHEAD_SAFE +void gdk_pixbuf_render_pixmap_and_mask (GdkPixbuf *pixbuf, + GdkPixmap **pixmap_return, + GdkBitmap **mask_return, + int alpha_threshold); +#endif + + +/* Fetching a region from a drawable */ +GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf *dest, + GdkDrawable *src, + GdkColormap *cmap, + int src_x, + int src_y, + int dest_x, + int dest_y, + int width, + int height); + +GdkPixbuf *gdk_pixbuf_get_from_image (GdkPixbuf *dest, + GdkImage *src, + GdkColormap *cmap, + int src_x, + int src_y, + int dest_x, + int dest_y, + int width, + int height); + +G_END_DECLS + +#endif /* __GDK_PIXBUF_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkpixmap.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkpixmap.h new file mode 100644 index 00000000..1f9190b4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkpixmap.h @@ -0,0 +1,126 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_PIXMAP_H__ +#define __GDK_PIXMAP_H__ + +#include <gdk/gdktypes.h> +#include <gdk/gdkdrawable.h> + +G_BEGIN_DECLS + +typedef struct _GdkPixmapObject GdkPixmapObject; +typedef struct _GdkPixmapObjectClass GdkPixmapObjectClass; + +#define GDK_TYPE_PIXMAP (gdk_pixmap_get_type ()) +#define GDK_PIXMAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXMAP, GdkPixmap)) +#define GDK_PIXMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXMAP, GdkPixmapObjectClass)) +#define GDK_IS_PIXMAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXMAP)) +#define GDK_IS_PIXMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXMAP)) +#define GDK_PIXMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXMAP, GdkPixmapObjectClass)) +#define GDK_PIXMAP_OBJECT(object) ((GdkPixmapObject *) GDK_PIXMAP (object)) + +struct _GdkPixmapObject +{ + GdkDrawable parent_instance; + + GdkDrawable *impl; /* window-system-specific delegate object */ + + gint depth; +}; + +struct _GdkPixmapObjectClass +{ + GdkDrawableClass parent_class; + +}; + +GType gdk_pixmap_get_type (void) G_GNUC_CONST; + +/* Pixmaps + */ +GdkPixmap* gdk_pixmap_new (GdkDrawable *drawable, + gint width, + gint height, + gint depth); +GdkBitmap* gdk_bitmap_create_from_data (GdkDrawable *drawable, + const gchar *data, + gint width, + gint height); +GdkPixmap* gdk_pixmap_create_from_data (GdkDrawable *drawable, + const gchar *data, + gint width, + gint height, + gint depth, + const GdkColor *fg, + const GdkColor *bg); + +GdkPixmap* gdk_pixmap_create_from_xpm (GdkDrawable *drawable, + GdkBitmap **mask, + const GdkColor *transparent_color, + const gchar *filename); +GdkPixmap* gdk_pixmap_colormap_create_from_xpm (GdkDrawable *drawable, + GdkColormap *colormap, + GdkBitmap **mask, + const GdkColor *transparent_color, + const gchar *filename); +GdkPixmap* gdk_pixmap_create_from_xpm_d (GdkDrawable *drawable, + GdkBitmap **mask, + const GdkColor *transparent_color, + gchar **data); +GdkPixmap* gdk_pixmap_colormap_create_from_xpm_d (GdkDrawable *drawable, + GdkColormap *colormap, + GdkBitmap **mask, + const GdkColor *transparent_color, + gchar **data); + +/* Functions to create/lookup pixmaps from their native equivalents + */ +#ifndef GDK_MULTIHEAD_SAFE +GdkPixmap* gdk_pixmap_foreign_new (GdkNativeWindow anid); +GdkPixmap* gdk_pixmap_lookup (GdkNativeWindow anid); +#endif /* GDK_MULTIHEAD_SAFE */ + +GdkPixmap* gdk_pixmap_foreign_new_for_display (GdkDisplay *display, + GdkNativeWindow anid); +GdkPixmap* gdk_pixmap_lookup_for_display (GdkDisplay *display, + GdkNativeWindow anid); +GdkPixmap* gdk_pixmap_foreign_new_for_screen (GdkScreen *screen, + GdkNativeWindow anid, + gint width, + gint height, + gint depth); + +#ifndef GDK_DISABLE_DEPRECATED +#define gdk_bitmap_ref gdk_drawable_ref +#define gdk_bitmap_unref gdk_drawable_unref +#define gdk_pixmap_ref gdk_drawable_ref +#define gdk_pixmap_unref gdk_drawable_unref +#endif /* GDK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GDK_PIXMAP_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkprivate.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkprivate.h new file mode 100644 index 00000000..29fc346e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkprivate.h @@ -0,0 +1,68 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_PRIVATE_H__ +#define __GDK_PRIVATE_H__ + +#include <gdk/gdktypes.h> +#include <gdk/gdkevents.h> +#include <gdk/gdkfont.h> +#include <gdk/gdkgc.h> +#include <gdk/gdkimage.h> +#include <gdk/gdkregion.h> +#include <gdk/gdkvisual.h> +#include <gdk/gdkwindow.h> +#ifdef USE_MEDIALIB +#include <gdk/gdkmedialib.h> +#endif + +G_BEGIN_DECLS + +#define GDK_PARENT_RELATIVE_BG ((GdkPixmap *)1L) +#define GDK_NO_BG ((GdkPixmap *)2L) + +#define GDK_WINDOW_TYPE(d) (((GdkWindowObject*)(GDK_WINDOW (d)))->window_type) +#define GDK_WINDOW_DESTROYED(d) (((GdkWindowObject*)(GDK_WINDOW (d)))->destroyed) + +void gdk_window_destroy_notify (GdkWindow *window); + +void gdk_synthesize_window_state (GdkWindow *window, + GdkWindowState unset_flags, + GdkWindowState set_flags); + +/* Tests whether a pair of x,y may cause overflows when converted to Pango + * units (multiplied by PANGO_SCALE). We don't allow the entire range, leave + * some space for additions afterwards, to be safe... + */ +#define GDK_PANGO_UNITS_OVERFLOWS(x,y) (G_UNLIKELY ( \ + (y) >= PANGO_PIXELS (G_MAXINT-PANGO_SCALE)/2 || \ + (x) >= PANGO_PIXELS (G_MAXINT-PANGO_SCALE)/2 || \ + (y) <=-PANGO_PIXELS (G_MAXINT-PANGO_SCALE)/2 || \ + (x) <=-PANGO_PIXELS (G_MAXINT-PANGO_SCALE)/2)) + +G_END_DECLS + +#endif /* __GDK_PRIVATE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkproperty.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkproperty.h new file mode 100644 index 00000000..81b6c540 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkproperty.h @@ -0,0 +1,120 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_PROPERTY_H__ +#define __GDK_PROPERTY_H__ + +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +typedef enum +{ + GDK_PROP_MODE_REPLACE, + GDK_PROP_MODE_PREPEND, + GDK_PROP_MODE_APPEND +} GdkPropMode; + +GdkAtom gdk_atom_intern (const gchar *atom_name, + gboolean only_if_exists); +GdkAtom gdk_atom_intern_static_string (const gchar *atom_name); +gchar* gdk_atom_name (GdkAtom atom); + +gboolean gdk_property_get (GdkWindow *window, + GdkAtom property, + GdkAtom type, + gulong offset, + gulong length, + gint pdelete, + GdkAtom *actual_property_type, + gint *actual_format, + gint *actual_length, + guchar **data); +void gdk_property_change (GdkWindow *window, + GdkAtom property, + GdkAtom type, + gint format, + GdkPropMode mode, + const guchar *data, + gint nelements); +void gdk_property_delete (GdkWindow *window, + GdkAtom property); +#ifndef GDK_MULTIHEAD_SAFE +gint gdk_text_property_to_text_list (GdkAtom encoding, + gint format, + const guchar *text, + gint length, + gchar ***list); +gint gdk_text_property_to_utf8_list (GdkAtom encoding, + gint format, + const guchar *text, + gint length, + gchar ***list); +gboolean gdk_utf8_to_compound_text (const gchar *str, + GdkAtom *encoding, + gint *format, + guchar **ctext, + gint *length); +gint gdk_string_to_compound_text (const gchar *str, + GdkAtom *encoding, + gint *format, + guchar **ctext, + gint *length); +#endif + +gint gdk_text_property_to_text_list_for_display (GdkDisplay *display, + GdkAtom encoding, + gint format, + const guchar *text, + gint length, + gchar ***list); +gint gdk_text_property_to_utf8_list_for_display (GdkDisplay *display, + GdkAtom encoding, + gint format, + const guchar *text, + gint length, + gchar ***list); + +gchar *gdk_utf8_to_string_target (const gchar *str); +gint gdk_string_to_compound_text_for_display (GdkDisplay *display, + const gchar *str, + GdkAtom *encoding, + gint *format, + guchar **ctext, + gint *length); +gboolean gdk_utf8_to_compound_text_for_display (GdkDisplay *display, + const gchar *str, + GdkAtom *encoding, + gint *format, + guchar **ctext, + gint *length); + +void gdk_free_text_list (gchar **list); +void gdk_free_compound_text (guchar *ctext); + +G_END_DECLS + +#endif /* __GDK_PROPERTY_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkregion.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkregion.h new file mode 100644 index 00000000..ce31ba03 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkregion.h @@ -0,0 +1,109 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_REGION_H__ +#define __GDK_REGION_H__ + +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +/* GC fill rule for polygons + * EvenOddRule + * WindingRule + */ +typedef enum +{ + GDK_EVEN_ODD_RULE, + GDK_WINDING_RULE +} GdkFillRule; + +/* Types of overlapping between a rectangle and a region + * GDK_OVERLAP_RECTANGLE_IN: rectangle is in region + * GDK_OVERLAP_RECTANGLE_OUT: rectangle in not in region + * GDK_OVERLAP_RECTANGLE_PART: rectangle in partially in region + */ +typedef enum +{ + GDK_OVERLAP_RECTANGLE_IN, + GDK_OVERLAP_RECTANGLE_OUT, + GDK_OVERLAP_RECTANGLE_PART +} GdkOverlapType; + +typedef void (*GdkSpanFunc) (GdkSpan *span, + gpointer data); + +GdkRegion *gdk_region_new (void); +GdkRegion *gdk_region_polygon (GdkPoint *points, + gint npoints, + GdkFillRule fill_rule); +GdkRegion *gdk_region_copy (GdkRegion *region); +GdkRegion *gdk_region_rectangle (GdkRectangle *rectangle); +void gdk_region_destroy (GdkRegion *region); + +void gdk_region_get_clipbox (GdkRegion *region, + GdkRectangle *rectangle); +void gdk_region_get_rectangles (GdkRegion *region, + GdkRectangle **rectangles, + gint *n_rectangles); + +gboolean gdk_region_empty (GdkRegion *region); +gboolean gdk_region_equal (GdkRegion *region1, + GdkRegion *region2); +gboolean gdk_region_point_in (GdkRegion *region, + int x, + int y); +GdkOverlapType gdk_region_rect_in (GdkRegion *region, + GdkRectangle *rectangle); + +void gdk_region_offset (GdkRegion *region, + gint dx, + gint dy); +void gdk_region_shrink (GdkRegion *region, + gint dx, + gint dy); +void gdk_region_union_with_rect (GdkRegion *region, + GdkRectangle *rect); +void gdk_region_intersect (GdkRegion *source1, + GdkRegion *source2); +void gdk_region_union (GdkRegion *source1, + GdkRegion *source2); +void gdk_region_subtract (GdkRegion *source1, + GdkRegion *source2); +void gdk_region_xor (GdkRegion *source1, + GdkRegion *source2); + +void gdk_region_spans_intersect_foreach (GdkRegion *region, + GdkSpan *spans, + int n_spans, + gboolean sorted, + GdkSpanFunc function, + gpointer data); + +G_END_DECLS + +#endif /* __GDK_REGION_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkrgb.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkrgb.h new file mode 100644 index 00000000..f0633833 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkrgb.h @@ -0,0 +1,144 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_RGB_H__ +#define __GDK_RGB_H__ + +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +typedef struct _GdkRgbCmap GdkRgbCmap; + +struct _GdkRgbCmap { + guint32 colors[256]; + gint n_colors; + + /*< private >*/ + GSList *info_list; +}; + +#ifndef GDK_DISABLE_DEPRECATED +void gdk_rgb_init (void); + +gulong gdk_rgb_xpixel_from_rgb (guint32 rgb) G_GNUC_CONST; +void gdk_rgb_gc_set_foreground (GdkGC *gc, + guint32 rgb); +void gdk_rgb_gc_set_background (GdkGC *gc, + guint32 rgb); +#define gdk_rgb_get_cmap gdk_rgb_get_colormap +#endif /* GDK_DISABLE_DEPRECATED */ + +void gdk_rgb_find_color (GdkColormap *colormap, + GdkColor *color); + +typedef enum +{ + GDK_RGB_DITHER_NONE, + GDK_RGB_DITHER_NORMAL, + GDK_RGB_DITHER_MAX +} GdkRgbDither; + +void gdk_draw_rgb_image (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + guchar *rgb_buf, + gint rowstride); +void gdk_draw_rgb_image_dithalign (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + guchar *rgb_buf, + gint rowstride, + gint xdith, + gint ydith); +void gdk_draw_rgb_32_image (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + guchar *buf, + gint rowstride); +void gdk_draw_rgb_32_image_dithalign (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + guchar *buf, + gint rowstride, + gint xdith, + gint ydith); +void gdk_draw_gray_image (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + guchar *buf, + gint rowstride); +void gdk_draw_indexed_image (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + guchar *buf, + gint rowstride, + GdkRgbCmap *cmap); +GdkRgbCmap *gdk_rgb_cmap_new (guint32 *colors, + gint n_colors); +void gdk_rgb_cmap_free (GdkRgbCmap *cmap); + +void gdk_rgb_set_verbose (gboolean verbose); + +/* experimental colormap stuff */ +void gdk_rgb_set_install (gboolean install); +void gdk_rgb_set_min_colors (gint min_colors); + +#ifndef GDK_MULTIHEAD_SAFE +GdkColormap *gdk_rgb_get_colormap (void); +GdkVisual * gdk_rgb_get_visual (void); +gboolean gdk_rgb_ditherable (void); +gboolean gdk_rgb_colormap_ditherable (GdkColormap *cmap); +#endif + +G_END_DECLS + + +#endif /* __GDK_RGB_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkscreen.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkscreen.h new file mode 100644 index 00000000..7ff92019 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkscreen.h @@ -0,0 +1,119 @@ +/* + * gdkscreen.h + * + * Copyright 2001 Sun Microsystems Inc. + * + * Erwann Chenede <erwann.chenede@sun.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GDK_SCREEN_H__ +#define __GDK_SCREEN_H__ + +#include <cairo.h> +#include "gdk/gdktypes.h" +#include "gdk/gdkdisplay.h" + +G_BEGIN_DECLS + +typedef struct _GdkScreenClass GdkScreenClass; + +#define GDK_TYPE_SCREEN (gdk_screen_get_type ()) +#define GDK_SCREEN(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_SCREEN, GdkScreen)) +#define GDK_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_SCREEN, GdkScreenClass)) +#define GDK_IS_SCREEN(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_SCREEN)) +#define GDK_IS_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_SCREEN)) +#define GDK_SCREEN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_SCREEN, GdkScreenClass)) + +struct _GdkScreen +{ + GObject parent_instance; + + guint closed : 1; + + GdkGC *normal_gcs[32]; + GdkGC *exposure_gcs[32]; + + cairo_font_options_t *font_options; + double resolution; /* pixels/points scale factor for fonts */ +}; + +struct _GdkScreenClass +{ + GObjectClass parent_class; + + void (*size_changed) (GdkScreen *screen); + void (*composited_changed) (GdkScreen *screen); +}; + +GType gdk_screen_get_type (void) G_GNUC_CONST; +GdkColormap *gdk_screen_get_default_colormap (GdkScreen *screen); +void gdk_screen_set_default_colormap (GdkScreen *screen, + GdkColormap *colormap); +GdkColormap* gdk_screen_get_system_colormap (GdkScreen *screen); +GdkVisual* gdk_screen_get_system_visual (GdkScreen *screen); +GdkColormap *gdk_screen_get_rgb_colormap (GdkScreen *screen); +GdkVisual * gdk_screen_get_rgb_visual (GdkScreen *screen); +GdkColormap *gdk_screen_get_rgba_colormap (GdkScreen *screen); +GdkVisual * gdk_screen_get_rgba_visual (GdkScreen *screen); +gboolean gdk_screen_is_composited (GdkScreen *screen); + +GdkWindow * gdk_screen_get_root_window (GdkScreen *screen); +GdkDisplay * gdk_screen_get_display (GdkScreen *screen); +gint gdk_screen_get_number (GdkScreen *screen); +gint gdk_screen_get_width (GdkScreen *screen); +gint gdk_screen_get_height (GdkScreen *screen); +gint gdk_screen_get_width_mm (GdkScreen *screen); +gint gdk_screen_get_height_mm (GdkScreen *screen); + +GList * gdk_screen_list_visuals (GdkScreen *screen); +GList * gdk_screen_get_toplevel_windows (GdkScreen *screen); +gchar * gdk_screen_make_display_name (GdkScreen *screen); + +gint gdk_screen_get_n_monitors (GdkScreen *screen); +void gdk_screen_get_monitor_geometry (GdkScreen *screen, + gint monitor_num, + GdkRectangle *dest); +gint gdk_screen_get_monitor_at_point (GdkScreen *screen, + gint x, + gint y); +gint gdk_screen_get_monitor_at_window (GdkScreen *screen, + GdkWindow *window); + +void gdk_screen_broadcast_client_message (GdkScreen *screen, + GdkEvent *event); + +GdkScreen *gdk_screen_get_default (void); + +gboolean gdk_screen_get_setting (GdkScreen *screen, + const gchar *name, + GValue *value); + +void gdk_screen_set_font_options (GdkScreen *screen, + const cairo_font_options_t *options); +const cairo_font_options_t *gdk_screen_get_font_options (GdkScreen *screen); + +void gdk_screen_set_resolution (GdkScreen *screen, + gdouble dpi); +gdouble gdk_screen_get_resolution (GdkScreen *screen); + +GdkWindow *gdk_screen_get_active_window (GdkScreen *screen); +GList *gdk_screen_get_window_stack (GdkScreen *screen); + +G_END_DECLS + +#endif /* __GDK_SCREEN_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkselection.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkselection.h new file mode 100644 index 00000000..1787c8e5 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkselection.h @@ -0,0 +1,107 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_SELECTION_H__ +#define __GDK_SELECTION_H__ + +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +/* Predefined atoms relating to selections. In general, one will need to use + * gdk_intern_atom + */ +#define GDK_SELECTION_PRIMARY _GDK_MAKE_ATOM (1) +#define GDK_SELECTION_SECONDARY _GDK_MAKE_ATOM (2) +#define GDK_SELECTION_CLIPBOARD _GDK_MAKE_ATOM (69) +#define GDK_TARGET_BITMAP _GDK_MAKE_ATOM (5) +#define GDK_TARGET_COLORMAP _GDK_MAKE_ATOM (7) +#define GDK_TARGET_DRAWABLE _GDK_MAKE_ATOM (17) +#define GDK_TARGET_PIXMAP _GDK_MAKE_ATOM (20) +#define GDK_TARGET_STRING _GDK_MAKE_ATOM (31) +#define GDK_SELECTION_TYPE_ATOM _GDK_MAKE_ATOM (4) +#define GDK_SELECTION_TYPE_BITMAP _GDK_MAKE_ATOM (5) +#define GDK_SELECTION_TYPE_COLORMAP _GDK_MAKE_ATOM (7) +#define GDK_SELECTION_TYPE_DRAWABLE _GDK_MAKE_ATOM (17) +#define GDK_SELECTION_TYPE_INTEGER _GDK_MAKE_ATOM (19) +#define GDK_SELECTION_TYPE_PIXMAP _GDK_MAKE_ATOM (20) +#define GDK_SELECTION_TYPE_WINDOW _GDK_MAKE_ATOM (33) +#define GDK_SELECTION_TYPE_STRING _GDK_MAKE_ATOM (31) + +#ifndef GDK_DISABLE_DEPRECATED + +typedef GdkAtom GdkSelection; +typedef GdkAtom GdkTarget; +typedef GdkAtom GdkSelectionType; + +#endif /* GDK_DISABLE_DEPRECATED */ + +/* Selections + */ + +#ifndef GDK_MULTIHEAD_SAFE +gboolean gdk_selection_owner_set (GdkWindow *owner, + GdkAtom selection, + guint32 time_, + gboolean send_event); +GdkWindow* gdk_selection_owner_get (GdkAtom selection); +#endif/* GDK_MULTIHEAD_SAFE */ + +gboolean gdk_selection_owner_set_for_display (GdkDisplay *display, + GdkWindow *owner, + GdkAtom selection, + guint32 time_, + gboolean send_event); +GdkWindow *gdk_selection_owner_get_for_display (GdkDisplay *display, + GdkAtom selection); + +void gdk_selection_convert (GdkWindow *requestor, + GdkAtom selection, + GdkAtom target, + guint32 time_); +gboolean gdk_selection_property_get (GdkWindow *requestor, + guchar **data, + GdkAtom *prop_type, + gint *prop_format); + +#ifndef GDK_MULTIHEAD_SAFE +void gdk_selection_send_notify (guint32 requestor, + GdkAtom selection, + GdkAtom target, + GdkAtom property, + guint32 time_); +#endif /* GDK_MULTIHEAD_SAFE */ + +void gdk_selection_send_notify_for_display (GdkDisplay *display, + guint32 requestor, + GdkAtom selection, + GdkAtom target, + GdkAtom property, + guint32 time_); + +G_END_DECLS + +#endif /* __GDK_SELECTION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkspawn.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkspawn.h new file mode 100644 index 00000000..72901010 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkspawn.h @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2003 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * Authors: Mark McLoughlin <mark@skynet.ie> + */ + +#ifndef __GDK_SPAWN_H__ +#define __GDK_SPAWN_H__ + +#include <gdk/gdkscreen.h> +#include <glib/gspawn.h> + +G_BEGIN_DECLS + +gboolean gdk_spawn_on_screen (GdkScreen *screen, + const gchar *working_directory, + gchar **argv, + gchar **envp, + GSpawnFlags flags, + GSpawnChildSetupFunc child_setup, + gpointer user_data, + gint *child_pid, + GError **error); + +gboolean gdk_spawn_on_screen_with_pipes (GdkScreen *screen, + const gchar *working_directory, + gchar **argv, + gchar **envp, + GSpawnFlags flags, + GSpawnChildSetupFunc child_setup, + gpointer user_data, + gint *child_pid, + gint *standard_input, + gint *standard_output, + gint *standard_error, + GError **error); + +gboolean gdk_spawn_command_line_on_screen (GdkScreen *screen, + const gchar *command_line, + GError **error); + +G_END_DECLS + +#endif /* __GDK_SPAWN_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdktypes.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdktypes.h new file mode 100644 index 00000000..648bb40e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdktypes.h @@ -0,0 +1,212 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_TYPES_H__ +#define __GDK_TYPES_H__ + +/* GDK uses "glib". (And so does GTK). + */ +#include <glib.h> +#include <pango/pango.h> +#include <glib-object.h> + +#ifdef G_OS_WIN32 +# ifdef GDK_COMPILATION +# define GDKVAR __declspec(dllexport) +# else +# define GDKVAR extern __declspec(dllimport) +# endif +#else +# define GDKVAR extern +#endif + +/* The system specific file gdkconfig.h contains such configuration + * settings that are needed not only when compiling GDK (or GTK) + * itself, but also occasionally when compiling programs that use GDK + * (or GTK). One such setting is what windowing API backend is in use. + */ +#include <gdkconfig.h> + +/* some common magic values */ +#define GDK_CURRENT_TIME 0L +#define GDK_PARENT_RELATIVE 1L + + + +G_BEGIN_DECLS + + +/* Type definitions for the basic structures. + */ +typedef struct _GdkPoint GdkPoint; +typedef struct _GdkRectangle GdkRectangle; +typedef struct _GdkSegment GdkSegment; +typedef struct _GdkSpan GdkSpan; + +/* + * Note that on some platforms the wchar_t type + * is not the same as GdkWChar. For instance + * on Win32, wchar_t is unsigned short. + */ +typedef guint32 GdkWChar; + +typedef struct _GdkAtom *GdkAtom; + +#define GDK_ATOM_TO_POINTER(atom) (atom) +#define GDK_POINTER_TO_ATOM(ptr) ((GdkAtom)(ptr)) + +#define _GDK_MAKE_ATOM(val) ((GdkAtom)GUINT_TO_POINTER(val)) +#define GDK_NONE _GDK_MAKE_ATOM (0) + +#ifdef GDK_NATIVE_WINDOW_POINTER +typedef gpointer GdkNativeWindow; +#else +typedef guint32 GdkNativeWindow; +#endif + +/* Forward declarations of commonly used types + */ +typedef struct _GdkColor GdkColor; +typedef struct _GdkColormap GdkColormap; +typedef struct _GdkCursor GdkCursor; +typedef struct _GdkFont GdkFont; +typedef struct _GdkGC GdkGC; +typedef struct _GdkImage GdkImage; +typedef struct _GdkRegion GdkRegion; +typedef struct _GdkVisual GdkVisual; + +typedef struct _GdkDrawable GdkDrawable; +typedef struct _GdkDrawable GdkBitmap; +typedef struct _GdkDrawable GdkPixmap; +typedef struct _GdkDrawable GdkWindow; +typedef struct _GdkDisplay GdkDisplay; +typedef struct _GdkScreen GdkScreen; + +typedef enum +{ + GDK_LSB_FIRST, + GDK_MSB_FIRST +} GdkByteOrder; + +/* Types of modifiers. + */ +typedef enum +{ + GDK_SHIFT_MASK = 1 << 0, + GDK_LOCK_MASK = 1 << 1, + GDK_CONTROL_MASK = 1 << 2, + GDK_MOD1_MASK = 1 << 3, + GDK_MOD2_MASK = 1 << 4, + GDK_MOD3_MASK = 1 << 5, + GDK_MOD4_MASK = 1 << 6, + GDK_MOD5_MASK = 1 << 7, + GDK_BUTTON1_MASK = 1 << 8, + GDK_BUTTON2_MASK = 1 << 9, + GDK_BUTTON3_MASK = 1 << 10, + GDK_BUTTON4_MASK = 1 << 11, + GDK_BUTTON5_MASK = 1 << 12, + + /* The next few modifiers are used by XKB, so we skip to the end. + * Bits 15 - 25 are currently unused. Bit 29 is used internally. + */ + + GDK_SUPER_MASK = 1 << 26, + GDK_HYPER_MASK = 1 << 27, + GDK_META_MASK = 1 << 28, + + GDK_RELEASE_MASK = 1 << 30, + + GDK_MODIFIER_MASK = 0x5c001fff +} GdkModifierType; + +typedef enum +{ + GDK_INPUT_READ = 1 << 0, + GDK_INPUT_WRITE = 1 << 1, + GDK_INPUT_EXCEPTION = 1 << 2 +} GdkInputCondition; + +typedef enum +{ + GDK_OK = 0, + GDK_ERROR = -1, + GDK_ERROR_PARAM = -2, + GDK_ERROR_FILE = -3, + GDK_ERROR_MEM = -4 +} GdkStatus; + +/* We define specific numeric values for these constants, + * since old application code may depend on them matching the X values + * We don't actually depend on the matchup ourselves. + */ +typedef enum +{ + GDK_GRAB_SUCCESS = 0, + GDK_GRAB_ALREADY_GRABBED = 1, + GDK_GRAB_INVALID_TIME = 2, + GDK_GRAB_NOT_VIEWABLE = 3, + GDK_GRAB_FROZEN = 4 +} GdkGrabStatus; + +typedef void (*GdkInputFunction) (gpointer data, + gint source, + GdkInputCondition condition); + +typedef void (*GdkDestroyNotify) (gpointer data); + +struct _GdkPoint +{ + gint x; + gint y; +}; + +struct _GdkRectangle +{ + gint x; + gint y; + gint width; + gint height; +}; + +struct _GdkSegment +{ + gint x1; + gint y1; + gint x2; + gint y2; +}; + +struct _GdkSpan +{ + gint x; + gint y; + gint width; +}; + +G_END_DECLS + + +#endif /* __GDK_TYPES_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkvisual.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkvisual.h new file mode 100644 index 00000000..e49439f4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkvisual.h @@ -0,0 +1,125 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_VISUAL_H__ +#define __GDK_VISUAL_H__ + +#include <gdk/gdktypes.h> + +G_BEGIN_DECLS + +#define GDK_TYPE_VISUAL (gdk_visual_get_type ()) +#define GDK_VISUAL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_VISUAL, GdkVisual)) +#define GDK_VISUAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_VISUAL, GdkVisualClass)) +#define GDK_IS_VISUAL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_VISUAL)) +#define GDK_IS_VISUAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_VISUAL)) +#define GDK_VISUAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_VISUAL, GdkVisualClass)) + +typedef struct _GdkVisualClass GdkVisualClass; + +/* Types of visuals. + * StaticGray: + * Grayscale: + * StaticColor: + * PseudoColor: + * TrueColor: + * DirectColor: + */ +typedef enum +{ + GDK_VISUAL_STATIC_GRAY, + GDK_VISUAL_GRAYSCALE, + GDK_VISUAL_STATIC_COLOR, + GDK_VISUAL_PSEUDO_COLOR, + GDK_VISUAL_TRUE_COLOR, + GDK_VISUAL_DIRECT_COLOR +} GdkVisualType; + +/* The visual type. + * "type" is the type of visual this is (PseudoColor, TrueColor, etc). + * "depth" is the bit depth of this visual. + * "colormap_size" is the size of a colormap for this visual. + * "bits_per_rgb" is the number of significant bits per red, green and blue. + * The red, green and blue masks, shifts and precisions refer + * to value needed to calculate pixel values in TrueColor and DirectColor + * visuals. The "mask" is the significant bits within the pixel. The + * "shift" is the number of bits left we must shift a primary for it + * to be in position (according to the "mask"). "prec" refers to how + * much precision the pixel value contains for a particular primary. + */ +struct _GdkVisual +{ + GObject parent_instance; + + GdkVisualType type; + gint depth; + GdkByteOrder byte_order; + gint colormap_size; + gint bits_per_rgb; + + guint32 red_mask; + gint red_shift; + gint red_prec; + + guint32 green_mask; + gint green_shift; + gint green_prec; + + guint32 blue_mask; + gint blue_shift; + gint blue_prec; +}; + +GType gdk_visual_get_type (void) G_GNUC_CONST; + +#ifndef GDK_MULTIHEAD_SAFE +gint gdk_visual_get_best_depth (void); +GdkVisualType gdk_visual_get_best_type (void); +GdkVisual* gdk_visual_get_system (void); +GdkVisual* gdk_visual_get_best (void); +GdkVisual* gdk_visual_get_best_with_depth (gint depth); +GdkVisual* gdk_visual_get_best_with_type (GdkVisualType visual_type); +GdkVisual* gdk_visual_get_best_with_both (gint depth, + GdkVisualType visual_type); + +void gdk_query_depths (gint **depths, + gint *count); +void gdk_query_visual_types (GdkVisualType **visual_types, + gint *count); + +GList* gdk_list_visuals (void); +#endif + +GdkScreen *gdk_visual_get_screen (GdkVisual *visual); + +#ifndef GDK_DISABLE_DEPRECATED +#define gdk_visual_ref(v) g_object_ref(v) +#define gdk_visual_unref(v) g_object_unref(v) +#endif + +G_END_DECLS + +#endif /* __GDK_VISUAL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkwindow.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkwindow.h new file mode 100644 index 00000000..3e169c43 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkwindow.h @@ -0,0 +1,657 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_WINDOW_H__ +#define __GDK_WINDOW_H__ + +#include <gdk/gdkdrawable.h> +#include <gdk/gdktypes.h> +#include <gdk/gdkevents.h> + +G_BEGIN_DECLS + +typedef struct _GdkGeometry GdkGeometry; +typedef struct _GdkWindowAttr GdkWindowAttr; +typedef struct _GdkPointerHooks GdkPointerHooks; + +/* Classes of windows. + * InputOutput: Almost every window should be of this type. Such windows + * receive events and are also displayed on screen. + * InputOnly: Used only in special circumstances when events need to be + * stolen from another window or windows. Input only windows + * have no visible output, so they are handy for placing over + * top of a group of windows in order to grab the events (or + * filter the events) from those windows. + */ +typedef enum +{ + GDK_INPUT_OUTPUT, + GDK_INPUT_ONLY +} GdkWindowClass; + +/* Types of windows. + * Root: There is only 1 root window and it is initialized + * at startup. Creating a window of type GDK_WINDOW_ROOT + * is an error. + * Toplevel: Windows which interact with the window manager. + * Child: Windows which are children of some other type of window. + * (Any other type of window). Most windows are child windows. + * Dialog: A special kind of toplevel window which interacts with + * the window manager slightly differently than a regular + * toplevel window. Dialog windows should be used for any + * transient window. + * Foreign: A window that actually belongs to another application + */ +typedef enum +{ + GDK_WINDOW_ROOT, + GDK_WINDOW_TOPLEVEL, + GDK_WINDOW_CHILD, + GDK_WINDOW_DIALOG, + GDK_WINDOW_TEMP, + GDK_WINDOW_FOREIGN +} GdkWindowType; + +/* Window attribute mask values. + * GDK_WA_TITLE: The "title" field is valid. + * GDK_WA_X: The "x" field is valid. + * GDK_WA_Y: The "y" field is valid. + * GDK_WA_CURSOR: The "cursor" field is valid. + * GDK_WA_COLORMAP: The "colormap" field is valid. + * GDK_WA_VISUAL: The "visual" field is valid. + */ +typedef enum +{ + GDK_WA_TITLE = 1 << 1, + GDK_WA_X = 1 << 2, + GDK_WA_Y = 1 << 3, + GDK_WA_CURSOR = 1 << 4, + GDK_WA_COLORMAP = 1 << 5, + GDK_WA_VISUAL = 1 << 6, + GDK_WA_WMCLASS = 1 << 7, + GDK_WA_NOREDIR = 1 << 8, + GDK_WA_TYPE_HINT = 1 << 9 +} GdkWindowAttributesType; + +/* Size restriction enumeration. + */ +typedef enum +{ + GDK_HINT_POS = 1 << 0, + GDK_HINT_MIN_SIZE = 1 << 1, + GDK_HINT_MAX_SIZE = 1 << 2, + GDK_HINT_BASE_SIZE = 1 << 3, + GDK_HINT_ASPECT = 1 << 4, + GDK_HINT_RESIZE_INC = 1 << 5, + GDK_HINT_WIN_GRAVITY = 1 << 6, + GDK_HINT_USER_POS = 1 << 7, + GDK_HINT_USER_SIZE = 1 << 8 +} GdkWindowHints; + + +/* Window type hints. + * These are hints for the window manager that indicate + * what type of function the window has. The window manager + * can use this when determining decoration and behaviour + * of the window. The hint must be set before mapping the + * window. + * + * Normal: Normal toplevel window + * Dialog: Dialog window + * Menu: Window used to implement a menu. + * Toolbar: Window used to implement toolbars. + */ +typedef enum +{ + GDK_WINDOW_TYPE_HINT_NORMAL, + GDK_WINDOW_TYPE_HINT_DIALOG, + GDK_WINDOW_TYPE_HINT_MENU, /* Torn off menu */ + GDK_WINDOW_TYPE_HINT_TOOLBAR, + GDK_WINDOW_TYPE_HINT_SPLASHSCREEN, + GDK_WINDOW_TYPE_HINT_UTILITY, + GDK_WINDOW_TYPE_HINT_DOCK, + GDK_WINDOW_TYPE_HINT_DESKTOP, + GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU, /* A drop down menu (from a menubar) */ + GDK_WINDOW_TYPE_HINT_POPUP_MENU, /* A popup menu (from right-click) */ + GDK_WINDOW_TYPE_HINT_TOOLTIP, + GDK_WINDOW_TYPE_HINT_NOTIFICATION, + GDK_WINDOW_TYPE_HINT_COMBO, + GDK_WINDOW_TYPE_HINT_DND +} GdkWindowTypeHint; + +/* The next two enumeration values current match the + * Motif constants. If this is changed, the implementation + * of gdk_window_set_decorations/gdk_window_set_functions + * will need to change as well. + */ +typedef enum +{ + GDK_DECOR_ALL = 1 << 0, + GDK_DECOR_BORDER = 1 << 1, + GDK_DECOR_RESIZEH = 1 << 2, + GDK_DECOR_TITLE = 1 << 3, + GDK_DECOR_MENU = 1 << 4, + GDK_DECOR_MINIMIZE = 1 << 5, + GDK_DECOR_MAXIMIZE = 1 << 6 +} GdkWMDecoration; + +typedef enum +{ + GDK_FUNC_ALL = 1 << 0, + GDK_FUNC_RESIZE = 1 << 1, + GDK_FUNC_MOVE = 1 << 2, + GDK_FUNC_MINIMIZE = 1 << 3, + GDK_FUNC_MAXIMIZE = 1 << 4, + GDK_FUNC_CLOSE = 1 << 5 +} GdkWMFunction; + +/* Currently, these are the same values numerically as in the + * X protocol. If you change that, gdkwindow-x11.c/gdk_window_set_geometry_hints() + * will need fixing. + */ +typedef enum +{ + GDK_GRAVITY_NORTH_WEST = 1, + GDK_GRAVITY_NORTH, + GDK_GRAVITY_NORTH_EAST, + GDK_GRAVITY_WEST, + GDK_GRAVITY_CENTER, + GDK_GRAVITY_EAST, + GDK_GRAVITY_SOUTH_WEST, + GDK_GRAVITY_SOUTH, + GDK_GRAVITY_SOUTH_EAST, + GDK_GRAVITY_STATIC +} GdkGravity; + + +typedef enum +{ + GDK_WINDOW_EDGE_NORTH_WEST, + GDK_WINDOW_EDGE_NORTH, + GDK_WINDOW_EDGE_NORTH_EAST, + GDK_WINDOW_EDGE_WEST, + GDK_WINDOW_EDGE_EAST, + GDK_WINDOW_EDGE_SOUTH_WEST, + GDK_WINDOW_EDGE_SOUTH, + GDK_WINDOW_EDGE_SOUTH_EAST +} GdkWindowEdge; + +struct _GdkWindowAttr +{ + gchar *title; + gint event_mask; + gint x, y; + gint width; + gint height; + GdkWindowClass wclass; + GdkVisual *visual; + GdkColormap *colormap; + GdkWindowType window_type; + GdkCursor *cursor; + gchar *wmclass_name; + gchar *wmclass_class; + gboolean override_redirect; + GdkWindowTypeHint type_hint; +}; + +struct _GdkGeometry +{ + gint min_width; + gint min_height; + gint max_width; + gint max_height; + gint base_width; + gint base_height; + gint width_inc; + gint height_inc; + gdouble min_aspect; + gdouble max_aspect; + GdkGravity win_gravity; +}; + +struct _GdkPointerHooks +{ + GdkWindow* (*get_pointer) (GdkWindow *window, + gint *x, + gint *y, + GdkModifierType *mask); + GdkWindow* (*window_at_pointer) (GdkScreen *screen, /* unused */ + gint *win_x, + gint *win_y); +}; + +typedef struct _GdkWindowObject GdkWindowObject; +typedef struct _GdkWindowObjectClass GdkWindowObjectClass; + +#define GDK_TYPE_WINDOW (gdk_window_object_get_type ()) +#define GDK_WINDOW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WINDOW, GdkWindow)) +#define GDK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_WINDOW, GdkWindowObjectClass)) +#define GDK_IS_WINDOW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WINDOW)) +#define GDK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WINDOW)) +#define GDK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WINDOW, GdkWindowObjectClass)) +#define GDK_WINDOW_OBJECT(object) ((GdkWindowObject *) GDK_WINDOW (object)) + +struct _GdkWindowObject +{ + GdkDrawable parent_instance; + + GdkDrawable *impl; /* window-system-specific delegate object */ + + GdkWindowObject *parent; + + gpointer user_data; + + gint x; + gint y; + + gint extension_events; + + GList *filters; + GList *children; + + GdkColor bg_color; + GdkPixmap *bg_pixmap; + + GSList *paint_stack; + + GdkRegion *update_area; + guint update_freeze_count; + + guint8 window_type; + guint8 depth; + guint8 resize_count; + + GdkWindowState state; + + guint guffaw_gravity : 1; + guint input_only : 1; + guint modal_hint : 1; + guint composited : 1; + + guint destroyed : 2; + + guint accept_focus : 1; + guint focus_on_map : 1; + guint shaped : 1; + + GdkEventMask event_mask; + + guint update_and_descendants_freeze_count; +}; + +struct _GdkWindowObjectClass +{ + GdkDrawableClass parent_class; +}; + +/* Windows + */ +GType gdk_window_object_get_type (void) G_GNUC_CONST; +GdkWindow* gdk_window_new (GdkWindow *parent, + GdkWindowAttr *attributes, + gint attributes_mask); +void gdk_window_destroy (GdkWindow *window); +GdkWindowType gdk_window_get_window_type (GdkWindow *window); +GdkWindow* gdk_window_at_pointer (gint *win_x, + gint *win_y); +void gdk_window_show (GdkWindow *window); +void gdk_window_hide (GdkWindow *window); +void gdk_window_withdraw (GdkWindow *window); +void gdk_window_show_unraised (GdkWindow *window); +void gdk_window_move (GdkWindow *window, + gint x, + gint y); +void gdk_window_resize (GdkWindow *window, + gint width, + gint height); +void gdk_window_move_resize (GdkWindow *window, + gint x, + gint y, + gint width, + gint height); +void gdk_window_reparent (GdkWindow *window, + GdkWindow *new_parent, + gint x, + gint y); +void gdk_window_clear (GdkWindow *window); +void gdk_window_clear_area (GdkWindow *window, + gint x, + gint y, + gint width, + gint height); +void gdk_window_clear_area_e (GdkWindow *window, + gint x, + gint y, + gint width, + gint height); +void gdk_window_raise (GdkWindow *window); +void gdk_window_lower (GdkWindow *window); +void gdk_window_focus (GdkWindow *window, + guint32 timestamp); +void gdk_window_set_user_data (GdkWindow *window, + gpointer user_data); +void gdk_window_set_override_redirect (GdkWindow *window, + gboolean override_redirect); +void gdk_window_set_accept_focus (GdkWindow *window, + gboolean accept_focus); +void gdk_window_set_focus_on_map (GdkWindow *window, + gboolean focus_on_map); +void gdk_window_add_filter (GdkWindow *window, + GdkFilterFunc function, + gpointer data); +void gdk_window_remove_filter (GdkWindow *window, + GdkFilterFunc function, + gpointer data); +void gdk_window_scroll (GdkWindow *window, + gint dx, + gint dy); +void gdk_window_move_region (GdkWindow *window, + GdkRegion *region, + gint dx, + gint dy); + +/* + * This allows for making shaped (partially transparent) windows + * - cool feature, needed for Drag and Drag for example. + * The shape_mask can be the mask + * from gdk_pixmap_create_from_xpm. Stefan Wille + */ +void gdk_window_shape_combine_mask (GdkWindow *window, + GdkBitmap *mask, + gint x, + gint y); +void gdk_window_shape_combine_region (GdkWindow *window, + GdkRegion *shape_region, + gint offset_x, + gint offset_y); + +/* + * This routine allows you to quickly take the shapes of all the child windows + * of a window and use their shapes as the shape mask for this window - useful + * for container windows that dont want to look like a big box + * + * - Raster + */ +void gdk_window_set_child_shapes (GdkWindow *window); + +void gdk_window_set_composited (GdkWindow *window, + gboolean composited); + +/* + * This routine allows you to merge (ie ADD) child shapes to your + * own window's shape keeping its current shape and ADDING the child + * shapes to it. + * + * - Raster + */ +void gdk_window_merge_child_shapes (GdkWindow *window); + +void gdk_window_input_shape_combine_mask (GdkWindow *window, + GdkBitmap *mask, + gint x, + gint y); +void gdk_window_input_shape_combine_region (GdkWindow *window, + GdkRegion *shape_region, + gint offset_x, + gint offset_y); +void gdk_window_set_child_input_shapes (GdkWindow *window); +void gdk_window_merge_child_input_shapes (GdkWindow *window); + + +/* + * Check if a window has been shown, and whether all its + * parents up to a toplevel have been shown, respectively. + * Note that a window that is_viewable below is not necessarily + * viewable in the X sense. + */ +gboolean gdk_window_is_visible (GdkWindow *window); +gboolean gdk_window_is_viewable (GdkWindow *window); + +GdkWindowState gdk_window_get_state (GdkWindow *window); + +/* Set static bit gravity on the parent, and static + * window gravity on all children. + */ +gboolean gdk_window_set_static_gravities (GdkWindow *window, + gboolean use_static); + +/* Functions to create/lookup windows from their native equivalents */ +#ifndef GDK_MULTIHEAD_SAFE +GdkWindow* gdk_window_foreign_new (GdkNativeWindow anid); +GdkWindow* gdk_window_lookup (GdkNativeWindow anid); +#endif +GdkWindow *gdk_window_foreign_new_for_display (GdkDisplay *display, + GdkNativeWindow anid); +GdkWindow* gdk_window_lookup_for_display (GdkDisplay *display, + GdkNativeWindow anid); + + +/* GdkWindow */ + +#ifndef GDK_DISABLE_DEPRECATED +void gdk_window_set_hints (GdkWindow *window, + gint x, + gint y, + gint min_width, + gint min_height, + gint max_width, + gint max_height, + gint flags); +#endif +void gdk_window_set_type_hint (GdkWindow *window, + GdkWindowTypeHint hint); +GdkWindowTypeHint gdk_window_get_type_hint (GdkWindow *window); + +void gdk_window_set_modal_hint (GdkWindow *window, + gboolean modal); + +void gdk_window_set_skip_taskbar_hint (GdkWindow *window, + gboolean skips_taskbar); +void gdk_window_set_skip_pager_hint (GdkWindow *window, + gboolean skips_pager); +void gdk_window_set_urgency_hint (GdkWindow *window, + gboolean urgent); + +void gdk_window_set_geometry_hints (GdkWindow *window, + GdkGeometry *geometry, + GdkWindowHints geom_mask); +void gdk_set_sm_client_id (const gchar *sm_client_id); + +void gdk_window_begin_paint_rect (GdkWindow *window, + GdkRectangle *rectangle); +void gdk_window_begin_paint_region (GdkWindow *window, + GdkRegion *region); +void gdk_window_end_paint (GdkWindow *window); + +void gdk_window_set_title (GdkWindow *window, + const gchar *title); +void gdk_window_set_role (GdkWindow *window, + const gchar *role); +void gdk_window_set_startup_id (GdkWindow *window, + const gchar *startup_id); +void gdk_window_set_transient_for (GdkWindow *window, + GdkWindow *parent); +void gdk_window_set_background (GdkWindow *window, + const GdkColor *color); +void gdk_window_set_back_pixmap (GdkWindow *window, + GdkPixmap *pixmap, + gboolean parent_relative); +void gdk_window_set_cursor (GdkWindow *window, + GdkCursor *cursor); +void gdk_window_get_user_data (GdkWindow *window, + gpointer *data); +void gdk_window_get_geometry (GdkWindow *window, + gint *x, + gint *y, + gint *width, + gint *height, + gint *depth); +void gdk_window_get_position (GdkWindow *window, + gint *x, + gint *y); +gint gdk_window_get_origin (GdkWindow *window, + gint *x, + gint *y); + +#if !defined (GDK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) +/* Used by gtk_handle_box_button_changed () */ +gboolean gdk_window_get_deskrelative_origin (GdkWindow *window, + gint *x, + gint *y); +#endif + +void gdk_window_get_root_origin (GdkWindow *window, + gint *x, + gint *y); +void gdk_window_get_frame_extents (GdkWindow *window, + GdkRectangle *rect); +GdkWindow* gdk_window_get_pointer (GdkWindow *window, + gint *x, + gint *y, + GdkModifierType *mask); +GdkWindow * gdk_window_get_parent (GdkWindow *window); +GdkWindow * gdk_window_get_toplevel (GdkWindow *window); + +GList * gdk_window_get_children (GdkWindow *window); +GList * gdk_window_peek_children (GdkWindow *window); +GdkEventMask gdk_window_get_events (GdkWindow *window); +void gdk_window_set_events (GdkWindow *window, + GdkEventMask event_mask); + +void gdk_window_set_icon_list (GdkWindow *window, + GList *pixbufs); +void gdk_window_set_icon (GdkWindow *window, + GdkWindow *icon_window, + GdkPixmap *pixmap, + GdkBitmap *mask); +void gdk_window_set_icon_name (GdkWindow *window, + const gchar *name); +void gdk_window_set_group (GdkWindow *window, + GdkWindow *leader); +GdkWindow* gdk_window_get_group (GdkWindow *window); +void gdk_window_set_decorations (GdkWindow *window, + GdkWMDecoration decorations); +gboolean gdk_window_get_decorations (GdkWindow *window, + GdkWMDecoration *decorations); +void gdk_window_set_functions (GdkWindow *window, + GdkWMFunction functions); +#ifndef GDK_MULTIHEAD_SAFE +GList * gdk_window_get_toplevels (void); +#endif + +void gdk_window_beep (GdkWindow *window); +void gdk_window_iconify (GdkWindow *window); +void gdk_window_deiconify (GdkWindow *window); +void gdk_window_stick (GdkWindow *window); +void gdk_window_unstick (GdkWindow *window); +void gdk_window_maximize (GdkWindow *window); +void gdk_window_unmaximize (GdkWindow *window); +void gdk_window_fullscreen (GdkWindow *window); +void gdk_window_unfullscreen (GdkWindow *window); +void gdk_window_set_keep_above (GdkWindow *window, + gboolean setting); +void gdk_window_set_keep_below (GdkWindow *window, + gboolean setting); +void gdk_window_set_opacity (GdkWindow *window, + gdouble opacity); +void gdk_window_register_dnd (GdkWindow *window); + +void gdk_window_begin_resize_drag (GdkWindow *window, + GdkWindowEdge edge, + gint button, + gint root_x, + gint root_y, + guint32 timestamp); +void gdk_window_begin_move_drag (GdkWindow *window, + gint button, + gint root_x, + gint root_y, + guint32 timestamp); + +/* Interface for dirty-region queueing */ +void gdk_window_invalidate_rect (GdkWindow *window, + GdkRectangle *rect, + gboolean invalidate_children); +void gdk_window_invalidate_region (GdkWindow *window, + GdkRegion *region, + gboolean invalidate_children); +void gdk_window_invalidate_maybe_recurse (GdkWindow *window, + GdkRegion *region, + gboolean (*child_func) (GdkWindow *, gpointer), + gpointer user_data); +GdkRegion *gdk_window_get_update_area (GdkWindow *window); + +void gdk_window_freeze_updates (GdkWindow *window); +void gdk_window_thaw_updates (GdkWindow *window); + +void gdk_window_freeze_toplevel_updates_libgtk_only (GdkWindow *window); +void gdk_window_thaw_toplevel_updates_libgtk_only (GdkWindow *window); + +void gdk_window_process_all_updates (void); +void gdk_window_process_updates (GdkWindow *window, + gboolean update_children); + +/* Enable/disable flicker, so you can tell if your code is inefficient. */ +void gdk_window_set_debug_updates (gboolean setting); + +void gdk_window_constrain_size (GdkGeometry *geometry, + guint flags, + gint width, + gint height, + gint *new_width, + gint *new_height); + +void gdk_window_get_internal_paint_info (GdkWindow *window, + GdkDrawable **real_drawable, + gint *x_offset, + gint *y_offset); + +void gdk_window_enable_synchronized_configure (GdkWindow *window); +void gdk_window_configure_finished (GdkWindow *window); + +#ifndef GDK_MULTIHEAD_SAFE +GdkPointerHooks *gdk_set_pointer_hooks (const GdkPointerHooks *new_hooks); +#endif /* GDK_MULTIHEAD_SAFE */ + +GdkWindow *gdk_get_default_root_window (void); + +#ifndef GDK_DISABLE_DEPRECATED +#define GDK_ROOT_PARENT() (gdk_get_default_root_window ()) +#define gdk_window_get_size gdk_drawable_get_size +#define gdk_window_get_type gdk_window_get_window_type +#define gdk_window_get_colormap gdk_drawable_get_colormap +#define gdk_window_set_colormap gdk_drawable_set_colormap +#define gdk_window_get_visual gdk_drawable_get_visual +#define gdk_window_ref gdk_drawable_ref +#define gdk_window_unref gdk_drawable_unref + +#define gdk_window_copy_area(drawable,gc,x,y,source_drawable,source_x,source_y,width,height) \ + gdk_draw_pixmap(drawable,gc,source_drawable,source_x,source_y,x,y,width,height) +#endif /* GDK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GDK_WINDOW_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkx.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkx.h new file mode 100644 index 00000000..ec850479 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gdk/gdkx.h @@ -0,0 +1,216 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GDK_X_H__ +#define __GDK_X_H__ + +#include <gdk/gdkprivate.h> +#include <gdk/gdkcursor.h> + +#include <X11/Xlib.h> +#include <X11/Xutil.h> + +G_BEGIN_DECLS + +#ifndef GDK_MULTIHEAD_SAFE +extern Display *gdk_display; +#endif + +Display *gdk_x11_drawable_get_xdisplay (GdkDrawable *drawable); +XID gdk_x11_drawable_get_xid (GdkDrawable *drawable); +Display *gdk_x11_image_get_xdisplay (GdkImage *image); +XImage *gdk_x11_image_get_ximage (GdkImage *image); +Display *gdk_x11_colormap_get_xdisplay (GdkColormap *colormap); +Colormap gdk_x11_colormap_get_xcolormap (GdkColormap *colormap); +Display *gdk_x11_cursor_get_xdisplay (GdkCursor *cursor); +Cursor gdk_x11_cursor_get_xcursor (GdkCursor *cursor); +Display *gdk_x11_display_get_xdisplay (GdkDisplay *display); +Visual * gdk_x11_visual_get_xvisual (GdkVisual *visual); +Display *gdk_x11_gc_get_xdisplay (GdkGC *gc); +GC gdk_x11_gc_get_xgc (GdkGC *gc); +Screen * gdk_x11_screen_get_xscreen (GdkScreen *screen); +int gdk_x11_screen_get_screen_number (GdkScreen *screen); +void gdk_x11_window_set_user_time (GdkWindow *window, + guint32 timestamp); +void gdk_x11_window_move_to_current_desktop (GdkWindow *window); + +const char* gdk_x11_screen_get_window_manager_name (GdkScreen *screen); + +#ifndef GDK_MULTIHEAD_SAFE +Window gdk_x11_get_default_root_xwindow (void); +Display *gdk_x11_get_default_xdisplay (void); +gint gdk_x11_get_default_screen (void); +#endif + +#define GDK_COLORMAP_XDISPLAY(cmap) (gdk_x11_colormap_get_xdisplay (cmap)) +#define GDK_COLORMAP_XCOLORMAP(cmap) (gdk_x11_colormap_get_xcolormap (cmap)) +#define GDK_CURSOR_XDISPLAY(cursor) (gdk_x11_cursor_get_xdisplay (cursor)) +#define GDK_CURSOR_XCURSOR(cursor) (gdk_x11_cursor_get_xcursor (cursor)) +#define GDK_IMAGE_XDISPLAY(image) (gdk_x11_image_get_xdisplay (image)) +#define GDK_IMAGE_XIMAGE(image) (gdk_x11_image_get_ximage (image)) + +#ifndef GDK_MULTIHEAD_SAFE +#define GDK_DISPLAY() gdk_display +#endif + +#ifdef GDK_COMPILATION + +#include "gdkprivate-x11.h" +#include "gdkscreen-x11.h" + +#define GDK_DISPLAY_XDISPLAY(display) (GDK_DISPLAY_X11(display)->xdisplay) + +#define GDK_WINDOW_XDISPLAY(win) (GDK_SCREEN_X11 (GDK_WINDOW_SCREEN (win))->xdisplay) +#define GDK_WINDOW_XID(win) (GDK_DRAWABLE_IMPL_X11(((GdkWindowObject *)win)->impl)->xid) +#define GDK_PIXMAP_XDISPLAY(pix) (GDK_SCREEN_X11 (GDK_PIXMAP_SCREEN (pix))->xdisplay) +#define GDK_PIXMAP_XID(pix) (GDK_DRAWABLE_IMPL_X11(((GdkPixmapObject *)pix)->impl)->xid) +#define GDK_DRAWABLE_XDISPLAY(win) (GDK_IS_WINDOW (win) ? GDK_WINDOW_XDISPLAY (win) : GDK_PIXMAP_XDISPLAY (win)) +#define GDK_DRAWABLE_XID(win) (GDK_IS_WINDOW (win) ? GDK_WINDOW_XID (win) : GDK_PIXMAP_XID (win)) +#define GDK_GC_XDISPLAY(gc) (GDK_SCREEN_XDISPLAY(GDK_GC_X11(gc)->screen)) +#define GDK_GC_XGC(gc) (GDK_GC_X11(gc)->xgc) +#define GDK_SCREEN_XDISPLAY(screen) (GDK_SCREEN_X11 (screen)->xdisplay) +#define GDK_SCREEN_XSCREEN(screen) (GDK_SCREEN_X11 (screen)->xscreen) +#define GDK_SCREEN_XNUMBER(screen) (GDK_SCREEN_X11 (screen)->screen_num) +#define GDK_VISUAL_XVISUAL(vis) (((GdkVisualPrivate *) vis)->xvisual) +#define GDK_GC_GET_XGC(gc) (GDK_GC_X11(gc)->dirty_mask ? _gdk_x11_gc_flush (gc) : ((GdkGCX11 *)(gc))->xgc) +#define GDK_WINDOW_XWINDOW GDK_DRAWABLE_XID + +#else /* GDK_COMPILATION */ + +#ifndef GDK_MULTIHEAD_SAFE +#define GDK_ROOT_WINDOW() (gdk_x11_get_default_root_xwindow ()) +#endif + +#define GDK_DISPLAY_XDISPLAY(display) (gdk_x11_display_get_xdisplay (display)) + +#define GDK_WINDOW_XDISPLAY(win) (gdk_x11_drawable_get_xdisplay (((GdkWindowObject *)win)->impl)) +#define GDK_WINDOW_XID(win) (gdk_x11_drawable_get_xid (win)) +#define GDK_WINDOW_XWINDOW(win) (gdk_x11_drawable_get_xid (win)) +#define GDK_PIXMAP_XDISPLAY(win) (gdk_x11_drawable_get_xdisplay (((GdkPixmapObject *)win)->impl)) +#define GDK_PIXMAP_XID(win) (gdk_x11_drawable_get_xid (win)) +#define GDK_DRAWABLE_XDISPLAY(win) (gdk_x11_drawable_get_xdisplay (win)) +#define GDK_DRAWABLE_XID(win) (gdk_x11_drawable_get_xid (win)) +#define GDK_GC_XDISPLAY(gc) (gdk_x11_gc_get_xdisplay (gc)) +#define GDK_GC_XGC(gc) (gdk_x11_gc_get_xgc (gc)) +#define GDK_SCREEN_XDISPLAY(screen) (gdk_x11_display_get_xdisplay (gdk_screen_get_display (screen))) +#define GDK_SCREEN_XSCREEN(screen) (gdk_x11_screen_get_xscreen (screen)) +#define GDK_SCREEN_XNUMBER(screen) (gdk_x11_screen_get_screen_number (screen)) +#define GDK_VISUAL_XVISUAL(visual) (gdk_x11_visual_get_xvisual (visual)) + +#endif /* GDK_COMPILATION */ + +GdkVisual* gdk_x11_screen_lookup_visual (GdkScreen *screen, + VisualID xvisualid); +#ifndef GDK_MULTIHEAD_SAFE +GdkVisual* gdkx_visual_get (VisualID xvisualid); +#endif + +#ifdef GDK_ENABLE_BROKEN +/* XXX: An X Colormap is useless unless we also have the visual. */ +GdkColormap* gdkx_colormap_get (Colormap xcolormap); +#endif + +GdkColormap *gdk_x11_colormap_foreign_new (GdkVisual *visual, + Colormap xcolormap); + + /* Return the Gdk* for a particular XID */ +gpointer gdk_xid_table_lookup_for_display (GdkDisplay *display, + XID xid); +guint32 gdk_x11_get_server_time (GdkWindow *window); +guint32 gdk_x11_display_get_user_time (GdkDisplay *display); + +G_CONST_RETURN gchar *gdk_x11_display_get_startup_notification_id (GdkDisplay *display); + +void gdk_x11_display_set_cursor_theme (GdkDisplay *display, + const gchar *theme, + const gint size); + +void gdk_x11_display_broadcast_startup_message (GdkDisplay *display, + const char *message_type, + ...) G_GNUC_NULL_TERMINATED; + +/* returns TRUE if we support the given WM spec feature */ +gboolean gdk_x11_screen_supports_net_wm_hint (GdkScreen *screen, + GdkAtom property); + +#ifndef GDK_MULTIHEAD_SAFE +gpointer gdk_xid_table_lookup (XID xid); +gboolean gdk_net_wm_supports (GdkAtom property); +void gdk_x11_grab_server (void); +void gdk_x11_ungrab_server (void); +#endif + +GdkDisplay *gdk_x11_lookup_xdisplay (Display *xdisplay); + + +/* Functions to get the X Atom equivalent to the GdkAtom */ +Atom gdk_x11_atom_to_xatom_for_display (GdkDisplay *display, + GdkAtom atom); +GdkAtom gdk_x11_xatom_to_atom_for_display (GdkDisplay *display, + Atom xatom); +Atom gdk_x11_get_xatom_by_name_for_display (GdkDisplay *display, + const gchar *atom_name); +G_CONST_RETURN gchar *gdk_x11_get_xatom_name_for_display (GdkDisplay *display, + Atom xatom); +#ifndef GDK_MULTIHEAD_SAFE +Atom gdk_x11_atom_to_xatom (GdkAtom atom); +GdkAtom gdk_x11_xatom_to_atom (Atom xatom); +Atom gdk_x11_get_xatom_by_name (const gchar *atom_name); +G_CONST_RETURN gchar *gdk_x11_get_xatom_name (Atom xatom); +#endif + +void gdk_x11_display_grab (GdkDisplay *display); +void gdk_x11_display_ungrab (GdkDisplay *display); +void gdk_x11_register_standard_event_type (GdkDisplay *display, + gint event_base, + gint n_events); + +#if !defined(GDK_DISABLE_DEPRECATED) || defined(GDK_COMPILATION) + +gpointer gdk_x11_font_get_xfont (GdkFont *font); +#define GDK_FONT_XFONT(font) (gdk_x11_font_get_xfont (font)) + +#define gdk_font_lookup_for_display(display, xid) ((GdkFont*) gdk_xid_table_lookup_for_display (display, ((xid)|XID_FONT_BIT))) + +#endif /* !GDK_DISABLE_DEPRECATED || GDK_COMPILATION */ + +#ifndef GDK_DISABLE_DEPRECATED + +Display * gdk_x11_font_get_xdisplay (GdkFont *font); +G_CONST_RETURN char *gdk_x11_font_get_name (GdkFont *font); + +#define GDK_FONT_XDISPLAY(font) (gdk_x11_font_get_xdisplay (font)) + +#ifndef GDK_MULTIHEAD_SAFE + +#define gdk_font_lookup(xid) ((GdkFont*) gdk_xid_table_lookup (xid)) + +#endif /* GDK_MULTIHEAD_SAFE */ +#endif /* GDK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GDK_X_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtk.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtk.h new file mode 100644 index 00000000..bdfaef9b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtk.h @@ -0,0 +1,212 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_H__ +#define __GTK_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkaboutdialog.h> +#include <gtk/gtkaccelgroup.h> +#include <gtk/gtkaccellabel.h> +#include <gtk/gtkaccelmap.h> +#include <gtk/gtkaccessible.h> +#include <gtk/gtkaction.h> +#include <gtk/gtkactiongroup.h> +#include <gtk/gtkadjustment.h> +#include <gtk/gtkalignment.h> +#include <gtk/gtkarrow.h> +#include <gtk/gtkaspectframe.h> +#include <gtk/gtkassistant.h> +#include <gtk/gtkbbox.h> +#include <gtk/gtkbin.h> +#include <gtk/gtkbindings.h> +#include <gtk/gtkbox.h> +#include <gtk/gtkbuildable.h> +#include <gtk/gtkbuilder.h> +#include <gtk/gtkbutton.h> +#include <gtk/gtkcalendar.h> +#include <gtk/gtkcelllayout.h> +#include <gtk/gtkcellrenderer.h> +#include <gtk/gtkcellrendereraccel.h> +#include <gtk/gtkcellrenderercombo.h> +#include <gtk/gtkcellrendererpixbuf.h> +#include <gtk/gtkcellrendererprogress.h> +#include <gtk/gtkcellrendererspin.h> +#include <gtk/gtkcellrenderertext.h> +#include <gtk/gtkcellrenderertoggle.h> +#include <gtk/gtkcellview.h> +#include <gtk/gtkcheckbutton.h> +#include <gtk/gtkcheckmenuitem.h> +#include <gtk/gtkclipboard.h> +#include <gtk/gtkclist.h> +#include <gtk/gtkcolorbutton.h> +#include <gtk/gtkcolorsel.h> +#include <gtk/gtkcolorseldialog.h> +#include <gtk/gtkcombo.h> +#include <gtk/gtkcombobox.h> +#include <gtk/gtkcomboboxentry.h> +#include <gtk/gtkcontainer.h> +#include <gtk/gtkctree.h> +#include <gtk/gtkcurve.h> +#include <gtk/gtkdialog.h> +#include <gtk/gtkdnd.h> +#include <gtk/gtkdrawingarea.h> +#include <gtk/gtkeditable.h> +#include <gtk/gtkentry.h> +#include <gtk/gtkentrycompletion.h> +#include <gtk/gtkenums.h> +#include <gtk/gtkeventbox.h> +#include <gtk/gtkexpander.h> +#include <gtk/gtkfilesel.h> +#include <gtk/gtkfixed.h> +#include <gtk/gtkfilechooserbutton.h> +#include <gtk/gtkfilechooserdialog.h> +#include <gtk/gtkfilechooserwidget.h> +#include <gtk/gtkfontbutton.h> +#include <gtk/gtkfontsel.h> +#include <gtk/gtkframe.h> +#include <gtk/gtkgamma.h> +#include <gtk/gtkgc.h> +#include <gtk/gtkhandlebox.h> +#include <gtk/gtkhbbox.h> +#include <gtk/gtkhbox.h> +#include <gtk/gtkhpaned.h> +#include <gtk/gtkhruler.h> +#include <gtk/gtkhscale.h> +#include <gtk/gtkhscrollbar.h> +#include <gtk/gtkhseparator.h> +#include <gtk/gtkiconfactory.h> +#include <gtk/gtkicontheme.h> +#include <gtk/gtkiconview.h> +#include <gtk/gtkimage.h> +#include <gtk/gtkimagemenuitem.h> +#include <gtk/gtkimcontext.h> +#include <gtk/gtkimcontextsimple.h> +#include <gtk/gtkimmulticontext.h> +#include <gtk/gtkinputdialog.h> +#include <gtk/gtkinvisible.h> +#include <gtk/gtkitem.h> +#include <gtk/gtkitemfactory.h> +#include <gtk/gtklabel.h> +#include <gtk/gtklayout.h> +#include <gtk/gtklinkbutton.h> +#include <gtk/gtklist.h> +#include <gtk/gtklistitem.h> +#include <gtk/gtkliststore.h> +#include <gtk/gtkmain.h> +#include <gtk/gtkmenu.h> +#include <gtk/gtkmenubar.h> +#include <gtk/gtkmenuitem.h> +#include <gtk/gtkmenushell.h> +#include <gtk/gtkmenutoolbutton.h> +#include <gtk/gtkmessagedialog.h> +#include <gtk/gtkmisc.h> +#include <gtk/gtkmodules.h> +#include <gtk/gtknotebook.h> +#include <gtk/gtkobject.h> +#include <gtk/gtkoldeditable.h> +#include <gtk/gtkoptionmenu.h> +#include <gtk/gtkpaned.h> +#include <gtk/gtkpixmap.h> +#include <gtk/gtkplug.h> +#include <gtk/gtkpreview.h> +#include <gtk/gtkprintoperation.h> +#include <gtk/gtkprogress.h> +#include <gtk/gtkprogressbar.h> +#include <gtk/gtkradioaction.h> +#include <gtk/gtkradiobutton.h> +#include <gtk/gtkradiomenuitem.h> +#include <gtk/gtkradiotoolbutton.h> +#include <gtk/gtkrange.h> +#include <gtk/gtkrc.h> +#include <gtk/gtkrecentaction.h> +#include <gtk/gtkrecentchooser.h> +#include <gtk/gtkrecentchooserdialog.h> +#include <gtk/gtkrecentchoosermenu.h> +#include <gtk/gtkrecentchooserwidget.h> +#include <gtk/gtkrecentfilter.h> +#include <gtk/gtkrecentmanager.h> +#include <gtk/gtkruler.h> +#include <gtk/gtkscale.h> +#include <gtk/gtkscalebutton.h> +#include <gtk/gtkscrollbar.h> +#include <gtk/gtkscrolledwindow.h> +#include <gtk/gtkselection.h> +#include <gtk/gtkseparator.h> +#include <gtk/gtkseparatormenuitem.h> +#include <gtk/gtkseparatortoolitem.h> +#include <gtk/gtksettings.h> +#include <gtk/gtksignal.h> +#include <gtk/gtksizegroup.h> +#include <gtk/gtksocket.h> +#include <gtk/gtkspinbutton.h> +#include <gtk/gtkstatusbar.h> +#include <gtk/gtkstatusicon.h> +#include <gtk/gtkstock.h> +#include <gtk/gtkstyle.h> +#include <gtk/gtktable.h> +#include <gtk/gtktearoffmenuitem.h> +#include <gtk/gtktext.h> +#include <gtk/gtktextbuffer.h> +#include <gtk/gtktextbufferrichtext.h> +#include <gtk/gtktextview.h> +#include <gtk/gtktipsquery.h> +#include <gtk/gtktoggleaction.h> +#include <gtk/gtktogglebutton.h> +#include <gtk/gtktoggletoolbutton.h> +#include <gtk/gtktoolbar.h> +#include <gtk/gtktoolbutton.h> +#include <gtk/gtktoolitem.h> +#include <gtk/gtktooltip.h> +#include <gtk/gtktooltips.h> +#include <gtk/gtktree.h> +#include <gtk/gtktreednd.h> +#include <gtk/gtktreeitem.h> +#include <gtk/gtktreemodel.h> +#include <gtk/gtktreemodelfilter.h> +#include <gtk/gtktreemodelsort.h> +#include <gtk/gtktreeselection.h> +#include <gtk/gtktreestore.h> +#include <gtk/gtktreeview.h> +#include <gtk/gtktreeviewcolumn.h> +#include <gtk/gtktypeutils.h> +#include <gtk/gtkuimanager.h> +#include <gtk/gtkvbbox.h> +#include <gtk/gtkvbox.h> +#include <gtk/gtkversion.h> +#include <gtk/gtkviewport.h> +#include <gtk/gtkvolumebutton.h> +#include <gtk/gtkvpaned.h> +#include <gtk/gtkvruler.h> +#include <gtk/gtkvscale.h> +#include <gtk/gtkvscrollbar.h> +#include <gtk/gtkvseparator.h> +#include <gtk/gtkwidget.h> +#include <gtk/gtkwindow.h> + + +#endif /* __GTK_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaboutdialog.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaboutdialog.h new file mode 100644 index 00000000..b77e658c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaboutdialog.h @@ -0,0 +1,132 @@ +/* GTK - The GIMP Toolkit + + Copyright (C) 2001 CodeFactory AB + Copyright (C) 2001 Anders Carlsson <andersca@codefactory.se> + Copyright (C) 2003, 2004 Matthias Clasen <mclasen@redhat.com> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the Gnome Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. + + Author: Anders Carlsson <andersca@codefactory.se> +*/ + +#ifndef __GTK_ABOUT_DIALOG_H__ +#define __GTK_ABOUT_DIALOG_H__ + +#include <gtk/gtkdialog.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_ABOUT_DIALOG (gtk_about_dialog_get_type ()) +#define GTK_ABOUT_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ABOUT_DIALOG, GtkAboutDialog)) +#define GTK_ABOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ABOUT_DIALOG, GtkAboutDialogClass)) +#define GTK_IS_ABOUT_DIALOG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ABOUT_DIALOG)) +#define GTK_IS_ABOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ABOUT_DIALOG)) +#define GTK_ABOUT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ABOUT_DIALOG, GtkAboutDialogClass)) + +typedef struct _GtkAboutDialog GtkAboutDialog; +typedef struct _GtkAboutDialogClass GtkAboutDialogClass; + +struct _GtkAboutDialog +{ + GtkDialog parent_instance; + + /*< private >*/ + gpointer private_data; +}; + +struct _GtkAboutDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_about_dialog_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_about_dialog_new (void); +void gtk_show_about_dialog (GtkWindow *parent, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; + +#ifndef GTK_DISABLE_DEPRECATED +G_CONST_RETURN gchar *gtk_about_dialog_get_name (GtkAboutDialog *about); +void gtk_about_dialog_set_name (GtkAboutDialog *about, + const gchar *name); +#endif /* GTK_DISABLE_DEPRECATED */ +G_CONST_RETURN gchar *gtk_about_dialog_get_program_name (GtkAboutDialog *about); +void gtk_about_dialog_set_program_name (GtkAboutDialog *about, + const gchar *name); +G_CONST_RETURN gchar *gtk_about_dialog_get_version (GtkAboutDialog *about); +void gtk_about_dialog_set_version (GtkAboutDialog *about, + const gchar *version); +G_CONST_RETURN gchar *gtk_about_dialog_get_copyright (GtkAboutDialog *about); +void gtk_about_dialog_set_copyright (GtkAboutDialog *about, + const gchar *copyright); +G_CONST_RETURN gchar *gtk_about_dialog_get_comments (GtkAboutDialog *about); +void gtk_about_dialog_set_comments (GtkAboutDialog *about, + const gchar *comments); +G_CONST_RETURN gchar *gtk_about_dialog_get_license (GtkAboutDialog *about); +void gtk_about_dialog_set_license (GtkAboutDialog *about, + const gchar *license); + +gboolean gtk_about_dialog_get_wrap_license (GtkAboutDialog *about); +void gtk_about_dialog_set_wrap_license (GtkAboutDialog *about, + gboolean wrap_license); + +G_CONST_RETURN gchar *gtk_about_dialog_get_website (GtkAboutDialog *about); +void gtk_about_dialog_set_website (GtkAboutDialog *about, + const gchar *website); +G_CONST_RETURN gchar *gtk_about_dialog_get_website_label (GtkAboutDialog *about); +void gtk_about_dialog_set_website_label (GtkAboutDialog *about, + const gchar *website_label); +G_CONST_RETURN gchar* G_CONST_RETURN * gtk_about_dialog_get_authors (GtkAboutDialog *about); +void gtk_about_dialog_set_authors (GtkAboutDialog *about, + const gchar **authors); +G_CONST_RETURN gchar* G_CONST_RETURN * gtk_about_dialog_get_documenters (GtkAboutDialog *about); +void gtk_about_dialog_set_documenters (GtkAboutDialog *about, + const gchar **documenters); +G_CONST_RETURN gchar* G_CONST_RETURN * gtk_about_dialog_get_artists (GtkAboutDialog *about); +void gtk_about_dialog_set_artists (GtkAboutDialog *about, + const gchar **artists); +G_CONST_RETURN gchar *gtk_about_dialog_get_translator_credits (GtkAboutDialog *about); +void gtk_about_dialog_set_translator_credits (GtkAboutDialog *about, + const gchar *translator_credits); +GdkPixbuf *gtk_about_dialog_get_logo (GtkAboutDialog *about); +void gtk_about_dialog_set_logo (GtkAboutDialog *about, + GdkPixbuf *logo); +G_CONST_RETURN gchar *gtk_about_dialog_get_logo_icon_name (GtkAboutDialog *about); +void gtk_about_dialog_set_logo_icon_name (GtkAboutDialog *about, + const gchar *icon_name); + +typedef void (* GtkAboutDialogActivateLinkFunc) (GtkAboutDialog *about, + const gchar *link_, + gpointer data); + +GtkAboutDialogActivateLinkFunc gtk_about_dialog_set_email_hook (GtkAboutDialogActivateLinkFunc func, + gpointer data, + GDestroyNotify destroy); +GtkAboutDialogActivateLinkFunc gtk_about_dialog_set_url_hook (GtkAboutDialogActivateLinkFunc func, + gpointer data, + GDestroyNotify destroy); + +G_END_DECLS + +#endif /* __GTK_ABOUT_DIALOG_H__ */ + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccelgroup.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccelgroup.h new file mode 100644 index 00000000..7e89ddf9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccelgroup.h @@ -0,0 +1,182 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1998, 2001 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ACCEL_GROUP_H__ +#define __GTK_ACCEL_GROUP_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkenums.h> + +G_BEGIN_DECLS + + +/* --- type macros --- */ +#define GTK_TYPE_ACCEL_GROUP (gtk_accel_group_get_type ()) +#define GTK_ACCEL_GROUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ACCEL_GROUP, GtkAccelGroup)) +#define GTK_ACCEL_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_GROUP, GtkAccelGroupClass)) +#define GTK_IS_ACCEL_GROUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ACCEL_GROUP)) +#define GTK_IS_ACCEL_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_GROUP)) +#define GTK_ACCEL_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCEL_GROUP, GtkAccelGroupClass)) + + +/* --- accel flags --- */ +typedef enum +{ + GTK_ACCEL_VISIBLE = 1 << 0, /* display in GtkAccelLabel? */ + GTK_ACCEL_LOCKED = 1 << 1, /* is it removable? */ + GTK_ACCEL_MASK = 0x07 +} GtkAccelFlags; + + +/* --- typedefs & structures --- */ +typedef struct _GtkAccelGroup GtkAccelGroup; +typedef struct _GtkAccelGroupClass GtkAccelGroupClass; +typedef struct _GtkAccelKey GtkAccelKey; +typedef struct _GtkAccelGroupEntry GtkAccelGroupEntry; +typedef gboolean (*GtkAccelGroupActivate) (GtkAccelGroup *accel_group, + GObject *acceleratable, + guint keyval, + GdkModifierType modifier); + +typedef gboolean (*GtkAccelGroupFindFunc) (GtkAccelKey *key, + GClosure *closure, + gpointer data); + +struct _GtkAccelGroup +{ + GObject parent; + guint lock_count; + GdkModifierType modifier_mask; + GSList *acceleratables; + guint n_accels; + GtkAccelGroupEntry *priv_accels; +}; + +struct _GtkAccelGroupClass +{ + GObjectClass parent_class; + + void (*accel_changed) (GtkAccelGroup *accel_group, + guint keyval, + GdkModifierType modifier, + GClosure *accel_closure); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +struct _GtkAccelKey +{ + guint accel_key; + GdkModifierType accel_mods; + guint accel_flags : 16; +}; + + +/* -- Accelerator Groups --- */ +GType gtk_accel_group_get_type (void) G_GNUC_CONST; +GtkAccelGroup* gtk_accel_group_new (void); +void gtk_accel_group_lock (GtkAccelGroup *accel_group); +void gtk_accel_group_unlock (GtkAccelGroup *accel_group); +void gtk_accel_group_connect (GtkAccelGroup *accel_group, + guint accel_key, + GdkModifierType accel_mods, + GtkAccelFlags accel_flags, + GClosure *closure); +void gtk_accel_group_connect_by_path (GtkAccelGroup *accel_group, + const gchar *accel_path, + GClosure *closure); +gboolean gtk_accel_group_disconnect (GtkAccelGroup *accel_group, + GClosure *closure); +gboolean gtk_accel_group_disconnect_key (GtkAccelGroup *accel_group, + guint accel_key, + GdkModifierType accel_mods); +gboolean gtk_accel_group_activate (GtkAccelGroup *accel_group, + GQuark accel_quark, + GObject *acceleratable, + guint accel_key, + GdkModifierType accel_mods); + + +/* --- GtkActivatable glue --- */ +void _gtk_accel_group_attach (GtkAccelGroup *accel_group, + GObject *object); +void _gtk_accel_group_detach (GtkAccelGroup *accel_group, + GObject *object); +gboolean gtk_accel_groups_activate (GObject *object, + guint accel_key, + GdkModifierType accel_mods); +GSList* gtk_accel_groups_from_object (GObject *object); +GtkAccelKey* gtk_accel_group_find (GtkAccelGroup *accel_group, + GtkAccelGroupFindFunc find_func, + gpointer data); +GtkAccelGroup* gtk_accel_group_from_accel_closure (GClosure *closure); + + +/* --- Accelerators--- */ +gboolean gtk_accelerator_valid (guint keyval, + GdkModifierType modifiers) G_GNUC_CONST; +void gtk_accelerator_parse (const gchar *accelerator, + guint *accelerator_key, + GdkModifierType *accelerator_mods); +gchar* gtk_accelerator_name (guint accelerator_key, + GdkModifierType accelerator_mods); +gchar* gtk_accelerator_get_label (guint accelerator_key, + GdkModifierType accelerator_mods); +void gtk_accelerator_set_default_mod_mask (GdkModifierType default_mod_mask); +guint gtk_accelerator_get_default_mod_mask (void); + + +/* --- internal --- */ +GtkAccelGroupEntry* gtk_accel_group_query (GtkAccelGroup *accel_group, + guint accel_key, + GdkModifierType accel_mods, + guint *n_entries); + +void _gtk_accel_group_reconnect (GtkAccelGroup *accel_group, + GQuark accel_path_quark); + +struct _GtkAccelGroupEntry +{ + GtkAccelKey key; + GClosure *closure; + GQuark accel_path_quark; +}; + + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_accel_group_ref g_object_ref +#define gtk_accel_group_unref g_object_unref +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + + +#endif /* __GTK_ACCEL_GROUP_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccellabel.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccellabel.h new file mode 100644 index 00000000..4eb842a6 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccellabel.h @@ -0,0 +1,104 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GtkAccelLabel: GtkLabel with accelerator monitoring facilities. + * Copyright (C) 1998 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ACCEL_LABEL_H__ +#define __GTK_ACCEL_LABEL_H__ + + +#include <gtk/gtklabel.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_ACCEL_LABEL (gtk_accel_label_get_type ()) +#define GTK_ACCEL_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACCEL_LABEL, GtkAccelLabel)) +#define GTK_ACCEL_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_LABEL, GtkAccelLabelClass)) +#define GTK_IS_ACCEL_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACCEL_LABEL)) +#define GTK_IS_ACCEL_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_LABEL)) +#define GTK_ACCEL_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCEL_LABEL, GtkAccelLabelClass)) + + +typedef struct _GtkAccelLabel GtkAccelLabel; +typedef struct _GtkAccelLabelClass GtkAccelLabelClass; + +struct _GtkAccelLabel +{ + GtkLabel label; + + guint gtk_reserved; + guint accel_padding; + GtkWidget *accel_widget; + GClosure *accel_closure; + GtkAccelGroup *accel_group; + gchar *accel_string; + guint16 accel_string_width; +}; + +struct _GtkAccelLabelClass +{ + GtkLabelClass parent_class; + + gchar *signal_quote1; + gchar *signal_quote2; + gchar *mod_name_shift; + gchar *mod_name_control; + gchar *mod_name_alt; + gchar *mod_separator; + gchar *accel_seperator; + guint latin1_to_char : 1; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_accel_label_accelerator_width gtk_accel_label_get_accel_width +#endif /* GTK_DISABLE_DEPRECATED */ + +GType gtk_accel_label_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_accel_label_new (const gchar *string); +GtkWidget* gtk_accel_label_get_accel_widget (GtkAccelLabel *accel_label); +guint gtk_accel_label_get_accel_width (GtkAccelLabel *accel_label); +void gtk_accel_label_set_accel_widget (GtkAccelLabel *accel_label, + GtkWidget *accel_widget); +void gtk_accel_label_set_accel_closure (GtkAccelLabel *accel_label, + GClosure *accel_closure); +gboolean gtk_accel_label_refetch (GtkAccelLabel *accel_label); + +/* private */ +gchar * _gtk_accel_label_class_get_accelerator_label (GtkAccelLabelClass *klass, + guint accelerator_key, + GdkModifierType accelerator_mods); + +G_END_DECLS + +#endif /* __GTK_ACCEL_LABEL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccelmap.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccelmap.h new file mode 100644 index 00000000..932c893a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccelmap.h @@ -0,0 +1,96 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1998, 2001 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GTK_ACCEL_MAP_H__ +#define __GTK_ACCEL_MAP_H__ + + +#include <gtk/gtkaccelgroup.h> + +G_BEGIN_DECLS + +/* --- global GtkAccelMap object --- */ +#define GTK_TYPE_ACCEL_MAP (gtk_accel_map_get_type ()) +#define GTK_ACCEL_MAP(accel_map) (G_TYPE_CHECK_INSTANCE_CAST ((accel_map), GTK_TYPE_ACCEL_MAP, GtkAccelMap)) +#define GTK_ACCEL_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_MAP, GtkAccelMapClass)) +#define GTK_IS_ACCEL_MAP(accel_map) (G_TYPE_CHECK_INSTANCE_TYPE ((accel_map), GTK_TYPE_ACCEL_MAP)) +#define GTK_IS_ACCEL_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_MAP)) +#define GTK_ACCEL_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCEL_MAP, GtkAccelMapClass)) + +typedef struct _GtkAccelMap GtkAccelMap; +typedef struct _GtkAccelMapClass GtkAccelMapClass; + +/* --- notifier --- */ +typedef void (*GtkAccelMapForeach) (gpointer data, + const gchar *accel_path, + guint accel_key, + GdkModifierType accel_mods, + gboolean changed); + + +/* --- public API --- */ + +#ifdef G_OS_WIN32 +/* Reserve old names for DLL ABI backward compatibility */ +#define gtk_accel_map_load gtk_accel_map_load_utf8 +#define gtk_accel_map_save gtk_accel_map_save_utf8 +#endif + +void gtk_accel_map_add_entry (const gchar *accel_path, + guint accel_key, + GdkModifierType accel_mods); +gboolean gtk_accel_map_lookup_entry (const gchar *accel_path, + GtkAccelKey *key); +gboolean gtk_accel_map_change_entry (const gchar *accel_path, + guint accel_key, + GdkModifierType accel_mods, + gboolean replace); +void gtk_accel_map_load (const gchar *file_name); +void gtk_accel_map_save (const gchar *file_name); +void gtk_accel_map_foreach (gpointer data, + GtkAccelMapForeach foreach_func); +void gtk_accel_map_load_fd (gint fd); +void gtk_accel_map_load_scanner (GScanner *scanner); +void gtk_accel_map_save_fd (gint fd); + +void gtk_accel_map_lock_path (const gchar *accel_path); +void gtk_accel_map_unlock_path (const gchar *accel_path); + +/* --- filter functions --- */ +void gtk_accel_map_add_filter (const gchar *filter_pattern); +void gtk_accel_map_foreach_unfiltered (gpointer data, + GtkAccelMapForeach foreach_func); + +/* --- notification --- */ +GType gtk_accel_map_get_type (void) G_GNUC_CONST; +GtkAccelMap *gtk_accel_map_get (void); + + +/* --- internal API --- */ +void _gtk_accel_map_init (void); + +void _gtk_accel_map_add_group (const gchar *accel_path, + GtkAccelGroup *accel_group); +void _gtk_accel_map_remove_group (const gchar *accel_path, + GtkAccelGroup *accel_group); +gboolean _gtk_accel_path_is_valid (const gchar *accel_path); + + +G_END_DECLS + +#endif /* __GTK_ACCEL_MAP_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccessible.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccessible.h new file mode 100644 index 00000000..ca8645be --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaccessible.h @@ -0,0 +1,74 @@ +/* GTK - The GIMP Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_ACCESSIBLE_H__ +#define __GTK_ACCESSIBLE_H__ + +#include <atk/atk.h> +#include <gtk/gtkwidget.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_ACCESSIBLE (gtk_accessible_get_type ()) +#define GTK_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACCESSIBLE, GtkAccessible)) +#define GTK_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCESSIBLE, GtkAccessibleClass)) +#define GTK_IS_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACCESSIBLE)) +#define GTK_IS_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCESSIBLE)) +#define GTK_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCESSIBLE, GtkAccessibleClass)) + +typedef struct _GtkAccessible GtkAccessible; +typedef struct _GtkAccessibleClass GtkAccessibleClass; + + /** + * This object is a thin wrapper, in the GTK+ namespace, for AtkObject + */ + +struct _GtkAccessible +{ + AtkObject parent; + + /* + * The GtkWidget whose properties and features are exported via this + * accessible instance. + */ + GtkWidget *widget; +}; + +struct _GtkAccessibleClass +{ + AtkObjectClass parent_class; + + void (*connect_widget_destroyed) (GtkAccessible *accessible); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_accessible_get_type (void) G_GNUC_CONST; + +void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible); + +G_END_DECLS + +#endif /* __GTK_ACCESSIBLE_H__ */ + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaction.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaction.h new file mode 100644 index 00000000..bb158135 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaction.h @@ -0,0 +1,135 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with the Gnome Library; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Author: James Henstridge <james@daa.com.au> + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ +#ifndef __GTK_ACTION_H__ +#define __GTK_ACTION_H__ + +#include <gtk/gtkwidget.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_ACTION (gtk_action_get_type ()) +#define GTK_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACTION, GtkAction)) +#define GTK_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACTION, GtkActionClass)) +#define GTK_IS_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACTION)) +#define GTK_IS_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACTION)) +#define GTK_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_ACTION, GtkActionClass)) + +typedef struct _GtkAction GtkAction; +typedef struct _GtkActionClass GtkActionClass; +typedef struct _GtkActionPrivate GtkActionPrivate; + +struct _GtkAction +{ + GObject object; + + /*< private >*/ + + GtkActionPrivate *private_data; +}; + +struct _GtkActionClass +{ + GObjectClass parent_class; + + /* activation signal */ + void (* activate) (GtkAction *action); + + GType menu_item_type; + GType toolbar_item_type; + + /* widget creation routines (not signals) */ + GtkWidget *(* create_menu_item) (GtkAction *action); + GtkWidget *(* create_tool_item) (GtkAction *action); + void (* connect_proxy) (GtkAction *action, + GtkWidget *proxy); + void (* disconnect_proxy) (GtkAction *action, + GtkWidget *proxy); + + GtkWidget *(* create_menu) (GtkAction *action); + + /* Padding for future expansion */ + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_action_get_type (void) G_GNUC_CONST; +GtkAction *gtk_action_new (const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *stock_id); +G_CONST_RETURN gchar* gtk_action_get_name (GtkAction *action); +gboolean gtk_action_is_sensitive (GtkAction *action); +gboolean gtk_action_get_sensitive (GtkAction *action); +void gtk_action_set_sensitive (GtkAction *action, + gboolean sensitive); +gboolean gtk_action_is_visible (GtkAction *action); +gboolean gtk_action_get_visible (GtkAction *action); +void gtk_action_set_visible (GtkAction *action, + gboolean visible); +void gtk_action_activate (GtkAction *action); +GtkWidget * gtk_action_create_icon (GtkAction *action, + GtkIconSize icon_size); +GtkWidget * gtk_action_create_menu_item (GtkAction *action); +GtkWidget * gtk_action_create_tool_item (GtkAction *action); +GtkWidget * gtk_action_create_menu (GtkAction *action); +void gtk_action_connect_proxy (GtkAction *action, + GtkWidget *proxy); +void gtk_action_disconnect_proxy (GtkAction *action, + GtkWidget *proxy); +GSList * gtk_action_get_proxies (GtkAction *action); +GtkAction * gtk_widget_get_action (GtkWidget *widget); +void gtk_action_connect_accelerator (GtkAction *action); +void gtk_action_disconnect_accelerator (GtkAction *action); +G_CONST_RETURN gchar *gtk_action_get_accel_path (GtkAction *action); +GClosure *gtk_action_get_accel_closure (GtkAction *action); + +/* protected ... for use by child actions */ +void gtk_action_block_activate_from (GtkAction *action, + GtkWidget *proxy); +void gtk_action_unblock_activate_from (GtkAction *action, + GtkWidget *proxy); +void _gtk_action_emit_activate (GtkAction *action); + +/* protected ... for use by action groups */ +void gtk_action_set_accel_path (GtkAction *action, + const gchar *accel_path); +void gtk_action_set_accel_group (GtkAction *action, + GtkAccelGroup *accel_group); +void _gtk_action_sync_sensitive (GtkAction *action); +void _gtk_action_sync_visible (GtkAction *action); +void _gtk_action_sync_menu_visible (GtkAction *action, + GtkWidget *proxy, + gboolean empty); + +G_END_DECLS + +#endif /* __GTK_ACTION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkactiongroup.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkactiongroup.h new file mode 100644 index 00000000..0f5df594 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkactiongroup.h @@ -0,0 +1,179 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with the Gnome Library; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Author: James Henstridge <james@daa.com.au> + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ +#ifndef __GTK_ACTION_GROUP_H__ +#define __GTK_ACTION_GROUP_H__ + +#include <gtk/gtkaction.h> +#include <gtk/gtkitemfactory.h> /* for GtkTranslateFunc */ + +G_BEGIN_DECLS + +#define GTK_TYPE_ACTION_GROUP (gtk_action_group_get_type ()) +#define GTK_ACTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACTION_GROUP, GtkActionGroup)) +#define GTK_ACTION_GROUP_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_ACTION_GROUP, GtkActionGroupClass)) +#define GTK_IS_ACTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACTION_GROUP)) +#define GTK_IS_ACTION_GROUP_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_ACTION_GROUP)) +#define GTK_ACTION_GROUP_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_ACTION_GROUP, GtkActionGroupClass)) + +typedef struct _GtkActionGroup GtkActionGroup; +typedef struct _GtkActionGroupPrivate GtkActionGroupPrivate; +typedef struct _GtkActionGroupClass GtkActionGroupClass; +typedef struct _GtkActionEntry GtkActionEntry; +typedef struct _GtkToggleActionEntry GtkToggleActionEntry; +typedef struct _GtkRadioActionEntry GtkRadioActionEntry; + +struct _GtkActionGroup +{ + GObject parent; + + /*< private >*/ + + GtkActionGroupPrivate *private_data; +}; + +struct _GtkActionGroupClass +{ + GObjectClass parent_class; + + GtkAction *(* get_action) (GtkActionGroup *action_group, + const gchar *action_name); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +struct _GtkActionEntry +{ + const gchar *name; + const gchar *stock_id; + const gchar *label; + const gchar *accelerator; + const gchar *tooltip; + GCallback callback; +}; + +struct _GtkToggleActionEntry +{ + const gchar *name; + const gchar *stock_id; + const gchar *label; + const gchar *accelerator; + const gchar *tooltip; + GCallback callback; + gboolean is_active; +}; + +struct _GtkRadioActionEntry +{ + const gchar *name; + const gchar *stock_id; + const gchar *label; + const gchar *accelerator; + const gchar *tooltip; + gint value; +}; + +GType gtk_action_group_get_type (void) G_GNUC_CONST; +GtkActionGroup *gtk_action_group_new (const gchar *name); +G_CONST_RETURN gchar *gtk_action_group_get_name (GtkActionGroup *action_group); +gboolean gtk_action_group_get_sensitive (GtkActionGroup *action_group); +void gtk_action_group_set_sensitive (GtkActionGroup *action_group, + gboolean sensitive); +gboolean gtk_action_group_get_visible (GtkActionGroup *action_group); +void gtk_action_group_set_visible (GtkActionGroup *action_group, + gboolean visible); +GtkAction *gtk_action_group_get_action (GtkActionGroup *action_group, + const gchar *action_name); +GList *gtk_action_group_list_actions (GtkActionGroup *action_group); +void gtk_action_group_add_action (GtkActionGroup *action_group, + GtkAction *action); +void gtk_action_group_add_action_with_accel (GtkActionGroup *action_group, + GtkAction *action, + const gchar *accelerator); +void gtk_action_group_remove_action (GtkActionGroup *action_group, + GtkAction *action); +void gtk_action_group_add_actions (GtkActionGroup *action_group, + const GtkActionEntry *entries, + guint n_entries, + gpointer user_data); +void gtk_action_group_add_toggle_actions (GtkActionGroup *action_group, + const GtkToggleActionEntry *entries, + guint n_entries, + gpointer user_data); +void gtk_action_group_add_radio_actions (GtkActionGroup *action_group, + const GtkRadioActionEntry *entries, + guint n_entries, + gint value, + GCallback on_change, + gpointer user_data); +void gtk_action_group_add_actions_full (GtkActionGroup *action_group, + const GtkActionEntry *entries, + guint n_entries, + gpointer user_data, + GDestroyNotify destroy); +void gtk_action_group_add_toggle_actions_full (GtkActionGroup *action_group, + const GtkToggleActionEntry *entries, + guint n_entries, + gpointer user_data, + GDestroyNotify destroy); +void gtk_action_group_add_radio_actions_full (GtkActionGroup *action_group, + const GtkRadioActionEntry *entries, + guint n_entries, + gint value, + GCallback on_change, + gpointer user_data, + GDestroyNotify destroy); +void gtk_action_group_set_translate_func (GtkActionGroup *action_group, + GtkTranslateFunc func, + gpointer data, + GtkDestroyNotify notify); +void gtk_action_group_set_translation_domain (GtkActionGroup *action_group, + const gchar *domain); +G_CONST_RETURN gchar *gtk_action_group_translate_string (GtkActionGroup *action_group, + const gchar *string); + +/* Protected for use by GtkAction */ +void _gtk_action_group_emit_connect_proxy (GtkActionGroup *action_group, + GtkAction *action, + GtkWidget *proxy); +void _gtk_action_group_emit_disconnect_proxy (GtkActionGroup *action_group, + GtkAction *action, + GtkWidget *proxy); +void _gtk_action_group_emit_pre_activate (GtkActionGroup *action_group, + GtkAction *action); +void _gtk_action_group_emit_post_activate (GtkActionGroup *action_group, + GtkAction *action); + +G_END_DECLS + +#endif /* __GTK_ACTION_GROUP_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkadjustment.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkadjustment.h new file mode 100644 index 00000000..1fe3e4ae --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkadjustment.h @@ -0,0 +1,92 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ADJUSTMENT_H__ +#define __GTK_ADJUSTMENT_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkobject.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_ADJUSTMENT (gtk_adjustment_get_type ()) +#define GTK_ADJUSTMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ADJUSTMENT, GtkAdjustment)) +#define GTK_ADJUSTMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ADJUSTMENT, GtkAdjustmentClass)) +#define GTK_IS_ADJUSTMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ADJUSTMENT)) +#define GTK_IS_ADJUSTMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ADJUSTMENT)) +#define GTK_ADJUSTMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ADJUSTMENT, GtkAdjustmentClass)) + + +typedef struct _GtkAdjustment GtkAdjustment; +typedef struct _GtkAdjustmentClass GtkAdjustmentClass; + +struct _GtkAdjustment +{ + GtkObject parent_instance; + + gdouble lower; + gdouble upper; + gdouble value; + gdouble step_increment; + gdouble page_increment; + gdouble page_size; +}; + +struct _GtkAdjustmentClass +{ + GtkObjectClass parent_class; + + void (* changed) (GtkAdjustment *adjustment); + void (* value_changed) (GtkAdjustment *adjustment); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_adjustment_get_type (void) G_GNUC_CONST; +GtkObject* gtk_adjustment_new (gdouble value, + gdouble lower, + gdouble upper, + gdouble step_increment, + gdouble page_increment, + gdouble page_size); +void gtk_adjustment_changed (GtkAdjustment *adjustment); +void gtk_adjustment_value_changed (GtkAdjustment *adjustment); +void gtk_adjustment_clamp_page (GtkAdjustment *adjustment, + gdouble lower, + gdouble upper); +gdouble gtk_adjustment_get_value (GtkAdjustment *adjustment); +void gtk_adjustment_set_value (GtkAdjustment *adjustment, + gdouble value); + +G_END_DECLS + +#endif /* __GTK_ADJUSTMENT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkalignment.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkalignment.h new file mode 100644 index 00000000..df39c541 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkalignment.h @@ -0,0 +1,91 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ALIGNMENT_H__ +#define __GTK_ALIGNMENT_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkbin.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_ALIGNMENT (gtk_alignment_get_type ()) +#define GTK_ALIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ALIGNMENT, GtkAlignment)) +#define GTK_ALIGNMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ALIGNMENT, GtkAlignmentClass)) +#define GTK_IS_ALIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ALIGNMENT)) +#define GTK_IS_ALIGNMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ALIGNMENT)) +#define GTK_ALIGNMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ALIGNMENT, GtkAlignmentClass)) + + +typedef struct _GtkAlignment GtkAlignment; +typedef struct _GtkAlignmentClass GtkAlignmentClass; +typedef struct _GtkAlignmentPrivate GtkAlignmentPrivate; + +struct _GtkAlignment +{ + GtkBin bin; + + gfloat xalign; + gfloat yalign; + gfloat xscale; + gfloat yscale; +}; + +struct _GtkAlignmentClass +{ + GtkBinClass parent_class; +}; + + +GType gtk_alignment_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_alignment_new (gfloat xalign, + gfloat yalign, + gfloat xscale, + gfloat yscale); +void gtk_alignment_set (GtkAlignment *alignment, + gfloat xalign, + gfloat yalign, + gfloat xscale, + gfloat yscale); + +void gtk_alignment_set_padding (GtkAlignment *alignment, + guint padding_top, + guint padding_bottom, + guint padding_left, + guint padding_right); + +void gtk_alignment_get_padding (GtkAlignment *alignment, + guint *padding_top, + guint *padding_bottom, + guint *padding_left, + guint *padding_right); + +G_END_DECLS + + +#endif /* __GTK_ALIGNMENT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkarrow.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkarrow.h new file mode 100644 index 00000000..7692b771 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkarrow.h @@ -0,0 +1,74 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ARROW_H__ +#define __GTK_ARROW_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkmisc.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_ARROW (gtk_arrow_get_type ()) +#define GTK_ARROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ARROW, GtkArrow)) +#define GTK_ARROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ARROW, GtkArrowClass)) +#define GTK_IS_ARROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ARROW)) +#define GTK_IS_ARROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ARROW)) +#define GTK_ARROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ARROW, GtkArrowClass)) + + +typedef struct _GtkArrow GtkArrow; +typedef struct _GtkArrowClass GtkArrowClass; + +struct _GtkArrow +{ + GtkMisc misc; + + gint16 arrow_type; + gint16 shadow_type; +}; + +struct _GtkArrowClass +{ + GtkMiscClass parent_class; +}; + + +GType gtk_arrow_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_arrow_new (GtkArrowType arrow_type, + GtkShadowType shadow_type); +void gtk_arrow_set (GtkArrow *arrow, + GtkArrowType arrow_type, + GtkShadowType shadow_type); + + +G_END_DECLS + + +#endif /* __GTK_ARROW_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaspectframe.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaspectframe.h new file mode 100644 index 00000000..e85888c6 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkaspectframe.h @@ -0,0 +1,80 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ASPECT_FRAME_H__ +#define __GTK_ASPECT_FRAME_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkframe.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_ASPECT_FRAME (gtk_aspect_frame_get_type ()) +#define GTK_ASPECT_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ASPECT_FRAME, GtkAspectFrame)) +#define GTK_ASPECT_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ASPECT_FRAME, GtkAspectFrameClass)) +#define GTK_IS_ASPECT_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ASPECT_FRAME)) +#define GTK_IS_ASPECT_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ASPECT_FRAME)) +#define GTK_ASPECT_FRAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ASPECT_FRAME, GtkAspectFrameClass)) + + +typedef struct _GtkAspectFrame GtkAspectFrame; +typedef struct _GtkAspectFrameClass GtkAspectFrameClass; + +struct _GtkAspectFrame +{ + GtkFrame frame; + + gfloat xalign; + gfloat yalign; + gfloat ratio; + gboolean obey_child; + + GtkAllocation center_allocation; +}; + +struct _GtkAspectFrameClass +{ + GtkFrameClass parent_class; +}; + + +GType gtk_aspect_frame_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_aspect_frame_new (const gchar *label, + gfloat xalign, + gfloat yalign, + gfloat ratio, + gboolean obey_child); +void gtk_aspect_frame_set (GtkAspectFrame *aspect_frame, + gfloat xalign, + gfloat yalign, + gfloat ratio, + gboolean obey_child); + + +G_END_DECLS + +#endif /* __GTK_ASPECT_FRAME_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkassistant.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkassistant.h new file mode 100644 index 00000000..cadffd0d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkassistant.h @@ -0,0 +1,141 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1999 Red Hat, Inc. + * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org> + * Copyright (C) 2003 Matthias Clasen <mclasen@redhat.com> + * Copyright (C) 2005 Carlos Garnacho Parro <carlosg@gnome.org> + * + * All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_ASSISTANT_H__ +#define __GTK_ASSISTANT_H__ + +#include <gtk/gtkwidget.h> +#include <gtk/gtkwindow.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_ASSISTANT (gtk_assistant_get_type ()) +#define GTK_ASSISTANT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_ASSISTANT, GtkAssistant)) +#define GTK_ASSISTANT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_ASSISTANT, GtkAssistantClass)) +#define GTK_IS_ASSISTANT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_ASSISTANT)) +#define GTK_IS_ASSISTANT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_ASSISTANT)) +#define GTK_ASSISTANT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_ASSISTANT, GtkAssistantClass)) + +typedef enum +{ + GTK_ASSISTANT_PAGE_CONTENT, + GTK_ASSISTANT_PAGE_INTRO, + GTK_ASSISTANT_PAGE_CONFIRM, + GTK_ASSISTANT_PAGE_SUMMARY, + GTK_ASSISTANT_PAGE_PROGRESS +} GtkAssistantPageType; + +typedef struct _GtkAssistant GtkAssistant; +typedef struct _GtkAssistantPrivate GtkAssistantPrivate; +typedef struct _GtkAssistantClass GtkAssistantClass; + +struct _GtkAssistant +{ + GtkWindow parent; + + GtkWidget *cancel; + GtkWidget *forward; + GtkWidget *back; + GtkWidget *apply; + GtkWidget *close; + GtkWidget *last; + + /*< private >*/ + GtkAssistantPrivate *priv; +}; + +struct _GtkAssistantClass +{ + GtkWindowClass parent_class; + + void (* prepare) (GtkAssistant *assistant, GtkWidget *page); + void (* apply) (GtkAssistant *assistant); + void (* close) (GtkAssistant *assistant); + void (* cancel) (GtkAssistant *assistant); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); +}; + +typedef gint (*GtkAssistantPageFunc) (gint current_page, gpointer data); + +GType gtk_assistant_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_assistant_new (void); +gint gtk_assistant_get_current_page (GtkAssistant *assistant); +void gtk_assistant_set_current_page (GtkAssistant *assistant, + gint page_num); +gint gtk_assistant_get_n_pages (GtkAssistant *assistant); +GtkWidget *gtk_assistant_get_nth_page (GtkAssistant *assistant, + gint page_num); +gint gtk_assistant_prepend_page (GtkAssistant *assistant, + GtkWidget *page); +gint gtk_assistant_append_page (GtkAssistant *assistant, + GtkWidget *page); +gint gtk_assistant_insert_page (GtkAssistant *assistant, + GtkWidget *page, + gint position); +void gtk_assistant_set_forward_page_func (GtkAssistant *assistant, + GtkAssistantPageFunc page_func, + gpointer data, + GDestroyNotify destroy); +void gtk_assistant_set_page_type (GtkAssistant *assistant, + GtkWidget *page, + GtkAssistantPageType type); +GtkAssistantPageType gtk_assistant_get_page_type (GtkAssistant *assistant, + GtkWidget *page); +void gtk_assistant_set_page_title (GtkAssistant *assistant, + GtkWidget *page, + const gchar *title); +G_CONST_RETURN gchar *gtk_assistant_get_page_title (GtkAssistant *assistant, + GtkWidget *page); +void gtk_assistant_set_page_header_image (GtkAssistant *assistant, + GtkWidget *page, + GdkPixbuf *pixbuf); +GdkPixbuf *gtk_assistant_get_page_header_image (GtkAssistant *assistant, + GtkWidget *page); +void gtk_assistant_set_page_side_image (GtkAssistant *assistant, + GtkWidget *page, + GdkPixbuf *pixbuf); +GdkPixbuf *gtk_assistant_get_page_side_image (GtkAssistant *assistant, + GtkWidget *page); +void gtk_assistant_set_page_complete (GtkAssistant *assistant, + GtkWidget *page, + gboolean complete); +gboolean gtk_assistant_get_page_complete (GtkAssistant *assistant, + GtkWidget *page); +void gtk_assistant_add_action_widget (GtkAssistant *assistant, + GtkWidget *child); +void gtk_assistant_remove_action_widget (GtkAssistant *assistant, + GtkWidget *child); + +void gtk_assistant_update_buttons_state (GtkAssistant *assistant); + +G_END_DECLS + +#endif /* __GTK_ASSISTANT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbbox.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbbox.h new file mode 100644 index 00000000..1f69197f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbbox.h @@ -0,0 +1,103 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_BUTTON_BOX_H__ +#define __GTK_BUTTON_BOX_H__ + +#include <gtk/gtkbox.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_BUTTON_BOX (gtk_button_box_get_type ()) +#define GTK_BUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUTTON_BOX, GtkButtonBox)) +#define GTK_BUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BUTTON_BOX, GtkButtonBoxClass)) +#define GTK_IS_BUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUTTON_BOX)) +#define GTK_IS_BUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUTTON_BOX)) +#define GTK_BUTTON_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BUTTON_BOX, GtkButtonBoxClass)) + + +#define GTK_BUTTONBOX_DEFAULT -1 + +typedef struct _GtkButtonBox GtkButtonBox; +typedef struct _GtkButtonBoxClass GtkButtonBoxClass; + +struct _GtkButtonBox +{ + GtkBox box; + gint child_min_width; + gint child_min_height; + gint child_ipad_x; + gint child_ipad_y; + GtkButtonBoxStyle layout_style; +}; + +struct _GtkButtonBoxClass +{ + GtkBoxClass parent_class; +}; + + +GType gtk_button_box_get_type (void) G_GNUC_CONST; + +GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget); +void gtk_button_box_set_layout (GtkButtonBox *widget, + GtkButtonBoxStyle layout_style); +gboolean gtk_button_box_get_child_secondary (GtkButtonBox *widget, + GtkWidget *child); +void gtk_button_box_set_child_secondary (GtkButtonBox *widget, + GtkWidget *child, + gboolean is_secondary); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_button_box_set_spacing(b,s) gtk_box_set_spacing (GTK_BOX (b), s) +#define gtk_button_box_get_spacing(b) gtk_box_get_spacing (GTK_BOX (b)) + +void gtk_button_box_set_child_size (GtkButtonBox *widget, + gint min_width, + gint min_height); +void gtk_button_box_set_child_ipadding (GtkButtonBox *widget, + gint ipad_x, + gint ipad_y); +void gtk_button_box_get_child_size (GtkButtonBox *widget, + gint *min_width, + gint *min_height); +void gtk_button_box_get_child_ipadding (GtkButtonBox *widget, + gint *ipad_x, + gint *ipad_y); +#endif + +/* Internal method - do not use. */ +void _gtk_button_box_child_requisition (GtkWidget *widget, + int *nvis_children, + int *nvis_secondaries, + int *width, + int *height); +G_END_DECLS + +#endif /* __GTK_BUTTON_BOX_H__ */ + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbin.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbin.h new file mode 100644 index 00000000..c919c1d9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbin.h @@ -0,0 +1,67 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_BIN_H__ +#define __GTK_BIN_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkcontainer.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_BIN (gtk_bin_get_type ()) +#define GTK_BIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BIN, GtkBin)) +#define GTK_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BIN, GtkBinClass)) +#define GTK_IS_BIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BIN)) +#define GTK_IS_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BIN)) +#define GTK_BIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BIN, GtkBinClass)) + + +typedef struct _GtkBin GtkBin; +typedef struct _GtkBinClass GtkBinClass; + +struct _GtkBin +{ + GtkContainer container; + + GtkWidget *child; +}; + +struct _GtkBinClass +{ + GtkContainerClass parent_class; +}; + + +GType gtk_bin_get_type (void) G_GNUC_CONST; + +GtkWidget *gtk_bin_get_child (GtkBin *bin); + +G_END_DECLS + +#endif /* __GTK_BIN_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbindings.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbindings.h new file mode 100644 index 00000000..a3109b29 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbindings.h @@ -0,0 +1,170 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GtkBindingSet: Keybinding manager for GtkObjects. + * Copyright (C) 1998 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_BINDINGS_H__ +#define __GTK_BINDINGS_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkobject.h> +#include <gtk/gtkenums.h> + + +G_BEGIN_DECLS + + +/* Binding sets + */ + +typedef struct _GtkBindingSet GtkBindingSet; +typedef struct _GtkBindingEntry GtkBindingEntry; +typedef struct _GtkBindingSignal GtkBindingSignal; +typedef struct _GtkBindingArg GtkBindingArg; + +struct _GtkBindingSet +{ + gchar *set_name; + gint priority; + GSList *widget_path_pspecs; + GSList *widget_class_pspecs; + GSList *class_branch_pspecs; + GtkBindingEntry *entries; + GtkBindingEntry *current; + guint parsed : 1; /* From RC content */ +}; + +struct _GtkBindingEntry +{ + /* key portion + */ + guint keyval; + GdkModifierType modifiers; + + GtkBindingSet *binding_set; + guint destroyed : 1; + guint in_emission : 1; + guint marks_unbound : 1; + GtkBindingEntry *set_next; + GtkBindingEntry *hash_next; + GtkBindingSignal *signals; +}; + +struct _GtkBindingArg +{ + GType arg_type; + union { + glong long_data; + gdouble double_data; + gchar *string_data; + } d; +}; + +struct _GtkBindingSignal +{ + GtkBindingSignal *next; + gchar *signal_name; + guint n_args; + GtkBindingArg *args; +}; + +/* Application-level methods */ + +GtkBindingSet* gtk_binding_set_new (const gchar *set_name); +GtkBindingSet* gtk_binding_set_by_class(gpointer object_class); +GtkBindingSet* gtk_binding_set_find (const gchar *set_name); +gboolean gtk_bindings_activate (GtkObject *object, + guint keyval, + GdkModifierType modifiers); +gboolean gtk_bindings_activate_event (GtkObject *object, + GdkEventKey *event); +gboolean gtk_binding_set_activate (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers, + GtkObject *object); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_binding_entry_add gtk_binding_entry_clear +void gtk_binding_entry_clear (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers); +void gtk_binding_entry_add_signall (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers, + const gchar *signal_name, + GSList *binding_args); +guint gtk_binding_parse_binding (GScanner *scanner); +#endif /* GTK_DISABLE_DEPRECATED */ + +void gtk_binding_entry_skip (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers); +void gtk_binding_entry_add_signal (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers, + const gchar *signal_name, + guint n_args, + ...); +void gtk_binding_entry_remove (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers); + +void gtk_binding_set_add_path (GtkBindingSet *binding_set, + GtkPathType path_type, + const gchar *path_pattern, + GtkPathPriorityType priority); + + +/* Non-public methods */ + +guint _gtk_binding_parse_binding (GScanner *scanner); +void _gtk_binding_reset_parsed (void); +void _gtk_binding_entry_add_signall (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers, + const gchar *signal_name, + GSList *binding_args); + +/* Creates a signal with a fixed callback instead of a class offset; + * useful for key binding signals + */ +guint _gtk_binding_signal_new (const gchar *signal_name, + GType itype, + GSignalFlags signal_flags, + GCallback handler, + GSignalAccumulator accumulator, + gpointer accu_data, + GSignalCMarshaller c_marshaller, + GType return_type, + guint n_params, + ...); + +G_END_DECLS + + +#endif /* __GTK_BINDINGS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbox.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbox.h new file mode 100644 index 00000000..b4fec749 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbox.h @@ -0,0 +1,117 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_BOX_H__ +#define __GTK_BOX_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkcontainer.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_BOX (gtk_box_get_type ()) +#define GTK_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox)) +#define GTK_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BOX, GtkBoxClass)) +#define GTK_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BOX)) +#define GTK_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BOX)) +#define GTK_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BOX, GtkBoxClass)) + + +typedef struct _GtkBox GtkBox; +typedef struct _GtkBoxClass GtkBoxClass; +typedef struct _GtkBoxChild GtkBoxChild; + +struct _GtkBox +{ + GtkContainer container; + + /*< public >*/ + GList *children; + gint16 spacing; + guint homogeneous : 1; +}; + +struct _GtkBoxClass +{ + GtkContainerClass parent_class; +}; + +struct _GtkBoxChild +{ + GtkWidget *widget; + guint16 padding; + guint expand : 1; + guint fill : 1; + guint pack : 1; + guint is_secondary : 1; +}; + + +GType gtk_box_get_type (void) G_GNUC_CONST; +void gtk_box_pack_start (GtkBox *box, + GtkWidget *child, + gboolean expand, + gboolean fill, + guint padding); +void gtk_box_pack_end (GtkBox *box, + GtkWidget *child, + gboolean expand, + gboolean fill, + guint padding); +void gtk_box_pack_start_defaults (GtkBox *box, + GtkWidget *widget); +void gtk_box_pack_end_defaults (GtkBox *box, + GtkWidget *widget); +void gtk_box_set_homogeneous (GtkBox *box, + gboolean homogeneous); +gboolean gtk_box_get_homogeneous (GtkBox *box); +void gtk_box_set_spacing (GtkBox *box, + gint spacing); +gint gtk_box_get_spacing (GtkBox *box); +void gtk_box_reorder_child (GtkBox *box, + GtkWidget *child, + gint position); +void gtk_box_query_child_packing (GtkBox *box, + GtkWidget *child, + gboolean *expand, + gboolean *fill, + guint *padding, + GtkPackType *pack_type); +void gtk_box_set_child_packing (GtkBox *box, + GtkWidget *child, + gboolean expand, + gboolean fill, + guint padding, + GtkPackType pack_type); + + +G_END_DECLS + + +#endif /* __GTK_BOX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbuildable.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbuildable.h new file mode 100644 index 00000000..ee18fe8d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbuildable.h @@ -0,0 +1,123 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2006-2007 Async Open Source, + * Johan Dahlin <jdahlin@async.com.br> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_BUILDABLE_H__ +#define __GTK_BUILDABLE_H__ + +#include <glib.h> +#include <gtk/gtkbuilder.h> +#include <gtk/gtktypeutils.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_BUILDABLE (gtk_buildable_get_type ()) +#define GTK_BUILDABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUILDABLE, GtkBuildable)) +#define GTK_BUILDABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_BUILDABLE, GtkBuildableIface)) +#define GTK_IS_BUILDABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUILDABLE)) +#define GTK_BUILDABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_BUILDABLE, GtkBuildableIface)) + +typedef struct _GtkBuildable GtkBuildable; /* Dummy typedef */ +typedef struct _GtkBuildableIface GtkBuildableIface; + +struct _GtkBuildableIface +{ + GTypeInterface g_iface; + + /* virtual table */ + void (* set_name) (GtkBuildable *buildable, + const gchar *name); + const gchar * (* get_name) (GtkBuildable *buildable); + void (* add_child) (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *type); + void (* set_buildable_property) (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *name, + const GValue *value); + GObject * (* construct_child) (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *name); + gboolean (* custom_tag_start) (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + GMarkupParser *parser, + gpointer *data); + void (* custom_tag_end) (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + gpointer *data); + void (* custom_finished) (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + gpointer data); + void (* parser_finished) (GtkBuildable *buildable, + GtkBuilder *builder); + + GObject * (* get_internal_child) (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *childname); +}; + + +GType gtk_buildable_get_type (void) G_GNUC_CONST; + +void gtk_buildable_set_name (GtkBuildable *buildable, + const gchar *name); +const gchar * gtk_buildable_get_name (GtkBuildable *buildable); +void gtk_buildable_add_child (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *type); +void gtk_buildable_set_buildable_property (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *name, + const GValue *value); +GObject * gtk_buildable_construct_child (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *name); +gboolean gtk_buildable_custom_tag_start (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + GMarkupParser *parser, + gpointer *data); +void gtk_buildable_custom_tag_end (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + gpointer *data); +void gtk_buildable_custom_finished (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + gpointer data); +void gtk_buildable_parser_finished (GtkBuildable *buildable, + GtkBuilder *builder); +GObject * gtk_buildable_get_internal_child (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *childname); + +G_END_DECLS + +#endif /* __GTK_BUILDABLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbuilder.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbuilder.h new file mode 100644 index 00000000..732acaa1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbuilder.h @@ -0,0 +1,126 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2006-2007 Async Open Source, + * Johan Dahlin <jdahlin@async.com.br> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GTK_BUILDER_H__ +#define __GTK_BUILDER_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_BUILDER (gtk_builder_get_type ()) +#define GTK_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUILDER, GtkBuilder)) +#define GTK_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BUILDER, GtkBuilderClass)) +#define GTK_IS_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUILDER)) +#define GTK_IS_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUILDER)) +#define GTK_BUILDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BUILDER, GtkBuilderClass)) + +#define GTK_BUILDER_ERROR (gtk_builder_error_quark ()) + +typedef struct _GtkBuilder GtkBuilder; +typedef struct _GtkBuilderClass GtkBuilderClass; +typedef struct _GtkBuilderPrivate GtkBuilderPrivate; + +typedef enum +{ + GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION, + GTK_BUILDER_ERROR_UNHANDLED_TAG, + GTK_BUILDER_ERROR_MISSING_ATTRIBUTE, + GTK_BUILDER_ERROR_INVALID_ATTRIBUTE, + GTK_BUILDER_ERROR_INVALID_TAG, + GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE, + GTK_BUILDER_ERROR_INVALID_VALUE +} GtkBuilderError; + +GQuark gtk_builder_error_quark (void); + +struct _GtkBuilder +{ + GObject parent_instance; + + GtkBuilderPrivate *priv; +}; + +struct _GtkBuilderClass +{ + GObjectClass parent_class; + + GType (* get_type_from_name) (GtkBuilder *builder, + const char *type_name); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +typedef void (*GtkBuilderConnectFunc) (GtkBuilder *builder, + GObject *object, + const gchar *signal_name, + const gchar *handler_name, + GObject *connect_object, + GConnectFlags flags, + gpointer user_data); + +GType gtk_builder_get_type (void) G_GNUC_CONST; +GtkBuilder* gtk_builder_new (void); + +guint gtk_builder_add_from_file (GtkBuilder *builder, + const gchar *filename, + GError **error); +guint gtk_builder_add_from_string (GtkBuilder *builder, + const gchar *buffer, + gsize length, + GError **error); +GObject* gtk_builder_get_object (GtkBuilder *builder, + const gchar *name); +GSList* gtk_builder_get_objects (GtkBuilder *builder); +void gtk_builder_connect_signals (GtkBuilder *builder, + gpointer user_data); +void gtk_builder_connect_signals_full (GtkBuilder *builder, + GtkBuilderConnectFunc func, + gpointer user_data); +void gtk_builder_set_translation_domain (GtkBuilder *builder, + const gchar *domain); +const gchar* gtk_builder_get_translation_domain (GtkBuilder *builder); +GType gtk_builder_get_type_from_name (GtkBuilder *builder, + const char *type_name); + +gboolean gtk_builder_value_from_string (GtkBuilder *builder, + GParamSpec *pspec, + const gchar *string, + GValue *value, + GError **error); +gboolean gtk_builder_value_from_string_type (GtkBuilder *builder, + GType type, + const gchar *string, + GValue *value, + GError **error); + +#define GTK_BUILDER_WARN_INVALID_CHILD_TYPE(object, type) \ + g_warning ("'%s' is not a valid child type of '%s'", type, g_type_name (G_OBJECT_TYPE (type))) + +G_END_DECLS + +#endif /* __GTK_BUILDER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbutton.h new file mode 100644 index 00000000..c9fe63bc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkbutton.h @@ -0,0 +1,139 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_BUTTON_H__ +#define __GTK_BUTTON_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkbin.h> +#include <gtk/gtkenums.h> +#include <gtk/gtkimage.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_BUTTON (gtk_button_get_type ()) +#define GTK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUTTON, GtkButton)) +#define GTK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BUTTON, GtkButtonClass)) +#define GTK_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUTTON)) +#define GTK_IS_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUTTON)) +#define GTK_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BUTTON, GtkButtonClass)) + +typedef struct _GtkButton GtkButton; +typedef struct _GtkButtonClass GtkButtonClass; + +struct _GtkButton +{ + GtkBin bin; + + GdkWindow *event_window; + + gchar *label_text; + + guint activate_timeout; + + guint constructed : 1; + guint in_button : 1; + guint button_down : 1; + guint relief : 2; + guint use_underline : 1; + guint use_stock : 1; + guint depressed : 1; + guint depress_on_activate : 1; + guint focus_on_click : 1; +}; + +struct _GtkButtonClass +{ + GtkBinClass parent_class; + + void (* pressed) (GtkButton *button); + void (* released) (GtkButton *button); + void (* clicked) (GtkButton *button); + void (* enter) (GtkButton *button); + void (* leave) (GtkButton *button); + void (* activate) (GtkButton *button); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_button_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_button_new (void); +GtkWidget* gtk_button_new_with_label (const gchar *label); +GtkWidget* gtk_button_new_from_stock (const gchar *stock_id); +GtkWidget* gtk_button_new_with_mnemonic (const gchar *label); +void gtk_button_pressed (GtkButton *button); +void gtk_button_released (GtkButton *button); +void gtk_button_clicked (GtkButton *button); +void gtk_button_enter (GtkButton *button); +void gtk_button_leave (GtkButton *button); + +void gtk_button_set_relief (GtkButton *button, + GtkReliefStyle newstyle); +GtkReliefStyle gtk_button_get_relief (GtkButton *button); +void gtk_button_set_label (GtkButton *button, + const gchar *label); +G_CONST_RETURN gchar *gtk_button_get_label (GtkButton *button); +void gtk_button_set_use_underline (GtkButton *button, + gboolean use_underline); +gboolean gtk_button_get_use_underline (GtkButton *button); +void gtk_button_set_use_stock (GtkButton *button, + gboolean use_stock); +gboolean gtk_button_get_use_stock (GtkButton *button); +void gtk_button_set_focus_on_click (GtkButton *button, + gboolean focus_on_click); +gboolean gtk_button_get_focus_on_click (GtkButton *button); +void gtk_button_set_alignment (GtkButton *button, + gfloat xalign, + gfloat yalign); +void gtk_button_get_alignment (GtkButton *button, + gfloat *xalign, + gfloat *yalign); +void gtk_button_set_image (GtkButton *button, + GtkWidget *image); +GtkWidget* gtk_button_get_image (GtkButton *button); +void gtk_button_set_image_position (GtkButton *button, + GtkPositionType position); +GtkPositionType gtk_button_get_image_position (GtkButton *button); + +void _gtk_button_set_depressed (GtkButton *button, + gboolean depressed); +void _gtk_button_paint (GtkButton *button, + GdkRectangle *area, + GtkStateType state_type, + GtkShadowType shadow_type, + const gchar *main_detail, + const gchar *default_detail); + +G_END_DECLS + +#endif /* __GTK_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcalendar.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcalendar.h new file mode 100644 index 00000000..3115e0ee --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcalendar.h @@ -0,0 +1,153 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GTK Calendar Widget + * Copyright (C) 1998 Cesar Miquel and Shawn T. Amundson + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_CALENDAR_H__ +#define __GTK_CALENDAR_H__ + +#include <gdk/gdk.h> +#include <gtk/gtkwidget.h> + +/* Not needed, retained for compatibility -Yosh */ +#include <gtk/gtksignal.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_CALENDAR (gtk_calendar_get_type ()) +#define GTK_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CALENDAR, GtkCalendar)) +#define GTK_CALENDAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CALENDAR, GtkCalendarClass)) +#define GTK_IS_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CALENDAR)) +#define GTK_IS_CALENDAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CALENDAR)) +#define GTK_CALENDAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CALENDAR, GtkCalendarClass)) + + +typedef struct _GtkCalendar GtkCalendar; +typedef struct _GtkCalendarClass GtkCalendarClass; + +typedef struct _GtkCalendarPrivate GtkCalendarPrivate; + +typedef enum +{ + GTK_CALENDAR_SHOW_HEADING = 1 << 0, + GTK_CALENDAR_SHOW_DAY_NAMES = 1 << 1, + GTK_CALENDAR_NO_MONTH_CHANGE = 1 << 2, + GTK_CALENDAR_SHOW_WEEK_NUMBERS = 1 << 3, + GTK_CALENDAR_WEEK_START_MONDAY = 1 << 4 +} GtkCalendarDisplayOptions; + +struct _GtkCalendar +{ + GtkWidget widget; + + GtkStyle *header_style; + GtkStyle *label_style; + + gint month; + gint year; + gint selected_day; + + gint day_month[6][7]; + gint day[6][7]; + + gint num_marked_dates; + gint marked_date[31]; + GtkCalendarDisplayOptions display_flags; + GdkColor marked_date_color[31]; + + GdkGC *gc; /* unused */ + GdkGC *xor_gc; /* unused */ + + gint focus_row; + gint focus_col; + + gint highlight_row; + gint highlight_col; + + GtkCalendarPrivate *priv; + gchar grow_space [32]; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +struct _GtkCalendarClass +{ + GtkWidgetClass parent_class; + + /* Signal handlers */ + void (* month_changed) (GtkCalendar *calendar); + void (* day_selected) (GtkCalendar *calendar); + void (* day_selected_double_click) (GtkCalendar *calendar); + void (* prev_month) (GtkCalendar *calendar); + void (* next_month) (GtkCalendar *calendar); + void (* prev_year) (GtkCalendar *calendar); + void (* next_year) (GtkCalendar *calendar); + +}; + + +GType gtk_calendar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_calendar_new (void); + +gboolean gtk_calendar_select_month (GtkCalendar *calendar, + guint month, + guint year); +void gtk_calendar_select_day (GtkCalendar *calendar, + guint day); + +gboolean gtk_calendar_mark_day (GtkCalendar *calendar, + guint day); +gboolean gtk_calendar_unmark_day (GtkCalendar *calendar, + guint day); +void gtk_calendar_clear_marks (GtkCalendar *calendar); + + +void gtk_calendar_set_display_options (GtkCalendar *calendar, + GtkCalendarDisplayOptions flags); +GtkCalendarDisplayOptions + gtk_calendar_get_display_options (GtkCalendar *calendar); +#ifndef GTK_DISABLE_DEPRECATED +void gtk_calendar_display_options (GtkCalendar *calendar, + GtkCalendarDisplayOptions flags); +#endif + +void gtk_calendar_get_date (GtkCalendar *calendar, + guint *year, + guint *month, + guint *day); +#ifndef GTK_DISABLE_DEPRECATED +void gtk_calendar_freeze (GtkCalendar *calendar); +void gtk_calendar_thaw (GtkCalendar *calendar); +#endif + +G_END_DECLS + +#endif /* __GTK_CALENDAR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcelleditable.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcelleditable.h new file mode 100644 index 00000000..10cde8e8 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcelleditable.h @@ -0,0 +1,60 @@ +/* gtkcelleditable.h + * Copyright (C) 2001 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_CELL_EDITABLE_H__ +#define __GTK_CELL_EDITABLE_H__ + +#include <gtk/gtkwidget.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_EDITABLE (gtk_cell_editable_get_type ()) +#define GTK_CELL_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditable)) +#define GTK_CELL_EDITABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditableIface)) +#define GTK_IS_CELL_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_EDITABLE)) +#define GTK_CELL_EDITABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditableIface)) + +typedef struct _GtkCellEditable GtkCellEditable; /* Dummy typedef */ +typedef struct _GtkCellEditableIface GtkCellEditableIface; + +struct _GtkCellEditableIface +{ + GTypeInterface g_iface; + + /* signals */ + void (* editing_done) (GtkCellEditable *cell_editable); + void (* remove_widget) (GtkCellEditable *cell_editable); + + /* virtual table */ + void (* start_editing) (GtkCellEditable *cell_editable, + GdkEvent *event); +}; + + +GType gtk_cell_editable_get_type (void) G_GNUC_CONST; + +void gtk_cell_editable_start_editing (GtkCellEditable *cell_editable, + GdkEvent *event); +void gtk_cell_editable_editing_done (GtkCellEditable *cell_editable); +void gtk_cell_editable_remove_widget (GtkCellEditable *cell_editable); + + +G_END_DECLS + +#endif /* __GTK_CELL_EDITABLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcelllayout.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcelllayout.h new file mode 100644 index 00000000..3f03687a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcelllayout.h @@ -0,0 +1,120 @@ +/* gtkcelllayout.h + * Copyright (C) 2003 Kristian Rietveld <kris@gtk.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_CELL_LAYOUT_H__ +#define __GTK_CELL_LAYOUT_H__ + +#include <glib-object.h> + +#include <gtk/gtkcellrenderer.h> +#include <gtk/gtktreeviewcolumn.h> +#include <gtk/gtkbuildable.h> +#include <gtk/gtkbuilder.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_LAYOUT (gtk_cell_layout_get_type ()) +#define GTK_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayout)) +#define GTK_IS_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_LAYOUT)) +#define GTK_CELL_LAYOUT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayoutIface)) + +typedef struct _GtkCellLayout GtkCellLayout; /* dummy typedef */ +typedef struct _GtkCellLayoutIface GtkCellLayoutIface; + +/* keep in sync with GtkTreeCellDataFunc */ +typedef void (* GtkCellLayoutDataFunc) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + gpointer data); + +struct _GtkCellLayoutIface +{ + GTypeInterface g_iface; + + /* Virtual Table */ + void (* pack_start) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gboolean expand); + void (* pack_end) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gboolean expand); + void (* clear) (GtkCellLayout *cell_layout); + void (* add_attribute) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + const gchar *attribute, + gint column); + void (* set_cell_data_func) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + GtkCellLayoutDataFunc func, + gpointer func_data, + GDestroyNotify destroy); + void (* clear_attributes) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell); + void (* reorder) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gint position); + GList* (* get_cells) (GtkCellLayout *cell_layout); +}; + +GType gtk_cell_layout_get_type (void) G_GNUC_CONST; +void gtk_cell_layout_pack_start (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gboolean expand); +void gtk_cell_layout_pack_end (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gboolean expand); +GList *gtk_cell_layout_get_cells (GtkCellLayout *cell_layout); +void gtk_cell_layout_clear (GtkCellLayout *cell_layout); +void gtk_cell_layout_set_attributes (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + ...) G_GNUC_NULL_TERMINATED; +void gtk_cell_layout_add_attribute (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + const gchar *attribute, + gint column); +void gtk_cell_layout_set_cell_data_func (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + GtkCellLayoutDataFunc func, + gpointer func_data, + GDestroyNotify destroy); +void gtk_cell_layout_clear_attributes (GtkCellLayout *cell_layout, + GtkCellRenderer *cell); +void gtk_cell_layout_reorder (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gint position); +gboolean _gtk_cell_layout_buildable_custom_tag_start (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + GMarkupParser *parser, + gpointer *data); +void _gtk_cell_layout_buildable_custom_tag_end (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + gpointer *data); +void _gtk_cell_layout_buildable_add_child (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *type); + +G_END_DECLS + +#endif /* __GTK_CELL_LAYOUT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderer.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderer.h new file mode 100644 index 00000000..375106ac --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderer.h @@ -0,0 +1,170 @@ +/* gtkcellrenderer.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_CELL_RENDERER_H__ +#define __GTK_CELL_RENDERER_H__ + +#include <gtk/gtkobject.h> +#include <gtk/gtkwidget.h> +#include <gtk/gtkcelleditable.h> + +G_BEGIN_DECLS + +typedef enum +{ + GTK_CELL_RENDERER_SELECTED = 1 << 0, + GTK_CELL_RENDERER_PRELIT = 1 << 1, + GTK_CELL_RENDERER_INSENSITIVE = 1 << 2, + /* this flag means the cell is in the sort column/row */ + GTK_CELL_RENDERER_SORTED = 1 << 3, + GTK_CELL_RENDERER_FOCUSED = 1 << 4 +} GtkCellRendererState; + +typedef enum +{ + GTK_CELL_RENDERER_MODE_INERT, + GTK_CELL_RENDERER_MODE_ACTIVATABLE, + GTK_CELL_RENDERER_MODE_EDITABLE +} GtkCellRendererMode; + +#define GTK_TYPE_CELL_RENDERER (gtk_cell_renderer_get_type ()) +#define GTK_CELL_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER, GtkCellRenderer)) +#define GTK_CELL_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER, GtkCellRendererClass)) +#define GTK_IS_CELL_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER)) +#define GTK_IS_CELL_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER)) +#define GTK_CELL_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER, GtkCellRendererClass)) + +typedef struct _GtkCellRenderer GtkCellRenderer; +typedef struct _GtkCellRendererClass GtkCellRendererClass; + +struct _GtkCellRenderer +{ + GtkObject parent; + + gfloat xalign; + gfloat yalign; + + gint width; + gint height; + + guint16 xpad; + guint16 ypad; + + guint mode : 2; + guint visible : 1; + guint is_expander : 1; + guint is_expanded : 1; + guint cell_background_set : 1; + guint sensitive : 1; + guint editing : 1; +}; + +struct _GtkCellRendererClass +{ + GtkObjectClass parent_class; + + /* vtable - not signals */ + void (* get_size) (GtkCellRenderer *cell, + GtkWidget *widget, + GdkRectangle *cell_area, + gint *x_offset, + gint *y_offset, + gint *width, + gint *height); + void (* render) (GtkCellRenderer *cell, + GdkDrawable *window, + GtkWidget *widget, + GdkRectangle *background_area, + GdkRectangle *cell_area, + GdkRectangle *expose_area, + GtkCellRendererState flags); + gboolean (* activate) (GtkCellRenderer *cell, + GdkEvent *event, + GtkWidget *widget, + const gchar *path, + GdkRectangle *background_area, + GdkRectangle *cell_area, + GtkCellRendererState flags); + GtkCellEditable *(* start_editing) (GtkCellRenderer *cell, + GdkEvent *event, + GtkWidget *widget, + const gchar *path, + GdkRectangle *background_area, + GdkRectangle *cell_area, + GtkCellRendererState flags); + + /* Signals */ + void (* editing_canceled) (GtkCellRenderer *cell); + void (* editing_started) (GtkCellRenderer *cell, + GtkCellEditable *editable, + const gchar *path); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); +}; + +GType gtk_cell_renderer_get_type (void) G_GNUC_CONST; + +void gtk_cell_renderer_get_size (GtkCellRenderer *cell, + GtkWidget *widget, + GdkRectangle *cell_area, + gint *x_offset, + gint *y_offset, + gint *width, + gint *height); +void gtk_cell_renderer_render (GtkCellRenderer *cell, + GdkWindow *window, + GtkWidget *widget, + GdkRectangle *background_area, + GdkRectangle *cell_area, + GdkRectangle *expose_area, + GtkCellRendererState flags); +gboolean gtk_cell_renderer_activate (GtkCellRenderer *cell, + GdkEvent *event, + GtkWidget *widget, + const gchar *path, + GdkRectangle *background_area, + GdkRectangle *cell_area, + GtkCellRendererState flags); +GtkCellEditable *gtk_cell_renderer_start_editing (GtkCellRenderer *cell, + GdkEvent *event, + GtkWidget *widget, + const gchar *path, + GdkRectangle *background_area, + GdkRectangle *cell_area, + GtkCellRendererState flags); +void gtk_cell_renderer_set_fixed_size (GtkCellRenderer *cell, + gint width, + gint height); +void gtk_cell_renderer_get_fixed_size (GtkCellRenderer *cell, + gint *width, + gint *height); + +/* For use by cell renderer implementations only */ +#ifndef GTK_DISABLE_DEPRECATED +void gtk_cell_renderer_editing_canceled (GtkCellRenderer *cell); +#endif +void gtk_cell_renderer_stop_editing (GtkCellRenderer *cell, + gboolean canceled); + + +G_END_DECLS + +#endif /* __GTK_CELL_RENDERER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendereraccel.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendereraccel.h new file mode 100644 index 00000000..d9fd1d11 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendereraccel.h @@ -0,0 +1,88 @@ +/* gtkcellrendereraccel.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_CELL_RENDERER_ACCEL_H__ +#define __GTK_CELL_RENDERER_ACCEL_H__ + +#include "gtkcellrenderertext.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_RENDERER_ACCEL (gtk_cell_renderer_accel_get_type ()) +#define GTK_CELL_RENDERER_ACCEL(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CELL_RENDERER_ACCEL, GtkCellRendererAccel)) +#define GTK_CELL_RENDERER_ACCEL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_ACCEL, GtkCellRendererAccelClass)) +#define GTK_IS_CELL_RENDERER_ACCEL(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CELL_RENDERER_ACCEL)) +#define GTK_IS_CELL_RENDERER_ACCEL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_ACCEL)) +#define GTK_CELL_RENDERER_ACCEL_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_ACCEL, GtkCellRendererAccelClass)) + +typedef struct _GtkCellRendererAccel GtkCellRendererAccel; +typedef struct _GtkCellRendererAccelClass GtkCellRendererAccelClass; + + +typedef enum +{ + GTK_CELL_RENDERER_ACCEL_MODE_GTK, + GTK_CELL_RENDERER_ACCEL_MODE_OTHER +} GtkCellRendererAccelMode; + + +struct _GtkCellRendererAccel +{ + GtkCellRendererText parent; + + /*< private >*/ + guint accel_key; + GdkModifierType accel_mods; + guint keycode; + GtkCellRendererAccelMode accel_mode; + + GtkWidget *edit_widget; + GtkWidget *grab_widget; + GtkWidget *sizing_label; +}; + +struct _GtkCellRendererAccelClass +{ + GtkCellRendererTextClass parent_class; + + void (* accel_edited) (GtkCellRendererAccel *accel, + const gchar *path_string, + guint accel_key, + GdkModifierType accel_mods, + guint hardware_keycode); + + void (* accel_cleared) (GtkCellRendererAccel *accel, + const gchar *path_string); + + /* Padding for future expansion */ + void (*_gtk_reserved0) (void); + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_accel_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_accel_new (void); + + +G_END_DECLS + + +#endif /* __GTK_CELL_RENDERER_ACCEL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderercombo.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderercombo.h new file mode 100644 index 00000000..2c35d096 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderercombo.h @@ -0,0 +1,61 @@ +/* GtkCellRendererCombo + * Copyright (C) 2004 Lorenzo Gil Sanchez + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#ifndef __GTK_CELL_RENDERER_COMBO_H__ +#define __GTK_CELL_RENDERER_COMBO_H__ + +#include <gtk/gtktreemodel.h> +#include <gtk/gtkcellrenderertext.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_RENDERER_COMBO (gtk_cell_renderer_combo_get_type ()) +#define GTK_CELL_RENDERER_COMBO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_COMBO, GtkCellRendererCombo)) +#define GTK_CELL_RENDERER_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_COMBO, GtkCellRendererComboClass)) +#define GTK_IS_CELL_RENDERER_COMBO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_COMBO)) +#define GTK_IS_CELL_RENDERER_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_COMBO)) +#define GTK_CELL_RENDERER_COMBO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_COMBO, GtkCellRendererTextClass)) + +typedef struct _GtkCellRendererCombo GtkCellRendererCombo; +typedef struct _GtkCellRendererComboClass GtkCellRendererComboClass; + +struct _GtkCellRendererCombo +{ + GtkCellRendererText parent; + + GtkTreeModel *model; + gint text_column; + gboolean has_entry; + + /*< private >*/ + guint focus_out_id; +}; + +struct _GtkCellRendererComboClass +{ + GtkCellRendererTextClass parent; +}; + +GType gtk_cell_renderer_combo_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_combo_new (void); + +G_END_DECLS + +#endif diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendererpixbuf.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendererpixbuf.h new file mode 100644 index 00000000..b479c9c7 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendererpixbuf.h @@ -0,0 +1,67 @@ +/* gtkcellrendererpixbuf.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_CELL_RENDERER_PIXBUF_H__ +#define __GTK_CELL_RENDERER_PIXBUF_H__ + +#include <gtk/gtkcellrenderer.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_CELL_RENDERER_PIXBUF (gtk_cell_renderer_pixbuf_get_type ()) +#define GTK_CELL_RENDERER_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_PIXBUF, GtkCellRendererPixbuf)) +#define GTK_CELL_RENDERER_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PIXBUF, GtkCellRendererPixbufClass)) +#define GTK_IS_CELL_RENDERER_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PIXBUF)) +#define GTK_IS_CELL_RENDERER_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PIXBUF)) +#define GTK_CELL_RENDERER_PIXBUF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PIXBUF, GtkCellRendererPixbufClass)) + +typedef struct _GtkCellRendererPixbuf GtkCellRendererPixbuf; +typedef struct _GtkCellRendererPixbufClass GtkCellRendererPixbufClass; + +struct _GtkCellRendererPixbuf +{ + GtkCellRenderer parent; + + /*< private >*/ + GdkPixbuf *pixbuf; + GdkPixbuf *pixbuf_expander_open; + GdkPixbuf *pixbuf_expander_closed; +}; + +struct _GtkCellRendererPixbufClass +{ + GtkCellRendererClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_pixbuf_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_pixbuf_new (void); + + +G_END_DECLS + + +#endif /* __GTK_CELL_RENDERER_PIXBUF_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendererprogress.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendererprogress.h new file mode 100644 index 00000000..6e84cd0e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendererprogress.h @@ -0,0 +1,69 @@ +/* gtkcellrendererprogress.h + * Copyright (C) 2002 Naba Kumar <kh_naba@users.sourceforge.net> + * modified by Jörgen Scheibengruber <mfcn@gmx.de> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +/* + * Modified by the GTK+ Team and others 1997-2004. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_CELL_RENDERER_PROGRESS_H__ +#define __GTK_CELL_RENDERER_PROGRESS_H__ + +#include <gtk/gtkcellrenderer.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_RENDERER_PROGRESS (gtk_cell_renderer_progress_get_type ()) +#define GTK_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgress)) +#define GTK_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass)) +#define GTK_IS_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS)) +#define GTK_IS_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS)) +#define GTK_CELL_RENDERER_PROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass)) + +typedef struct _GtkCellRendererProgress GtkCellRendererProgress; +typedef struct _GtkCellRendererProgressClass GtkCellRendererProgressClass; +typedef struct _GtkCellRendererProgressPrivate GtkCellRendererProgressPrivate; + +struct _GtkCellRendererProgress +{ + GtkCellRenderer parent_instance; + + /*< private >*/ + GtkCellRendererProgressPrivate *priv; +}; + +struct _GtkCellRendererProgressClass +{ + GtkCellRendererClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_progress_get_type (void) G_GNUC_CONST; +GtkCellRenderer* gtk_cell_renderer_progress_new (void); + +G_END_DECLS + +#endif /* __GTK_CELL_RENDERER_PROGRESS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendererspin.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendererspin.h new file mode 100644 index 00000000..35c2bff4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrendererspin.h @@ -0,0 +1,54 @@ +/* GtkCellRendererSpin + * Copyright (C) 2004 Lorenzo Gil Sanchez + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#ifndef __GTK_CELL_RENDERER_SPIN_H__ +#define __GTK_CELL_RENDERER_SPIN_H__ + +#include <gtk/gtkcellrenderertext.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_RENDERER_SPIN (gtk_cell_renderer_spin_get_type ()) +#define GTK_CELL_RENDERER_SPIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_SPIN, GtkCellRendererSpin)) +#define GTK_CELL_RENDERER_SPIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_SPIN, GtkCellRendererSpinClass)) +#define GTK_IS_CELL_RENDERER_SPIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_SPIN)) +#define GTK_IS_CELL_RENDERER_SPIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_SPIN)) +#define GTK_CELL_RENDERER_SPIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_SPIN, GtkCellRendererTextClass)) + +typedef struct _GtkCellRendererSpin GtkCellRendererSpin; +typedef struct _GtkCellRendererSpinClass GtkCellRendererSpinClass; +typedef struct _GtkCellRendererSpinPrivate GtkCellRendererSpinPrivate; + +struct _GtkCellRendererSpin +{ + GtkCellRendererText parent; +}; + +struct _GtkCellRendererSpinClass +{ + GtkCellRendererTextClass parent; +}; + +GType gtk_cell_renderer_spin_get_type (void); +GtkCellRenderer *gtk_cell_renderer_spin_new (void); + +G_END_DECLS + +#endif /* __GTK_CELL_RENDERER_SPIN_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderertext.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderertext.h new file mode 100644 index 00000000..fef52adf --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderertext.h @@ -0,0 +1,102 @@ +/* gtkcellrenderertext.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_CELL_RENDERER_TEXT_H__ +#define __GTK_CELL_RENDERER_TEXT_H__ + +#include <pango/pango.h> +#include <gtk/gtkcellrenderer.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_CELL_RENDERER_TEXT (gtk_cell_renderer_text_get_type ()) +#define GTK_CELL_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererText)) +#define GTK_CELL_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererTextClass)) +#define GTK_IS_CELL_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_TEXT)) +#define GTK_IS_CELL_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_TEXT)) +#define GTK_CELL_RENDERER_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererTextClass)) + +typedef struct _GtkCellRendererText GtkCellRendererText; +typedef struct _GtkCellRendererTextClass GtkCellRendererTextClass; + +struct _GtkCellRendererText +{ + GtkCellRenderer parent; + + /*< private >*/ + gchar *text; + PangoFontDescription *font; + gdouble font_scale; + PangoColor foreground; + PangoColor background; + + PangoAttrList *extra_attrs; + + PangoUnderline underline_style; + + gint rise; + gint fixed_height_rows; + + guint strikethrough : 1; + + guint editable : 1; + + guint scale_set : 1; + + guint foreground_set : 1; + guint background_set : 1; + + guint underline_set : 1; + + guint rise_set : 1; + + guint strikethrough_set : 1; + + guint editable_set : 1; + guint calc_fixed_height : 1; +}; + +struct _GtkCellRendererTextClass +{ + GtkCellRendererClass parent_class; + + void (* edited) (GtkCellRendererText *cell_renderer_text, + const gchar *path, + const gchar *new_text); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_text_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_text_new (void); + +void gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRendererText *renderer, + gint number_of_rows); + + +G_END_DECLS + + +#endif /* __GTK_CELL_RENDERER_TEXT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderertoggle.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderertoggle.h new file mode 100644 index 00000000..302909bd --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellrenderertoggle.h @@ -0,0 +1,78 @@ +/* gtkcellrenderertoggle.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_CELL_RENDERER_TOGGLE_H__ +#define __GTK_CELL_RENDERER_TOGGLE_H__ + +#include <gtk/gtkcellrenderer.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_CELL_RENDERER_TOGGLE (gtk_cell_renderer_toggle_get_type ()) +#define GTK_CELL_RENDERER_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggle)) +#define GTK_CELL_RENDERER_TOGGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggleClass)) +#define GTK_IS_CELL_RENDERER_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE)) +#define GTK_IS_CELL_RENDERER_TOGGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_TOGGLE)) +#define GTK_CELL_RENDERER_TOGGLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggleClass)) + +typedef struct _GtkCellRendererToggle GtkCellRendererToggle; +typedef struct _GtkCellRendererToggleClass GtkCellRendererToggleClass; + +struct _GtkCellRendererToggle +{ + GtkCellRenderer parent; + + /*< private >*/ + guint active : 1; + guint activatable : 1; + guint radio : 1; +}; + +struct _GtkCellRendererToggleClass +{ + GtkCellRendererClass parent_class; + + void (* toggled) (GtkCellRendererToggle *cell_renderer_toggle, + const gchar *path); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_toggle_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_toggle_new (void); + +gboolean gtk_cell_renderer_toggle_get_radio (GtkCellRendererToggle *toggle); +void gtk_cell_renderer_toggle_set_radio (GtkCellRendererToggle *toggle, + gboolean radio); + +gboolean gtk_cell_renderer_toggle_get_active (GtkCellRendererToggle *toggle); +void gtk_cell_renderer_toggle_set_active (GtkCellRendererToggle *toggle, + gboolean setting); + + +G_END_DECLS + + +#endif /* __GTK_CELL_RENDERER_TOGGLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellview.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellview.h new file mode 100644 index 00000000..6a79c3ab --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcellview.h @@ -0,0 +1,74 @@ +/* gtkcellview.h + * Copyright (C) 2002, 2003 Kristian Rietveld <kris@gtk.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_CELL_VIEW_H__ +#define __GTK_CELL_VIEW_H__ + +#include <gtk/gtkwidget.h> +#include <gtk/gtkcellrenderer.h> +#include <gtk/gtktreemodel.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_VIEW (gtk_cell_view_get_type ()) +#define GTK_CELL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_VIEW, GtkCellView)) +#define GTK_CELL_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_CELL_VIEW, GtkCellViewClass)) +#define GTK_IS_CELL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_VIEW)) +#define GTK_IS_CELL_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_CELL_VIEW)) +#define GTK_CELL_VIEW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_CELL_VIEW, GtkCellViewClass)) + +typedef struct _GtkCellView GtkCellView; +typedef struct _GtkCellViewClass GtkCellViewClass; +typedef struct _GtkCellViewPrivate GtkCellViewPrivate; + +struct _GtkCellView +{ + GtkWidget parent_instance; + + /*< private >*/ + GtkCellViewPrivate *priv; +}; + +struct _GtkCellViewClass +{ + GtkWidgetClass parent_class; +}; + +GType gtk_cell_view_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_cell_view_new (void); +GtkWidget *gtk_cell_view_new_with_text (const gchar *text); +GtkWidget *gtk_cell_view_new_with_markup (const gchar *markup); +GtkWidget *gtk_cell_view_new_with_pixbuf (GdkPixbuf *pixbuf); + +void gtk_cell_view_set_model (GtkCellView *cell_view, + GtkTreeModel *model); +void gtk_cell_view_set_displayed_row (GtkCellView *cell_view, + GtkTreePath *path); +GtkTreePath *gtk_cell_view_get_displayed_row (GtkCellView *cell_view); +gboolean gtk_cell_view_get_size_of_row (GtkCellView *cell_view, + GtkTreePath *path, + GtkRequisition *requisition); + +void gtk_cell_view_set_background_color (GtkCellView *cell_view, + const GdkColor *color); +GList *gtk_cell_view_get_cell_renderers (GtkCellView *cell_view); + +G_END_DECLS + +#endif /* __GTK_CELL_VIEW_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcheckbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcheckbutton.h new file mode 100644 index 00000000..106bf546 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcheckbutton.h @@ -0,0 +1,79 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_CHECK_BUTTON_H__ +#define __GTK_CHECK_BUTTON_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtktogglebutton.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_CHECK_BUTTON (gtk_check_button_get_type ()) +#define GTK_CHECK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CHECK_BUTTON, GtkCheckButton)) +#define GTK_CHECK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHECK_BUTTON, GtkCheckButtonClass)) +#define GTK_IS_CHECK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CHECK_BUTTON)) +#define GTK_IS_CHECK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHECK_BUTTON)) +#define GTK_CHECK_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CHECK_BUTTON, GtkCheckButtonClass)) + + +typedef struct _GtkCheckButton GtkCheckButton; +typedef struct _GtkCheckButtonClass GtkCheckButtonClass; + +struct _GtkCheckButton +{ + GtkToggleButton toggle_button; +}; + +struct _GtkCheckButtonClass +{ + GtkToggleButtonClass parent_class; + + void (* draw_indicator) (GtkCheckButton *check_button, + GdkRectangle *area); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_check_button_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_check_button_new (void); +GtkWidget* gtk_check_button_new_with_label (const gchar *label); +GtkWidget* gtk_check_button_new_with_mnemonic (const gchar *label); + +void _gtk_check_button_get_props (GtkCheckButton *check_button, + gint *indicator_size, + gint *indicator_spacing); + +G_END_DECLS + +#endif /* __GTK_CHECK_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcheckmenuitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcheckmenuitem.h new file mode 100644 index 00000000..6db552fc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcheckmenuitem.h @@ -0,0 +1,99 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_CHECK_MENU_ITEM_H__ +#define __GTK_CHECK_MENU_ITEM_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkmenuitem.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_CHECK_MENU_ITEM (gtk_check_menu_item_get_type ()) +#define GTK_CHECK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItem)) +#define GTK_CHECK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItemClass)) +#define GTK_IS_CHECK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CHECK_MENU_ITEM)) +#define GTK_IS_CHECK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHECK_MENU_ITEM)) +#define GTK_CHECK_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItemClass)) + + +typedef struct _GtkCheckMenuItem GtkCheckMenuItem; +typedef struct _GtkCheckMenuItemClass GtkCheckMenuItemClass; + +struct _GtkCheckMenuItem +{ + GtkMenuItem menu_item; + + guint active : 1; + guint always_show_toggle : 1; + guint inconsistent : 1; + guint draw_as_radio : 1; +}; + +struct _GtkCheckMenuItemClass +{ + GtkMenuItemClass parent_class; + + void (* toggled) (GtkCheckMenuItem *check_menu_item); + void (* draw_indicator) (GtkCheckMenuItem *check_menu_item, + GdkRectangle *area); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_check_menu_item_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_check_menu_item_new (void); +GtkWidget* gtk_check_menu_item_new_with_label (const gchar *label); +GtkWidget* gtk_check_menu_item_new_with_mnemonic (const gchar *label); +void gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item, + gboolean is_active); +gboolean gtk_check_menu_item_get_active (GtkCheckMenuItem *check_menu_item); +void gtk_check_menu_item_toggled (GtkCheckMenuItem *check_menu_item); +void gtk_check_menu_item_set_inconsistent (GtkCheckMenuItem *check_menu_item, + gboolean setting); +gboolean gtk_check_menu_item_get_inconsistent (GtkCheckMenuItem *check_menu_item); +void gtk_check_menu_item_set_draw_as_radio (GtkCheckMenuItem *check_menu_item, + gboolean draw_as_radio); +gboolean gtk_check_menu_item_get_draw_as_radio (GtkCheckMenuItem *check_menu_item); + + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_check_menu_item_set_show_toggle (GtkCheckMenuItem *menu_item, + gboolean always); +#define gtk_check_menu_item_set_state gtk_check_menu_item_set_active +#endif + +G_END_DECLS + +#endif /* __GTK_CHECK_MENU_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkclipboard.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkclipboard.h new file mode 100644 index 00000000..1825cf76 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkclipboard.h @@ -0,0 +1,145 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * Global clipboard abstraction. + */ + +#ifndef __GTK_CLIPBOARD_H__ +#define __GTK_CLIPBOARD_H__ + +#include <gtk/gtkselection.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_CLIPBOARD (gtk_clipboard_get_type ()) +#define GTK_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIPBOARD, GtkClipboard)) +#define GTK_IS_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CLIPBOARD)) + +typedef void (* GtkClipboardReceivedFunc) (GtkClipboard *clipboard, + GtkSelectionData *selection_data, + gpointer data); +typedef void (* GtkClipboardTextReceivedFunc) (GtkClipboard *clipboard, + const gchar *text, + gpointer data); +typedef void (* GtkClipboardRichTextReceivedFunc) (GtkClipboard *clipboard, + GdkAtom format, + const guint8 *text, + gsize length, + gpointer data); +typedef void (* GtkClipboardImageReceivedFunc) (GtkClipboard *clipboard, + GdkPixbuf *pixbuf, + gpointer data); +typedef void (* GtkClipboardTargetsReceivedFunc) (GtkClipboard *clipboard, + GdkAtom *atoms, + gint n_atoms, + gpointer data); + +/* Should these functions have GtkClipboard *clipboard as the first argument? + * right now for ClearFunc, you may have trouble determining _which_ clipboard + * was cleared, if you reuse your ClearFunc for multiple clipboards. + */ +typedef void (* GtkClipboardGetFunc) (GtkClipboard *clipboard, + GtkSelectionData *selection_data, + guint info, + gpointer user_data_or_owner); +typedef void (* GtkClipboardClearFunc) (GtkClipboard *clipboard, + gpointer user_data_or_owner); + +GType gtk_clipboard_get_type (void) G_GNUC_CONST; + +GtkClipboard *gtk_clipboard_get_for_display (GdkDisplay *display, + GdkAtom selection); +#ifndef GDK_MULTIHEAD_SAFE +GtkClipboard *gtk_clipboard_get (GdkAtom selection); +#endif + +GdkDisplay *gtk_clipboard_get_display (GtkClipboard *clipboard); + + +gboolean gtk_clipboard_set_with_data (GtkClipboard *clipboard, + const GtkTargetEntry *targets, + guint n_targets, + GtkClipboardGetFunc get_func, + GtkClipboardClearFunc clear_func, + gpointer user_data); +gboolean gtk_clipboard_set_with_owner (GtkClipboard *clipboard, + const GtkTargetEntry *targets, + guint n_targets, + GtkClipboardGetFunc get_func, + GtkClipboardClearFunc clear_func, + GObject *owner); +GObject *gtk_clipboard_get_owner (GtkClipboard *clipboard); +void gtk_clipboard_clear (GtkClipboard *clipboard); +void gtk_clipboard_set_text (GtkClipboard *clipboard, + const gchar *text, + gint len); +void gtk_clipboard_set_image (GtkClipboard *clipboard, + GdkPixbuf *pixbuf); + +void gtk_clipboard_request_contents (GtkClipboard *clipboard, + GdkAtom target, + GtkClipboardReceivedFunc callback, + gpointer user_data); +void gtk_clipboard_request_text (GtkClipboard *clipboard, + GtkClipboardTextReceivedFunc callback, + gpointer user_data); +void gtk_clipboard_request_rich_text (GtkClipboard *clipboard, + GtkTextBuffer *buffer, + GtkClipboardRichTextReceivedFunc callback, + gpointer user_data); +void gtk_clipboard_request_image (GtkClipboard *clipboard, + GtkClipboardImageReceivedFunc callback, + gpointer user_data); +void gtk_clipboard_request_targets (GtkClipboard *clipboard, + GtkClipboardTargetsReceivedFunc callback, + gpointer user_data); + +GtkSelectionData *gtk_clipboard_wait_for_contents (GtkClipboard *clipboard, + GdkAtom target); +gchar * gtk_clipboard_wait_for_text (GtkClipboard *clipboard); +guint8 * gtk_clipboard_wait_for_rich_text (GtkClipboard *clipboard, + GtkTextBuffer *buffer, + GdkAtom *format, + gsize *length); +GdkPixbuf * gtk_clipboard_wait_for_image (GtkClipboard *clipboard); +gboolean gtk_clipboard_wait_for_targets (GtkClipboard *clipboard, + GdkAtom **targets, + gint *n_targets); + +gboolean gtk_clipboard_wait_is_text_available (GtkClipboard *clipboard); +gboolean gtk_clipboard_wait_is_rich_text_available (GtkClipboard *clipboard, + GtkTextBuffer *buffer); +gboolean gtk_clipboard_wait_is_image_available (GtkClipboard *clipboard); +gboolean gtk_clipboard_wait_is_target_available (GtkClipboard *clipboard, + GdkAtom target); + + +void gtk_clipboard_set_can_store (GtkClipboard *clipboard, + const GtkTargetEntry *targets, + gint n_targets); + +void gtk_clipboard_store (GtkClipboard *clipboard); + +/* private */ +void _gtk_clipboard_handle_event (GdkEventOwnerChange *event); + +void _gtk_clipboard_store_all (void); + +G_END_DECLS + +#endif /* __GTK_CLIPBOARD_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkclist.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkclist.h new file mode 100644 index 00000000..5375ea1c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkclist.h @@ -0,0 +1,793 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball, Josh MacDonald + * Copyright (C) 1997-1998 Jay Painter <jpaint@serv.net><jpaint@gimp.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_CLIST_H__ +#define __GTK_CLIST_H__ + +#include <gdk/gdk.h> +#include <gtk/gtksignal.h> +#include <gtk/gtkalignment.h> +#include <gtk/gtklabel.h> +#include <gtk/gtkbutton.h> +#include <gtk/gtkhscrollbar.h> +#include <gtk/gtkvscrollbar.h> +#include <gtk/gtkenums.h> + + +G_BEGIN_DECLS + + +/* clist flags */ +enum { + GTK_CLIST_IN_DRAG = 1 << 0, + GTK_CLIST_ROW_HEIGHT_SET = 1 << 1, + GTK_CLIST_SHOW_TITLES = 1 << 2, + /* Unused */ + GTK_CLIST_ADD_MODE = 1 << 4, + GTK_CLIST_AUTO_SORT = 1 << 5, + GTK_CLIST_AUTO_RESIZE_BLOCKED = 1 << 6, + GTK_CLIST_REORDERABLE = 1 << 7, + GTK_CLIST_USE_DRAG_ICONS = 1 << 8, + GTK_CLIST_DRAW_DRAG_LINE = 1 << 9, + GTK_CLIST_DRAW_DRAG_RECT = 1 << 10 +}; + +/* cell types */ +typedef enum +{ + GTK_CELL_EMPTY, + GTK_CELL_TEXT, + GTK_CELL_PIXMAP, + GTK_CELL_PIXTEXT, + GTK_CELL_WIDGET +} GtkCellType; + +typedef enum +{ + GTK_CLIST_DRAG_NONE, + GTK_CLIST_DRAG_BEFORE, + GTK_CLIST_DRAG_INTO, + GTK_CLIST_DRAG_AFTER +} GtkCListDragPos; + +typedef enum +{ + GTK_BUTTON_IGNORED = 0, + GTK_BUTTON_SELECTS = 1 << 0, + GTK_BUTTON_DRAGS = 1 << 1, + GTK_BUTTON_EXPANDS = 1 << 2 +} GtkButtonAction; + +#define GTK_TYPE_CLIST (gtk_clist_get_type ()) +#define GTK_CLIST(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) +#define GTK_CLIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CLIST, GtkCListClass)) +#define GTK_IS_CLIST(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CLIST)) +#define GTK_IS_CLIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CLIST)) +#define GTK_CLIST_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CLIST, GtkCListClass)) + + +#define GTK_CLIST_FLAGS(clist) (GTK_CLIST (clist)->flags) +#define GTK_CLIST_SET_FLAG(clist,flag) (GTK_CLIST_FLAGS (clist) |= (GTK_ ## flag)) +#define GTK_CLIST_UNSET_FLAG(clist,flag) (GTK_CLIST_FLAGS (clist) &= ~(GTK_ ## flag)) + +#define GTK_CLIST_IN_DRAG(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_IN_DRAG) +#define GTK_CLIST_ROW_HEIGHT_SET(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_ROW_HEIGHT_SET) +#define GTK_CLIST_SHOW_TITLES(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_SHOW_TITLES) +#define GTK_CLIST_ADD_MODE(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_ADD_MODE) +#define GTK_CLIST_AUTO_SORT(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_AUTO_SORT) +#define GTK_CLIST_AUTO_RESIZE_BLOCKED(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_AUTO_RESIZE_BLOCKED) +#define GTK_CLIST_REORDERABLE(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_REORDERABLE) +#define GTK_CLIST_USE_DRAG_ICONS(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_USE_DRAG_ICONS) +#define GTK_CLIST_DRAW_DRAG_LINE(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_DRAW_DRAG_LINE) +#define GTK_CLIST_DRAW_DRAG_RECT(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_DRAW_DRAG_RECT) + +#define GTK_CLIST_ROW(_glist_) ((GtkCListRow *)((_glist_)->data)) + +/* pointer casting for cells */ +#define GTK_CELL_TEXT(cell) (((GtkCellText *) &(cell))) +#define GTK_CELL_PIXMAP(cell) (((GtkCellPixmap *) &(cell))) +#define GTK_CELL_PIXTEXT(cell) (((GtkCellPixText *) &(cell))) +#define GTK_CELL_WIDGET(cell) (((GtkCellWidget *) &(cell))) + +typedef struct _GtkCList GtkCList; +typedef struct _GtkCListClass GtkCListClass; +typedef struct _GtkCListColumn GtkCListColumn; +typedef struct _GtkCListRow GtkCListRow; + +typedef struct _GtkCell GtkCell; +typedef struct _GtkCellText GtkCellText; +typedef struct _GtkCellPixmap GtkCellPixmap; +typedef struct _GtkCellPixText GtkCellPixText; +typedef struct _GtkCellWidget GtkCellWidget; + +typedef gint (*GtkCListCompareFunc) (GtkCList *clist, + gconstpointer ptr1, + gconstpointer ptr2); + +typedef struct _GtkCListCellInfo GtkCListCellInfo; +typedef struct _GtkCListDestInfo GtkCListDestInfo; + +struct _GtkCListCellInfo +{ + gint row; + gint column; +}; + +struct _GtkCListDestInfo +{ + GtkCListCellInfo cell; + GtkCListDragPos insert_pos; +}; + +struct _GtkCList +{ + GtkContainer container; + + guint16 flags; + + gpointer reserved1; + gpointer reserved2; + + guint freeze_count; + + /* allocation rectangle after the conatiner_border_width + * and the width of the shadow border */ + GdkRectangle internal_allocation; + + /* rows */ + gint rows; + gint row_height; + GList *row_list; + GList *row_list_end; + + /* columns */ + gint columns; + GdkRectangle column_title_area; + GdkWindow *title_window; + + /* dynamicly allocated array of column structures */ + GtkCListColumn *column; + + /* the scrolling window and its height and width to + * make things a little speedier */ + GdkWindow *clist_window; + gint clist_window_width; + gint clist_window_height; + + /* offsets for scrolling */ + gint hoffset; + gint voffset; + + /* border shadow style */ + GtkShadowType shadow_type; + + /* the list's selection mode (gtkenums.h) */ + GtkSelectionMode selection_mode; + + /* list of selected rows */ + GList *selection; + GList *selection_end; + + GList *undo_selection; + GList *undo_unselection; + gint undo_anchor; + + /* mouse buttons */ + guint8 button_actions[5]; + + guint8 drag_button; + + /* dnd */ + GtkCListCellInfo click_cell; + + /* scroll adjustments */ + GtkAdjustment *hadjustment; + GtkAdjustment *vadjustment; + + /* xor GC for the vertical drag line */ + GdkGC *xor_gc; + + /* gc for drawing unselected cells */ + GdkGC *fg_gc; + GdkGC *bg_gc; + + /* cursor used to indicate dragging */ + GdkCursor *cursor_drag; + + /* the current x-pixel location of the xor-drag line */ + gint x_drag; + + /* focus handling */ + gint focus_row; + + gint focus_header_column; + + /* dragging the selection */ + gint anchor; + GtkStateType anchor_state; + gint drag_pos; + gint htimer; + gint vtimer; + + GtkSortType sort_type; + GtkCListCompareFunc compare; + gint sort_column; + + gint drag_highlight_row; + GtkCListDragPos drag_highlight_pos; +}; + +struct _GtkCListClass +{ + GtkContainerClass parent_class; + + void (*set_scroll_adjustments) (GtkCList *clist, + GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); + void (*refresh) (GtkCList *clist); + void (*select_row) (GtkCList *clist, + gint row, + gint column, + GdkEvent *event); + void (*unselect_row) (GtkCList *clist, + gint row, + gint column, + GdkEvent *event); + void (*row_move) (GtkCList *clist, + gint source_row, + gint dest_row); + void (*click_column) (GtkCList *clist, + gint column); + void (*resize_column) (GtkCList *clist, + gint column, + gint width); + void (*toggle_focus_row) (GtkCList *clist); + void (*select_all) (GtkCList *clist); + void (*unselect_all) (GtkCList *clist); + void (*undo_selection) (GtkCList *clist); + void (*start_selection) (GtkCList *clist); + void (*end_selection) (GtkCList *clist); + void (*extend_selection) (GtkCList *clist, + GtkScrollType scroll_type, + gfloat position, + gboolean auto_start_selection); + void (*scroll_horizontal) (GtkCList *clist, + GtkScrollType scroll_type, + gfloat position); + void (*scroll_vertical) (GtkCList *clist, + GtkScrollType scroll_type, + gfloat position); + void (*toggle_add_mode) (GtkCList *clist); + void (*abort_column_resize) (GtkCList *clist); + void (*resync_selection) (GtkCList *clist, + GdkEvent *event); + GList* (*selection_find) (GtkCList *clist, + gint row_number, + GList *row_list_element); + void (*draw_row) (GtkCList *clist, + GdkRectangle *area, + gint row, + GtkCListRow *clist_row); + void (*draw_drag_highlight) (GtkCList *clist, + GtkCListRow *target_row, + gint target_row_number, + GtkCListDragPos drag_pos); + void (*clear) (GtkCList *clist); + void (*fake_unselect_all) (GtkCList *clist, + gint row); + void (*sort_list) (GtkCList *clist); + gint (*insert_row) (GtkCList *clist, + gint row, + gchar *text[]); + void (*remove_row) (GtkCList *clist, + gint row); + void (*set_cell_contents) (GtkCList *clist, + GtkCListRow *clist_row, + gint column, + GtkCellType type, + const gchar *text, + guint8 spacing, + GdkPixmap *pixmap, + GdkBitmap *mask); + void (*cell_size_request) (GtkCList *clist, + GtkCListRow *clist_row, + gint column, + GtkRequisition *requisition); + +}; + +struct _GtkCListColumn +{ + gchar *title; + GdkRectangle area; + + GtkWidget *button; + GdkWindow *window; + + gint width; + gint min_width; + gint max_width; + GtkJustification justification; + + guint visible : 1; + guint width_set : 1; + guint resizeable : 1; + guint auto_resize : 1; + guint button_passive : 1; +}; + +struct _GtkCListRow +{ + GtkCell *cell; + GtkStateType state; + + GdkColor foreground; + GdkColor background; + + GtkStyle *style; + + gpointer data; + GtkDestroyNotify destroy; + + guint fg_set : 1; + guint bg_set : 1; + guint selectable : 1; +}; + +/* Cell Structures */ +struct _GtkCellText +{ + GtkCellType type; + + gint16 vertical; + gint16 horizontal; + + GtkStyle *style; + + gchar *text; +}; + +struct _GtkCellPixmap +{ + GtkCellType type; + + gint16 vertical; + gint16 horizontal; + + GtkStyle *style; + + GdkPixmap *pixmap; + GdkBitmap *mask; +}; + +struct _GtkCellPixText +{ + GtkCellType type; + + gint16 vertical; + gint16 horizontal; + + GtkStyle *style; + + gchar *text; + guint8 spacing; + GdkPixmap *pixmap; + GdkBitmap *mask; +}; + +struct _GtkCellWidget +{ + GtkCellType type; + + gint16 vertical; + gint16 horizontal; + + GtkStyle *style; + + GtkWidget *widget; +}; + +struct _GtkCell +{ + GtkCellType type; + + gint16 vertical; + gint16 horizontal; + + GtkStyle *style; + + union { + gchar *text; + + struct { + GdkPixmap *pixmap; + GdkBitmap *mask; + } pm; + + struct { + gchar *text; + guint8 spacing; + GdkPixmap *pixmap; + GdkBitmap *mask; + } pt; + + GtkWidget *widget; + } u; +}; + +GtkType gtk_clist_get_type (void) G_GNUC_CONST; + +/* create a new GtkCList */ +GtkWidget* gtk_clist_new (gint columns); +GtkWidget* gtk_clist_new_with_titles (gint columns, + gchar *titles[]); + +/* set adjustments of clist */ +void gtk_clist_set_hadjustment (GtkCList *clist, + GtkAdjustment *adjustment); +void gtk_clist_set_vadjustment (GtkCList *clist, + GtkAdjustment *adjustment); + +/* get adjustments of clist */ +GtkAdjustment* gtk_clist_get_hadjustment (GtkCList *clist); +GtkAdjustment* gtk_clist_get_vadjustment (GtkCList *clist); + +/* set the border style of the clist */ +void gtk_clist_set_shadow_type (GtkCList *clist, + GtkShadowType type); + +/* set the clist's selection mode */ +void gtk_clist_set_selection_mode (GtkCList *clist, + GtkSelectionMode mode); + +/* enable clists reorder ability */ +void gtk_clist_set_reorderable (GtkCList *clist, + gboolean reorderable); +void gtk_clist_set_use_drag_icons (GtkCList *clist, + gboolean use_icons); +void gtk_clist_set_button_actions (GtkCList *clist, + guint button, + guint8 button_actions); + +/* freeze all visual updates of the list, and then thaw the list after + * you have made a number of changes and the updates wil occure in a + * more efficent mannor than if you made them on a unfrozen list + */ +void gtk_clist_freeze (GtkCList *clist); +void gtk_clist_thaw (GtkCList *clist); + +/* show and hide the column title buttons */ +void gtk_clist_column_titles_show (GtkCList *clist); +void gtk_clist_column_titles_hide (GtkCList *clist); + +/* set the column title to be a active title (responds to button presses, + * prelights, and grabs keyboard focus), or passive where it acts as just + * a title + */ +void gtk_clist_column_title_active (GtkCList *clist, + gint column); +void gtk_clist_column_title_passive (GtkCList *clist, + gint column); +void gtk_clist_column_titles_active (GtkCList *clist); +void gtk_clist_column_titles_passive (GtkCList *clist); + +/* set the title in the column title button */ +void gtk_clist_set_column_title (GtkCList *clist, + gint column, + const gchar *title); + +/* returns the title of column. Returns NULL if title is not set */ +gchar * gtk_clist_get_column_title (GtkCList *clist, + gint column); + +/* set a widget instead of a title for the column title button */ +void gtk_clist_set_column_widget (GtkCList *clist, + gint column, + GtkWidget *widget); + +/* returns the column widget */ +GtkWidget * gtk_clist_get_column_widget (GtkCList *clist, + gint column); + +/* set the justification on a column */ +void gtk_clist_set_column_justification (GtkCList *clist, + gint column, + GtkJustification justification); + +/* set visibility of a column */ +void gtk_clist_set_column_visibility (GtkCList *clist, + gint column, + gboolean visible); + +/* enable/disable column resize operations by mouse */ +void gtk_clist_set_column_resizeable (GtkCList *clist, + gint column, + gboolean resizeable); + +/* resize column automatically to its optimal width */ +void gtk_clist_set_column_auto_resize (GtkCList *clist, + gint column, + gboolean auto_resize); + +gint gtk_clist_columns_autosize (GtkCList *clist); + +/* return the optimal column width, i.e. maximum of all cell widths */ +gint gtk_clist_optimal_column_width (GtkCList *clist, + gint column); + +/* set the pixel width of a column; this is a necessary step in + * creating a CList because otherwise the column width is chozen from + * the width of the column title, which will never be right + */ +void gtk_clist_set_column_width (GtkCList *clist, + gint column, + gint width); + +/* set column minimum/maximum width. min/max_width < 0 => no restriction */ +void gtk_clist_set_column_min_width (GtkCList *clist, + gint column, + gint min_width); +void gtk_clist_set_column_max_width (GtkCList *clist, + gint column, + gint max_width); + +/* change the height of the rows, the default (height=0) is + * the hight of the current font. + */ +void gtk_clist_set_row_height (GtkCList *clist, + guint height); + +/* scroll the viewing area of the list to the given column and row; + * row_align and col_align are between 0-1 representing the location the + * row should appear on the screnn, 0.0 being top or left, 1.0 being + * bottom or right; if row or column is -1 then then there is no change + */ +void gtk_clist_moveto (GtkCList *clist, + gint row, + gint column, + gfloat row_align, + gfloat col_align); + +/* returns whether the row is visible */ +GtkVisibility gtk_clist_row_is_visible (GtkCList *clist, + gint row); + +/* returns the cell type */ +GtkCellType gtk_clist_get_cell_type (GtkCList *clist, + gint row, + gint column); + +/* sets a given cell's text, replacing its current contents */ +void gtk_clist_set_text (GtkCList *clist, + gint row, + gint column, + const gchar *text); + +/* for the "get" functions, any of the return pointer can be + * NULL if you are not interested + */ +gint gtk_clist_get_text (GtkCList *clist, + gint row, + gint column, + gchar **text); + +/* sets a given cell's pixmap, replacing its current contents */ +void gtk_clist_set_pixmap (GtkCList *clist, + gint row, + gint column, + GdkPixmap *pixmap, + GdkBitmap *mask); + +gint gtk_clist_get_pixmap (GtkCList *clist, + gint row, + gint column, + GdkPixmap **pixmap, + GdkBitmap **mask); + +/* sets a given cell's pixmap and text, replacing its current contents */ +void gtk_clist_set_pixtext (GtkCList *clist, + gint row, + gint column, + const gchar *text, + guint8 spacing, + GdkPixmap *pixmap, + GdkBitmap *mask); + +gint gtk_clist_get_pixtext (GtkCList *clist, + gint row, + gint column, + gchar **text, + guint8 *spacing, + GdkPixmap **pixmap, + GdkBitmap **mask); + +/* sets the foreground color of a row, the color must already + * be allocated + */ +void gtk_clist_set_foreground (GtkCList *clist, + gint row, + const GdkColor *color); + +/* sets the background color of a row, the color must already + * be allocated + */ +void gtk_clist_set_background (GtkCList *clist, + gint row, + const GdkColor *color); + +/* set / get cell styles */ +void gtk_clist_set_cell_style (GtkCList *clist, + gint row, + gint column, + GtkStyle *style); + +GtkStyle *gtk_clist_get_cell_style (GtkCList *clist, + gint row, + gint column); + +void gtk_clist_set_row_style (GtkCList *clist, + gint row, + GtkStyle *style); + +GtkStyle *gtk_clist_get_row_style (GtkCList *clist, + gint row); + +/* this sets a horizontal and vertical shift for drawing + * the contents of a cell; it can be positive or negitive; + * this is particulary useful for indenting items in a column + */ +void gtk_clist_set_shift (GtkCList *clist, + gint row, + gint column, + gint vertical, + gint horizontal); + +/* set/get selectable flag of a single row */ +void gtk_clist_set_selectable (GtkCList *clist, + gint row, + gboolean selectable); +gboolean gtk_clist_get_selectable (GtkCList *clist, + gint row); + +/* prepend/append returns the index of the row you just added, + * making it easier to append and modify a row + */ +gint gtk_clist_prepend (GtkCList *clist, + gchar *text[]); +gint gtk_clist_append (GtkCList *clist, + gchar *text[]); + +/* inserts a row at index row and returns the row where it was + * actually inserted (may be different from "row" in auto_sort mode) + */ +gint gtk_clist_insert (GtkCList *clist, + gint row, + gchar *text[]); + +/* removes row at index row */ +void gtk_clist_remove (GtkCList *clist, + gint row); + +/* sets a arbitrary data pointer for a given row */ +void gtk_clist_set_row_data (GtkCList *clist, + gint row, + gpointer data); + +/* sets a data pointer for a given row with destroy notification */ +void gtk_clist_set_row_data_full (GtkCList *clist, + gint row, + gpointer data, + GtkDestroyNotify destroy); + +/* returns the data set for a row */ +gpointer gtk_clist_get_row_data (GtkCList *clist, + gint row); + +/* givin a data pointer, find the first (and hopefully only!) + * row that points to that data, or -1 if none do + */ +gint gtk_clist_find_row_from_data (GtkCList *clist, + gpointer data); + +/* force selection of a row */ +void gtk_clist_select_row (GtkCList *clist, + gint row, + gint column); + +/* force unselection of a row */ +void gtk_clist_unselect_row (GtkCList *clist, + gint row, + gint column); + +/* undo the last select/unselect operation */ +void gtk_clist_undo_selection (GtkCList *clist); + +/* clear the entire list -- this is much faster than removing + * each item with gtk_clist_remove + */ +void gtk_clist_clear (GtkCList *clist); + +/* return the row column corresponding to the x and y coordinates, + * the returned values are only valid if the x and y coordinates + * are respectively to a window == clist->clist_window + */ +gint gtk_clist_get_selection_info (GtkCList *clist, + gint x, + gint y, + gint *row, + gint *column); + +/* in multiple or extended mode, select all rows */ +void gtk_clist_select_all (GtkCList *clist); + +/* in all modes except browse mode, deselect all rows */ +void gtk_clist_unselect_all (GtkCList *clist); + +/* swap the position of two rows */ +void gtk_clist_swap_rows (GtkCList *clist, + gint row1, + gint row2); + +/* move row from source_row position to dest_row position */ +void gtk_clist_row_move (GtkCList *clist, + gint source_row, + gint dest_row); + +/* sets a compare function different to the default */ +void gtk_clist_set_compare_func (GtkCList *clist, + GtkCListCompareFunc cmp_func); + +/* the column to sort by */ +void gtk_clist_set_sort_column (GtkCList *clist, + gint column); + +/* how to sort : ascending or descending */ +void gtk_clist_set_sort_type (GtkCList *clist, + GtkSortType sort_type); + +/* sort the list with the current compare function */ +void gtk_clist_sort (GtkCList *clist); + +/* Automatically sort upon insertion */ +void gtk_clist_set_auto_sort (GtkCList *clist, + gboolean auto_sort); + +/* Private function for clist, ctree */ + +PangoLayout *_gtk_clist_create_cell_layout (GtkCList *clist, + GtkCListRow *clist_row, + gint column); + + +G_END_DECLS + + +#endif /* __GTK_CLIST_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcolorbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcolorbutton.h new file mode 100644 index 00000000..b6a00fdf --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcolorbutton.h @@ -0,0 +1,102 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with the Gnome Library; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +/* Color picker button for GNOME + * + * Author: Federico Mena <federico@nuclecu.unam.mx> + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_COLOR_BUTTON_H__ +#define __GTK_COLOR_BUTTON_H__ + + +#include <gtk/gtkbutton.h> + +G_BEGIN_DECLS + + +/* The GtkColorSelectionButton widget is a simple color picker in a button. + * The button displays a sample of the currently selected color. When + * the user clicks on the button, a color selection dialog pops up. + * The color picker emits the "color_set" signal when the color is set. + */ + +#define GTK_TYPE_COLOR_BUTTON (gtk_color_button_get_type ()) +#define GTK_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_BUTTON, GtkColorButton)) +#define GTK_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_BUTTON, GtkColorButtonClass)) +#define GTK_IS_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_BUTTON)) +#define GTK_IS_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_BUTTON)) +#define GTK_COLOR_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_BUTTON, GtkColorButtonClass)) + +typedef struct _GtkColorButton GtkColorButton; +typedef struct _GtkColorButtonClass GtkColorButtonClass; +typedef struct _GtkColorButtonPrivate GtkColorButtonPrivate; + +struct _GtkColorButton { + GtkButton button; + + /*< private >*/ + + GtkColorButtonPrivate *priv; +}; + +struct _GtkColorButtonClass { + GtkButtonClass parent_class; + + void (* color_set) (GtkColorButton *cp); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_color_button_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_color_button_new (void); +GtkWidget *gtk_color_button_new_with_color (const GdkColor *color); +void gtk_color_button_set_color (GtkColorButton *color_button, + const GdkColor *color); +void gtk_color_button_set_alpha (GtkColorButton *color_button, + guint16 alpha); +void gtk_color_button_get_color (GtkColorButton *color_button, + GdkColor *color); +guint16 gtk_color_button_get_alpha (GtkColorButton *color_button); +void gtk_color_button_set_use_alpha (GtkColorButton *color_button, + gboolean use_alpha); +gboolean gtk_color_button_get_use_alpha (GtkColorButton *color_button); +void gtk_color_button_set_title (GtkColorButton *color_button, + const gchar *title); +G_CONST_RETURN gchar *gtk_color_button_get_title (GtkColorButton *color_button); + + +G_END_DECLS + +#endif /* __GTK_COLOR_BUTTON_H__ */ + + + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcolorsel.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcolorsel.h new file mode 100644 index 00000000..8cfc3c93 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcolorsel.h @@ -0,0 +1,130 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ +#ifndef __GTK_COLOR_SELECTION_H__ +#define __GTK_COLOR_SELECTION_H__ + +#include <gtk/gtkdialog.h> +#include <gtk/gtkvbox.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_COLOR_SELECTION (gtk_color_selection_get_type ()) +#define GTK_COLOR_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_SELECTION, GtkColorSelection)) +#define GTK_COLOR_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_SELECTION, GtkColorSelectionClass)) +#define GTK_IS_COLOR_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_SELECTION)) +#define GTK_IS_COLOR_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_SELECTION)) +#define GTK_COLOR_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_SELECTION, GtkColorSelectionClass)) + + +typedef struct _GtkColorSelection GtkColorSelection; +typedef struct _GtkColorSelectionClass GtkColorSelectionClass; + + +typedef void (* GtkColorSelectionChangePaletteFunc) (const GdkColor *colors, + gint n_colors); +typedef void (* GtkColorSelectionChangePaletteWithScreenFunc) (GdkScreen *screen, + const GdkColor *colors, + gint n_colors); + +struct _GtkColorSelection +{ + GtkVBox parent_instance; + + /* < private_data > */ + gpointer private_data; +}; + +struct _GtkColorSelectionClass +{ + GtkVBoxClass parent_class; + + void (*color_changed) (GtkColorSelection *color_selection); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +/* ColorSelection */ + +GType gtk_color_selection_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_color_selection_new (void); +gboolean gtk_color_selection_get_has_opacity_control (GtkColorSelection *colorsel); +void gtk_color_selection_set_has_opacity_control (GtkColorSelection *colorsel, + gboolean has_opacity); +gboolean gtk_color_selection_get_has_palette (GtkColorSelection *colorsel); +void gtk_color_selection_set_has_palette (GtkColorSelection *colorsel, + gboolean has_palette); + + +void gtk_color_selection_set_current_color (GtkColorSelection *colorsel, + const GdkColor *color); +void gtk_color_selection_set_current_alpha (GtkColorSelection *colorsel, + guint16 alpha); +void gtk_color_selection_get_current_color (GtkColorSelection *colorsel, + GdkColor *color); +guint16 gtk_color_selection_get_current_alpha (GtkColorSelection *colorsel); +void gtk_color_selection_set_previous_color (GtkColorSelection *colorsel, + const GdkColor *color); +void gtk_color_selection_set_previous_alpha (GtkColorSelection *colorsel, + guint16 alpha); +void gtk_color_selection_get_previous_color (GtkColorSelection *colorsel, + GdkColor *color); +guint16 gtk_color_selection_get_previous_alpha (GtkColorSelection *colorsel); + +gboolean gtk_color_selection_is_adjusting (GtkColorSelection *colorsel); + +gboolean gtk_color_selection_palette_from_string (const gchar *str, + GdkColor **colors, + gint *n_colors); +gchar* gtk_color_selection_palette_to_string (const GdkColor *colors, + gint n_colors); + +#ifndef GTK_DISABLE_DEPRECATED +#ifndef GDK_MULTIHEAD_SAFE +GtkColorSelectionChangePaletteFunc gtk_color_selection_set_change_palette_hook (GtkColorSelectionChangePaletteFunc func); +#endif +#endif + +GtkColorSelectionChangePaletteWithScreenFunc gtk_color_selection_set_change_palette_with_screen_hook (GtkColorSelectionChangePaletteWithScreenFunc func); + +#ifndef GTK_DISABLE_DEPRECATED +/* Deprecated calls: */ +void gtk_color_selection_set_color (GtkColorSelection *colorsel, + gdouble *color); +void gtk_color_selection_get_color (GtkColorSelection *colorsel, + gdouble *color); +void gtk_color_selection_set_update_policy (GtkColorSelection *colorsel, + GtkUpdateType policy); +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_COLOR_SELECTION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcolorseldialog.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcolorseldialog.h new file mode 100644 index 00000000..7ad02491 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcolorseldialog.h @@ -0,0 +1,76 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ +#ifndef __GTK_COLOR_SELECTION_DIALOG_H__ +#define __GTK_COLOR_SELECTION_DIALOG_H__ + +#include <gtk/gtkdialog.h> +#include <gtk/gtkcolorsel.h> +#include <gtk/gtkvbox.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_COLOR_SELECTION_DIALOG (gtk_color_selection_dialog_get_type ()) +#define GTK_COLOR_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_SELECTION_DIALOG, GtkColorSelectionDialog)) +#define GTK_COLOR_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_SELECTION_DIALOG, GtkColorSelectionDialogClass)) +#define GTK_IS_COLOR_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_SELECTION_DIALOG)) +#define GTK_IS_COLOR_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_SELECTION_DIALOG)) +#define GTK_COLOR_SELECTION_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_SELECTION_DIALOG, GtkColorSelectionDialogClass)) + + +typedef struct _GtkColorSelectionDialog GtkColorSelectionDialog; +typedef struct _GtkColorSelectionDialogClass GtkColorSelectionDialogClass; + + +struct _GtkColorSelectionDialog +{ + GtkDialog parent_instance; + + GtkWidget *colorsel; + GtkWidget *ok_button; + GtkWidget *cancel_button; + GtkWidget *help_button; +}; + +struct _GtkColorSelectionDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +/* ColorSelectionDialog */ +GType gtk_color_selection_dialog_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_color_selection_dialog_new (const gchar *title); + + +G_END_DECLS + +#endif /* __GTK_COLOR_SELECTION_DIALOG_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcombo.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcombo.h new file mode 100644 index 00000000..31655af3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcombo.h @@ -0,0 +1,118 @@ +/* gtkcombo - combo widget for gtk+ + * Copyright 1997 Paolo Molaro + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_SMART_COMBO_H__ +#define __GTK_SMART_COMBO_H__ + +#include <gtk/gtkhbox.h> +#include <gtk/gtkitem.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_COMBO (gtk_combo_get_type ()) +#define GTK_COMBO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO, GtkCombo)) +#define GTK_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COMBO, GtkComboClass)) +#define GTK_IS_COMBO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO)) +#define GTK_IS_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COMBO)) +#define GTK_COMBO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COMBO, GtkComboClass)) + + +typedef struct _GtkCombo GtkCombo; +typedef struct _GtkComboClass GtkComboClass; + +/* you should access only the entry and list fields directly */ +struct _GtkCombo { + GtkHBox hbox; + + /*< public >*/ + GtkWidget *entry; + + /*< private >*/ + GtkWidget *button; + GtkWidget *popup; + GtkWidget *popwin; + + /*< public >*/ + GtkWidget *list; + + /*< private >*/ + guint entry_change_id; + guint list_change_id; /* unused */ + + guint value_in_list:1; + guint ok_if_empty:1; + guint case_sensitive:1; + guint use_arrows:1; + guint use_arrows_always:1; + + guint16 current_button; + guint activate_id; +}; + +struct _GtkComboClass { + GtkHBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_combo_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_combo_new (void); +/* the text in the entry must be or not be in the list */ +void gtk_combo_set_value_in_list (GtkCombo* combo, + gboolean val, + gboolean ok_if_empty); +/* set/unset arrows working for changing the value (can be annoying) */ +void gtk_combo_set_use_arrows (GtkCombo* combo, + gboolean val); +/* up/down arrows change value if current value not in list */ +void gtk_combo_set_use_arrows_always (GtkCombo* combo, + gboolean val); +/* perform case-sensitive compares */ +void gtk_combo_set_case_sensitive (GtkCombo* combo, + gboolean val); +/* call this function on an item if it isn't a label or you + want it to have a different value to be displayed in the entry */ +void gtk_combo_set_item_string (GtkCombo* combo, + GtkItem* item, + const gchar* item_value); +/* simple interface */ +void gtk_combo_set_popdown_strings (GtkCombo* combo, + GList *strings); + +void gtk_combo_disable_activate (GtkCombo* combo); + +G_END_DECLS + +#endif /* __GTK_SMART_COMBO_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcombobox.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcombobox.h new file mode 100644 index 00000000..6ab2d954 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcombobox.h @@ -0,0 +1,136 @@ +/* gtkcombobox.h + * Copyright (C) 2002, 2003 Kristian Rietveld <kris@gtk.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_COMBO_BOX_H__ +#define __GTK_COMBO_BOX_H__ + +#include <gtk/gtkbin.h> +#include <gtk/gtktreemodel.h> +#include <gtk/gtktreeview.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_COMBO_BOX (gtk_combo_box_get_type ()) +#define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) +#define GTK_COMBO_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_COMBO_BOX, GtkComboBoxClass)) +#define GTK_IS_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO_BOX)) +#define GTK_IS_COMBO_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_COMBO_BOX)) +#define GTK_COMBO_BOX_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_COMBO_BOX, GtkComboBoxClass)) + +typedef struct _GtkComboBox GtkComboBox; +typedef struct _GtkComboBoxClass GtkComboBoxClass; +typedef struct _GtkComboBoxPrivate GtkComboBoxPrivate; + +struct _GtkComboBox +{ + GtkBin parent_instance; + + /*< private >*/ + GtkComboBoxPrivate *priv; +}; + +struct _GtkComboBoxClass +{ + GtkBinClass parent_class; + + /* signals */ + void (* changed) (GtkComboBox *combo_box); + + /* vfuncs */ + gchar * (* get_active_text) (GtkComboBox *combo_box); + + /* Padding for future expansion */ + void (*_gtk_reserved0) (void); + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); +}; + + +/* construction */ +GType gtk_combo_box_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_combo_box_new (void); +GtkWidget *gtk_combo_box_new_with_model (GtkTreeModel *model); + +/* grids */ +gint gtk_combo_box_get_wrap_width (GtkComboBox *combo_box); +void gtk_combo_box_set_wrap_width (GtkComboBox *combo_box, + gint width); +gint gtk_combo_box_get_row_span_column (GtkComboBox *combo_box); +void gtk_combo_box_set_row_span_column (GtkComboBox *combo_box, + gint row_span); +gint gtk_combo_box_get_column_span_column (GtkComboBox *combo_box); +void gtk_combo_box_set_column_span_column (GtkComboBox *combo_box, + gint column_span); + +gboolean gtk_combo_box_get_add_tearoffs (GtkComboBox *combo_box); +void gtk_combo_box_set_add_tearoffs (GtkComboBox *combo_box, + gboolean add_tearoffs); + +G_CONST_RETURN gchar *gtk_combo_box_get_title (GtkComboBox *combo_box); +void gtk_combo_box_set_title (GtkComboBox *combo_box, + const gchar *title); + +gboolean gtk_combo_box_get_focus_on_click (GtkComboBox *combo); +void gtk_combo_box_set_focus_on_click (GtkComboBox *combo, + gboolean focus_on_click); + +/* get/set active item */ +gint gtk_combo_box_get_active (GtkComboBox *combo_box); +void gtk_combo_box_set_active (GtkComboBox *combo_box, + gint index_); +gboolean gtk_combo_box_get_active_iter (GtkComboBox *combo_box, + GtkTreeIter *iter); +void gtk_combo_box_set_active_iter (GtkComboBox *combo_box, + GtkTreeIter *iter); + +/* getters and setters */ +void gtk_combo_box_set_model (GtkComboBox *combo_box, + GtkTreeModel *model); +GtkTreeModel *gtk_combo_box_get_model (GtkComboBox *combo_box); + +GtkTreeViewRowSeparatorFunc gtk_combo_box_get_row_separator_func (GtkComboBox *combo_box); +void gtk_combo_box_set_row_separator_func (GtkComboBox *combo_box, + GtkTreeViewRowSeparatorFunc func, + gpointer data, + GtkDestroyNotify destroy); + +/* convenience -- text */ +GtkWidget *gtk_combo_box_new_text (void); +void gtk_combo_box_append_text (GtkComboBox *combo_box, + const gchar *text); +void gtk_combo_box_insert_text (GtkComboBox *combo_box, + gint position, + const gchar *text); +void gtk_combo_box_prepend_text (GtkComboBox *combo_box, + const gchar *text); +void gtk_combo_box_remove_text (GtkComboBox *combo_box, + gint position); +gchar *gtk_combo_box_get_active_text (GtkComboBox *combo_box); + +/* programmatic control */ +void gtk_combo_box_popup (GtkComboBox *combo_box); +void gtk_combo_box_popdown (GtkComboBox *combo_box); +AtkObject* gtk_combo_box_get_popup_accessible (GtkComboBox *combo_box); + +/* private */ +gboolean _gtk_combo_box_editing_canceled (GtkComboBox *combo_box); + +G_END_DECLS + +#endif /* __GTK_COMBO_BOX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcomboboxentry.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcomboboxentry.h new file mode 100644 index 00000000..5fc71d10 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcomboboxentry.h @@ -0,0 +1,74 @@ +/* gtkcomboboxentry.h + * Copyright (C) 2002, 2003 Kristian Rietveld <kris@gtk.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_COMBO_BOX_ENTRY_H__ +#define __GTK_COMBO_BOX_ENTRY_H__ + +#include <gtk/gtkcombobox.h> +#include <gtk/gtktreemodel.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_COMBO_BOX_ENTRY (gtk_combo_box_entry_get_type ()) +#define GTK_COMBO_BOX_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX_ENTRY, GtkComboBoxEntry)) +#define GTK_COMBO_BOX_ENTRY_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_COMBO_BOX_ENTRY, GtkComboBoxEntryClass)) +#define GTK_IS_COMBO_BOX_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO_BOX_ENTRY)) +#define GTK_IS_COMBO_BOX_ENTRY_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_COMBO_BOX_ENTRY)) +#define GTK_COMBO_BOX_ENTRY_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_COMBO_BOX_ENTRY, GtkComboBoxEntryClass)) + +typedef struct _GtkComboBoxEntry GtkComboBoxEntry; +typedef struct _GtkComboBoxEntryClass GtkComboBoxEntryClass; +typedef struct _GtkComboBoxEntryPrivate GtkComboBoxEntryPrivate; + +struct _GtkComboBoxEntry +{ + GtkComboBox parent_instance; + + /*< private >*/ + GtkComboBoxEntryPrivate *priv; +}; + +struct _GtkComboBoxEntryClass +{ + GtkComboBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved0) (void); + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); +}; + + +GType gtk_combo_box_entry_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_combo_box_entry_new (void); +GtkWidget *gtk_combo_box_entry_new_with_model (GtkTreeModel *model, + gint text_column); + +void gtk_combo_box_entry_set_text_column (GtkComboBoxEntry *entry_box, + gint text_column); +gint gtk_combo_box_entry_get_text_column (GtkComboBoxEntry *entry_box); + +/* convenience -- text */ +GtkWidget *gtk_combo_box_entry_new_text (void); + + +G_END_DECLS + +#endif /* __GTK_COMBO_BOX_ENTRY_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcontainer.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcontainer.h new file mode 100644 index 00000000..612fe8bc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcontainer.h @@ -0,0 +1,225 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_CONTAINER_H__ +#define __GTK_CONTAINER_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkenums.h> +#include <gtk/gtkwidget.h> +#include <gtk/gtkadjustment.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_CONTAINER (gtk_container_get_type ()) +#define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer)) +#define GTK_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CONTAINER, GtkContainerClass)) +#define GTK_IS_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CONTAINER)) +#define GTK_IS_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CONTAINER)) +#define GTK_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CONTAINER, GtkContainerClass)) + +#define GTK_IS_RESIZE_CONTAINER(widget) (GTK_IS_CONTAINER (widget) && ((GtkContainer*) (widget))->resize_mode != GTK_RESIZE_PARENT) + + +typedef struct _GtkContainer GtkContainer; +typedef struct _GtkContainerClass GtkContainerClass; + +struct _GtkContainer +{ + GtkWidget widget; + + GtkWidget *focus_child; + + guint border_width : 16; + + /*< private >*/ + guint need_resize : 1; + guint resize_mode : 2; + guint reallocate_redraws : 1; + guint has_focus_chain : 1; +}; + +struct _GtkContainerClass +{ + GtkWidgetClass parent_class; + + void (*add) (GtkContainer *container, + GtkWidget *widget); + void (*remove) (GtkContainer *container, + GtkWidget *widget); + void (*check_resize) (GtkContainer *container); + void (*forall) (GtkContainer *container, + gboolean include_internals, + GtkCallback callback, + gpointer callback_data); + void (*set_focus_child) (GtkContainer *container, + GtkWidget *widget); + GType (*child_type) (GtkContainer *container); + gchar* (*composite_name) (GtkContainer *container, + GtkWidget *child); + void (*set_child_property) (GtkContainer *container, + GtkWidget *child, + guint property_id, + const GValue *value, + GParamSpec *pspec); + void (*get_child_property) (GtkContainer *container, + GtkWidget *child, + guint property_id, + GValue *value, + GParamSpec *pspec); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +/* Application-level methods */ + +GType gtk_container_get_type (void) G_GNUC_CONST; +void gtk_container_set_border_width (GtkContainer *container, + guint border_width); +guint gtk_container_get_border_width (GtkContainer *container); +void gtk_container_add (GtkContainer *container, + GtkWidget *widget); +void gtk_container_remove (GtkContainer *container, + GtkWidget *widget); + +void gtk_container_set_resize_mode (GtkContainer *container, + GtkResizeMode resize_mode); +GtkResizeMode gtk_container_get_resize_mode (GtkContainer *container); + +void gtk_container_check_resize (GtkContainer *container); + +void gtk_container_foreach (GtkContainer *container, + GtkCallback callback, + gpointer callback_data); +#ifndef GTK_DISABLE_DEPRECATED +void gtk_container_foreach_full (GtkContainer *container, + GtkCallback callback, + GtkCallbackMarshal marshal, + gpointer callback_data, + GtkDestroyNotify notify); +#endif /* GTK_DISABLE_DEPRECATED */ +GList* gtk_container_get_children (GtkContainer *container); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_container_children gtk_container_get_children +#endif + +void gtk_container_propagate_expose (GtkContainer *container, + GtkWidget *child, + GdkEventExpose *event); + +void gtk_container_set_focus_chain (GtkContainer *container, + GList *focusable_widgets); +gboolean gtk_container_get_focus_chain (GtkContainer *container, + GList **focusable_widgets); +void gtk_container_unset_focus_chain (GtkContainer *container); + +/* Widget-level methods */ + +void gtk_container_set_reallocate_redraws (GtkContainer *container, + gboolean needs_redraws); +void gtk_container_set_focus_child (GtkContainer *container, + GtkWidget *child); +void gtk_container_set_focus_vadjustment (GtkContainer *container, + GtkAdjustment *adjustment); +GtkAdjustment *gtk_container_get_focus_vadjustment (GtkContainer *container); +void gtk_container_set_focus_hadjustment (GtkContainer *container, + GtkAdjustment *adjustment); +GtkAdjustment *gtk_container_get_focus_hadjustment (GtkContainer *container); + +void gtk_container_resize_children (GtkContainer *container); + +GType gtk_container_child_type (GtkContainer *container); + + +void gtk_container_class_install_child_property (GtkContainerClass *cclass, + guint property_id, + GParamSpec *pspec); +GParamSpec* gtk_container_class_find_child_property (GObjectClass *cclass, + const gchar *property_name); +GParamSpec** gtk_container_class_list_child_properties (GObjectClass *cclass, + guint *n_properties); +void gtk_container_add_with_properties (GtkContainer *container, + GtkWidget *widget, + const gchar *first_prop_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_container_child_set (GtkContainer *container, + GtkWidget *child, + const gchar *first_prop_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_container_child_get (GtkContainer *container, + GtkWidget *child, + const gchar *first_prop_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_container_child_set_valist (GtkContainer *container, + GtkWidget *child, + const gchar *first_property_name, + va_list var_args); +void gtk_container_child_get_valist (GtkContainer *container, + GtkWidget *child, + const gchar *first_property_name, + va_list var_args); +void gtk_container_child_set_property (GtkContainer *container, + GtkWidget *child, + const gchar *property_name, + const GValue *value); +void gtk_container_child_get_property (GtkContainer *container, + GtkWidget *child, + const gchar *property_name, + GValue *value); + +#define GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID(object, property_id, pspec) \ + G_OBJECT_WARN_INVALID_PSPEC ((object), "child property id", (property_id), (pspec)) + + +void gtk_container_forall (GtkContainer *container, + GtkCallback callback, + gpointer callback_data); + +/* Non-public methods */ +void _gtk_container_queue_resize (GtkContainer *container); +void _gtk_container_clear_resize_widgets (GtkContainer *container); +gchar* _gtk_container_child_composite_name (GtkContainer *container, + GtkWidget *child); +void _gtk_container_dequeue_resize_handler (GtkContainer *container); +GList *_gtk_container_focus_sort (GtkContainer *container, + GList *children, + GtkDirectionType direction, + GtkWidget *old_focus); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_container_border_width gtk_container_set_border_width +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_CONTAINER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkctree.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkctree.h new file mode 100644 index 00000000..a67ee5f9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkctree.h @@ -0,0 +1,445 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball, Josh MacDonald + * Copyright (C) 1997-1998 Jay Painter <jpaint@serv.net><jpaint@gimp.org> + * + * GtkCTree widget for GTK+ + * Copyright (C) 1998 Lars Hamann and Stefan Jeske + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_CTREE_H__ +#define __GTK_CTREE_H__ + +#include <gtk/gtkclist.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_CTREE (gtk_ctree_get_type ()) +#define GTK_CTREE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CTREE, GtkCTree)) +#define GTK_CTREE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CTREE, GtkCTreeClass)) +#define GTK_IS_CTREE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CTREE)) +#define GTK_IS_CTREE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CTREE)) +#define GTK_CTREE_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CTREE, GtkCTreeClass)) + +#define GTK_CTREE_ROW(_node_) ((GtkCTreeRow *)(((GList *)(_node_))->data)) +#define GTK_CTREE_NODE(_node_) ((GtkCTreeNode *)((_node_))) +#define GTK_CTREE_NODE_NEXT(_nnode_) ((GtkCTreeNode *)(((GList *)(_nnode_))->next)) +#define GTK_CTREE_NODE_PREV(_pnode_) ((GtkCTreeNode *)(((GList *)(_pnode_))->prev)) +#define GTK_CTREE_FUNC(_func_) ((GtkCTreeFunc)(_func_)) + +#define GTK_TYPE_CTREE_NODE (gtk_ctree_node_get_type ()) + +typedef enum +{ + GTK_CTREE_POS_BEFORE, + GTK_CTREE_POS_AS_CHILD, + GTK_CTREE_POS_AFTER +} GtkCTreePos; + +typedef enum +{ + GTK_CTREE_LINES_NONE, + GTK_CTREE_LINES_SOLID, + GTK_CTREE_LINES_DOTTED, + GTK_CTREE_LINES_TABBED +} GtkCTreeLineStyle; + +typedef enum +{ + GTK_CTREE_EXPANDER_NONE, + GTK_CTREE_EXPANDER_SQUARE, + GTK_CTREE_EXPANDER_TRIANGLE, + GTK_CTREE_EXPANDER_CIRCULAR +} GtkCTreeExpanderStyle; + +typedef enum +{ + GTK_CTREE_EXPANSION_EXPAND, + GTK_CTREE_EXPANSION_EXPAND_RECURSIVE, + GTK_CTREE_EXPANSION_COLLAPSE, + GTK_CTREE_EXPANSION_COLLAPSE_RECURSIVE, + GTK_CTREE_EXPANSION_TOGGLE, + GTK_CTREE_EXPANSION_TOGGLE_RECURSIVE +} GtkCTreeExpansionType; + +typedef struct _GtkCTree GtkCTree; +typedef struct _GtkCTreeClass GtkCTreeClass; +typedef struct _GtkCTreeRow GtkCTreeRow; +typedef struct _GtkCTreeNode GtkCTreeNode; + +typedef void (*GtkCTreeFunc) (GtkCTree *ctree, + GtkCTreeNode *node, + gpointer data); + +typedef gboolean (*GtkCTreeGNodeFunc) (GtkCTree *ctree, + guint depth, + GNode *gnode, + GtkCTreeNode *cnode, + gpointer data); + +typedef gboolean (*GtkCTreeCompareDragFunc) (GtkCTree *ctree, + GtkCTreeNode *source_node, + GtkCTreeNode *new_parent, + GtkCTreeNode *new_sibling); + +struct _GtkCTree +{ + GtkCList clist; + + GdkGC *lines_gc; + + gint tree_indent; + gint tree_spacing; + gint tree_column; + + guint line_style : 2; + guint expander_style : 2; + guint show_stub : 1; + + GtkCTreeCompareDragFunc drag_compare; +}; + +struct _GtkCTreeClass +{ + GtkCListClass parent_class; + + void (*tree_select_row) (GtkCTree *ctree, + GtkCTreeNode *row, + gint column); + void (*tree_unselect_row) (GtkCTree *ctree, + GtkCTreeNode *row, + gint column); + void (*tree_expand) (GtkCTree *ctree, + GtkCTreeNode *node); + void (*tree_collapse) (GtkCTree *ctree, + GtkCTreeNode *node); + void (*tree_move) (GtkCTree *ctree, + GtkCTreeNode *node, + GtkCTreeNode *new_parent, + GtkCTreeNode *new_sibling); + void (*change_focus_row_expansion) (GtkCTree *ctree, + GtkCTreeExpansionType action); +}; + +struct _GtkCTreeRow +{ + GtkCListRow row; + + GtkCTreeNode *parent; + GtkCTreeNode *sibling; + GtkCTreeNode *children; + + GdkPixmap *pixmap_closed; + GdkBitmap *mask_closed; + GdkPixmap *pixmap_opened; + GdkBitmap *mask_opened; + + guint16 level; + + guint is_leaf : 1; + guint expanded : 1; +}; + +struct _GtkCTreeNode { + GList list; +}; + + +/*********************************************************** + * Creation, insertion, deletion * + ***********************************************************/ + +GtkType gtk_ctree_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_ctree_new_with_titles (gint columns, + gint tree_column, + gchar *titles[]); +GtkWidget * gtk_ctree_new (gint columns, + gint tree_column); +GtkCTreeNode * gtk_ctree_insert_node (GtkCTree *ctree, + GtkCTreeNode *parent, + GtkCTreeNode *sibling, + gchar *text[], + guint8 spacing, + GdkPixmap *pixmap_closed, + GdkBitmap *mask_closed, + GdkPixmap *pixmap_opened, + GdkBitmap *mask_opened, + gboolean is_leaf, + gboolean expanded); +void gtk_ctree_remove_node (GtkCTree *ctree, + GtkCTreeNode *node); +GtkCTreeNode * gtk_ctree_insert_gnode (GtkCTree *ctree, + GtkCTreeNode *parent, + GtkCTreeNode *sibling, + GNode *gnode, + GtkCTreeGNodeFunc func, + gpointer data); +GNode * gtk_ctree_export_to_gnode (GtkCTree *ctree, + GNode *parent, + GNode *sibling, + GtkCTreeNode *node, + GtkCTreeGNodeFunc func, + gpointer data); + +/*********************************************************** + * Generic recursive functions, querying / finding tree * + * information * + ***********************************************************/ + +void gtk_ctree_post_recursive (GtkCTree *ctree, + GtkCTreeNode *node, + GtkCTreeFunc func, + gpointer data); +void gtk_ctree_post_recursive_to_depth (GtkCTree *ctree, + GtkCTreeNode *node, + gint depth, + GtkCTreeFunc func, + gpointer data); +void gtk_ctree_pre_recursive (GtkCTree *ctree, + GtkCTreeNode *node, + GtkCTreeFunc func, + gpointer data); +void gtk_ctree_pre_recursive_to_depth (GtkCTree *ctree, + GtkCTreeNode *node, + gint depth, + GtkCTreeFunc func, + gpointer data); +gboolean gtk_ctree_is_viewable (GtkCTree *ctree, + GtkCTreeNode *node); +GtkCTreeNode * gtk_ctree_last (GtkCTree *ctree, + GtkCTreeNode *node); +GtkCTreeNode * gtk_ctree_find_node_ptr (GtkCTree *ctree, + GtkCTreeRow *ctree_row); +GtkCTreeNode * gtk_ctree_node_nth (GtkCTree *ctree, + guint row); +gboolean gtk_ctree_find (GtkCTree *ctree, + GtkCTreeNode *node, + GtkCTreeNode *child); +gboolean gtk_ctree_is_ancestor (GtkCTree *ctree, + GtkCTreeNode *node, + GtkCTreeNode *child); +GtkCTreeNode * gtk_ctree_find_by_row_data (GtkCTree *ctree, + GtkCTreeNode *node, + gpointer data); +/* returns a GList of all GtkCTreeNodes with row->data == data. */ +GList * gtk_ctree_find_all_by_row_data (GtkCTree *ctree, + GtkCTreeNode *node, + gpointer data); +GtkCTreeNode * gtk_ctree_find_by_row_data_custom (GtkCTree *ctree, + GtkCTreeNode *node, + gpointer data, + GCompareFunc func); +/* returns a GList of all GtkCTreeNodes with row->data == data. */ +GList * gtk_ctree_find_all_by_row_data_custom (GtkCTree *ctree, + GtkCTreeNode *node, + gpointer data, + GCompareFunc func); +gboolean gtk_ctree_is_hot_spot (GtkCTree *ctree, + gint x, + gint y); + +/*********************************************************** + * Tree signals : move, expand, collapse, (un)select * + ***********************************************************/ + +void gtk_ctree_move (GtkCTree *ctree, + GtkCTreeNode *node, + GtkCTreeNode *new_parent, + GtkCTreeNode *new_sibling); +void gtk_ctree_expand (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_expand_recursive (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_expand_to_depth (GtkCTree *ctree, + GtkCTreeNode *node, + gint depth); +void gtk_ctree_collapse (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_collapse_recursive (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_collapse_to_depth (GtkCTree *ctree, + GtkCTreeNode *node, + gint depth); +void gtk_ctree_toggle_expansion (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_toggle_expansion_recursive (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_select (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_select_recursive (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_unselect (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_unselect_recursive (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_real_select_recursive (GtkCTree *ctree, + GtkCTreeNode *node, + gint state); + +/*********************************************************** + * Analogons of GtkCList functions * + ***********************************************************/ + +void gtk_ctree_node_set_text (GtkCTree *ctree, + GtkCTreeNode *node, + gint column, + const gchar *text); +void gtk_ctree_node_set_pixmap (GtkCTree *ctree, + GtkCTreeNode *node, + gint column, + GdkPixmap *pixmap, + GdkBitmap *mask); +void gtk_ctree_node_set_pixtext (GtkCTree *ctree, + GtkCTreeNode *node, + gint column, + const gchar *text, + guint8 spacing, + GdkPixmap *pixmap, + GdkBitmap *mask); +void gtk_ctree_set_node_info (GtkCTree *ctree, + GtkCTreeNode *node, + const gchar *text, + guint8 spacing, + GdkPixmap *pixmap_closed, + GdkBitmap *mask_closed, + GdkPixmap *pixmap_opened, + GdkBitmap *mask_opened, + gboolean is_leaf, + gboolean expanded); +void gtk_ctree_node_set_shift (GtkCTree *ctree, + GtkCTreeNode *node, + gint column, + gint vertical, + gint horizontal); +void gtk_ctree_node_set_selectable (GtkCTree *ctree, + GtkCTreeNode *node, + gboolean selectable); +gboolean gtk_ctree_node_get_selectable (GtkCTree *ctree, + GtkCTreeNode *node); +GtkCellType gtk_ctree_node_get_cell_type (GtkCTree *ctree, + GtkCTreeNode *node, + gint column); +gboolean gtk_ctree_node_get_text (GtkCTree *ctree, + GtkCTreeNode *node, + gint column, + gchar **text); +gboolean gtk_ctree_node_get_pixmap (GtkCTree *ctree, + GtkCTreeNode *node, + gint column, + GdkPixmap **pixmap, + GdkBitmap **mask); +gboolean gtk_ctree_node_get_pixtext (GtkCTree *ctree, + GtkCTreeNode *node, + gint column, + gchar **text, + guint8 *spacing, + GdkPixmap **pixmap, + GdkBitmap **mask); +gboolean gtk_ctree_get_node_info (GtkCTree *ctree, + GtkCTreeNode *node, + gchar **text, + guint8 *spacing, + GdkPixmap **pixmap_closed, + GdkBitmap **mask_closed, + GdkPixmap **pixmap_opened, + GdkBitmap **mask_opened, + gboolean *is_leaf, + gboolean *expanded); +void gtk_ctree_node_set_row_style (GtkCTree *ctree, + GtkCTreeNode *node, + GtkStyle *style); +GtkStyle * gtk_ctree_node_get_row_style (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_node_set_cell_style (GtkCTree *ctree, + GtkCTreeNode *node, + gint column, + GtkStyle *style); +GtkStyle * gtk_ctree_node_get_cell_style (GtkCTree *ctree, + GtkCTreeNode *node, + gint column); +void gtk_ctree_node_set_foreground (GtkCTree *ctree, + GtkCTreeNode *node, + const GdkColor *color); +void gtk_ctree_node_set_background (GtkCTree *ctree, + GtkCTreeNode *node, + const GdkColor *color); +void gtk_ctree_node_set_row_data (GtkCTree *ctree, + GtkCTreeNode *node, + gpointer data); +void gtk_ctree_node_set_row_data_full (GtkCTree *ctree, + GtkCTreeNode *node, + gpointer data, + GtkDestroyNotify destroy); +gpointer gtk_ctree_node_get_row_data (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_node_moveto (GtkCTree *ctree, + GtkCTreeNode *node, + gint column, + gfloat row_align, + gfloat col_align); +GtkVisibility gtk_ctree_node_is_visible (GtkCTree *ctree, + GtkCTreeNode *node); + +/*********************************************************** + * GtkCTree specific functions * + ***********************************************************/ + +void gtk_ctree_set_indent (GtkCTree *ctree, + gint indent); +void gtk_ctree_set_spacing (GtkCTree *ctree, + gint spacing); +void gtk_ctree_set_show_stub (GtkCTree *ctree, + gboolean show_stub); +void gtk_ctree_set_line_style (GtkCTree *ctree, + GtkCTreeLineStyle line_style); +void gtk_ctree_set_expander_style (GtkCTree *ctree, + GtkCTreeExpanderStyle expander_style); +void gtk_ctree_set_drag_compare_func (GtkCTree *ctree, + GtkCTreeCompareDragFunc cmp_func); + +/*********************************************************** + * Tree sorting functions * + ***********************************************************/ + +void gtk_ctree_sort_node (GtkCTree *ctree, + GtkCTreeNode *node); +void gtk_ctree_sort_recursive (GtkCTree *ctree, + GtkCTreeNode *node); + + +#define gtk_ctree_set_reorderable(t,r) gtk_clist_set_reorderable((GtkCList*) (t),(r)) + +/* GType for the GtkCTreeNode. This is a boxed type, although it uses + * no-op's for the copy and free routines. It is defined in order to + * provide type information for the signal arguments + */ +GType gtk_ctree_node_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* __GTK_CTREE_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcurve.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcurve.h new file mode 100644 index 00000000..94c2c59b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkcurve.h @@ -0,0 +1,112 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +/* + * NOTE this widget is considered too specialized/little-used for + * GTK+, and will in the future be moved to some other package. If + * your application needs this widget, feel free to use it, as the + * widget does work and is useful in some applications; it's just not + * of general interest. However, we are not accepting new features for + * the widget, and it will eventually move out of the GTK+ + * distribution. + */ + +#ifndef __GTK_CURVE_H__ +#define __GTK_CURVE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkdrawingarea.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_CURVE (gtk_curve_get_type ()) +#define GTK_CURVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CURVE, GtkCurve)) +#define GTK_CURVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CURVE, GtkCurveClass)) +#define GTK_IS_CURVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CURVE)) +#define GTK_IS_CURVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CURVE)) +#define GTK_CURVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CURVE, GtkCurveClass)) + + +typedef struct _GtkCurve GtkCurve; +typedef struct _GtkCurveClass GtkCurveClass; + + +struct _GtkCurve +{ + GtkDrawingArea graph; + + gint cursor_type; + gfloat min_x; + gfloat max_x; + gfloat min_y; + gfloat max_y; + GdkPixmap *pixmap; + GtkCurveType curve_type; + gint height; /* (cached) graph height in pixels */ + gint grab_point; /* point currently grabbed */ + gint last; + + /* (cached) curve points: */ + gint num_points; + GdkPoint *point; + + /* control points: */ + gint num_ctlpoints; /* number of control points */ + gfloat (*ctlpoint)[2]; /* array of control points */ +}; + +struct _GtkCurveClass +{ + GtkDrawingAreaClass parent_class; + + void (* curve_type_changed) (GtkCurve *curve); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_curve_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_curve_new (void); +void gtk_curve_reset (GtkCurve *curve); +void gtk_curve_set_gamma (GtkCurve *curve, gfloat gamma_); +void gtk_curve_set_range (GtkCurve *curve, + gfloat min_x, gfloat max_x, + gfloat min_y, gfloat max_y); +void gtk_curve_get_vector (GtkCurve *curve, + int veclen, gfloat vector[]); +void gtk_curve_set_vector (GtkCurve *curve, + int veclen, gfloat vector[]); +void gtk_curve_set_curve_type (GtkCurve *curve, GtkCurveType type); + + +G_END_DECLS + +#endif /* __GTK_CURVE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdebug.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdebug.h new file mode 100644 index 00000000..5b148c88 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdebug.h @@ -0,0 +1,75 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_DEBUG_H__ +#define __GTK_DEBUG_H__ + +#include <glib.h> + +G_BEGIN_DECLS + +typedef enum { + GTK_DEBUG_MISC = 1 << 0, + GTK_DEBUG_PLUGSOCKET = 1 << 1, + GTK_DEBUG_TEXT = 1 << 2, + GTK_DEBUG_TREE = 1 << 3, + GTK_DEBUG_UPDATES = 1 << 4, + GTK_DEBUG_KEYBINDINGS = 1 << 5, + GTK_DEBUG_MULTIHEAD = 1 << 6, + GTK_DEBUG_MODULES = 1 << 7, + GTK_DEBUG_GEOMETRY = 1 << 8, + GTK_DEBUG_ICONTHEME = 1 << 9, + GTK_DEBUG_PRINTING = 1 << 10, + GTK_DEBUG_BUILDER = 1 << 11 +} GtkDebugFlag; + +#ifdef G_ENABLE_DEBUG + +#define GTK_NOTE(type,action) G_STMT_START { \ + if (gtk_debug_flags & GTK_DEBUG_##type) \ + { action; }; } G_STMT_END + +#else /* !G_ENABLE_DEBUG */ + +#define GTK_NOTE(type, action) + +#endif /* G_ENABLE_DEBUG */ + +#ifdef G_OS_WIN32 +# ifdef GTK_COMPILATION +# define GTKVAR __declspec(dllexport) +# else +# define GTKVAR extern __declspec(dllimport) +# endif +#else +# define GTKVAR extern +#endif + +GTKVAR guint gtk_debug_flags; + +G_END_DECLS + +#endif /* __GTK_DEBUG_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdialog.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdialog.h new file mode 100644 index 00000000..0b6b65c1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdialog.h @@ -0,0 +1,177 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_DIALOG_H__ +#define __GTK_DIALOG_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkwindow.h> + + +G_BEGIN_DECLS + +/* Parameters for dialog construction */ +typedef enum +{ + GTK_DIALOG_MODAL = 1 << 0, /* call gtk_window_set_modal (win, TRUE) */ + GTK_DIALOG_DESTROY_WITH_PARENT = 1 << 1, /* call gtk_window_set_destroy_with_parent () */ + GTK_DIALOG_NO_SEPARATOR = 1 << 2 /* no separator bar above buttons */ +} GtkDialogFlags; + +/* Convenience enum to use for response_id's. Positive values are + * totally user-interpreted. GTK will sometimes return + * GTK_RESPONSE_NONE if no response_id is available. + * + * Typical usage is: + * if (gtk_dialog_run(dialog) == GTK_RESPONSE_ACCEPT) + * blah(); + */ +typedef enum +{ + /* GTK returns this if a response widget has no response_id, + * or if the dialog gets programmatically hidden or destroyed. + */ + GTK_RESPONSE_NONE = -1, + + /* GTK won't return these unless you pass them in + * as the response for an action widget. They are + * for your convenience. + */ + GTK_RESPONSE_REJECT = -2, + GTK_RESPONSE_ACCEPT = -3, + + /* If the dialog is deleted. */ + GTK_RESPONSE_DELETE_EVENT = -4, + + /* These are returned from GTK dialogs, and you can also use them + * yourself if you like. + */ + GTK_RESPONSE_OK = -5, + GTK_RESPONSE_CANCEL = -6, + GTK_RESPONSE_CLOSE = -7, + GTK_RESPONSE_YES = -8, + GTK_RESPONSE_NO = -9, + GTK_RESPONSE_APPLY = -10, + GTK_RESPONSE_HELP = -11 +} GtkResponseType; + + +#define GTK_TYPE_DIALOG (gtk_dialog_get_type ()) +#define GTK_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_DIALOG, GtkDialog)) +#define GTK_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_DIALOG, GtkDialogClass)) +#define GTK_IS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_DIALOG)) +#define GTK_IS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_DIALOG)) +#define GTK_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_DIALOG, GtkDialogClass)) + + +typedef struct _GtkDialog GtkDialog; +typedef struct _GtkDialogClass GtkDialogClass; + +struct _GtkDialog +{ + GtkWindow window; + + /*< public >*/ + GtkWidget *vbox; + GtkWidget *action_area; + + /*< private >*/ + GtkWidget *separator; +}; + +struct _GtkDialogClass +{ + GtkWindowClass parent_class; + + void (* response) (GtkDialog *dialog, gint response_id); + + /* Keybinding signals */ + + void (* close) (GtkDialog *dialog); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_dialog_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_dialog_new (void); + +GtkWidget* gtk_dialog_new_with_buttons (const gchar *title, + GtkWindow *parent, + GtkDialogFlags flags, + const gchar *first_button_text, + ...); + +void gtk_dialog_add_action_widget (GtkDialog *dialog, + GtkWidget *child, + gint response_id); +GtkWidget* gtk_dialog_add_button (GtkDialog *dialog, + const gchar *button_text, + gint response_id); +void gtk_dialog_add_buttons (GtkDialog *dialog, + const gchar *first_button_text, + ...) G_GNUC_NULL_TERMINATED; + +void gtk_dialog_set_response_sensitive (GtkDialog *dialog, + gint response_id, + gboolean setting); +void gtk_dialog_set_default_response (GtkDialog *dialog, + gint response_id); +gint gtk_dialog_get_response_for_widget (GtkDialog *dialog, + GtkWidget *widget); + +void gtk_dialog_set_has_separator (GtkDialog *dialog, + gboolean setting); +gboolean gtk_dialog_get_has_separator (GtkDialog *dialog); + +gboolean gtk_alternative_dialog_button_order (GdkScreen *screen); +void gtk_dialog_set_alternative_button_order (GtkDialog *dialog, + gint first_response_id, + ...); +void gtk_dialog_set_alternative_button_order_from_array (GtkDialog *dialog, + gint n_params, + gint *new_order); + +/* Emit response signal */ +void gtk_dialog_response (GtkDialog *dialog, + gint response_id); + +/* Returns response_id */ +gint gtk_dialog_run (GtkDialog *dialog); + + +/* For private use only */ +void _gtk_dialog_set_ignore_separator (GtkDialog *dialog, + gboolean ignore_separator); + +G_END_DECLS + +#endif /* __GTK_DIALOG_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdnd.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdnd.h new file mode 100644 index 00000000..f9119060 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdnd.h @@ -0,0 +1,187 @@ +/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_DND_H__ +#define __GTK_DND_H__ + +#include <gdk/gdk.h> +#include <gtk/gtkenums.h> +#include <gtk/gtkwidget.h> +#include <gtk/gtkselection.h> + +G_BEGIN_DECLS + +typedef enum { + GTK_DEST_DEFAULT_MOTION = 1 << 0, /* respond to "drag_motion" */ + GTK_DEST_DEFAULT_HIGHLIGHT = 1 << 1, /* auto-highlight */ + GTK_DEST_DEFAULT_DROP = 1 << 2, /* respond to "drag_drop" */ + GTK_DEST_DEFAULT_ALL = 0x07 +} GtkDestDefaults; + +/* Flags for the GtkTargetEntry on the destination side + */ +typedef enum { + GTK_TARGET_SAME_APP = 1 << 0, /*< nick=same-app >*/ + GTK_TARGET_SAME_WIDGET = 1 << 1, /*< nick=same-widget >*/ + GTK_TARGET_OTHER_APP = 1 << 2, /*< nick=other-app >*/ + GTK_TARGET_OTHER_WIDGET = 1 << 3 /*< nick=other-widget >*/ +} GtkTargetFlags; + +/* Destination side */ + +void gtk_drag_get_data (GtkWidget *widget, + GdkDragContext *context, + GdkAtom target, + guint32 time_); +void gtk_drag_finish (GdkDragContext *context, + gboolean success, + gboolean del, + guint32 time_); + +GtkWidget *gtk_drag_get_source_widget (GdkDragContext *context); + +void gtk_drag_highlight (GtkWidget *widget); +void gtk_drag_unhighlight (GtkWidget *widget); + +void gtk_drag_dest_set (GtkWidget *widget, + GtkDestDefaults flags, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); + +void gtk_drag_dest_set_proxy (GtkWidget *widget, + GdkWindow *proxy_window, + GdkDragProtocol protocol, + gboolean use_coordinates); + +void gtk_drag_dest_unset (GtkWidget *widget); + +GdkAtom gtk_drag_dest_find_target (GtkWidget *widget, + GdkDragContext *context, + GtkTargetList *target_list); +GtkTargetList* gtk_drag_dest_get_target_list (GtkWidget *widget); +void gtk_drag_dest_set_target_list (GtkWidget *widget, + GtkTargetList *target_list); +void gtk_drag_dest_add_text_targets (GtkWidget *widget); +void gtk_drag_dest_add_image_targets (GtkWidget *widget); +void gtk_drag_dest_add_uri_targets (GtkWidget *widget); + +void gtk_drag_dest_set_track_motion (GtkWidget *widget, + gboolean track_motion); +gboolean gtk_drag_dest_get_track_motion (GtkWidget *widget); + +/* Source side */ + +void gtk_drag_source_set (GtkWidget *widget, + GdkModifierType start_button_mask, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); + +void gtk_drag_source_unset (GtkWidget *widget); + +GtkTargetList* gtk_drag_source_get_target_list (GtkWidget *widget); +void gtk_drag_source_set_target_list (GtkWidget *widget, + GtkTargetList *target_list); +void gtk_drag_source_add_text_targets (GtkWidget *widget); +void gtk_drag_source_add_image_targets (GtkWidget *widget); +void gtk_drag_source_add_uri_targets (GtkWidget *widget); + +void gtk_drag_source_set_icon (GtkWidget *widget, + GdkColormap *colormap, + GdkPixmap *pixmap, + GdkBitmap *mask); +void gtk_drag_source_set_icon_pixbuf (GtkWidget *widget, + GdkPixbuf *pixbuf); +void gtk_drag_source_set_icon_stock (GtkWidget *widget, + const gchar *stock_id); +void gtk_drag_source_set_icon_name (GtkWidget *widget, + const gchar *icon_name); + +/* There probably should be functions for setting the targets + * as a GtkTargetList + */ + +GdkDragContext *gtk_drag_begin (GtkWidget *widget, + GtkTargetList *targets, + GdkDragAction actions, + gint button, + GdkEvent *event); + +/* Set the image being dragged around + */ +void gtk_drag_set_icon_widget (GdkDragContext *context, + GtkWidget *widget, + gint hot_x, + gint hot_y); +void gtk_drag_set_icon_pixmap (GdkDragContext *context, + GdkColormap *colormap, + GdkPixmap *pixmap, + GdkBitmap *mask, + gint hot_x, + gint hot_y); +void gtk_drag_set_icon_pixbuf (GdkDragContext *context, + GdkPixbuf *pixbuf, + gint hot_x, + gint hot_y); +void gtk_drag_set_icon_stock (GdkDragContext *context, + const gchar *stock_id, + gint hot_x, + gint hot_y); +void gtk_drag_set_icon_name (GdkDragContext *context, + const gchar *icon_name, + gint hot_x, + gint hot_y); + +void gtk_drag_set_icon_default (GdkDragContext *context); + +gboolean gtk_drag_check_threshold (GtkWidget *widget, + gint start_x, + gint start_y, + gint current_x, + gint current_y); + +/* Internal functions */ +void _gtk_drag_source_handle_event (GtkWidget *widget, + GdkEvent *event); +void _gtk_drag_dest_handle_event (GtkWidget *toplevel, + GdkEvent *event); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_drag_set_default_icon (GdkColormap *colormap, + GdkPixmap *pixmap, + GdkBitmap *mask, + gint hot_x, + gint hot_y); +#endif /* !GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_DND_H__ */ + + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdrawingarea.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdrawingarea.h new file mode 100644 index 00000000..fd445e16 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkdrawingarea.h @@ -0,0 +1,79 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_DRAWING_AREA_H__ +#define __GTK_DRAWING_AREA_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkwidget.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_DRAWING_AREA (gtk_drawing_area_get_type ()) +#define GTK_DRAWING_AREA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_DRAWING_AREA, GtkDrawingArea)) +#define GTK_DRAWING_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_DRAWING_AREA, GtkDrawingAreaClass)) +#define GTK_IS_DRAWING_AREA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_DRAWING_AREA)) +#define GTK_IS_DRAWING_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_DRAWING_AREA)) +#define GTK_DRAWING_AREA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_DRAWING_AREA, GtkDrawingAreaClass)) + + +typedef struct _GtkDrawingArea GtkDrawingArea; +typedef struct _GtkDrawingAreaClass GtkDrawingAreaClass; + +struct _GtkDrawingArea +{ + GtkWidget widget; + + gpointer draw_data; +}; + +struct _GtkDrawingAreaClass +{ + GtkWidgetClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_drawing_area_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_drawing_area_new (void); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_drawing_area_size (GtkDrawingArea *darea, + gint width, + gint height); +#endif /* GTK_DISABLE_DEPRECATED */ + + +G_END_DECLS + +#endif /* __GTK_DRAWING_AREA_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkeditable.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkeditable.h new file mode 100644 index 00000000..46de8150 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkeditable.h @@ -0,0 +1,113 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_EDITABLE_H__ +#define __GTK_EDITABLE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkwidget.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_EDITABLE (gtk_editable_get_type ()) +#define GTK_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EDITABLE, GtkEditable)) +#define GTK_EDITABLE_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_EDITABLE, GtkEditableClass)) +#define GTK_IS_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EDITABLE)) +#define GTK_IS_EDITABLE_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_EDITABLE)) +#define GTK_EDITABLE_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_EDITABLE, GtkEditableClass)) + +typedef struct _GtkEditable GtkEditable; /* Dummy typedef */ +typedef struct _GtkEditableClass GtkEditableClass; + +struct _GtkEditableClass +{ + GTypeInterface base_iface; + + /* signals */ + void (* insert_text) (GtkEditable *editable, + const gchar *text, + gint length, + gint *position); + void (* delete_text) (GtkEditable *editable, + gint start_pos, + gint end_pos); + void (* changed) (GtkEditable *editable); + + /* vtable */ + void (* do_insert_text) (GtkEditable *editable, + const gchar *text, + gint length, + gint *position); + void (* do_delete_text) (GtkEditable *editable, + gint start_pos, + gint end_pos); + + gchar* (* get_chars) (GtkEditable *editable, + gint start_pos, + gint end_pos); + void (* set_selection_bounds) (GtkEditable *editable, + gint start_pos, + gint end_pos); + gboolean (* get_selection_bounds) (GtkEditable *editable, + gint *start_pos, + gint *end_pos); + void (* set_position) (GtkEditable *editable, + gint position); + gint (* get_position) (GtkEditable *editable); +}; + +GType gtk_editable_get_type (void) G_GNUC_CONST; +void gtk_editable_select_region (GtkEditable *editable, + gint start, + gint end); +gboolean gtk_editable_get_selection_bounds (GtkEditable *editable, + gint *start, + gint *end); +void gtk_editable_insert_text (GtkEditable *editable, + const gchar *new_text, + gint new_text_length, + gint *position); +void gtk_editable_delete_text (GtkEditable *editable, + gint start_pos, + gint end_pos); +gchar* gtk_editable_get_chars (GtkEditable *editable, + gint start_pos, + gint end_pos); +void gtk_editable_cut_clipboard (GtkEditable *editable); +void gtk_editable_copy_clipboard (GtkEditable *editable); +void gtk_editable_paste_clipboard (GtkEditable *editable); +void gtk_editable_delete_selection (GtkEditable *editable); +void gtk_editable_set_position (GtkEditable *editable, + gint position); +gint gtk_editable_get_position (GtkEditable *editable); +void gtk_editable_set_editable (GtkEditable *editable, + gboolean is_editable); +gboolean gtk_editable_get_editable (GtkEditable *editable); + +G_END_DECLS + +#endif /* __GTK_EDITABLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkentry.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkentry.h new file mode 100644 index 00000000..24bf28db --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkentry.h @@ -0,0 +1,220 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ENTRY_H__ +#define __GTK_ENTRY_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkeditable.h> +#include <gtk/gtkimcontext.h> +#include <gtk/gtkmenu.h> +#include <gtk/gtkentrycompletion.h> +#include <pango/pango.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_ENTRY (gtk_entry_get_type ()) +#define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) +#define GTK_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ENTRY, GtkEntryClass)) +#define GTK_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ENTRY)) +#define GTK_IS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ENTRY)) +#define GTK_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ENTRY, GtkEntryClass)) + + +typedef struct _GtkEntry GtkEntry; +typedef struct _GtkEntryClass GtkEntryClass; + +struct _GtkEntry +{ + GtkWidget widget; + + gchar *text; + + guint editable : 1; + guint visible : 1; + guint overwrite_mode : 1; + guint in_drag : 1; /* Dragging within the selection */ + + guint16 text_length; /* length in use, in chars */ + guint16 text_max_length; + + /*< private >*/ + GdkWindow *text_area; + GtkIMContext *im_context; + GtkWidget *popup_menu; + + gint current_pos; + gint selection_bound; + + PangoLayout *cached_layout; + + guint cache_includes_preedit : 1; + guint need_im_reset : 1; + guint has_frame : 1; + guint activates_default : 1; + guint cursor_visible : 1; + guint in_click : 1; /* Flag so we don't select all when clicking in entry to focus in */ + guint is_cell_renderer : 1; + guint editing_canceled : 1; /* Only used by GtkCellRendererText */ + guint mouse_cursor_obscured : 1; + guint select_words : 1; + guint select_lines : 1; + guint resolved_dir : 4; /* PangoDirection */ + guint truncate_multiline : 1; + + guint button; + guint blink_timeout; + guint recompute_idle; + gint scroll_offset; + gint ascent; /* font ascent, in pango units */ + gint descent; /* font descent, in pango units */ + + guint16 text_size; /* allocated size, in bytes */ + guint16 n_bytes; /* length in use, in bytes */ + + guint16 preedit_length; /* length of preedit string, in bytes */ + guint16 preedit_cursor; /* offset of cursor within preedit string, in chars */ + + gint dnd_position; /* In chars, -1 == no DND cursor */ + + gint drag_start_x; + gint drag_start_y; + + gunichar invisible_char; + + gint width_chars; +}; + +struct _GtkEntryClass +{ + GtkWidgetClass parent_class; + + /* Hook to customize right-click popup */ + void (* populate_popup) (GtkEntry *entry, + GtkMenu *menu); + + /* Action signals + */ + void (* activate) (GtkEntry *entry); + void (* move_cursor) (GtkEntry *entry, + GtkMovementStep step, + gint count, + gboolean extend_selection); + void (* insert_at_cursor) (GtkEntry *entry, + const gchar *str); + void (* delete_from_cursor) (GtkEntry *entry, + GtkDeleteType type, + gint count); + void (* backspace) (GtkEntry *entry); + void (* cut_clipboard) (GtkEntry *entry); + void (* copy_clipboard) (GtkEntry *entry); + void (* paste_clipboard) (GtkEntry *entry); + void (* toggle_overwrite) (GtkEntry *entry); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); +}; + +GType gtk_entry_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_entry_new (void); +void gtk_entry_set_visibility (GtkEntry *entry, + gboolean visible); +gboolean gtk_entry_get_visibility (GtkEntry *entry); +void gtk_entry_set_invisible_char (GtkEntry *entry, + gunichar ch); +gunichar gtk_entry_get_invisible_char (GtkEntry *entry); +void gtk_entry_set_has_frame (GtkEntry *entry, + gboolean setting); +gboolean gtk_entry_get_has_frame (GtkEntry *entry); +void gtk_entry_set_inner_border (GtkEntry *entry, + const GtkBorder *border); +G_CONST_RETURN GtkBorder* gtk_entry_get_inner_border (GtkEntry *entry); +/* text is truncated if needed */ +void gtk_entry_set_max_length (GtkEntry *entry, + gint max); +gint gtk_entry_get_max_length (GtkEntry *entry); +void gtk_entry_set_activates_default (GtkEntry *entry, + gboolean setting); +gboolean gtk_entry_get_activates_default (GtkEntry *entry); + +void gtk_entry_set_width_chars (GtkEntry *entry, + gint n_chars); +gint gtk_entry_get_width_chars (GtkEntry *entry); + +/* Somewhat more convenient than the GtkEditable generic functions + */ +void gtk_entry_set_text (GtkEntry *entry, + const gchar *text); +/* returns a reference to the text */ +G_CONST_RETURN gchar* gtk_entry_get_text (GtkEntry *entry); + +PangoLayout* gtk_entry_get_layout (GtkEntry *entry); +void gtk_entry_get_layout_offsets (GtkEntry *entry, + gint *x, + gint *y); +void gtk_entry_set_alignment (GtkEntry *entry, + gfloat xalign); +gfloat gtk_entry_get_alignment (GtkEntry *entry); + +void gtk_entry_set_completion (GtkEntry *entry, + GtkEntryCompletion *completion); +GtkEntryCompletion *gtk_entry_get_completion (GtkEntry *entry); + +gint gtk_entry_layout_index_to_text_index (GtkEntry *entry, + gint layout_index); +gint gtk_entry_text_index_to_layout_index (GtkEntry *entry, + gint text_index); + +/* For scrolling cursor appropriately + */ +void gtk_entry_set_cursor_hadjustment (GtkEntry *entry, + GtkAdjustment *adjustment); +GtkAdjustment* gtk_entry_get_cursor_hadjustment (GtkEntry *entry); + +/* Deprecated compatibility functions + */ + +#ifndef GTK_DISABLE_DEPRECATED +GtkWidget* gtk_entry_new_with_max_length (gint max); +void gtk_entry_append_text (GtkEntry *entry, + const gchar *text); +void gtk_entry_prepend_text (GtkEntry *entry, + const gchar *text); +void gtk_entry_set_position (GtkEntry *entry, + gint position); +void gtk_entry_select_region (GtkEntry *entry, + gint start, + gint end); +void gtk_entry_set_editable (GtkEntry *entry, + gboolean editable); +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_ENTRY_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkentrycompletion.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkentrycompletion.h new file mode 100644 index 00000000..19cacc85 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkentrycompletion.h @@ -0,0 +1,130 @@ +/* gtkentrycompletion.h + * Copyright (C) 2003 Kristian Rietveld <kris@gtk.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_ENTRY_COMPLETION_H__ +#define __GTK_ENTRY_COMPLETION_H__ + +#include <glib-object.h> + +#include <gtk/gtktreemodel.h> +#include <gtk/gtkliststore.h> +#include <gtk/gtktreeviewcolumn.h> +#include <gtk/gtktreemodelfilter.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_ENTRY_COMPLETION (gtk_entry_completion_get_type ()) +#define GTK_ENTRY_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletion)) +#define GTK_ENTRY_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletionClass)) +#define GTK_IS_ENTRY_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ENTRY_COMPLETION)) +#define GTK_IS_ENTRY_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ENTRY_COMPLETION)) +#define GTK_ENTRY_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletionClass)) + +typedef struct _GtkEntryCompletion GtkEntryCompletion; +typedef struct _GtkEntryCompletionClass GtkEntryCompletionClass; +typedef struct _GtkEntryCompletionPrivate GtkEntryCompletionPrivate; + +typedef gboolean (* GtkEntryCompletionMatchFunc) (GtkEntryCompletion *completion, + const gchar *key, + GtkTreeIter *iter, + gpointer user_data); + + +struct _GtkEntryCompletion +{ + GObject parent_instance; + + /*< private >*/ + GtkEntryCompletionPrivate *priv; +}; + +struct _GtkEntryCompletionClass +{ + GObjectClass parent_class; + + gboolean (* match_selected) (GtkEntryCompletion *completion, + GtkTreeModel *model, + GtkTreeIter *iter); + void (* action_activated) (GtkEntryCompletion *completion, + gint index_); + gboolean (* insert_prefix) (GtkEntryCompletion *completion, + const gchar *prefix); + gboolean (* cursor_on_match) (GtkEntryCompletion *completion, + GtkTreeModel *model, + GtkTreeIter *iter); + + /* Padding for future expansion */ + void (*_gtk_reserved0) (void); + void (*_gtk_reserved1) (void); +}; + +/* core */ +GType gtk_entry_completion_get_type (void) G_GNUC_CONST; +GtkEntryCompletion *gtk_entry_completion_new (void); + +GtkWidget *gtk_entry_completion_get_entry (GtkEntryCompletion *completion); + +void gtk_entry_completion_set_model (GtkEntryCompletion *completion, + GtkTreeModel *model); +GtkTreeModel *gtk_entry_completion_get_model (GtkEntryCompletion *completion); + +void gtk_entry_completion_set_match_func (GtkEntryCompletion *completion, + GtkEntryCompletionMatchFunc func, + gpointer func_data, + GDestroyNotify func_notify); +void gtk_entry_completion_set_minimum_key_length (GtkEntryCompletion *completion, + gint length); +gint gtk_entry_completion_get_minimum_key_length (GtkEntryCompletion *completion); +void gtk_entry_completion_complete (GtkEntryCompletion *completion); +void gtk_entry_completion_insert_prefix (GtkEntryCompletion *completion); + +void gtk_entry_completion_insert_action_text (GtkEntryCompletion *completion, + gint index_, + const gchar *text); +void gtk_entry_completion_insert_action_markup (GtkEntryCompletion *completion, + gint index_, + const gchar *markup); +void gtk_entry_completion_delete_action (GtkEntryCompletion *completion, + gint index_); + +void gtk_entry_completion_set_inline_completion (GtkEntryCompletion *completion, + gboolean inline_completion); +gboolean gtk_entry_completion_get_inline_completion (GtkEntryCompletion *completion); +void gtk_entry_completion_set_inline_selection (GtkEntryCompletion *completion, + gboolean inline_selection); +gboolean gtk_entry_completion_get_inline_selection (GtkEntryCompletion *completion); +void gtk_entry_completion_set_popup_completion (GtkEntryCompletion *completion, + gboolean popup_completion); +gboolean gtk_entry_completion_get_popup_completion (GtkEntryCompletion *completion); +void gtk_entry_completion_set_popup_set_width (GtkEntryCompletion *completion, + gboolean popup_set_width); +gboolean gtk_entry_completion_get_popup_set_width (GtkEntryCompletion *completion); +void gtk_entry_completion_set_popup_single_match (GtkEntryCompletion *completion, + gboolean popup_single_match); +gboolean gtk_entry_completion_get_popup_single_match (GtkEntryCompletion *completion); + +const gchar *gtk_entry_completion_get_completion_prefix (GtkEntryCompletion *completion); +/* convenience */ +void gtk_entry_completion_set_text_column (GtkEntryCompletion *completion, + gint column); +gint gtk_entry_completion_get_text_column (GtkEntryCompletion *completion); + +G_END_DECLS + +#endif /* __GTK_ENTRY_COMPLETION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkenums.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkenums.h new file mode 100644 index 00000000..6fabacf5 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkenums.h @@ -0,0 +1,529 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ENUMS_H__ +#define __GTK_ENUMS_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +/* Anchor types */ +typedef enum +{ + GTK_ANCHOR_CENTER, + GTK_ANCHOR_NORTH, + GTK_ANCHOR_NORTH_WEST, + GTK_ANCHOR_NORTH_EAST, + GTK_ANCHOR_SOUTH, + GTK_ANCHOR_SOUTH_WEST, + GTK_ANCHOR_SOUTH_EAST, + GTK_ANCHOR_WEST, + GTK_ANCHOR_EAST, + GTK_ANCHOR_N = GTK_ANCHOR_NORTH, + GTK_ANCHOR_NW = GTK_ANCHOR_NORTH_WEST, + GTK_ANCHOR_NE = GTK_ANCHOR_NORTH_EAST, + GTK_ANCHOR_S = GTK_ANCHOR_SOUTH, + GTK_ANCHOR_SW = GTK_ANCHOR_SOUTH_WEST, + GTK_ANCHOR_SE = GTK_ANCHOR_SOUTH_EAST, + GTK_ANCHOR_W = GTK_ANCHOR_WEST, + GTK_ANCHOR_E = GTK_ANCHOR_EAST +} GtkAnchorType; + +/* Arrow types */ +typedef enum +{ + GTK_ARROW_UP, + GTK_ARROW_DOWN, + GTK_ARROW_LEFT, + GTK_ARROW_RIGHT, + GTK_ARROW_NONE +} GtkArrowType; + +/* Attach options (for tables) */ +typedef enum +{ + GTK_EXPAND = 1 << 0, + GTK_SHRINK = 1 << 1, + GTK_FILL = 1 << 2 +} GtkAttachOptions; + +/* Button box styles */ +typedef enum +{ + GTK_BUTTONBOX_DEFAULT_STYLE, + GTK_BUTTONBOX_SPREAD, + GTK_BUTTONBOX_EDGE, + GTK_BUTTONBOX_START, + GTK_BUTTONBOX_END, + GTK_BUTTONBOX_CENTER +} GtkButtonBoxStyle; + +/* Curve types */ +typedef enum +{ + GTK_CURVE_TYPE_LINEAR, /* linear interpolation */ + GTK_CURVE_TYPE_SPLINE, /* spline interpolation */ + GTK_CURVE_TYPE_FREE /* free form curve */ +} GtkCurveType; + +typedef enum { + GTK_DELETE_CHARS, + GTK_DELETE_WORD_ENDS, /* delete only the portion of the word to the + * left/right of cursor if we're in the middle + * of a word */ + GTK_DELETE_WORDS, + GTK_DELETE_DISPLAY_LINES, + GTK_DELETE_DISPLAY_LINE_ENDS, + GTK_DELETE_PARAGRAPH_ENDS, /* like C-k in Emacs (or its reverse) */ + GTK_DELETE_PARAGRAPHS, /* C-k in pico, kill whole line */ + GTK_DELETE_WHITESPACE /* M-\ in Emacs */ +} GtkDeleteType; + +/* Focus movement types */ +typedef enum +{ + GTK_DIR_TAB_FORWARD, + GTK_DIR_TAB_BACKWARD, + GTK_DIR_UP, + GTK_DIR_DOWN, + GTK_DIR_LEFT, + GTK_DIR_RIGHT +} GtkDirectionType; + +/* Expander styles */ +typedef enum +{ + GTK_EXPANDER_COLLAPSED, + GTK_EXPANDER_SEMI_COLLAPSED, + GTK_EXPANDER_SEMI_EXPANDED, + GTK_EXPANDER_EXPANDED +} GtkExpanderStyle; + +/* Built-in stock icon sizes */ +typedef enum +{ + GTK_ICON_SIZE_INVALID, + GTK_ICON_SIZE_MENU, + GTK_ICON_SIZE_SMALL_TOOLBAR, + GTK_ICON_SIZE_LARGE_TOOLBAR, + GTK_ICON_SIZE_BUTTON, + GTK_ICON_SIZE_DND, + GTK_ICON_SIZE_DIALOG +} GtkIconSize; + +/* automatic sensitivity */ +typedef enum +{ + GTK_SENSITIVITY_AUTO, + GTK_SENSITIVITY_ON, + GTK_SENSITIVITY_OFF +} GtkSensitivityType; + +#ifndef GTK_DISABLE_DEPRECATED +/* side types */ +typedef enum +{ + GTK_SIDE_TOP, + GTK_SIDE_BOTTOM, + GTK_SIDE_LEFT, + GTK_SIDE_RIGHT +} GtkSideType; +#endif /* GTK_DISABLE_DEPRECATED */ + +/* Reading directions for text */ +typedef enum +{ + GTK_TEXT_DIR_NONE, + GTK_TEXT_DIR_LTR, + GTK_TEXT_DIR_RTL +} GtkTextDirection; + +/* justification for label and maybe other widgets (text?) */ +typedef enum +{ + GTK_JUSTIFY_LEFT, + GTK_JUSTIFY_RIGHT, + GTK_JUSTIFY_CENTER, + GTK_JUSTIFY_FILL +} GtkJustification; + +#ifndef GTK_DISABLE_DEPRECATED +/* GtkPatternSpec match types */ +typedef enum +{ + GTK_MATCH_ALL, /* "*A?A*" */ + GTK_MATCH_ALL_TAIL, /* "*A?AA" */ + GTK_MATCH_HEAD, /* "AAAA*" */ + GTK_MATCH_TAIL, /* "*AAAA" */ + GTK_MATCH_EXACT, /* "AAAAA" */ + GTK_MATCH_LAST +} GtkMatchType; +#endif /* GTK_DISABLE_DEPRECATED */ + +/* Menu keyboard movement types */ +typedef enum +{ + GTK_MENU_DIR_PARENT, + GTK_MENU_DIR_CHILD, + GTK_MENU_DIR_NEXT, + GTK_MENU_DIR_PREV +} GtkMenuDirectionType; + +typedef enum +{ + GTK_PIXELS, + GTK_INCHES, + GTK_CENTIMETERS +} GtkMetricType; + +typedef enum +{ + GTK_MOVEMENT_LOGICAL_POSITIONS, /* move by forw/back graphemes */ + GTK_MOVEMENT_VISUAL_POSITIONS, /* move by left/right graphemes */ + GTK_MOVEMENT_WORDS, /* move by forward/back words */ + GTK_MOVEMENT_DISPLAY_LINES, /* move up/down lines (wrapped lines) */ + GTK_MOVEMENT_DISPLAY_LINE_ENDS, /* move up/down lines (wrapped lines) */ + GTK_MOVEMENT_PARAGRAPHS, /* move up/down paragraphs (newline-ended lines) */ + GTK_MOVEMENT_PARAGRAPH_ENDS, /* move to either end of a paragraph */ + GTK_MOVEMENT_PAGES, /* move by pages */ + GTK_MOVEMENT_BUFFER_ENDS, /* move to ends of the buffer */ + GTK_MOVEMENT_HORIZONTAL_PAGES /* move horizontally by pages */ +} GtkMovementStep; + +typedef enum +{ + GTK_SCROLL_STEPS, + GTK_SCROLL_PAGES, + GTK_SCROLL_ENDS, + GTK_SCROLL_HORIZONTAL_STEPS, + GTK_SCROLL_HORIZONTAL_PAGES, + GTK_SCROLL_HORIZONTAL_ENDS +} GtkScrollStep; + +/* Orientation for toolbars, etc. */ +typedef enum +{ + GTK_ORIENTATION_HORIZONTAL, + GTK_ORIENTATION_VERTICAL +} GtkOrientation; + +/* Placement type for scrolled window */ +typedef enum +{ + GTK_CORNER_TOP_LEFT, + GTK_CORNER_BOTTOM_LEFT, + GTK_CORNER_TOP_RIGHT, + GTK_CORNER_BOTTOM_RIGHT +} GtkCornerType; + +/* Packing types (for boxes) */ +typedef enum +{ + GTK_PACK_START, + GTK_PACK_END +} GtkPackType; + +/* priorities for path lookups */ +typedef enum +{ + GTK_PATH_PRIO_LOWEST = 0, + GTK_PATH_PRIO_GTK = 4, + GTK_PATH_PRIO_APPLICATION = 8, + GTK_PATH_PRIO_THEME = 10, + GTK_PATH_PRIO_RC = 12, + GTK_PATH_PRIO_HIGHEST = 15 +} GtkPathPriorityType; +#define GTK_PATH_PRIO_MASK 0x0f + +/* widget path types */ +typedef enum +{ + GTK_PATH_WIDGET, + GTK_PATH_WIDGET_CLASS, + GTK_PATH_CLASS +} GtkPathType; + +/* Scrollbar policy types (for scrolled windows) */ +typedef enum +{ + GTK_POLICY_ALWAYS, + GTK_POLICY_AUTOMATIC, + GTK_POLICY_NEVER +} GtkPolicyType; + +typedef enum +{ + GTK_POS_LEFT, + GTK_POS_RIGHT, + GTK_POS_TOP, + GTK_POS_BOTTOM +} GtkPositionType; + +#ifndef GTK_DISABLE_DEPRECATED +typedef enum +{ + GTK_PREVIEW_COLOR, + GTK_PREVIEW_GRAYSCALE +} GtkPreviewType; +#endif /* GTK_DISABLE_DEPRECATED */ + +/* Style for buttons */ +typedef enum +{ + GTK_RELIEF_NORMAL, + GTK_RELIEF_HALF, + GTK_RELIEF_NONE +} GtkReliefStyle; + +/* Resize type */ +typedef enum +{ + GTK_RESIZE_PARENT, /* Pass resize request to the parent */ + GTK_RESIZE_QUEUE, /* Queue resizes on this widget */ + GTK_RESIZE_IMMEDIATE /* Perform the resizes now */ +} GtkResizeMode; + +#ifndef GTK_DISABLE_DEPRECATED +/* signal run types */ +typedef enum /*< flags >*/ +{ + GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST, + GTK_RUN_LAST = G_SIGNAL_RUN_LAST, + GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST), + GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE, + GTK_RUN_ACTION = G_SIGNAL_ACTION, + GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS +} GtkSignalRunType; +#endif /* GTK_DISABLE_DEPRECATED */ + +/* scrolling types */ +typedef enum +{ + GTK_SCROLL_NONE, + GTK_SCROLL_JUMP, + GTK_SCROLL_STEP_BACKWARD, + GTK_SCROLL_STEP_FORWARD, + GTK_SCROLL_PAGE_BACKWARD, + GTK_SCROLL_PAGE_FORWARD, + GTK_SCROLL_STEP_UP, + GTK_SCROLL_STEP_DOWN, + GTK_SCROLL_PAGE_UP, + GTK_SCROLL_PAGE_DOWN, + GTK_SCROLL_STEP_LEFT, + GTK_SCROLL_STEP_RIGHT, + GTK_SCROLL_PAGE_LEFT, + GTK_SCROLL_PAGE_RIGHT, + GTK_SCROLL_START, + GTK_SCROLL_END +} GtkScrollType; + +/* list selection modes */ +typedef enum +{ + GTK_SELECTION_NONE, /* Nothing can be selected */ + GTK_SELECTION_SINGLE, + GTK_SELECTION_BROWSE, + GTK_SELECTION_MULTIPLE, + GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE /* Deprecated */ +} GtkSelectionMode; + +/* Shadow types */ +typedef enum +{ + GTK_SHADOW_NONE, + GTK_SHADOW_IN, + GTK_SHADOW_OUT, + GTK_SHADOW_ETCHED_IN, + GTK_SHADOW_ETCHED_OUT +} GtkShadowType; + +/* Widget states */ +typedef enum +{ + GTK_STATE_NORMAL, + GTK_STATE_ACTIVE, + GTK_STATE_PRELIGHT, + GTK_STATE_SELECTED, + GTK_STATE_INSENSITIVE +} GtkStateType; + +#if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_MENU_INTERNALS) +/* Directions for submenus */ +typedef enum +{ + GTK_DIRECTION_LEFT, + GTK_DIRECTION_RIGHT +} GtkSubmenuDirection; + +/* Placement of submenus */ +typedef enum +{ + GTK_TOP_BOTTOM, + GTK_LEFT_RIGHT +} GtkSubmenuPlacement; +#endif /* GTK_DISABLE_DEPRECATED */ + +/* Style for toolbars */ +typedef enum +{ + GTK_TOOLBAR_ICONS, + GTK_TOOLBAR_TEXT, + GTK_TOOLBAR_BOTH, + GTK_TOOLBAR_BOTH_HORIZ +} GtkToolbarStyle; + +/* Data update types (for ranges) */ +typedef enum +{ + GTK_UPDATE_CONTINUOUS, + GTK_UPDATE_DISCONTINUOUS, + GTK_UPDATE_DELAYED +} GtkUpdateType; + +/* Generic visibility flags */ +typedef enum +{ + GTK_VISIBILITY_NONE, + GTK_VISIBILITY_PARTIAL, + GTK_VISIBILITY_FULL +} GtkVisibility; + +/* Window position types */ +typedef enum +{ + GTK_WIN_POS_NONE, + GTK_WIN_POS_CENTER, + GTK_WIN_POS_MOUSE, + GTK_WIN_POS_CENTER_ALWAYS, + GTK_WIN_POS_CENTER_ON_PARENT +} GtkWindowPosition; + +/* Window types */ +typedef enum +{ + GTK_WINDOW_TOPLEVEL, + GTK_WINDOW_POPUP +} GtkWindowType; + +/* Text wrap */ +typedef enum +{ + GTK_WRAP_NONE, + GTK_WRAP_CHAR, + GTK_WRAP_WORD, + GTK_WRAP_WORD_CHAR +} GtkWrapMode; + +/* How to sort */ +typedef enum +{ + GTK_SORT_ASCENDING, + GTK_SORT_DESCENDING +} GtkSortType; + +/* Style for gtk input method preedit/status */ +typedef enum +{ + GTK_IM_PREEDIT_NOTHING, + GTK_IM_PREEDIT_CALLBACK, + GTK_IM_PREEDIT_NONE +} GtkIMPreeditStyle; + +typedef enum +{ + GTK_IM_STATUS_NOTHING, + GTK_IM_STATUS_CALLBACK, + GTK_IM_STATUS_NONE +} GtkIMStatusStyle; + +typedef enum +{ + GTK_PACK_DIRECTION_LTR, + GTK_PACK_DIRECTION_RTL, + GTK_PACK_DIRECTION_TTB, + GTK_PACK_DIRECTION_BTT +} GtkPackDirection; + +typedef enum { + GTK_PRINT_PAGES_ALL, + GTK_PRINT_PAGES_CURRENT, + GTK_PRINT_PAGES_RANGES +} GtkPrintPages; + +typedef enum { + GTK_PAGE_SET_ALL, + GTK_PAGE_SET_EVEN, + GTK_PAGE_SET_ODD +} GtkPageSet; + +typedef enum { + GTK_PAGE_ORIENTATION_PORTRAIT, + GTK_PAGE_ORIENTATION_LANDSCAPE, + GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT, + GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE +} GtkPageOrientation; + +typedef enum { + GTK_PRINT_QUALITY_LOW, + GTK_PRINT_QUALITY_NORMAL, + GTK_PRINT_QUALITY_HIGH, + GTK_PRINT_QUALITY_DRAFT +} GtkPrintQuality; + +typedef enum { + GTK_PRINT_DUPLEX_SIMPLEX, + GTK_PRINT_DUPLEX_HORIZONTAL, + GTK_PRINT_DUPLEX_VERTICAL +} GtkPrintDuplex; + + +typedef enum { + GTK_UNIT_PIXEL, + GTK_UNIT_POINTS, + GTK_UNIT_INCH, + GTK_UNIT_MM +} GtkUnit; + +typedef enum { + GTK_TREE_VIEW_GRID_LINES_NONE, + GTK_TREE_VIEW_GRID_LINES_HORIZONTAL, + GTK_TREE_VIEW_GRID_LINES_VERTICAL, + GTK_TREE_VIEW_GRID_LINES_BOTH +} GtkTreeViewGridLines; + +typedef enum { + GTK_DRAG_RESULT_SUCCESS, + GTK_DRAG_RESULT_NO_TARGET, + GTK_DRAG_RESULT_USER_CANCELLED, + GTK_DRAG_RESULT_TIMEOUT_EXPIRED, + GTK_DRAG_RESULT_GRAB_BROKEN, + GTK_DRAG_RESULT_ERROR +} GtkDragResult; + +G_END_DECLS + +#endif /* __GTK_ENUMS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkeventbox.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkeventbox.h new file mode 100644 index 00000000..3fba8b4b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkeventbox.h @@ -0,0 +1,68 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_EVENT_BOX_H__ +#define __GTK_EVENT_BOX_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkbin.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_EVENT_BOX (gtk_event_box_get_type ()) +#define GTK_EVENT_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EVENT_BOX, GtkEventBox)) +#define GTK_EVENT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_EVENT_BOX, GtkEventBoxClass)) +#define GTK_IS_EVENT_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EVENT_BOX)) +#define GTK_IS_EVENT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_EVENT_BOX)) +#define GTK_EVENT_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_EVENT_BOX, GtkEventBoxClass)) + +typedef struct _GtkEventBox GtkEventBox; +typedef struct _GtkEventBoxClass GtkEventBoxClass; + +struct _GtkEventBox +{ + GtkBin bin; +}; + +struct _GtkEventBoxClass +{ + GtkBinClass parent_class; +}; + +GType gtk_event_box_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_event_box_new (void); +gboolean gtk_event_box_get_visible_window (GtkEventBox *event_box); +void gtk_event_box_set_visible_window (GtkEventBox *event_box, + gboolean visible_window); +gboolean gtk_event_box_get_above_child (GtkEventBox *event_box); +void gtk_event_box_set_above_child (GtkEventBox *event_box, + gboolean above_child); + +G_END_DECLS + +#endif /* __GTK_EVENT_BOX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkexpander.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkexpander.h new file mode 100644 index 00000000..e5bfa454 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkexpander.h @@ -0,0 +1,91 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2003 Sun Microsystems, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * Authors: + * Mark McLoughlin <mark@skynet.ie> + */ + +#ifndef __GTK_EXPANDER_H__ +#define __GTK_EXPANDER_H__ + +#include <gtk/gtkbin.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_EXPANDER (gtk_expander_get_type ()) +#define GTK_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EXPANDER, GtkExpander)) +#define GTK_EXPANDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_EXPANDER, GtkExpanderClass)) +#define GTK_IS_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EXPANDER)) +#define GTK_IS_EXPANDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_EXPANDER)) +#define GTK_EXPANDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_EXPANDER, GtkExpanderClass)) + +typedef struct _GtkExpander GtkExpander; +typedef struct _GtkExpanderClass GtkExpanderClass; +typedef struct _GtkExpanderPrivate GtkExpanderPrivate; + +struct _GtkExpander +{ + GtkBin bin; + + GtkExpanderPrivate *priv; +}; + +struct _GtkExpanderClass +{ + GtkBinClass parent_class; + + /* Key binding signal; to get notification on the expansion + * state connect to notify:expanded. + */ + void (* activate) (GtkExpander *expander); +}; + +GType gtk_expander_get_type (void) G_GNUC_CONST; + +GtkWidget *gtk_expander_new (const gchar *label); +GtkWidget *gtk_expander_new_with_mnemonic (const gchar *label); + +void gtk_expander_set_expanded (GtkExpander *expander, + gboolean expanded); +gboolean gtk_expander_get_expanded (GtkExpander *expander); + +/* Spacing between the expander/label and the child */ +void gtk_expander_set_spacing (GtkExpander *expander, + gint spacing); +gint gtk_expander_get_spacing (GtkExpander *expander); + +void gtk_expander_set_label (GtkExpander *expander, + const gchar *label); +G_CONST_RETURN gchar *gtk_expander_get_label (GtkExpander *expander); + +void gtk_expander_set_use_underline (GtkExpander *expander, + gboolean use_underline); +gboolean gtk_expander_get_use_underline (GtkExpander *expander); + +void gtk_expander_set_use_markup (GtkExpander *expander, + gboolean use_markup); +gboolean gtk_expander_get_use_markup (GtkExpander *expander); + +void gtk_expander_set_label_widget (GtkExpander *expander, + GtkWidget *label_widget); +GtkWidget *gtk_expander_get_label_widget (GtkExpander *expander); + +G_END_DECLS + +#endif /* __GTK_EXPANDER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooser.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooser.h new file mode 100644 index 00000000..5b233878 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooser.h @@ -0,0 +1,189 @@ +/* GTK - The GIMP Toolkit + * gtkfilechooser.h: Abstract interface for file selector GUIs + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_FILE_CHOOSER_H__ +#define __GTK_FILE_CHOOSER_H__ + +#include "gtkfilefilter.h" +#include <gtk/gtkwidget.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_FILE_CHOOSER (gtk_file_chooser_get_type ()) +#define GTK_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER, GtkFileChooser)) +#define GTK_IS_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER)) + +typedef struct _GtkFileChooser GtkFileChooser; + +typedef enum +{ + GTK_FILE_CHOOSER_ACTION_OPEN, + GTK_FILE_CHOOSER_ACTION_SAVE, + GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, + GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER +} GtkFileChooserAction; + +typedef enum +{ + GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM, + GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME, + GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN +} GtkFileChooserConfirmation; + +GType gtk_file_chooser_get_type (void) G_GNUC_CONST; + +/* GError enumeration for GtkFileChooser */ + +#define GTK_FILE_CHOOSER_ERROR (gtk_file_chooser_error_quark ()) + +typedef enum { + GTK_FILE_CHOOSER_ERROR_NONEXISTENT, + GTK_FILE_CHOOSER_ERROR_BAD_FILENAME, + GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS +} GtkFileChooserError; + +GQuark gtk_file_chooser_error_quark (void); + +/* Configuration + */ +void gtk_file_chooser_set_action (GtkFileChooser *chooser, + GtkFileChooserAction action); +GtkFileChooserAction gtk_file_chooser_get_action (GtkFileChooser *chooser); +void gtk_file_chooser_set_local_only (GtkFileChooser *chooser, + gboolean local_only); +gboolean gtk_file_chooser_get_local_only (GtkFileChooser *chooser); +void gtk_file_chooser_set_select_multiple (GtkFileChooser *chooser, + gboolean select_multiple); +gboolean gtk_file_chooser_get_select_multiple (GtkFileChooser *chooser); +void gtk_file_chooser_set_show_hidden (GtkFileChooser *chooser, + gboolean show_hidden); +gboolean gtk_file_chooser_get_show_hidden (GtkFileChooser *chooser); + +void gtk_file_chooser_set_do_overwrite_confirmation (GtkFileChooser *chooser, + gboolean do_overwrite_confirmation); +gboolean gtk_file_chooser_get_do_overwrite_confirmation (GtkFileChooser *chooser); + +/* Suggested name for the Save-type actions + */ +void gtk_file_chooser_set_current_name (GtkFileChooser *chooser, + const gchar *name); + +/* Filename manipulation + */ +#ifdef G_OS_WIN32 +/* Reserve old names for DLL ABI backward compatibility */ +#define gtk_file_chooser_get_filename gtk_file_chooser_get_filename_utf8 +#define gtk_file_chooser_set_filename gtk_file_chooser_set_filename_utf8 +#define gtk_file_chooser_select_filename gtk_file_chooser_select_filename_utf8 +#define gtk_file_chooser_unselect_filename gtk_file_chooser_unselect_filename_utf8 +#define gtk_file_chooser_get_filenames gtk_file_chooser_get_filenames_utf8 +#define gtk_file_chooser_set_current_folder gtk_file_chooser_set_current_folder_utf8 +#define gtk_file_chooser_get_current_folder gtk_file_chooser_get_current_folder_utf8 +#define gtk_file_chooser_get_preview_filename gtk_file_chooser_get_preview_filename_utf8 +#define gtk_file_chooser_add_shortcut_folder gtk_file_chooser_add_shortcut_folder_utf8 +#define gtk_file_chooser_remove_shortcut_folder gtk_file_chooser_remove_shortcut_folder_utf8 +#define gtk_file_chooser_list_shortcut_folders gtk_file_chooser_list_shortcut_folders_utf8 +#endif + +gchar * gtk_file_chooser_get_filename (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_filename (GtkFileChooser *chooser, + const char *filename); +gboolean gtk_file_chooser_select_filename (GtkFileChooser *chooser, + const char *filename); +void gtk_file_chooser_unselect_filename (GtkFileChooser *chooser, + const char *filename); +void gtk_file_chooser_select_all (GtkFileChooser *chooser); +void gtk_file_chooser_unselect_all (GtkFileChooser *chooser); +GSList * gtk_file_chooser_get_filenames (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_current_folder (GtkFileChooser *chooser, + const gchar *filename); +gchar * gtk_file_chooser_get_current_folder (GtkFileChooser *chooser); + + +/* URI manipulation + */ +gchar * gtk_file_chooser_get_uri (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_uri (GtkFileChooser *chooser, + const char *uri); +gboolean gtk_file_chooser_select_uri (GtkFileChooser *chooser, + const char *uri); +void gtk_file_chooser_unselect_uri (GtkFileChooser *chooser, + const char *uri); +GSList * gtk_file_chooser_get_uris (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_current_folder_uri (GtkFileChooser *chooser, + const gchar *uri); +gchar * gtk_file_chooser_get_current_folder_uri (GtkFileChooser *chooser); + +/* Preview widget + */ +void gtk_file_chooser_set_preview_widget (GtkFileChooser *chooser, + GtkWidget *preview_widget); +GtkWidget *gtk_file_chooser_get_preview_widget (GtkFileChooser *chooser); +void gtk_file_chooser_set_preview_widget_active (GtkFileChooser *chooser, + gboolean active); +gboolean gtk_file_chooser_get_preview_widget_active (GtkFileChooser *chooser); +void gtk_file_chooser_set_use_preview_label (GtkFileChooser *chooser, + gboolean use_label); +gboolean gtk_file_chooser_get_use_preview_label (GtkFileChooser *chooser); + +char *gtk_file_chooser_get_preview_filename (GtkFileChooser *chooser); +char *gtk_file_chooser_get_preview_uri (GtkFileChooser *chooser); + +/* Extra widget + */ +void gtk_file_chooser_set_extra_widget (GtkFileChooser *chooser, + GtkWidget *extra_widget); +GtkWidget *gtk_file_chooser_get_extra_widget (GtkFileChooser *chooser); + +/* List of user selectable filters + */ +void gtk_file_chooser_add_filter (GtkFileChooser *chooser, + GtkFileFilter *filter); +void gtk_file_chooser_remove_filter (GtkFileChooser *chooser, + GtkFileFilter *filter); +GSList *gtk_file_chooser_list_filters (GtkFileChooser *chooser); + +/* Current filter + */ +void gtk_file_chooser_set_filter (GtkFileChooser *chooser, + GtkFileFilter *filter); +GtkFileFilter *gtk_file_chooser_get_filter (GtkFileChooser *chooser); + +/* Per-application shortcut folders */ + +gboolean gtk_file_chooser_add_shortcut_folder (GtkFileChooser *chooser, + const char *folder, + GError **error); +gboolean gtk_file_chooser_remove_shortcut_folder (GtkFileChooser *chooser, + const char *folder, + GError **error); +GSList *gtk_file_chooser_list_shortcut_folders (GtkFileChooser *chooser); + +gboolean gtk_file_chooser_add_shortcut_folder_uri (GtkFileChooser *chooser, + const char *uri, + GError **error); +gboolean gtk_file_chooser_remove_shortcut_folder_uri (GtkFileChooser *chooser, + const char *uri, + GError **error); +GSList *gtk_file_chooser_list_shortcut_folder_uris (GtkFileChooser *chooser); + +G_END_DECLS + +#endif /* __GTK_FILE_CHOOSER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h new file mode 100644 index 00000000..979c4b57 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h @@ -0,0 +1,92 @@ +/* GTK+: gtkfilechooserbutton.h + * + * Copyright (c) 2004 James M. Cape <jcape@ignore-your.tv> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_FILE_CHOOSER_BUTTON_H__ +#define __GTK_FILE_CHOOSER_BUTTON_H__ + +#include <gtk/gtkhbox.h> +#include <gtk/gtkfilechooser.h> + +G_BEGIN_DECLS + + +#define GTK_TYPE_FILE_CHOOSER_BUTTON \ + (gtk_file_chooser_button_get_type ()) +#define GTK_FILE_CHOOSER_BUTTON(object) \ + (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButton)) +#define GTK_FILE_CHOOSER_BUTTON_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass)) +#define GTK_IS_FILE_CHOOSER_BUTTON(object) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_FILE_CHOOSER_BUTTON)) +#define GTK_IS_FILE_CHOOSER_BUTTON_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON)) +#define GTK_FILE_CHOOSER_BUTTON_GET_CLASS(object) \ + (G_TYPE_INSTANCE_GET_CLASS ((object), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass)) + + +typedef struct _GtkFileChooserButton GtkFileChooserButton; +typedef struct _GtkFileChooserButtonPrivate GtkFileChooserButtonPrivate; +typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass; + +struct _GtkFileChooserButton +{ + /*< private >*/ + GtkHBox parent; + + GtkFileChooserButtonPrivate *priv; +}; + +struct _GtkFileChooserButtonClass +{ + /*< private >*/ + GtkHBoxClass parent_class; + + void (* file_set) (GtkFileChooserButton *fc); + + void (*__gtk_reserved1); + void (*__gtk_reserved2); + void (*__gtk_reserved3); + void (*__gtk_reserved4); + void (*__gtk_reserved5); + void (*__gtk_reserved6); + void (*__gtk_reserved7); +}; + + +GType gtk_file_chooser_button_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_file_chooser_button_new (const gchar *title, + GtkFileChooserAction action); +GtkWidget * gtk_file_chooser_button_new_with_backend (const gchar *title, + GtkFileChooserAction action, + const gchar *backend); +GtkWidget * gtk_file_chooser_button_new_with_dialog (GtkWidget *dialog); +G_CONST_RETURN gchar *gtk_file_chooser_button_get_title (GtkFileChooserButton *button); +void gtk_file_chooser_button_set_title (GtkFileChooserButton *button, + const gchar *title); +gint gtk_file_chooser_button_get_width_chars (GtkFileChooserButton *button); +void gtk_file_chooser_button_set_width_chars (GtkFileChooserButton *button, + gint n_chars); +gboolean gtk_file_chooser_button_get_focus_on_click (GtkFileChooserButton *button); +void gtk_file_chooser_button_set_focus_on_click (GtkFileChooserButton *button, + gboolean focus_on_click); + +G_END_DECLS + +#endif /* !__GTK_FILE_CHOOSER_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h new file mode 100644 index 00000000..44cf39c0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h @@ -0,0 +1,68 @@ +/* GTK - The GIMP Toolkit + * gtkfilechooserdialog.h: File selector dialog + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_FILE_CHOOSER_DIALOG_H__ +#define __GTK_FILE_CHOOSER_DIALOG_H__ + +#include <gtk/gtkdialog.h> +#include "gtkfilechooser.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_FILE_CHOOSER_DIALOG (gtk_file_chooser_dialog_get_type ()) +#define GTK_FILE_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialog)) +#define GTK_FILE_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialogClass)) +#define GTK_IS_FILE_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG)) +#define GTK_IS_FILE_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_DIALOG)) +#define GTK_FILE_CHOOSER_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialogClass)) + +typedef struct _GtkFileChooserDialog GtkFileChooserDialog; +typedef struct _GtkFileChooserDialogClass GtkFileChooserDialogClass; + +typedef struct _GtkFileChooserDialogPrivate GtkFileChooserDialogPrivate; + +struct _GtkFileChooserDialogClass +{ + GtkDialogClass parent_class; +}; + +struct _GtkFileChooserDialog +{ + GtkDialog parent_instance; + + GtkFileChooserDialogPrivate *priv; +}; + +GType gtk_file_chooser_dialog_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_file_chooser_dialog_new (const gchar *title, + GtkWindow *parent, + GtkFileChooserAction action, + const gchar *first_button_text, + ...) G_GNUC_NULL_TERMINATED; +GtkWidget *gtk_file_chooser_dialog_new_with_backend (const gchar *title, + GtkWindow *parent, + GtkFileChooserAction action, + const gchar *backend, + const gchar *first_button_text, + ...) G_GNUC_NULL_TERMINATED; + +G_END_DECLS + +#endif /* __GTK_FILE_CHOOSER_DIALOG_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserprivate.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserprivate.h new file mode 100644 index 00000000..8b2d8534 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserprivate.h @@ -0,0 +1,381 @@ +/* GTK - The GIMP Toolkit + * gtkfilechooserprivate.h: Interface definition for file selector GUIs + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_FILE_CHOOSER_PRIVATE_H__ +#define __GTK_FILE_CHOOSER_PRIVATE_H__ + +/* This is a "semi-private" header; it is meant only for + * alternate GtkFileChooser implementations; no stability guarantees + * are made at this point + */ +#ifndef GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED +#error "gtkfilechooserprivate.h is not supported API for general use" +#endif + +#include "gtkfilechooser.h" +#include "gtkfilesystem.h" +#include "gtkfilesystemmodel.h" +#include "gtkliststore.h" +#include "gtkrecentmanager.h" +#include "gtksearchengine.h" +#include "gtkquery.h" +#include "gtktooltips.h" +#include "gtktreemodelsort.h" +#include "gtktreestore.h" +#include "gtktreeview.h" +#include "gtkvbox.h" + +G_BEGIN_DECLS + +#define GTK_FILE_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_FILE_CHOOSER, GtkFileChooserIface)) + +typedef struct _GtkFileChooserIface GtkFileChooserIface; + +struct _GtkFileChooserIface +{ + GTypeInterface base_iface; + + /* Methods + */ + gboolean (*set_current_folder) (GtkFileChooser *chooser, + const GtkFilePath *path, + GError **error); + GtkFilePath * (*get_current_folder) (GtkFileChooser *chooser); + void (*set_current_name) (GtkFileChooser *chooser, + const gchar *name); + gboolean (*select_path) (GtkFileChooser *chooser, + const GtkFilePath *path, + GError **error); + void (*unselect_path) (GtkFileChooser *chooser, + const GtkFilePath *path); + void (*select_all) (GtkFileChooser *chooser); + void (*unselect_all) (GtkFileChooser *chooser); + GSList * (*get_paths) (GtkFileChooser *chooser); + GtkFilePath * (*get_preview_path) (GtkFileChooser *chooser); + GtkFileSystem *(*get_file_system) (GtkFileChooser *chooser); + void (*add_filter) (GtkFileChooser *chooser, + GtkFileFilter *filter); + void (*remove_filter) (GtkFileChooser *chooser, + GtkFileFilter *filter); + GSList * (*list_filters) (GtkFileChooser *chooser); + gboolean (*add_shortcut_folder) (GtkFileChooser *chooser, + const GtkFilePath *path, + GError **error); + gboolean (*remove_shortcut_folder) (GtkFileChooser *chooser, + const GtkFilePath *path, + GError **error); + GSList * (*list_shortcut_folders) (GtkFileChooser *chooser); + + /* Signals + */ + void (*current_folder_changed) (GtkFileChooser *chooser); + void (*selection_changed) (GtkFileChooser *chooser); + void (*update_preview) (GtkFileChooser *chooser); + void (*file_activated) (GtkFileChooser *chooser); + GtkFileChooserConfirmation (*confirm_overwrite) (GtkFileChooser *chooser); +}; + +GtkFileSystem *_gtk_file_chooser_get_file_system (GtkFileChooser *chooser); +gboolean _gtk_file_chooser_set_current_folder_path (GtkFileChooser *chooser, + const GtkFilePath *path, + GError **error); +GtkFilePath * _gtk_file_chooser_get_current_folder_path (GtkFileChooser *chooser); +gboolean _gtk_file_chooser_select_path (GtkFileChooser *chooser, + const GtkFilePath *path, + GError **error); +void _gtk_file_chooser_unselect_path (GtkFileChooser *chooser, + const GtkFilePath *path); +GSList * _gtk_file_chooser_get_paths (GtkFileChooser *chooser); +GtkFilePath * _gtk_file_chooser_get_preview_path (GtkFileChooser *chooser); +gboolean _gtk_file_chooser_add_shortcut_folder (GtkFileChooser *chooser, + const GtkFilePath *path, + GError **error); +gboolean _gtk_file_chooser_remove_shortcut_folder (GtkFileChooser *chooser, + const GtkFilePath *path, + GError **error); + +/* GtkFileChooserDialog private */ + +struct _GtkFileChooserDialogPrivate +{ + GtkWidget *widget; + + char *file_system; + + /* for use with GtkFileChooserEmbed */ + gboolean response_requested; +}; + + +/* GtkFileChooserWidget private */ + +struct _GtkFileChooserWidgetPrivate +{ + GtkWidget *impl; + + char *file_system; +}; + + +/* GtkFileChooserDefault private */ + +typedef enum { + LOAD_EMPTY, /* There is no model */ + LOAD_PRELOAD, /* Model is loading and a timer is running; model isn't inserted into the tree yet */ + LOAD_LOADING, /* Timeout expired, model is inserted into the tree, but not fully loaded yet */ + LOAD_FINISHED /* Model is fully loaded and inserted into the tree */ +} LoadState; + +typedef enum { + RELOAD_EMPTY, /* No folder has been set */ + RELOAD_HAS_FOLDER, /* We have a folder, although it may not be completely loaded yet; no need to reload */ + RELOAD_WAS_UNMAPPED /* We had a folder but got unmapped; reload is needed */ +} ReloadState; + +typedef enum { + LOCATION_MODE_PATH_BAR, + LOCATION_MODE_FILENAME_ENTRY +} LocationMode; + +typedef enum { + OPERATION_MODE_BROWSE, + OPERATION_MODE_SEARCH, + OPERATION_MODE_RECENT +} OperationMode; + +struct _GtkFileChooserDefault +{ + GtkVBox parent_instance; + + GtkFileChooserAction action; + + GtkFileSystem *file_system; + + /* Save mode widgets */ + GtkWidget *save_widgets; + + GtkWidget *save_folder_label; + GtkWidget *save_folder_combo; + GtkWidget *save_expander; + + /* The file browsing widgets */ + GtkWidget *browse_widgets; + GtkWidget *browse_shortcuts_tree_view; + GtkWidget *browse_shortcuts_add_button; + GtkWidget *browse_shortcuts_remove_button; + GtkWidget *browse_shortcuts_popup_menu; + GtkWidget *browse_shortcuts_popup_menu_remove_item; + GtkWidget *browse_shortcuts_popup_menu_rename_item; + GtkWidget *browse_files_tree_view; + GtkWidget *browse_files_popup_menu; + GtkWidget *browse_files_popup_menu_add_shortcut_item; + GtkWidget *browse_files_popup_menu_hidden_files_item; + GtkWidget *browse_new_folder_button; + GtkWidget *browse_path_bar_hbox; + GtkWidget *browse_path_bar; + + GtkFileSystemModel *browse_files_model; + char *browse_files_last_selected_name; + + /* OPERATION_MODE_SEARCH */ + GtkWidget *search_hbox; + GtkWidget *search_entry; + GtkSearchEngine *search_engine; + GtkQuery *search_query; + GtkListStore *search_model; + GtkTreeModelFilter *search_model_filter; + GtkTreeModelSort *search_model_sort; + + /* OPERATION_MODE_RECENT */ + GtkRecentManager *recent_manager; + GtkListStore *recent_model; + guint load_recent_id; + GtkTreeModelFilter *recent_model_filter; + GtkTreeModelSort *recent_model_sort; + + GtkWidget *filter_combo_hbox; + GtkWidget *filter_combo; + GtkWidget *preview_box; + GtkWidget *preview_label; + GtkWidget *preview_widget; + GtkWidget *extra_align; + GtkWidget *extra_widget; + + GtkWidget *location_button; + GtkWidget *location_entry_box; + GtkWidget *location_label; + GtkWidget *location_entry; + LocationMode location_mode; + + GtkListStore *shortcuts_model; + + /* Filter for the shortcuts pane. We filter out the "current folder" row and + * the separator that we use for the "Save in folder" combo. + */ + GtkTreeModel *shortcuts_pane_filter_model; + + /* Filter for the "Save in folder" combo. We filter out the Search row and + * its separator. + */ + GtkTreeModel *shortcuts_combo_filter_model; + + GtkTreeModelSort *sort_model; + + /* Handles */ + GSList *loading_shortcuts; + GSList *reload_icon_handles; + GtkFileSystemHandle *file_list_drag_data_received_handle; + GtkFileSystemHandle *update_current_folder_handle; + GtkFileSystemHandle *show_and_select_paths_handle; + GtkFileSystemHandle *should_respond_get_info_handle; + GtkFileSystemHandle *file_exists_get_info_handle; + GtkFileSystemHandle *update_from_entry_handle; + GtkFileSystemHandle *shortcuts_activate_iter_handle; + GSList *pending_handles; + + LoadState load_state; + ReloadState reload_state; + guint load_timeout_id; + + OperationMode operation_mode; + + GSList *pending_select_paths; + + GtkFileFilter *current_filter; + GSList *filters; + + GtkTooltips *tooltips; + + int num_volumes; + int num_shortcuts; + int num_bookmarks; + + gulong volumes_changed_id; + gulong bookmarks_changed_id; + + GtkFilePath *current_volume_path; + GtkFilePath *current_folder; + GtkFilePath *preview_path; + char *preview_display_name; + + GtkTreeViewColumn *list_name_column; + GtkCellRenderer *list_name_renderer; + GtkTreeViewColumn *list_mtime_column; + + GSource *edited_idle; + char *edited_new_text; + + gulong settings_signal_id; + int icon_size; + + gulong toplevel_set_focus_id; + GtkWidget *toplevel_last_focus_widget; + +#if 0 + GdkDragContext *shortcuts_drag_context; + GSource *shortcuts_drag_outside_idle; +#endif + + gint default_width; + gint default_height; + + /* Flags */ + + guint local_only : 1; + guint preview_widget_active : 1; + guint use_preview_label : 1; + guint select_multiple : 1; + guint show_hidden : 1; + guint do_overwrite_confirmation : 1; + guint list_sort_ascending : 1; + guint changing_folder : 1; + guint shortcuts_current_folder_active : 1; + guint expand_folders : 1; + guint has_home : 1; + guint has_desktop : 1; + guint has_search : 1; + guint has_recent : 1; + +#if 0 + guint shortcuts_drag_outside : 1; +#endif +}; + + +/* GtkFileSystemModel private */ + +typedef struct _FileModelNode FileModelNode; + +struct _GtkFileSystemModel +{ + GObject parent_instance; + + GtkFileSystem *file_system; + GtkFileInfoType types; + FileModelNode *roots; + GtkFileFolder *root_folder; + GtkFilePath *root_path; + + GtkFileSystemModelFilter filter_func; + gpointer filter_data; + + GSList *idle_clears; + GSource *idle_clear_source; + + gushort max_depth; + + GSList *pending_handles; + + guint show_hidden : 1; + guint show_folders : 1; + guint show_files : 1; + guint folders_only : 1; + guint has_editable : 1; +}; + +struct _FileModelNode +{ + GtkFilePath *path; + FileModelNode *next; + + GtkFileInfo *info; + GtkFileFolder *folder; + + FileModelNode *children; + FileModelNode *parent; + GtkFileSystemModel *model; + + guint ref_count; + guint n_referenced_children; + + gushort depth; + + guint has_dummy : 1; + guint is_dummy : 1; + guint is_visible : 1; + guint loaded : 1; + guint idle_clear : 1; + guint load_pending : 1; +}; + + +G_END_DECLS + +#endif /* __GTK_FILE_CHOOSER_PRIVATE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserutils.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserutils.h new file mode 100644 index 00000000..04d6344f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserutils.h @@ -0,0 +1,68 @@ +/* GTK - The GIMP Toolkit + * gtkfilechooserutils.h: Private utility functions useful for + * implementing a GtkFileChooser interface + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_FILE_CHOOSER_UTILS_H__ +#define __GTK_FILE_CHOOSER_UTILS_H__ + +/* This is a "semi-private" header; it is meant only for + * alternate GtkFileChooser implementations; no stability guarantees + * are made at this point + */ +#ifndef GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED +#error "gtkfilechooserutils.h is not supported API for general use" +#endif + +#include "gtkfilechooserprivate.h" + +G_BEGIN_DECLS + +#define GTK_FILE_CHOOSER_DELEGATE_QUARK (_gtk_file_chooser_delegate_get_quark ()) + +typedef enum { + GTK_FILE_CHOOSER_PROP_FIRST = 0x1000, + GTK_FILE_CHOOSER_PROP_ACTION = GTK_FILE_CHOOSER_PROP_FIRST, + GTK_FILE_CHOOSER_PROP_FILE_SYSTEM_BACKEND, + GTK_FILE_CHOOSER_PROP_FILTER, + GTK_FILE_CHOOSER_PROP_LOCAL_ONLY, + GTK_FILE_CHOOSER_PROP_PREVIEW_WIDGET, + GTK_FILE_CHOOSER_PROP_PREVIEW_WIDGET_ACTIVE, + GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL, + GTK_FILE_CHOOSER_PROP_EXTRA_WIDGET, + GTK_FILE_CHOOSER_PROP_SELECT_MULTIPLE, + GTK_FILE_CHOOSER_PROP_SHOW_HIDDEN, + GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION, + GTK_FILE_CHOOSER_PROP_LAST = GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION +} GtkFileChooserProp; + +void _gtk_file_chooser_install_properties (GObjectClass *klass); +#ifdef MAEMO_CHANGES +void hildon_gtk_file_chooser_install_properties (GObjectClass *klass); +#endif /* MAEMO_CHANGES */ + +void _gtk_file_chooser_delegate_iface_init (GtkFileChooserIface *iface); +void _gtk_file_chooser_set_delegate (GtkFileChooser *receiver, + GtkFileChooser *delegate); + +GQuark _gtk_file_chooser_delegate_get_quark (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* __GTK_FILE_CHOOSER_UTILS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserwidget.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserwidget.h new file mode 100644 index 00000000..2df7ded1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilechooserwidget.h @@ -0,0 +1,59 @@ +/* GTK - The GIMP Toolkit + * gtkfilechooserwidget.h: Embeddable file selector widget + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_FILE_CHOOSER_WIDGET_H__ +#define __GTK_FILE_CHOOSER_WIDGET_H__ + +#include "gtkfilechooser.h" +#include <gtk/gtkvbox.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_FILE_CHOOSER_WIDGET (gtk_file_chooser_widget_get_type ()) +#define GTK_FILE_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidget)) +#define GTK_FILE_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidgetClass)) +#define GTK_IS_FILE_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET)) +#define GTK_IS_FILE_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_WIDGET)) +#define GTK_FILE_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidgetClass)) + +typedef struct _GtkFileChooserWidget GtkFileChooserWidget; +typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass; + +typedef struct _GtkFileChooserWidgetPrivate GtkFileChooserWidgetPrivate; + +struct _GtkFileChooserWidgetClass +{ + GtkVBoxClass parent_class; +}; + +struct _GtkFileChooserWidget +{ + GtkVBox parent_instance; + + GtkFileChooserWidgetPrivate *priv; +}; + +GType gtk_file_chooser_widget_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_file_chooser_widget_new (GtkFileChooserAction action); +GtkWidget *gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction action, + const gchar *backend); +G_END_DECLS + +#endif /* __GTK_FILE_CHOOSER_WIDGET_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilefilter.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilefilter.h new file mode 100644 index 00000000..fd074f87 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilefilter.h @@ -0,0 +1,79 @@ +/* GTK - The GIMP Toolkit + * gtkfilefilter.h: Filters for selecting a file subset + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_FILE_FILTER_H__ +#define __GTK_FILE_FILTER_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_FILE_FILTER (gtk_file_filter_get_type ()) +#define GTK_FILE_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_FILTER, GtkFileFilter)) +#define GTK_IS_FILE_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_FILTER)) + +typedef struct _GtkFileFilter GtkFileFilter; +typedef struct _GtkFileFilterInfo GtkFileFilterInfo; + +typedef enum { + GTK_FILE_FILTER_FILENAME = 1 << 0, + GTK_FILE_FILTER_URI = 1 << 1, + GTK_FILE_FILTER_DISPLAY_NAME = 1 << 2, + GTK_FILE_FILTER_MIME_TYPE = 1 << 3 +} GtkFileFilterFlags; + +typedef gboolean (*GtkFileFilterFunc) (const GtkFileFilterInfo *filter_info, + gpointer data); + +struct _GtkFileFilterInfo +{ + GtkFileFilterFlags contains; + + const gchar *filename; + const gchar *uri; + const gchar *display_name; + const gchar *mime_type; +}; + +GType gtk_file_filter_get_type (void) G_GNUC_CONST; + +GtkFileFilter * gtk_file_filter_new (void); +void gtk_file_filter_set_name (GtkFileFilter *filter, + const gchar *name); +G_CONST_RETURN gchar *gtk_file_filter_get_name (GtkFileFilter *filter); + +void gtk_file_filter_add_mime_type (GtkFileFilter *filter, + const gchar *mime_type); +void gtk_file_filter_add_pattern (GtkFileFilter *filter, + const gchar *pattern); +void gtk_file_filter_add_pixbuf_formats (GtkFileFilter *filter); +void gtk_file_filter_add_custom (GtkFileFilter *filter, + GtkFileFilterFlags needed, + GtkFileFilterFunc func, + gpointer data, + GDestroyNotify notify); + +GtkFileFilterFlags gtk_file_filter_get_needed (GtkFileFilter *filter); +gboolean gtk_file_filter_filter (GtkFileFilter *filter, + const GtkFileFilterInfo *filter_info); + +G_END_DECLS + +#endif /* __GTK_FILE_FILTER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilesel.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilesel.h new file mode 100644 index 00000000..75f65a16 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilesel.h @@ -0,0 +1,127 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_FILESEL_H__ +#define __GTK_FILESEL_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkdialog.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_FILE_SELECTION (gtk_file_selection_get_type ()) +#define GTK_FILE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_SELECTION, GtkFileSelection)) +#define GTK_FILE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_SELECTION, GtkFileSelectionClass)) +#define GTK_IS_FILE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_SELECTION)) +#define GTK_IS_FILE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_SELECTION)) +#define GTK_FILE_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_SELECTION, GtkFileSelectionClass)) + + +typedef struct _GtkFileSelection GtkFileSelection; +typedef struct _GtkFileSelectionClass GtkFileSelectionClass; + +struct _GtkFileSelection +{ + /*< private >*/ + GtkDialog parent_instance; + + /*< public >*/ + GtkWidget *dir_list; + GtkWidget *file_list; + GtkWidget *selection_entry; + GtkWidget *selection_text; + GtkWidget *main_vbox; + GtkWidget *ok_button; + GtkWidget *cancel_button; + GtkWidget *help_button; + GtkWidget *history_pulldown; + GtkWidget *history_menu; + GList *history_list; + GtkWidget *fileop_dialog; + GtkWidget *fileop_entry; + gchar *fileop_file; + gpointer cmpl_state; + + GtkWidget *fileop_c_dir; + GtkWidget *fileop_del_file; + GtkWidget *fileop_ren_file; + + GtkWidget *button_area; + GtkWidget *action_area; + + /*< private >*/ + GPtrArray *selected_names; + gchar *last_selected; +}; + +struct _GtkFileSelectionClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +#ifdef G_OS_WIN32 +/* Reserve old names for DLL ABI backward compatibility */ +#define gtk_file_selection_get_filename gtk_file_selection_get_filename_utf8 +#define gtk_file_selection_set_filename gtk_file_selection_set_filename_utf8 +#define gtk_file_selection_get_selections gtk_file_selection_get_selections_utf8 +#endif + +GType gtk_file_selection_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_file_selection_new (const gchar *title); +void gtk_file_selection_set_filename (GtkFileSelection *filesel, + const gchar *filename); +G_CONST_RETURN gchar* gtk_file_selection_get_filename (GtkFileSelection *filesel); + +void gtk_file_selection_complete (GtkFileSelection *filesel, + const gchar *pattern); +void gtk_file_selection_show_fileop_buttons (GtkFileSelection *filesel); +void gtk_file_selection_hide_fileop_buttons (GtkFileSelection *filesel); + +gchar** gtk_file_selection_get_selections (GtkFileSelection *filesel); + +void gtk_file_selection_set_select_multiple (GtkFileSelection *filesel, + gboolean select_multiple); +gboolean gtk_file_selection_get_select_multiple (GtkFileSelection *filesel); + + +G_END_DECLS + + +#endif /* __GTK_FILESEL_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilesystem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilesystem.h new file mode 100644 index 00000000..18aa5848 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilesystem.h @@ -0,0 +1,448 @@ +/* GTK - The GIMP Toolkit + * gtkfilesystem.h: Abstract file system interfaces + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_FILE_SYSTEM_H__ +#define __GTK_FILE_SYSTEM_H__ + +/* This is a "semi-private" header; it is meant only for + * alternate GtkFileChooser backend modules; no stability guarantees + * are made at this point + */ +#ifndef GTK_FILE_SYSTEM_ENABLE_UNSUPPORTED +#error "GtkFileSystem is not supported API for general use" +#endif + +#include <glib-object.h> +#include <gtk/gtkwidget.h> /* For icon handling */ + +G_BEGIN_DECLS + +typedef gint64 GtkFileTime; + +typedef struct _GtkFileFolder GtkFileFolder; +typedef struct _GtkFileFolderIface GtkFileFolderIface; +typedef struct _GtkFileInfo GtkFileInfo; +typedef struct _GtkFileSystem GtkFileSystem; +typedef struct _GtkFileSystemIface GtkFileSystemIface; +typedef struct _GtkFileSystemVolume GtkFileSystemVolume; + +typedef struct _GtkFilePath GtkFilePath; + +/* Mask of information about a file, for monitoring and + * gtk_file_system_get_info() + */ +typedef enum { + GTK_FILE_INFO_DISPLAY_NAME = 1 << 0, + GTK_FILE_INFO_IS_FOLDER = 1 << 1, + GTK_FILE_INFO_IS_HIDDEN = 1 << 2, + GTK_FILE_INFO_MIME_TYPE = 1 << 3, + GTK_FILE_INFO_MODIFICATION_TIME = 1 << 4, + GTK_FILE_INFO_SIZE = 1 << 5, + GTK_FILE_INFO_ICON = 1 << 6, + GTK_FILE_INFO_ALL = (1 << 7) - 1 +} GtkFileInfoType; + +/* GError enumeration for GtkFileSystem + */ + +#define GTK_FILE_SYSTEM_ERROR (gtk_file_system_error_quark ()) + +typedef enum +{ + GTK_FILE_SYSTEM_ERROR_NONEXISTENT, + GTK_FILE_SYSTEM_ERROR_NOT_FOLDER, + GTK_FILE_SYSTEM_ERROR_INVALID_URI, + GTK_FILE_SYSTEM_ERROR_BAD_FILENAME, + GTK_FILE_SYSTEM_ERROR_FAILED, + GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS +} GtkFileSystemError; + +GQuark gtk_file_system_error_quark (void); + +/* Boxed-type for gtk_file_folder_get_info() results + */ +#define GTK_TYPE_FILE_INFO (gtk_file_info_get_type ()) + +GType gtk_file_info_get_type (void) G_GNUC_CONST; + +GtkFileInfo *gtk_file_info_new (void); +GtkFileInfo *gtk_file_info_copy (GtkFileInfo *info); +void gtk_file_info_free (GtkFileInfo *info); + + +G_CONST_RETURN gchar *gtk_file_info_get_display_name (const GtkFileInfo *info); +G_CONST_RETURN gchar *gtk_file_info_get_display_key (const GtkFileInfo *info); +void gtk_file_info_set_display_name (GtkFileInfo *info, + const gchar *display_name); +gboolean gtk_file_info_get_is_folder (const GtkFileInfo *info); +void gtk_file_info_set_is_folder (GtkFileInfo *info, + gboolean is_folder); +gboolean gtk_file_info_get_is_hidden (const GtkFileInfo *info); +void gtk_file_info_set_is_hidden (GtkFileInfo *info, + gboolean is_hidden); +G_CONST_RETURN gchar *gtk_file_info_get_mime_type (const GtkFileInfo *info); +void gtk_file_info_set_mime_type (GtkFileInfo *info, + const gchar *mime_type); +GtkFileTime gtk_file_info_get_modification_time (const GtkFileInfo *info); +void gtk_file_info_set_modification_time (GtkFileInfo *info, + GtkFileTime modification_time); +gint64 gtk_file_info_get_size (const GtkFileInfo *info); +void gtk_file_info_set_size (GtkFileInfo *info, + gint64 size); + +void gtk_file_info_set_icon_name (GtkFileInfo *info, + const gchar *con_name); +G_CONST_RETURN gchar *gtk_file_info_get_icon_name (const GtkFileInfo *info); +GdkPixbuf *gtk_file_info_render_icon (const GtkFileInfo *info, + GtkWidget *widget, + gint pixel_size, + GError **error); + +/* GtkFileSystemHandle + */ + +#define GTK_TYPE_FILE_SYSTEM_HANDLE (gtk_file_system_handle_get_type ()) +#define GTK_FILE_SYSTEM_HANDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_SYSTEM_HANDLE, GtkFileSystemHandle)) +#define GTK_IS_FILE_SYSTEM_HANDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_SYSTEM_HANDLE)) +#define GTK_FILE_SYSTEM_HANDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_SYSTEM_HANDLE, GtkFileSystemHandleUnixClass)) +#define GTK_IS_FILE_SYSTEM_HANDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_SYSTEM_HANDLE)) +#define GTK_FILE_SYSTEM_HANDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_SYSTEM_HANDLE, GtkFileSystemHandleClass)) + +typedef struct _GtkFileSystemHandle GtkFileSystemHandle; +typedef struct _GtkFileSystemHandleClass GtkFileSystemHandleClass; + +struct _GtkFileSystemHandle +{ + GObject parent_instance; + + GtkFileSystem *file_system; + + guint cancelled : 1; +}; + +struct _GtkFileSystemHandleClass +{ + GObjectClass parent_class; +}; + +GType gtk_file_system_handle_get_type (void); + +/* The base GtkFileSystem interface + */ +#define GTK_TYPE_FILE_SYSTEM (gtk_file_system_get_type ()) +#define GTK_FILE_SYSTEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_SYSTEM, GtkFileSystem)) +#define GTK_IS_FILE_SYSTEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_SYSTEM)) +#define GTK_FILE_SYSTEM_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_FILE_SYSTEM, GtkFileSystemIface)) + +/* Callbacks for the asynchronous GtkFileSystem operations + */ + +typedef void (* GtkFileSystemGetInfoCallback) (GtkFileSystemHandle *handle, + const GtkFileInfo *file_info, + const GError *error, + gpointer data); +typedef void (* GtkFileSystemGetFolderCallback) (GtkFileSystemHandle *handle, + GtkFileFolder *folder, + const GError *error, + gpointer data); +typedef void (* GtkFileSystemCreateFolderCallback) (GtkFileSystemHandle *handle, + const GtkFilePath *path, + const GError *error, + gpointer data); +typedef void (* GtkFileSystemVolumeMountCallback) (GtkFileSystemHandle *handle, + GtkFileSystemVolume *volume, + const GError *error, + gpointer data); + +/* + */ + +struct _GtkFileSystemIface +{ + GTypeInterface base_iface; + + /* Methods + */ + GSList * (*list_volumes) (GtkFileSystem *file_system); + GtkFileSystemVolume * (*get_volume_for_path) (GtkFileSystem *file_system, + const GtkFilePath *path); + + GtkFileSystemHandle * (*get_folder) (GtkFileSystem *file_system, + const GtkFilePath *path, + GtkFileInfoType types, + GtkFileSystemGetFolderCallback callback, + gpointer data); + GtkFileSystemHandle * (*get_info) (GtkFileSystem *file_system, + const GtkFilePath *path, + GtkFileInfoType types, + GtkFileSystemGetInfoCallback callback, + gpointer data); + GtkFileSystemHandle * (*create_folder) (GtkFileSystem *file_system, + const GtkFilePath *path, + GtkFileSystemCreateFolderCallback callback, + gpointer data); + + void (*cancel_operation) (GtkFileSystemHandle *handle); + + /* Volumes + */ + void (*volume_free) (GtkFileSystem *file_system, + GtkFileSystemVolume *volume); + GtkFilePath * (*volume_get_base_path) (GtkFileSystem *file_system, + GtkFileSystemVolume *volume); + gboolean (*volume_get_is_mounted) (GtkFileSystem *file_system, + GtkFileSystemVolume *volume); + GtkFileSystemHandle * (*volume_mount) (GtkFileSystem *file_system, + GtkFileSystemVolume *volume, + GtkFileSystemVolumeMountCallback callback, + gpointer data); + char * (*volume_get_display_name) (GtkFileSystem *file_system, + GtkFileSystemVolume *volume); + gchar * (*volume_get_icon_name) (GtkFileSystem *file_system, + GtkFileSystemVolume *volume, + GError **error); + + /* Path Manipulation + */ + gboolean (*get_parent) (GtkFileSystem *file_system, + const GtkFilePath *path, + GtkFilePath **parent, + GError **error); + GtkFilePath * (*make_path) (GtkFileSystem *file_system, + const GtkFilePath *base_path, + const gchar *display_name, + GError **error); + gboolean (*parse) (GtkFileSystem *file_system, + const GtkFilePath *base_path, + const gchar *str, + GtkFilePath **folder, + gchar **file_part, + GError **error); + gchar * (*path_to_uri) (GtkFileSystem *file_system, + const GtkFilePath *path); + gchar * (*path_to_filename) (GtkFileSystem *file_system, + const GtkFilePath *path); + GtkFilePath *(*uri_to_path) (GtkFileSystem *file_system, + const gchar *uri); + GtkFilePath *(*filename_to_path) (GtkFileSystem *file_system, + const gchar *path); + + /* Bookmarks + */ + gboolean (*insert_bookmark) (GtkFileSystem *file_system, + const GtkFilePath *path, + gint position, + GError **error); + gboolean (*remove_bookmark) (GtkFileSystem *file_system, + const GtkFilePath *path, + GError **error); + GSList * (*list_bookmarks) (GtkFileSystem *file_system); + + /* Signals + */ + void (*volumes_changed) (GtkFileSystem *file_system); + void (*bookmarks_changed) (GtkFileSystem *file_system); + + /* Bookmark labels + */ + gchar * (*get_bookmark_label) (GtkFileSystem *file_system, + const GtkFilePath *path); + void (*set_bookmark_label) (GtkFileSystem *file_system, + const GtkFilePath *path, + const gchar *label); +}; + +GType gtk_file_system_get_type (void) G_GNUC_CONST; + +GSList * gtk_file_system_list_volumes (GtkFileSystem *file_system); + +GtkFileSystemVolume *gtk_file_system_get_volume_for_path (GtkFileSystem *file_system, + const GtkFilePath *path); + +void gtk_file_system_volume_free (GtkFileSystem *file_system, + GtkFileSystemVolume *volume); +GtkFilePath * gtk_file_system_volume_get_base_path (GtkFileSystem *file_system, + GtkFileSystemVolume *volume); +gboolean gtk_file_system_volume_get_is_mounted (GtkFileSystem *file_system, + GtkFileSystemVolume *volume); +GtkFileSystemHandle *gtk_file_system_volume_mount (GtkFileSystem *file_system, + GtkFileSystemVolume *volume, + GtkFileSystemVolumeMountCallback callback, + gpointer data); +char * gtk_file_system_volume_get_display_name (GtkFileSystem *file_system, + GtkFileSystemVolume *volume); +GdkPixbuf * gtk_file_system_volume_render_icon (GtkFileSystem *file_system, + GtkFileSystemVolume *volume, + GtkWidget *widget, + gint pixel_size, + GError **error); +gchar * gtk_file_system_volume_get_icon_name (GtkFileSystem *file_system, + GtkFileSystemVolume *volume, + GError **error); + +gboolean gtk_file_system_get_parent (GtkFileSystem *file_system, + const GtkFilePath *path, + GtkFilePath **parent, + GError **error); +GtkFileSystemHandle *gtk_file_system_get_folder (GtkFileSystem *file_system, + const GtkFilePath *path, + GtkFileInfoType types, + GtkFileSystemGetFolderCallback callback, + gpointer data); +GtkFileSystemHandle *gtk_file_system_get_info (GtkFileSystem *file_system, + const GtkFilePath *path, + GtkFileInfoType types, + GtkFileSystemGetInfoCallback callback, + gpointer data); +GtkFileSystemHandle *gtk_file_system_create_folder (GtkFileSystem *file_system, + const GtkFilePath *path, + GtkFileSystemCreateFolderCallback callback, + gpointer data); +void gtk_file_system_cancel_operation (GtkFileSystemHandle *handle); +GtkFilePath * gtk_file_system_make_path (GtkFileSystem *file_system, + const GtkFilePath *base_path, + const gchar *display_name, + GError **error); +gboolean gtk_file_system_parse (GtkFileSystem *file_system, + const GtkFilePath *base_path, + const gchar *str, + GtkFilePath **folder, + gchar **file_part, + GError **error); + +gchar * gtk_file_system_path_to_uri (GtkFileSystem *file_system, + const GtkFilePath *path); +gchar * gtk_file_system_path_to_filename (GtkFileSystem *file_system, + const GtkFilePath *path); +GtkFilePath *gtk_file_system_uri_to_path (GtkFileSystem *file_system, + const gchar *uri); +GtkFilePath *gtk_file_system_filename_to_path (GtkFileSystem *file_system, + const gchar *filename); + +gboolean gtk_file_system_path_is_local (GtkFileSystem *filesystem, + const GtkFilePath *path); + +gboolean gtk_file_system_insert_bookmark (GtkFileSystem *file_system, + const GtkFilePath *path, + gint position, + GError **error); +gboolean gtk_file_system_remove_bookmark (GtkFileSystem *file_system, + const GtkFilePath *path, + GError **error); +GSList *gtk_file_system_list_bookmarks (GtkFileSystem *file_system); + +gchar *gtk_file_system_get_bookmark_label (GtkFileSystem *file_system, + const GtkFilePath *path); +void gtk_file_system_set_bookmark_label (GtkFileSystem *file_system, + const GtkFilePath *path, + const gchar *label); + +/* + * Detailed information about a particular folder + */ +#define GTK_TYPE_FILE_FOLDER (gtk_file_folder_get_type ()) +#define GTK_FILE_FOLDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_FOLDER, GtkFileFolder)) +#define GTK_IS_FILE_FOLDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_FOLDER)) +#define GTK_FILE_FOLDER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_FILE_FOLDER, GtkFileFolderIface)) + +struct _GtkFileFolderIface +{ + GTypeInterface base_iface; + + /* Methods + */ + GtkFileInfo * (*get_info) (GtkFileFolder *folder, + const GtkFilePath *path, + GError **error); + gboolean (*list_children) (GtkFileFolder *folder, + GSList **children, + GError **error); + + /* ??? refresh() ??? */ + + /* Signals + */ + void (*deleted) (GtkFileFolder *monitor); + void (*files_added) (GtkFileFolder *monitor, + GSList *paths); + void (*files_changed) (GtkFileFolder *monitor, + GSList *paths); + void (*files_removed) (GtkFileFolder *monitor, + GSList *paths); + + /* Method / signal */ + gboolean (*is_finished_loading) (GtkFileFolder *folder); + void (*finished_loading) (GtkFileFolder *folder); +}; + +GType gtk_file_folder_get_type (void) G_GNUC_CONST; +gboolean gtk_file_folder_list_children (GtkFileFolder *folder, + GSList **children, + GError **error); +GtkFileInfo *gtk_file_folder_get_info (GtkFileFolder *folder, + const GtkFilePath *path, + GError **error); + +gboolean gtk_file_folder_is_finished_loading (GtkFileFolder *folder); + + +/* GtkFilePath */ +#define GTK_TYPE_FILE_PATH (gtk_file_path_get_type ()) + +GType gtk_file_path_get_type (void) G_GNUC_CONST; +#ifdef __GNUC__ +#define gtk_file_path_new_dup(str) \ + ({ const gchar *__s = (str); (GtkFilePath *)g_strdup(__s); }) +#define gtk_file_path_new_steal(str) \ + ({ gchar *__s = (str); (GtkFilePath *)__s; }) +#define gtk_file_path_get_string(path) \ + ({ const GtkFilePath *__p = (path); (const gchar *)__p; }) +#define gtk_file_path_free(path) \ + ({ GtkFilePath *__p = (path); g_free (__p); }) +#else /* __GNUC__ */ +#define gtk_file_path_new_dup(str) ((GtkFilePath *)g_strdup(str)) +#define gtk_file_path_new_steal(str) ((GtkFilePath *)(str)) +#define gtk_file_path_get_string(str) ((const gchar *)(str)) +#define gtk_file_path_free(path) g_free (path) +#endif/* __GNUC__ */ + +#define gtk_file_path_copy(path) gtk_file_path_new_dup (gtk_file_path_get_string(path)) +#ifdef G_OS_WIN32 +int _gtk_file_system_win32_path_compare (const gchar *path1, + const gchar *path2); +#define gtk_file_path_compare(path1,path2) \ + _gtk_file_system_win32_path_compare (gtk_file_path_get_string (path1), \ + gtk_file_path_get_string (path2)) +#else +#define gtk_file_path_compare(path1,path2) strcmp (gtk_file_path_get_string (path1), \ + gtk_file_path_get_string (path2)) +#endif + +GSList *gtk_file_paths_sort (GSList *paths); +GSList *gtk_file_paths_copy (GSList *paths); +void gtk_file_paths_free (GSList *paths); + +/* GtkFileSystem modules support */ + +GtkFileSystem *gtk_file_system_create (const char *file_system_name); + +G_END_DECLS + +#endif /* __GTK_FILE_SYSTEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilesystemmodel.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilesystemmodel.h new file mode 100644 index 00000000..1bf999ba --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfilesystemmodel.h @@ -0,0 +1,89 @@ +/* GTK - The GIMP Toolkit + * gtkfilesystemmodel.h: GtkTreeModel wrapping a GtkFileSystem + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_FILE_SYSTEM_MODEL_H__ +#define __GTK_FILE_SYSTEM_MODEL_H__ + +#ifndef GTK_FILE_SYSTEM_ENABLE_UNSUPPORTED +#error "GtkFileSystemModel is not supported API for general use" +#endif + +#include <glib-object.h> +#include "gtkfilesystem.h" +#include <gtk/gtktreemodel.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_FILE_SYSTEM_MODEL (_gtk_file_system_model_get_type ()) +#define GTK_FILE_SYSTEM_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_SYSTEM_MODEL, GtkFileSystemModel)) +#define GTK_IS_FILE_SYSTEM_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_SYSTEM_MODEL)) + +typedef struct _GtkFileSystemModel GtkFileSystemModel; + +GType _gtk_file_system_model_get_type (void) G_GNUC_CONST; + +typedef enum { + GTK_FILE_SYSTEM_MODEL_INFO, + GTK_FILE_SYSTEM_MODEL_DISPLAY_NAME, + GTK_FILE_SYSTEM_MODEL_N_COLUMNS +} GtkFileSystemModelColumns; + +GtkFileSystemModel *_gtk_file_system_model_new (GtkFileSystem *file_system, + const GtkFilePath *root_path, + gint max_depth, + GtkFileInfoType types, + GError **error); +const GtkFileInfo * _gtk_file_system_model_get_info (GtkFileSystemModel *model, + GtkTreeIter *iter); +const GtkFilePath * _gtk_file_system_model_get_path (GtkFileSystemModel *model, + GtkTreeIter *iter); +void _gtk_file_system_model_set_show_hidden (GtkFileSystemModel *model, + gboolean show_hidden); +void _gtk_file_system_model_set_show_folders (GtkFileSystemModel *model, + gboolean show_folders); +void _gtk_file_system_model_set_show_files (GtkFileSystemModel *model, + gboolean show_files); + +typedef gboolean (*GtkFileSystemModelFilter) (GtkFileSystemModel *model, + GtkFilePath *path, + const GtkFileInfo *info, + gpointer user_data); + +void _gtk_file_system_model_set_filter (GtkFileSystemModel *model, + GtkFileSystemModelFilter filter, + gpointer user_data); + +typedef void (*GtkFileSystemModelPathFunc) (GtkFileSystemModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + gpointer user_data); + +void _gtk_file_system_model_path_do (GtkFileSystemModel *model, + const GtkFilePath *path, + GtkFileSystemModelPathFunc func, + gpointer user_data); + +void _gtk_file_system_model_add_editable (GtkFileSystemModel *model, + GtkTreeIter *iter); +void _gtk_file_system_model_remove_editable (GtkFileSystemModel *model); + +G_END_DECLS + +#endif /* __GTK_FILE_SYSTEM_MODEL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfixed.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfixed.h new file mode 100644 index 00000000..a313568c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfixed.h @@ -0,0 +1,85 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_FIXED_H__ +#define __GTK_FIXED_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkcontainer.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_FIXED (gtk_fixed_get_type ()) +#define GTK_FIXED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FIXED, GtkFixed)) +#define GTK_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FIXED, GtkFixedClass)) +#define GTK_IS_FIXED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FIXED)) +#define GTK_IS_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FIXED)) +#define GTK_FIXED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FIXED, GtkFixedClass)) + + +typedef struct _GtkFixed GtkFixed; +typedef struct _GtkFixedClass GtkFixedClass; +typedef struct _GtkFixedChild GtkFixedChild; + +struct _GtkFixed +{ + GtkContainer container; + + GList *children; +}; + +struct _GtkFixedClass +{ + GtkContainerClass parent_class; +}; + +struct _GtkFixedChild +{ + GtkWidget *widget; + gint x; + gint y; +}; + + +GType gtk_fixed_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_fixed_new (void); +void gtk_fixed_put (GtkFixed *fixed, + GtkWidget *widget, + gint x, + gint y); +void gtk_fixed_move (GtkFixed *fixed, + GtkWidget *widget, + gint x, + gint y); +void gtk_fixed_set_has_window (GtkFixed *fixed, + gboolean has_window); +gboolean gtk_fixed_get_has_window (GtkFixed *fixed); + +G_END_DECLS + +#endif /* __GTK_FIXED_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfontbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfontbutton.h new file mode 100644 index 00000000..8952569b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfontbutton.h @@ -0,0 +1,100 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1998 David Abilleira Freijeiro <odaf@nexo.es> + * All rights reserved + * Based on gnome-color-picker by Federico Mena <federico@nuclecu.unam.mx> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Cambridge, MA 02139, USA. + */ +/* + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_FONT_BUTTON_H__ +#define __GTK_FONT_BUTTON_H__ + +#include <gtk/gtkbutton.h> + + +G_BEGIN_DECLS + +/* GtkFontButton is a button widget that allow user to select a font. + */ + +#define GTK_TYPE_FONT_BUTTON (gtk_font_button_get_type ()) +#define GTK_FONT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButton)) +#define GTK_FONT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_BUTTON, GtkFontButtonClass)) +#define GTK_IS_FONT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_BUTTON)) +#define GTK_IS_FONT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_BUTTON)) +#define GTK_FONT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButtonClass)) + +typedef struct _GtkFontButton GtkFontButton; +typedef struct _GtkFontButtonClass GtkFontButtonClass; +typedef struct _GtkFontButtonPrivate GtkFontButtonPrivate; + +struct _GtkFontButton { + GtkButton button; + + /*< private >*/ + GtkFontButtonPrivate *priv; +}; + +struct _GtkFontButtonClass { + GtkButtonClass parent_class; + + /* font_set signal is emitted when font is chosen */ + void (* font_set) (GtkFontButton *gfp); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_font_button_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_font_button_new (void); +GtkWidget *gtk_font_button_new_with_font (const gchar *fontname); + +G_CONST_RETURN gchar *gtk_font_button_get_title (GtkFontButton *font_button); +void gtk_font_button_set_title (GtkFontButton *font_button, + const gchar *title); +gboolean gtk_font_button_get_use_font (GtkFontButton *font_button); +void gtk_font_button_set_use_font (GtkFontButton *font_button, + gboolean use_font); +gboolean gtk_font_button_get_use_size (GtkFontButton *font_button); +void gtk_font_button_set_use_size (GtkFontButton *font_button, + gboolean use_size); +G_CONST_RETURN gchar* gtk_font_button_get_font_name (GtkFontButton *font_button); +gboolean gtk_font_button_set_font_name (GtkFontButton *font_button, + const gchar *fontname); +gboolean gtk_font_button_get_show_style (GtkFontButton *font_button); +void gtk_font_button_set_show_style (GtkFontButton *font_button, + gboolean show_style); +gboolean gtk_font_button_get_show_size (GtkFontButton *font_button); +void gtk_font_button_set_show_size (GtkFontButton *font_button, + gboolean show_size); + +G_END_DECLS + + +#endif /* __GTK_FONT_BUTTON_H__ */ + + + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfontsel.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfontsel.h new file mode 100644 index 00000000..f4133991 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkfontsel.h @@ -0,0 +1,198 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GtkFontSelection widget for Gtk+, by Damon Chaplin, May 1998. + * Based on the GnomeFontSelector widget, by Elliot Lee, but major changes. + * The GnomeFontSelector was derived from app/text_tool.c in the GIMP. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_FONTSEL_H__ +#define __GTK_FONTSEL_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkdialog.h> +#include <gtk/gtkvbox.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_FONT_SELECTION (gtk_font_selection_get_type ()) +#define GTK_FONT_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_SELECTION, GtkFontSelection)) +#define GTK_FONT_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_SELECTION, GtkFontSelectionClass)) +#define GTK_IS_FONT_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_SELECTION)) +#define GTK_IS_FONT_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_SELECTION)) +#define GTK_FONT_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_SELECTION, GtkFontSelectionClass)) + + +#define GTK_TYPE_FONT_SELECTION_DIALOG (gtk_font_selection_dialog_get_type ()) +#define GTK_FONT_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialog)) +#define GTK_FONT_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialogClass)) +#define GTK_IS_FONT_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_SELECTION_DIALOG)) +#define GTK_IS_FONT_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_SELECTION_DIALOG)) +#define GTK_FONT_SELECTION_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialogClass)) + + +typedef struct _GtkFontSelection GtkFontSelection; +typedef struct _GtkFontSelectionClass GtkFontSelectionClass; + +typedef struct _GtkFontSelectionDialog GtkFontSelectionDialog; +typedef struct _GtkFontSelectionDialogClass GtkFontSelectionDialogClass; + +struct _GtkFontSelection +{ + GtkVBox parent_instance; + + GtkWidget *font_entry; + GtkWidget *family_list; + GtkWidget *font_style_entry; + GtkWidget *face_list; + GtkWidget *size_entry; + GtkWidget *size_list; + GtkWidget *pixels_button; + GtkWidget *points_button; + GtkWidget *filter_button; + GtkWidget *preview_entry; + + PangoFontFamily *family; /* Current family */ + PangoFontFace *face; /* Current face */ + + gint size; + + GdkFont *font; /* Cache for gdk_font_selection_get_font, so we can preserve + * refcounting behavior + */ +}; + +struct _GtkFontSelectionClass +{ + GtkVBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +struct _GtkFontSelectionDialog +{ + GtkDialog parent_instance; + + /*< private >*/ + GtkWidget *fontsel; + + GtkWidget *main_vbox; + GtkWidget *action_area; + /*< public >*/ + GtkWidget *ok_button; + GtkWidget *apply_button; + GtkWidget *cancel_button; + + /*< private >*/ + + /* If the user changes the width of the dialog, we turn auto-shrink off. + * (Unused now, autoshrink doesn't mean anything anymore -Yosh) + */ + gint dialog_width; + gboolean auto_resize; +}; + +struct _GtkFontSelectionDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + + +/***************************************************************************** + * GtkFontSelection functions. + * see the comments in the GtkFontSelectionDialog functions. + *****************************************************************************/ + +GType gtk_font_selection_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_font_selection_new (void); +gchar* gtk_font_selection_get_font_name (GtkFontSelection *fontsel); + +#ifndef GTK_DISABLE_DEPRECATED +GdkFont* gtk_font_selection_get_font (GtkFontSelection *fontsel); +#endif /* GTK_DISABLE_DEPRECATED */ + +gboolean gtk_font_selection_set_font_name (GtkFontSelection *fontsel, + const gchar *fontname); +G_CONST_RETURN gchar* gtk_font_selection_get_preview_text (GtkFontSelection *fontsel); +void gtk_font_selection_set_preview_text (GtkFontSelection *fontsel, + const gchar *text); + +/***************************************************************************** + * GtkFontSelectionDialog functions. + * most of these functions simply call the corresponding function in the + * GtkFontSelection. + *****************************************************************************/ + +GType gtk_font_selection_dialog_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_font_selection_dialog_new (const gchar *title); + +/* This returns the X Logical Font Description fontname, or NULL if no font + is selected. Note that there is a slight possibility that the font might not + have been loaded OK. You should call gtk_font_selection_dialog_get_font() + to see if it has been loaded OK. + You should g_free() the returned font name after you're done with it. */ +gchar* gtk_font_selection_dialog_get_font_name (GtkFontSelectionDialog *fsd); + +#ifndef GTK_DISABLE_DEPRECATED +/* This will return the current GdkFont, or NULL if none is selected or there + was a problem loading it. Remember to use gdk_font_ref/unref() if you want + to use the font (in a style, for example). */ +GdkFont* gtk_font_selection_dialog_get_font (GtkFontSelectionDialog *fsd); +#endif /* GTK_DISABLE_DEPRECATED */ + +/* This sets the currently displayed font. It should be a valid X Logical + Font Description font name (anything else will be ignored), e.g. + "-adobe-courier-bold-o-normal--25-*-*-*-*-*-*-*" + It returns TRUE on success. */ +gboolean gtk_font_selection_dialog_set_font_name (GtkFontSelectionDialog *fsd, + const gchar *fontname); + +/* This returns the text in the preview entry. You should copy the returned + text if you need it. */ +G_CONST_RETURN gchar* gtk_font_selection_dialog_get_preview_text (GtkFontSelectionDialog *fsd); + +/* This sets the text in the preview entry. It will be copied by the entry, + so there's no need to g_strdup() it first. */ +void gtk_font_selection_dialog_set_preview_text (GtkFontSelectionDialog *fsd, + const gchar *text); + + +G_END_DECLS + + +#endif /* __GTK_FONTSEL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkframe.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkframe.h new file mode 100644 index 00000000..85729d13 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkframe.h @@ -0,0 +1,93 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_FRAME_H__ +#define __GTK_FRAME_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkbin.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_FRAME (gtk_frame_get_type ()) +#define GTK_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FRAME, GtkFrame)) +#define GTK_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FRAME, GtkFrameClass)) +#define GTK_IS_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FRAME)) +#define GTK_IS_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FRAME)) +#define GTK_FRAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FRAME, GtkFrameClass)) + + +typedef struct _GtkFrame GtkFrame; +typedef struct _GtkFrameClass GtkFrameClass; + +struct _GtkFrame +{ + GtkBin bin; + + GtkWidget *label_widget; + gint16 shadow_type; + gfloat label_xalign; + gfloat label_yalign; + + GtkAllocation child_allocation; +}; + +struct _GtkFrameClass +{ + GtkBinClass parent_class; + + void (*compute_child_allocation) (GtkFrame *frame, GtkAllocation *allocation); +}; + + +GType gtk_frame_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_frame_new (const gchar *label); + +void gtk_frame_set_label (GtkFrame *frame, + const gchar *label); +G_CONST_RETURN gchar *gtk_frame_get_label (GtkFrame *frame); + +void gtk_frame_set_label_widget (GtkFrame *frame, + GtkWidget *label_widget); +GtkWidget *gtk_frame_get_label_widget (GtkFrame *frame); +void gtk_frame_set_label_align (GtkFrame *frame, + gfloat xalign, + gfloat yalign); +void gtk_frame_get_label_align (GtkFrame *frame, + gfloat *xalign, + gfloat *yalign); +void gtk_frame_set_shadow_type (GtkFrame *frame, + GtkShadowType type); +GtkShadowType gtk_frame_get_shadow_type (GtkFrame *frame); + + +G_END_DECLS + + +#endif /* __GTK_FRAME_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkgamma.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkgamma.h new file mode 100644 index 00000000..fa6999b3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkgamma.h @@ -0,0 +1,89 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1997 David Mosberger + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +/* + * NOTE this widget is considered too specialized/little-used for + * GTK+, and will in the future be moved to some other package. If + * your application needs this widget, feel free to use it, as the + * widget does work and is useful in some applications; it's just not + * of general interest. However, we are not accepting new features for + * the widget, and it will eventually move out of the GTK+ + * distribution. + */ + +#ifndef __GTK_GAMMA_CURVE_H__ +#define __GTK_GAMMA_CURVE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkvbox.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_GAMMA_CURVE (gtk_gamma_curve_get_type ()) +#define GTK_GAMMA_CURVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_GAMMA_CURVE, GtkGammaCurve)) +#define GTK_GAMMA_CURVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_GAMMA_CURVE, GtkGammaCurveClass)) +#define GTK_IS_GAMMA_CURVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_GAMMA_CURVE)) +#define GTK_IS_GAMMA_CURVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_GAMMA_CURVE)) +#define GTK_GAMMA_CURVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_GAMMA_CURVE, GtkGammaCurveClass)) + +typedef struct _GtkGammaCurve GtkGammaCurve; +typedef struct _GtkGammaCurveClass GtkGammaCurveClass; + + +struct _GtkGammaCurve +{ + GtkVBox vbox; + + GtkWidget *table; + GtkWidget *curve; + GtkWidget *button[5]; /* spline, linear, free, gamma, reset */ + + gfloat gamma; + GtkWidget *gamma_dialog; + GtkWidget *gamma_text; +}; + +struct _GtkGammaCurveClass +{ + GtkVBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_gamma_curve_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_gamma_curve_new (void); + + +G_END_DECLS + +#endif /* __GTK_GAMMA_CURVE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkgc.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkgc.h new file mode 100644 index 00000000..38d70a6b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkgc.h @@ -0,0 +1,45 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_GC_H__ +#define __GTK_GC_H__ + + +#include <gdk/gdk.h> + + +G_BEGIN_DECLS + +GdkGC* gtk_gc_get (gint depth, + GdkColormap *colormap, + GdkGCValues *values, + GdkGCValuesMask values_mask); +void gtk_gc_release (GdkGC *gc); + + +G_END_DECLS + +#endif /* __GTK_GC_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhandlebox.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhandlebox.h new file mode 100644 index 00000000..c690a04b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhandlebox.h @@ -0,0 +1,108 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * Copyright (C) 1998 Elliot Lee + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +/* The GtkHandleBox is to allow widgets to be dragged in and out of + * their parents. + */ + + +#ifndef __GTK_HANDLE_BOX_H__ +#define __GTK_HANDLE_BOX_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkbin.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_HANDLE_BOX (gtk_handle_box_get_type ()) +#define GTK_HANDLE_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HANDLE_BOX, GtkHandleBox)) +#define GTK_HANDLE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HANDLE_BOX, GtkHandleBoxClass)) +#define GTK_IS_HANDLE_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HANDLE_BOX)) +#define GTK_IS_HANDLE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HANDLE_BOX)) +#define GTK_HANDLE_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HANDLE_BOX, GtkHandleBoxClass)) + + +typedef struct _GtkHandleBox GtkHandleBox; +typedef struct _GtkHandleBoxClass GtkHandleBoxClass; + +struct _GtkHandleBox +{ + GtkBin bin; + + GdkWindow *bin_window; /* parent window for children */ + GdkWindow *float_window; + GtkShadowType shadow_type; + guint handle_position : 2; + guint float_window_mapped : 1; + guint child_detached : 1; + guint in_drag : 1; + guint shrink_on_detach : 1; + + signed int snap_edge : 3; /* -1 == unset */ + + /* Variables used during a drag + */ + gint deskoff_x, deskoff_y; /* Offset between root relative coordinates + * and deskrelative coordinates */ + GtkAllocation attach_allocation; + GtkAllocation float_allocation; +}; + +struct _GtkHandleBoxClass +{ + GtkBinClass parent_class; + + void (*child_attached) (GtkHandleBox *handle_box, + GtkWidget *child); + void (*child_detached) (GtkHandleBox *handle_box, + GtkWidget *child); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_handle_box_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_handle_box_new (void); +void gtk_handle_box_set_shadow_type (GtkHandleBox *handle_box, + GtkShadowType type); +GtkShadowType gtk_handle_box_get_shadow_type (GtkHandleBox *handle_box); +void gtk_handle_box_set_handle_position (GtkHandleBox *handle_box, + GtkPositionType position); +GtkPositionType gtk_handle_box_get_handle_position(GtkHandleBox *handle_box); +void gtk_handle_box_set_snap_edge (GtkHandleBox *handle_box, + GtkPositionType edge); +GtkPositionType gtk_handle_box_get_snap_edge (GtkHandleBox *handle_box); + +G_END_DECLS + +#endif /* __GTK_HANDLE_BOX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhbbox.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhbbox.h new file mode 100644 index 00000000..7423a754 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhbbox.h @@ -0,0 +1,73 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_HBUTTON_BOX_H__ +#define __GTK_HBUTTON_BOX_H__ + + +#include <gtk/gtkbbox.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_HBUTTON_BOX (gtk_hbutton_box_get_type ()) +#define GTK_HBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HBUTTON_BOX, GtkHButtonBox)) +#define GTK_HBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HBUTTON_BOX, GtkHButtonBoxClass)) +#define GTK_IS_HBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HBUTTON_BOX)) +#define GTK_IS_HBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HBUTTON_BOX)) +#define GTK_HBUTTON_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HBUTTON_BOX, GtkHButtonBoxClass)) + + +typedef struct _GtkHButtonBox GtkHButtonBox; +typedef struct _GtkHButtonBoxClass GtkHButtonBoxClass; + +struct _GtkHButtonBox +{ + GtkButtonBox button_box; +}; + +struct _GtkHButtonBoxClass +{ + GtkButtonBoxClass parent_class; +}; + + +GType gtk_hbutton_box_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_hbutton_box_new (void); + +/* buttons can be added by gtk_container_add() */ + +#ifndef GTK_DISABLE_DEPRECATED +gint gtk_hbutton_box_get_spacing_default (void); +GtkButtonBoxStyle gtk_hbutton_box_get_layout_default (void); + +void gtk_hbutton_box_set_spacing_default (gint spacing); +void gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout); +#endif + +G_END_DECLS + +#endif /* __GTK_HBUTTON_BOX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhbox.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhbox.h new file mode 100644 index 00000000..5296e21e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhbox.h @@ -0,0 +1,66 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_HBOX_H__ +#define __GTK_HBOX_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkbox.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_HBOX (gtk_hbox_get_type ()) +#define GTK_HBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HBOX, GtkHBox)) +#define GTK_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HBOX, GtkHBoxClass)) +#define GTK_IS_HBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HBOX)) +#define GTK_IS_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HBOX)) +#define GTK_HBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HBOX, GtkHBoxClass)) + + +typedef struct _GtkHBox GtkHBox; +typedef struct _GtkHBoxClass GtkHBoxClass; + +struct _GtkHBox +{ + GtkBox box; +}; + +struct _GtkHBoxClass +{ + GtkBoxClass parent_class; +}; + + +GType gtk_hbox_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_hbox_new (gboolean homogeneous, + gint spacing); + + +G_END_DECLS + +#endif /* __GTK_HBOX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhpaned.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhpaned.h new file mode 100644 index 00000000..2272dfd4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhpaned.h @@ -0,0 +1,60 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_HPANED_H__ +#define __GTK_HPANED_H__ + +#include <gtk/gtkpaned.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_HPANED (gtk_hpaned_get_type ()) +#define GTK_HPANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HPANED, GtkHPaned)) +#define GTK_HPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HPANED, GtkHPanedClass)) +#define GTK_IS_HPANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HPANED)) +#define GTK_IS_HPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HPANED)) +#define GTK_HPANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HPANED, GtkHPanedClass)) + + +typedef struct _GtkHPaned GtkHPaned; +typedef struct _GtkHPanedClass GtkHPanedClass; + +struct _GtkHPaned +{ + GtkPaned paned; +}; + +struct _GtkHPanedClass +{ + GtkPanedClass parent_class; +}; + +GType gtk_hpaned_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_hpaned_new (void); + +G_END_DECLS + +#endif /* __GTK_HPANED_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhruler.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhruler.h new file mode 100644 index 00000000..375b8086 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhruler.h @@ -0,0 +1,77 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +/* + * NOTE this widget is considered too specialized/little-used for + * GTK+, and will in the future be moved to some other package. If + * your application needs this widget, feel free to use it, as the + * widget does work and is useful in some applications; it's just not + * of general interest. However, we are not accepting new features for + * the widget, and it will eventually move out of the GTK+ + * distribution. + */ + +#ifndef __GTK_HRULER_H__ +#define __GTK_HRULER_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkruler.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_HRULER (gtk_hruler_get_type ()) +#define GTK_HRULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HRULER, GtkHRuler)) +#define GTK_HRULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HRULER, GtkHRulerClass)) +#define GTK_IS_HRULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HRULER)) +#define GTK_IS_HRULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HRULER)) +#define GTK_HRULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HRULER, GtkHRulerClass)) + + +typedef struct _GtkHRuler GtkHRuler; +typedef struct _GtkHRulerClass GtkHRulerClass; + +struct _GtkHRuler +{ + GtkRuler ruler; +}; + +struct _GtkHRulerClass +{ + GtkRulerClass parent_class; +}; + + +GType gtk_hruler_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_hruler_new (void); + + +G_END_DECLS + + +#endif /* __GTK_HRULER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhscale.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhscale.h new file mode 100644 index 00000000..6f410907 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhscale.h @@ -0,0 +1,68 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_HSCALE_H__ +#define __GTK_HSCALE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkscale.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_HSCALE (gtk_hscale_get_type ()) +#define GTK_HSCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HSCALE, GtkHScale)) +#define GTK_HSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSCALE, GtkHScaleClass)) +#define GTK_IS_HSCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HSCALE)) +#define GTK_IS_HSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSCALE)) +#define GTK_HSCALE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HSCALE, GtkHScaleClass)) + + +typedef struct _GtkHScale GtkHScale; +typedef struct _GtkHScaleClass GtkHScaleClass; + +struct _GtkHScale +{ + GtkScale scale; +}; + +struct _GtkHScaleClass +{ + GtkScaleClass parent_class; +}; + + +GType gtk_hscale_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_hscale_new (GtkAdjustment *adjustment); +GtkWidget* gtk_hscale_new_with_range (gdouble min, + gdouble max, + gdouble step); + + +G_END_DECLS + +#endif /* __GTK_HSCALE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhscrollbar.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhscrollbar.h new file mode 100644 index 00000000..a6f595ba --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhscrollbar.h @@ -0,0 +1,67 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_HSCROLLBAR_H__ +#define __GTK_HSCROLLBAR_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkscrollbar.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_HSCROLLBAR (gtk_hscrollbar_get_type ()) +#define GTK_HSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HSCROLLBAR, GtkHScrollbar)) +#define GTK_HSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSCROLLBAR, GtkHScrollbarClass)) +#define GTK_IS_HSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HSCROLLBAR)) +#define GTK_IS_HSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSCROLLBAR)) +#define GTK_HSCROLLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HSCROLLBAR, GtkHScrollbarClass)) + + +typedef struct _GtkHScrollbar GtkHScrollbar; +typedef struct _GtkHScrollbarClass GtkHScrollbarClass; + +struct _GtkHScrollbar +{ + GtkScrollbar scrollbar; +}; + +struct _GtkHScrollbarClass +{ + GtkScrollbarClass parent_class; +}; + + +GType gtk_hscrollbar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_hscrollbar_new (GtkAdjustment *adjustment); + + +G_END_DECLS + + +#endif /* __GTK_HSCROLLBAR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhseparator.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhseparator.h new file mode 100644 index 00000000..008a2fe4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkhseparator.h @@ -0,0 +1,65 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_HSEPARATOR_H__ +#define __GTK_HSEPARATOR_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkseparator.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_HSEPARATOR (gtk_hseparator_get_type ()) +#define GTK_HSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HSEPARATOR, GtkHSeparator)) +#define GTK_HSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSEPARATOR, GtkHSeparatorClass)) +#define GTK_IS_HSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HSEPARATOR)) +#define GTK_IS_HSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSEPARATOR)) +#define GTK_HSEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HSEPARATOR, GtkHSeparatorClass)) + + +typedef struct _GtkHSeparator GtkHSeparator; +typedef struct _GtkHSeparatorClass GtkHSeparatorClass; + +struct _GtkHSeparator +{ + GtkSeparator separator; +}; + +struct _GtkHSeparatorClass +{ + GtkSeparatorClass parent_class; +}; + + +GType gtk_hseparator_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_hseparator_new (void); + + +G_END_DECLS + +#endif /* __GTK_HSEPARATOR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkiconfactory.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkiconfactory.h new file mode 100644 index 00000000..1bcbcb40 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkiconfactory.h @@ -0,0 +1,185 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ICON_FACTORY_H__ +#define __GTK_ICON_FACTORY_H__ + +#include <gdk/gdk.h> +#include <gtk/gtkrc.h> + +G_BEGIN_DECLS + +typedef struct _GtkIconFactoryClass GtkIconFactoryClass; + +#define GTK_TYPE_ICON_FACTORY (gtk_icon_factory_get_type ()) +#define GTK_ICON_FACTORY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ICON_FACTORY, GtkIconFactory)) +#define GTK_ICON_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_FACTORY, GtkIconFactoryClass)) +#define GTK_IS_ICON_FACTORY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ICON_FACTORY)) +#define GTK_IS_ICON_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_FACTORY)) +#define GTK_ICON_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ICON_FACTORY, GtkIconFactoryClass)) +#define GTK_TYPE_ICON_SET (gtk_icon_set_get_type ()) +#define GTK_TYPE_ICON_SOURCE (gtk_icon_source_get_type ()) + +struct _GtkIconFactory +{ + GObject parent_instance; + + GHashTable *icons; +}; + +struct _GtkIconFactoryClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +#ifdef G_OS_WIN32 +/* Reserve old names for DLL ABI backward compatibility */ +#define gtk_icon_source_set_filename gtk_icon_source_set_filename_utf8 +#define gtk_icon_source_get_filename gtk_icon_source_get_filename_utf8 +#endif + +GType gtk_icon_factory_get_type (void) G_GNUC_CONST; +GtkIconFactory* gtk_icon_factory_new (void); +void gtk_icon_factory_add (GtkIconFactory *factory, + const gchar *stock_id, + GtkIconSet *icon_set); +GtkIconSet* gtk_icon_factory_lookup (GtkIconFactory *factory, + const gchar *stock_id); + +/* Manage the default icon factory stack */ + +void gtk_icon_factory_add_default (GtkIconFactory *factory); +void gtk_icon_factory_remove_default (GtkIconFactory *factory); +GtkIconSet* gtk_icon_factory_lookup_default (const gchar *stock_id); + +/* Get preferred real size from registered semantic size. Note that + * themes SHOULD use this size, but they aren't required to; for size + * requests and such, you should get the actual pixbuf from the icon + * set and see what size was rendered. + * + * This function is intended for people who are scaling icons, + * rather than for people who are displaying already-scaled icons. + * That is, if you are displaying an icon, you should get the + * size from the rendered pixbuf, not from here. + */ + +#ifndef GDK_MULTIHEAD_SAFE +gboolean gtk_icon_size_lookup (GtkIconSize size, + gint *width, + gint *height); +#endif /* GDK_MULTIHEAD_SAFE */ +gboolean gtk_icon_size_lookup_for_settings (GtkSettings *settings, + GtkIconSize size, + gint *width, + gint *height); + +GtkIconSize gtk_icon_size_register (const gchar *name, + gint width, + gint height); +void gtk_icon_size_register_alias (const gchar *alias, + GtkIconSize target); +GtkIconSize gtk_icon_size_from_name (const gchar *name); +G_CONST_RETURN gchar* gtk_icon_size_get_name (GtkIconSize size); + +/* Icon sets */ + +GType gtk_icon_set_get_type (void) G_GNUC_CONST; +GtkIconSet* gtk_icon_set_new (void); +GtkIconSet* gtk_icon_set_new_from_pixbuf (GdkPixbuf *pixbuf); + +GtkIconSet* gtk_icon_set_ref (GtkIconSet *icon_set); +void gtk_icon_set_unref (GtkIconSet *icon_set); +GtkIconSet* gtk_icon_set_copy (GtkIconSet *icon_set); + +/* Get one of the icon variants in the set, creating the variant if + * necessary. + */ +GdkPixbuf* gtk_icon_set_render_icon (GtkIconSet *icon_set, + GtkStyle *style, + GtkTextDirection direction, + GtkStateType state, + GtkIconSize size, + GtkWidget *widget, + const char *detail); + + +void gtk_icon_set_add_source (GtkIconSet *icon_set, + const GtkIconSource *source); + +void gtk_icon_set_get_sizes (GtkIconSet *icon_set, + GtkIconSize **sizes, + gint *n_sizes); + +GType gtk_icon_source_get_type (void) G_GNUC_CONST; +GtkIconSource* gtk_icon_source_new (void); +GtkIconSource* gtk_icon_source_copy (const GtkIconSource *source); +void gtk_icon_source_free (GtkIconSource *source); + +void gtk_icon_source_set_filename (GtkIconSource *source, + const gchar *filename); +void gtk_icon_source_set_icon_name (GtkIconSource *source, + const gchar *icon_name); +void gtk_icon_source_set_pixbuf (GtkIconSource *source, + GdkPixbuf *pixbuf); + +G_CONST_RETURN gchar* gtk_icon_source_get_filename (const GtkIconSource *source); +G_CONST_RETURN gchar* gtk_icon_source_get_icon_name (const GtkIconSource *source); +GdkPixbuf* gtk_icon_source_get_pixbuf (const GtkIconSource *source); + +void gtk_icon_source_set_direction_wildcarded (GtkIconSource *source, + gboolean setting); +void gtk_icon_source_set_state_wildcarded (GtkIconSource *source, + gboolean setting); +void gtk_icon_source_set_size_wildcarded (GtkIconSource *source, + gboolean setting); +gboolean gtk_icon_source_get_size_wildcarded (const GtkIconSource *source); +gboolean gtk_icon_source_get_state_wildcarded (const GtkIconSource *source); +gboolean gtk_icon_source_get_direction_wildcarded (const GtkIconSource *source); +void gtk_icon_source_set_direction (GtkIconSource *source, + GtkTextDirection direction); +void gtk_icon_source_set_state (GtkIconSource *source, + GtkStateType state); +void gtk_icon_source_set_size (GtkIconSource *source, + GtkIconSize size); +GtkTextDirection gtk_icon_source_get_direction (const GtkIconSource *source); +GtkStateType gtk_icon_source_get_state (const GtkIconSource *source); +GtkIconSize gtk_icon_source_get_size (const GtkIconSource *source); + + +/* ignore this */ +void _gtk_icon_set_invalidate_caches (void); +GList* _gtk_icon_factory_list_ids (void); +void _gtk_icon_factory_ensure_default_icons (void); + +G_END_DECLS + +#endif /* __GTK_ICON_FACTORY_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkicontheme.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkicontheme.h new file mode 100644 index 00000000..6b62bc51 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkicontheme.h @@ -0,0 +1,185 @@ +/* GtkIconTheme - a loader for icon themes + * gtk-icon-loader.h Copyright (C) 2002, 2003 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_ICON_THEME_H__ +#define __GTK_ICON_THEME_H__ + +#include <glib-object.h> +#include <gdk-pixbuf/gdk-pixbuf.h> +#include <gdk/gdkscreen.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_ICON_INFO (gtk_icon_info_get_type ()) + +#define GTK_TYPE_ICON_THEME (gtk_icon_theme_get_type ()) +#define GTK_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_THEME, GtkIconTheme)) +#define GTK_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_THEME, GtkIconThemeClass)) +#define GTK_IS_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_THEME)) +#define GTK_IS_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_THEME)) +#define GTK_ICON_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ICON_THEME, GtkIconThemeClass)) + +typedef struct _GtkIconInfo GtkIconInfo; +typedef struct _GtkIconTheme GtkIconTheme; +typedef struct _GtkIconThemeClass GtkIconThemeClass; +typedef struct _GtkIconThemePrivate GtkIconThemePrivate; + +struct _GtkIconTheme +{ + /*< private >*/ + GObject parent_instance; + + GtkIconThemePrivate *priv; +}; + +struct _GtkIconThemeClass +{ + GObjectClass parent_class; + + void (* changed) (GtkIconTheme *icon_theme); +}; + +/** + * GtkIconLookupFlags: + * @GTK_ICON_LOOKUP_NO_SVG: Never return SVG icons, even if gdk-pixbuf + * supports them. Cannot be used together with %GTK_ICON_LOOKUP_FORCE_SVG. + * @GTK_ICON_LOOKUP_FORCE_SVG: Return SVG icons, even if gdk-pixbuf + * doesn't support them. + * Cannot be used together with %GTK_ICON_LOOKUP_NO_SVG. + * @GTK_ICON_LOOKUP_USE_BUILTIN: When passed to + * gtk_icon_theme_lookup_icon() includes builtin icons + * as well as files. For a builtin icon, gtk_icon_info_get_filename() + * returns %NULL and you need to call gtk_icon_info_get_builtin_pixbuf(). + * @GTK_ICON_LOOKUP_GENERIC_FALLBACK: Try to shorten icon name at '-' + * characters before looking at inherited themes. For more general + * fallback, see gtk_icon_theme_choose_icon(). Since 2.12. + * + * Used to specify options for gtk_icon_theme_lookup_icon() + **/ +typedef enum +{ + GTK_ICON_LOOKUP_NO_SVG = 1 << 0, + GTK_ICON_LOOKUP_FORCE_SVG = 1 << 1, + GTK_ICON_LOOKUP_USE_BUILTIN = 1 << 2, + GTK_ICON_LOOKUP_GENERIC_FALLBACK = 1 << 3 +} GtkIconLookupFlags; + +#define GTK_ICON_THEME_ERROR gtk_icon_theme_error_quark () + +/** + * GtkIconThemeError: + * @GTK_ICON_THEME_NOT_FOUND: The icon specified does not exist in the theme + * @GTK_ICON_THEME_FAILED: An unspecified error occurred. + * + * Error codes for GtkIconTheme operations. + **/ +typedef enum { + GTK_ICON_THEME_NOT_FOUND, + GTK_ICON_THEME_FAILED +} GtkIconThemeError; + +GQuark gtk_icon_theme_error_quark (void); + +#ifdef G_OS_WIN32 +/* Reserve old name for DLL ABI backward compatibility */ +#define gtk_icon_theme_set_search_path gtk_icon_theme_set_search_path_utf8 +#define gtk_icon_theme_get_search_path gtk_icon_theme_get_search_path_utf8 +#define gtk_icon_theme_append_search_path gtk_icon_theme_append_search_path_utf8 +#define gtk_icon_theme_prepend_search_path gtk_icon_theme_prepend_search_path_utf8 +#define gtk_icon_info_get_filename gtk_icon_info_get_filename_utf8 +#endif + +GType gtk_icon_theme_get_type (void) G_GNUC_CONST; + +GtkIconTheme *gtk_icon_theme_new (void); +GtkIconTheme *gtk_icon_theme_get_default (void); +GtkIconTheme *gtk_icon_theme_get_for_screen (GdkScreen *screen); +void gtk_icon_theme_set_screen (GtkIconTheme *icon_theme, + GdkScreen *screen); + +void gtk_icon_theme_set_search_path (GtkIconTheme *icon_theme, + const gchar *path[], + gint n_elements); +void gtk_icon_theme_get_search_path (GtkIconTheme *icon_theme, + gchar **path[], + gint *n_elements); +void gtk_icon_theme_append_search_path (GtkIconTheme *icon_theme, + const gchar *path); +void gtk_icon_theme_prepend_search_path (GtkIconTheme *icon_theme, + const gchar *path); + +void gtk_icon_theme_set_custom_theme (GtkIconTheme *icon_theme, + const gchar *theme_name); + +gboolean gtk_icon_theme_has_icon (GtkIconTheme *icon_theme, + const gchar *icon_name); +gint *gtk_icon_theme_get_icon_sizes (GtkIconTheme *icon_theme, + const gchar *icon_name); +GtkIconInfo * gtk_icon_theme_lookup_icon (GtkIconTheme *icon_theme, + const gchar *icon_name, + gint size, + GtkIconLookupFlags flags); +GtkIconInfo * gtk_icon_theme_choose_icon (GtkIconTheme *icon_theme, + const gchar *icon_names[], + gint size, + GtkIconLookupFlags flags); +GdkPixbuf * gtk_icon_theme_load_icon (GtkIconTheme *icon_theme, + const gchar *icon_name, + gint size, + GtkIconLookupFlags flags, + GError **error); + +GList * gtk_icon_theme_list_icons (GtkIconTheme *icon_theme, + const gchar *context); +GList * gtk_icon_theme_list_contexts (GtkIconTheme *icon_theme); +char * gtk_icon_theme_get_example_icon_name (GtkIconTheme *icon_theme); + +gboolean gtk_icon_theme_rescan_if_needed (GtkIconTheme *icon_theme); + +void gtk_icon_theme_add_builtin_icon (const gchar *icon_name, + gint size, + GdkPixbuf *pixbuf); + +GType gtk_icon_info_get_type (void) G_GNUC_CONST; +GtkIconInfo *gtk_icon_info_copy (GtkIconInfo *icon_info); +void gtk_icon_info_free (GtkIconInfo *icon_info); + +gint gtk_icon_info_get_base_size (GtkIconInfo *icon_info); +G_CONST_RETURN gchar *gtk_icon_info_get_filename (GtkIconInfo *icon_info); +GdkPixbuf * gtk_icon_info_get_builtin_pixbuf (GtkIconInfo *icon_info); +GdkPixbuf * gtk_icon_info_load_icon (GtkIconInfo *icon_info, + GError **error); + +void gtk_icon_info_set_raw_coordinates (GtkIconInfo *icon_info, + gboolean raw_coordinates); + +gboolean gtk_icon_info_get_embedded_rect (GtkIconInfo *icon_info, + GdkRectangle *rectangle); +gboolean gtk_icon_info_get_attach_points (GtkIconInfo *icon_info, + GdkPoint **points, + gint *n_points); +G_CONST_RETURN gchar *gtk_icon_info_get_display_name (GtkIconInfo *icon_info); + +/* Non-public methods */ +void _gtk_icon_theme_check_reload (GdkDisplay *display); +void _gtk_icon_theme_ensure_builtin_cache (void); + +G_END_DECLS + +#endif /* __GTK_ICON_THEME_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkiconview.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkiconview.h new file mode 100644 index 00000000..66acd5fd --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkiconview.h @@ -0,0 +1,227 @@ +/* gtkiconview.h + * Copyright (C) 2002, 2004 Anders Carlsson <andersca@gnome.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GTK_ICON_VIEW_H__ +#define __GTK_ICON_VIEW_H__ + +#include <gtk/gtkcontainer.h> +#include <gtk/gtktreemodel.h> +#include <gtk/gtkcellrenderer.h> +#include <gtk/gtkselection.h> +#include <gtk/gtktooltip.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_ICON_VIEW (gtk_icon_view_get_type ()) +#define GTK_ICON_VIEW(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_ICON_VIEW, GtkIconView)) +#define GTK_ICON_VIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_VIEW, GtkIconViewClass)) +#define GTK_IS_ICON_VIEW(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_ICON_VIEW)) +#define GTK_IS_ICON_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_VIEW)) +#define GTK_ICON_VIEW_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_ICON_VIEW, GtkIconViewClass)) + +typedef struct _GtkIconView GtkIconView; +typedef struct _GtkIconViewClass GtkIconViewClass; +typedef struct _GtkIconViewPrivate GtkIconViewPrivate; + +typedef void (* GtkIconViewForeachFunc) (GtkIconView *icon_view, + GtkTreePath *path, + gpointer data); + +typedef enum +{ + GTK_ICON_VIEW_NO_DROP, + GTK_ICON_VIEW_DROP_INTO, + GTK_ICON_VIEW_DROP_LEFT, + GTK_ICON_VIEW_DROP_RIGHT, + GTK_ICON_VIEW_DROP_ABOVE, + GTK_ICON_VIEW_DROP_BELOW +} GtkIconViewDropPosition; + +struct _GtkIconView +{ + GtkContainer parent; + + GtkIconViewPrivate *priv; +}; + +struct _GtkIconViewClass +{ + GtkContainerClass parent_class; + + void (* set_scroll_adjustments) (GtkIconView *icon_view, + GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); + + void (* item_activated) (GtkIconView *icon_view, + GtkTreePath *path); + void (* selection_changed) (GtkIconView *icon_view); + + /* Key binding signals */ + void (* select_all) (GtkIconView *icon_view); + void (* unselect_all) (GtkIconView *icon_view); + void (* select_cursor_item) (GtkIconView *icon_view); + void (* toggle_cursor_item) (GtkIconView *icon_view); + gboolean (* move_cursor) (GtkIconView *icon_view, + GtkMovementStep step, + gint count); + gboolean (* activate_cursor_item) (GtkIconView *icon_view); +}; + +GType gtk_icon_view_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_icon_view_new (void); +GtkWidget * gtk_icon_view_new_with_model (GtkTreeModel *model); + +void gtk_icon_view_set_model (GtkIconView *icon_view, + GtkTreeModel *model); +GtkTreeModel * gtk_icon_view_get_model (GtkIconView *icon_view); +void gtk_icon_view_set_text_column (GtkIconView *icon_view, + gint column); +gint gtk_icon_view_get_text_column (GtkIconView *icon_view); +void gtk_icon_view_set_markup_column (GtkIconView *icon_view, + gint column); +gint gtk_icon_view_get_markup_column (GtkIconView *icon_view); +void gtk_icon_view_set_pixbuf_column (GtkIconView *icon_view, + gint column); +gint gtk_icon_view_get_pixbuf_column (GtkIconView *icon_view); + +void gtk_icon_view_set_orientation (GtkIconView *icon_view, + GtkOrientation orientation); +GtkOrientation gtk_icon_view_get_orientation (GtkIconView *icon_view); +void gtk_icon_view_set_columns (GtkIconView *icon_view, + gint columns); +gint gtk_icon_view_get_columns (GtkIconView *icon_view); +void gtk_icon_view_set_item_width (GtkIconView *icon_view, + gint item_width); +gint gtk_icon_view_get_item_width (GtkIconView *icon_view); +void gtk_icon_view_set_spacing (GtkIconView *icon_view, + gint spacing); +gint gtk_icon_view_get_spacing (GtkIconView *icon_view); +void gtk_icon_view_set_row_spacing (GtkIconView *icon_view, + gint row_spacing); +gint gtk_icon_view_get_row_spacing (GtkIconView *icon_view); +void gtk_icon_view_set_column_spacing (GtkIconView *icon_view, + gint column_spacing); +gint gtk_icon_view_get_column_spacing (GtkIconView *icon_view); +void gtk_icon_view_set_margin (GtkIconView *icon_view, + gint margin); +gint gtk_icon_view_get_margin (GtkIconView *icon_view); + + +GtkTreePath * gtk_icon_view_get_path_at_pos (GtkIconView *icon_view, + gint x, + gint y); +gboolean gtk_icon_view_get_item_at_pos (GtkIconView *icon_view, + gint x, + gint y, + GtkTreePath **path, + GtkCellRenderer **cell); +gboolean gtk_icon_view_get_visible_range (GtkIconView *icon_view, + GtkTreePath **start_path, + GtkTreePath **end_path); + +void gtk_icon_view_selected_foreach (GtkIconView *icon_view, + GtkIconViewForeachFunc func, + gpointer data); +void gtk_icon_view_set_selection_mode (GtkIconView *icon_view, + GtkSelectionMode mode); +GtkSelectionMode gtk_icon_view_get_selection_mode (GtkIconView *icon_view); +void gtk_icon_view_select_path (GtkIconView *icon_view, + GtkTreePath *path); +void gtk_icon_view_unselect_path (GtkIconView *icon_view, + GtkTreePath *path); +gboolean gtk_icon_view_path_is_selected (GtkIconView *icon_view, + GtkTreePath *path); +GList *gtk_icon_view_get_selected_items (GtkIconView *icon_view); +void gtk_icon_view_select_all (GtkIconView *icon_view); +void gtk_icon_view_unselect_all (GtkIconView *icon_view); +void gtk_icon_view_item_activated (GtkIconView *icon_view, + GtkTreePath *path); +void gtk_icon_view_set_cursor (GtkIconView *icon_view, + GtkTreePath *path, + GtkCellRenderer *cell, + gboolean start_editing); +gboolean gtk_icon_view_get_cursor (GtkIconView *icon_view, + GtkTreePath **path, + GtkCellRenderer **cell); +void gtk_icon_view_scroll_to_path (GtkIconView *icon_view, + GtkTreePath *path, + gboolean use_align, + gfloat row_align, + gfloat col_align); + +/* Drag-and-Drop support */ +void gtk_icon_view_enable_model_drag_source (GtkIconView *icon_view, + GdkModifierType start_button_mask, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); +void gtk_icon_view_enable_model_drag_dest (GtkIconView *icon_view, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); +void gtk_icon_view_unset_model_drag_source (GtkIconView *icon_view); +void gtk_icon_view_unset_model_drag_dest (GtkIconView *icon_view); +void gtk_icon_view_set_reorderable (GtkIconView *icon_view, + gboolean reorderable); +gboolean gtk_icon_view_get_reorderable (GtkIconView *icon_view); + + +/* These are useful to implement your own custom stuff. */ +void gtk_icon_view_set_drag_dest_item (GtkIconView *icon_view, + GtkTreePath *path, + GtkIconViewDropPosition pos); +void gtk_icon_view_get_drag_dest_item (GtkIconView *icon_view, + GtkTreePath **path, + GtkIconViewDropPosition *pos); +gboolean gtk_icon_view_get_dest_item_at_pos (GtkIconView *icon_view, + gint drag_x, + gint drag_y, + GtkTreePath **path, + GtkIconViewDropPosition *pos); +GdkPixmap *gtk_icon_view_create_drag_icon (GtkIconView *icon_view, + GtkTreePath *path); + +void gtk_icon_view_convert_widget_to_bin_window_coords (GtkIconView *icon_view, + gint wx, + gint wy, + gint *bx, + gint *by); + + +void gtk_icon_view_set_tooltip_item (GtkIconView *icon_view, + GtkTooltip *tooltip, + GtkTreePath *path); +void gtk_icon_view_set_tooltip_cell (GtkIconView *icon_view, + GtkTooltip *tooltip, + GtkTreePath *path, + GtkCellRenderer *cell); +gboolean gtk_icon_view_get_tooltip_context (GtkIconView *icon_view, + gint *x, + gint *y, + gboolean keyboard_tip, + GtkTreeModel **model, + GtkTreePath **path, + GtkTreeIter *iter); +void gtk_icon_view_set_tooltip_column (GtkIconView *icon_view, + gint column); +gint gtk_icon_view_get_tooltip_column (GtkIconView *icon_view); + + +G_END_DECLS + +#endif /* __GTK_ICON_VIEW_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimage.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimage.h new file mode 100644 index 00000000..e1b061cc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimage.h @@ -0,0 +1,224 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_IMAGE_H__ +#define __GTK_IMAGE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkmisc.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_IMAGE (gtk_image_get_type ()) +#define GTK_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE, GtkImage)) +#define GTK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMAGE, GtkImageClass)) +#define GTK_IS_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE)) +#define GTK_IS_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMAGE)) +#define GTK_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IMAGE, GtkImageClass)) + + +typedef struct _GtkImage GtkImage; +typedef struct _GtkImageClass GtkImageClass; + +typedef struct _GtkImagePixmapData GtkImagePixmapData; +typedef struct _GtkImageImageData GtkImageImageData; +typedef struct _GtkImagePixbufData GtkImagePixbufData; +typedef struct _GtkImageStockData GtkImageStockData; +typedef struct _GtkImageIconSetData GtkImageIconSetData; +typedef struct _GtkImageAnimationData GtkImageAnimationData; +typedef struct _GtkImageIconNameData GtkImageIconNameData; + +struct _GtkImagePixmapData +{ + GdkPixmap *pixmap; +}; + +struct _GtkImageImageData +{ + GdkImage *image; +}; + +struct _GtkImagePixbufData +{ + GdkPixbuf *pixbuf; +}; + +struct _GtkImageStockData +{ + gchar *stock_id; +}; + +struct _GtkImageIconSetData +{ + GtkIconSet *icon_set; +}; + +struct _GtkImageAnimationData +{ + GdkPixbufAnimation *anim; + GdkPixbufAnimationIter *iter; + guint frame_timeout; +}; + +struct _GtkImageIconNameData +{ + gchar *icon_name; + GdkPixbuf *pixbuf; + guint theme_change_id; +}; + +typedef enum +{ + GTK_IMAGE_EMPTY, + GTK_IMAGE_PIXMAP, + GTK_IMAGE_IMAGE, + GTK_IMAGE_PIXBUF, + GTK_IMAGE_STOCK, + GTK_IMAGE_ICON_SET, + GTK_IMAGE_ANIMATION, + GTK_IMAGE_ICON_NAME +} GtkImageType; + +struct _GtkImage +{ + GtkMisc misc; + + GtkImageType storage_type; + + union + { + GtkImagePixmapData pixmap; + GtkImageImageData image; + GtkImagePixbufData pixbuf; + GtkImageStockData stock; + GtkImageIconSetData icon_set; + GtkImageAnimationData anim; + GtkImageIconNameData name; + } data; + + /* Only used with GTK_IMAGE_PIXMAP, GTK_IMAGE_IMAGE */ + GdkBitmap *mask; + + /* Only used with GTK_IMAGE_STOCK, GTK_IMAGE_ICON_SET, GTK_IMAGE_ICON_NAME */ + GtkIconSize icon_size; +}; + +struct _GtkImageClass +{ + GtkMiscClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +#ifdef G_OS_WIN32 +/* Reserve old names for DLL ABI backward compatibility */ +#define gtk_image_new_from_file gtk_image_new_from_file_utf8 +#define gtk_image_set_from_file gtk_image_set_from_file_utf8 +#endif + +GType gtk_image_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_image_new (void); +GtkWidget* gtk_image_new_from_pixmap (GdkPixmap *pixmap, + GdkBitmap *mask); +GtkWidget* gtk_image_new_from_image (GdkImage *image, + GdkBitmap *mask); +GtkWidget* gtk_image_new_from_file (const gchar *filename); +GtkWidget* gtk_image_new_from_pixbuf (GdkPixbuf *pixbuf); +GtkWidget* gtk_image_new_from_stock (const gchar *stock_id, + GtkIconSize size); +GtkWidget* gtk_image_new_from_icon_set (GtkIconSet *icon_set, + GtkIconSize size); +GtkWidget* gtk_image_new_from_animation (GdkPixbufAnimation *animation); +GtkWidget* gtk_image_new_from_icon_name (const gchar *icon_name, + GtkIconSize size); + +void gtk_image_clear (GtkImage *image); +void gtk_image_set_from_pixmap (GtkImage *image, + GdkPixmap *pixmap, + GdkBitmap *mask); +void gtk_image_set_from_image (GtkImage *image, + GdkImage *gdk_image, + GdkBitmap *mask); +void gtk_image_set_from_file (GtkImage *image, + const gchar *filename); +void gtk_image_set_from_pixbuf (GtkImage *image, + GdkPixbuf *pixbuf); +void gtk_image_set_from_stock (GtkImage *image, + const gchar *stock_id, + GtkIconSize size); +void gtk_image_set_from_icon_set (GtkImage *image, + GtkIconSet *icon_set, + GtkIconSize size); +void gtk_image_set_from_animation (GtkImage *image, + GdkPixbufAnimation *animation); +void gtk_image_set_from_icon_name (GtkImage *image, + const gchar *icon_name, + GtkIconSize size); +void gtk_image_set_pixel_size (GtkImage *image, + gint pixel_size); + +GtkImageType gtk_image_get_storage_type (GtkImage *image); + +void gtk_image_get_pixmap (GtkImage *image, + GdkPixmap **pixmap, + GdkBitmap **mask); +void gtk_image_get_image (GtkImage *image, + GdkImage **gdk_image, + GdkBitmap **mask); +GdkPixbuf* gtk_image_get_pixbuf (GtkImage *image); +void gtk_image_get_stock (GtkImage *image, + gchar **stock_id, + GtkIconSize *size); +void gtk_image_get_icon_set (GtkImage *image, + GtkIconSet **icon_set, + GtkIconSize *size); +GdkPixbufAnimation* gtk_image_get_animation (GtkImage *image); +void gtk_image_get_icon_name (GtkImage *image, + G_CONST_RETURN gchar **icon_name, + GtkIconSize *size); +gint gtk_image_get_pixel_size (GtkImage *image); + +#ifndef GTK_DISABLE_DEPRECATED +/* These three are deprecated */ + +void gtk_image_set (GtkImage *image, + GdkImage *val, + GdkBitmap *mask); +void gtk_image_get (GtkImage *image, + GdkImage **val, + GdkBitmap **mask); +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_IMAGE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimagemenuitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimagemenuitem.h new file mode 100644 index 00000000..f70df311 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimagemenuitem.h @@ -0,0 +1,73 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_IMAGE_MENU_ITEM_H__ +#define __GTK_IMAGE_MENU_ITEM_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkmenuitem.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_IMAGE_MENU_ITEM (gtk_image_menu_item_get_type ()) +#define GTK_IMAGE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE_MENU_ITEM, GtkImageMenuItem)) +#define GTK_IMAGE_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMAGE_MENU_ITEM, GtkImageMenuItemClass)) +#define GTK_IS_IMAGE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE_MENU_ITEM)) +#define GTK_IS_IMAGE_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMAGE_MENU_ITEM)) +#define GTK_IMAGE_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IMAGE_MENU_ITEM, GtkImageMenuItemClass)) + + +typedef struct _GtkImageMenuItem GtkImageMenuItem; +typedef struct _GtkImageMenuItemClass GtkImageMenuItemClass; + +struct _GtkImageMenuItem +{ + GtkMenuItem menu_item; + + /*< private >*/ + GtkWidget *image; +}; + +struct _GtkImageMenuItemClass +{ + GtkMenuItemClass parent_class; +}; + + +GType gtk_image_menu_item_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_image_menu_item_new (void); +GtkWidget* gtk_image_menu_item_new_with_label (const gchar *label); +GtkWidget* gtk_image_menu_item_new_with_mnemonic (const gchar *label); +GtkWidget* gtk_image_menu_item_new_from_stock (const gchar *stock_id, + GtkAccelGroup *accel_group); +void gtk_image_menu_item_set_image (GtkImageMenuItem *image_menu_item, + GtkWidget *image); +GtkWidget* gtk_image_menu_item_get_image (GtkImageMenuItem *image_menu_item); + +G_END_DECLS + +#endif /* __GTK_IMAGE_MENU_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimcontext.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimcontext.h new file mode 100644 index 00000000..ae4a7107 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimcontext.h @@ -0,0 +1,125 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_IM_CONTEXT_H__ +#define __GTK_IM_CONTEXT_H__ + +#include <gdk/gdk.h> +#include <gtk/gtkobject.h> +#include <pango/pango.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_IM_CONTEXT (gtk_im_context_get_type ()) +#define GTK_IM_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT, GtkIMContext)) +#define GTK_IM_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT, GtkIMContextClass)) +#define GTK_IS_IM_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT)) +#define GTK_IS_IM_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT)) +#define GTK_IM_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT, GtkIMContextClass)) + + +typedef struct _GtkIMContext GtkIMContext; +typedef struct _GtkIMContextClass GtkIMContextClass; + +struct _GtkIMContext +{ + GObject parent_instance; +}; + +struct _GtkIMContextClass +{ + /* Yes, this should be GObjectClass, be we can't fix it without breaking + * binary compatibility - see bug #90935 + */ + GtkObjectClass parent_class; + + /* Signals */ + void (*preedit_start) (GtkIMContext *context); + void (*preedit_end) (GtkIMContext *context); + void (*preedit_changed) (GtkIMContext *context); + void (*commit) (GtkIMContext *context, const gchar *str); + gboolean (*retrieve_surrounding) (GtkIMContext *context); + gboolean (*delete_surrounding) (GtkIMContext *context, + gint offset, + gint n_chars); + + /* Virtual functions */ + void (*set_client_window) (GtkIMContext *context, + GdkWindow *window); + void (*get_preedit_string) (GtkIMContext *context, + gchar **str, + PangoAttrList **attrs, + gint *cursor_pos); + gboolean (*filter_keypress) (GtkIMContext *context, + GdkEventKey *event); + void (*focus_in) (GtkIMContext *context); + void (*focus_out) (GtkIMContext *context); + void (*reset) (GtkIMContext *context); + void (*set_cursor_location) (GtkIMContext *context, + GdkRectangle *area); + void (*set_use_preedit) (GtkIMContext *context, + gboolean use_preedit); + void (*set_surrounding) (GtkIMContext *context, + const gchar *text, + gint len, + gint cursor_index); + gboolean (*get_surrounding) (GtkIMContext *context, + gchar **text, + gint *cursor_index); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); +}; + +GType gtk_im_context_get_type (void) G_GNUC_CONST; + +void gtk_im_context_set_client_window (GtkIMContext *context, + GdkWindow *window); +void gtk_im_context_get_preedit_string (GtkIMContext *context, + gchar **str, + PangoAttrList **attrs, + gint *cursor_pos); +gboolean gtk_im_context_filter_keypress (GtkIMContext *context, + GdkEventKey *event); +void gtk_im_context_focus_in (GtkIMContext *context); +void gtk_im_context_focus_out (GtkIMContext *context); +void gtk_im_context_reset (GtkIMContext *context); +void gtk_im_context_set_cursor_location (GtkIMContext *context, + GdkRectangle *area); +void gtk_im_context_set_use_preedit (GtkIMContext *context, + gboolean use_preedit); +void gtk_im_context_set_surrounding (GtkIMContext *context, + const gchar *text, + gint len, + gint cursor_index); +gboolean gtk_im_context_get_surrounding (GtkIMContext *context, + gchar **text, + gint *cursor_index); +gboolean gtk_im_context_delete_surrounding (GtkIMContext *context, + gint offset, + gint n_chars); + +G_END_DECLS + +#endif /* __GTK_IM_CONTEXT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimcontextsimple.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimcontextsimple.h new file mode 100644 index 00000000..1378c43d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimcontextsimple.h @@ -0,0 +1,73 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_IM_CONTEXT_SIMPLE_H__ +#define __GTK_IM_CONTEXT_SIMPLE_H__ + +#include <gtk/gtkimcontext.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_IM_CONTEXT_SIMPLE (gtk_im_context_simple_get_type ()) +#define GTK_IM_CONTEXT_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT_SIMPLE, GtkIMContextSimple)) +#define GTK_IM_CONTEXT_SIMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT_SIMPLE, GtkIMContextSimpleClass)) +#define GTK_IS_IM_CONTEXT_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT_SIMPLE)) +#define GTK_IS_IM_CONTEXT_SIMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT_SIMPLE)) +#define GTK_IM_CONTEXT_SIMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT_SIMPLE, GtkIMContextSimpleClass)) + + +typedef struct _GtkIMContextSimple GtkIMContextSimple; +typedef struct _GtkIMContextSimpleClass GtkIMContextSimpleClass; + +#define GTK_MAX_COMPOSE_LEN 7 + +struct _GtkIMContextSimple +{ + GtkIMContext object; + + GSList *tables; + + guint compose_buffer[GTK_MAX_COMPOSE_LEN + 1]; + gunichar tentative_match; + gint tentative_match_len; + + guint in_hex_sequence : 1; + guint modifiers_dropped : 1; +}; + +struct _GtkIMContextSimpleClass +{ + GtkIMContextClass parent_class; +}; + +GType gtk_im_context_simple_get_type (void) G_GNUC_CONST; +GtkIMContext *gtk_im_context_simple_new (void); + +void gtk_im_context_simple_add_table (GtkIMContextSimple *context_simple, + guint16 *data, + gint max_seq_len, + gint n_seqs); + + +G_END_DECLS + + +#endif /* __GTK_IM_CONTEXT_SIMPLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimmodule.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimmodule.h new file mode 100644 index 00000000..a6e3a2d3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimmodule.h @@ -0,0 +1,61 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_IM_MODULE_H__ +#define __GTK_IM_MODULE_H__ + + +#include <gtk/gtkimcontext.h> + +G_BEGIN_DECLS + +typedef struct _GtkIMContextInfo GtkIMContextInfo; + +struct _GtkIMContextInfo +{ + const gchar *context_id; + const gchar *context_name; + const gchar *domain; + const gchar *domain_dirname; + const gchar *default_locales; +}; + +/* Functions for use within GTK+ + */ +void _gtk_im_module_list (const GtkIMContextInfo ***contexts, + guint *n_contexts); +GtkIMContext * _gtk_im_module_create (const gchar *context_id); +const gchar * _gtk_im_module_get_default_context_id (GdkWindow *client_window); + +/* The following entry points are exported by each input method module + */ + +/* +void im_module_list (const GtkIMContextInfo ***contexts, + guint *n_contexts); +void im_module_init (GtkModule *module); +void im_module_exit (void); +GtkIMContext *im_module_create (const gchar *context_id); +*/ + + +G_END_DECLS + + +#endif /* __GTK_IM_MODULE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimmulticontext.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimmulticontext.h new file mode 100644 index 00000000..aa410f17 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkimmulticontext.h @@ -0,0 +1,70 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_IM_MULTICONTEXT_H__ +#define __GTK_IM_MULTICONTEXT_H__ + +#include <gtk/gtkimcontext.h> +#include <gtk/gtkmenushell.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_IM_MULTICONTEXT (gtk_im_multicontext_get_type ()) +#define GTK_IM_MULTICONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_MULTICONTEXT, GtkIMMulticontext)) +#define GTK_IM_MULTICONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_MULTICONTEXT, GtkIMMulticontextClass)) +#define GTK_IS_IM_MULTICONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_MULTICONTEXT)) +#define GTK_IS_IM_MULTICONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_MULTICONTEXT)) +#define GTK_IM_MULTICONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_MULTICONTEXT, GtkIMMulticontextClass)) + + +typedef struct _GtkIMMulticontext GtkIMMulticontext; +typedef struct _GtkIMMulticontextClass GtkIMMulticontextClass; +typedef struct _GtkIMMulticontextPrivate GtkIMMulticontextPrivate; + +struct _GtkIMMulticontext +{ + GtkIMContext object; + + GtkIMContext *slave; + + GtkIMMulticontextPrivate *priv; + + gchar *context_id; +}; + +struct _GtkIMMulticontextClass +{ + GtkIMContextClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_im_multicontext_get_type (void) G_GNUC_CONST; +GtkIMContext *gtk_im_multicontext_new (void); + +void gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context, + GtkMenuShell *menushell); + +G_END_DECLS + +#endif /* __GTK_IM_MULTICONTEXT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkinputdialog.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkinputdialog.h new file mode 100644 index 00000000..1a1a6489 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkinputdialog.h @@ -0,0 +1,99 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +/* + * NOTE this widget is considered too specialized/little-used for + * GTK+, and will in the future be moved to some other package. If + * your application needs this widget, feel free to use it, as the + * widget does work and is useful in some applications; it's just not + * of general interest. However, we are not accepting new features for + * the widget, and it will eventually move out of the GTK+ + * distribution. + */ + +#ifndef __GTK_INPUTDIALOG_H__ +#define __GTK_INPUTDIALOG_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkdialog.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_INPUT_DIALOG (gtk_input_dialog_get_type ()) +#define GTK_INPUT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_INPUT_DIALOG, GtkInputDialog)) +#define GTK_INPUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_INPUT_DIALOG, GtkInputDialogClass)) +#define GTK_IS_INPUT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_INPUT_DIALOG)) +#define GTK_IS_INPUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_INPUT_DIALOG)) +#define GTK_INPUT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_INPUT_DIALOG, GtkInputDialogClass)) + + +typedef struct _GtkInputDialog GtkInputDialog; +typedef struct _GtkInputDialogClass GtkInputDialogClass; + +struct _GtkInputDialog +{ + GtkDialog dialog; + + GtkWidget *axis_list; + GtkWidget *axis_listbox; + GtkWidget *mode_optionmenu; + + GtkWidget *close_button; + GtkWidget *save_button; + + GtkWidget *axis_items[GDK_AXIS_LAST]; + GdkDevice *current_device; + + GtkWidget *keys_list; + GtkWidget *keys_listbox; +}; + +struct _GtkInputDialogClass +{ + GtkDialogClass parent_class; + + void (* enable_device) (GtkInputDialog *inputd, + GdkDevice *device); + void (* disable_device) (GtkInputDialog *inputd, + GdkDevice *device); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_input_dialog_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_input_dialog_new (void); + + +G_END_DECLS + +#endif /* __GTK_INPUTDIALOG_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkinvisible.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkinvisible.h new file mode 100644 index 00000000..ad0ad4c2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkinvisible.h @@ -0,0 +1,73 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_INVISIBLE_H__ +#define __GTK_INVISIBLE_H__ + +#include <gtk/gtkwidget.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_INVISIBLE (gtk_invisible_get_type ()) +#define GTK_INVISIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_INVISIBLE, GtkInvisible)) +#define GTK_INVISIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_INVISIBLE, GtkInvisibleClass)) +#define GTK_IS_INVISIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_INVISIBLE)) +#define GTK_IS_INVISIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_INVISIBLE)) +#define GTK_INVISIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_INVISIBLE, GtkInvisibleClass)) + + +typedef struct _GtkInvisible GtkInvisible; +typedef struct _GtkInvisibleClass GtkInvisibleClass; + +struct _GtkInvisible +{ + GtkWidget widget; + gboolean has_user_ref_count; + GdkScreen *screen; +}; + +struct _GtkInvisibleClass +{ + GtkWidgetClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_invisible_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_invisible_new (void); +GtkWidget* gtk_invisible_new_for_screen (GdkScreen *screen); +void gtk_invisible_set_screen (GtkInvisible *invisible, + GdkScreen *screen); +GdkScreen* gtk_invisible_get_screen (GtkInvisible *invisible); + +G_END_DECLS + +#endif /* __GTK_INVISIBLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkitem.h new file mode 100644 index 00000000..01ca95c1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkitem.h @@ -0,0 +1,76 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ITEM_H__ +#define __GTK_ITEM_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkbin.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_ITEM (gtk_item_get_type ()) +#define GTK_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ITEM, GtkItem)) +#define GTK_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ITEM, GtkItemClass)) +#define GTK_IS_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ITEM)) +#define GTK_IS_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ITEM)) +#define GTK_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ITEM, GtkItemClass)) + + +typedef struct _GtkItem GtkItem; +typedef struct _GtkItemClass GtkItemClass; + +struct _GtkItem +{ + GtkBin bin; +}; + +struct _GtkItemClass +{ + GtkBinClass parent_class; + + void (* select) (GtkItem *item); + void (* deselect) (GtkItem *item); + void (* toggle) (GtkItem *item); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_item_get_type (void) G_GNUC_CONST; +void gtk_item_select (GtkItem *item); +void gtk_item_deselect (GtkItem *item); +void gtk_item_toggle (GtkItem *item); + +G_END_DECLS + +#endif /* __GTK_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkitemfactory.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkitemfactory.h new file mode 100644 index 00000000..f0d1e4fc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkitemfactory.h @@ -0,0 +1,240 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GtkItemFactory: Flexible item factory with automatic rc handling + * Copyright (C) 1998 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_ITEM_FACTORY_H__ +#define __GTK_ITEM_FACTORY_H__ + + +#include <gtk/gtkwidget.h> + +G_BEGIN_DECLS + +typedef gchar * (*GtkTranslateFunc) (const gchar *path, + gpointer func_data); + +#if !defined (GTK_DISABLE_DEPRECATED) + +typedef void (*GtkPrintFunc) (gpointer func_data, + const gchar *str); +/* We use () here to mean unspecified arguments. This is deprecated + * as of C99, but we can't change it without breaking compatibility. + * (Note that if we are included from a C++ program () will mean + * (void) so an explicit cast will be needed.) + */ +typedef void (*GtkItemFactoryCallback) (); +typedef void (*GtkItemFactoryCallback1) (gpointer callback_data, + guint callback_action, + GtkWidget *widget); + +#define GTK_TYPE_ITEM_FACTORY (gtk_item_factory_get_type ()) +#define GTK_ITEM_FACTORY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ITEM_FACTORY, GtkItemFactory)) +#define GTK_ITEM_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ITEM_FACTORY, GtkItemFactoryClass)) +#define GTK_IS_ITEM_FACTORY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ITEM_FACTORY)) +#define GTK_IS_ITEM_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ITEM_FACTORY)) +#define GTK_ITEM_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ITEM_FACTORY, GtkItemFactoryClass)) + + +typedef struct _GtkItemFactory GtkItemFactory; +typedef struct _GtkItemFactoryClass GtkItemFactoryClass; +typedef struct _GtkItemFactoryEntry GtkItemFactoryEntry; +typedef struct _GtkItemFactoryItem GtkItemFactoryItem; + +struct _GtkItemFactory +{ + GtkObject object; + + gchar *path; + GtkAccelGroup *accel_group; + GtkWidget *widget; + GSList *items; + + GtkTranslateFunc translate_func; + gpointer translate_data; + GtkDestroyNotify translate_notify; +}; + +struct _GtkItemFactoryClass +{ + GtkObjectClass object_class; + + GHashTable *item_ht; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +struct _GtkItemFactoryEntry +{ + gchar *path; + gchar *accelerator; + + GtkItemFactoryCallback callback; + guint callback_action; + + /* possible values: + * NULL -> "<Item>" + * "" -> "<Item>" + * "<Title>" -> create a title item + * "<Item>" -> create a simple item + * "<ImageItem>" -> create an item holding an image + * "<StockItem>" -> create an item holding a stock image + * "<CheckItem>" -> create a check item + * "<ToggleItem>" -> create a toggle item + * "<RadioItem>" -> create a radio item + * <path> -> path of a radio item to link against + * "<Separator>" -> create a separator + * "<Tearoff>" -> create a tearoff separator + * "<Branch>" -> create an item to hold sub items + * "<LastBranch>" -> create a right justified item to hold sub items + */ + gchar *item_type; + + /* Extra data for some item types: + * ImageItem -> pointer to inlined pixbuf stream + * StockItem -> name of stock item + */ + gconstpointer extra_data; +}; + +struct _GtkItemFactoryItem +{ + gchar *path; + GSList *widgets; +}; + + +GType gtk_item_factory_get_type (void) G_GNUC_CONST; + +/* `container_type' must be of GTK_TYPE_MENU_BAR, GTK_TYPE_MENU, + * or GTK_TYPE_OPTION_MENU. + */ +GtkItemFactory* gtk_item_factory_new (GType container_type, + const gchar *path, + GtkAccelGroup *accel_group); +void gtk_item_factory_construct (GtkItemFactory *ifactory, + GType container_type, + const gchar *path, + GtkAccelGroup *accel_group); + +/* These functions operate on GtkItemFactoryClass basis. + */ +void gtk_item_factory_add_foreign (GtkWidget *accel_widget, + const gchar *full_path, + GtkAccelGroup *accel_group, + guint keyval, + GdkModifierType modifiers); + +GtkItemFactory* gtk_item_factory_from_widget (GtkWidget *widget); +G_CONST_RETURN gchar* gtk_item_factory_path_from_widget (GtkWidget *widget); + +GtkWidget* gtk_item_factory_get_item (GtkItemFactory *ifactory, + const gchar *path); +GtkWidget* gtk_item_factory_get_widget (GtkItemFactory *ifactory, + const gchar *path); +GtkWidget* gtk_item_factory_get_widget_by_action (GtkItemFactory *ifactory, + guint action); +GtkWidget* gtk_item_factory_get_item_by_action (GtkItemFactory *ifactory, + guint action); + +void gtk_item_factory_create_item (GtkItemFactory *ifactory, + GtkItemFactoryEntry *entry, + gpointer callback_data, + guint callback_type); +void gtk_item_factory_create_items (GtkItemFactory *ifactory, + guint n_entries, + GtkItemFactoryEntry *entries, + gpointer callback_data); +void gtk_item_factory_delete_item (GtkItemFactory *ifactory, + const gchar *path); +void gtk_item_factory_delete_entry (GtkItemFactory *ifactory, + GtkItemFactoryEntry *entry); +void gtk_item_factory_delete_entries (GtkItemFactory *ifactory, + guint n_entries, + GtkItemFactoryEntry *entries); +void gtk_item_factory_popup (GtkItemFactory *ifactory, + guint x, + guint y, + guint mouse_button, + guint32 time_); +void gtk_item_factory_popup_with_data(GtkItemFactory *ifactory, + gpointer popup_data, + GtkDestroyNotify destroy, + guint x, + guint y, + guint mouse_button, + guint32 time_); +gpointer gtk_item_factory_popup_data (GtkItemFactory *ifactory); +gpointer gtk_item_factory_popup_data_from_widget (GtkWidget *widget); +void gtk_item_factory_set_translate_func (GtkItemFactory *ifactory, + GtkTranslateFunc func, + gpointer data, + GtkDestroyNotify notify); + +/* Compatibility functions for deprecated GtkMenuFactory code + */ + +/* Used by gtk_item_factory_create_menu_entries () */ +typedef void (*GtkMenuCallback) (GtkWidget *widget, + gpointer user_data); +typedef struct { + gchar *path; + gchar *accelerator; + GtkMenuCallback callback; + gpointer callback_data; + GtkWidget *widget; +} GtkMenuEntry; + +/* Used by gtk_item_factory_callback_marshal () */ +typedef void (*GtkItemFactoryCallback2) (GtkWidget *widget, + gpointer callback_data, + guint callback_action); + +/* Used by gtk_item_factory_create_items () */ +void gtk_item_factory_create_items_ac (GtkItemFactory *ifactory, + guint n_entries, + GtkItemFactoryEntry *entries, + gpointer callback_data, + guint callback_type); + +GtkItemFactory* gtk_item_factory_from_path (const gchar *path); +void gtk_item_factory_create_menu_entries (guint n_entries, + GtkMenuEntry *entries); +void gtk_item_factories_path_delete (const gchar *ifactory_path, + const gchar *path); + +#endif /* !GTK_DISABLE_DEPRECATED */ + + +G_END_DECLS + +#endif /* __GTK_ITEM_FACTORY_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklabel.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklabel.h new file mode 100644 index 00000000..5656ebbf --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklabel.h @@ -0,0 +1,190 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_LABEL_H__ +#define __GTK_LABEL_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkmisc.h> +#include <gtk/gtkwindow.h> +#include <gtk/gtkmenu.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_LABEL (gtk_label_get_type ()) +#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel)) +#define GTK_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LABEL, GtkLabelClass)) +#define GTK_IS_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LABEL)) +#define GTK_IS_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LABEL)) +#define GTK_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LABEL, GtkLabelClass)) + + +typedef struct _GtkLabel GtkLabel; +typedef struct _GtkLabelClass GtkLabelClass; + +typedef struct _GtkLabelSelectionInfo GtkLabelSelectionInfo; + +struct _GtkLabel +{ + GtkMisc misc; + + /*< private >*/ + gchar *label; + guint jtype : 2; + guint wrap : 1; + guint use_underline : 1; + guint use_markup : 1; + guint ellipsize : 3; + guint single_line_mode : 1; + guint have_transform : 1; + guint in_click : 1; + guint wrap_mode : 3; + guint pattern_set : 1; + + guint mnemonic_keyval; + + gchar *text; + PangoAttrList *attrs; + PangoAttrList *effective_attrs; + + PangoLayout *layout; + + GtkWidget *mnemonic_widget; + GtkWindow *mnemonic_window; + + GtkLabelSelectionInfo *select_info; +}; + +struct _GtkLabelClass +{ + GtkMiscClass parent_class; + + void (* move_cursor) (GtkLabel *label, + GtkMovementStep step, + gint count, + gboolean extend_selection); + void (* copy_clipboard) (GtkLabel *label); + + /* Hook to customize right-click popup for selectable labels */ + void (* populate_popup) (GtkLabel *label, + GtkMenu *menu); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_label_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_label_new (const gchar *str); +GtkWidget* gtk_label_new_with_mnemonic (const gchar *str); +void gtk_label_set_text (GtkLabel *label, + const gchar *str); +G_CONST_RETURN gchar* gtk_label_get_text (GtkLabel *label); +void gtk_label_set_attributes (GtkLabel *label, + PangoAttrList *attrs); +PangoAttrList *gtk_label_get_attributes (GtkLabel *label); +void gtk_label_set_label (GtkLabel *label, + const gchar *str); +G_CONST_RETURN gchar *gtk_label_get_label (GtkLabel *label); +void gtk_label_set_markup (GtkLabel *label, + const gchar *str); +void gtk_label_set_use_markup (GtkLabel *label, + gboolean setting); +gboolean gtk_label_get_use_markup (GtkLabel *label); +void gtk_label_set_use_underline (GtkLabel *label, + gboolean setting); +gboolean gtk_label_get_use_underline (GtkLabel *label); + +void gtk_label_set_markup_with_mnemonic (GtkLabel *label, + const gchar *str); +guint gtk_label_get_mnemonic_keyval (GtkLabel *label); +void gtk_label_set_mnemonic_widget (GtkLabel *label, + GtkWidget *widget); +GtkWidget *gtk_label_get_mnemonic_widget (GtkLabel *label); +void gtk_label_set_text_with_mnemonic (GtkLabel *label, + const gchar *str); +void gtk_label_set_justify (GtkLabel *label, + GtkJustification jtype); +GtkJustification gtk_label_get_justify (GtkLabel *label); +void gtk_label_set_ellipsize (GtkLabel *label, + PangoEllipsizeMode mode); +PangoEllipsizeMode gtk_label_get_ellipsize (GtkLabel *label); +void gtk_label_set_width_chars (GtkLabel *label, + gint n_chars); +gint gtk_label_get_width_chars (GtkLabel *label); +void gtk_label_set_max_width_chars (GtkLabel *label, + gint n_chars); +gint gtk_label_get_max_width_chars (GtkLabel *label); +void gtk_label_set_pattern (GtkLabel *label, + const gchar *pattern); +void gtk_label_set_line_wrap (GtkLabel *label, + gboolean wrap); +gboolean gtk_label_get_line_wrap (GtkLabel *label); +void gtk_label_set_line_wrap_mode (GtkLabel *label, + PangoWrapMode wrap_mode); +PangoWrapMode gtk_label_get_line_wrap_mode (GtkLabel *label); +void gtk_label_set_selectable (GtkLabel *label, + gboolean setting); +gboolean gtk_label_get_selectable (GtkLabel *label); +void gtk_label_set_angle (GtkLabel *label, + gdouble angle); +gdouble gtk_label_get_angle (GtkLabel *label); +void gtk_label_select_region (GtkLabel *label, + gint start_offset, + gint end_offset); +gboolean gtk_label_get_selection_bounds (GtkLabel *label, + gint *start, + gint *end); + +PangoLayout *gtk_label_get_layout (GtkLabel *label); +void gtk_label_get_layout_offsets (GtkLabel *label, + gint *x, + gint *y); + +void gtk_label_set_single_line_mode (GtkLabel *label, + gboolean single_line_mode); +gboolean gtk_label_get_single_line_mode (GtkLabel *label); + +#ifndef GTK_DISABLE_DEPRECATED + +#define gtk_label_set gtk_label_set_text +void gtk_label_get (GtkLabel *label, + gchar **str); + +/* Convenience function to set the name and pattern by parsing + * a string with embedded underscores, and return the appropriate + * key symbol for the accelerator. + */ +guint gtk_label_parse_uline (GtkLabel *label, + const gchar *string); + +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_LABEL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklayout.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklayout.h new file mode 100644 index 00000000..ffd8b45d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklayout.h @@ -0,0 +1,132 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * GtkLayout: Widget for scrolling of arbitrary-sized areas. + * + * Copyright Owen Taylor, 1998 + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_LAYOUT_H__ +#define __GTK_LAYOUT_H__ + +#include <gdk/gdk.h> +#include <gtk/gtkcontainer.h> +#include <gtk/gtkadjustment.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_LAYOUT (gtk_layout_get_type ()) +#define GTK_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LAYOUT, GtkLayout)) +#define GTK_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LAYOUT, GtkLayoutClass)) +#define GTK_IS_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LAYOUT)) +#define GTK_IS_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LAYOUT)) +#define GTK_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LAYOUT, GtkLayoutClass)) + + +typedef struct _GtkLayout GtkLayout; +typedef struct _GtkLayoutClass GtkLayoutClass; + +struct _GtkLayout +{ + GtkContainer container; + + GList *children; + + guint width; + guint height; + + GtkAdjustment *hadjustment; + GtkAdjustment *vadjustment; + + /*< public >*/ + GdkWindow *bin_window; + + /*< private >*/ + GdkVisibilityState visibility; + gint scroll_x; + gint scroll_y; + + guint freeze_count; +}; + +struct _GtkLayoutClass +{ + GtkContainerClass parent_class; + + void (*set_scroll_adjustments) (GtkLayout *layout, + GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_layout_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_layout_new (GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); +void gtk_layout_put (GtkLayout *layout, + GtkWidget *child_widget, + gint x, + gint y); + +void gtk_layout_move (GtkLayout *layout, + GtkWidget *child_widget, + gint x, + gint y); + +void gtk_layout_set_size (GtkLayout *layout, + guint width, + guint height); +void gtk_layout_get_size (GtkLayout *layout, + guint *width, + guint *height); + +GtkAdjustment* gtk_layout_get_hadjustment (GtkLayout *layout); +GtkAdjustment* gtk_layout_get_vadjustment (GtkLayout *layout); +void gtk_layout_set_hadjustment (GtkLayout *layout, + GtkAdjustment *adjustment); +void gtk_layout_set_vadjustment (GtkLayout *layout, + GtkAdjustment *adjustment); + + +#ifndef GTK_DISABLE_DEPRECATED +/* These disable and enable moving and repainting the scrolling window + * of the GtkLayout, respectively. If you want to update the layout's + * offsets but do not want it to repaint itself, you should use these + * functions. + * + * - I don't understand these are supposed to work, so I suspect + * - they don't now. OWT 1/20/98 + */ +void gtk_layout_freeze (GtkLayout *layout); +void gtk_layout_thaw (GtkLayout *layout); +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_LAYOUT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklinkbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklinkbutton.h new file mode 100644 index 00000000..24e79b46 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklinkbutton.h @@ -0,0 +1,81 @@ +/* GTK - The GIMP Toolkit + * gtklinkbutton.h - an hyperlink-enabled button + * + * Copyright (C) 2005 Emmanuele Bassi <ebassi@gmail.com> + * All rights reserved. + * + * Based on gnome-href code by: + * James Henstridge <james@daa.com.au> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Cambridge, MA 02139, USA. + */ + +#ifndef __GTK_LINK_BUTTON_H__ +#define __GTK_LINK_BUTTON_H__ + +#include <glib.h> +#include <gtk/gtkbutton.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_LINK_BUTTON (gtk_link_button_get_type ()) +#define GTK_LINK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LINK_BUTTON, GtkLinkButton)) +#define GTK_IS_LINK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LINK_BUTTON)) +#define GTK_LINK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LINK_BUTTON, GtkLinkButtonClass)) +#define GTK_IS_LINK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LINK_BUTTON)) +#define GTK_LINK_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LINK_BUTTON, GtkLinkButtonClass)) + +typedef struct _GtkLinkButton GtkLinkButton; +typedef struct _GtkLinkButtonClass GtkLinkButtonClass; +typedef struct _GtkLinkButtonPrivate GtkLinkButtonPrivate; + +typedef void (*GtkLinkButtonUriFunc) (GtkLinkButton *button, + const gchar *link_, + gpointer user_data); + +struct _GtkLinkButton +{ + GtkButton parent_instance; + + GtkLinkButtonPrivate *priv; +}; + +struct _GtkLinkButtonClass +{ + GtkButtonClass parent_class; + + void (*_gtk_padding1) (void); + void (*_gtk_padding2) (void); + void (*_gtk_padding3) (void); + void (*_gtk_padding4) (void); +}; + +GType gtk_link_button_get_type (void) G_GNUC_CONST; + +GtkWidget * gtk_link_button_new (const gchar *uri); +GtkWidget * gtk_link_button_new_with_label (const gchar *uri, + const gchar *label); + +G_CONST_RETURN gchar *gtk_link_button_get_uri (GtkLinkButton *link_button); +void gtk_link_button_set_uri (GtkLinkButton *link_button, + const gchar *uri); + +GtkLinkButtonUriFunc gtk_link_button_set_uri_hook (GtkLinkButtonUriFunc func, + gpointer data, + GDestroyNotify destroy); + +G_END_DECLS + +#endif /* __GTK_LINK_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklist.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklist.h new file mode 100644 index 00000000..4023f2e7 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklist.h @@ -0,0 +1,142 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_LIST_H__ +#define __GTK_LIST_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkenums.h> +#include <gtk/gtkcontainer.h> +#include <gtk/gtklistitem.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_LIST (gtk_list_get_type ()) +#define GTK_LIST(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_LIST, GtkList)) +#define GTK_LIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_LIST, GtkListClass)) +#define GTK_IS_LIST(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_LIST)) +#define GTK_IS_LIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LIST)) +#define GTK_LIST_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_LIST, GtkListClass)) + + +typedef struct _GtkList GtkList; +typedef struct _GtkListClass GtkListClass; + +struct _GtkList +{ + GtkContainer container; + + GList *children; + GList *selection; + + GList *undo_selection; + GList *undo_unselection; + + GtkWidget *last_focus_child; + GtkWidget *undo_focus_child; + + guint htimer; + guint vtimer; + + gint anchor; + gint drag_pos; + GtkStateType anchor_state; + + guint selection_mode : 2; + guint drag_selection:1; + guint add_mode:1; +}; + +struct _GtkListClass +{ + GtkContainerClass parent_class; + + void (* selection_changed) (GtkList *list); + void (* select_child) (GtkList *list, + GtkWidget *child); + void (* unselect_child) (GtkList *list, + GtkWidget *child); +}; + + +GtkType gtk_list_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_list_new (void); +void gtk_list_insert_items (GtkList *list, + GList *items, + gint position); +void gtk_list_append_items (GtkList *list, + GList *items); +void gtk_list_prepend_items (GtkList *list, + GList *items); +void gtk_list_remove_items (GtkList *list, + GList *items); +void gtk_list_remove_items_no_unref (GtkList *list, + GList *items); +void gtk_list_clear_items (GtkList *list, + gint start, + gint end); +void gtk_list_select_item (GtkList *list, + gint item); +void gtk_list_unselect_item (GtkList *list, + gint item); +void gtk_list_select_child (GtkList *list, + GtkWidget *child); +void gtk_list_unselect_child (GtkList *list, + GtkWidget *child); +gint gtk_list_child_position (GtkList *list, + GtkWidget *child); +void gtk_list_set_selection_mode (GtkList *list, + GtkSelectionMode mode); + +void gtk_list_extend_selection (GtkList *list, + GtkScrollType scroll_type, + gfloat position, + gboolean auto_start_selection); +void gtk_list_start_selection (GtkList *list); +void gtk_list_end_selection (GtkList *list); +void gtk_list_select_all (GtkList *list); +void gtk_list_unselect_all (GtkList *list); +void gtk_list_scroll_horizontal (GtkList *list, + GtkScrollType scroll_type, + gfloat position); +void gtk_list_scroll_vertical (GtkList *list, + GtkScrollType scroll_type, + gfloat position); +void gtk_list_toggle_add_mode (GtkList *list); +void gtk_list_toggle_focus_row (GtkList *list); +void gtk_list_toggle_row (GtkList *list, + GtkWidget *item); +void gtk_list_undo_selection (GtkList *list); +void gtk_list_end_drag_selection (GtkList *list); + +G_END_DECLS + +#endif /* __GTK_LIST_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklistitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklistitem.h new file mode 100644 index 00000000..9738bce4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtklistitem.h @@ -0,0 +1,93 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_LIST_ITEM_H__ +#define __GTK_LIST_ITEM_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkitem.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_LIST_ITEM (gtk_list_item_get_type ()) +#define GTK_LIST_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_LIST_ITEM, GtkListItem)) +#define GTK_LIST_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_LIST_ITEM, GtkListItemClass)) +#define GTK_IS_LIST_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_LIST_ITEM)) +#define GTK_IS_LIST_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LIST_ITEM)) +#define GTK_LIST_ITEM_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_LIST_ITEM, GtkListItemClass)) + + +typedef struct _GtkListItem GtkListItem; +typedef struct _GtkListItemClass GtkListItemClass; + +struct _GtkListItem +{ + GtkItem item; +}; + +struct _GtkListItemClass +{ + GtkItemClass parent_class; + + void (*toggle_focus_row) (GtkListItem *list_item); + void (*select_all) (GtkListItem *list_item); + void (*unselect_all) (GtkListItem *list_item); + void (*undo_selection) (GtkListItem *list_item); + void (*start_selection) (GtkListItem *list_item); + void (*end_selection) (GtkListItem *list_item); + void (*extend_selection) (GtkListItem *list_item, + GtkScrollType scroll_type, + gfloat position, + gboolean auto_start_selection); + void (*scroll_horizontal) (GtkListItem *list_item, + GtkScrollType scroll_type, + gfloat position); + void (*scroll_vertical) (GtkListItem *list_item, + GtkScrollType scroll_type, + gfloat position); + void (*toggle_add_mode) (GtkListItem *list_item); +}; + + +GtkType gtk_list_item_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_list_item_new (void); +GtkWidget* gtk_list_item_new_with_label (const gchar *label); +void gtk_list_item_select (GtkListItem *list_item); +void gtk_list_item_deselect (GtkListItem *list_item); + + + +G_END_DECLS + + +#endif /* __GTK_LIST_ITEM_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkliststore.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkliststore.h new file mode 100644 index 00000000..9aeb81b3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkliststore.h @@ -0,0 +1,142 @@ +/* gtkliststore.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_LIST_STORE_H__ +#define __GTK_LIST_STORE_H__ + +#include <gtk/gtktreemodel.h> +#include <gtk/gtktreesortable.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_LIST_STORE (gtk_list_store_get_type ()) +#define GTK_LIST_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LIST_STORE, GtkListStore)) +#define GTK_LIST_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LIST_STORE, GtkListStoreClass)) +#define GTK_IS_LIST_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LIST_STORE)) +#define GTK_IS_LIST_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LIST_STORE)) +#define GTK_LIST_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LIST_STORE, GtkListStoreClass)) + +typedef struct _GtkListStore GtkListStore; +typedef struct _GtkListStoreClass GtkListStoreClass; + +struct _GtkListStore +{ + GObject parent; + + /*< private >*/ + gint stamp; + gpointer seq; /* head of the list */ + gpointer _gtk_reserved1; + GList *sort_list; + gint n_columns; + gint sort_column_id; + GtkSortType order; + GType *column_headers; + gint length; + GtkTreeIterCompareFunc default_sort_func; + gpointer default_sort_data; + GtkDestroyNotify default_sort_destroy; + guint columns_dirty : 1; +}; + +struct _GtkListStoreClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_list_store_get_type (void) G_GNUC_CONST; +GtkListStore *gtk_list_store_new (gint n_columns, + ...); +GtkListStore *gtk_list_store_newv (gint n_columns, + GType *types); +void gtk_list_store_set_column_types (GtkListStore *list_store, + gint n_columns, + GType *types); + +/* NOTE: use gtk_tree_model_get to get values from a GtkListStore */ + +void gtk_list_store_set_value (GtkListStore *list_store, + GtkTreeIter *iter, + gint column, + GValue *value); +void gtk_list_store_set (GtkListStore *list_store, + GtkTreeIter *iter, + ...); +void gtk_list_store_set_valuesv (GtkListStore *list_store, + GtkTreeIter *iter, + gint *columns, + GValue *values, + gint n_values); +void gtk_list_store_set_valist (GtkListStore *list_store, + GtkTreeIter *iter, + va_list var_args); +gboolean gtk_list_store_remove (GtkListStore *list_store, + GtkTreeIter *iter); +void gtk_list_store_insert (GtkListStore *list_store, + GtkTreeIter *iter, + gint position); +void gtk_list_store_insert_before (GtkListStore *list_store, + GtkTreeIter *iter, + GtkTreeIter *sibling); +void gtk_list_store_insert_after (GtkListStore *list_store, + GtkTreeIter *iter, + GtkTreeIter *sibling); +void gtk_list_store_insert_with_values (GtkListStore *list_store, + GtkTreeIter *iter, + gint position, + ...); +void gtk_list_store_insert_with_valuesv (GtkListStore *list_store, + GtkTreeIter *iter, + gint position, + gint *columns, + GValue *values, + gint n_values); +void gtk_list_store_prepend (GtkListStore *list_store, + GtkTreeIter *iter); +void gtk_list_store_append (GtkListStore *list_store, + GtkTreeIter *iter); +void gtk_list_store_clear (GtkListStore *list_store); +gboolean gtk_list_store_iter_is_valid (GtkListStore *list_store, + GtkTreeIter *iter); +void gtk_list_store_reorder (GtkListStore *store, + gint *new_order); +void gtk_list_store_swap (GtkListStore *store, + GtkTreeIter *a, + GtkTreeIter *b); +void gtk_list_store_move_after (GtkListStore *store, + GtkTreeIter *iter, + GtkTreeIter *position); +void gtk_list_store_move_before (GtkListStore *store, + GtkTreeIter *iter, + GtkTreeIter *position); + + +G_END_DECLS + + +#endif /* __GTK_LIST_STORE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmain.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmain.h new file mode 100644 index 00000000..15d08cbe --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmain.h @@ -0,0 +1,226 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_MAIN_H__ +#define __GTK_MAIN_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkwidget.h> +#ifdef G_PLATFORM_WIN32 +#include <gtk/gtkbox.h> +#include <gtk/gtkwindow.h> +#endif + +G_BEGIN_DECLS + +/* Priorities for redrawing and resizing + */ +#define GTK_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 10) + +#ifndef GTK_DISABLE_DEPRECATED + +/* Use GDK_PRIORITY_REDRAW */ +#define GTK_PRIORITY_REDRAW (G_PRIORITY_HIGH_IDLE + 20) + +/* Deprecated. Use G_PRIORITY #define's instead + */ +#define GTK_PRIORITY_HIGH G_PRIORITY_HIGH +#define GTK_PRIORITY_INTERNAL GTK_PRIORITY_REDRAW +#define GTK_PRIORITY_DEFAULT G_PRIORITY_DEFAULT_IDLE +#define GTK_PRIORITY_LOW G_PRIORITY_LOW + +#endif /* GTK_DISABLE_DEPRECATED */ + +typedef gint (*GtkKeySnoopFunc) (GtkWidget *grab_widget, + GdkEventKey *event, + gpointer func_data); + +/* Gtk version. + */ +#ifdef G_PLATFORM_WIN32 +#ifdef GTK_COMPILATION +#define GTKMAIN_C_VAR __declspec(dllexport) +#else +#define GTKMAIN_C_VAR extern __declspec(dllimport) +#endif +#else +#define GTKMAIN_C_VAR extern +#endif + +GTKMAIN_C_VAR const guint gtk_major_version; +GTKMAIN_C_VAR const guint gtk_minor_version; +GTKMAIN_C_VAR const guint gtk_micro_version; +GTKMAIN_C_VAR const guint gtk_binary_age; +GTKMAIN_C_VAR const guint gtk_interface_age; +const gchar* gtk_check_version (guint required_major, + guint required_minor, + guint required_micro); + + +/* Initialization, exit, mainloop and miscellaneous routines + */ + +gboolean gtk_parse_args (int *argc, + char ***argv); + +void gtk_init (int *argc, + char ***argv); + +gboolean gtk_init_check (int *argc, + char ***argv); + +gboolean gtk_init_with_args (int *argc, + char ***argv, + char *parameter_string, + GOptionEntry *entries, + char *translation_domain, + GError **error); + +GOptionGroup *gtk_get_option_group (gboolean open_default_display); + +#ifdef G_PLATFORM_WIN32 + +/* Variants that are used to check for correct struct packing + * when building GTK+-using code. + */ +void gtk_init_abi_check (int *argc, + char ***argv, + int num_checks, + size_t sizeof_GtkWindow, + size_t sizeof_GtkBox); +gboolean gtk_init_check_abi_check (int *argc, + char ***argv, + int num_checks, + size_t sizeof_GtkWindow, + size_t sizeof_GtkBox); + +#define gtk_init(argc, argv) gtk_init_abi_check (argc, argv, 2, sizeof (GtkWindow), sizeof (GtkBox)) +#define gtk_init_check(argc, argv) gtk_init_check_abi_check (argc, argv, 2, sizeof (GtkWindow), sizeof (GtkBox)) + +#endif + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_exit (gint error_code); +#endif /* GTK_DISABLE_DEPRECATED */ + +void gtk_disable_setlocale (void); +gchar * gtk_set_locale (void); +PangoLanguage *gtk_get_default_language (void); +gboolean gtk_events_pending (void); + +/* The following is the event func GTK+ registers with GDK + * we expose it mainly to allow filtering of events between + * GDK and GTK+. + */ +void gtk_main_do_event (GdkEvent *event); + +void gtk_main (void); +guint gtk_main_level (void); +void gtk_main_quit (void); +gboolean gtk_main_iteration (void); +/* gtk_main_iteration() calls gtk_main_iteration_do(TRUE) */ +gboolean gtk_main_iteration_do (gboolean blocking); + +gboolean gtk_true (void) G_GNUC_CONST; +gboolean gtk_false (void) G_GNUC_CONST; + +void gtk_grab_add (GtkWidget *widget); +GtkWidget* gtk_grab_get_current (void); +void gtk_grab_remove (GtkWidget *widget); + +void gtk_init_add (GtkFunction function, + gpointer data); +void gtk_quit_add_destroy (guint main_level, + GtkObject *object); +guint gtk_quit_add (guint main_level, + GtkFunction function, + gpointer data); +guint gtk_quit_add_full (guint main_level, + GtkFunction function, + GtkCallbackMarshal marshal, + gpointer data, + GtkDestroyNotify destroy); +void gtk_quit_remove (guint quit_handler_id); +void gtk_quit_remove_by_data (gpointer data); +#ifndef GTK_DISABLE_DEPRECATED +guint gtk_timeout_add (guint32 interval, + GtkFunction function, + gpointer data); +guint gtk_timeout_add_full (guint32 interval, + GtkFunction function, + GtkCallbackMarshal marshal, + gpointer data, + GtkDestroyNotify destroy); +void gtk_timeout_remove (guint timeout_handler_id); + +guint gtk_idle_add (GtkFunction function, + gpointer data); +guint gtk_idle_add_priority (gint priority, + GtkFunction function, + gpointer data); +guint gtk_idle_add_full (gint priority, + GtkFunction function, + GtkCallbackMarshal marshal, + gpointer data, + GtkDestroyNotify destroy); +void gtk_idle_remove (guint idle_handler_id); +void gtk_idle_remove_by_data (gpointer data); +guint gtk_input_add_full (gint source, + GdkInputCondition condition, + GdkInputFunction function, + GtkCallbackMarshal marshal, + gpointer data, + GtkDestroyNotify destroy); +void gtk_input_remove (guint input_handler_id); +#endif /* GTK_DISABLE_DEPRECATED */ + +guint gtk_key_snooper_install (GtkKeySnoopFunc snooper, + gpointer func_data); +void gtk_key_snooper_remove (guint snooper_handler_id); + +GdkEvent* gtk_get_current_event (void); +guint32 gtk_get_current_event_time (void); +gboolean gtk_get_current_event_state (GdkModifierType *state); + +GtkWidget* gtk_get_event_widget (GdkEvent *event); + + +/* Private routines internal to GTK+ + */ +void gtk_propagate_event (GtkWidget *widget, + GdkEvent *event); + +gboolean _gtk_boolean_handled_accumulator (GSignalInvocationHint *ihint, + GValue *return_accu, + const GValue *handler_return, + gpointer dummy); + +gchar *_gtk_get_lc_ctype (void); + +G_END_DECLS + +#endif /* __GTK_MAIN_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmarshal.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmarshal.h new file mode 100644 index 00000000..ef2276b4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmarshal.h @@ -0,0 +1,283 @@ +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __gtk_marshal_MARSHAL_H__ +#define __gtk_marshal_MARSHAL_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +/* BOOL:NONE (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:1) */ +extern void gtk_marshal_BOOLEAN__VOID (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_BOOL__NONE gtk_marshal_BOOLEAN__VOID + +/* BOOL:POINTER (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:2) */ +extern void gtk_marshal_BOOLEAN__POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_BOOL__POINTER gtk_marshal_BOOLEAN__POINTER + +/* BOOL:POINTER,POINTER,INT,INT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:3) */ +extern void gtk_marshal_BOOLEAN__POINTER_POINTER_INT_INT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_BOOL__POINTER_POINTER_INT_INT gtk_marshal_BOOLEAN__POINTER_POINTER_INT_INT + +/* BOOL:POINTER,INT,INT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:4) */ +extern void gtk_marshal_BOOLEAN__POINTER_INT_INT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_BOOL__POINTER_INT_INT gtk_marshal_BOOLEAN__POINTER_INT_INT + +/* BOOL:POINTER,INT,INT,UINT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:5) */ +extern void gtk_marshal_BOOLEAN__POINTER_INT_INT_UINT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_BOOL__POINTER_INT_INT_UINT gtk_marshal_BOOLEAN__POINTER_INT_INT_UINT + +/* BOOL:POINTER,STRING,STRING,POINTER (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:6) */ +extern void gtk_marshal_BOOLEAN__POINTER_STRING_STRING_POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_BOOL__POINTER_STRING_STRING_POINTER gtk_marshal_BOOLEAN__POINTER_STRING_STRING_POINTER + +/* ENUM:ENUM (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:7) */ +extern void gtk_marshal_ENUM__ENUM (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* INT:POINTER (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:8) */ +extern void gtk_marshal_INT__POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* INT:POINTER,CHAR,CHAR (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:9) */ +extern void gtk_marshal_INT__POINTER_CHAR_CHAR (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); + +/* NONE:BOOL (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:10) */ +#define gtk_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN +#define gtk_marshal_NONE__BOOL gtk_marshal_VOID__BOOLEAN + +/* NONE:BOXED (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:11) */ +#define gtk_marshal_VOID__BOXED g_cclosure_marshal_VOID__BOXED +#define gtk_marshal_NONE__BOXED gtk_marshal_VOID__BOXED + +/* NONE:ENUM (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:12) */ +#define gtk_marshal_VOID__ENUM g_cclosure_marshal_VOID__ENUM +#define gtk_marshal_NONE__ENUM gtk_marshal_VOID__ENUM + +/* NONE:ENUM,FLOAT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:13) */ +extern void gtk_marshal_VOID__ENUM_FLOAT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__ENUM_FLOAT gtk_marshal_VOID__ENUM_FLOAT + +/* NONE:ENUM,FLOAT,BOOL (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:14) */ +extern void gtk_marshal_VOID__ENUM_FLOAT_BOOLEAN (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__ENUM_FLOAT_BOOL gtk_marshal_VOID__ENUM_FLOAT_BOOLEAN + +/* NONE:INT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:15) */ +#define gtk_marshal_VOID__INT g_cclosure_marshal_VOID__INT +#define gtk_marshal_NONE__INT gtk_marshal_VOID__INT + +/* NONE:INT,INT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:16) */ +extern void gtk_marshal_VOID__INT_INT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__INT_INT gtk_marshal_VOID__INT_INT + +/* NONE:INT,INT,POINTER (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:17) */ +extern void gtk_marshal_VOID__INT_INT_POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__INT_INT_POINTER gtk_marshal_VOID__INT_INT_POINTER + +/* NONE:NONE (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:18) */ +#define gtk_marshal_VOID__VOID g_cclosure_marshal_VOID__VOID +#define gtk_marshal_NONE__NONE gtk_marshal_VOID__VOID + +/* NONE:OBJECT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:19) */ +#define gtk_marshal_VOID__OBJECT g_cclosure_marshal_VOID__OBJECT +#define gtk_marshal_NONE__OBJECT gtk_marshal_VOID__OBJECT + +/* NONE:POINTER (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:20) */ +#define gtk_marshal_VOID__POINTER g_cclosure_marshal_VOID__POINTER +#define gtk_marshal_NONE__POINTER gtk_marshal_VOID__POINTER + +/* NONE:POINTER,INT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:21) */ +extern void gtk_marshal_VOID__POINTER_INT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__POINTER_INT gtk_marshal_VOID__POINTER_INT + +/* NONE:POINTER,POINTER (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:22) */ +extern void gtk_marshal_VOID__POINTER_POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__POINTER_POINTER gtk_marshal_VOID__POINTER_POINTER + +/* NONE:POINTER,POINTER,POINTER (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:23) */ +extern void gtk_marshal_VOID__POINTER_POINTER_POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__POINTER_POINTER_POINTER gtk_marshal_VOID__POINTER_POINTER_POINTER + +/* NONE:POINTER,STRING,STRING (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:24) */ +extern void gtk_marshal_VOID__POINTER_STRING_STRING (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__POINTER_STRING_STRING gtk_marshal_VOID__POINTER_STRING_STRING + +/* NONE:POINTER,UINT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:25) */ +extern void gtk_marshal_VOID__POINTER_UINT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__POINTER_UINT gtk_marshal_VOID__POINTER_UINT + +/* NONE:POINTER,UINT,ENUM (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:26) */ +extern void gtk_marshal_VOID__POINTER_UINT_ENUM (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__POINTER_UINT_ENUM gtk_marshal_VOID__POINTER_UINT_ENUM + +/* NONE:POINTER,POINTER,UINT,UINT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:27) */ +extern void gtk_marshal_VOID__POINTER_POINTER_UINT_UINT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__POINTER_POINTER_UINT_UINT gtk_marshal_VOID__POINTER_POINTER_UINT_UINT + +/* NONE:POINTER,INT,INT,POINTER,UINT,UINT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:28) */ +extern void gtk_marshal_VOID__POINTER_INT_INT_POINTER_UINT_UINT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__POINTER_INT_INT_POINTER_UINT_UINT gtk_marshal_VOID__POINTER_INT_INT_POINTER_UINT_UINT + +/* NONE:POINTER,UINT,UINT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:29) */ +extern void gtk_marshal_VOID__POINTER_UINT_UINT (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__POINTER_UINT_UINT gtk_marshal_VOID__POINTER_UINT_UINT + +/* NONE:POINTER,UINT,UINT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:30) */ + +/* NONE:STRING (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:31) */ +#define gtk_marshal_VOID__STRING g_cclosure_marshal_VOID__STRING +#define gtk_marshal_NONE__STRING gtk_marshal_VOID__STRING + +/* NONE:STRING,INT,POINTER (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:32) */ +extern void gtk_marshal_VOID__STRING_INT_POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__STRING_INT_POINTER gtk_marshal_VOID__STRING_INT_POINTER + +/* NONE:UINT (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:33) */ +#define gtk_marshal_VOID__UINT g_cclosure_marshal_VOID__UINT +#define gtk_marshal_NONE__UINT gtk_marshal_VOID__UINT + +/* NONE:UINT,POINTER,UINT,ENUM,ENUM,POINTER (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:34) */ +extern void gtk_marshal_VOID__UINT_POINTER_UINT_ENUM_ENUM_POINTER (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__UINT_POINTER_UINT_ENUM_ENUM_POINTER gtk_marshal_VOID__UINT_POINTER_UINT_ENUM_ENUM_POINTER + +/* NONE:UINT,POINTER,UINT,UINT,ENUM (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:35) */ +extern void gtk_marshal_VOID__UINT_POINTER_UINT_UINT_ENUM (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__UINT_POINTER_UINT_UINT_ENUM gtk_marshal_VOID__UINT_POINTER_UINT_UINT_ENUM + +/* NONE:UINT,STRING (/build/buildd-gtk+2.0_2.12.12-1~lenny2-i386-2RfKoO/gtk+2.0-2.12.12/gtk/gtkmarshal.list:36) */ +extern void gtk_marshal_VOID__UINT_STRING (GClosure *closure, + GValue *return_value, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint, + gpointer marshal_data); +#define gtk_marshal_NONE__UINT_STRING gtk_marshal_VOID__UINT_STRING + +G_END_DECLS + +#endif /* __gtk_marshal_MARSHAL_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenu.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenu.h new file mode 100644 index 00000000..ba4c8013 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenu.h @@ -0,0 +1,209 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_MENU_H__ +#define __GTK_MENU_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkaccelgroup.h> +#include <gtk/gtkmenushell.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_MENU (gtk_menu_get_type ()) +#define GTK_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU, GtkMenu)) +#define GTK_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU, GtkMenuClass)) +#define GTK_IS_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU)) +#define GTK_IS_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU)) +#define GTK_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU, GtkMenuClass)) + + +typedef struct _GtkMenu GtkMenu; +typedef struct _GtkMenuClass GtkMenuClass; + +typedef void (*GtkMenuPositionFunc) (GtkMenu *menu, + gint *x, + gint *y, + gboolean *push_in, + gpointer user_data); +typedef void (*GtkMenuDetachFunc) (GtkWidget *attach_widget, + GtkMenu *menu); + +struct _GtkMenu +{ + GtkMenuShell menu_shell; + + GtkWidget *parent_menu_item; + GtkWidget *old_active_menu_item; + + GtkAccelGroup *accel_group; + gchar *accel_path; + GtkMenuPositionFunc position_func; + gpointer position_func_data; + + guint toggle_size; + /* Do _not_ touch these widgets directly. We hide the reference + * count from the toplevel to the menu, so it must be restored + * before operating on these widgets + */ + GtkWidget *toplevel; + + GtkWidget *tearoff_window; + GtkWidget *tearoff_hbox; + GtkWidget *tearoff_scrollbar; + GtkAdjustment *tearoff_adjustment; + + GdkWindow *view_window; + GdkWindow *bin_window; + + gint scroll_offset; + gint saved_scroll_offset; + gint scroll_step; + guint timeout_id; + + /* When a submenu of this menu is popped up, motion in this + * region is ignored + */ + GdkRegion *navigation_region; + guint navigation_timeout; + + guint needs_destruction_ref_count : 1; + guint torn_off : 1; + /* The tearoff is active when it is torn off and the not-torn-off + * menu is not popped up. + */ + guint tearoff_active : 1; + + guint scroll_fast : 1; + + guint upper_arrow_visible : 1; + guint lower_arrow_visible : 1; + guint upper_arrow_prelight : 1; + guint lower_arrow_prelight : 1; +}; + +struct _GtkMenuClass +{ + GtkMenuShellClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_menu_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_menu_new (void); + +/* Display the menu onscreen */ +void gtk_menu_popup (GtkMenu *menu, + GtkWidget *parent_menu_shell, + GtkWidget *parent_menu_item, + GtkMenuPositionFunc func, + gpointer data, + guint button, + guint32 activate_time); + +/* Position the menu according to its position function. Called + * from gtkmenuitem.c when a menu-item changes its allocation + */ +void gtk_menu_reposition (GtkMenu *menu); + +void gtk_menu_popdown (GtkMenu *menu); + +/* Keep track of the last menu item selected. (For the purposes + * of the option menu + */ +GtkWidget* gtk_menu_get_active (GtkMenu *menu); +void gtk_menu_set_active (GtkMenu *menu, + guint index_); + +/* set/get the accelerator group that holds global accelerators (should + * be added to the corresponding toplevel with gtk_window_add_accel_group(). + */ +void gtk_menu_set_accel_group (GtkMenu *menu, + GtkAccelGroup *accel_group); +GtkAccelGroup* gtk_menu_get_accel_group (GtkMenu *menu); +void gtk_menu_set_accel_path (GtkMenu *menu, + const gchar *accel_path); + +/* A reference count is kept for a widget when it is attached to + * a particular widget. This is typically a menu item; it may also + * be a widget with a popup menu - for instance, the Notebook widget. + */ +void gtk_menu_attach_to_widget (GtkMenu *menu, + GtkWidget *attach_widget, + GtkMenuDetachFunc detacher); +void gtk_menu_detach (GtkMenu *menu); + +/* This should be dumped in favor of data set when the menu is popped + * up - that is currently in the ItemFactory code, but should be + * in the Menu code. + */ +GtkWidget* gtk_menu_get_attach_widget (GtkMenu *menu); + +void gtk_menu_set_tearoff_state (GtkMenu *menu, + gboolean torn_off); +gboolean gtk_menu_get_tearoff_state (GtkMenu *menu); + +/* This sets the window manager title for the window that + * appears when a menu is torn off + */ +void gtk_menu_set_title (GtkMenu *menu, + const gchar *title); +G_CONST_RETURN gchar *gtk_menu_get_title (GtkMenu *menu); + +void gtk_menu_reorder_child (GtkMenu *menu, + GtkWidget *child, + gint position); + +void gtk_menu_set_screen (GtkMenu *menu, + GdkScreen *screen); + +void gtk_menu_attach (GtkMenu *menu, + GtkWidget *child, + guint left_attach, + guint right_attach, + guint top_attach, + guint bottom_attach); + +void gtk_menu_set_monitor (GtkMenu *menu, + gint monitor_num); +GList* gtk_menu_get_for_attach_widget (GtkWidget *widget); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_menu_append(menu,child) gtk_menu_shell_append ((GtkMenuShell *)(menu),(child)) +#define gtk_menu_prepend(menu,child) gtk_menu_shell_prepend ((GtkMenuShell *)(menu),(child)) +#define gtk_menu_insert(menu,child,pos) gtk_menu_shell_insert ((GtkMenuShell *)(menu),(child),(pos)) +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_MENU_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenubar.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenubar.h new file mode 100644 index 00000000..53fba835 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenubar.h @@ -0,0 +1,89 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_MENU_BAR_H__ +#define __GTK_MENU_BAR_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkmenushell.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_MENU_BAR (gtk_menu_bar_get_type ()) +#define GTK_MENU_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_BAR, GtkMenuBar)) +#define GTK_MENU_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_BAR, GtkMenuBarClass)) +#define GTK_IS_MENU_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_BAR)) +#define GTK_IS_MENU_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_BAR)) +#define GTK_MENU_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_BAR, GtkMenuBarClass)) + +typedef struct _GtkMenuBar GtkMenuBar; +typedef struct _GtkMenuBarClass GtkMenuBarClass; + +struct _GtkMenuBar +{ + GtkMenuShell menu_shell; +}; + +struct _GtkMenuBarClass +{ + GtkMenuShellClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_menu_bar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_menu_bar_new (void); + +GtkPackDirection gtk_menu_bar_get_pack_direction (GtkMenuBar *menubar); +void gtk_menu_bar_set_pack_direction (GtkMenuBar *menubar, + GtkPackDirection pack_dir); +GtkPackDirection gtk_menu_bar_get_child_pack_direction (GtkMenuBar *menubar); +void gtk_menu_bar_set_child_pack_direction (GtkMenuBar *menubar, + GtkPackDirection child_pack_dir); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_menu_bar_append(menu,child) gtk_menu_shell_append ((GtkMenuShell *)(menu),(child)) +#define gtk_menu_bar_prepend(menu,child) gtk_menu_shell_prepend ((GtkMenuShell *)(menu),(child)) +#define gtk_menu_bar_insert(menu,child,pos) gtk_menu_shell_insert ((GtkMenuShell *)(menu),(child),(pos)) +#endif /* GTK_DISABLE_DEPRECATED */ + +/* Private functions */ +void _gtk_menu_bar_cycle_focus (GtkMenuBar *menubar, + GtkDirectionType dir); + + +G_END_DECLS + + +#endif /* __GTK_MENU_BAR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenuitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenuitem.h new file mode 100644 index 00000000..4da800ed --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenuitem.h @@ -0,0 +1,132 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_MENU_ITEM_H__ +#define __GTK_MENU_ITEM_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkitem.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_MENU_ITEM (gtk_menu_item_get_type ()) +#define GTK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_ITEM, GtkMenuItem)) +#define GTK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_ITEM, GtkMenuItemClass)) +#define GTK_IS_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_ITEM)) +#define GTK_IS_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_ITEM)) +#define GTK_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_ITEM, GtkMenuItemClass)) + + +typedef struct _GtkMenuItem GtkMenuItem; +typedef struct _GtkMenuItemClass GtkMenuItemClass; + +struct _GtkMenuItem +{ + GtkItem item; + + GtkWidget *submenu; + GdkWindow *event_window; + + guint16 toggle_size; + guint16 accelerator_width; + gchar *accel_path; + + guint show_submenu_indicator : 1; + guint submenu_placement : 1; + guint submenu_direction : 1; + guint right_justify: 1; + guint timer_from_keypress : 1; + guint from_menubar : 1; + guint timer; +}; + +struct _GtkMenuItemClass +{ + GtkItemClass parent_class; + + /* If the following flag is true, then we should always hide + * the menu when the MenuItem is activated. Otherwise, the + * it is up to the caller. For instance, when navigating + * a menu with the keyboard, <Space> doesn't hide, but + * <Return> does. + */ + guint hide_on_activate : 1; + + void (* activate) (GtkMenuItem *menu_item); + void (* activate_item) (GtkMenuItem *menu_item); + void (* toggle_size_request) (GtkMenuItem *menu_item, + gint *requisition); + void (* toggle_size_allocate) (GtkMenuItem *menu_item, + gint allocation); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_menu_item_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_menu_item_new (void); +GtkWidget* gtk_menu_item_new_with_label (const gchar *label); +GtkWidget* gtk_menu_item_new_with_mnemonic (const gchar *label); +void gtk_menu_item_set_submenu (GtkMenuItem *menu_item, + GtkWidget *submenu); +GtkWidget* gtk_menu_item_get_submenu (GtkMenuItem *menu_item); +void gtk_menu_item_select (GtkMenuItem *menu_item); +void gtk_menu_item_deselect (GtkMenuItem *menu_item); +void gtk_menu_item_activate (GtkMenuItem *menu_item); +void gtk_menu_item_toggle_size_request (GtkMenuItem *menu_item, + gint *requisition); +void gtk_menu_item_toggle_size_allocate (GtkMenuItem *menu_item, + gint allocation); +void gtk_menu_item_set_right_justified (GtkMenuItem *menu_item, + gboolean right_justified); +gboolean gtk_menu_item_get_right_justified (GtkMenuItem *menu_item); +void gtk_menu_item_set_accel_path (GtkMenuItem *menu_item, + const gchar *accel_path); + +/* private */ +void _gtk_menu_item_refresh_accel_path (GtkMenuItem *menu_item, + const gchar *prefix, + GtkAccelGroup *accel_group, + gboolean group_changed); +gboolean _gtk_menu_item_is_selectable (GtkWidget *menu_item); +void _gtk_menu_item_popup_submenu (GtkWidget *menu_item, + gboolean with_delay); +void _gtk_menu_item_popdown_submenu (GtkWidget *menu_item); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_menu_item_remove_submenu (GtkMenuItem *menu_item); +#define gtk_menu_item_right_justify(menu_item) gtk_menu_item_set_right_justified ((menu_item), TRUE) +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_MENU_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenushell.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenushell.h new file mode 100644 index 00000000..2595a74f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenushell.h @@ -0,0 +1,132 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_MENU_SHELL_H__ +#define __GTK_MENU_SHELL_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkcontainer.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_MENU_SHELL (gtk_menu_shell_get_type ()) +#define GTK_MENU_SHELL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShell)) +#define GTK_MENU_SHELL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_SHELL, GtkMenuShellClass)) +#define GTK_IS_MENU_SHELL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_SHELL)) +#define GTK_IS_MENU_SHELL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_SHELL)) +#define GTK_MENU_SHELL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShellClass)) + + +typedef struct _GtkMenuShell GtkMenuShell; +typedef struct _GtkMenuShellClass GtkMenuShellClass; + +struct _GtkMenuShell +{ + GtkContainer container; + + GList *children; + GtkWidget *active_menu_item; + GtkWidget *parent_menu_shell; + + guint button; + guint32 activate_time; + + guint active : 1; + guint have_grab : 1; + guint have_xgrab : 1; + guint ignore_leave : 1; /* unused */ + guint menu_flag : 1; /* unused */ + guint ignore_enter : 1; +}; + +struct _GtkMenuShellClass +{ + GtkContainerClass parent_class; + + guint submenu_placement : 1; + + void (*deactivate) (GtkMenuShell *menu_shell); + void (*selection_done) (GtkMenuShell *menu_shell); + + void (*move_current) (GtkMenuShell *menu_shell, + GtkMenuDirectionType direction); + void (*activate_current) (GtkMenuShell *menu_shell, + gboolean force_hide); + void (*cancel) (GtkMenuShell *menu_shell); + void (*select_item) (GtkMenuShell *menu_shell, + GtkWidget *menu_item); + void (*insert) (GtkMenuShell *menu_shell, + GtkWidget *child, + gint position); + gint (*get_popup_delay) (GtkMenuShell *menu_shell); + gboolean (*move_selected) (GtkMenuShell *menu_shell, + gint distance); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); +}; + + +GType gtk_menu_shell_get_type (void) G_GNUC_CONST; +void gtk_menu_shell_append (GtkMenuShell *menu_shell, + GtkWidget *child); +void gtk_menu_shell_prepend (GtkMenuShell *menu_shell, + GtkWidget *child); +void gtk_menu_shell_insert (GtkMenuShell *menu_shell, + GtkWidget *child, + gint position); +void gtk_menu_shell_deactivate (GtkMenuShell *menu_shell); +void gtk_menu_shell_select_item (GtkMenuShell *menu_shell, + GtkWidget *menu_item); +void gtk_menu_shell_deselect (GtkMenuShell *menu_shell); +void gtk_menu_shell_activate_item (GtkMenuShell *menu_shell, + GtkWidget *menu_item, + gboolean force_deactivate); +void gtk_menu_shell_select_first (GtkMenuShell *menu_shell, + gboolean search_sensitive); +void _gtk_menu_shell_select_last (GtkMenuShell *menu_shell, + gboolean search_sensitive); +void _gtk_menu_shell_activate (GtkMenuShell *menu_shell); +gint _gtk_menu_shell_get_popup_delay (GtkMenuShell *menu_shell); +void gtk_menu_shell_cancel (GtkMenuShell *menu_shell); + +void _gtk_menu_shell_add_mnemonic (GtkMenuShell *menu_shell, + guint keyval, + GtkWidget *target); +void _gtk_menu_shell_remove_mnemonic (GtkMenuShell *menu_shell, + guint keyval, + GtkWidget *target); + +gboolean gtk_menu_shell_get_take_focus (GtkMenuShell *menu_shell); +void gtk_menu_shell_set_take_focus (GtkMenuShell *menu_shell, + gboolean take_focus); + +G_END_DECLS + +#endif /* __GTK_MENU_SHELL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h new file mode 100644 index 00000000..4eb860e3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h @@ -0,0 +1,85 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2003 Ricardo Fernandez Pascual + * Copyright (C) 2004 Paolo Borelli + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_MENU_TOOL_BUTTON_H__ +#define __GTK_MENU_TOOL_BUTTON_H__ + +#include "gtkmenu.h" +#include "gtk/gtktoolbutton.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_MENU_TOOL_BUTTON (gtk_menu_tool_button_get_type ()) +#define GTK_MENU_TOOL_BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButton)) +#define GTK_MENU_TOOL_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButtonClass)) +#define GTK_IS_MENU_TOOL_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_MENU_TOOL_BUTTON)) +#define GTK_IS_MENU_TOOL_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_MENU_TOOL_BUTTON)) +#define GTK_MENU_TOOL_BUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButtonClass)) + +typedef struct _GtkMenuToolButtonClass GtkMenuToolButtonClass; +typedef struct _GtkMenuToolButton GtkMenuToolButton; +typedef struct _GtkMenuToolButtonPrivate GtkMenuToolButtonPrivate; + +struct _GtkMenuToolButton +{ + GtkToolButton parent; + + /*< private >*/ + GtkMenuToolButtonPrivate *priv; +}; + +struct _GtkMenuToolButtonClass +{ + GtkToolButtonClass parent_class; + + void (*show_menu) (GtkMenuToolButton *button); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_menu_tool_button_get_type (void) G_GNUC_CONST; +GtkToolItem *gtk_menu_tool_button_new (GtkWidget *icon_widget, + const gchar *label); +GtkToolItem *gtk_menu_tool_button_new_from_stock (const gchar *stock_id); + +void gtk_menu_tool_button_set_menu (GtkMenuToolButton *button, + GtkWidget *menu); +GtkWidget *gtk_menu_tool_button_get_menu (GtkMenuToolButton *button); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_menu_tool_button_set_arrow_tooltip (GtkMenuToolButton *button, + GtkTooltips *tooltips, + const gchar *tip_text, + const gchar *tip_private); +#endif /* GTK_DISABLE_DEPRECATED */ + +void gtk_menu_tool_button_set_arrow_tooltip_text (GtkMenuToolButton *button, + const gchar *text); +void gtk_menu_tool_button_set_arrow_tooltip_markup (GtkMenuToolButton *button, + const gchar *markup); + +G_END_DECLS + +#endif /* __GTK_MENU_TOOL_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmessagedialog.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmessagedialog.h new file mode 100644 index 00000000..dbf17d2b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmessagedialog.h @@ -0,0 +1,117 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 2 -*- */ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_MESSAGE_DIALOG_H__ +#define __GTK_MESSAGE_DIALOG_H__ + +#include <gtk/gtkdialog.h> + +G_BEGIN_DECLS + +typedef enum +{ + GTK_MESSAGE_INFO, + GTK_MESSAGE_WARNING, + GTK_MESSAGE_QUESTION, + GTK_MESSAGE_ERROR, + GTK_MESSAGE_OTHER +} GtkMessageType; + +typedef enum +{ + GTK_BUTTONS_NONE, + GTK_BUTTONS_OK, + GTK_BUTTONS_CLOSE, + GTK_BUTTONS_CANCEL, + GTK_BUTTONS_YES_NO, + GTK_BUTTONS_OK_CANCEL +} GtkButtonsType; + +#define GTK_TYPE_MESSAGE_DIALOG (gtk_message_dialog_get_type ()) +#define GTK_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialog)) +#define GTK_MESSAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialogClass)) +#define GTK_IS_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MESSAGE_DIALOG)) +#define GTK_IS_MESSAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MESSAGE_DIALOG)) +#define GTK_MESSAGE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialogClass)) + +typedef struct _GtkMessageDialog GtkMessageDialog; +typedef struct _GtkMessageDialogClass GtkMessageDialogClass; + +struct _GtkMessageDialog +{ + /*< private >*/ + + GtkDialog parent_instance; + + GtkWidget *image; + GtkWidget *label; +}; + +struct _GtkMessageDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_message_dialog_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_message_dialog_new (GtkWindow *parent, + GtkDialogFlags flags, + GtkMessageType type, + GtkButtonsType buttons, + const gchar *message_format, + ...) G_GNUC_PRINTF (5, 6); + +GtkWidget* gtk_message_dialog_new_with_markup (GtkWindow *parent, + GtkDialogFlags flags, + GtkMessageType type, + GtkButtonsType buttons, + const gchar *message_format, + ...) G_GNUC_PRINTF (5, 6); + +void gtk_message_dialog_set_image (GtkMessageDialog *dialog, + GtkWidget *image); + +void gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog, + const gchar *str); + +void gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog, + const gchar *message_format, + ...) G_GNUC_PRINTF (2, 3); + +void gtk_message_dialog_format_secondary_markup (GtkMessageDialog *message_dialog, + const gchar *message_format, + ...) G_GNUC_PRINTF (2, 3); + +G_END_DECLS + +#endif /* __GTK_MESSAGE_DIALOG_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmisc.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmisc.h new file mode 100644 index 00000000..3bc638ae --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmisc.h @@ -0,0 +1,82 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_MISC_H__ +#define __GTK_MISC_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkwidget.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_MISC (gtk_misc_get_type ()) +#define GTK_MISC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MISC, GtkMisc)) +#define GTK_MISC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MISC, GtkMiscClass)) +#define GTK_IS_MISC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MISC)) +#define GTK_IS_MISC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MISC)) +#define GTK_MISC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MISC, GtkMiscClass)) + + +typedef struct _GtkMisc GtkMisc; +typedef struct _GtkMiscClass GtkMiscClass; + +struct _GtkMisc +{ + GtkWidget widget; + + gfloat xalign; + gfloat yalign; + + guint16 xpad; + guint16 ypad; +}; + +struct _GtkMiscClass +{ + GtkWidgetClass parent_class; +}; + + +GType gtk_misc_get_type (void) G_GNUC_CONST; +void gtk_misc_set_alignment (GtkMisc *misc, + gfloat xalign, + gfloat yalign); +void gtk_misc_get_alignment (GtkMisc *misc, + gfloat *xalign, + gfloat *yalign); +void gtk_misc_set_padding (GtkMisc *misc, + gint xpad, + gint ypad); +void gtk_misc_get_padding (GtkMisc *misc, + gint *xpad, + gint *ypad); + + +G_END_DECLS + +#endif /* __GTK_MISC_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmodules.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmodules.h new file mode 100644 index 00000000..bd157f79 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkmodules.h @@ -0,0 +1,50 @@ +/* GTK - The GIMP Toolkit + * Copyright 1998-2002 Tim Janik, Red Hat, Inc., and others. + * Copyright (C) 2003 Alex Graveley + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_MODULES_H__ +#define __GTK_MODULES_H__ + +#include <gtk/gtksettings.h> + + +G_BEGIN_DECLS + + +/* Functions for use within GTK+ + */ +gchar * _gtk_find_module (const gchar *name, + const gchar *type); +gchar **_gtk_get_module_path (const gchar *type); + +void _gtk_modules_init (gint *argc, + gchar ***argv, + const gchar *gtk_modules_args); +void _gtk_modules_settings_changed (GtkSettings *settings, + const gchar *modules); + +typedef void (*GtkModuleInitFunc) (gint *argc, + gchar ***argv); +typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display); + + +G_END_DECLS + + +#endif /* __GTK_MODULES_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtknotebook.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtknotebook.h new file mode 100644 index 00000000..887704a2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtknotebook.h @@ -0,0 +1,291 @@ +/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_NOTEBOOK_H__ +#define __GTK_NOTEBOOK_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkcontainer.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_NOTEBOOK (gtk_notebook_get_type ()) +#define GTK_NOTEBOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_NOTEBOOK, GtkNotebook)) +#define GTK_NOTEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_NOTEBOOK, GtkNotebookClass)) +#define GTK_IS_NOTEBOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_NOTEBOOK)) +#define GTK_IS_NOTEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_NOTEBOOK)) +#define GTK_NOTEBOOK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_NOTEBOOK, GtkNotebookClass)) + + +typedef enum +{ + GTK_NOTEBOOK_TAB_FIRST, + GTK_NOTEBOOK_TAB_LAST +} GtkNotebookTab; + +typedef struct _GtkNotebook GtkNotebook; +typedef struct _GtkNotebookClass GtkNotebookClass; +typedef struct _GtkNotebookPage GtkNotebookPage; + +struct _GtkNotebook +{ + GtkContainer container; + + GtkNotebookPage *cur_page; + GList *children; + GList *first_tab; /* The first tab visible (for scrolling notebooks) */ + GList *focus_tab; + + GtkWidget *menu; + GdkWindow *event_window; + + guint32 timer; + + guint16 tab_hborder; + guint16 tab_vborder; + + guint show_tabs : 1; + guint homogeneous : 1; + guint show_border : 1; + guint tab_pos : 2; + guint scrollable : 1; + guint in_child : 3; + guint click_child : 3; + guint button : 2; + guint need_timer : 1; + guint child_has_focus : 1; + guint have_visible_child : 1; + guint focus_out : 1; /* Flag used by ::move-focus-out implementation */ + + guint has_before_previous : 1; + guint has_before_next : 1; + guint has_after_previous : 1; + guint has_after_next : 1; +}; + +struct _GtkNotebookClass +{ + GtkContainerClass parent_class; + + void (* switch_page) (GtkNotebook *notebook, + GtkNotebookPage *page, + guint page_num); + + /* Action signals for keybindings */ + gboolean (* select_page) (GtkNotebook *notebook, + gboolean move_focus); + gboolean (* focus_tab) (GtkNotebook *notebook, + GtkNotebookTab type); + gboolean (* change_current_page) (GtkNotebook *notebook, + gint offset); + void (* move_focus_out) (GtkNotebook *notebook, + GtkDirectionType direction); + gboolean (* reorder_tab) (GtkNotebook *notebook, + GtkDirectionType direction, + gboolean move_to_last); + + /* More vfuncs */ + gint (* insert_page) (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label, + GtkWidget *menu_label, + gint position); + + GtkNotebook * (* create_window) (GtkNotebook *notebook, + GtkWidget *page, + gint x, + gint y); + + void (*_gtk_reserved1) (void); +}; + +typedef GtkNotebook* (*GtkNotebookWindowCreationFunc) (GtkNotebook *source, + GtkWidget *page, + gint x, + gint y, + gpointer data); + +/*********************************************************** + * Creation, insertion, deletion * + ***********************************************************/ + +GType gtk_notebook_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_notebook_new (void); +gint gtk_notebook_append_page (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label); +gint gtk_notebook_append_page_menu (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label, + GtkWidget *menu_label); +gint gtk_notebook_prepend_page (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label); +gint gtk_notebook_prepend_page_menu (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label, + GtkWidget *menu_label); +gint gtk_notebook_insert_page (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label, + gint position); +gint gtk_notebook_insert_page_menu (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label, + GtkWidget *menu_label, + gint position); +void gtk_notebook_remove_page (GtkNotebook *notebook, + gint page_num); + +/*********************************************************** + * Tabs drag and drop * + ***********************************************************/ + +void gtk_notebook_set_window_creation_hook (GtkNotebookWindowCreationFunc func, + gpointer data, + GDestroyNotify destroy); +#ifndef GTK_DISABLE_DEPRECATED +void gtk_notebook_set_group_id (GtkNotebook *notebook, + gint group_id); +gint gtk_notebook_get_group_id (GtkNotebook *notebook); + +#endif /* GTK_DISABLE_DEPRECATED */ + +void gtk_notebook_set_group (GtkNotebook *notebook, + gpointer group); +gpointer gtk_notebook_get_group (GtkNotebook *notebook); + + + +/*********************************************************** + * query, set current NotebookPage * + ***********************************************************/ + +gint gtk_notebook_get_current_page (GtkNotebook *notebook); +GtkWidget* gtk_notebook_get_nth_page (GtkNotebook *notebook, + gint page_num); +gint gtk_notebook_get_n_pages (GtkNotebook *notebook); +gint gtk_notebook_page_num (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_set_current_page (GtkNotebook *notebook, + gint page_num); +void gtk_notebook_next_page (GtkNotebook *notebook); +void gtk_notebook_prev_page (GtkNotebook *notebook); + +/*********************************************************** + * set Notebook, NotebookTab style * + ***********************************************************/ + +void gtk_notebook_set_show_border (GtkNotebook *notebook, + gboolean show_border); +gboolean gtk_notebook_get_show_border (GtkNotebook *notebook); +void gtk_notebook_set_show_tabs (GtkNotebook *notebook, + gboolean show_tabs); +gboolean gtk_notebook_get_show_tabs (GtkNotebook *notebook); +void gtk_notebook_set_tab_pos (GtkNotebook *notebook, + GtkPositionType pos); +GtkPositionType gtk_notebook_get_tab_pos (GtkNotebook *notebook); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_notebook_set_homogeneous_tabs (GtkNotebook *notebook, + gboolean homogeneous); +void gtk_notebook_set_tab_border (GtkNotebook *notebook, + guint border_width); +void gtk_notebook_set_tab_hborder (GtkNotebook *notebook, + guint tab_hborder); +void gtk_notebook_set_tab_vborder (GtkNotebook *notebook, + guint tab_vborder); +#endif /* GTK_DISABLE_DEPRECATED */ + +void gtk_notebook_set_scrollable (GtkNotebook *notebook, + gboolean scrollable); +gboolean gtk_notebook_get_scrollable (GtkNotebook *notebook); + +/*********************************************************** + * enable/disable PopupMenu * + ***********************************************************/ + +void gtk_notebook_popup_enable (GtkNotebook *notebook); +void gtk_notebook_popup_disable (GtkNotebook *notebook); + +/*********************************************************** + * query/set NotebookPage Properties * + ***********************************************************/ + +GtkWidget * gtk_notebook_get_tab_label (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_set_tab_label (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label); +void gtk_notebook_set_tab_label_text (GtkNotebook *notebook, + GtkWidget *child, + const gchar *tab_text); +G_CONST_RETURN gchar *gtk_notebook_get_tab_label_text (GtkNotebook *notebook, + GtkWidget *child); +GtkWidget * gtk_notebook_get_menu_label (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_set_menu_label (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *menu_label); +void gtk_notebook_set_menu_label_text (GtkNotebook *notebook, + GtkWidget *child, + const gchar *menu_text); +G_CONST_RETURN gchar *gtk_notebook_get_menu_label_text (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_query_tab_label_packing (GtkNotebook *notebook, + GtkWidget *child, + gboolean *expand, + gboolean *fill, + GtkPackType *pack_type); +void gtk_notebook_set_tab_label_packing (GtkNotebook *notebook, + GtkWidget *child, + gboolean expand, + gboolean fill, + GtkPackType pack_type); +void gtk_notebook_reorder_child (GtkNotebook *notebook, + GtkWidget *child, + gint position); +gboolean gtk_notebook_get_tab_reorderable (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_set_tab_reorderable (GtkNotebook *notebook, + GtkWidget *child, + gboolean reorderable); +gboolean gtk_notebook_get_tab_detachable (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_set_tab_detachable (GtkNotebook *notebook, + GtkWidget *child, + gboolean detachable); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_notebook_current_page gtk_notebook_get_current_page +#define gtk_notebook_set_page gtk_notebook_set_current_page +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_NOTEBOOK_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkobject.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkobject.h new file mode 100644 index 00000000..22d4bf4b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkobject.h @@ -0,0 +1,226 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_OBJECT_H__ +#define __GTK_OBJECT_H__ + + +#include <gtk/gtkenums.h> +#include <gtk/gtktypeutils.h> +#include <gtk/gtkdebug.h> + +G_BEGIN_DECLS + +/* macros for casting a pointer to a GtkObject or GtkObjectClass pointer, + * and to test whether `object' and `klass' are of type GTK_TYPE_OBJECT. + * these are the standard macros for all GtkObject-derived classes. + */ +#define GTK_TYPE_OBJECT (gtk_object_get_type ()) +#define GTK_OBJECT(object) (GTK_CHECK_CAST ((object), GTK_TYPE_OBJECT, GtkObject)) +#define GTK_OBJECT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_OBJECT, GtkObjectClass)) +#define GTK_IS_OBJECT(object) (GTK_CHECK_TYPE ((object), GTK_TYPE_OBJECT)) +#define GTK_IS_OBJECT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OBJECT)) +#define GTK_OBJECT_GET_CLASS(object) (GTK_CHECK_GET_CLASS ((object), GTK_TYPE_OBJECT, GtkObjectClass)) + +/* Macros for extracting various fields from GtkObject and GtkObjectClass. + */ +#define GTK_OBJECT_TYPE(object) (G_TYPE_FROM_INSTANCE (object)) +#define GTK_OBJECT_TYPE_NAME(object) (g_type_name (GTK_OBJECT_TYPE (object))) + +/* GtkObject only uses the first 4 bits of the flags field. + * Derived objects may use the remaining bits. Though this + * is a kinda nasty break up, it does make the size of + * derived objects smaller. + */ +typedef enum +{ + GTK_IN_DESTRUCTION = 1 << 0, /* Used internally during dispose */ +#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) + GTK_FLOATING = 1 << 1, +#endif + GTK_RESERVED_1 = 1 << 2, + GTK_RESERVED_2 = 1 << 3 +} GtkObjectFlags; + +/* Macros for extracting the object_flags from GtkObject. + */ +#define GTK_OBJECT_FLAGS(obj) (GTK_OBJECT (obj)->flags) +#ifndef GTK_DISABLE_DEPRECATED +#define GTK_OBJECT_FLOATING(obj) (g_object_is_floating (obj)) +#endif + +/* Macros for setting and clearing bits in the object_flags field of GtkObject. + */ +#define GTK_OBJECT_SET_FLAGS(obj,flag) G_STMT_START{ (GTK_OBJECT_FLAGS (obj) |= (flag)); }G_STMT_END +#define GTK_OBJECT_UNSET_FLAGS(obj,flag) G_STMT_START{ (GTK_OBJECT_FLAGS (obj) &= ~(flag)); }G_STMT_END + +typedef struct _GtkObjectClass GtkObjectClass; + + +struct _GtkObject +{ + GInitiallyUnowned parent_instance; + + /* 32 bits of flags. GtkObject only uses 4 of these bits and + * GtkWidget uses the rest. This is done because structs are + * aligned on 4 or 8 byte boundaries. If a new bitfield were + * used in GtkWidget much space would be wasted. + */ + guint32 flags; +}; + +struct _GtkObjectClass +{ + GInitiallyUnownedClass parent_class; + + /* Non overridable class methods to set and get per class arguments */ + void (*set_arg) (GtkObject *object, + GtkArg *arg, + guint arg_id); + void (*get_arg) (GtkObject *object, + GtkArg *arg, + guint arg_id); + + /* Default signal handler for the ::destroy signal, which is + * invoked to request that references to the widget be dropped. + * If an object class overrides destroy() in order to perform class + * specific destruction then it must still invoke its superclass' + * implementation of the method after it is finished with its + * own cleanup. (See gtk_widget_real_destroy() for an example of + * how to do this). + */ + void (*destroy) (GtkObject *object); +}; + + + +/* Application-level methods */ + +GtkType gtk_object_get_type (void) G_GNUC_CONST; + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_object_sink (GtkObject *object); +#endif +void gtk_object_destroy (GtkObject *object); + +/****************************************************************/ + +#ifndef GTK_DISABLE_DEPRECATED + +GtkObject* gtk_object_new (GtkType type, + const gchar *first_property_name, + ...); +GtkObject* gtk_object_ref (GtkObject *object); +void gtk_object_unref (GtkObject *object); +void gtk_object_weakref (GtkObject *object, + GtkDestroyNotify notify, + gpointer data); +void gtk_object_weakunref (GtkObject *object, + GtkDestroyNotify notify, + gpointer data); + +/* Set 'data' to the "object_data" field of the object. The + * data is indexed by the "key". If there is already data + * associated with "key" then the new data will replace it. + * If 'data' is NULL then this call is equivalent to + * 'gtk_object_remove_data'. + * The gtk_object_set_data_full variant acts just the same, + * but takes an additional argument which is a function to + * be called when the data is removed. + * `gtk_object_remove_data' is equivalent to the above, + * where 'data' is NULL + * `gtk_object_get_data' gets the data associated with "key". + */ +void gtk_object_set_data (GtkObject *object, + const gchar *key, + gpointer data); +void gtk_object_set_data_full (GtkObject *object, + const gchar *key, + gpointer data, + GtkDestroyNotify destroy); +void gtk_object_remove_data (GtkObject *object, + const gchar *key); +gpointer gtk_object_get_data (GtkObject *object, + const gchar *key); +void gtk_object_remove_no_notify (GtkObject *object, + const gchar *key); + +/* Set/get the "user_data" object data field of "object". It should + * be noted that these functions are no different than calling + * `gtk_object_set_data'/`gtk_object_get_data' with a key of "user_data". + * They are merely provided as a convenience. + */ +void gtk_object_set_user_data (GtkObject *object, + gpointer data); +gpointer gtk_object_get_user_data (GtkObject *object); + + +/* Object-level methods */ + +/* Object data method variants that operate on key ids. */ +void gtk_object_set_data_by_id (GtkObject *object, + GQuark data_id, + gpointer data); +void gtk_object_set_data_by_id_full (GtkObject *object, + GQuark data_id, + gpointer data, + GtkDestroyNotify destroy); +gpointer gtk_object_get_data_by_id (GtkObject *object, + GQuark data_id); +void gtk_object_remove_data_by_id (GtkObject *object, + GQuark data_id); +void gtk_object_remove_no_notify_by_id (GtkObject *object, + GQuark key_id); +#define gtk_object_data_try_key g_quark_try_string +#define gtk_object_data_force_id g_quark_from_string + +/* GtkArg flag bits for gtk_object_add_arg_type + */ +typedef enum +{ + GTK_ARG_READABLE = G_PARAM_READABLE, + GTK_ARG_WRITABLE = G_PARAM_WRITABLE, + GTK_ARG_CONSTRUCT = G_PARAM_CONSTRUCT, + GTK_ARG_CONSTRUCT_ONLY = G_PARAM_CONSTRUCT_ONLY, + GTK_ARG_CHILD_ARG = 1 << 4 +} GtkArgFlags; +#define GTK_ARG_READWRITE (GTK_ARG_READABLE | GTK_ARG_WRITABLE) +void gtk_object_get (GtkObject *object, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_object_set (GtkObject *object, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_object_add_arg_type (const gchar *arg_name, + GtkType arg_type, + guint arg_flags, + guint arg_id); + +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_OBJECT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkoldeditable.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkoldeditable.h new file mode 100644 index 00000000..da6d90c3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkoldeditable.h @@ -0,0 +1,128 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_OLD_EDITABLE_H__ +#define __GTK_OLD_EDITABLE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkeditable.h> +#include <gtk/gtkwidget.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_OLD_EDITABLE (gtk_old_editable_get_type ()) +#define GTK_OLD_EDITABLE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_OLD_EDITABLE, GtkOldEditable)) +#define GTK_OLD_EDITABLE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_OLD_EDITABLE, GtkOldEditableClass)) +#define GTK_IS_OLD_EDITABLE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_OLD_EDITABLE)) +#define GTK_IS_OLD_EDITABLE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OLD_EDITABLE)) +#define GTK_OLD_EDITABLE_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_OLD_EDITABLE, GtkOldEditableClass)) + + +typedef struct _GtkOldEditable GtkOldEditable; +typedef struct _GtkOldEditableClass GtkOldEditableClass; + +typedef void (*GtkTextFunction) (GtkOldEditable *editable, guint32 time_); + +struct _GtkOldEditable +{ + GtkWidget widget; + + /*< public >*/ + guint current_pos; + + guint selection_start_pos; + guint selection_end_pos; + guint has_selection : 1; + + /*< private >*/ + guint editable : 1; + guint visible : 1; + + gchar *clipboard_text; +}; + +struct _GtkOldEditableClass +{ + GtkWidgetClass parent_class; + + /* Bindings actions */ + void (* activate) (GtkOldEditable *editable); + void (* set_editable) (GtkOldEditable *editable, + gboolean is_editable); + void (* move_cursor) (GtkOldEditable *editable, + gint x, + gint y); + void (* move_word) (GtkOldEditable *editable, + gint n); + void (* move_page) (GtkOldEditable *editable, + gint x, + gint y); + void (* move_to_row) (GtkOldEditable *editable, + gint row); + void (* move_to_column) (GtkOldEditable *editable, + gint row); + void (* kill_char) (GtkOldEditable *editable, + gint direction); + void (* kill_word) (GtkOldEditable *editable, + gint direction); + void (* kill_line) (GtkOldEditable *editable, + gint direction); + void (* cut_clipboard) (GtkOldEditable *editable); + void (* copy_clipboard) (GtkOldEditable *editable); + void (* paste_clipboard) (GtkOldEditable *editable); + + /* Virtual functions. get_chars is in paricular not a signal because + * it returns malloced memory. The others are not signals because + * they would not be particularly useful as such. (All changes to + * selection and position do not go through these functions) + */ + void (* update_text) (GtkOldEditable *editable, + gint start_pos, + gint end_pos); + gchar* (* get_chars) (GtkOldEditable *editable, + gint start_pos, + gint end_pos); + void (* set_selection)(GtkOldEditable *editable, + gint start_pos, + gint end_pos); + void (* set_position) (GtkOldEditable *editable, + gint position); +}; + +GtkType gtk_old_editable_get_type (void) G_GNUC_CONST; +void gtk_old_editable_claim_selection (GtkOldEditable *old_editable, + gboolean claim, + guint32 time_); +void gtk_old_editable_changed (GtkOldEditable *old_editable); + +G_END_DECLS + +#endif /* __GTK_OLD_EDITABLE_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkoptionmenu.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkoptionmenu.h new file mode 100644 index 00000000..32f6de9f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkoptionmenu.h @@ -0,0 +1,90 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_OPTION_MENU_H__ +#define __GTK_OPTION_MENU_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkbutton.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_OPTION_MENU (gtk_option_menu_get_type ()) +#define GTK_OPTION_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_OPTION_MENU, GtkOptionMenu)) +#define GTK_OPTION_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_OPTION_MENU, GtkOptionMenuClass)) +#define GTK_IS_OPTION_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_OPTION_MENU)) +#define GTK_IS_OPTION_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OPTION_MENU)) +#define GTK_OPTION_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_OPTION_MENU, GtkOptionMenuClass)) + + +typedef struct _GtkOptionMenu GtkOptionMenu; +typedef struct _GtkOptionMenuClass GtkOptionMenuClass; + +struct _GtkOptionMenu +{ + GtkButton button; + + GtkWidget *menu; + GtkWidget *menu_item; + + guint16 width; + guint16 height; +}; + +struct _GtkOptionMenuClass +{ + GtkButtonClass parent_class; + + void (*changed) (GtkOptionMenu *option_menu); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_option_menu_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_option_menu_new (void); +GtkWidget* gtk_option_menu_get_menu (GtkOptionMenu *option_menu); +void gtk_option_menu_set_menu (GtkOptionMenu *option_menu, + GtkWidget *menu); +void gtk_option_menu_remove_menu (GtkOptionMenu *option_menu); +gint gtk_option_menu_get_history (GtkOptionMenu *option_menu); +void gtk_option_menu_set_history (GtkOptionMenu *option_menu, + guint index_); + + +G_END_DECLS + +#endif /* __GTK_OPTION_MENU_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpagesetup.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpagesetup.h new file mode 100644 index 00000000..6de2ef5f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpagesetup.h @@ -0,0 +1,97 @@ +/* GTK - The GIMP Toolkit + * gtkpagesetup.h: Page Setup + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_PAGE_SETUP_H__ +#define __GTK_PAGE_SETUP_H__ + +#include <glib-object.h> +#include "gtkenums.h" +#include "gtkpapersize.h" + +G_BEGIN_DECLS + +typedef struct _GtkPageSetup GtkPageSetup; + +#define GTK_TYPE_PAGE_SETUP (gtk_page_setup_get_type ()) +#define GTK_PAGE_SETUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PAGE_SETUP, GtkPageSetup)) +#define GTK_IS_PAGE_SETUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PAGE_SETUP)) + +GType gtk_page_setup_get_type (void) G_GNUC_CONST; +GtkPageSetup * gtk_page_setup_new (void); +GtkPageSetup * gtk_page_setup_copy (GtkPageSetup *other); +GtkPageOrientation gtk_page_setup_get_orientation (GtkPageSetup *setup); +void gtk_page_setup_set_orientation (GtkPageSetup *setup, + GtkPageOrientation orientation); +GtkPaperSize * gtk_page_setup_get_paper_size (GtkPageSetup *setup); +void gtk_page_setup_set_paper_size (GtkPageSetup *setup, + GtkPaperSize *size); +gdouble gtk_page_setup_get_top_margin (GtkPageSetup *setup, + GtkUnit unit); +void gtk_page_setup_set_top_margin (GtkPageSetup *setup, + gdouble margin, + GtkUnit unit); +gdouble gtk_page_setup_get_bottom_margin (GtkPageSetup *setup, + GtkUnit unit); +void gtk_page_setup_set_bottom_margin (GtkPageSetup *setup, + gdouble margin, + GtkUnit unit); +gdouble gtk_page_setup_get_left_margin (GtkPageSetup *setup, + GtkUnit unit); +void gtk_page_setup_set_left_margin (GtkPageSetup *setup, + gdouble margin, + GtkUnit unit); +gdouble gtk_page_setup_get_right_margin (GtkPageSetup *setup, + GtkUnit unit); +void gtk_page_setup_set_right_margin (GtkPageSetup *setup, + gdouble margin, + GtkUnit unit); + +void gtk_page_setup_set_paper_size_and_default_margins (GtkPageSetup *setup, + GtkPaperSize *size); + +/* These take orientation, but not margins into consideration */ +gdouble gtk_page_setup_get_paper_width (GtkPageSetup *setup, + GtkUnit unit); +gdouble gtk_page_setup_get_paper_height (GtkPageSetup *setup, + GtkUnit unit); + + +/* These take orientation, and margins into consideration */ +gdouble gtk_page_setup_get_page_width (GtkPageSetup *setup, + GtkUnit unit); +gdouble gtk_page_setup_get_page_height (GtkPageSetup *setup, + GtkUnit unit); + +/* Saving and restoring page setup */ +GtkPageSetup *gtk_page_setup_new_from_file (const gchar *file_name, + GError **error); +gboolean gtk_page_setup_to_file (GtkPageSetup *setup, + const char *file_name, + GError **error); +GtkPageSetup *gtk_page_setup_new_from_key_file (GKeyFile *key_file, + const gchar *group_name, + GError **error); +void gtk_page_setup_to_key_file (GtkPageSetup *setup, + GKeyFile *key_file, + const gchar *group_name); + +G_END_DECLS + +#endif /* __GTK_PAGE_SETUP_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpaned.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpaned.h new file mode 100644 index 00000000..003316ae --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpaned.h @@ -0,0 +1,140 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_PANED_H__ +#define __GTK_PANED_H__ + +#include <gtk/gtkcontainer.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_PANED (gtk_paned_get_type ()) +#define GTK_PANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PANED, GtkPaned)) +#define GTK_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PANED, GtkPanedClass)) +#define GTK_IS_PANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PANED)) +#define GTK_IS_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PANED)) +#define GTK_PANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PANED, GtkPanedClass)) + + +typedef struct _GtkPaned GtkPaned; +typedef struct _GtkPanedClass GtkPanedClass; +typedef struct _GtkPanedPrivate GtkPanedPrivate; + +struct _GtkPaned +{ + GtkContainer container; + + GtkWidget *child1; + GtkWidget *child2; + + GdkWindow *handle; + GdkGC *xor_gc; + GdkCursorType cursor_type; + + /*< private >*/ + GdkRectangle handle_pos; + + gint child1_size; + gint last_allocation; + gint min_position; + gint max_position; + + guint position_set : 1; + guint in_drag : 1; + guint child1_shrink : 1; + guint child1_resize : 1; + guint child2_shrink : 1; + guint child2_resize : 1; + guint orientation : 1; + guint in_recursion : 1; + guint handle_prelit : 1; + + GtkWidget *last_child1_focus; + GtkWidget *last_child2_focus; + GtkPanedPrivate *priv; + + gint drag_pos; + gint original_position; +}; + +struct _GtkPanedClass +{ + GtkContainerClass parent_class; + + gboolean (* cycle_child_focus) (GtkPaned *paned, + gboolean reverse); + gboolean (* toggle_handle_focus) (GtkPaned *paned); + gboolean (* move_handle) (GtkPaned *paned, + GtkScrollType scroll); + gboolean (* cycle_handle_focus) (GtkPaned *paned, + gboolean reverse); + gboolean (* accept_position) (GtkPaned *paned); + gboolean (* cancel_position) (GtkPaned *paned); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_paned_get_type (void) G_GNUC_CONST; +void gtk_paned_add1 (GtkPaned *paned, + GtkWidget *child); +void gtk_paned_add2 (GtkPaned *paned, + GtkWidget *child); +void gtk_paned_pack1 (GtkPaned *paned, + GtkWidget *child, + gboolean resize, + gboolean shrink); +void gtk_paned_pack2 (GtkPaned *paned, + GtkWidget *child, + gboolean resize, + gboolean shrink); +gint gtk_paned_get_position (GtkPaned *paned); +void gtk_paned_set_position (GtkPaned *paned, + gint position); + +GtkWidget *gtk_paned_get_child1 (GtkPaned *paned); +GtkWidget *gtk_paned_get_child2 (GtkPaned *paned); + +/* Internal function */ +#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) +void gtk_paned_compute_position (GtkPaned *paned, + gint allocation, + gint child1_req, + gint child2_req); +#endif /* !GTK_DISABLE_DEPRECATED || GTK_COMPILATION */ +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_paned_gutter_size(p,s) (void) 0 +#define gtk_paned_set_gutter_size(p,s) (void) 0 +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_PANED_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpapersize.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpapersize.h new file mode 100644 index 00000000..65aed126 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpapersize.h @@ -0,0 +1,96 @@ +/* GTK - The GIMP Toolkit + * gtkpapersize.h: Paper Size + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_PAPER_SIZE_H__ +#define __GTK_PAPER_SIZE_H__ + +#include <glib-object.h> +#include "gtkenums.h" + +G_BEGIN_DECLS + +typedef struct _GtkPaperSize GtkPaperSize; + +#define GTK_TYPE_PAPER_SIZE (gtk_paper_size_get_type ()) + +/* Common names, from PWG 5101.1-2002 PWG: Standard for Media Standardized Names */ +#define GTK_PAPER_NAME_A3 "iso_a3" +#define GTK_PAPER_NAME_A4 "iso_a4" +#define GTK_PAPER_NAME_A5 "iso_a5" +#define GTK_PAPER_NAME_B5 "iso_b5" +#define GTK_PAPER_NAME_LETTER "na_letter" +#define GTK_PAPER_NAME_EXECUTIVE "na_executive" +#define GTK_PAPER_NAME_LEGAL "na_legal" + +GType gtk_paper_size_get_type (void) G_GNUC_CONST; + +GtkPaperSize *gtk_paper_size_new (const gchar *name); +GtkPaperSize *gtk_paper_size_new_from_ppd (const gchar *ppd_name, + const gchar *ppd_display_name, + gdouble width, + gdouble height); +GtkPaperSize *gtk_paper_size_new_custom (const gchar *name, + const gchar *display_name, + gdouble width, + gdouble height, + GtkUnit unit); +GtkPaperSize *gtk_paper_size_copy (GtkPaperSize *other); +void gtk_paper_size_free (GtkPaperSize *size); +gboolean gtk_paper_size_is_equal (GtkPaperSize *size1, + GtkPaperSize *size2); + +GList *gtk_paper_size_get_paper_sizes (gboolean include_custom); + +/* The width is always the shortest side, measure in mm */ +G_CONST_RETURN gchar *gtk_paper_size_get_name (GtkPaperSize *size); +G_CONST_RETURN gchar *gtk_paper_size_get_display_name (GtkPaperSize *size); +G_CONST_RETURN gchar *gtk_paper_size_get_ppd_name (GtkPaperSize *size); + +gdouble gtk_paper_size_get_width (GtkPaperSize *size, GtkUnit unit); +gdouble gtk_paper_size_get_height (GtkPaperSize *size, GtkUnit unit); +gboolean gtk_paper_size_is_custom (GtkPaperSize *size); + +/* Only for custom sizes: */ +void gtk_paper_size_set_size (GtkPaperSize *size, + gdouble width, + gdouble height, + GtkUnit unit); + +gdouble gtk_paper_size_get_default_top_margin (GtkPaperSize *size, + GtkUnit unit); +gdouble gtk_paper_size_get_default_bottom_margin (GtkPaperSize *size, + GtkUnit unit); +gdouble gtk_paper_size_get_default_left_margin (GtkPaperSize *size, + GtkUnit unit); +gdouble gtk_paper_size_get_default_right_margin (GtkPaperSize *size, + GtkUnit unit); + +G_CONST_RETURN gchar *gtk_paper_size_get_default (void); + +GtkPaperSize *gtk_paper_size_new_from_key_file (GKeyFile *key_file, + const gchar *group_name, + GError **error); +void gtk_paper_size_to_key_file (GtkPaperSize *size, + GKeyFile *key_file, + const gchar *group_name); + +G_END_DECLS + +#endif /* __GTK_PAPER_SIZE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpixmap.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpixmap.h new file mode 100644 index 00000000..1bb4f854 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpixmap.h @@ -0,0 +1,85 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_PIXMAP_H__ +#define __GTK_PIXMAP_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkmisc.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_PIXMAP (gtk_pixmap_get_type ()) +#define GTK_PIXMAP(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PIXMAP, GtkPixmap)) +#define GTK_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PIXMAP, GtkPixmapClass)) +#define GTK_IS_PIXMAP(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PIXMAP)) +#define GTK_IS_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PIXMAP)) +#define GTK_PIXMAP_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_PIXMAP, GtkPixmapClass)) + + +typedef struct _GtkPixmap GtkPixmap; +typedef struct _GtkPixmapClass GtkPixmapClass; + +struct _GtkPixmap +{ + GtkMisc misc; + + GdkPixmap *pixmap; + GdkBitmap *mask; + + GdkPixmap *pixmap_insensitive; + guint build_insensitive : 1; +}; + +struct _GtkPixmapClass +{ + GtkMiscClass parent_class; +}; + + +GtkType gtk_pixmap_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_pixmap_new (GdkPixmap *pixmap, + GdkBitmap *mask); +void gtk_pixmap_set (GtkPixmap *pixmap, + GdkPixmap *val, + GdkBitmap *mask); +void gtk_pixmap_get (GtkPixmap *pixmap, + GdkPixmap **val, + GdkBitmap **mask); + +void gtk_pixmap_set_build_insensitive (GtkPixmap *pixmap, + gboolean build); + + +G_END_DECLS + +#endif /* __GTK_PIXMAP_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkplug.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkplug.h new file mode 100644 index 00000000..87fe6f92 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkplug.h @@ -0,0 +1,98 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_PLUG_H__ +#define __GTK_PLUG_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtksocket.h> +#include <gtk/gtkwindow.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_PLUG (gtk_plug_get_type ()) +#define GTK_PLUG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PLUG, GtkPlug)) +#define GTK_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PLUG, GtkPlugClass)) +#define GTK_IS_PLUG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PLUG)) +#define GTK_IS_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PLUG)) +#define GTK_PLUG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PLUG, GtkPlugClass)) + + +typedef struct _GtkPlug GtkPlug; +typedef struct _GtkPlugClass GtkPlugClass; + + +struct _GtkPlug +{ + GtkWindow window; + + GdkWindow *socket_window; + GtkWidget *modality_window; + GtkWindowGroup *modality_group; + GHashTable *grabbed_keys; + + guint same_app : 1; +}; + +struct _GtkPlugClass +{ + GtkWindowClass parent_class; + + void (*embedded) (GtkPlug *plug); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_plug_get_type (void) G_GNUC_CONST; + +#ifndef GDK_MULTIHEAD_SAFE +void gtk_plug_construct (GtkPlug *plug, + GdkNativeWindow socket_id); +GtkWidget* gtk_plug_new (GdkNativeWindow socket_id); +#endif + +void gtk_plug_construct_for_display (GtkPlug *plug, + GdkDisplay *display, + GdkNativeWindow socket_id); +GtkWidget* gtk_plug_new_for_display (GdkDisplay *display, + GdkNativeWindow socket_id); + +GdkNativeWindow gtk_plug_get_id (GtkPlug *plug); + +void _gtk_plug_add_to_socket (GtkPlug *plug, + GtkSocket *socket_); +void _gtk_plug_remove_from_socket (GtkPlug *plug, + GtkSocket *socket_); + +G_END_DECLS + +#endif /* __GTK_PLUG_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpreview.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpreview.h new file mode 100644 index 00000000..515e6d8a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkpreview.h @@ -0,0 +1,140 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_PREVIEW_H__ +#define __GTK_PREVIEW_H__ + + +#include <gtk/gtkwidget.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_PREVIEW (gtk_preview_get_type ()) +#define GTK_PREVIEW(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PREVIEW, GtkPreview)) +#define GTK_PREVIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PREVIEW, GtkPreviewClass)) +#define GTK_IS_PREVIEW(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PREVIEW)) +#define GTK_IS_PREVIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PREVIEW)) +#define GTK_PREVIEW_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_PREVIEW, GtkPreviewClass)) + + +typedef struct _GtkPreview GtkPreview; +typedef struct _GtkPreviewInfo GtkPreviewInfo; +typedef union _GtkDitherInfo GtkDitherInfo; +typedef struct _GtkPreviewClass GtkPreviewClass; + +struct _GtkPreview +{ + GtkWidget widget; + + guchar *buffer; + guint16 buffer_width; + guint16 buffer_height; + + guint16 bpp; + guint16 rowstride; + + GdkRgbDither dither; + + guint type : 1; + guint expand : 1; +}; + +struct _GtkPreviewInfo +{ + guchar *lookup; + + gdouble gamma; +}; + +union _GtkDitherInfo +{ + gushort s[2]; + guchar c[4]; +}; + +struct _GtkPreviewClass +{ + GtkWidgetClass parent_class; + + GtkPreviewInfo info; + +}; + + +GtkType gtk_preview_get_type (void) G_GNUC_CONST; +void gtk_preview_uninit (void); +GtkWidget* gtk_preview_new (GtkPreviewType type); +void gtk_preview_size (GtkPreview *preview, + gint width, + gint height); +void gtk_preview_put (GtkPreview *preview, + GdkWindow *window, + GdkGC *gc, + gint srcx, + gint srcy, + gint destx, + gint desty, + gint width, + gint height); +void gtk_preview_draw_row (GtkPreview *preview, + guchar *data, + gint x, + gint y, + gint w); +void gtk_preview_set_expand (GtkPreview *preview, + gboolean expand); + +void gtk_preview_set_gamma (double gamma_); +void gtk_preview_set_color_cube (guint nred_shades, + guint ngreen_shades, + guint nblue_shades, + guint ngray_shades); +void gtk_preview_set_install_cmap (gint install_cmap); +void gtk_preview_set_reserved (gint nreserved); +void gtk_preview_set_dither (GtkPreview *preview, + GdkRgbDither dither); +#ifndef GTK_DISABLE_DEPRECATED +GdkVisual* gtk_preview_get_visual (void); +GdkColormap* gtk_preview_get_cmap (void); +#endif +GtkPreviewInfo* gtk_preview_get_info (void); + +/* This function reinitializes the preview colormap and visual from + * the current gamma/color_cube/install_cmap settings. It must only + * be called if there are no previews or users's of the preview + * colormap in existence. + */ +void gtk_preview_reset (void); + + +G_END_DECLS + +#endif /* __GTK_PREVIEW_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintcontext.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintcontext.h new file mode 100644 index 00000000..936cae4f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintcontext.h @@ -0,0 +1,62 @@ +/* GTK - The GIMP Toolkit + * gtkprintcontext.h: Print Context + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_PRINT_CONTEXT_H__ +#define __GTK_PRINT_CONTEXT_H__ + +#include <glib-object.h> +#include <pango/pango-layout.h> +#include "gtkenums.h" +#include "gtkpagesetup.h" + +G_BEGIN_DECLS + +typedef struct _GtkPrintContext GtkPrintContext; + +#define GTK_TYPE_PRINT_CONTEXT (gtk_print_context_get_type ()) +#define GTK_PRINT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_CONTEXT, GtkPrintContext)) +#define GTK_IS_PRINT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_CONTEXT)) + +GType gtk_print_context_get_type (void) G_GNUC_CONST; + + +/* Rendering */ +cairo_t *gtk_print_context_get_cairo_context (GtkPrintContext *context); + +GtkPageSetup *gtk_print_context_get_page_setup (GtkPrintContext *context); +gdouble gtk_print_context_get_width (GtkPrintContext *context); +gdouble gtk_print_context_get_height (GtkPrintContext *context); +gdouble gtk_print_context_get_dpi_x (GtkPrintContext *context); +gdouble gtk_print_context_get_dpi_y (GtkPrintContext *context); + +/* Fonts */ +PangoFontMap *gtk_print_context_get_pango_fontmap (GtkPrintContext *context); +PangoContext *gtk_print_context_create_pango_context (GtkPrintContext *context); +PangoLayout *gtk_print_context_create_pango_layout (GtkPrintContext *context); + +/* Needed for preview implementations */ +void gtk_print_context_set_cairo_context (GtkPrintContext *context, + cairo_t *cr, + double dpi_x, + double dpi_y); + +G_END_DECLS + +#endif /* __GTK_PRINT_CONTEXT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintoperation.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintoperation.h new file mode 100644 index 00000000..d0d3a386 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintoperation.h @@ -0,0 +1,188 @@ +/* GTK - The GIMP Toolkit + * gtkprintoperation.h: Print Operation + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_PRINT_OPERATION_H__ +#define __GTK_PRINT_OPERATION_H__ + +#include <glib-object.h> +#include <cairo.h> +#include "gtkmain.h" +#include "gtkenums.h" +#include "gtkwindow.h" +#include "gtkpagesetup.h" +#include "gtkprintsettings.h" +#include "gtkprintcontext.h" +#include "gtkprintoperationpreview.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_PRINT_OPERATION (gtk_print_operation_get_type ()) +#define GTK_PRINT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_OPERATION, GtkPrintOperation)) +#define GTK_PRINT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINT_OPERATION, GtkPrintOperationClass)) +#define GTK_IS_PRINT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_OPERATION)) +#define GTK_IS_PRINT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINT_OPERATION)) +#define GTK_PRINT_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINT_OPERATION, GtkPrintOperationClass)) + +typedef struct _GtkPrintOperationClass GtkPrintOperationClass; +typedef struct _GtkPrintOperationPrivate GtkPrintOperationPrivate; +typedef struct _GtkPrintOperation GtkPrintOperation; + +typedef enum { + GTK_PRINT_STATUS_INITIAL, + GTK_PRINT_STATUS_PREPARING, + GTK_PRINT_STATUS_GENERATING_DATA, + GTK_PRINT_STATUS_SENDING_DATA, + GTK_PRINT_STATUS_PENDING, + GTK_PRINT_STATUS_PENDING_ISSUE, + GTK_PRINT_STATUS_PRINTING, + GTK_PRINT_STATUS_FINISHED, + GTK_PRINT_STATUS_FINISHED_ABORTED +} GtkPrintStatus; + +typedef enum { + GTK_PRINT_OPERATION_RESULT_ERROR, + GTK_PRINT_OPERATION_RESULT_APPLY, + GTK_PRINT_OPERATION_RESULT_CANCEL, + GTK_PRINT_OPERATION_RESULT_IN_PROGRESS +} GtkPrintOperationResult; + +typedef enum { + GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, + GTK_PRINT_OPERATION_ACTION_PRINT, + GTK_PRINT_OPERATION_ACTION_PREVIEW, + GTK_PRINT_OPERATION_ACTION_EXPORT +} GtkPrintOperationAction; + + +struct _GtkPrintOperation +{ + GObject parent_instance; + + GtkPrintOperationPrivate *priv; +}; + +struct _GtkPrintOperationClass +{ + GObjectClass parent_class; + + void (*done) (GtkPrintOperation *operation, + GtkPrintOperationResult result); + void (*begin_print) (GtkPrintOperation *operation, + GtkPrintContext *context); + gboolean (*paginate) (GtkPrintOperation *operation, + GtkPrintContext *context); + void (*request_page_setup) (GtkPrintOperation *operation, + GtkPrintContext *context, + gint page_nr, + GtkPageSetup *setup); + void (*draw_page) (GtkPrintOperation *operation, + GtkPrintContext *context, + gint page_nr); + void (*end_print) (GtkPrintOperation *operation, + GtkPrintContext *context); + void (*status_changed) (GtkPrintOperation *operation); + + GtkWidget *(*create_custom_widget) (GtkPrintOperation *operation); + void (*custom_widget_apply) (GtkPrintOperation *operation, + GtkWidget *widget); + + + gboolean (*preview) (GtkPrintOperation *operation, + GtkPrintOperationPreview *preview, + GtkPrintContext *context, + GtkWindow *parent); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); +}; + +#define GTK_PRINT_ERROR gtk_print_error_quark () + +typedef enum +{ + GTK_PRINT_ERROR_GENERAL, + GTK_PRINT_ERROR_INTERNAL_ERROR, + GTK_PRINT_ERROR_NOMEM, + GTK_PRINT_ERROR_INVALID_FILE +} GtkPrintError; + +GQuark gtk_print_error_quark (void); + +GType gtk_print_operation_get_type (void) G_GNUC_CONST; +GtkPrintOperation * gtk_print_operation_new (void); +void gtk_print_operation_set_default_page_setup (GtkPrintOperation *op, + GtkPageSetup *default_page_setup); +GtkPageSetup * gtk_print_operation_get_default_page_setup (GtkPrintOperation *op); +void gtk_print_operation_set_print_settings (GtkPrintOperation *op, + GtkPrintSettings *print_settings); +GtkPrintSettings * gtk_print_operation_get_print_settings (GtkPrintOperation *op); +void gtk_print_operation_set_job_name (GtkPrintOperation *op, + const gchar *job_name); +void gtk_print_operation_set_n_pages (GtkPrintOperation *op, + gint n_pages); +void gtk_print_operation_set_current_page (GtkPrintOperation *op, + gint current_page); +void gtk_print_operation_set_use_full_page (GtkPrintOperation *op, + gboolean full_page); +void gtk_print_operation_set_unit (GtkPrintOperation *op, + GtkUnit unit); +void gtk_print_operation_set_export_filename (GtkPrintOperation *op, + const gchar *filename); +void gtk_print_operation_set_track_print_status (GtkPrintOperation *op, + gboolean track_status); +void gtk_print_operation_set_show_progress (GtkPrintOperation *op, + gboolean show_progress); +void gtk_print_operation_set_allow_async (GtkPrintOperation *op, + gboolean allow_async); +void gtk_print_operation_set_custom_tab_label (GtkPrintOperation *op, + const gchar *label); +GtkPrintOperationResult gtk_print_operation_run (GtkPrintOperation *op, + GtkPrintOperationAction action, + GtkWindow *parent, + GError **error); +void gtk_print_operation_get_error (GtkPrintOperation *op, + GError **error); +GtkPrintStatus gtk_print_operation_get_status (GtkPrintOperation *op); +G_CONST_RETURN gchar * gtk_print_operation_get_status_string (GtkPrintOperation *op); +gboolean gtk_print_operation_is_finished (GtkPrintOperation *op); +void gtk_print_operation_cancel (GtkPrintOperation *op); + +GtkPageSetup *gtk_print_run_page_setup_dialog (GtkWindow *parent, + GtkPageSetup *page_setup, + GtkPrintSettings *settings); + +typedef void (* GtkPageSetupDoneFunc) (GtkPageSetup *page_setup, + gpointer data); + +void gtk_print_run_page_setup_dialog_async (GtkWindow *parent, + GtkPageSetup *page_setup, + GtkPrintSettings *settings, + GtkPageSetupDoneFunc done_cb, + gpointer data); + +G_END_DECLS + +#endif /* __GTK_PRINT_OPERATION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintoperationpreview.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintoperationpreview.h new file mode 100644 index 00000000..d2922bf9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintoperationpreview.h @@ -0,0 +1,80 @@ +/* GTK - The GIMP Toolkit + * gtkprintoperationpreview.h: Abstract print preview interface + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_PRINT_OPERATION_PREVIEW_H__ +#define __GTK_PRINT_OPERATION_PREVIEW_H__ + +#include <glib-object.h> +#include <cairo.h> + +#include "gtkprintcontext.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_PRINT_OPERATION_PREVIEW (gtk_print_operation_preview_get_type ()) +#define GTK_PRINT_OPERATION_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_OPERATION_PREVIEW, GtkPrintOperationPreview)) +#define GTK_IS_PRINT_OPERATION_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_OPERATION_PREVIEW)) +#define GTK_PRINT_OPERATION_PREVIEW_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_PRINT_OPERATION_PREVIEW, GtkPrintOperationPreviewIface)) + +typedef struct _GtkPrintOperationPreview GtkPrintOperationPreview; /*dummy typedef */ +typedef struct _GtkPrintOperationPreviewIface GtkPrintOperationPreviewIface; + + +struct _GtkPrintOperationPreviewIface +{ + GTypeInterface g_iface; + + /* signals */ + void (*ready) (GtkPrintOperationPreview *preview, + GtkPrintContext *context); + void (*got_page_size) (GtkPrintOperationPreview *preview, + GtkPrintContext *context, + GtkPageSetup *page_setup); + + + /* methods */ + void (*render_page) (GtkPrintOperationPreview *preview, + gint page_nr); + gboolean (*is_selected) (GtkPrintOperationPreview *preview, + gint page_nr); + void (*end_preview) (GtkPrintOperationPreview *preview); + + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); +}; + +GType gtk_print_operation_preview_get_type (void) G_GNUC_CONST; + +void gtk_print_operation_preview_render_page (GtkPrintOperationPreview *preview, + gint page_nr); +void gtk_print_operation_preview_end_preview (GtkPrintOperationPreview *preview); +gboolean gtk_print_operation_preview_is_selected (GtkPrintOperationPreview *preview, + gint page_nr); + +G_END_DECLS + +#endif /* __GTK_PRINT_OPERATION_PREVIEW_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintsettings.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintsettings.h new file mode 100644 index 00000000..0e731187 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprintsettings.h @@ -0,0 +1,208 @@ +/* GTK - The GIMP Toolkit + * gtkprintsettings.h: Print Settings + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GTK_PRINT_SETTINGS_H__ +#define __GTK_PRINT_SETTINGS_H__ + +#include <glib-object.h> +#include "gtkpapersize.h" + +G_BEGIN_DECLS + +typedef struct _GtkPrintSettings GtkPrintSettings; + +#define GTK_TYPE_PRINT_SETTINGS (gtk_print_settings_get_type ()) +#define GTK_PRINT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_SETTINGS, GtkPrintSettings)) +#define GTK_IS_PRINT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_SETTINGS)) + +typedef void (*GtkPrintSettingsFunc) (const gchar *key, + const gchar *value, + gpointer user_data); + +typedef struct _GtkPageRange GtkPageRange; +struct _GtkPageRange +{ + gint start; + gint end; +}; + +GType gtk_print_settings_get_type (void) G_GNUC_CONST; +GtkPrintSettings *gtk_print_settings_new (void); + +GtkPrintSettings *gtk_print_settings_copy (GtkPrintSettings *other); + +GtkPrintSettings *gtk_print_settings_new_from_file (const gchar *file_name, + GError **error); +gboolean gtk_print_settings_to_file (GtkPrintSettings *settings, + const gchar *file_name, + GError **error); +GtkPrintSettings *gtk_print_settings_new_from_key_file (GKeyFile *key_file, + const gchar *group_name, + GError **error); +void gtk_print_settings_to_key_file (GtkPrintSettings *settings, + GKeyFile *key_file, + const gchar *group_name); +gboolean gtk_print_settings_has_key (GtkPrintSettings *settings, + const gchar *key); +G_CONST_RETURN gchar *gtk_print_settings_get (GtkPrintSettings *settings, + const gchar *key); +void gtk_print_settings_set (GtkPrintSettings *settings, + const gchar *key, + const gchar *value); +void gtk_print_settings_unset (GtkPrintSettings *settings, + const gchar *key); +void gtk_print_settings_foreach (GtkPrintSettings *settings, + GtkPrintSettingsFunc func, + gpointer user_data); +gboolean gtk_print_settings_get_bool (GtkPrintSettings *settings, + const gchar *key); +void gtk_print_settings_set_bool (GtkPrintSettings *settings, + const gchar *key, + gboolean value); +gdouble gtk_print_settings_get_double (GtkPrintSettings *settings, + const gchar *key); +gdouble gtk_print_settings_get_double_with_default (GtkPrintSettings *settings, + const gchar *key, + gdouble def); +void gtk_print_settings_set_double (GtkPrintSettings *settings, + const gchar *key, + gdouble value); +gdouble gtk_print_settings_get_length (GtkPrintSettings *settings, + const gchar *key, + GtkUnit unit); +void gtk_print_settings_set_length (GtkPrintSettings *settings, + const gchar *key, + gdouble value, + GtkUnit unit); +gint gtk_print_settings_get_int (GtkPrintSettings *settings, + const gchar *key); +gint gtk_print_settings_get_int_with_default (GtkPrintSettings *settings, + const gchar *key, + gint def); +void gtk_print_settings_set_int (GtkPrintSettings *settings, + const gchar *key, + gint value); + +#define GTK_PRINT_SETTINGS_PRINTER "printer" +#define GTK_PRINT_SETTINGS_ORIENTATION "orientation" +#define GTK_PRINT_SETTINGS_PAPER_FORMAT "paper-format" +#define GTK_PRINT_SETTINGS_PAPER_WIDTH "paper-width" +#define GTK_PRINT_SETTINGS_PAPER_HEIGHT "paper-height" +#define GTK_PRINT_SETTINGS_N_COPIES "n-copies" +#define GTK_PRINT_SETTINGS_DEFAULT_SOURCE "default-source" +#define GTK_PRINT_SETTINGS_QUALITY "quality" +#define GTK_PRINT_SETTINGS_RESOLUTION "resolution" +#define GTK_PRINT_SETTINGS_USE_COLOR "use-color" +#define GTK_PRINT_SETTINGS_DUPLEX "duplex" +#define GTK_PRINT_SETTINGS_COLLATE "collate" +#define GTK_PRINT_SETTINGS_REVERSE "reverse" +#define GTK_PRINT_SETTINGS_MEDIA_TYPE "media-type" +#define GTK_PRINT_SETTINGS_DITHER "dither" +#define GTK_PRINT_SETTINGS_SCALE "scale" +#define GTK_PRINT_SETTINGS_PRINT_PAGES "print-pages" +#define GTK_PRINT_SETTINGS_PAGE_RANGES "page-ranges" +#define GTK_PRINT_SETTINGS_PAGE_SET "page-set" +#define GTK_PRINT_SETTINGS_FINISHINGS "finishings" +#define GTK_PRINT_SETTINGS_NUMBER_UP "number-up" +#define GTK_PRINT_SETTINGS_OUTPUT_BIN "output-bin" + +#define GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT "output-file-format" +#define GTK_PRINT_SETTINGS_OUTPUT_URI "output-uri" + +#define GTK_PRINT_SETTINGS_WIN32_DRIVER_VERSION "win32-driver-version" +#define GTK_PRINT_SETTINGS_WIN32_DRIVER_EXTRA "win32-driver-extra" + +/* Helpers: */ + +G_CONST_RETURN gchar *gtk_print_settings_get_printer (GtkPrintSettings *settings); +void gtk_print_settings_set_printer (GtkPrintSettings *settings, + const gchar *printer); +GtkPageOrientation gtk_print_settings_get_orientation (GtkPrintSettings *settings); +void gtk_print_settings_set_orientation (GtkPrintSettings *settings, + GtkPageOrientation orientation); +GtkPaperSize * gtk_print_settings_get_paper_size (GtkPrintSettings *settings); +void gtk_print_settings_set_paper_size (GtkPrintSettings *settings, + GtkPaperSize *paper_size); +gdouble gtk_print_settings_get_paper_width (GtkPrintSettings *settings, + GtkUnit unit); +void gtk_print_settings_set_paper_width (GtkPrintSettings *settings, + gdouble width, + GtkUnit unit); +gdouble gtk_print_settings_get_paper_height (GtkPrintSettings *settings, + GtkUnit unit); +void gtk_print_settings_set_paper_height (GtkPrintSettings *settings, + gdouble height, + GtkUnit unit); +gboolean gtk_print_settings_get_use_color (GtkPrintSettings *settings); +void gtk_print_settings_set_use_color (GtkPrintSettings *settings, + gboolean use_color); +gboolean gtk_print_settings_get_collate (GtkPrintSettings *settings); +void gtk_print_settings_set_collate (GtkPrintSettings *settings, + gboolean collate); +gboolean gtk_print_settings_get_reverse (GtkPrintSettings *settings); +void gtk_print_settings_set_reverse (GtkPrintSettings *settings, + gboolean reverse); +GtkPrintDuplex gtk_print_settings_get_duplex (GtkPrintSettings *settings); +void gtk_print_settings_set_duplex (GtkPrintSettings *settings, + GtkPrintDuplex duplex); +GtkPrintQuality gtk_print_settings_get_quality (GtkPrintSettings *settings); +void gtk_print_settings_set_quality (GtkPrintSettings *settings, + GtkPrintQuality quality); +gint gtk_print_settings_get_n_copies (GtkPrintSettings *settings); +void gtk_print_settings_set_n_copies (GtkPrintSettings *settings, + gint num_copies); +gint gtk_print_settings_get_number_up (GtkPrintSettings *settings); +void gtk_print_settings_set_number_up (GtkPrintSettings *settings, + gint number_up); +gint gtk_print_settings_get_resolution (GtkPrintSettings *settings); +void gtk_print_settings_set_resolution (GtkPrintSettings *settings, + gint resolution); +gdouble gtk_print_settings_get_scale (GtkPrintSettings *settings); +void gtk_print_settings_set_scale (GtkPrintSettings *settings, + gdouble scale); +GtkPrintPages gtk_print_settings_get_print_pages (GtkPrintSettings *settings); +void gtk_print_settings_set_print_pages (GtkPrintSettings *settings, + GtkPrintPages pages); +GtkPageRange * gtk_print_settings_get_page_ranges (GtkPrintSettings *settings, + gint *num_ranges); +void gtk_print_settings_set_page_ranges (GtkPrintSettings *settings, + GtkPageRange *page_ranges, + gint num_ranges); +GtkPageSet gtk_print_settings_get_page_set (GtkPrintSettings *settings); +void gtk_print_settings_set_page_set (GtkPrintSettings *settings, + GtkPageSet page_set); +G_CONST_RETURN gchar *gtk_print_settings_get_default_source (GtkPrintSettings *settings); +void gtk_print_settings_set_default_source (GtkPrintSettings *settings, + const gchar *default_source); +G_CONST_RETURN gchar *gtk_print_settings_get_media_type (GtkPrintSettings *settings); +void gtk_print_settings_set_media_type (GtkPrintSettings *settings, + const gchar *media_type); +G_CONST_RETURN gchar *gtk_print_settings_get_dither (GtkPrintSettings *settings); +void gtk_print_settings_set_dither (GtkPrintSettings *settings, + const gchar *dither); +G_CONST_RETURN gchar *gtk_print_settings_get_finishings (GtkPrintSettings *settings); +void gtk_print_settings_set_finishings (GtkPrintSettings *settings, + const gchar *finishings); +G_CONST_RETURN gchar *gtk_print_settings_get_output_bin (GtkPrintSettings *settings); +void gtk_print_settings_set_output_bin (GtkPrintSettings *settings, + const gchar *output_bin); + +G_END_DECLS + +#endif /* __GTK_PRINT_SETTINGS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprivate.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprivate.h new file mode 100644 index 00000000..690cc8a3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprivate.h @@ -0,0 +1,109 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_PRIVATE_H__ +#define __GTK_PRIVATE_H__ + + +#include <gtk/gtkobject.h> +#include <gtk/gtkwidget.h> + + +G_BEGIN_DECLS + +/* The private flags that are used in the private_flags member of GtkWidget. + */ +typedef enum +{ + PRIVATE_GTK_USER_STYLE = 1 << 0, + PRIVATE_GTK_RESIZE_PENDING = 1 << 2, + PRIVATE_GTK_LEAVE_PENDING = 1 << 4, + PRIVATE_GTK_HAS_SHAPE_MASK = 1 << 5, + PRIVATE_GTK_IN_REPARENT = 1 << 6, + PRIVATE_GTK_DIRECTION_SET = 1 << 7, /* If the reading direction is not DIR_NONE */ + PRIVATE_GTK_DIRECTION_LTR = 1 << 8, /* If the reading direction is DIR_LTR */ + PRIVATE_GTK_ANCHORED = 1 << 9, /* If widget has a GtkWindow ancestor */ + PRIVATE_GTK_CHILD_VISIBLE = 1 << 10, /* If widget should be mapped when parent is mapped */ + PRIVATE_GTK_REDRAW_ON_ALLOC = 1 << 11, /* If we should queue a draw on the entire widget when it is reallocated */ + PRIVATE_GTK_ALLOC_NEEDED = 1 << 12, /* If we we should allocate even if the allocation is the same */ + PRIVATE_GTK_REQUEST_NEEDED = 1 << 13 /* Whether we need to call gtk_widget_size_request */ +} GtkPrivateFlags; + +/* Macros for extracting a widgets private_flags from GtkWidget. + */ +#define GTK_PRIVATE_FLAGS(wid) (GTK_WIDGET (wid)->private_flags) +#define GTK_WIDGET_USER_STYLE(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_USER_STYLE) != 0) +#define GTK_CONTAINER_RESIZE_PENDING(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_RESIZE_PENDING) != 0) +#define GTK_WIDGET_LEAVE_PENDING(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_LEAVE_PENDING) != 0) +#define GTK_WIDGET_HAS_SHAPE_MASK(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_HAS_SHAPE_MASK) != 0) +#define GTK_WIDGET_IN_REPARENT(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_IN_REPARENT) != 0) +#define GTK_WIDGET_DIRECTION_SET(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_DIRECTION_SET) != 0) +#define GTK_WIDGET_DIRECTION_LTR(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_DIRECTION_LTR) != 0) +#define GTK_WIDGET_ANCHORED(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_ANCHORED) != 0) +#define GTK_WIDGET_CHILD_VISIBLE(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_CHILD_VISIBLE) != 0) +#define GTK_WIDGET_REDRAW_ON_ALLOC(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_REDRAW_ON_ALLOC) != 0) +#define GTK_WIDGET_ALLOC_NEEDED(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_ALLOC_NEEDED) != 0) +#define GTK_WIDGET_REQUEST_NEEDED(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_REQUEST_NEEDED) != 0) + +/* Macros for setting and clearing private widget flags. + * we use a preprocessor string concatenation here for a clear + * flags/private_flags distinction at the cost of single flag operations. + */ +#define GTK_PRIVATE_SET_FLAG(wid,flag) G_STMT_START{ (GTK_PRIVATE_FLAGS (wid) |= (PRIVATE_ ## flag)); }G_STMT_END +#define GTK_PRIVATE_UNSET_FLAG(wid,flag) G_STMT_START{ (GTK_PRIVATE_FLAGS (wid) &= ~(PRIVATE_ ## flag)); }G_STMT_END + +#ifdef G_OS_WIN32 + +const gchar *_gtk_get_datadir (); +const gchar *_gtk_get_libdir (); +const gchar *_gtk_get_sysconfdir (); +const gchar *_gtk_get_localedir (); +const gchar *_gtk_get_data_prefix (); + +#undef GTK_DATADIR +#define GTK_DATADIR _gtk_get_datadir () +#undef GTK_LIBDIR +#define GTK_LIBDIR _gtk_get_libdir () +#undef GTK_LOCALEDIR +#define GTK_LOCALEDIR _gtk_get_localedir () +#undef GTK_SYSCONFDIR +#define GTK_SYSCONFDIR _gtk_get_sysconfdir () +#undef GTK_DATA_PREFIX +#define GTK_DATA_PREFIX _gtk_get_data_prefix () + +#endif /* G_OS_WIN32 */ + +gboolean _gtk_fnmatch (const char *pattern, + const char *string, + gboolean no_leading_period); + +#define GTK_PARAM_READABLE G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB +#define GTK_PARAM_WRITABLE G_PARAM_WRITABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB +#define GTK_PARAM_READWRITE G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB + +G_END_DECLS + +#endif /* __GTK_PRIVATE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprogress.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprogress.h new file mode 100644 index 00000000..477ae33d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprogress.h @@ -0,0 +1,121 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_PROGRESS_H__ +#define __GTK_PROGRESS_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkwidget.h> +#include <gtk/gtkadjustment.h> + + +G_BEGIN_DECLS + +#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) + +#define GTK_TYPE_PROGRESS (gtk_progress_get_type ()) +#define GTK_PROGRESS(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PROGRESS, GtkProgress)) +#define GTK_PROGRESS_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PROGRESS, GtkProgressClass)) +#define GTK_IS_PROGRESS(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PROGRESS)) +#define GTK_IS_PROGRESS_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PROGRESS)) +#define GTK_PROGRESS_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_PROGRESS, GtkProgressClass)) + +#endif /* !GTK_DISABLE_DEPRECATED || GTK_COMPILATION */ + +typedef struct _GtkProgress GtkProgress; +typedef struct _GtkProgressClass GtkProgressClass; + + +struct _GtkProgress +{ + GtkWidget widget; + + GtkAdjustment *adjustment; + GdkPixmap *offscreen_pixmap; + gchar *format; + gfloat x_align; + gfloat y_align; + + guint show_text : 1; + guint activity_mode : 1; + guint use_text_format : 1; +}; + +struct _GtkProgressClass +{ + GtkWidgetClass parent_class; + + void (* paint) (GtkProgress *progress); + void (* update) (GtkProgress *progress); + void (* act_mode_enter) (GtkProgress *progress); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +/* This entire interface is deprecated. Use GtkProgressBar + * directly. + */ + +#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) + +GType gtk_progress_get_type (void) G_GNUC_CONST; +void gtk_progress_set_show_text (GtkProgress *progress, + gboolean show_text); +void gtk_progress_set_text_alignment (GtkProgress *progress, + gfloat x_align, + gfloat y_align); +void gtk_progress_set_format_string (GtkProgress *progress, + const gchar *format); +void gtk_progress_set_adjustment (GtkProgress *progress, + GtkAdjustment *adjustment); +void gtk_progress_configure (GtkProgress *progress, + gdouble value, + gdouble hmin, + gdouble max); +void gtk_progress_set_percentage (GtkProgress *progress, + gdouble percentage); +void gtk_progress_set_value (GtkProgress *progress, + gdouble value); +gdouble gtk_progress_get_value (GtkProgress *progress); +void gtk_progress_set_activity_mode (GtkProgress *progress, + gboolean activity_mode); +gchar* gtk_progress_get_current_text (GtkProgress *progress); +gchar* gtk_progress_get_text_from_value (GtkProgress *progress, + gdouble value); +gdouble gtk_progress_get_current_percentage (GtkProgress *progress); +gdouble gtk_progress_get_percentage_from_value (GtkProgress *progress, + gdouble value); + +#endif /* !GTK_DISABLE_DEPRECATED || GTK_COMPILATION */ + +G_END_DECLS + +#endif /* __GTK_PROGRESS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprogressbar.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprogressbar.h new file mode 100644 index 00000000..1e556164 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkprogressbar.h @@ -0,0 +1,169 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_PROGRESS_BAR_H__ +#define __GTK_PROGRESS_BAR_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkprogress.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_PROGRESS_BAR (gtk_progress_bar_get_type ()) +#define GTK_PROGRESS_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PROGRESS_BAR, GtkProgressBar)) +#define GTK_PROGRESS_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PROGRESS_BAR, GtkProgressBarClass)) +#define GTK_IS_PROGRESS_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PROGRESS_BAR)) +#define GTK_IS_PROGRESS_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PROGRESS_BAR)) +#define GTK_PROGRESS_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PROGRESS_BAR, GtkProgressBarClass)) + + +typedef struct _GtkProgressBar GtkProgressBar; +typedef struct _GtkProgressBarClass GtkProgressBarClass; + +typedef enum +{ + GTK_PROGRESS_CONTINUOUS, + GTK_PROGRESS_DISCRETE +} GtkProgressBarStyle; + +typedef enum +{ + GTK_PROGRESS_LEFT_TO_RIGHT, + GTK_PROGRESS_RIGHT_TO_LEFT, + GTK_PROGRESS_BOTTOM_TO_TOP, + GTK_PROGRESS_TOP_TO_BOTTOM +} GtkProgressBarOrientation; + +struct _GtkProgressBar +{ + GtkProgress progress; + + GtkProgressBarStyle bar_style; + GtkProgressBarOrientation orientation; + + guint blocks; + gint in_block; + + gint activity_pos; + guint activity_step; + guint activity_blocks; + + gdouble pulse_fraction; + + guint activity_dir : 1; + guint ellipsize : 3; + guint dirty : 1; +}; + +struct _GtkProgressBarClass +{ + GtkProgressClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_progress_bar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_progress_bar_new (void); + +/* + * GtkProgress/GtkProgressBar had serious problems in GTK 1.2. + * + * - Only 3 or 4 functions are really needed for 95% of progress + * interfaces; GtkProgress[Bar] had about 25 functions, and + * didn't even include these 3 or 4. + * - In activity mode, the API involves setting the adjustment + * to any random value, just to have the side effect of + * calling the progress bar update function - the adjustment + * is totally ignored in activity mode + * - You set the activity step as a pixel value, which means to + * set the activity step you basically need to connect to + * size_allocate + * - There are ctree_set_expander_style()-functions, to randomly + * change look-and-feel for no good reason + * - The split between GtkProgress and GtkProgressBar makes no sense + * to me whatsoever. + * + * This was a big wart on GTK and made people waste lots of time, + * both learning and using the interface. + * + * So, I have added what I feel is the correct API, and marked all the + * rest deprecated. However, the changes are 100% backward-compatible and + * should break no existing code. + * + * The following 9 functions are the new programming interface. + */ +void gtk_progress_bar_pulse (GtkProgressBar *pbar); +void gtk_progress_bar_set_text (GtkProgressBar *pbar, + const gchar *text); +void gtk_progress_bar_set_fraction (GtkProgressBar *pbar, + gdouble fraction); + +void gtk_progress_bar_set_pulse_step (GtkProgressBar *pbar, + gdouble fraction); +void gtk_progress_bar_set_orientation (GtkProgressBar *pbar, + GtkProgressBarOrientation orientation); + +G_CONST_RETURN gchar* gtk_progress_bar_get_text (GtkProgressBar *pbar); +gdouble gtk_progress_bar_get_fraction (GtkProgressBar *pbar); +gdouble gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar); + +GtkProgressBarOrientation gtk_progress_bar_get_orientation (GtkProgressBar *pbar); +void gtk_progress_bar_set_ellipsize (GtkProgressBar *pbar, + PangoEllipsizeMode mode); +PangoEllipsizeMode gtk_progress_bar_get_ellipsize (GtkProgressBar *pbar); + + +#ifndef GTK_DISABLE_DEPRECATED + +/* Everything below here is deprecated */ +GtkWidget* gtk_progress_bar_new_with_adjustment (GtkAdjustment *adjustment); +void gtk_progress_bar_set_bar_style (GtkProgressBar *pbar, + GtkProgressBarStyle style); +void gtk_progress_bar_set_discrete_blocks (GtkProgressBar *pbar, + guint blocks); +/* set_activity_step() is not only deprecated, it doesn't even work. + * (Of course, it wasn't usable anyway, you had to set it from a size_allocate + * handler or something) + */ +void gtk_progress_bar_set_activity_step (GtkProgressBar *pbar, + guint step); +void gtk_progress_bar_set_activity_blocks (GtkProgressBar *pbar, + guint blocks); +void gtk_progress_bar_update (GtkProgressBar *pbar, + gdouble percentage); + +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_PROGRESS_BAR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkquery.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkquery.h new file mode 100644 index 00000000..7e32eb6e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkquery.h @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2005 Novell, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * + * Author: Anders Carlsson <andersca@imendio.com> + * + * Based on nautilus-query.h + */ + +#ifndef __GTK_QUERY_H__ +#define __GTK_QUERY_H__ + +/* This is a "semi-private" header; it is meant only for + * alternate GtkFileChooser implementations; no stability guarantees + * are made at this point + */ +#ifndef GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED +#error "gtkfilechooserprivate.h is not supported API for general use" +#endif + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_QUERY (_gtk_query_get_type ()) +#define GTK_QUERY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_QUERY, GtkQuery)) +#define GTK_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_QUERY, GtkQueryClass)) +#define GTK_IS_QUERY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_QUERY)) +#define GTK_IS_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_QUERY)) +#define GTK_QUERY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_QUERY, GtkQueryClass)) + +typedef struct _GtkQuery GtkQuery; +typedef struct _GtkQueryClass GtkQueryClass; +typedef struct _GtkQueryPrivate GtkQueryPrivate; + +struct _GtkQuery +{ + GObject parent; + + GtkQueryPrivate *priv; +}; + +struct _GtkQueryClass +{ + GObjectClass parent_class; +}; + +GType _gtk_query_get_type (void); +gboolean _gtk_query_enabled (void); + +GtkQuery* _gtk_query_new (void); + +gchar* _gtk_query_get_text (GtkQuery *query); +void _gtk_query_set_text (GtkQuery *query, + const gchar *text); + +gchar* _gtk_query_get_location (GtkQuery *query); +void _gtk_query_set_location (GtkQuery *query, + const gchar *uri); + +GList* _gtk_query_get_mime_types (GtkQuery *query); +void _gtk_query_set_mime_types (GtkQuery *query, + GList *mime_types); +void _gtk_query_add_mime_type (GtkQuery *query, + const gchar *mime_type); + +G_END_DECLS + +#endif /* __GTK_QUERY_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradioaction.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradioaction.h new file mode 100644 index 00000000..d39648b4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradioaction.h @@ -0,0 +1,85 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with the Gnome Library; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Author: James Henstridge <james@daa.com.au> + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ +#ifndef __GTK_RADIO_ACTION_H__ +#define __GTK_RADIO_ACTION_H__ + +#include <gtk/gtktoggleaction.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_RADIO_ACTION (gtk_radio_action_get_type ()) +#define GTK_RADIO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_ACTION, GtkRadioAction)) +#define GTK_RADIO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_ACTION, GtkRadioActionClass)) +#define GTK_IS_RADIO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_ACTION)) +#define GTK_IS_RADIO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_ACTION)) +#define GTK_RADIO_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_RADIO_ACTION, GtkRadioActionClass)) + +typedef struct _GtkRadioAction GtkRadioAction; +typedef struct _GtkRadioActionPrivate GtkRadioActionPrivate; +typedef struct _GtkRadioActionClass GtkRadioActionClass; + +struct _GtkRadioAction +{ + GtkToggleAction parent; + + /*< private >*/ + + GtkRadioActionPrivate *private_data; +}; + +struct _GtkRadioActionClass +{ + GtkToggleActionClass parent_class; + + void (* changed) (GtkRadioAction *action, GtkRadioAction *current); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_radio_action_get_type (void) G_GNUC_CONST; +GtkRadioAction *gtk_radio_action_new (const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *stock_id, + gint value); +GSList *gtk_radio_action_get_group (GtkRadioAction *action); +void gtk_radio_action_set_group (GtkRadioAction *action, + GSList *group); +gint gtk_radio_action_get_current_value (GtkRadioAction *action); +void gtk_radio_action_set_current_value (GtkRadioAction *action, + gint current_value); + +G_END_DECLS + +#endif /* __GTK_RADIO_ACTION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradiobutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradiobutton.h new file mode 100644 index 00000000..0d885e63 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradiobutton.h @@ -0,0 +1,91 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_RADIO_BUTTON_H__ +#define __GTK_RADIO_BUTTON_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkcheckbutton.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_RADIO_BUTTON (gtk_radio_button_get_type ()) +#define GTK_RADIO_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_BUTTON, GtkRadioButton)) +#define GTK_RADIO_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_BUTTON, GtkRadioButtonClass)) +#define GTK_IS_RADIO_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_BUTTON)) +#define GTK_IS_RADIO_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_BUTTON)) +#define GTK_RADIO_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RADIO_BUTTON, GtkRadioButtonClass)) + + +typedef struct _GtkRadioButton GtkRadioButton; +typedef struct _GtkRadioButtonClass GtkRadioButtonClass; + +struct _GtkRadioButton +{ + GtkCheckButton check_button; + + GSList *group; +}; + +struct _GtkRadioButtonClass +{ + GtkCheckButtonClass parent_class; + + /* Signals */ + void (*group_changed) (GtkRadioButton *radio_button); + + /* Padding for future expansion */ + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_radio_button_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_radio_button_new (GSList *group); +GtkWidget* gtk_radio_button_new_from_widget (GtkRadioButton *radio_group_member); +GtkWidget* gtk_radio_button_new_with_label (GSList *group, + const gchar *label); +GtkWidget* gtk_radio_button_new_with_label_from_widget (GtkRadioButton *radio_group_member, + const gchar *label); +GtkWidget* gtk_radio_button_new_with_mnemonic (GSList *group, + const gchar *label); +GtkWidget* gtk_radio_button_new_with_mnemonic_from_widget (GtkRadioButton *radio_group_member, + const gchar *label); +GSList* gtk_radio_button_get_group (GtkRadioButton *radio_button); +void gtk_radio_button_set_group (GtkRadioButton *radio_button, + GSList *group); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_radio_button_group gtk_radio_button_get_group +#endif + +G_END_DECLS + +#endif /* __GTK_RADIO_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradiomenuitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradiomenuitem.h new file mode 100644 index 00000000..2adb5636 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradiomenuitem.h @@ -0,0 +1,90 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_RADIO_MENU_ITEM_H__ +#define __GTK_RADIO_MENU_ITEM_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkcheckmenuitem.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_RADIO_MENU_ITEM (gtk_radio_menu_item_get_type ()) +#define GTK_RADIO_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem)) +#define GTK_RADIO_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItemClass)) +#define GTK_IS_RADIO_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_MENU_ITEM)) +#define GTK_IS_RADIO_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_MENU_ITEM)) +#define GTK_RADIO_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItemClass)) + + +typedef struct _GtkRadioMenuItem GtkRadioMenuItem; +typedef struct _GtkRadioMenuItemClass GtkRadioMenuItemClass; + +struct _GtkRadioMenuItem +{ + GtkCheckMenuItem check_menu_item; + + GSList *group; +}; + +struct _GtkRadioMenuItemClass +{ + GtkCheckMenuItemClass parent_class; + + /* Signals */ + void (*group_changed) (GtkRadioMenuItem *radio_menu_item); + + /* Padding for future expansion */ + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_radio_menu_item_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_radio_menu_item_new (GSList *group); +GtkWidget* gtk_radio_menu_item_new_with_label (GSList *group, + const gchar *label); +GtkWidget* gtk_radio_menu_item_new_with_mnemonic (GSList *group, + const gchar *label); +GtkWidget* gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group); +GtkWidget *gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group, + const gchar *label); +GtkWidget *gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group, + const gchar *label); +GSList* gtk_radio_menu_item_get_group (GtkRadioMenuItem *radio_menu_item); +void gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item, + GSList *group); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_radio_menu_item_group gtk_radio_menu_item_get_group +#endif + +G_END_DECLS + +#endif /* __GTK_RADIO_MENU_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradiotoolbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradiotoolbutton.h new file mode 100644 index 00000000..febdcf77 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkradiotoolbutton.h @@ -0,0 +1,70 @@ +/* gtkradiotoolbutton.h + * + * Copyright (C) 2002 Anders Carlsson <andersca@gnome.org> + * Copyright (C) 2002 James Henstridge <james@daa.com.au> + * Copyright (C) 2003 Soeren Sandmann <sandmann@daimi.au.dk> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_RADIO_TOOL_BUTTON_H__ +#define __GTK_RADIO_TOOL_BUTTON_H__ + +#include "gtktoggletoolbutton.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_RADIO_TOOL_BUTTON (gtk_radio_tool_button_get_type ()) +#define GTK_RADIO_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_TOOL_BUTTON, GtkRadioToolButton)) +#define GTK_RADIO_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_TOOL_BUTTON, GtkRadioToolButtonClass)) +#define GTK_IS_RADIO_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_TOOL_BUTTON)) +#define GTK_IS_RADIO_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_TOOL_BUTTON)) +#define GTK_RADIO_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_RADIO_TOOL_BUTTON, GtkRadioToolButtonClass)) + +typedef struct _GtkRadioToolButton GtkRadioToolButton; +typedef struct _GtkRadioToolButtonClass GtkRadioToolButtonClass; + +struct _GtkRadioToolButton +{ + GtkToggleToolButton parent; +}; + +struct _GtkRadioToolButtonClass +{ + GtkToggleToolButtonClass parent_class; + + /* Padding for future expansion */ + void (* _gtk_reserved1) (void); + void (* _gtk_reserved2) (void); + void (* _gtk_reserved3) (void); + void (* _gtk_reserved4) (void); +}; + +GType gtk_radio_tool_button_get_type (void) G_GNUC_CONST; + +GtkToolItem *gtk_radio_tool_button_new (GSList *group); +GtkToolItem *gtk_radio_tool_button_new_from_stock (GSList *group, + const gchar *stock_id); +GtkToolItem *gtk_radio_tool_button_new_from_widget (GtkRadioToolButton *group); +GtkToolItem *gtk_radio_tool_button_new_with_stock_from_widget (GtkRadioToolButton *group, + const gchar *stock_id); +GSList * gtk_radio_tool_button_get_group (GtkRadioToolButton *button); +void gtk_radio_tool_button_set_group (GtkRadioToolButton *button, + GSList *group); + +G_END_DECLS + +#endif /* __GTK_RADIO_TOOL_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrange.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrange.h new file mode 100644 index 00000000..7ebb9df6 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrange.h @@ -0,0 +1,180 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_RANGE_H__ +#define __GTK_RANGE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkadjustment.h> +#include <gtk/gtkwidget.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_RANGE (gtk_range_get_type ()) +#define GTK_RANGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RANGE, GtkRange)) +#define GTK_RANGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RANGE, GtkRangeClass)) +#define GTK_IS_RANGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RANGE)) +#define GTK_IS_RANGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RANGE)) +#define GTK_RANGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RANGE, GtkRangeClass)) + +/* These two are private/opaque types, ignore */ +typedef struct _GtkRangeLayout GtkRangeLayout; +typedef struct _GtkRangeStepTimer GtkRangeStepTimer; + +typedef struct _GtkRange GtkRange; +typedef struct _GtkRangeClass GtkRangeClass; + +struct _GtkRange +{ + GtkWidget widget; + + GtkAdjustment *adjustment; + GtkUpdateType update_policy; + guint inverted : 1; + + /*< protected >*/ + + guint flippable : 1; + + /* Steppers are: < > ---- < > + * a b c d + */ + + guint has_stepper_a : 1; + guint has_stepper_b : 1; + guint has_stepper_c : 1; + guint has_stepper_d : 1; + + guint need_recalc : 1; + + guint slider_size_fixed : 1; + + gint min_slider_size; + + GtkOrientation orientation; + + /* Area of entire stepper + trough assembly in widget->window coords */ + GdkRectangle range_rect; + /* Slider range along the long dimension, in widget->window coords */ + gint slider_start, slider_end; + + /* Round off value to this many digits, -1 for no rounding */ + gint round_digits; + + /*< private >*/ + guint trough_click_forward : 1; /* trough click was on the forward side of slider */ + guint update_pending : 1; /* need to emit value_changed */ + GtkRangeLayout *layout; + GtkRangeStepTimer *timer; + gint slide_initial_slider_position; + gint slide_initial_coordinate; + guint update_timeout_id; + GdkWindow *event_window; +}; + +struct _GtkRangeClass +{ + GtkWidgetClass parent_class; + + /* what detail to pass to GTK drawing functions */ + gchar *slider_detail; + gchar *stepper_detail; + + void (* value_changed) (GtkRange *range); + void (* adjust_bounds) (GtkRange *range, + gdouble new_value); + + /* action signals for keybindings */ + void (* move_slider) (GtkRange *range, + GtkScrollType scroll); + + /* Virtual functions */ + void (* get_range_border) (GtkRange *range, + GtkBorder *border_); + + gboolean (* change_value) (GtkRange *range, + GtkScrollType scroll, + gdouble new_value); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); +}; + + +GType gtk_range_get_type (void) G_GNUC_CONST; + +void gtk_range_set_update_policy (GtkRange *range, + GtkUpdateType policy); +GtkUpdateType gtk_range_get_update_policy (GtkRange *range); + +void gtk_range_set_adjustment (GtkRange *range, + GtkAdjustment *adjustment); +GtkAdjustment* gtk_range_get_adjustment (GtkRange *range); + +void gtk_range_set_inverted (GtkRange *range, + gboolean setting); +gboolean gtk_range_get_inverted (GtkRange *range); + +void gtk_range_set_lower_stepper_sensitivity (GtkRange *range, + GtkSensitivityType sensitivity); +GtkSensitivityType gtk_range_get_lower_stepper_sensitivity (GtkRange *range); +void gtk_range_set_upper_stepper_sensitivity (GtkRange *range, + GtkSensitivityType sensitivity); +GtkSensitivityType gtk_range_get_upper_stepper_sensitivity (GtkRange *range); + +void gtk_range_set_increments (GtkRange *range, + gdouble step, + gdouble page); +void gtk_range_set_range (GtkRange *range, + gdouble min, + gdouble max); +void gtk_range_set_value (GtkRange *range, + gdouble value); +gdouble gtk_range_get_value (GtkRange *range); + +void gtk_range_set_show_fill_level (GtkRange *range, + gboolean show_fill_level); +gboolean gtk_range_get_show_fill_level (GtkRange *range); +void gtk_range_set_restrict_to_fill_level (GtkRange *range, + gboolean restrict_to_fill_level); +gboolean gtk_range_get_restrict_to_fill_level (GtkRange *range); +void gtk_range_set_fill_level (GtkRange *range, + gdouble fill_level); +gdouble gtk_range_get_fill_level (GtkRange *range); + +gdouble _gtk_range_get_wheel_delta (GtkRange *range, + GdkScrollDirection direction); + + +G_END_DECLS + + +#endif /* __GTK_RANGE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrc.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrc.h new file mode 100644 index 00000000..c6880af2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrc.h @@ -0,0 +1,267 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_RC_H__ +#define __GTK_RC_H__ + + +#include <gtk/gtkstyle.h> + +G_BEGIN_DECLS + +/* Forward declarations */ +typedef struct _GtkIconFactory GtkIconFactory; +typedef struct _GtkRcContext GtkRcContext; + +typedef struct _GtkRcStyleClass GtkRcStyleClass; + +#define GTK_TYPE_RC_STYLE (gtk_rc_style_get_type ()) +#define GTK_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_RC_STYLE, GtkRcStyle)) +#define GTK_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RC_STYLE, GtkRcStyleClass)) +#define GTK_IS_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_RC_STYLE)) +#define GTK_IS_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RC_STYLE)) +#define GTK_RC_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RC_STYLE, GtkRcStyleClass)) + +typedef enum +{ + GTK_RC_FG = 1 << 0, + GTK_RC_BG = 1 << 1, + GTK_RC_TEXT = 1 << 2, + GTK_RC_BASE = 1 << 3 +} GtkRcFlags; + +struct _GtkRcStyle +{ + GObject parent_instance; + + /*< public >*/ + + gchar *name; + gchar *bg_pixmap_name[5]; + PangoFontDescription *font_desc; + + GtkRcFlags color_flags[5]; + GdkColor fg[5]; + GdkColor bg[5]; + GdkColor text[5]; + GdkColor base[5]; + + gint xthickness; + gint ythickness; + + /*< private >*/ + GArray *rc_properties; + + /* list of RC style lists including this RC style */ + GSList *rc_style_lists; + + GSList *icon_factories; + + guint engine_specified : 1; /* The RC file specified the engine */ +}; + +struct _GtkRcStyleClass +{ + GObjectClass parent_class; + + /* Create an empty RC style of the same type as this RC style. + * The default implementation, which does + * g_object_new (G_OBJECT_TYPE (style), NULL); + * should work in most cases. + */ + GtkRcStyle * (*create_rc_style) (GtkRcStyle *rc_style); + + /* Fill in engine specific parts of GtkRcStyle by parsing contents + * of brackets. Returns G_TOKEN_NONE if successful, otherwise returns + * the token it expected but didn't get. + */ + guint (*parse) (GtkRcStyle *rc_style, + GtkSettings *settings, + GScanner *scanner); + + /* Combine RC style data from src into dest. If overridden, this + * function should chain to the parent. + */ + void (*merge) (GtkRcStyle *dest, + GtkRcStyle *src); + + /* Create an empty style suitable to this RC style + */ + GtkStyle * (*create_style) (GtkRcStyle *rc_style); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +#ifdef G_OS_WIN32 +/* Reserve old names for DLL ABI backward compatibility */ +#define gtk_rc_add_default_file gtk_rc_add_default_file_utf8 +#define gtk_rc_set_default_files gtk_rc_set_default_files_utf8 +#define gtk_rc_parse gtk_rc_parse_utf8 +#endif + +void _gtk_rc_init (void); +GSList* _gtk_rc_parse_widget_class_path (const gchar *pattern); +void _gtk_rc_free_widget_class_path (GSList *list); +gboolean _gtk_rc_match_widget_class (GSList *list, + gint length, + gchar *path, + gchar *path_reversed); + +void gtk_rc_add_default_file (const gchar *filename); +void gtk_rc_set_default_files (gchar **filenames); +gchar** gtk_rc_get_default_files (void); +GtkStyle* gtk_rc_get_style (GtkWidget *widget); +GtkStyle* gtk_rc_get_style_by_paths (GtkSettings *settings, + const char *widget_path, + const char *class_path, + GType type); + +gboolean gtk_rc_reparse_all_for_settings (GtkSettings *settings, + gboolean force_load); +void gtk_rc_reset_styles (GtkSettings *settings); + +gchar* gtk_rc_find_pixmap_in_path (GtkSettings *settings, + GScanner *scanner, + const gchar *pixmap_file); + +void gtk_rc_parse (const gchar *filename); +void gtk_rc_parse_string (const gchar *rc_string); +gboolean gtk_rc_reparse_all (void); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_rc_add_widget_name_style (GtkRcStyle *rc_style, + const gchar *pattern); +void gtk_rc_add_widget_class_style (GtkRcStyle *rc_style, + const gchar *pattern); +void gtk_rc_add_class_style (GtkRcStyle *rc_style, + const gchar *pattern); +#endif /* GTK_DISABLE_DEPRECATED */ + + +GType gtk_rc_style_get_type (void) G_GNUC_CONST; +GtkRcStyle* gtk_rc_style_new (void); +GtkRcStyle* gtk_rc_style_copy (GtkRcStyle *orig); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_rc_style_ref (GtkRcStyle *rc_style); +void gtk_rc_style_unref (GtkRcStyle *rc_style); +#endif + +gchar* gtk_rc_find_module_in_path (const gchar *module_file); +gchar* gtk_rc_get_theme_dir (void); +gchar* gtk_rc_get_module_dir (void); +gchar* gtk_rc_get_im_module_path (void); +gchar* gtk_rc_get_im_module_file (void); + +/* private functions/definitions */ +typedef enum { + GTK_RC_TOKEN_INVALID = G_TOKEN_LAST, + GTK_RC_TOKEN_INCLUDE, + GTK_RC_TOKEN_NORMAL, + GTK_RC_TOKEN_ACTIVE, + GTK_RC_TOKEN_PRELIGHT, + GTK_RC_TOKEN_SELECTED, + GTK_RC_TOKEN_INSENSITIVE, + GTK_RC_TOKEN_FG, + GTK_RC_TOKEN_BG, + GTK_RC_TOKEN_TEXT, + GTK_RC_TOKEN_BASE, + GTK_RC_TOKEN_XTHICKNESS, + GTK_RC_TOKEN_YTHICKNESS, + GTK_RC_TOKEN_FONT, + GTK_RC_TOKEN_FONTSET, + GTK_RC_TOKEN_FONT_NAME, + GTK_RC_TOKEN_BG_PIXMAP, + GTK_RC_TOKEN_PIXMAP_PATH, + GTK_RC_TOKEN_STYLE, + GTK_RC_TOKEN_BINDING, + GTK_RC_TOKEN_BIND, + GTK_RC_TOKEN_WIDGET, + GTK_RC_TOKEN_WIDGET_CLASS, + GTK_RC_TOKEN_CLASS, + GTK_RC_TOKEN_LOWEST, + GTK_RC_TOKEN_GTK, + GTK_RC_TOKEN_APPLICATION, + GTK_RC_TOKEN_THEME, + GTK_RC_TOKEN_RC, + GTK_RC_TOKEN_HIGHEST, + GTK_RC_TOKEN_ENGINE, + GTK_RC_TOKEN_MODULE_PATH, + GTK_RC_TOKEN_IM_MODULE_PATH, + GTK_RC_TOKEN_IM_MODULE_FILE, + GTK_RC_TOKEN_STOCK, + GTK_RC_TOKEN_LTR, + GTK_RC_TOKEN_RTL, + GTK_RC_TOKEN_COLOR, + GTK_RC_TOKEN_UNBIND, + GTK_RC_TOKEN_LAST +} GtkRcTokenType; + +GScanner* gtk_rc_scanner_new (void); +guint gtk_rc_parse_color (GScanner *scanner, + GdkColor *color); +guint gtk_rc_parse_color_full (GScanner *scanner, + GtkRcStyle *style, + GdkColor *color); +guint gtk_rc_parse_state (GScanner *scanner, + GtkStateType *state); +guint gtk_rc_parse_priority (GScanner *scanner, + GtkPathPriorityType *priority); + +/* rc properties + * (structure forward declared in gtkstyle.h) + */ +struct _GtkRcProperty +{ + /* quark-ified property identifier like "GtkScrollbar::spacing" */ + GQuark type_name; + GQuark property_name; + + /* fields similar to GtkSettingsValue */ + gchar *origin; + GValue value; +}; +const GtkRcProperty* _gtk_rc_style_lookup_rc_property (GtkRcStyle *rc_style, + GQuark type_name, + GQuark property_name); +void _gtk_rc_style_set_rc_property (GtkRcStyle *rc_style, + GtkRcProperty *property); +void _gtk_rc_style_unset_rc_property (GtkRcStyle *rc_style, + GQuark type_name, + GQuark property_name); + +GSList * _gtk_rc_style_get_color_hashes (GtkRcStyle *rc_style); + +const gchar* _gtk_rc_context_get_default_font_name (GtkSettings *settings); +void _gtk_rc_context_destroy (GtkSettings *settings); + +G_END_DECLS + +#endif /* __GTK_RC_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentaction.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentaction.h new file mode 100644 index 00000000..776f9426 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentaction.h @@ -0,0 +1,70 @@ +/* GTK - The GIMP Toolkit + * Recent chooser action for GtkUIManager + * + * Copyright (C) 2007, Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_RECENT_ACTION_H__ +#define __GTK_RECENT_ACTION_H__ + +#include <gtk/gtkaction.h> +#include <gtk/gtkrecentmanager.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_ACTION (gtk_recent_action_get_type ()) +#define GTK_RECENT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_ACTION, GtkRecentAction)) +#define GTK_IS_RECENT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_ACTION)) +#define GTK_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_ACTION, GtkRecentActionClass)) +#define GTK_IS_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_ACTION)) +#define GTK_RECENT_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_ACTION, GtkRecentActionClass)) + +typedef struct _GtkRecentAction GtkRecentAction; +typedef struct _GtkRecentActionPrivate GtkRecentActionPrivate; +typedef struct _GtkRecentActionClass GtkRecentActionClass; + +struct _GtkRecentAction +{ + GtkAction parent_instance; + + /*< private >*/ + GtkRecentActionPrivate *priv; +}; + +struct _GtkRecentActionClass +{ + GtkActionClass parent_class; +}; + +GType gtk_recent_action_get_type (void) G_GNUC_CONST; +GtkAction *gtk_recent_action_new (const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *stock_id); +GtkAction *gtk_recent_action_new_for_manager (const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *stock_id, + GtkRecentManager *manager); +gboolean gtk_recent_action_get_show_numbers (GtkRecentAction *action); +void gtk_recent_action_set_show_numbers (GtkRecentAction *action, + gboolean show_numbers); + +G_END_DECLS + +#endif /* __GTK_RECENT_ACTION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchooser.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchooser.h new file mode 100644 index 00000000..738a9b67 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchooser.h @@ -0,0 +1,188 @@ +/* GTK - The GIMP Toolkit + * gtkrecentchooser.h - Abstract interface for recent file selectors GUIs + * + * Copyright (C) 2006, Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_RECENT_CHOOSER_H__ +#define __GTK_RECENT_CHOOSER_H__ + +#include <gtk/gtkwidget.h> + +#include "gtkrecentmanager.h" +#include "gtkrecentfilter.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_CHOOSER (gtk_recent_chooser_get_type ()) +#define GTK_RECENT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_CHOOSER, GtkRecentChooser)) +#define GTK_IS_RECENT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_CHOOSER)) +#define GTK_RECENT_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_RECENT_CHOOSER, GtkRecentChooserIface)) + +/** + * GtkRecentSortType: + * @GTK_RECENT_SORT_NONE: Do not sort the returned list of recently used + * resources. + * @GTK_RECENT_SORT_MRU: Sort the returned list with the most recently used + * items first. + * @GTK_RECENT_SORT_LRU: Sort the returned list with the least recently used + * items first. + * @GTK_RECENT_SORT_CUSTOM: Sort the returned list using a custom sorting + * function passed using gtk_recent_manager_set_sort_func(). + * + * Used to specify the sorting method to be applyed to the recently + * used resource list. + **/ +typedef enum +{ + GTK_RECENT_SORT_NONE = 0, + GTK_RECENT_SORT_MRU, + GTK_RECENT_SORT_LRU, + GTK_RECENT_SORT_CUSTOM +} GtkRecentSortType; + +typedef gint (*GtkRecentSortFunc) (GtkRecentInfo *a, + GtkRecentInfo *b, + gpointer user_data); + + +typedef struct _GtkRecentChooser GtkRecentChooser; /* dummy */ +typedef struct _GtkRecentChooserIface GtkRecentChooserIface; + +#define GTK_RECENT_CHOOSER_ERROR (gtk_recent_chooser_error_quark ()) + +typedef enum +{ + GTK_RECENT_CHOOSER_ERROR_NOT_FOUND, + GTK_RECENT_CHOOSER_ERROR_INVALID_URI +} GtkRecentChooserError; + +GQuark gtk_recent_chooser_error_quark (void); + + +struct _GtkRecentChooserIface +{ + GTypeInterface base_iface; + + /* + * Methods + */ + gboolean (* set_current_uri) (GtkRecentChooser *chooser, + const gchar *uri, + GError **error); + gchar * (* get_current_uri) (GtkRecentChooser *chooser); + gboolean (* select_uri) (GtkRecentChooser *chooser, + const gchar *uri, + GError **error); + void (* unselect_uri) (GtkRecentChooser *chooser, + const gchar *uri); + void (* select_all) (GtkRecentChooser *chooser); + void (* unselect_all) (GtkRecentChooser *chooser); + GList * (* get_items) (GtkRecentChooser *chooser); + GtkRecentManager *(* get_recent_manager) (GtkRecentChooser *chooser); + void (* add_filter) (GtkRecentChooser *chooser, + GtkRecentFilter *filter); + void (* remove_filter) (GtkRecentChooser *chooser, + GtkRecentFilter *filter); + GSList * (* list_filters) (GtkRecentChooser *chooser); + void (* set_sort_func) (GtkRecentChooser *chooser, + GtkRecentSortFunc sort_func, + gpointer data, + GDestroyNotify destroy); + + /* + * Signals + */ + void (* item_activated) (GtkRecentChooser *chooser); + void (* selection_changed) (GtkRecentChooser *chooser); +}; + +GType gtk_recent_chooser_get_type (void) G_GNUC_CONST; + +/* + * Configuration + */ +void gtk_recent_chooser_set_show_private (GtkRecentChooser *chooser, + gboolean show_private); +gboolean gtk_recent_chooser_get_show_private (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_show_not_found (GtkRecentChooser *chooser, + gboolean show_not_found); +gboolean gtk_recent_chooser_get_show_not_found (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_select_multiple (GtkRecentChooser *chooser, + gboolean select_multiple); +gboolean gtk_recent_chooser_get_select_multiple (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_limit (GtkRecentChooser *chooser, + gint limit); +gint gtk_recent_chooser_get_limit (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_local_only (GtkRecentChooser *chooser, + gboolean local_only); +gboolean gtk_recent_chooser_get_local_only (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_show_tips (GtkRecentChooser *chooser, + gboolean show_tips); +gboolean gtk_recent_chooser_get_show_tips (GtkRecentChooser *chooser); +#ifndef GTK_DISABLE_DEPRECATED +void gtk_recent_chooser_set_show_numbers (GtkRecentChooser *chooser, + gboolean show_numbers); +gboolean gtk_recent_chooser_get_show_numbers (GtkRecentChooser *chooser); +#endif /* GTK_DISABLE_DEPRECATED */ +void gtk_recent_chooser_set_show_icons (GtkRecentChooser *chooser, + gboolean show_icons); +gboolean gtk_recent_chooser_get_show_icons (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_sort_type (GtkRecentChooser *chooser, + GtkRecentSortType sort_type); +GtkRecentSortType gtk_recent_chooser_get_sort_type (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_sort_func (GtkRecentChooser *chooser, + GtkRecentSortFunc sort_func, + gpointer sort_data, + GDestroyNotify data_destroy); + +/* + * Items handling + */ +gboolean gtk_recent_chooser_set_current_uri (GtkRecentChooser *chooser, + const gchar *uri, + GError **error); +gchar * gtk_recent_chooser_get_current_uri (GtkRecentChooser *chooser); +GtkRecentInfo *gtk_recent_chooser_get_current_item (GtkRecentChooser *chooser); +gboolean gtk_recent_chooser_select_uri (GtkRecentChooser *chooser, + const gchar *uri, + GError **error); +void gtk_recent_chooser_unselect_uri (GtkRecentChooser *chooser, + const gchar *uri); +void gtk_recent_chooser_select_all (GtkRecentChooser *chooser); +void gtk_recent_chooser_unselect_all (GtkRecentChooser *chooser); +GList * gtk_recent_chooser_get_items (GtkRecentChooser *chooser); +gchar ** gtk_recent_chooser_get_uris (GtkRecentChooser *chooser, + gsize *length); + +/* + * Filters + */ +void gtk_recent_chooser_add_filter (GtkRecentChooser *chooser, + GtkRecentFilter *filter); +void gtk_recent_chooser_remove_filter (GtkRecentChooser *chooser, + GtkRecentFilter *filter); +GSList * gtk_recent_chooser_list_filters (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_filter (GtkRecentChooser *chooser, + GtkRecentFilter *filter); +GtkRecentFilter *gtk_recent_chooser_get_filter (GtkRecentChooser *chooser); + + +G_END_DECLS + +#endif /* __GTK_RECENT_CHOOSER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchooserdialog.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchooserdialog.h new file mode 100644 index 00000000..22be218d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchooserdialog.h @@ -0,0 +1,70 @@ +/* GTK - The GIMP Toolkit + * gtkrecentchooserdialog.h: Recent files selector dialog + * Copyright (C) 2006 Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_RECENT_CHOOSER_DIALOG_H__ +#define __GTK_RECENT_CHOOSER_DIALOG_H__ + +#include <gtk/gtkdialog.h> +#include "gtkrecentchooser.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_CHOOSER_DIALOG (gtk_recent_chooser_dialog_get_type ()) +#define GTK_RECENT_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_CHOOSER_DIALOG, GtkRecentChooserDialog)) +#define GTK_IS_RECENT_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_CHOOSER_DIALOG)) +#define GTK_RECENT_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_CHOOSER_DIALOG, GtkRecentChooserDialogClass)) +#define GTK_IS_RECENT_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_CHOOSER_DIALOG)) +#define GTK_RECENT_CHOOSER_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_CHOOSER_DIALOG, GtkRecentChooserDialogClass)) + +typedef struct _GtkRecentChooserDialog GtkRecentChooserDialog; +typedef struct _GtkRecentChooserDialogClass GtkRecentChooserDialogClass; + +typedef struct _GtkRecentChooserDialogPrivate GtkRecentChooserDialogPrivate; + + +struct _GtkRecentChooserDialog +{ + /*< private >*/ + GtkDialog parent_instance; + + GtkRecentChooserDialogPrivate *priv; +}; + +struct _GtkRecentChooserDialogClass +{ + GtkDialogClass parent_class; +}; + + +GType gtk_recent_chooser_dialog_get_type (void) G_GNUC_CONST; + +GtkWidget *gtk_recent_chooser_dialog_new (const gchar *title, + GtkWindow *parent, + const gchar *first_button_text, + ...) G_GNUC_NULL_TERMINATED; +GtkWidget *gtk_recent_chooser_dialog_new_for_manager (const gchar *title, + GtkWindow *parent, + GtkRecentManager *manager, + const gchar *first_button_text, + ...) G_GNUC_NULL_TERMINATED; + +G_END_DECLS + +#endif /* __GTK_RECENT_CHOOSER_DIALOG_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchoosermenu.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchoosermenu.h new file mode 100644 index 00000000..200233f9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchoosermenu.h @@ -0,0 +1,70 @@ +/* GTK - The GIMP Toolkit + * gtkrecentchoosermenu.h - Recently used items menu widget + * Copyright (C) 2006, Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_RECENT_CHOOSER_MENU_H__ +#define __GTK_RECENT_CHOOSER_MENU_H__ + +#include <gtk/gtkmenu.h> +#include "gtkrecentchooser.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_CHOOSER_MENU (gtk_recent_chooser_menu_get_type ()) +#define GTK_RECENT_CHOOSER_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_CHOOSER_MENU, GtkRecentChooserMenu)) +#define GTK_IS_RECENT_CHOOSER_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_CHOOSER_MENU)) +#define GTK_RECENT_CHOOSER_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_CHOOSER_MENU, GtkRecentChooserMenuClass)) +#define GTK_IS_RECENT_CHOOSER_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_CHOOSER_MENU)) +#define GTK_RECENT_CHOOSER_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_CHOOSER_MENU, GtkRecentChooserMenuClass)) + +typedef struct _GtkRecentChooserMenu GtkRecentChooserMenu; +typedef struct _GtkRecentChooserMenuClass GtkRecentChooserMenuClass; +typedef struct _GtkRecentChooserMenuPrivate GtkRecentChooserMenuPrivate; + +struct _GtkRecentChooserMenu +{ + /*< private >*/ + GtkMenu parent_instance; + + GtkRecentChooserMenuPrivate *priv; +}; + +struct _GtkRecentChooserMenuClass +{ + GtkMenuClass parent_class; + + /* padding for future expansion */ + void (* gtk_recent1) (void); + void (* gtk_recent2) (void); + void (* gtk_recent3) (void); + void (* gtk_recent4) (void); +}; + +GType gtk_recent_chooser_menu_get_type (void) G_GNUC_CONST; + +GtkWidget *gtk_recent_chooser_menu_new (void); +GtkWidget *gtk_recent_chooser_menu_new_for_manager (GtkRecentManager *manager); + +gboolean gtk_recent_chooser_menu_get_show_numbers (GtkRecentChooserMenu *menu); +void gtk_recent_chooser_menu_set_show_numbers (GtkRecentChooserMenu *menu, + gboolean show_numbers); + +G_END_DECLS + +#endif /* ! __GTK_RECENT_CHOOSER_MENU_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchooserwidget.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchooserwidget.h new file mode 100644 index 00000000..96aea95f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentchooserwidget.h @@ -0,0 +1,60 @@ +/* GTK - The GIMP Toolkit + * gtkrecentchooserwidget.h: embeddable recently used resources chooser widget + * Copyright (C) 2006 Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_RECENT_CHOOSER_WIDGET_H__ +#define __GTK_RECENT_CHOOSER_WIDGET_H__ + +#include "gtkrecentchooser.h" +#include <gtk/gtkvbox.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_CHOOSER_WIDGET (gtk_recent_chooser_widget_get_type ()) +#define GTK_RECENT_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_CHOOSER_WIDGET, GtkRecentChooserWidget)) +#define GTK_IS_RECENT_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_CHOOSER_WIDGET)) +#define GTK_RECENT_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_CHOOSER_WIDGET, GtkRecentChooserWidgetClass)) +#define GTK_IS_RECENT_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_CHOOSER_WIDGET)) +#define GTK_RECENT_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_CHOOSER_WIDGET, GtkRecentChooserWidgetClass)) + +typedef struct _GtkRecentChooserWidget GtkRecentChooserWidget; +typedef struct _GtkRecentChooserWidgetClass GtkRecentChooserWidgetClass; + +typedef struct _GtkRecentChooserWidgetPrivate GtkRecentChooserWidgetPrivate; + +struct _GtkRecentChooserWidget +{ + /*< private >*/ + GtkVBox parent_instance; + + GtkRecentChooserWidgetPrivate *priv; +}; + +struct _GtkRecentChooserWidgetClass +{ + GtkVBoxClass parent_class; +}; + +GType gtk_recent_chooser_widget_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_recent_chooser_widget_new (void); +GtkWidget *gtk_recent_chooser_widget_new_for_manager (GtkRecentManager *manager); + +G_END_DECLS + +#endif /* __GTK_RECENT_CHOOSER_WIDGET_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentfilter.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentfilter.h new file mode 100644 index 00000000..28f6fe7a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentfilter.h @@ -0,0 +1,90 @@ +/* GTK - The GIMP Toolkit + * gtkrecentfilter.h - Filter object for recently used resources + * Copyright (C) 2006, Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_RECENT_FILTER_H__ +#define __GTK_RECENT_FILTER_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_FILTER (gtk_recent_filter_get_type ()) +#define GTK_RECENT_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_FILTER, GtkRecentFilter)) +#define GTK_IS_RECENT_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_FILTER)) + +typedef struct _GtkRecentFilter GtkRecentFilter; +typedef struct _GtkRecentFilterInfo GtkRecentFilterInfo; + +typedef enum { + GTK_RECENT_FILTER_URI = 1 << 0, + GTK_RECENT_FILTER_DISPLAY_NAME = 1 << 1, + GTK_RECENT_FILTER_MIME_TYPE = 1 << 2, + GTK_RECENT_FILTER_APPLICATION = 1 << 3, + GTK_RECENT_FILTER_GROUP = 1 << 4, + GTK_RECENT_FILTER_AGE = 1 << 5 +} GtkRecentFilterFlags; + +typedef gboolean (*GtkRecentFilterFunc) (const GtkRecentFilterInfo *filter_info, + gpointer user_data); + +struct _GtkRecentFilterInfo +{ + GtkRecentFilterFlags contains; + + const gchar *uri; + const gchar *display_name; + const gchar *mime_type; + const gchar **applications; + const gchar **groups; + + gint age; +}; + +GType gtk_recent_filter_get_type (void) G_GNUC_CONST; + +GtkRecentFilter * gtk_recent_filter_new (void); +void gtk_recent_filter_set_name (GtkRecentFilter *filter, + const gchar *name); +G_CONST_RETURN gchar *gtk_recent_filter_get_name (GtkRecentFilter *filter); + +void gtk_recent_filter_add_mime_type (GtkRecentFilter *filter, + const gchar *mime_type); +void gtk_recent_filter_add_pattern (GtkRecentFilter *filter, + const gchar *pattern); +void gtk_recent_filter_add_pixbuf_formats (GtkRecentFilter *filter); +void gtk_recent_filter_add_application (GtkRecentFilter *filter, + const gchar *application); +void gtk_recent_filter_add_group (GtkRecentFilter *filter, + const gchar *group); +void gtk_recent_filter_add_age (GtkRecentFilter *filter, + gint days); +void gtk_recent_filter_add_custom (GtkRecentFilter *filter, + GtkRecentFilterFlags needed, + GtkRecentFilterFunc func, + gpointer data, + GDestroyNotify data_destroy); + +GtkRecentFilterFlags gtk_recent_filter_get_needed (GtkRecentFilter *filter); +gboolean gtk_recent_filter_filter (GtkRecentFilter *filter, + const GtkRecentFilterInfo *filter_info); + +G_END_DECLS + +#endif /* ! __GTK_RECENT_FILTER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentmanager.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentmanager.h new file mode 100644 index 00000000..b184b3fa --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkrecentmanager.h @@ -0,0 +1,213 @@ +/* GTK - The GIMP Toolkit + * gtkrecentmanager.h: a manager for the recently used resources + * + * Copyright (C) 2006 Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + */ + +#ifndef __GTK_RECENT_MANAGER_H__ +#define __GTK_RECENT_MANAGER_H__ + +#include <glib-object.h> +#include <gdk/gdkscreen.h> +#include <gdk-pixbuf/gdk-pixbuf.h> +#include <time.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_INFO (gtk_recent_info_get_type ()) + +#define GTK_TYPE_RECENT_MANAGER (gtk_recent_manager_get_type ()) +#define GTK_RECENT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManager)) +#define GTK_IS_RECENT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_MANAGER)) +#define GTK_RECENT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerClass)) +#define GTK_IS_RECENT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_MANAGER)) +#define GTK_RECENT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerClass)) + +typedef struct _GtkRecentInfo GtkRecentInfo; +typedef struct _GtkRecentData GtkRecentData; +typedef struct _GtkRecentManager GtkRecentManager; +typedef struct _GtkRecentManagerClass GtkRecentManagerClass; +typedef struct _GtkRecentManagerPrivate GtkRecentManagerPrivate; + +/** + * GtkRecentData: + * @display_name: a UTF-8 encoded string, containing the name of the recently + * used resource to be displayed, or %NULL; + * @description: a UTF-8 encoded string, containing a short description of + * the resource, or %NULL; + * @mime_type: the MIME type of the resource; + * @app_name: the name of the application that is registering this recently + * used resource; + * @app_exec: command line used to launch this resource; may contain the + * "%f" and "%u" escape characters which will be expanded + * to the resource file path and URI respectively when the command line + * is retrieved; + * @groups: a vector of strings containing groups names; + * @is_private: whether this resource should be displayed only by the + * applications that have registered it or not. + * + * Meta-data to be passed to gtk_recent_manager_add_full() when + * registering a recently used resource. + **/ +struct _GtkRecentData +{ + gchar *display_name; + gchar *description; + + gchar *mime_type; + + gchar *app_name; + gchar *app_exec; + + gchar **groups; + + gboolean is_private; +}; + +struct _GtkRecentManager +{ + /*< private >*/ + GObject parent_instance; + + GtkRecentManagerPrivate *priv; +}; + +struct _GtkRecentManagerClass +{ + /*< private >*/ + GObjectClass parent_class; + + void (*changed) (GtkRecentManager *manager); + + /* padding for future expansion */ + void (*_gtk_recent1) (void); + void (*_gtk_recent2) (void); + void (*_gtk_recent3) (void); + void (*_gtk_recent4) (void); +}; + +/** + * GtkRecentManagerError: + * @GTK_RECENT_MANAGER_ERROR_NOT_FOUND: the URI specified does not exists in + * the recently used resources list. + * @GTK_RECENT_MANAGER_ERROR_INVALID_URI: the URI specified is not valid. + * @GTK_RECENT_MANAGER_ERROR_INVALID_ENCODING: the supplied string is not + * UTF-8 encoded. + * @GTK_RECENT_MANAGER_ERROR_NOT_REGISTERED: no application has registered + * the specified item. + * @GTK_RECENT_MANAGER_ERROR_READ: failure while reading the recently used + * resources file. + * @GTK_RECENT_MANAGER_ERROR_WRITE: failure while writing the recently used + * resources file. + * @GTK_RECENT_MANAGER_ERROR_UNKNOWN: unspecified error. + * + * Error codes for GtkRecentManager operations + **/ +typedef enum +{ + GTK_RECENT_MANAGER_ERROR_NOT_FOUND, + GTK_RECENT_MANAGER_ERROR_INVALID_URI, + GTK_RECENT_MANAGER_ERROR_INVALID_ENCODING, + GTK_RECENT_MANAGER_ERROR_NOT_REGISTERED, + GTK_RECENT_MANAGER_ERROR_READ, + GTK_RECENT_MANAGER_ERROR_WRITE, + GTK_RECENT_MANAGER_ERROR_UNKNOWN +} GtkRecentManagerError; + +#define GTK_RECENT_MANAGER_ERROR (gtk_recent_manager_error_quark ()) +GQuark gtk_recent_manager_error_quark (void); + + +GType gtk_recent_manager_get_type (void) G_GNUC_CONST; + +GtkRecentManager *gtk_recent_manager_new (void); +GtkRecentManager *gtk_recent_manager_get_default (void); + +#ifndef GTK_DISABLE_DEPRECATED +GtkRecentManager *gtk_recent_manager_get_for_screen (GdkScreen *screen); +void gtk_recent_manager_set_screen (GtkRecentManager *manager, + GdkScreen *screen); +#endif + +gboolean gtk_recent_manager_add_item (GtkRecentManager *manager, + const gchar *uri); +gboolean gtk_recent_manager_add_full (GtkRecentManager *manager, + const gchar *uri, + const GtkRecentData *recent_data); +gboolean gtk_recent_manager_remove_item (GtkRecentManager *manager, + const gchar *uri, + GError **error); +GtkRecentInfo * gtk_recent_manager_lookup_item (GtkRecentManager *manager, + const gchar *uri, + GError **error); +gboolean gtk_recent_manager_has_item (GtkRecentManager *manager, + const gchar *uri); +gboolean gtk_recent_manager_move_item (GtkRecentManager *manager, + const gchar *uri, + const gchar *new_uri, + GError **error); +void gtk_recent_manager_set_limit (GtkRecentManager *manager, + gint limit); +gint gtk_recent_manager_get_limit (GtkRecentManager *manager); +GList * gtk_recent_manager_get_items (GtkRecentManager *manager); +gint gtk_recent_manager_purge_items (GtkRecentManager *manager, + GError **error); + + +GType gtk_recent_info_get_type (void) G_GNUC_CONST; + +GtkRecentInfo * gtk_recent_info_ref (GtkRecentInfo *info); +void gtk_recent_info_unref (GtkRecentInfo *info); + +G_CONST_RETURN gchar *gtk_recent_info_get_uri (GtkRecentInfo *info); +G_CONST_RETURN gchar *gtk_recent_info_get_display_name (GtkRecentInfo *info); +G_CONST_RETURN gchar *gtk_recent_info_get_description (GtkRecentInfo *info); +G_CONST_RETURN gchar *gtk_recent_info_get_mime_type (GtkRecentInfo *info); +time_t gtk_recent_info_get_added (GtkRecentInfo *info); +time_t gtk_recent_info_get_modified (GtkRecentInfo *info); +time_t gtk_recent_info_get_visited (GtkRecentInfo *info); +gboolean gtk_recent_info_get_private_hint (GtkRecentInfo *info); +gboolean gtk_recent_info_get_application_info (GtkRecentInfo *info, + const gchar *app_name, + gchar **app_exec, + guint *count, + time_t *time_); +gchar ** gtk_recent_info_get_applications (GtkRecentInfo *info, + gsize *length) G_GNUC_MALLOC; +gchar * gtk_recent_info_last_application (GtkRecentInfo *info) G_GNUC_MALLOC; +gboolean gtk_recent_info_has_application (GtkRecentInfo *info, + const gchar *app_name); +gchar ** gtk_recent_info_get_groups (GtkRecentInfo *info, + gsize *length) G_GNUC_MALLOC; +gboolean gtk_recent_info_has_group (GtkRecentInfo *info, + const gchar *group_name); +GdkPixbuf * gtk_recent_info_get_icon (GtkRecentInfo *info, + gint size); +gchar * gtk_recent_info_get_short_name (GtkRecentInfo *info) G_GNUC_MALLOC; +gchar * gtk_recent_info_get_uri_display (GtkRecentInfo *info) G_GNUC_MALLOC; +gint gtk_recent_info_get_age (GtkRecentInfo *info); +gboolean gtk_recent_info_is_local (GtkRecentInfo *info); +gboolean gtk_recent_info_exists (GtkRecentInfo *info); +gboolean gtk_recent_info_match (GtkRecentInfo *info_a, + GtkRecentInfo *info_b); + +/* private */ +void _gtk_recent_manager_sync (void); + +G_END_DECLS + +#endif /* __GTK_RECENT_MANAGER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkruler.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkruler.h new file mode 100644 index 00000000..7b8fe529 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkruler.h @@ -0,0 +1,128 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +/* + * NOTE this widget is considered too specialized/little-used for + * GTK+, and will in the future be moved to some other package. If + * your application needs this widget, feel free to use it, as the + * widget does work and is useful in some applications; it's just not + * of general interest. However, we are not accepting new features for + * the widget, and it will eventually move out of the GTK+ + * distribution. + */ + +#ifndef __GTK_RULER_H__ +#define __GTK_RULER_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkwidget.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_RULER (gtk_ruler_get_type ()) +#define GTK_RULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RULER, GtkRuler)) +#define GTK_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RULER, GtkRulerClass)) +#define GTK_IS_RULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RULER)) +#define GTK_IS_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RULER)) +#define GTK_RULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RULER, GtkRulerClass)) + + +typedef struct _GtkRuler GtkRuler; +typedef struct _GtkRulerClass GtkRulerClass; +typedef struct _GtkRulerMetric GtkRulerMetric; + +/* All distances below are in 1/72nd's of an inch. (According to + * Adobe that's a point, but points are really 1/72.27 in.) + */ +struct _GtkRuler +{ + GtkWidget widget; + + GdkPixmap *backing_store; + GdkGC *non_gr_exp_gc; /* unused */ + GtkRulerMetric *metric; + gint xsrc, ysrc; + gint slider_size; + + /* The upper limit of the ruler (in points) */ + gdouble lower; + /* The lower limit of the ruler */ + gdouble upper; + /* The position of the mark on the ruler */ + gdouble position; + /* The maximum size of the ruler */ + gdouble max_size; +}; + +struct _GtkRulerClass +{ + GtkWidgetClass parent_class; + + void (* draw_ticks) (GtkRuler *ruler); + void (* draw_pos) (GtkRuler *ruler); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +struct _GtkRulerMetric +{ + gchar *metric_name; + gchar *abbrev; + /* This should be points_per_unit. This is the size of the unit + * in 1/72nd's of an inch and has nothing to do with screen pixels */ + gdouble pixels_per_unit; + gdouble ruler_scale[10]; + gint subdivide[5]; /* five possible modes of subdivision */ +}; + + +GType gtk_ruler_get_type (void) G_GNUC_CONST; +void gtk_ruler_set_metric (GtkRuler *ruler, + GtkMetricType metric); +void gtk_ruler_set_range (GtkRuler *ruler, + gdouble lower, + gdouble upper, + gdouble position, + gdouble max_size); +void gtk_ruler_draw_ticks (GtkRuler *ruler); +void gtk_ruler_draw_pos (GtkRuler *ruler); + +GtkMetricType gtk_ruler_get_metric (GtkRuler *ruler); +void gtk_ruler_get_range (GtkRuler *ruler, + gdouble *lower, + gdouble *upper, + gdouble *position, + gdouble *max_size); + +G_END_DECLS + +#endif /* __GTK_RULER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscale.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscale.h new file mode 100644 index 00000000..b249c290 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscale.h @@ -0,0 +1,102 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_SCALE_H__ +#define __GTK_SCALE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkrange.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_SCALE (gtk_scale_get_type ()) +#define GTK_SCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCALE, GtkScale)) +#define GTK_SCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCALE, GtkScaleClass)) +#define GTK_IS_SCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCALE)) +#define GTK_IS_SCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCALE)) +#define GTK_SCALE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCALE, GtkScaleClass)) + + +typedef struct _GtkScale GtkScale; +typedef struct _GtkScaleClass GtkScaleClass; + +struct _GtkScale +{ + GtkRange range; + + gint digits; + guint draw_value : 1; + guint value_pos : 2; +}; + +struct _GtkScaleClass +{ + GtkRangeClass parent_class; + + gchar* (* format_value) (GtkScale *scale, + gdouble value); + + void (* draw_value) (GtkScale *scale); + + void (* get_layout_offsets) (GtkScale *scale, + gint *x, + gint *y); + /* Padding for future expansion */ + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_scale_get_type (void) G_GNUC_CONST; + +void gtk_scale_set_digits (GtkScale *scale, + gint digits); +gint gtk_scale_get_digits (GtkScale *scale); +void gtk_scale_set_draw_value (GtkScale *scale, + gboolean draw_value); +gboolean gtk_scale_get_draw_value (GtkScale *scale); +void gtk_scale_set_value_pos (GtkScale *scale, + GtkPositionType pos); +GtkPositionType gtk_scale_get_value_pos (GtkScale *scale); + +PangoLayout *gtk_scale_get_layout (GtkScale *scale); +void gtk_scale_get_layout_offsets (GtkScale *scale, + gint *x, + gint *y); +void _gtk_scale_clear_layout (GtkScale *scale); + +void _gtk_scale_get_value_size (GtkScale *scale, + gint *width, + gint *height); +gchar *_gtk_scale_format_value (GtkScale *scale, + gdouble value); + + +G_END_DECLS + +#endif /* __GTK_SCALE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscalebutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscalebutton.h new file mode 100644 index 00000000..0644ace2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscalebutton.h @@ -0,0 +1,97 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2005 Ronald S. Bultje + * Copyright (C) 2006, 2007 Christian Persch + * Copyright (C) 2006 Jan Arne Petersen + * Copyright (C) 2007 Red Hat, Inc. + * + * Authors: + * - Ronald S. Bultje <rbultje@ronald.bitfreak.net> + * - Bastien Nocera <bnocera@redhat.com> + * - Jan Arne Petersen <jpetersen@jpetersen.org> + * - Christian Persch <chpe@svn.gnome.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 2007. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_SCALE_BUTTON_H__ +#define __GTK_SCALE_BUTTON_H__ + +#include <gtk/gtkbutton.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_SCALE_BUTTON (gtk_scale_button_get_type ()) +#define GTK_SCALE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCALE_BUTTON, GtkScaleButton)) +#define GTK_SCALE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCALE_BUTTON, GtkScaleButtonClass)) +#define GTK_IS_SCALE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCALE_BUTTON)) +#define GTK_IS_SCALE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCALE_BUTTON)) +#define GTK_SCALE_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCALE_BUTTON, GtkScaleButtonClass)) + +typedef struct _GtkScaleButton GtkScaleButton; +typedef struct _GtkScaleButtonClass GtkScaleButtonClass; +typedef struct _GtkScaleButtonPrivate GtkScaleButtonPrivate; + +struct _GtkScaleButtonClass +{ + GtkButtonClass parent_class; + + /* signals */ + void (* value_changed) (GtkScaleButton *button, gdouble value); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +struct _GtkScaleButton +{ + GtkButton parent; + + GtkWidget *plus_button; + GtkWidget *minus_button; + + /*< private >*/ + GtkScaleButtonPrivate *priv; +}; + +GType gtk_scale_button_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_scale_button_new (GtkIconSize size, + gdouble min, + gdouble max, + gdouble step, + const gchar **icons); +void gtk_scale_button_set_icons (GtkScaleButton *button, + const gchar **icons); +gdouble gtk_scale_button_get_value (GtkScaleButton *button); +void gtk_scale_button_set_value (GtkScaleButton *button, + gdouble value); +GtkAdjustment* gtk_scale_button_get_adjustment (GtkScaleButton *button); +void gtk_scale_button_set_adjustment (GtkScaleButton *button, + GtkAdjustment *adjustment); + +G_END_DECLS + +#endif /* __GTK_SCALE_BUTTON_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscrollbar.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscrollbar.h new file mode 100644 index 00000000..2fb94e86 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscrollbar.h @@ -0,0 +1,70 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_SCROLLBAR_H__ +#define __GTK_SCROLLBAR_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkrange.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_SCROLLBAR (gtk_scrollbar_get_type ()) +#define GTK_SCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCROLLBAR, GtkScrollbar)) +#define GTK_SCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCROLLBAR, GtkScrollbarClass)) +#define GTK_IS_SCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCROLLBAR)) +#define GTK_IS_SCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCROLLBAR)) +#define GTK_SCROLLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCROLLBAR, GtkScrollbarClass)) + + +typedef struct _GtkScrollbar GtkScrollbar; +typedef struct _GtkScrollbarClass GtkScrollbarClass; + +struct _GtkScrollbar +{ + GtkRange range; +}; + +struct _GtkScrollbarClass +{ + GtkRangeClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_scrollbar_get_type (void) G_GNUC_CONST; + + +G_END_DECLS + +#endif /* __GTK_SCROLLBAR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h new file mode 100644 index 00000000..c9668f37 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h @@ -0,0 +1,133 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_SCROLLED_WINDOW_H__ +#define __GTK_SCROLLED_WINDOW_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkhscrollbar.h> +#include <gtk/gtkvscrollbar.h> +#include <gtk/gtkviewport.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_SCROLLED_WINDOW (gtk_scrolled_window_get_type ()) +#define GTK_SCROLLED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindow)) +#define GTK_SCROLLED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindowClass)) +#define GTK_IS_SCROLLED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCROLLED_WINDOW)) +#define GTK_IS_SCROLLED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCROLLED_WINDOW)) +#define GTK_SCROLLED_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindowClass)) + + + +typedef struct _GtkScrolledWindow GtkScrolledWindow; +typedef struct _GtkScrolledWindowClass GtkScrolledWindowClass; + +struct _GtkScrolledWindow +{ + GtkBin container; + + /*< public >*/ + GtkWidget *hscrollbar; + GtkWidget *vscrollbar; + + /*< private >*/ + guint hscrollbar_policy : 2; + guint vscrollbar_policy : 2; + guint hscrollbar_visible : 1; + guint vscrollbar_visible : 1; + guint window_placement : 2; + guint focus_out : 1; /* Flag used by ::move-focus-out implementation */ + + guint16 shadow_type; +}; + +struct _GtkScrolledWindowClass +{ + GtkBinClass parent_class; + + gint scrollbar_spacing; + + /* Action signals for keybindings. Do not connect to these signals + */ + + /* Unfortunately, GtkScrollType is deficient in that there is + * no horizontal/vertical variants for GTK_SCROLL_START/END, + * so we have to add an additional boolean flag. + */ + gboolean (*scroll_child) (GtkScrolledWindow *scrolled_window, + GtkScrollType scroll, + gboolean horizontal); + + void (* move_focus_out) (GtkScrolledWindow *scrolled_window, + GtkDirectionType direction); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_scrolled_window_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_scrolled_window_new (GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); +void gtk_scrolled_window_set_hadjustment (GtkScrolledWindow *scrolled_window, + GtkAdjustment *hadjustment); +void gtk_scrolled_window_set_vadjustment (GtkScrolledWindow *scrolled_window, + GtkAdjustment *vadjustment); +GtkAdjustment* gtk_scrolled_window_get_hadjustment (GtkScrolledWindow *scrolled_window); +GtkAdjustment* gtk_scrolled_window_get_vadjustment (GtkScrolledWindow *scrolled_window); +GtkWidget* gtk_scrolled_window_get_hscrollbar (GtkScrolledWindow *scrolled_window); +GtkWidget* gtk_scrolled_window_get_vscrollbar (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_set_policy (GtkScrolledWindow *scrolled_window, + GtkPolicyType hscrollbar_policy, + GtkPolicyType vscrollbar_policy); +void gtk_scrolled_window_get_policy (GtkScrolledWindow *scrolled_window, + GtkPolicyType *hscrollbar_policy, + GtkPolicyType *vscrollbar_policy); +void gtk_scrolled_window_set_placement (GtkScrolledWindow *scrolled_window, + GtkCornerType window_placement); +void gtk_scrolled_window_unset_placement (GtkScrolledWindow *scrolled_window); + +GtkCornerType gtk_scrolled_window_get_placement (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_set_shadow_type (GtkScrolledWindow *scrolled_window, + GtkShadowType type); +GtkShadowType gtk_scrolled_window_get_shadow_type (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_add_with_viewport (GtkScrolledWindow *scrolled_window, + GtkWidget *child); + +gint _gtk_scrolled_window_get_scrollbar_spacing (GtkScrolledWindow *scrolled_window); + + +G_END_DECLS + + +#endif /* __GTK_SCROLLED_WINDOW_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksearchengine.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksearchengine.h new file mode 100644 index 00000000..c8611083 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksearchengine.h @@ -0,0 +1,99 @@ +/* + * Copyright (C) 2005 Novell, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * + * Author: Anders Carlsson <andersca@imendio.com> + * + * Based on nautilus-search-engine.h + */ + +#ifndef __GTK_SEARCH_ENGINE_H__ +#define __GTK_SEARCH_ENGINE_H__ + +/* This is a "semi-private" header; it is meant only for + * alternate GtkFileChooser implementations; no stability guarantees + * are made at this point + */ +#ifndef GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED +#error "gtkfilechooserprivate.h is not supported API for general use" +#endif + +#include <glib-object.h> +#include "gtkquery.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_SEARCH_ENGINE (_gtk_search_engine_get_type ()) +#define GTK_SEARCH_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEARCH_ENGINE, GtkSearchEngine)) +#define GTK_SEARCH_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEARCH_ENGINE, GtkSearchEngineClass)) +#define GTK_IS_SEARCH_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEARCH_ENGINE)) +#define GTK_IS_SEARCH_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEARCH_ENGINE)) +#define GTK_SEARCH_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEARCH_ENGINE, GtkSearchEngineClass)) + +typedef struct _GtkSearchEngine GtkSearchEngine; +typedef struct _GtkSearchEngineClass GtkSearchEngineClass; +typedef struct _GtkSearchEnginePrivate GtkSearchEnginePrivate; + +struct _GtkSearchEngine +{ + GObject parent; + + GtkSearchEnginePrivate *priv; +}; + +struct _GtkSearchEngineClass +{ + GObjectClass parent_class; + + /* VTable */ + void (*set_query) (GtkSearchEngine *engine, + GtkQuery *query); + void (*start) (GtkSearchEngine *engine); + void (*stop) (GtkSearchEngine *engine); + gboolean (*is_indexed) (GtkSearchEngine *engine); + + /* Signals */ + void (*hits_added) (GtkSearchEngine *engine, + GList *hits); + void (*hits_subtracted) (GtkSearchEngine *engine, + GList *hits); + void (*finished) (GtkSearchEngine *engine); + void (*error) (GtkSearchEngine *engine, + const gchar *error_message); +}; + +GType _gtk_search_engine_get_type (void); +gboolean _gtk_search_engine_enabled (void); + +GtkSearchEngine* _gtk_search_engine_new (void); + +void _gtk_search_engine_set_query (GtkSearchEngine *engine, + GtkQuery *query); +void _gtk_search_engine_start (GtkSearchEngine *engine); +void _gtk_search_engine_stop (GtkSearchEngine *engine); +gboolean _gtk_search_engine_is_indexed (GtkSearchEngine *engine); + +void _gtk_search_engine_hits_added (GtkSearchEngine *engine, + GList *hits); +void _gtk_search_engine_hits_subtracted (GtkSearchEngine *engine, + GList *hits); +void _gtk_search_engine_finished (GtkSearchEngine *engine); +void _gtk_search_engine_error (GtkSearchEngine *engine, + const gchar *error_message); + +G_END_DECLS + +#endif /* __GTK_SEARCH_ENGINE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkselection.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkselection.h new file mode 100644 index 00000000..9e97ae2a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkselection.h @@ -0,0 +1,209 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_SELECTION_H__ +#define __GTK_SELECTION_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkenums.h> +#include <gtk/gtkwidget.h> +#include <gtk/gtktextiter.h> + +G_BEGIN_DECLS + +typedef struct _GtkTargetList GtkTargetList; +typedef struct _GtkTargetEntry GtkTargetEntry; + +#define GTK_TYPE_SELECTION_DATA (gtk_selection_data_get_type ()) +#define GTK_TYPE_TARGET_LIST (gtk_target_list_get_type ()) + +/* The contents of a selection are returned in a GtkSelectionData + * structure. selection/target identify the request. type specifies + * the type of the return; if length < 0, and the data should be + * ignored. This structure has object semantics - no fields should be + * modified directly, they should not be created directly, and + * pointers to them should not be stored beyond the duration of a + * callback. (If the last is changed, we'll need to add reference + * counting.) The time field gives the timestamp at which the data was + * sent. + */ + +struct _GtkSelectionData +{ + GdkAtom selection; + GdkAtom target; + GdkAtom type; + gint format; + guchar *data; + gint length; + GdkDisplay *display; +}; + +struct _GtkTargetEntry { + gchar *target; + guint flags; + guint info; +}; + +/* These structures not public, and are here only for the convenience of + * gtkdnd.c + */ + +typedef struct _GtkTargetPair GtkTargetPair; + +/* This structure is a list of destinations, and associated guint id's */ +struct _GtkTargetList { + GList *list; + guint ref_count; +}; + +struct _GtkTargetPair { + GdkAtom target; + guint flags; + guint info; +}; + +GtkTargetList *gtk_target_list_new (const GtkTargetEntry *targets, + guint ntargets); +GtkTargetList *gtk_target_list_ref (GtkTargetList *list); +void gtk_target_list_unref (GtkTargetList *list); +void gtk_target_list_add (GtkTargetList *list, + GdkAtom target, + guint flags, + guint info); +void gtk_target_list_add_text_targets (GtkTargetList *list, + guint info); +void gtk_target_list_add_rich_text_targets (GtkTargetList *list, + guint info, + gboolean deserializable, + GtkTextBuffer *buffer); +void gtk_target_list_add_image_targets (GtkTargetList *list, + guint info, + gboolean writable); +void gtk_target_list_add_uri_targets (GtkTargetList *list, + guint info); +void gtk_target_list_add_table (GtkTargetList *list, + const GtkTargetEntry *targets, + guint ntargets); +void gtk_target_list_remove (GtkTargetList *list, + GdkAtom target); +gboolean gtk_target_list_find (GtkTargetList *list, + GdkAtom target, + guint *info); + +GtkTargetEntry * gtk_target_table_new_from_list (GtkTargetList *list, + gint *n_targets); +void gtk_target_table_free (GtkTargetEntry *targets, + gint n_targets); + +/* Public interface */ + +gboolean gtk_selection_owner_set (GtkWidget *widget, + GdkAtom selection, + guint32 time_); +gboolean gtk_selection_owner_set_for_display (GdkDisplay *display, + GtkWidget *widget, + GdkAtom selection, + guint32 time_); + +void gtk_selection_add_target (GtkWidget *widget, + GdkAtom selection, + GdkAtom target, + guint info); +void gtk_selection_add_targets (GtkWidget *widget, + GdkAtom selection, + const GtkTargetEntry *targets, + guint ntargets); +void gtk_selection_clear_targets (GtkWidget *widget, + GdkAtom selection); +gboolean gtk_selection_convert (GtkWidget *widget, + GdkAtom selection, + GdkAtom target, + guint32 time_); +void gtk_selection_data_set (GtkSelectionData *selection_data, + GdkAtom type, + gint format, + const guchar *data, + gint length); +gboolean gtk_selection_data_set_text (GtkSelectionData *selection_data, + const gchar *str, + gint len); +guchar * gtk_selection_data_get_text (GtkSelectionData *selection_data); +gboolean gtk_selection_data_set_pixbuf (GtkSelectionData *selection_data, + GdkPixbuf *pixbuf); +GdkPixbuf *gtk_selection_data_get_pixbuf (GtkSelectionData *selection_data); +gboolean gtk_selection_data_set_uris (GtkSelectionData *selection_data, + gchar **uris); +gchar **gtk_selection_data_get_uris (GtkSelectionData *selection_data); + +gboolean gtk_selection_data_get_targets (GtkSelectionData *selection_data, + GdkAtom **targets, + gint *n_atoms); +gboolean gtk_selection_data_targets_include_text (GtkSelectionData *selection_data); +gboolean gtk_selection_data_targets_include_rich_text (GtkSelectionData *selection_data, + GtkTextBuffer *buffer); +gboolean gtk_selection_data_targets_include_image (GtkSelectionData *selection_data, + gboolean writable); +gboolean gtk_selection_data_targets_include_uri (GtkSelectionData *selection_data); +gboolean gtk_targets_include_text (GdkAtom *targets, + gint n_targets); +gboolean gtk_targets_include_rich_text (GdkAtom *targets, + gint n_targets, + GtkTextBuffer *buffer); +gboolean gtk_targets_include_image (GdkAtom *targets, + gint n_targets, + gboolean writable); +gboolean gtk_targets_include_uri (GdkAtom *targets, + gint n_targets); + +/* Called when a widget is destroyed */ + +void gtk_selection_remove_all (GtkWidget *widget); + +/* Event handlers */ +#if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) +gboolean gtk_selection_clear (GtkWidget *widget, + GdkEventSelection *event); +#endif +gboolean _gtk_selection_request (GtkWidget *widget, + GdkEventSelection *event); +gboolean _gtk_selection_incr_event (GdkWindow *window, + GdkEventProperty *event); +gboolean _gtk_selection_notify (GtkWidget *widget, + GdkEventSelection *event); +gboolean _gtk_selection_property_notify (GtkWidget *widget, + GdkEventProperty *event); + +GType gtk_selection_data_get_type (void) G_GNUC_CONST; +GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data); +void gtk_selection_data_free (GtkSelectionData *data); + +GType gtk_target_list_get_type (void) G_GNUC_CONST; + +G_END_DECLS + +#endif /* __GTK_SELECTION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkseparator.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkseparator.h new file mode 100644 index 00000000..5ea35644 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkseparator.h @@ -0,0 +1,65 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_SEPARATOR_H__ +#define __GTK_SEPARATOR_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkwidget.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_SEPARATOR (gtk_separator_get_type ()) +#define GTK_SEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEPARATOR, GtkSeparator)) +#define GTK_SEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR, GtkSeparatorClass)) +#define GTK_IS_SEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEPARATOR)) +#define GTK_IS_SEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR)) +#define GTK_SEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEPARATOR, GtkSeparatorClass)) + + + +typedef struct _GtkSeparator GtkSeparator; +typedef struct _GtkSeparatorClass GtkSeparatorClass; + +struct _GtkSeparator +{ + GtkWidget widget; +}; + +struct _GtkSeparatorClass +{ + GtkWidgetClass parent_class; +}; + + +GType gtk_separator_get_type (void) G_GNUC_CONST; + + +G_END_DECLS + +#endif /* __GTK_SEPARATOR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkseparatormenuitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkseparatormenuitem.h new file mode 100644 index 00000000..fe4f96bf --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkseparatormenuitem.h @@ -0,0 +1,64 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_SEPARATOR_MENU_ITEM_H__ +#define __GTK_SEPARATOR_MENU_ITEM_H__ + +#include <gdk/gdk.h> +#include <gtk/gtkmenuitem.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_SEPARATOR_MENU_ITEM (gtk_separator_menu_item_get_type ()) +#define GTK_SEPARATOR_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEPARATOR_MENU_ITEM, GtkSeparatorMenuItem)) +#define GTK_SEPARATOR_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR_MENU_ITEM, GtkSeparatorMenuItemClass)) +#define GTK_IS_SEPARATOR_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEPARATOR_MENU_ITEM)) +#define GTK_IS_SEPARATOR_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR_MENU_ITEM)) +#define GTK_SEPARATOR_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEPARATOR_MENU_ITEM, GtkSeparatorMenuItemClass)) + + +typedef struct _GtkSeparatorMenuItem GtkSeparatorMenuItem; +typedef struct _GtkSeparatorMenuItemClass GtkSeparatorMenuItemClass; + +struct _GtkSeparatorMenuItem +{ + GtkMenuItem menu_item; +}; + +struct _GtkSeparatorMenuItemClass +{ + GtkMenuItemClass parent_class; +}; + + +GType gtk_separator_menu_item_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_separator_menu_item_new (void); + + +G_END_DECLS + +#endif /* __GTK_SEPARATOR_MENU_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkseparatortoolitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkseparatortoolitem.h new file mode 100644 index 00000000..55e404be --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkseparatortoolitem.h @@ -0,0 +1,68 @@ +/* gtktoggletoolbutton.h + * + * Copyright (C) 2002 Anders Carlsson <andersca@gnome.org> + * Copyright (C) 2002 James Henstridge <james@daa.com.au> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_SEPARATOR_TOOL_ITEM_H__ +#define __GTK_SEPARATOR_TOOL_ITEM_H__ + +#include "gtktoolitem.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_SEPARATOR_TOOL_ITEM (gtk_separator_tool_item_get_type ()) +#define GTK_SEPARATOR_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItem)) +#define GTK_SEPARATOR_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItemClass)) +#define GTK_IS_SEPARATOR_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM)) +#define GTK_IS_SEPARATOR_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR_TOOL_ITEM)) +#define GTK_SEPARATOR_TOOL_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItemClass)) + +typedef struct _GtkSeparatorToolItem GtkSeparatorToolItem; +typedef struct _GtkSeparatorToolItemClass GtkSeparatorToolItemClass; +typedef struct _GtkSeparatorToolItemPrivate GtkSeparatorToolItemPrivate; + +struct _GtkSeparatorToolItem +{ + GtkToolItem parent; + + /*< private >*/ + GtkSeparatorToolItemPrivate *priv; +}; + +struct _GtkSeparatorToolItemClass +{ + GtkToolItemClass parent_class; + + /* Padding for future expansion */ + void (* _gtk_reserved1) (void); + void (* _gtk_reserved2) (void); + void (* _gtk_reserved3) (void); + void (* _gtk_reserved4) (void); +}; + +GType gtk_separator_tool_item_get_type (void) G_GNUC_CONST; +GtkToolItem *gtk_separator_tool_item_new (void); + +gboolean gtk_separator_tool_item_get_draw (GtkSeparatorToolItem *item); +void gtk_separator_tool_item_set_draw (GtkSeparatorToolItem *item, + gboolean draw); + +G_END_DECLS + +#endif /* __GTK_SEPARATOR_TOOL_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksettings.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksettings.h new file mode 100644 index 00000000..f058e00a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksettings.h @@ -0,0 +1,133 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ +#ifndef __GTK_SETTINGS_H__ +#define __GTK_SETTINGS_H__ + +#include <gtk/gtkrc.h> + +G_BEGIN_DECLS + + +/* -- type macros --- */ +#define GTK_TYPE_SETTINGS (gtk_settings_get_type ()) +#define GTK_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SETTINGS, GtkSettings)) +#define GTK_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SETTINGS, GtkSettingsClass)) +#define GTK_IS_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SETTINGS)) +#define GTK_IS_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SETTINGS)) +#define GTK_SETTINGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SETTINGS, GtkSettingsClass)) + + +/* --- typedefs --- */ +typedef struct _GtkSettingsClass GtkSettingsClass; +typedef struct _GtkSettingsValue GtkSettingsValue; +typedef struct _GtkSettingsPropertyValue GtkSettingsPropertyValue; /* Internal */ + + +/* --- structures --- */ +struct _GtkSettings +{ + GObject parent_instance; + + GData *queued_settings; /* of type GtkSettingsValue* */ + GtkSettingsPropertyValue *property_values; + + GtkRcContext *rc_context; + GdkScreen *screen; +}; +struct _GtkSettingsClass +{ + GObjectClass parent_class; + +}; +struct _GtkSettingsValue +{ + /* origin should be something like "filename:linenumber" for rc files, + * or e.g. "XProperty" for other sources + */ + gchar *origin; + + /* valid types are LONG, DOUBLE and STRING corresponding to the token parsed, + * or a GSTRING holding an unparsed statement + */ + GValue value; +}; + + +/* --- functions --- */ +GType gtk_settings_get_type (void) G_GNUC_CONST; +#ifndef GDK_MULTIHEAD_SAFE +GtkSettings* gtk_settings_get_default (void); +#endif +GtkSettings* gtk_settings_get_for_screen (GdkScreen *screen); + +void gtk_settings_install_property (GParamSpec *pspec); +void gtk_settings_install_property_parser (GParamSpec *pspec, + GtkRcPropertyParser parser); + +/* --- precoded parsing functions --- */ +gboolean gtk_rc_property_parse_color (const GParamSpec *pspec, + const GString *gstring, + GValue *property_value); +gboolean gtk_rc_property_parse_enum (const GParamSpec *pspec, + const GString *gstring, + GValue *property_value); +gboolean gtk_rc_property_parse_flags (const GParamSpec *pspec, + const GString *gstring, + GValue *property_value); +gboolean gtk_rc_property_parse_requisition (const GParamSpec *pspec, + const GString *gstring, + GValue *property_value); +gboolean gtk_rc_property_parse_border (const GParamSpec *pspec, + const GString *gstring, + GValue *property_value); + +/*< private >*/ +void gtk_settings_set_property_value (GtkSettings *settings, + const gchar *name, + const GtkSettingsValue *svalue); +void gtk_settings_set_string_property (GtkSettings *settings, + const gchar *name, + const gchar *v_string, + const gchar *origin); +void gtk_settings_set_long_property (GtkSettings *settings, + const gchar *name, + glong v_long, + const gchar *origin); +void gtk_settings_set_double_property (GtkSettings *settings, + const gchar *name, + gdouble v_double, + const gchar *origin); + + +/* implementation details */ +void _gtk_settings_set_property_value_from_rc (GtkSettings *settings, + const gchar *name, + const GtkSettingsValue *svalue); +void _gtk_settings_reset_rc_values (GtkSettings *settings); + +void _gtk_settings_handle_event (GdkEventSetting *event); +GtkRcPropertyParser _gtk_rc_property_parser_from_type (GType type); +gboolean _gtk_settings_parse_convert (GtkRcPropertyParser parser, + const GValue *src_value, + GParamSpec *pspec, + GValue *dest_value); + + +G_END_DECLS + +#endif /* __GTK_SETTINGS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksignal.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksignal.h new file mode 100644 index 00000000..56bbe0b4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksignal.h @@ -0,0 +1,151 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_SIGNAL_H__ +#define __GTK_SIGNAL_H__ + + +#include <gtk/gtkenums.h> +#include <gtk/gtkobject.h> +#include <gtk/gtkmarshal.h> + +G_BEGIN_DECLS + +#ifndef GTK_DISABLE_DEPRECATED + +#define gtk_signal_default_marshaller g_cclosure_marshal_VOID__VOID + + +/* --- compat defines --- */ +#define GTK_SIGNAL_OFFSET GTK_STRUCT_OFFSET +#define gtk_signal_lookup(name,object_type) \ + g_signal_lookup ((name), (object_type)) +#define gtk_signal_name(signal_id) \ + g_signal_name (signal_id) +#define gtk_signal_emit_stop(object,signal_id) \ + g_signal_stop_emission ((object), (signal_id), 0) +#define gtk_signal_connect(object,name,func,func_data) \ + gtk_signal_connect_full ((object), (name), (func), NULL, (func_data), NULL, 0, 0) +#define gtk_signal_connect_after(object,name,func,func_data) \ + gtk_signal_connect_full ((object), (name), (func), NULL, (func_data), NULL, 0, 1) +#define gtk_signal_connect_object(object,name,func,slot_object) \ + gtk_signal_connect_full ((object), (name), (func), NULL, (slot_object), NULL, 1, 0) +#define gtk_signal_connect_object_after(object,name,func,slot_object) \ + gtk_signal_connect_full ((object), (name), (func), NULL, (slot_object), NULL, 1, 1) +#define gtk_signal_disconnect(object,handler_id) \ + g_signal_handler_disconnect ((object), (handler_id)) +#define gtk_signal_handler_block(object,handler_id) \ + g_signal_handler_block ((object), (handler_id)) +#define gtk_signal_handler_unblock(object,handler_id) \ + g_signal_handler_unblock ((object), (handler_id)) +#define gtk_signal_disconnect_by_func(object,func,data) \ + gtk_signal_compat_matched ((object), (func), (data), \ + (GSignalMatchType)(G_SIGNAL_MATCH_FUNC | \ + G_SIGNAL_MATCH_DATA), 0) +#define gtk_signal_disconnect_by_data(object,data) \ + gtk_signal_compat_matched ((object), 0, (data), G_SIGNAL_MATCH_DATA, 0) +#define gtk_signal_handler_block_by_func(object,func,data) \ + gtk_signal_compat_matched ((object), (func), (data), \ + (GSignalMatchType)(G_SIGNAL_MATCH_FUNC | \ + G_SIGNAL_MATCH_DATA), 1) +#define gtk_signal_handler_block_by_data(object,data) \ + gtk_signal_compat_matched ((object), 0, (data), G_SIGNAL_MATCH_DATA, 1) +#define gtk_signal_handler_unblock_by_func(object,func,data) \ + gtk_signal_compat_matched ((object), (func), (data), \ + (GSignalMatchType)(G_SIGNAL_MATCH_FUNC | \ + G_SIGNAL_MATCH_DATA), 2) +#define gtk_signal_handler_unblock_by_data(object,data) \ + gtk_signal_compat_matched ((object), 0, (data), G_SIGNAL_MATCH_DATA, 2) +#define gtk_signal_handler_pending(object,signal_id,may_be_blocked) \ + g_signal_has_handler_pending ((object), (signal_id), 0, (may_be_blocked)) +#define gtk_signal_handler_pending_by_func(object,signal_id,may_be_blocked,func,data) \ + (g_signal_handler_find ((object), \ + (GSignalMatchType)(G_SIGNAL_MATCH_ID | \ + G_SIGNAL_MATCH_FUNC | \ + G_SIGNAL_MATCH_DATA | \ + ((may_be_blocked) ? 0 : G_SIGNAL_MATCH_UNBLOCKED)),\ + (signal_id), 0, 0, (func), (data)) != 0) + + +/* --- compat functions --- */ +guint gtk_signal_newv (const gchar *name, + GtkSignalRunType signal_flags, + GtkType object_type, + guint function_offset, + GtkSignalMarshaller marshaller, + GtkType return_val, + guint n_args, + GtkType *args); +guint gtk_signal_new (const gchar *name, + GtkSignalRunType signal_flags, + GtkType object_type, + guint function_offset, + GtkSignalMarshaller marshaller, + GtkType return_val, + guint n_args, + ...); +void gtk_signal_emit_stop_by_name (GtkObject *object, + const gchar *name); +void gtk_signal_connect_object_while_alive (GtkObject *object, + const gchar *name, + GtkSignalFunc func, + GtkObject *alive_object); +void gtk_signal_connect_while_alive (GtkObject *object, + const gchar *name, + GtkSignalFunc func, + gpointer func_data, + GtkObject *alive_object); +gulong gtk_signal_connect_full (GtkObject *object, + const gchar *name, + GtkSignalFunc func, + GtkCallbackMarshal unsupported, + gpointer data, + GtkDestroyNotify destroy_func, + gint object_signal, + gint after); +void gtk_signal_emitv (GtkObject *object, + guint signal_id, + GtkArg *args); +void gtk_signal_emit (GtkObject *object, + guint signal_id, + ...); +void gtk_signal_emit_by_name (GtkObject *object, + const gchar *name, + ...); +void gtk_signal_emitv_by_name (GtkObject *object, + const gchar *name, + GtkArg *args); +void gtk_signal_compat_matched (GtkObject *object, + GtkSignalFunc func, + gpointer data, + GSignalMatchType match, + guint action); + +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_SIGNAL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksizegroup.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksizegroup.h new file mode 100644 index 00000000..4a831538 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksizegroup.h @@ -0,0 +1,107 @@ +/* GTK - The GIMP Toolkit + * gtksizegroup.h: + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_SIZE_GROUP_H__ +#define __GTK_SIZE_GROUP_H__ + +#include <gtk/gtkwidget.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_SIZE_GROUP (gtk_size_group_get_type ()) +#define GTK_SIZE_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SIZE_GROUP, GtkSizeGroup)) +#define GTK_SIZE_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SIZE_GROUP, GtkSizeGroupClass)) +#define GTK_IS_SIZE_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SIZE_GROUP)) +#define GTK_IS_SIZE_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SIZE_GROUP)) +#define GTK_SIZE_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SIZE_GROUP, GtkSizeGroupClass)) + + +typedef struct _GtkSizeGroup GtkSizeGroup; +typedef struct _GtkSizeGroupClass GtkSizeGroupClass; + +struct _GtkSizeGroup +{ + GObject parent_instance; + + /* <private> */ + GSList *widgets; + + guint8 mode; + + guint have_width : 1; + guint have_height : 1; + guint ignore_hidden : 1; + + GtkRequisition requisition; +}; + +struct _GtkSizeGroupClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +/** + * GtkSizeGroupMode: + * @GTK_SIZE_GROUP_NONE: group has no effect + * @GTK_SIZE_GROUP_HORIZONTAL: group affects horizontal requisition + * @GTK_SIZE_GROUP_VERTICAL: group affects vertical requisition + * @GTK_SIZE_GROUP_BOTH: group affects both horizontal and vertical requisition + * + * The mode of the size group determines the directions in which the size + * group affects the requested sizes of its component widgets. + **/ +typedef enum { + GTK_SIZE_GROUP_NONE, + GTK_SIZE_GROUP_HORIZONTAL, + GTK_SIZE_GROUP_VERTICAL, + GTK_SIZE_GROUP_BOTH +} GtkSizeGroupMode; + +GType gtk_size_group_get_type (void) G_GNUC_CONST; + +GtkSizeGroup * gtk_size_group_new (GtkSizeGroupMode mode); +void gtk_size_group_set_mode (GtkSizeGroup *size_group, + GtkSizeGroupMode mode); +GtkSizeGroupMode gtk_size_group_get_mode (GtkSizeGroup *size_group); +void gtk_size_group_set_ignore_hidden (GtkSizeGroup *size_group, + gboolean ignore_hidden); +gboolean gtk_size_group_get_ignore_hidden (GtkSizeGroup *size_group); +void gtk_size_group_add_widget (GtkSizeGroup *size_group, + GtkWidget *widget); +void gtk_size_group_remove_widget (GtkSizeGroup *size_group, + GtkWidget *widget); +GSList * gtk_size_group_get_widgets (GtkSizeGroup *size_group); + + +void _gtk_size_group_get_child_requisition (GtkWidget *widget, + GtkRequisition *requisition); +void _gtk_size_group_compute_requisition (GtkWidget *widget, + GtkRequisition *requisition); +void _gtk_size_group_queue_resize (GtkWidget *widget); + +G_END_DECLS + +#endif /* __GTK_SIZE_GROUP_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksocket.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksocket.h new file mode 100644 index 00000000..c522e5ba --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtksocket.h @@ -0,0 +1,97 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_SOCKET_H__ +#define __GTK_SOCKET_H__ + +#include <gtk/gtkcontainer.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_SOCKET (gtk_socket_get_type ()) +#define GTK_SOCKET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SOCKET, GtkSocket)) +#define GTK_SOCKET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SOCKET, GtkSocketClass)) +#define GTK_IS_SOCKET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SOCKET)) +#define GTK_IS_SOCKET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SOCKET)) +#define GTK_SOCKET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SOCKET, GtkSocketClass)) + + +typedef struct _GtkSocket GtkSocket; +typedef struct _GtkSocketClass GtkSocketClass; + +struct _GtkSocket +{ + GtkContainer container; + + guint16 request_width; + guint16 request_height; + guint16 current_width; + guint16 current_height; + + GdkWindow *plug_window; + GtkWidget *plug_widget; + + gshort xembed_version; /* -1 == not xembed */ + guint same_app : 1; + guint focus_in : 1; + guint have_size : 1; + guint need_map : 1; + guint is_mapped : 1; + guint active : 1; + + GtkAccelGroup *accel_group; + GtkWidget *toplevel; +}; + +struct _GtkSocketClass +{ + GtkContainerClass parent_class; + + void (*plug_added) (GtkSocket *socket_); + gboolean (*plug_removed) (GtkSocket *socket_); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_socket_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_socket_new (void); + +void gtk_socket_add_id (GtkSocket *socket_, + GdkNativeWindow window_id); +GdkNativeWindow gtk_socket_get_id (GtkSocket *socket_); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_socket_steal (GtkSocket *socket_, + GdkNativeWindow wid); +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_SOCKET_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkspinbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkspinbutton.h new file mode 100644 index 00000000..4bf3570c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkspinbutton.h @@ -0,0 +1,193 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GtkSpinButton widget for GTK+ + * Copyright (C) 1998 Lars Hamann and Stefan Jeske + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_SPIN_BUTTON_H__ +#define __GTK_SPIN_BUTTON_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkentry.h> +#include <gtk/gtkadjustment.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_SPIN_BUTTON (gtk_spin_button_get_type ()) +#define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) +#define GTK_SPIN_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SPIN_BUTTON, GtkSpinButtonClass)) +#define GTK_IS_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SPIN_BUTTON)) +#define GTK_IS_SPIN_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SPIN_BUTTON)) +#define GTK_SPIN_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButtonClass)) + +#define GTK_INPUT_ERROR -1 + +typedef enum +{ + GTK_UPDATE_ALWAYS, + GTK_UPDATE_IF_VALID +} GtkSpinButtonUpdatePolicy; + +typedef enum +{ + GTK_SPIN_STEP_FORWARD, + GTK_SPIN_STEP_BACKWARD, + GTK_SPIN_PAGE_FORWARD, + GTK_SPIN_PAGE_BACKWARD, + GTK_SPIN_HOME, + GTK_SPIN_END, + GTK_SPIN_USER_DEFINED +} GtkSpinType; + + +typedef struct _GtkSpinButton GtkSpinButton; +typedef struct _GtkSpinButtonClass GtkSpinButtonClass; + + +struct _GtkSpinButton +{ + GtkEntry entry; + + GtkAdjustment *adjustment; + + GdkWindow *panel; + + guint32 timer; + + gdouble climb_rate; + gdouble timer_step; + + GtkSpinButtonUpdatePolicy update_policy; + + guint in_child : 2; + guint click_child : 2; /* valid: GTK_ARROW_UP=0, GTK_ARROW_DOWN=1 or 2=NONE/BOTH */ + guint button : 2; + guint need_timer : 1; + guint timer_calls : 3; + guint digits : 10; + guint numeric : 1; + guint wrap : 1; + guint snap_to_ticks : 1; +}; + +struct _GtkSpinButtonClass +{ + GtkEntryClass parent_class; + + gint (*input) (GtkSpinButton *spin_button, + gdouble *new_value); + gint (*output) (GtkSpinButton *spin_button); + void (*value_changed) (GtkSpinButton *spin_button); + + /* Action signals for keybindings, do not connect to these */ + void (*change_value) (GtkSpinButton *spin_button, + GtkScrollType scroll); + + void (*wrapped) (GtkSpinButton *spin_button); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); +}; + + +GType gtk_spin_button_get_type (void) G_GNUC_CONST; + +void gtk_spin_button_configure (GtkSpinButton *spin_button, + GtkAdjustment *adjustment, + gdouble climb_rate, + guint digits); + +GtkWidget* gtk_spin_button_new (GtkAdjustment *adjustment, + gdouble climb_rate, + guint digits); + +GtkWidget* gtk_spin_button_new_with_range (gdouble min, + gdouble max, + gdouble step); + +void gtk_spin_button_set_adjustment (GtkSpinButton *spin_button, + GtkAdjustment *adjustment); + +GtkAdjustment* gtk_spin_button_get_adjustment (GtkSpinButton *spin_button); + +void gtk_spin_button_set_digits (GtkSpinButton *spin_button, + guint digits); +guint gtk_spin_button_get_digits (GtkSpinButton *spin_button); + +void gtk_spin_button_set_increments (GtkSpinButton *spin_button, + gdouble step, + gdouble page); +void gtk_spin_button_get_increments (GtkSpinButton *spin_button, + gdouble *step, + gdouble *page); + +void gtk_spin_button_set_range (GtkSpinButton *spin_button, + gdouble min, + gdouble max); +void gtk_spin_button_get_range (GtkSpinButton *spin_button, + gdouble *min, + gdouble *max); + +gdouble gtk_spin_button_get_value (GtkSpinButton *spin_button); + +gint gtk_spin_button_get_value_as_int (GtkSpinButton *spin_button); + +void gtk_spin_button_set_value (GtkSpinButton *spin_button, + gdouble value); + +void gtk_spin_button_set_update_policy (GtkSpinButton *spin_button, + GtkSpinButtonUpdatePolicy policy); +GtkSpinButtonUpdatePolicy gtk_spin_button_get_update_policy (GtkSpinButton *spin_button); + +void gtk_spin_button_set_numeric (GtkSpinButton *spin_button, + gboolean numeric); +gboolean gtk_spin_button_get_numeric (GtkSpinButton *spin_button); + +void gtk_spin_button_spin (GtkSpinButton *spin_button, + GtkSpinType direction, + gdouble increment); + +void gtk_spin_button_set_wrap (GtkSpinButton *spin_button, + gboolean wrap); +gboolean gtk_spin_button_get_wrap (GtkSpinButton *spin_button); + +void gtk_spin_button_set_snap_to_ticks (GtkSpinButton *spin_button, + gboolean snap_to_ticks); +gboolean gtk_spin_button_get_snap_to_ticks (GtkSpinButton *spin_button); +void gtk_spin_button_update (GtkSpinButton *spin_button); + + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_spin_button_get_value_as_float gtk_spin_button_get_value +#endif + +G_END_DECLS + +#endif /* __GTK_SPIN_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstatusbar.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstatusbar.h new file mode 100644 index 00000000..47025331 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstatusbar.h @@ -0,0 +1,108 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * GtkStatusbar Copyright (C) 1998 Shawn T. Amundson + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_STATUSBAR_H__ +#define __GTK_STATUSBAR_H__ + +#include <gtk/gtkhbox.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_STATUSBAR (gtk_statusbar_get_type ()) +#define GTK_STATUSBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_STATUSBAR, GtkStatusbar)) +#define GTK_STATUSBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STATUSBAR, GtkStatusbarClass)) +#define GTK_IS_STATUSBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_STATUSBAR)) +#define GTK_IS_STATUSBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STATUSBAR)) +#define GTK_STATUSBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STATUSBAR, GtkStatusbarClass)) + + +typedef struct _GtkStatusbar GtkStatusbar; +typedef struct _GtkStatusbarClass GtkStatusbarClass; + +struct _GtkStatusbar +{ + GtkHBox parent_widget; + + GtkWidget *frame; + GtkWidget *label; + + GSList *messages; + GSList *keys; + + guint seq_context_id; + guint seq_message_id; + + GdkWindow *grip_window; + + guint has_resize_grip : 1; +}; + +struct _GtkStatusbarClass +{ + GtkHBoxClass parent_class; + + gpointer reserved; + + void (*text_pushed) (GtkStatusbar *statusbar, + guint context_id, + const gchar *text); + void (*text_popped) (GtkStatusbar *statusbar, + guint context_id, + const gchar *text); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_statusbar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_statusbar_new (void); +/* If you don't want to use contexts, 0 is a predefined global + * context_id you can pass to push/pop/remove + */ +guint gtk_statusbar_get_context_id (GtkStatusbar *statusbar, + const gchar *context_description); +/* Returns message_id used for gtk_statusbar_remove */ +guint gtk_statusbar_push (GtkStatusbar *statusbar, + guint context_id, + const gchar *text); +void gtk_statusbar_pop (GtkStatusbar *statusbar, + guint context_id); +void gtk_statusbar_remove (GtkStatusbar *statusbar, + guint context_id, + guint message_id); + +void gtk_statusbar_set_has_resize_grip (GtkStatusbar *statusbar, + gboolean setting); +gboolean gtk_statusbar_get_has_resize_grip (GtkStatusbar *statusbar); + +G_END_DECLS + +#endif /* __GTK_STATUSBAR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstatusicon.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstatusicon.h new file mode 100644 index 00000000..e58eb6ad --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstatusicon.h @@ -0,0 +1,123 @@ +/* gtkstatusicon.h: + * + * Copyright (C) 2003 Sun Microsystems, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * Authors: + * Mark McLoughlin <mark@skynet.ie> + */ + +#ifndef __GTK_STATUS_ICON_H__ +#define __GTK_STATUS_ICON_H__ + +#include <gtk/gtkimage.h> +#include <gtk/gtkmenu.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_STATUS_ICON (gtk_status_icon_get_type ()) +#define GTK_STATUS_ICON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STATUS_ICON, GtkStatusIcon)) +#define GTK_STATUS_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_STATUS_ICON, GtkStatusIconClass)) +#define GTK_IS_STATUS_ICON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STATUS_ICON)) +#define GTK_IS_STATUS_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_STATUS_ICON)) +#define GTK_STATUS_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_STATUS_ICON, GtkStatusIconClass)) + +typedef struct _GtkStatusIcon GtkStatusIcon; +typedef struct _GtkStatusIconClass GtkStatusIconClass; +typedef struct _GtkStatusIconPrivate GtkStatusIconPrivate; + +struct _GtkStatusIcon +{ + GObject parent_instance; + + GtkStatusIconPrivate *priv; +}; + +struct _GtkStatusIconClass +{ + GObjectClass parent_class; + + void (* activate) (GtkStatusIcon *status_icon); + void (* popup_menu) (GtkStatusIcon *status_icon, + guint button, + guint32 activate_time); + gboolean (* size_changed) (GtkStatusIcon *status_icon, + gint size); + + void (*__gtk_reserved1); + void (*__gtk_reserved2); + void (*__gtk_reserved3); + void (*__gtk_reserved4); + void (*__gtk_reserved5); + void (*__gtk_reserved6); +}; + +GType gtk_status_icon_get_type (void) G_GNUC_CONST; + +GtkStatusIcon *gtk_status_icon_new (void); +GtkStatusIcon *gtk_status_icon_new_from_pixbuf (GdkPixbuf *pixbuf); +GtkStatusIcon *gtk_status_icon_new_from_file (const gchar *filename); +GtkStatusIcon *gtk_status_icon_new_from_stock (const gchar *stock_id); +GtkStatusIcon *gtk_status_icon_new_from_icon_name (const gchar *icon_name); + +void gtk_status_icon_set_from_pixbuf (GtkStatusIcon *status_icon, + GdkPixbuf *pixbuf); +void gtk_status_icon_set_from_file (GtkStatusIcon *status_icon, + const gchar *filename); +void gtk_status_icon_set_from_stock (GtkStatusIcon *status_icon, + const gchar *stock_id); +void gtk_status_icon_set_from_icon_name (GtkStatusIcon *status_icon, + const gchar *icon_name); + +GtkImageType gtk_status_icon_get_storage_type (GtkStatusIcon *status_icon); + +GdkPixbuf *gtk_status_icon_get_pixbuf (GtkStatusIcon *status_icon); +G_CONST_RETURN gchar *gtk_status_icon_get_stock (GtkStatusIcon *status_icon); +G_CONST_RETURN gchar *gtk_status_icon_get_icon_name (GtkStatusIcon *status_icon); + +gint gtk_status_icon_get_size (GtkStatusIcon *status_icon); + +void gtk_status_icon_set_screen (GtkStatusIcon *status_icon, + GdkScreen *screen); +GdkScreen *gtk_status_icon_get_screen (GtkStatusIcon *status_icon); + +void gtk_status_icon_set_tooltip (GtkStatusIcon *status_icon, + const gchar *tooltip_text); + +void gtk_status_icon_set_visible (GtkStatusIcon *status_icon, + gboolean visible); +gboolean gtk_status_icon_get_visible (GtkStatusIcon *status_icon); + +void gtk_status_icon_set_blinking (GtkStatusIcon *status_icon, + gboolean blinking); +gboolean gtk_status_icon_get_blinking (GtkStatusIcon *status_icon); + +gboolean gtk_status_icon_is_embedded (GtkStatusIcon *status_icon); + +void gtk_status_icon_position_menu (GtkMenu *menu, + gint *x, + gint *y, + gboolean *push_in, + gpointer user_data); +gboolean gtk_status_icon_get_geometry (GtkStatusIcon *status_icon, + GdkScreen **screen, + GdkRectangle *area, + GtkOrientation *orientation); + +G_END_DECLS + +#endif /* __GTK_STATUS_ICON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstock.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstock.h new file mode 100644 index 00000000..75d3b1fd --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstock.h @@ -0,0 +1,173 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_STOCK_H__ +#define __GTK_STOCK_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkitemfactory.h> /* for GtkTranslateFunc */ + +G_BEGIN_DECLS + +typedef struct _GtkStockItem GtkStockItem; + +struct _GtkStockItem +{ + gchar *stock_id; + gchar *label; + GdkModifierType modifier; + guint keyval; + gchar *translation_domain; +}; + +void gtk_stock_add (const GtkStockItem *items, + guint n_items); +void gtk_stock_add_static (const GtkStockItem *items, + guint n_items); +gboolean gtk_stock_lookup (const gchar *stock_id, + GtkStockItem *item); + +/* Should free the list (and free each string in it also). + * This function is only useful for GUI builders and such. + */ +GSList* gtk_stock_list_ids (void); + +GtkStockItem *gtk_stock_item_copy (const GtkStockItem *item); +void gtk_stock_item_free (GtkStockItem *item); + +void gtk_stock_set_translate_func (const gchar *domain, + GtkTranslateFunc func, + gpointer data, + GtkDestroyNotify notify); + +/* Stock IDs (not all are stock items; some are images only) */ +#define GTK_STOCK_DIALOG_AUTHENTICATION \ + "gtk-dialog-authentication" +#define GTK_STOCK_DIALOG_INFO "gtk-dialog-info" +#define GTK_STOCK_DIALOG_WARNING "gtk-dialog-warning" +#define GTK_STOCK_DIALOG_ERROR "gtk-dialog-error" +#define GTK_STOCK_DIALOG_QUESTION "gtk-dialog-question" + +#define GTK_STOCK_DND "gtk-dnd" +#define GTK_STOCK_DND_MULTIPLE "gtk-dnd-multiple" + +#define GTK_STOCK_ABOUT "gtk-about" +#define GTK_STOCK_ADD "gtk-add" +#define GTK_STOCK_APPLY "gtk-apply" +#define GTK_STOCK_BOLD "gtk-bold" +#define GTK_STOCK_CANCEL "gtk-cancel" +#define GTK_STOCK_CDROM "gtk-cdrom" +#define GTK_STOCK_CLEAR "gtk-clear" +#define GTK_STOCK_CLOSE "gtk-close" +#define GTK_STOCK_COLOR_PICKER "gtk-color-picker" +#define GTK_STOCK_CONVERT "gtk-convert" +#define GTK_STOCK_CONNECT "gtk-connect" +#define GTK_STOCK_COPY "gtk-copy" +#define GTK_STOCK_CUT "gtk-cut" +#define GTK_STOCK_DELETE "gtk-delete" +#define GTK_STOCK_DIRECTORY "gtk-directory" +#define GTK_STOCK_DISCARD "gtk-discard" +#define GTK_STOCK_DISCONNECT "gtk-disconnect" +#define GTK_STOCK_EDIT "gtk-edit" +#define GTK_STOCK_EXECUTE "gtk-execute" +#define GTK_STOCK_FILE "gtk-file" +#define GTK_STOCK_FIND "gtk-find" +#define GTK_STOCK_FIND_AND_REPLACE "gtk-find-and-replace" +#define GTK_STOCK_FLOPPY "gtk-floppy" +#define GTK_STOCK_FULLSCREEN "gtk-fullscreen" +#define GTK_STOCK_GOTO_BOTTOM "gtk-goto-bottom" +#define GTK_STOCK_GOTO_FIRST "gtk-goto-first" +#define GTK_STOCK_GOTO_LAST "gtk-goto-last" +#define GTK_STOCK_GOTO_TOP "gtk-goto-top" +#define GTK_STOCK_GO_BACK "gtk-go-back" +#define GTK_STOCK_GO_DOWN "gtk-go-down" +#define GTK_STOCK_GO_FORWARD "gtk-go-forward" +#define GTK_STOCK_GO_UP "gtk-go-up" +#define GTK_STOCK_HARDDISK "gtk-harddisk" +#define GTK_STOCK_HELP "gtk-help" +#define GTK_STOCK_HOME "gtk-home" +#define GTK_STOCK_INDEX "gtk-index" +#define GTK_STOCK_INDENT "gtk-indent" +#define GTK_STOCK_INFO "gtk-info" +#define GTK_STOCK_UNINDENT "gtk-unindent" +#define GTK_STOCK_ITALIC "gtk-italic" +#define GTK_STOCK_JUMP_TO "gtk-jump-to" +#define GTK_STOCK_JUSTIFY_CENTER "gtk-justify-center" +#define GTK_STOCK_JUSTIFY_FILL "gtk-justify-fill" +#define GTK_STOCK_JUSTIFY_LEFT "gtk-justify-left" +#define GTK_STOCK_JUSTIFY_RIGHT "gtk-justify-right" +#define GTK_STOCK_LEAVE_FULLSCREEN "gtk-leave-fullscreen" +#define GTK_STOCK_MISSING_IMAGE "gtk-missing-image" +#define GTK_STOCK_MEDIA_FORWARD "gtk-media-forward" +#define GTK_STOCK_MEDIA_NEXT "gtk-media-next" +#define GTK_STOCK_MEDIA_PAUSE "gtk-media-pause" +#define GTK_STOCK_MEDIA_PLAY "gtk-media-play" +#define GTK_STOCK_MEDIA_PREVIOUS "gtk-media-previous" +#define GTK_STOCK_MEDIA_RECORD "gtk-media-record" +#define GTK_STOCK_MEDIA_REWIND "gtk-media-rewind" +#define GTK_STOCK_MEDIA_STOP "gtk-media-stop" +#define GTK_STOCK_NETWORK "gtk-network" +#define GTK_STOCK_NEW "gtk-new" +#define GTK_STOCK_NO "gtk-no" +#define GTK_STOCK_OK "gtk-ok" +#define GTK_STOCK_OPEN "gtk-open" +#define GTK_STOCK_ORIENTATION_PORTRAIT "gtk-orientation-portrait" +#define GTK_STOCK_ORIENTATION_LANDSCAPE "gtk-orientation-landscape" +#define GTK_STOCK_ORIENTATION_REVERSE_LANDSCAPE "gtk-orientation-reverse-landscape" +#define GTK_STOCK_ORIENTATION_REVERSE_PORTRAIT "gtk-orientation-reverse-portrait" +#define GTK_STOCK_PASTE "gtk-paste" +#define GTK_STOCK_PREFERENCES "gtk-preferences" +#define GTK_STOCK_PRINT "gtk-print" +#define GTK_STOCK_PRINT_PREVIEW "gtk-print-preview" +#define GTK_STOCK_PROPERTIES "gtk-properties" +#define GTK_STOCK_QUIT "gtk-quit" +#define GTK_STOCK_REDO "gtk-redo" +#define GTK_STOCK_REFRESH "gtk-refresh" +#define GTK_STOCK_REMOVE "gtk-remove" +#define GTK_STOCK_REVERT_TO_SAVED "gtk-revert-to-saved" +#define GTK_STOCK_SAVE "gtk-save" +#define GTK_STOCK_SAVE_AS "gtk-save-as" +#define GTK_STOCK_SELECT_ALL "gtk-select-all" +#define GTK_STOCK_SELECT_COLOR "gtk-select-color" +#define GTK_STOCK_SELECT_FONT "gtk-select-font" +#define GTK_STOCK_SORT_ASCENDING "gtk-sort-ascending" +#define GTK_STOCK_SORT_DESCENDING "gtk-sort-descending" +#define GTK_STOCK_SPELL_CHECK "gtk-spell-check" +#define GTK_STOCK_STOP "gtk-stop" +#define GTK_STOCK_STRIKETHROUGH "gtk-strikethrough" +#define GTK_STOCK_UNDELETE "gtk-undelete" +#define GTK_STOCK_UNDERLINE "gtk-underline" +#define GTK_STOCK_UNDO "gtk-undo" +#define GTK_STOCK_YES "gtk-yes" +#define GTK_STOCK_ZOOM_100 "gtk-zoom-100" +#define GTK_STOCK_ZOOM_FIT "gtk-zoom-fit" +#define GTK_STOCK_ZOOM_IN "gtk-zoom-in" +#define GTK_STOCK_ZOOM_OUT "gtk-zoom-out" + +G_END_DECLS + +#endif /* __GTK_STOCK_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstyle.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstyle.h new file mode 100644 index 00000000..bed56e0c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkstyle.h @@ -0,0 +1,908 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_STYLE_H__ +#define __GTK_STYLE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkenums.h> +#include <pango/pango.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_STYLE (gtk_style_get_type ()) +#define GTK_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_STYLE, GtkStyle)) +#define GTK_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STYLE, GtkStyleClass)) +#define GTK_IS_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_STYLE)) +#define GTK_IS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STYLE)) +#define GTK_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STYLE, GtkStyleClass)) + +#define GTK_TYPE_BORDER (gtk_border_get_type ()) + +/* Some forward declarations needed to rationalize the header + * files. + */ +typedef struct _GtkBorder GtkBorder; +typedef struct _GtkStyle GtkStyle; +typedef struct _GtkStyleClass GtkStyleClass; +typedef struct _GtkThemeEngine GtkThemeEngine; +typedef struct _GtkRcStyle GtkRcStyle; +typedef struct _GtkIconSet GtkIconSet; +typedef struct _GtkIconSource GtkIconSource; +typedef struct _GtkRcProperty GtkRcProperty; +typedef struct _GtkSettings GtkSettings; +typedef gboolean (*GtkRcPropertyParser) (const GParamSpec *pspec, + const GString *rc_string, + GValue *property_value); + +/* We make this forward declaration here, since we pass + * GtkWidget's to the draw functions. + */ +typedef struct _GtkWidget GtkWidget; + +#define GTK_STYLE_ATTACHED(style) (GTK_STYLE (style)->attach_count > 0) + +struct _GtkStyle +{ + GObject parent_instance; + + /*< public >*/ + + GdkColor fg[5]; + GdkColor bg[5]; + GdkColor light[5]; + GdkColor dark[5]; + GdkColor mid[5]; + GdkColor text[5]; + GdkColor base[5]; + GdkColor text_aa[5]; /* Halfway between text/base */ + + GdkColor black; + GdkColor white; + PangoFontDescription *font_desc; + + gint xthickness; + gint ythickness; + + GdkGC *fg_gc[5]; + GdkGC *bg_gc[5]; + GdkGC *light_gc[5]; + GdkGC *dark_gc[5]; + GdkGC *mid_gc[5]; + GdkGC *text_gc[5]; + GdkGC *base_gc[5]; + GdkGC *text_aa_gc[5]; + GdkGC *black_gc; + GdkGC *white_gc; + + GdkPixmap *bg_pixmap[5]; + + /*< private >*/ + + gint attach_count; + + gint depth; + GdkColormap *colormap; + GdkFont *private_font; + PangoFontDescription *private_font_desc; /* Font description for style->private_font or %NULL */ + + /* the RcStyle from which this style was created */ + GtkRcStyle *rc_style; + + GSList *styles; /* of type GtkStyle* */ + GArray *property_cache; + GSList *icon_factories; /* of type GtkIconFactory* */ +}; + +struct _GtkStyleClass +{ + GObjectClass parent_class; + + /* Initialize for a particular colormap/depth + * combination. style->colormap/style->depth will have + * been set at this point. Will typically chain to parent. + */ + void (*realize) (GtkStyle *style); + + /* Clean up for a particular colormap/depth combination. Will + * typically chain to parent. + */ + void (*unrealize) (GtkStyle *style); + + /* Make style an exact duplicate of src. + */ + void (*copy) (GtkStyle *style, + GtkStyle *src); + + /* Create an empty style of the same type as this style. + * The default implementation, which does + * g_object_new (G_OBJECT_TYPE (style), NULL); + * should work in most cases. + */ + GtkStyle *(*clone) (GtkStyle *style); + + /* Initialize the GtkStyle with the values in the GtkRcStyle. + * should chain to the parent implementation. + */ + void (*init_from_rc) (GtkStyle *style, + GtkRcStyle *rc_style); + + void (*set_background) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type); + + + GdkPixbuf * (* render_icon) (GtkStyle *style, + const GtkIconSource *source, + GtkTextDirection direction, + GtkStateType state, + GtkIconSize size, + GtkWidget *widget, + const gchar *detail); + + /* Drawing functions + */ + + void (*draw_hline) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x1, + gint x2, + gint y); + void (*draw_vline) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint y1_, + gint y2_, + gint x); + void (*draw_shadow) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_polygon) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + GdkPoint *point, + gint npoints, + gboolean fill); + void (*draw_arrow) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + GtkArrowType arrow_type, + gboolean fill, + gint x, + gint y, + gint width, + gint height); + void (*draw_diamond) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_string) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + const gchar *string); + void (*draw_box) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_flat_box) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_check) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_option) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_tab) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_shadow_gap) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side, + gint gap_x, + gint gap_width); + void (*draw_box_gap) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side, + gint gap_x, + gint gap_width); + void (*draw_extension) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side); + void (*draw_focus) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_slider) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkOrientation orientation); + void (*draw_handle) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkOrientation orientation); + + void (*draw_expander) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + GtkExpanderStyle expander_style); + void (*draw_layout) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + gboolean use_text, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + PangoLayout *layout); + void (*draw_resize_grip) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + GdkWindowEdge edge, + gint x, + gint y, + gint width, + gint height); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); + void (*_gtk_reserved9) (void); + void (*_gtk_reserved10) (void); + void (*_gtk_reserved11) (void); + void (*_gtk_reserved12) (void); +}; + +struct _GtkBorder +{ + gint left; + gint right; + gint top; + gint bottom; +}; + +GType gtk_style_get_type (void) G_GNUC_CONST; +GtkStyle* gtk_style_new (void); +GtkStyle* gtk_style_copy (GtkStyle *style); +GtkStyle* gtk_style_attach (GtkStyle *style, + GdkWindow *window) G_GNUC_WARN_UNUSED_RESULT; +void gtk_style_detach (GtkStyle *style); + +#ifndef GTK_DISABLE_DEPRECATED +GtkStyle* gtk_style_ref (GtkStyle *style); +void gtk_style_unref (GtkStyle *style); + +GdkFont * gtk_style_get_font (GtkStyle *style); +void gtk_style_set_font (GtkStyle *style, + GdkFont *font); +#endif /* GTK_DISABLE_DEPRECATED */ + +void gtk_style_set_background (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type); +void gtk_style_apply_default_background (GtkStyle *style, + GdkWindow *window, + gboolean set_bg, + GtkStateType state_type, + GdkRectangle *area, + gint x, + gint y, + gint width, + gint height); + +GtkIconSet* gtk_style_lookup_icon_set (GtkStyle *style, + const gchar *stock_id); +gboolean gtk_style_lookup_color (GtkStyle *style, + const gchar *color_name, + GdkColor *color); + +GdkPixbuf* gtk_style_render_icon (GtkStyle *style, + const GtkIconSource *source, + GtkTextDirection direction, + GtkStateType state, + GtkIconSize size, + GtkWidget *widget, + const gchar *detail); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_draw_hline (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + gint x1, + gint x2, + gint y); +void gtk_draw_vline (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + gint y1_, + gint y2_, + gint x); +void gtk_draw_shadow (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height); +void gtk_draw_polygon (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkPoint *points, + gint npoints, + gboolean fill); +void gtk_draw_arrow (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkArrowType arrow_type, + gboolean fill, + gint x, + gint y, + gint width, + gint height); +void gtk_draw_diamond (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height); +void gtk_draw_box (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height); +void gtk_draw_flat_box (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height); +void gtk_draw_check (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height); +void gtk_draw_option (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height); +void gtk_draw_tab (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height); +void gtk_draw_shadow_gap (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side, + gint gap_x, + gint gap_width); +void gtk_draw_box_gap (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side, + gint gap_x, + gint gap_width); +void gtk_draw_extension (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side); +void gtk_draw_focus (GtkStyle *style, + GdkWindow *window, + gint x, + gint y, + gint width, + gint height); +void gtk_draw_slider (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height, + GtkOrientation orientation); +void gtk_draw_handle (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + gint x, + gint y, + gint width, + gint height, + GtkOrientation orientation); +void gtk_draw_expander (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + gint x, + gint y, + GtkExpanderStyle expander_style); +void gtk_draw_layout (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + gboolean use_text, + gint x, + gint y, + PangoLayout *layout); +void gtk_draw_resize_grip (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkWindowEdge edge, + gint x, + gint y, + gint width, + gint height); +#endif /* GTK_DISABLE_DEPRECATED */ + +void gtk_paint_hline (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x1, + gint x2, + gint y); +void gtk_paint_vline (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint y1_, + gint y2_, + gint x); +void gtk_paint_shadow (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +void gtk_paint_polygon (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + GdkPoint *points, + gint npoints, + gboolean fill); +void gtk_paint_arrow (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + GtkArrowType arrow_type, + gboolean fill, + gint x, + gint y, + gint width, + gint height); +void gtk_paint_diamond (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +void gtk_paint_box (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +void gtk_paint_flat_box (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +void gtk_paint_check (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +void gtk_paint_option (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +void gtk_paint_tab (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +void gtk_paint_shadow_gap (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side, + gint gap_x, + gint gap_width); +void gtk_paint_box_gap (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side, + gint gap_x, + gint gap_width); +void gtk_paint_extension (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side); +void gtk_paint_focus (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +void gtk_paint_slider (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkOrientation orientation); +void gtk_paint_handle (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GtkShadowType shadow_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkOrientation orientation); +void gtk_paint_expander (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + GtkExpanderStyle expander_style); +void gtk_paint_layout (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + gboolean use_text, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + PangoLayout *layout); + +void gtk_paint_resize_grip (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + GdkWindowEdge edge, + gint x, + gint y, + gint width, + gint height); + + +GType gtk_border_get_type (void) G_GNUC_CONST; +GtkBorder *gtk_border_copy (const GtkBorder *border_); +void gtk_border_free (GtkBorder *border_); + +/* --- private API --- */ +const GValue* _gtk_style_peek_property_value (GtkStyle *style, + GType widget_type, + GParamSpec *pspec, + GtkRcPropertyParser parser); + +void _gtk_style_init_for_settings (GtkStyle *style, + GtkSettings *settings); + +void _gtk_style_shade (GdkColor *a, + GdkColor *b, + gdouble k); + +/* deprecated */ +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_style_apply_default_pixmap(s,gw,st,a,x,y,w,h) gtk_style_apply_default_background (s,gw,1,st,a,x,y,w,h) +void gtk_draw_string (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + gint x, + gint y, + const gchar *string); +void gtk_paint_string (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type, + GdkRectangle *area, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + const gchar *string); +#endif /* GTK_DISABLE_DEPRECATED */ + +void gtk_draw_insertion_cursor (GtkWidget *widget, + GdkDrawable *drawable, + GdkRectangle *area, + GdkRectangle *location, + gboolean is_primary, + GtkTextDirection direction, + gboolean draw_arrow); +GdkGC *_gtk_widget_get_cursor_gc (GtkWidget *widget); +void _gtk_widget_get_cursor_color (GtkWidget *widget, + GdkColor *color); + +G_END_DECLS + +#endif /* __GTK_STYLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktable.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktable.h new file mode 100644 index 00000000..f925d330 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktable.h @@ -0,0 +1,145 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TABLE_H__ +#define __GTK_TABLE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkcontainer.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_TABLE (gtk_table_get_type ()) +#define GTK_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TABLE, GtkTable)) +#define GTK_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TABLE, GtkTableClass)) +#define GTK_IS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TABLE)) +#define GTK_IS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TABLE)) +#define GTK_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TABLE, GtkTableClass)) + + +typedef struct _GtkTable GtkTable; +typedef struct _GtkTableClass GtkTableClass; +typedef struct _GtkTableChild GtkTableChild; +typedef struct _GtkTableRowCol GtkTableRowCol; + +struct _GtkTable +{ + GtkContainer container; + + GList *children; + GtkTableRowCol *rows; + GtkTableRowCol *cols; + guint16 nrows; + guint16 ncols; + guint16 column_spacing; + guint16 row_spacing; + guint homogeneous : 1; +}; + +struct _GtkTableClass +{ + GtkContainerClass parent_class; +}; + +struct _GtkTableChild +{ + GtkWidget *widget; + guint16 left_attach; + guint16 right_attach; + guint16 top_attach; + guint16 bottom_attach; + guint16 xpadding; + guint16 ypadding; + guint xexpand : 1; + guint yexpand : 1; + guint xshrink : 1; + guint yshrink : 1; + guint xfill : 1; + guint yfill : 1; +}; + +struct _GtkTableRowCol +{ + guint16 requisition; + guint16 allocation; + guint16 spacing; + guint need_expand : 1; + guint need_shrink : 1; + guint expand : 1; + guint shrink : 1; + guint empty : 1; +}; + + +GType gtk_table_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_table_new (guint rows, + guint columns, + gboolean homogeneous); +void gtk_table_resize (GtkTable *table, + guint rows, + guint columns); +void gtk_table_attach (GtkTable *table, + GtkWidget *child, + guint left_attach, + guint right_attach, + guint top_attach, + guint bottom_attach, + GtkAttachOptions xoptions, + GtkAttachOptions yoptions, + guint xpadding, + guint ypadding); +void gtk_table_attach_defaults (GtkTable *table, + GtkWidget *widget, + guint left_attach, + guint right_attach, + guint top_attach, + guint bottom_attach); +void gtk_table_set_row_spacing (GtkTable *table, + guint row, + guint spacing); +guint gtk_table_get_row_spacing (GtkTable *table, + guint row); +void gtk_table_set_col_spacing (GtkTable *table, + guint column, + guint spacing); +guint gtk_table_get_col_spacing (GtkTable *table, + guint column); +void gtk_table_set_row_spacings (GtkTable *table, + guint spacing); +guint gtk_table_get_default_row_spacing (GtkTable *table); +void gtk_table_set_col_spacings (GtkTable *table, + guint spacing); +guint gtk_table_get_default_col_spacing (GtkTable *table); +void gtk_table_set_homogeneous (GtkTable *table, + gboolean homogeneous); +gboolean gtk_table_get_homogeneous (GtkTable *table); + + +G_END_DECLS + +#endif /* __GTK_TABLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktearoffmenuitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktearoffmenuitem.h new file mode 100644 index 00000000..cd744b0d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktearoffmenuitem.h @@ -0,0 +1,71 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TEAROFF_MENU_ITEM_H__ +#define __GTK_TEAROFF_MENU_ITEM_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkmenuitem.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TEAROFF_MENU_ITEM (gtk_tearoff_menu_item_get_type ()) +#define GTK_TEAROFF_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItem)) +#define GTK_TEAROFF_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItemClass)) +#define GTK_IS_TEAROFF_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEAROFF_MENU_ITEM)) +#define GTK_IS_TEAROFF_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEAROFF_MENU_ITEM)) +#define GTK_TEAROFF_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItemClass)) + + +typedef struct _GtkTearoffMenuItem GtkTearoffMenuItem; +typedef struct _GtkTearoffMenuItemClass GtkTearoffMenuItemClass; + +struct _GtkTearoffMenuItem +{ + GtkMenuItem menu_item; + + guint torn_off : 1; +}; + +struct _GtkTearoffMenuItemClass +{ + GtkMenuItemClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_tearoff_menu_item_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_tearoff_menu_item_new (void); + +G_END_DECLS + +#endif /* __GTK_TEAROFF_MENU_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktext.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktext.h new file mode 100644 index 00000000..a2be7faf --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktext.h @@ -0,0 +1,218 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifdef GTK_ENABLE_BROKEN + +#ifndef __GTK_TEXT_H__ +#define __GTK_TEXT_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkadjustment.h> +#include <gtk/gtkoldeditable.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TEXT (gtk_text_get_type ()) +#define GTK_TEXT(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TEXT, GtkText)) +#define GTK_TEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT, GtkTextClass)) +#define GTK_IS_TEXT(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TEXT)) +#define GTK_IS_TEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT)) +#define GTK_TEXT_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_TEXT, GtkTextClass)) + + +typedef struct _GtkTextFont GtkTextFont; +typedef struct _GtkPropertyMark GtkPropertyMark; +typedef struct _GtkText GtkText; +typedef struct _GtkTextClass GtkTextClass; + +struct _GtkPropertyMark +{ + /* Position in list. */ + GList* property; + + /* Offset into that property. */ + guint offset; + + /* Current index. */ + guint index; +}; + +struct _GtkText +{ + GtkOldEditable old_editable; + + GdkWindow *text_area; + + GtkAdjustment *hadj; + GtkAdjustment *vadj; + + GdkGC *gc; + + GdkPixmap* line_wrap_bitmap; + GdkPixmap* line_arrow_bitmap; + + /* GAPPED TEXT SEGMENT */ + + /* The text, a single segment of text a'la emacs, with a gap + * where insertion occurs. */ + union { GdkWChar *wc; guchar *ch; } text; + /* The allocated length of the text segment. */ + guint text_len; + /* The gap position, index into address where a char + * should be inserted. */ + guint gap_position; + /* The gap size, s.t. *(text + gap_position + gap_size) is + * the first valid character following the gap. */ + guint gap_size; + /* The last character position, index into address where a + * character should be appeneded. Thus, text_end - gap_size + * is the length of the actual data. */ + guint text_end; + /* LINE START CACHE */ + + /* A cache of line-start information. Data is a LineParam*. */ + GList *line_start_cache; + /* Index to the start of the first visible line. */ + guint first_line_start_index; + /* The number of pixels cut off of the top line. */ + guint first_cut_pixels; + /* First visible horizontal pixel. */ + guint first_onscreen_hor_pixel; + /* First visible vertical pixel. */ + guint first_onscreen_ver_pixel; + + /* FLAGS */ + + /* True iff this buffer is wrapping lines, otherwise it is using a + * horizontal scrollbar. */ + guint line_wrap : 1; + guint word_wrap : 1; + /* If a fontset is supplied for the widget, use_wchar become true, + * and we use GdkWchar as the encoding of text. */ + guint use_wchar : 1; + + /* Frozen, don't do updates. @@@ fixme */ + guint freeze_count; + /* TEXT PROPERTIES */ + + /* A doubly-linked-list containing TextProperty objects. */ + GList *text_properties; + /* The end of this list. */ + GList *text_properties_end; + /* The first node before or on the point along with its offset to + * the point and the buffer's current point. This is the only + * PropertyMark whose index is guaranteed to remain correct + * following a buffer insertion or deletion. */ + GtkPropertyMark point; + + /* SCRATCH AREA */ + + union { GdkWChar *wc; guchar *ch; } scratch_buffer; + guint scratch_buffer_len; + + /* SCROLLING */ + + gint last_ver_value; + + /* CURSOR */ + + gint cursor_pos_x; /* Position of cursor. */ + gint cursor_pos_y; /* Baseline of line cursor is drawn on. */ + GtkPropertyMark cursor_mark; /* Where it is in the buffer. */ + GdkWChar cursor_char; /* Character to redraw. */ + gchar cursor_char_offset; /* Distance from baseline of the font. */ + gint cursor_virtual_x; /* Where it would be if it could be. */ + gint cursor_drawn_level; /* How many people have undrawn. */ + + /* Current Line */ + + GList *current_line; + + /* Tab Stops */ + + GList *tab_stops; + gint default_tab_width; + + GtkTextFont *current_font; /* Text font for current style */ + + /* Timer used for auto-scrolling off ends */ + gint timer; + + guint button; /* currently pressed mouse button */ + GdkGC *bg_gc; /* gc for drawing background pixmap */ +}; + +struct _GtkTextClass +{ + GtkOldEditableClass parent_class; + + void (*set_scroll_adjustments) (GtkText *text, + GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); +}; + + +GtkType gtk_text_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_text_new (GtkAdjustment *hadj, + GtkAdjustment *vadj); +void gtk_text_set_editable (GtkText *text, + gboolean editable); +void gtk_text_set_word_wrap (GtkText *text, + gboolean word_wrap); +void gtk_text_set_line_wrap (GtkText *text, + gboolean line_wrap); +void gtk_text_set_adjustments (GtkText *text, + GtkAdjustment *hadj, + GtkAdjustment *vadj); +void gtk_text_set_point (GtkText *text, + guint index); +guint gtk_text_get_point (GtkText *text); +guint gtk_text_get_length (GtkText *text); +void gtk_text_freeze (GtkText *text); +void gtk_text_thaw (GtkText *text); +void gtk_text_insert (GtkText *text, + GdkFont *font, + const GdkColor *fore, + const GdkColor *back, + const char *chars, + gint length); +gboolean gtk_text_backward_delete (GtkText *text, + guint nchars); +gboolean gtk_text_forward_delete (GtkText *text, + guint nchars); + +#define GTK_TEXT_INDEX(t, index) (((t)->use_wchar) \ + ? ((index) < (t)->gap_position ? (t)->text.wc[index] : \ + (t)->text.wc[(index)+(t)->gap_size]) \ + : ((index) < (t)->gap_position ? (t)->text.ch[index] : \ + (t)->text.ch[(index)+(t)->gap_size])) + +G_END_DECLS + +#endif /* __GTK_TEXT_H__ */ + +#endif /* GTK_ENABLE_BROKEN */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextbuffer.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextbuffer.h new file mode 100644 index 00000000..9a0eb9d2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextbuffer.h @@ -0,0 +1,403 @@ +/* GTK - The GIMP Toolkit + * gtktextbuffer.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TEXT_BUFFER_H__ +#define __GTK_TEXT_BUFFER_H__ + +#include <gtk/gtkwidget.h> +#include <gtk/gtkclipboard.h> +#include <gtk/gtktexttagtable.h> +#include <gtk/gtktextiter.h> +#include <gtk/gtktextmark.h> +#include <gtk/gtktextchild.h> + +G_BEGIN_DECLS + +/* + * This is the PUBLIC representation of a text buffer. + * GtkTextBTree is the PRIVATE internal representation of it. + */ + +/* these values are used as "info" for the targets contained in the + * lists returned by gtk_text_buffer_get_copy,paste_target_list() + * + * the enum counts down from G_MAXUINT to avoid clashes with application + * added drag destinations which usually start at 0. + */ +typedef enum +{ + GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS = - 1, + GTK_TEXT_BUFFER_TARGET_INFO_RICH_TEXT = - 2, + GTK_TEXT_BUFFER_TARGET_INFO_TEXT = - 3 +} GtkTextBufferTargetInfo; + +typedef struct _GtkTextBTree GtkTextBTree; + +typedef struct _GtkTextLogAttrCache GtkTextLogAttrCache; + +#define GTK_TYPE_TEXT_BUFFER (gtk_text_buffer_get_type ()) +#define GTK_TEXT_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_BUFFER, GtkTextBuffer)) +#define GTK_TEXT_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_BUFFER, GtkTextBufferClass)) +#define GTK_IS_TEXT_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_BUFFER)) +#define GTK_IS_TEXT_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_BUFFER)) +#define GTK_TEXT_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_BUFFER, GtkTextBufferClass)) + +typedef struct _GtkTextBufferClass GtkTextBufferClass; + +struct _GtkTextBuffer +{ + GObject parent_instance; + + GtkTextTagTable *tag_table; + GtkTextBTree *btree; + + GSList *clipboard_contents_buffers; + GSList *selection_clipboards; + + GtkTextLogAttrCache *log_attr_cache; + + guint user_action_count; + + /* Whether the buffer has been modified since last save */ + guint modified : 1; + + guint has_selection : 1; +}; + +struct _GtkTextBufferClass +{ + GObjectClass parent_class; + + void (* insert_text) (GtkTextBuffer *buffer, + GtkTextIter *pos, + const gchar *text, + gint length); + + void (* insert_pixbuf) (GtkTextBuffer *buffer, + GtkTextIter *pos, + GdkPixbuf *pixbuf); + + void (* insert_child_anchor) (GtkTextBuffer *buffer, + GtkTextIter *pos, + GtkTextChildAnchor *anchor); + + void (* delete_range) (GtkTextBuffer *buffer, + GtkTextIter *start, + GtkTextIter *end); + + /* Only for text/widgets/pixbuf changed, marks/tags don't cause this + * to be emitted + */ + void (* changed) (GtkTextBuffer *buffer); + + + /* New value for the modified flag */ + void (* modified_changed) (GtkTextBuffer *buffer); + + /* Mark moved or created */ + void (* mark_set) (GtkTextBuffer *buffer, + const GtkTextIter *location, + GtkTextMark *mark); + + void (* mark_deleted) (GtkTextBuffer *buffer, + GtkTextMark *mark); + + void (* apply_tag) (GtkTextBuffer *buffer, + GtkTextTag *tag, + const GtkTextIter *start_char, + const GtkTextIter *end_char); + + void (* remove_tag) (GtkTextBuffer *buffer, + GtkTextTag *tag, + const GtkTextIter *start_char, + const GtkTextIter *end_char); + + /* Called at the start and end of an atomic user action */ + void (* begin_user_action) (GtkTextBuffer *buffer); + void (* end_user_action) (GtkTextBuffer *buffer); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); +}; + +GType gtk_text_buffer_get_type (void) G_GNUC_CONST; + + + +/* table is NULL to create a new one */ +GtkTextBuffer *gtk_text_buffer_new (GtkTextTagTable *table); +gint gtk_text_buffer_get_line_count (GtkTextBuffer *buffer); +gint gtk_text_buffer_get_char_count (GtkTextBuffer *buffer); + + +GtkTextTagTable* gtk_text_buffer_get_tag_table (GtkTextBuffer *buffer); + +/* Delete whole buffer, then insert */ +void gtk_text_buffer_set_text (GtkTextBuffer *buffer, + const gchar *text, + gint len); + +/* Insert into the buffer */ +void gtk_text_buffer_insert (GtkTextBuffer *buffer, + GtkTextIter *iter, + const gchar *text, + gint len); +void gtk_text_buffer_insert_at_cursor (GtkTextBuffer *buffer, + const gchar *text, + gint len); + +gboolean gtk_text_buffer_insert_interactive (GtkTextBuffer *buffer, + GtkTextIter *iter, + const gchar *text, + gint len, + gboolean default_editable); +gboolean gtk_text_buffer_insert_interactive_at_cursor (GtkTextBuffer *buffer, + const gchar *text, + gint len, + gboolean default_editable); + +void gtk_text_buffer_insert_range (GtkTextBuffer *buffer, + GtkTextIter *iter, + const GtkTextIter *start, + const GtkTextIter *end); +gboolean gtk_text_buffer_insert_range_interactive (GtkTextBuffer *buffer, + GtkTextIter *iter, + const GtkTextIter *start, + const GtkTextIter *end, + gboolean default_editable); + +void gtk_text_buffer_insert_with_tags (GtkTextBuffer *buffer, + GtkTextIter *iter, + const gchar *text, + gint len, + GtkTextTag *first_tag, + ...) G_GNUC_NULL_TERMINATED; + +void gtk_text_buffer_insert_with_tags_by_name (GtkTextBuffer *buffer, + GtkTextIter *iter, + const gchar *text, + gint len, + const gchar *first_tag_name, + ...) G_GNUC_NULL_TERMINATED; + +/* Delete from the buffer */ +void gtk_text_buffer_delete (GtkTextBuffer *buffer, + GtkTextIter *start, + GtkTextIter *end); +gboolean gtk_text_buffer_delete_interactive (GtkTextBuffer *buffer, + GtkTextIter *start_iter, + GtkTextIter *end_iter, + gboolean default_editable); +gboolean gtk_text_buffer_backspace (GtkTextBuffer *buffer, + GtkTextIter *iter, + gboolean interactive, + gboolean default_editable); + +/* Obtain strings from the buffer */ +gchar *gtk_text_buffer_get_text (GtkTextBuffer *buffer, + const GtkTextIter *start, + const GtkTextIter *end, + gboolean include_hidden_chars); + +gchar *gtk_text_buffer_get_slice (GtkTextBuffer *buffer, + const GtkTextIter *start, + const GtkTextIter *end, + gboolean include_hidden_chars); + +/* Insert a pixbuf */ +void gtk_text_buffer_insert_pixbuf (GtkTextBuffer *buffer, + GtkTextIter *iter, + GdkPixbuf *pixbuf); + +/* Insert a child anchor */ +void gtk_text_buffer_insert_child_anchor (GtkTextBuffer *buffer, + GtkTextIter *iter, + GtkTextChildAnchor *anchor); + +/* Convenience, create and insert a child anchor */ +GtkTextChildAnchor *gtk_text_buffer_create_child_anchor (GtkTextBuffer *buffer, + GtkTextIter *iter); + +/* Mark manipulation */ +void gtk_text_buffer_add_mark (GtkTextBuffer *buffer, + GtkTextMark *mark, + const GtkTextIter *where); +GtkTextMark *gtk_text_buffer_create_mark (GtkTextBuffer *buffer, + const gchar *mark_name, + const GtkTextIter *where, + gboolean left_gravity); +void gtk_text_buffer_move_mark (GtkTextBuffer *buffer, + GtkTextMark *mark, + const GtkTextIter *where); +void gtk_text_buffer_delete_mark (GtkTextBuffer *buffer, + GtkTextMark *mark); +GtkTextMark* gtk_text_buffer_get_mark (GtkTextBuffer *buffer, + const gchar *name); + +void gtk_text_buffer_move_mark_by_name (GtkTextBuffer *buffer, + const gchar *name, + const GtkTextIter *where); +void gtk_text_buffer_delete_mark_by_name (GtkTextBuffer *buffer, + const gchar *name); + +GtkTextMark* gtk_text_buffer_get_insert (GtkTextBuffer *buffer); +GtkTextMark* gtk_text_buffer_get_selection_bound (GtkTextBuffer *buffer); + +/* efficiently move insert and selection_bound at the same time */ +void gtk_text_buffer_place_cursor (GtkTextBuffer *buffer, + const GtkTextIter *where); +void gtk_text_buffer_select_range (GtkTextBuffer *buffer, + const GtkTextIter *ins, + const GtkTextIter *bound); + + + +/* Tag manipulation */ +void gtk_text_buffer_apply_tag (GtkTextBuffer *buffer, + GtkTextTag *tag, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_buffer_remove_tag (GtkTextBuffer *buffer, + GtkTextTag *tag, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_buffer_apply_tag_by_name (GtkTextBuffer *buffer, + const gchar *name, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_buffer_remove_tag_by_name (GtkTextBuffer *buffer, + const gchar *name, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_buffer_remove_all_tags (GtkTextBuffer *buffer, + const GtkTextIter *start, + const GtkTextIter *end); + + +/* You can either ignore the return value, or use it to + * set the attributes of the tag. tag_name can be NULL + */ +GtkTextTag *gtk_text_buffer_create_tag (GtkTextBuffer *buffer, + const gchar *tag_name, + const gchar *first_property_name, + ...); + +/* Obtain iterators pointed at various places, then you can move the + * iterator around using the GtkTextIter operators + */ +void gtk_text_buffer_get_iter_at_line_offset (GtkTextBuffer *buffer, + GtkTextIter *iter, + gint line_number, + gint char_offset); +void gtk_text_buffer_get_iter_at_line_index (GtkTextBuffer *buffer, + GtkTextIter *iter, + gint line_number, + gint byte_index); +void gtk_text_buffer_get_iter_at_offset (GtkTextBuffer *buffer, + GtkTextIter *iter, + gint char_offset); +void gtk_text_buffer_get_iter_at_line (GtkTextBuffer *buffer, + GtkTextIter *iter, + gint line_number); +void gtk_text_buffer_get_start_iter (GtkTextBuffer *buffer, + GtkTextIter *iter); +void gtk_text_buffer_get_end_iter (GtkTextBuffer *buffer, + GtkTextIter *iter); +void gtk_text_buffer_get_bounds (GtkTextBuffer *buffer, + GtkTextIter *start, + GtkTextIter *end); +void gtk_text_buffer_get_iter_at_mark (GtkTextBuffer *buffer, + GtkTextIter *iter, + GtkTextMark *mark); + +void gtk_text_buffer_get_iter_at_child_anchor (GtkTextBuffer *buffer, + GtkTextIter *iter, + GtkTextChildAnchor *anchor); + +/* There's no get_first_iter because you just get the iter for + line or char 0 */ + +/* Used to keep track of whether the buffer needs saving; anytime the + buffer contents change, the modified flag is turned on. Whenever + you save, turn it off. Tags and marks do not affect the modified + flag, but if you would like them to you can connect a handler to + the tag/mark signals and call set_modified in your handler */ + +gboolean gtk_text_buffer_get_modified (GtkTextBuffer *buffer); +void gtk_text_buffer_set_modified (GtkTextBuffer *buffer, + gboolean setting); + +gboolean gtk_text_buffer_get_has_selection (GtkTextBuffer *buffer); + +void gtk_text_buffer_add_selection_clipboard (GtkTextBuffer *buffer, + GtkClipboard *clipboard); +void gtk_text_buffer_remove_selection_clipboard (GtkTextBuffer *buffer, + GtkClipboard *clipboard); + +void gtk_text_buffer_cut_clipboard (GtkTextBuffer *buffer, + GtkClipboard *clipboard, + gboolean default_editable); +void gtk_text_buffer_copy_clipboard (GtkTextBuffer *buffer, + GtkClipboard *clipboard); +void gtk_text_buffer_paste_clipboard (GtkTextBuffer *buffer, + GtkClipboard *clipboard, + GtkTextIter *override_location, + gboolean default_editable); + +gboolean gtk_text_buffer_get_selection_bounds (GtkTextBuffer *buffer, + GtkTextIter *start, + GtkTextIter *end); +gboolean gtk_text_buffer_delete_selection (GtkTextBuffer *buffer, + gboolean interactive, + gboolean default_editable); + +/* Called to specify atomic user actions, used to implement undo */ +void gtk_text_buffer_begin_user_action (GtkTextBuffer *buffer); +void gtk_text_buffer_end_user_action (GtkTextBuffer *buffer); + +GtkTargetList * gtk_text_buffer_get_copy_target_list (GtkTextBuffer *buffer); +GtkTargetList * gtk_text_buffer_get_paste_target_list (GtkTextBuffer *buffer); + +/* INTERNAL private stuff */ +void _gtk_text_buffer_spew (GtkTextBuffer *buffer); + +GtkTextBTree* _gtk_text_buffer_get_btree (GtkTextBuffer *buffer); + +const PangoLogAttr* _gtk_text_buffer_get_line_log_attrs (GtkTextBuffer *buffer, + const GtkTextIter *anywhere_in_line, + gint *char_len); + +void _gtk_text_buffer_notify_will_remove_tag (GtkTextBuffer *buffer, + GtkTextTag *tag); + +G_END_DECLS + +#endif diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextbufferrichtext.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextbufferrichtext.h new file mode 100644 index 00000000..96fc3c96 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextbufferrichtext.h @@ -0,0 +1,92 @@ +/* gtkrichtext.h + * + * Copyright (C) 2006 Imendio AB + * Contact: Michael Natterer <mitch@imendio.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TEXT_BUFFER_RICH_TEXT_H__ +#define __GTK_TEXT_BUFFER_RICH_TEXT_H__ + +#include <gtk/gtktextbuffer.h> + +G_BEGIN_DECLS + +typedef guint8 * (* GtkTextBufferSerializeFunc) (GtkTextBuffer *register_buffer, + GtkTextBuffer *content_buffer, + const GtkTextIter *start, + const GtkTextIter *end, + gsize *length, + gpointer user_data); +typedef gboolean (* GtkTextBufferDeserializeFunc) (GtkTextBuffer *register_buffer, + GtkTextBuffer *content_buffer, + GtkTextIter *iter, + const guint8 *data, + gsize length, + gboolean create_tags, + gpointer user_data, + GError **error); + +GdkAtom gtk_text_buffer_register_serialize_format (GtkTextBuffer *buffer, + const gchar *mime_type, + GtkTextBufferSerializeFunc function, + gpointer user_data, + GDestroyNotify user_data_destroy); +GdkAtom gtk_text_buffer_register_serialize_tagset (GtkTextBuffer *buffer, + const gchar *tagset_name); + +GdkAtom gtk_text_buffer_register_deserialize_format (GtkTextBuffer *buffer, + const gchar *mime_type, + GtkTextBufferDeserializeFunc function, + gpointer user_data, + GDestroyNotify user_data_destroy); +GdkAtom gtk_text_buffer_register_deserialize_tagset (GtkTextBuffer *buffer, + const gchar *tagset_name); + +void gtk_text_buffer_unregister_serialize_format (GtkTextBuffer *buffer, + GdkAtom format); +void gtk_text_buffer_unregister_deserialize_format (GtkTextBuffer *buffer, + GdkAtom format); + +void gtk_text_buffer_deserialize_set_can_create_tags (GtkTextBuffer *buffer, + GdkAtom format, + gboolean can_create_tags); +gboolean gtk_text_buffer_deserialize_get_can_create_tags (GtkTextBuffer *buffer, + GdkAtom format); + +GdkAtom * gtk_text_buffer_get_serialize_formats (GtkTextBuffer *buffer, + gint *n_formats); +GdkAtom * gtk_text_buffer_get_deserialize_formats (GtkTextBuffer *buffer, + gint *n_formats); + +guint8 * gtk_text_buffer_serialize (GtkTextBuffer *register_buffer, + GtkTextBuffer *content_buffer, + GdkAtom format, + const GtkTextIter *start, + const GtkTextIter *end, + gsize *length); +gboolean gtk_text_buffer_deserialize (GtkTextBuffer *register_buffer, + GtkTextBuffer *content_buffer, + GdkAtom format, + GtkTextIter *iter, + const guint8 *data, + gsize length, + GError **error); + +G_END_DECLS + +#endif /* __GTK_TEXT_BUFFER_RICH_TEXT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextchild.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextchild.h new file mode 100644 index 00000000..19c3ad9a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextchild.h @@ -0,0 +1,77 @@ +/* GTK - The GIMP Toolkit + * gtktextchild.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TEXT_CHILD_H__ +#define __GTK_TEXT_CHILD_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +/* A GtkTextChildAnchor is a spot in the buffer where child widgets + * can be "anchored" (inserted inline, as if they were characters). + * The anchor can have multiple widgets anchored, to allow for multiple + * views. + */ + +typedef struct _GtkTextChildAnchor GtkTextChildAnchor; +typedef struct _GtkTextChildAnchorClass GtkTextChildAnchorClass; + +#define GTK_TYPE_TEXT_CHILD_ANCHOR (gtk_text_child_anchor_get_type ()) +#define GTK_TEXT_CHILD_ANCHOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_TEXT_CHILD_ANCHOR, GtkTextChildAnchor)) +#define GTK_TEXT_CHILD_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_CHILD_ANCHOR, GtkTextChildAnchorClass)) +#define GTK_IS_TEXT_CHILD_ANCHOR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_TEXT_CHILD_ANCHOR)) +#define GTK_IS_TEXT_CHILD_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_CHILD_ANCHOR)) +#define GTK_TEXT_CHILD_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_CHILD_ANCHOR, GtkTextChildAnchorClass)) + +struct _GtkTextChildAnchor +{ + GObject parent_instance; + + gpointer segment; +}; + +struct _GtkTextChildAnchorClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_text_child_anchor_get_type (void) G_GNUC_CONST; + +GtkTextChildAnchor* gtk_text_child_anchor_new (void); + +GList* gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor); +gboolean gtk_text_child_anchor_get_deleted (GtkTextChildAnchor *anchor); + +G_END_DECLS + +#endif diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextdisplay.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextdisplay.h new file mode 100644 index 00000000..b93a84c2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextdisplay.h @@ -0,0 +1,112 @@ +/* gtktextdisplay.c - display layed-out text + * + * Copyright (c) 1992-1994 The Regents of the University of California. + * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 2000 Red Hat, Inc. + * Tk->Gtk port by Havoc Pennington + * + * This file can be used under your choice of two licenses, the LGPL + * and the original Tk license. + * + * LGPL: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Original Tk license: + * + * This software is copyrighted by the Regents of the University of + * California, Sun Microsystems, Inc., and other parties. The + * following terms apply to all files associated with the software + * unless explicitly disclaimed in individual files. + * + * The authors hereby grant permission to use, copy, modify, + * distribute, and license this software and its documentation for any + * purpose, provided that existing copyright notices are retained in + * all copies and that this notice is included verbatim in any + * distributions. No written agreement, license, or royalty fee is + * required for any of the authorized uses. Modifications to this + * software may be copyrighted by their authors and need not follow + * the licensing terms described here, provided that the new terms are + * clearly indicated on the first page of each file where they apply. + * + * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * GOVERNMENT USE: If you are acquiring this software on behalf of the + * U.S. government, the Government shall have only "Restricted Rights" + * in the software and related documentation as defined in the Federal + * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + * are acquiring the software on behalf of the Department of Defense, + * the software shall be classified as "Commercial Computer Software" + * and the Government shall have only "Restricted Rights" as defined + * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + * foregoing, the authors grant the U.S. Government and others acting + * in its behalf permission to use and distribute the software in + * accordance with the terms specified in this license. + * + */ +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TEXT_DISPLAY_H__ +#define __GTK_TEXT_DISPLAY_H__ + +#include <gtk/gtktextlayout.h> + +G_BEGIN_DECLS + +/* A semi-public header intended for use by code that also + * uses GtkTextLayout + */ + +/* The drawable should be pre-initialized to your preferred background. + * widget - Widget to grab some style info from + * drawable - Drawable to render to + * cursor_gc - Graphics context to use for cursor + * x_offset/y_offset - Position of the drawable in layout coordinates + * x/y/width/height - Region of the layout to render. x,y must be inside + * the drawable. + * widgets - list of widgets that need exposing + */ +void gtk_text_layout_draw (GtkTextLayout *layout, + GtkWidget *widget, + GdkDrawable *drawable, + GdkGC *cursor_gc, + gint x_offset, + gint y_offset, + gint x, + gint y, + gint width, + gint height, + GList **widgets); + + +G_END_DECLS + +#endif /* __GTK_TEXT_DISPLAY_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextiter.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextiter.h new file mode 100644 index 00000000..f788397f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextiter.h @@ -0,0 +1,303 @@ +/* GTK - The GIMP Toolkit + * gtktextiter.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TEXT_ITER_H__ +#define __GTK_TEXT_ITER_H__ + +#include <gtk/gtktexttag.h> +#include <gtk/gtktextchild.h> + +G_BEGIN_DECLS + +typedef enum { + GTK_TEXT_SEARCH_VISIBLE_ONLY = 1 << 0, + GTK_TEXT_SEARCH_TEXT_ONLY = 1 << 1 + /* Possible future plans: SEARCH_CASE_INSENSITIVE, SEARCH_REGEXP */ +} GtkTextSearchFlags; + +/* + * Iter: represents a location in the text. Becomes invalid if the + * characters/pixmaps/widgets (indexable objects) in the text buffer + * are changed. + */ + +typedef struct _GtkTextBuffer GtkTextBuffer; + +#define GTK_TYPE_TEXT_ITER (gtk_text_iter_get_type ()) + +struct _GtkTextIter { + /* GtkTextIter is an opaque datatype; ignore all these fields. + * Initialize the iter with gtk_text_buffer_get_iter_* + * functions + */ + /*< private >*/ + gpointer dummy1; + gpointer dummy2; + gint dummy3; + gint dummy4; + gint dummy5; + gint dummy6; + gint dummy7; + gint dummy8; + gpointer dummy9; + gpointer dummy10; + gint dummy11; + gint dummy12; + /* padding */ + gint dummy13; + gpointer dummy14; +}; + + +/* This is primarily intended for language bindings that want to avoid + a "buffer" argument to text insertions, deletions, etc. */ +GtkTextBuffer *gtk_text_iter_get_buffer (const GtkTextIter *iter); + +/* + * Life cycle + */ + +GtkTextIter *gtk_text_iter_copy (const GtkTextIter *iter); +void gtk_text_iter_free (GtkTextIter *iter); + +GType gtk_text_iter_get_type (void) G_GNUC_CONST; + +/* + * Convert to different kinds of index + */ + +gint gtk_text_iter_get_offset (const GtkTextIter *iter); +gint gtk_text_iter_get_line (const GtkTextIter *iter); +gint gtk_text_iter_get_line_offset (const GtkTextIter *iter); +gint gtk_text_iter_get_line_index (const GtkTextIter *iter); + +gint gtk_text_iter_get_visible_line_offset (const GtkTextIter *iter); +gint gtk_text_iter_get_visible_line_index (const GtkTextIter *iter); + + +/* + * "Dereference" operators + */ +gunichar gtk_text_iter_get_char (const GtkTextIter *iter); + +/* includes the 0xFFFC char for pixmaps/widgets, so char offsets + * into the returned string map properly into buffer char offsets + */ +gchar *gtk_text_iter_get_slice (const GtkTextIter *start, + const GtkTextIter *end); + +/* includes only text, no 0xFFFC */ +gchar *gtk_text_iter_get_text (const GtkTextIter *start, + const GtkTextIter *end); +/* exclude invisible chars */ +gchar *gtk_text_iter_get_visible_slice (const GtkTextIter *start, + const GtkTextIter *end); +gchar *gtk_text_iter_get_visible_text (const GtkTextIter *start, + const GtkTextIter *end); + +GdkPixbuf* gtk_text_iter_get_pixbuf (const GtkTextIter *iter); +GSList * gtk_text_iter_get_marks (const GtkTextIter *iter); + +GtkTextChildAnchor* gtk_text_iter_get_child_anchor (const GtkTextIter *iter); + +/* Return list of tags toggled at this point (toggled_on determines + * whether the list is of on-toggles or off-toggles) + */ +GSList *gtk_text_iter_get_toggled_tags (const GtkTextIter *iter, + gboolean toggled_on); + +gboolean gtk_text_iter_begins_tag (const GtkTextIter *iter, + GtkTextTag *tag); + +gboolean gtk_text_iter_ends_tag (const GtkTextIter *iter, + GtkTextTag *tag); + +gboolean gtk_text_iter_toggles_tag (const GtkTextIter *iter, + GtkTextTag *tag); + +gboolean gtk_text_iter_has_tag (const GtkTextIter *iter, + GtkTextTag *tag); +GSList *gtk_text_iter_get_tags (const GtkTextIter *iter); + +gboolean gtk_text_iter_editable (const GtkTextIter *iter, + gboolean default_setting); +gboolean gtk_text_iter_can_insert (const GtkTextIter *iter, + gboolean default_editability); + +gboolean gtk_text_iter_starts_word (const GtkTextIter *iter); +gboolean gtk_text_iter_ends_word (const GtkTextIter *iter); +gboolean gtk_text_iter_inside_word (const GtkTextIter *iter); +gboolean gtk_text_iter_starts_sentence (const GtkTextIter *iter); +gboolean gtk_text_iter_ends_sentence (const GtkTextIter *iter); +gboolean gtk_text_iter_inside_sentence (const GtkTextIter *iter); +gboolean gtk_text_iter_starts_line (const GtkTextIter *iter); +gboolean gtk_text_iter_ends_line (const GtkTextIter *iter); +gboolean gtk_text_iter_is_cursor_position (const GtkTextIter *iter); + +gint gtk_text_iter_get_chars_in_line (const GtkTextIter *iter); +gint gtk_text_iter_get_bytes_in_line (const GtkTextIter *iter); + +gboolean gtk_text_iter_get_attributes (const GtkTextIter *iter, + GtkTextAttributes *values); +PangoLanguage* gtk_text_iter_get_language (const GtkTextIter *iter); +gboolean gtk_text_iter_is_end (const GtkTextIter *iter); +gboolean gtk_text_iter_is_start (const GtkTextIter *iter); + +/* + * Moving around the buffer + */ + +gboolean gtk_text_iter_forward_char (GtkTextIter *iter); +gboolean gtk_text_iter_backward_char (GtkTextIter *iter); +gboolean gtk_text_iter_forward_chars (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_chars (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_forward_line (GtkTextIter *iter); +gboolean gtk_text_iter_backward_line (GtkTextIter *iter); +gboolean gtk_text_iter_forward_lines (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_lines (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_forward_word_end (GtkTextIter *iter); +gboolean gtk_text_iter_backward_word_start (GtkTextIter *iter); +gboolean gtk_text_iter_forward_word_ends (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_word_starts (GtkTextIter *iter, + gint count); + +gboolean gtk_text_iter_forward_visible_line (GtkTextIter *iter); +gboolean gtk_text_iter_backward_visible_line (GtkTextIter *iter); +gboolean gtk_text_iter_forward_visible_lines (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_visible_lines (GtkTextIter *iter, + gint count); + +gboolean gtk_text_iter_forward_visible_word_end (GtkTextIter *iter); +gboolean gtk_text_iter_backward_visible_word_start (GtkTextIter *iter); +gboolean gtk_text_iter_forward_visible_word_ends (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_visible_word_starts (GtkTextIter *iter, + gint count); + +gboolean gtk_text_iter_forward_sentence_end (GtkTextIter *iter); +gboolean gtk_text_iter_backward_sentence_start (GtkTextIter *iter); +gboolean gtk_text_iter_forward_sentence_ends (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_sentence_starts (GtkTextIter *iter, + gint count); +/* cursor positions are almost equivalent to chars, but not quite; + * in some languages, you can't put the cursor between certain + * chars. Also, you can't put the cursor between \r\n at the end + * of a line. + */ +gboolean gtk_text_iter_forward_cursor_position (GtkTextIter *iter); +gboolean gtk_text_iter_backward_cursor_position (GtkTextIter *iter); +gboolean gtk_text_iter_forward_cursor_positions (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_cursor_positions (GtkTextIter *iter, + gint count); + +gboolean gtk_text_iter_forward_visible_cursor_position (GtkTextIter *iter); +gboolean gtk_text_iter_backward_visible_cursor_position (GtkTextIter *iter); +gboolean gtk_text_iter_forward_visible_cursor_positions (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_visible_cursor_positions (GtkTextIter *iter, + gint count); + + +void gtk_text_iter_set_offset (GtkTextIter *iter, + gint char_offset); +void gtk_text_iter_set_line (GtkTextIter *iter, + gint line_number); +void gtk_text_iter_set_line_offset (GtkTextIter *iter, + gint char_on_line); +void gtk_text_iter_set_line_index (GtkTextIter *iter, + gint byte_on_line); +void gtk_text_iter_forward_to_end (GtkTextIter *iter); +gboolean gtk_text_iter_forward_to_line_end (GtkTextIter *iter); + +void gtk_text_iter_set_visible_line_offset (GtkTextIter *iter, + gint char_on_line); +void gtk_text_iter_set_visible_line_index (GtkTextIter *iter, + gint byte_on_line); + +/* returns TRUE if a toggle was found; NULL for the tag pointer + * means "any tag toggle", otherwise the next toggle of the + * specified tag is located. + */ +gboolean gtk_text_iter_forward_to_tag_toggle (GtkTextIter *iter, + GtkTextTag *tag); + +gboolean gtk_text_iter_backward_to_tag_toggle (GtkTextIter *iter, + GtkTextTag *tag); + +typedef gboolean (* GtkTextCharPredicate) (gunichar ch, gpointer user_data); + +gboolean gtk_text_iter_forward_find_char (GtkTextIter *iter, + GtkTextCharPredicate pred, + gpointer user_data, + const GtkTextIter *limit); +gboolean gtk_text_iter_backward_find_char (GtkTextIter *iter, + GtkTextCharPredicate pred, + gpointer user_data, + const GtkTextIter *limit); + +gboolean gtk_text_iter_forward_search (const GtkTextIter *iter, + const gchar *str, + GtkTextSearchFlags flags, + GtkTextIter *match_start, + GtkTextIter *match_end, + const GtkTextIter *limit); + +gboolean gtk_text_iter_backward_search (const GtkTextIter *iter, + const gchar *str, + GtkTextSearchFlags flags, + GtkTextIter *match_start, + GtkTextIter *match_end, + const GtkTextIter *limit); + + +/* + * Comparisons + */ +gboolean gtk_text_iter_equal (const GtkTextIter *lhs, + const GtkTextIter *rhs); +gint gtk_text_iter_compare (const GtkTextIter *lhs, + const GtkTextIter *rhs); +gboolean gtk_text_iter_in_range (const GtkTextIter *iter, + const GtkTextIter *start, + const GtkTextIter *end); + +/* Put these two in ascending order */ +void gtk_text_iter_order (GtkTextIter *first, + GtkTextIter *second); + +G_END_DECLS + +#endif + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextlayout.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextlayout.h new file mode 100644 index 00000000..cb357864 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextlayout.h @@ -0,0 +1,440 @@ +/* GTK - The GIMP Toolkit + * gtktextlayout.h + * + * Copyright (c) 1992-1994 The Regents of the University of California. + * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 2000 Red Hat, Inc. + * Tk->Gtk port by Havoc Pennington + * Pango support by Owen Taylor + * + * This file can be used under your choice of two licenses, the LGPL + * and the original Tk license. + * + * LGPL: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * Original Tk license: + * + * This software is copyrighted by the Regents of the University of + * California, Sun Microsystems, Inc., and other parties. The + * following terms apply to all files associated with the software + * unless explicitly disclaimed in individual files. + * + * The authors hereby grant permission to use, copy, modify, + * distribute, and license this software and its documentation for any + * purpose, provided that existing copyright notices are retained in + * all copies and that this notice is included verbatim in any + * distributions. No written agreement, license, or royalty fee is + * required for any of the authorized uses. Modifications to this + * software may be copyrighted by their authors and need not follow + * the licensing terms described here, provided that the new terms are + * clearly indicated on the first page of each file where they apply. + * + * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * GOVERNMENT USE: If you are acquiring this software on behalf of the + * U.S. government, the Government shall have only "Restricted Rights" + * in the software and related documentation as defined in the Federal + * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + * are acquiring the software on behalf of the Department of Defense, + * the software shall be classified as "Commercial Computer Software" + * and the Government shall have only "Restricted Rights" as defined + * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + * foregoing, the authors grant the U.S. Government and others acting + * in its behalf permission to use and distribute the software in + * accordance with the terms specified in this license. + * + */ +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TEXT_LAYOUT_H__ +#define __GTK_TEXT_LAYOUT_H__ + +/* This is a "semi-private" header; it is intended for + * use by the text widget, and the text canvas item, + * but that's all. We may have to install it so the + * canvas item can use it, but users are not supposed + * to use it. + */ +#ifndef GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API +#error "You are not supposed to be including this file; the equivalent public API is in gtktextview.h" +#endif + +#include <gtk/gtktextbuffer.h> +#include <gtk/gtktextiter.h> + +G_BEGIN_DECLS + +/* forward declarations that have to be here to avoid including + * gtktextbtree.h + */ +typedef struct _GtkTextLine GtkTextLine; +typedef struct _GtkTextLineData GtkTextLineData; + +#define GTK_TYPE_TEXT_LAYOUT (gtk_text_layout_get_type ()) +#define GTK_TEXT_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_LAYOUT, GtkTextLayout)) +#define GTK_TEXT_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_LAYOUT, GtkTextLayoutClass)) +#define GTK_IS_TEXT_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_LAYOUT)) +#define GTK_IS_TEXT_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_LAYOUT)) +#define GTK_TEXT_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_LAYOUT, GtkTextLayoutClass)) + +typedef struct _GtkTextLayout GtkTextLayout; +typedef struct _GtkTextLayoutClass GtkTextLayoutClass; +typedef struct _GtkTextLineDisplay GtkTextLineDisplay; +typedef struct _GtkTextCursorDisplay GtkTextCursorDisplay; +typedef struct _GtkTextAttrAppearance GtkTextAttrAppearance; + +struct _GtkTextLayout +{ + GObject parent_instance; + + /* width of the display area on-screen, + * i.e. pixels we should wrap to fit inside. */ + gint screen_width; + + /* width/height of the total logical area being layed out */ + gint width; + gint height; + + /* Pixel offsets from the left and from the top to be used when we + * draw; these allow us to create left/top margins. We don't need + * anything special for bottom/right margins, because those don't + * affect drawing. + */ + /* gint left_edge; */ + /* gint top_edge; */ + + GtkTextBuffer *buffer; + + /* Default style used if no tags override it */ + GtkTextAttributes *default_style; + + /* Pango contexts used for creating layouts */ + PangoContext *ltr_context; + PangoContext *rtl_context; + + /* A cache of one style; this is used to ensure + * we don't constantly regenerate the style + * over long runs with the same style. */ + GtkTextAttributes *one_style_cache; + + /* A cache of one line display. Getting the same line + * many times in a row is the most common case. + */ + GtkTextLineDisplay *one_display_cache; + + /* Whether we are allowed to wrap right now */ + gint wrap_loop_count; + + /* Whether to show the insertion cursor */ + guint cursor_visible : 1; + + /* For what GtkTextDirection to draw cursor GTK_TEXT_DIR_NONE - + * means draw both cursors. + */ + guint cursor_direction : 2; + + /* The keyboard direction is used to default the alignment when + there are no strong characters. + */ + guint keyboard_direction : 2; + + /* The preedit string and attributes, if any */ + + gchar *preedit_string; + PangoAttrList *preedit_attrs; + gint preedit_len; + gint preedit_cursor; + + guint overwrite_mode : 1; +}; + +struct _GtkTextLayoutClass +{ + GObjectClass parent_class; + + /* Some portion of the layout was invalidated + */ + void (*invalidated) (GtkTextLayout *layout); + + /* A range of the layout changed appearance and possibly height + */ + void (*changed) (GtkTextLayout *layout, + gint y, + gint old_height, + gint new_height); + GtkTextLineData* (*wrap) (GtkTextLayout *layout, + GtkTextLine *line, + GtkTextLineData *line_data); /* may be NULL */ + void (*get_log_attrs) (GtkTextLayout *layout, + GtkTextLine *line, + PangoLogAttr **attrs, + gint *n_attrs); + void (*invalidate) (GtkTextLayout *layout, + const GtkTextIter *start, + const GtkTextIter *end); + void (*free_line_data) (GtkTextLayout *layout, + GtkTextLine *line, + GtkTextLineData *line_data); + + void (*allocate_child) (GtkTextLayout *layout, + GtkWidget *child, + gint x, + gint y); + + void (*invalidate_cursors) (GtkTextLayout *layout, + const GtkTextIter *start, + const GtkTextIter *end); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); +}; + +struct _GtkTextAttrAppearance +{ + PangoAttribute attr; + GtkTextAppearance appearance; +}; +struct _GtkTextCursorDisplay +{ + gint x; + gint y; + gint height; + guint is_strong : 1; + guint is_weak : 1; +}; +struct _GtkTextLineDisplay +{ + PangoLayout *layout; + GSList *cursors; + GSList *shaped_objects; /* Only for backwards compatibility */ + + GtkTextDirection direction; + + gint width; /* Width of layout */ + gint total_width; /* width - margins, if no width set on layout, if width set on layout, -1 */ + gint height; + /* Amount layout is shifted from left edge - this is the left margin + * plus any other factors, such as alignment or indentation. + */ + gint x_offset; + gint left_margin; + gint right_margin; + gint top_margin; + gint bottom_margin; + gint insert_index; /* Byte index of insert cursor within para or -1 */ + + gboolean size_only; + GtkTextLine *line; + + GdkColor *pg_bg_color; + + GdkRectangle block_cursor; + guint cursors_invalid : 1; + guint has_block_cursor : 1; + guint cursor_at_line_end : 1; +}; + +extern PangoAttrType gtk_text_attr_appearance_type; + +GType gtk_text_layout_get_type (void) G_GNUC_CONST; + +GtkTextLayout* gtk_text_layout_new (void); +void gtk_text_layout_set_buffer (GtkTextLayout *layout, + GtkTextBuffer *buffer); +GtkTextBuffer *gtk_text_layout_get_buffer (GtkTextLayout *layout); +void gtk_text_layout_set_default_style (GtkTextLayout *layout, + GtkTextAttributes *values); +void gtk_text_layout_set_contexts (GtkTextLayout *layout, + PangoContext *ltr_context, + PangoContext *rtl_context); +void gtk_text_layout_set_cursor_direction (GtkTextLayout *layout, + GtkTextDirection direction); +void gtk_text_layout_set_overwrite_mode (GtkTextLayout *layout, + gboolean overwrite); +void gtk_text_layout_set_keyboard_direction (GtkTextLayout *layout, + GtkTextDirection keyboard_dir); +void gtk_text_layout_default_style_changed (GtkTextLayout *layout); + +void gtk_text_layout_set_screen_width (GtkTextLayout *layout, + gint width); +void gtk_text_layout_set_preedit_string (GtkTextLayout *layout, + const gchar *preedit_string, + PangoAttrList *preedit_attrs, + gint cursor_pos); + +void gtk_text_layout_set_cursor_visible (GtkTextLayout *layout, + gboolean cursor_visible); +gboolean gtk_text_layout_get_cursor_visible (GtkTextLayout *layout); + +/* Getting the size or the lines potentially results in a call to + * recompute, which is pretty massively expensive. Thus it should + * basically only be done in an idle handler. + * + * Long-term, we would really like to be able to do these without + * a full recompute so they may get cheaper over time. + */ +void gtk_text_layout_get_size (GtkTextLayout *layout, + gint *width, + gint *height); +GSList* gtk_text_layout_get_lines (GtkTextLayout *layout, + /* [top_y, bottom_y) */ + gint top_y, + gint bottom_y, + gint *first_line_y); + +void gtk_text_layout_wrap_loop_start (GtkTextLayout *layout); +void gtk_text_layout_wrap_loop_end (GtkTextLayout *layout); + +GtkTextLineDisplay* gtk_text_layout_get_line_display (GtkTextLayout *layout, + GtkTextLine *line, + gboolean size_only); +void gtk_text_layout_free_line_display (GtkTextLayout *layout, + GtkTextLineDisplay *display); + +void gtk_text_layout_get_line_at_y (GtkTextLayout *layout, + GtkTextIter *target_iter, + gint y, + gint *line_top); +void gtk_text_layout_get_iter_at_pixel (GtkTextLayout *layout, + GtkTextIter *iter, + gint x, + gint y); +void gtk_text_layout_get_iter_at_position (GtkTextLayout *layout, + GtkTextIter *iter, + gint *trailing, + gint x, + gint y); +void gtk_text_layout_invalidate (GtkTextLayout *layout, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_layout_invalidate_cursors(GtkTextLayout *layout, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_layout_free_line_data (GtkTextLayout *layout, + GtkTextLine *line, + GtkTextLineData *line_data); + +gboolean gtk_text_layout_is_valid (GtkTextLayout *layout); +void gtk_text_layout_validate_yrange (GtkTextLayout *layout, + GtkTextIter *anchor_line, + gint y0_, + gint y1_); +void gtk_text_layout_validate (GtkTextLayout *layout, + gint max_pixels); + +/* This function should return the passed-in line data, + * OR remove the existing line data from the line, and + * return a NEW line data after adding it to the line. + * That is, invariant after calling the callback is that + * there should be exactly one line data for this view + * stored on the btree line. + */ +GtkTextLineData* gtk_text_layout_wrap (GtkTextLayout *layout, + GtkTextLine *line, + GtkTextLineData *line_data); /* may be NULL */ +void gtk_text_layout_changed (GtkTextLayout *layout, + gint y, + gint old_height, + gint new_height); +void gtk_text_layout_cursors_changed (GtkTextLayout *layout, + gint y, + gint old_height, + gint new_height); +void gtk_text_layout_get_iter_location (GtkTextLayout *layout, + const GtkTextIter *iter, + GdkRectangle *rect); +void gtk_text_layout_get_line_yrange (GtkTextLayout *layout, + const GtkTextIter *iter, + gint *y, + gint *height); +void _gtk_text_layout_get_line_xrange (GtkTextLayout *layout, + const GtkTextIter *iter, + gint *x, + gint *width); +void gtk_text_layout_get_cursor_locations (GtkTextLayout *layout, + GtkTextIter *iter, + GdkRectangle *strong_pos, + GdkRectangle *weak_pos); +gboolean _gtk_text_layout_get_block_cursor (GtkTextLayout *layout, + GdkRectangle *pos); +gboolean gtk_text_layout_clamp_iter_to_vrange (GtkTextLayout *layout, + GtkTextIter *iter, + gint top, + gint bottom); + +gboolean gtk_text_layout_move_iter_to_line_end (GtkTextLayout *layout, + GtkTextIter *iter, + gint direction); +gboolean gtk_text_layout_move_iter_to_previous_line (GtkTextLayout *layout, + GtkTextIter *iter); +gboolean gtk_text_layout_move_iter_to_next_line (GtkTextLayout *layout, + GtkTextIter *iter); +void gtk_text_layout_move_iter_to_x (GtkTextLayout *layout, + GtkTextIter *iter, + gint x); +gboolean gtk_text_layout_move_iter_visually (GtkTextLayout *layout, + GtkTextIter *iter, + gint count); + +gboolean gtk_text_layout_iter_starts_line (GtkTextLayout *layout, + const GtkTextIter *iter); + +void gtk_text_layout_get_iter_at_line (GtkTextLayout *layout, + GtkTextIter *iter, + GtkTextLine *line, + gint byte_offset); + +/* Don't use these. Use gtk_text_view_add_child_at_anchor(). + * These functions are defined in gtktextchild.c, but here + * since they are semi-public and require GtkTextLayout to + * be declared. + */ +void gtk_text_child_anchor_register_child (GtkTextChildAnchor *anchor, + GtkWidget *child, + GtkTextLayout *layout); +void gtk_text_child_anchor_unregister_child (GtkTextChildAnchor *anchor, + GtkWidget *child); + +void gtk_text_child_anchor_queue_resize (GtkTextChildAnchor *anchor, + GtkTextLayout *layout); + +void gtk_text_anchored_child_set_layout (GtkWidget *child, + GtkTextLayout *layout); + +void gtk_text_layout_spew (GtkTextLayout *layout); + +G_END_DECLS + +#endif /* __GTK_TEXT_LAYOUT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextmark.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextmark.h new file mode 100644 index 00000000..41bcb949 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextmark.h @@ -0,0 +1,102 @@ +/* gtktextmark.h - mark segments + * + * Copyright (c) 1994 The Regents of the University of California. + * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 2000 Red Hat, Inc. + * Tk -> Gtk port by Havoc Pennington <hp@redhat.com> + * + * This software is copyrighted by the Regents of the University of + * California, Sun Microsystems, Inc., and other parties. The + * following terms apply to all files associated with the software + * unless explicitly disclaimed in individual files. + * + * The authors hereby grant permission to use, copy, modify, + * distribute, and license this software and its documentation for any + * purpose, provided that existing copyright notices are retained in + * all copies and that this notice is included verbatim in any + * distributions. No written agreement, license, or royalty fee is + * required for any of the authorized uses. Modifications to this + * software may be copyrighted by their authors and need not follow + * the licensing terms described here, provided that the new terms are + * clearly indicated on the first page of each file where they apply. + * + * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * GOVERNMENT USE: If you are acquiring this software on behalf of the + * U.S. government, the Government shall have only "Restricted Rights" + * in the software and related documentation as defined in the Federal + * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + * are acquiring the software on behalf of the Department of Defense, + * the software shall be classified as "Commercial Computer Software" + * and the Government shall have only "Restricted Rights" as defined + * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + * foregoing, the authors grant the U.S. Government and others acting + * in its behalf permission to use and distribute the software in + * accordance with the terms specified in this license. + * + */ + +#ifndef __GTK_TEXT_MARK_H__ +#define __GTK_TEXT_MARK_H__ + +G_BEGIN_DECLS + +/* The GtkTextMark data type */ + +typedef struct _GtkTextMark GtkTextMark; +typedef struct _GtkTextMarkClass GtkTextMarkClass; + +#define GTK_TYPE_TEXT_MARK (gtk_text_mark_get_type ()) +#define GTK_TEXT_MARK(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_TEXT_MARK, GtkTextMark)) +#define GTK_TEXT_MARK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_MARK, GtkTextMarkClass)) +#define GTK_IS_TEXT_MARK(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_TEXT_MARK)) +#define GTK_IS_TEXT_MARK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_MARK)) +#define GTK_TEXT_MARK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_MARK, GtkTextMarkClass)) + +struct _GtkTextMark +{ + GObject parent_instance; + + gpointer segment; +}; + +struct _GtkTextMarkClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_text_mark_get_type (void) G_GNUC_CONST; + +void gtk_text_mark_set_visible (GtkTextMark *mark, + gboolean setting); +gboolean gtk_text_mark_get_visible (GtkTextMark *mark); + +GtkTextMark *gtk_text_mark_new (const gchar *name, + gboolean left_gravity); +G_CONST_RETURN gchar* gtk_text_mark_get_name (GtkTextMark *mark); +gboolean gtk_text_mark_get_deleted (GtkTextMark *mark); +GtkTextBuffer* gtk_text_mark_get_buffer (GtkTextMark *mark); +gboolean gtk_text_mark_get_left_gravity (GtkTextMark *mark); + +G_END_DECLS + +#endif + + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktexttag.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktexttag.h new file mode 100644 index 00000000..61d60d9a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktexttag.h @@ -0,0 +1,284 @@ +/* gtktexttag.c - text tag object + * + * Copyright (c) 1992-1994 The Regents of the University of California. + * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 2000 Red Hat, Inc. + * Tk -> Gtk port by Havoc Pennington <hp@redhat.com> + * + * This software is copyrighted by the Regents of the University of + * California, Sun Microsystems, Inc., and other parties. The + * following terms apply to all files associated with the software + * unless explicitly disclaimed in individual files. + * + * The authors hereby grant permission to use, copy, modify, + * distribute, and license this software and its documentation for any + * purpose, provided that existing copyright notices are retained in + * all copies and that this notice is included verbatim in any + * distributions. No written agreement, license, or royalty fee is + * required for any of the authorized uses. Modifications to this + * software may be copyrighted by their authors and need not follow + * the licensing terms described here, provided that the new terms are + * clearly indicated on the first page of each file where they apply. + * + * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * GOVERNMENT USE: If you are acquiring this software on behalf of the + * U.S. government, the Government shall have only "Restricted Rights" + * in the software and related documentation as defined in the Federal + * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + * are acquiring the software on behalf of the Department of Defense, + * the software shall be classified as "Commercial Computer Software" + * and the Government shall have only "Restricted Rights" as defined + * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + * foregoing, the authors grant the U.S. Government and others acting + * in its behalf permission to use and distribute the software in + * accordance with the terms specified in this license. + * + */ + +#ifndef __GTK_TEXT_TAG_H__ +#define __GTK_TEXT_TAG_H__ + +#include <glib-object.h> +#include <gdk/gdk.h> +#include <gtk/gtkenums.h> + +/* Not needed, retained for compatibility -Yosh */ +#include <gtk/gtkobject.h> + +G_BEGIN_DECLS + +typedef struct _GtkTextIter GtkTextIter; +typedef struct _GtkTextTagTable GtkTextTagTable; + +typedef struct _GtkTextAttributes GtkTextAttributes; + +#define GTK_TYPE_TEXT_TAG (gtk_text_tag_get_type ()) +#define GTK_TEXT_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_TAG, GtkTextTag)) +#define GTK_TEXT_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_TAG, GtkTextTagClass)) +#define GTK_IS_TEXT_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_TAG)) +#define GTK_IS_TEXT_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_TAG)) +#define GTK_TEXT_TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_TAG, GtkTextTagClass)) + +#define GTK_TYPE_TEXT_ATTRIBUTES (gtk_text_attributes_get_type ()) + +typedef struct _GtkTextTag GtkTextTag; +typedef struct _GtkTextTagClass GtkTextTagClass; + +struct _GtkTextTag +{ + GObject parent_instance; + + GtkTextTagTable *table; + + char *name; /* Name of this tag. This field is actually + * a pointer to the key from the entry in + * tkxt->tagTable, so it needn't be freed + * explicitly. */ + int priority; /* Priority of this tag within widget. 0 + * means lowest priority. Exactly one tag + * has each integer value between 0 and + * numTags-1. */ + /* + * Information for displaying text with this tag. The information + * belows acts as an override on information specified by lower-priority + * tags. If no value is specified, then the next-lower-priority tag + * on the text determins the value. The text widget itself provides + * defaults if no tag specifies an override. + */ + + GtkTextAttributes *values; + + /* Flags for whether a given value is set; if a value is unset, then + * this tag does not affect it. + */ + guint bg_color_set : 1; + guint bg_stipple_set : 1; + guint fg_color_set : 1; + guint scale_set : 1; + guint fg_stipple_set : 1; + guint justification_set : 1; + guint left_margin_set : 1; + guint indent_set : 1; + guint rise_set : 1; + guint strikethrough_set : 1; + guint right_margin_set : 1; + guint pixels_above_lines_set : 1; + guint pixels_below_lines_set : 1; + guint pixels_inside_wrap_set : 1; + guint tabs_set : 1; + guint underline_set : 1; + guint wrap_mode_set : 1; + guint bg_full_height_set : 1; + guint invisible_set : 1; + guint editable_set : 1; + guint language_set : 1; + guint pg_bg_color_set : 1; + + /* Whether these margins accumulate or override */ + guint accumulative_margin : 1; + + guint pad1 : 1; +}; + +struct _GtkTextTagClass +{ + GObjectClass parent_class; + + gboolean (* event) (GtkTextTag *tag, + GObject *event_object, /* widget, canvas item, whatever */ + GdkEvent *event, /* the event itself */ + const GtkTextIter *iter); /* location of event in buffer */ + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_text_tag_get_type (void) G_GNUC_CONST; +GtkTextTag *gtk_text_tag_new (const gchar *name); +gint gtk_text_tag_get_priority (GtkTextTag *tag); +void gtk_text_tag_set_priority (GtkTextTag *tag, + gint priority); +gboolean gtk_text_tag_event (GtkTextTag *tag, + GObject *event_object, + GdkEvent *event, + const GtkTextIter *iter); + +/* + * Style object created by folding a set of tags together + */ + +typedef struct _GtkTextAppearance GtkTextAppearance; + +struct _GtkTextAppearance +{ + /*< public >*/ + GdkColor bg_color; + GdkColor fg_color; + GdkBitmap *bg_stipple; + GdkBitmap *fg_stipple; + + /* super/subscript rise, can be negative */ + gint rise; + + /*< private >*/ + /* I'm not sure this can really be used without breaking some things + * an app might do :-/ + */ + gpointer padding1; + + /*< public >*/ + guint underline : 4; /* PangoUnderline */ + guint strikethrough : 1; + + /* Whether to use background-related values; this is irrelevant for + * the values struct when in a tag, but is used for the composite + * values struct; it's true if any of the tags being composited + * had background stuff set. + */ + guint draw_bg : 1; + + /* These are only used when we are actually laying out and rendering + * a paragraph; not when a GtkTextAppearance is part of a + * GtkTextAttributes. + */ + guint inside_selection : 1; + guint is_text : 1; + + /*< private >*/ + guint pad1 : 1; + guint pad2 : 1; + guint pad3 : 1; + guint pad4 : 1; +}; + +struct _GtkTextAttributes +{ + /*< private >*/ + guint refcount; + + /*< public >*/ + GtkTextAppearance appearance; + + GtkJustification justification; + GtkTextDirection direction; + + /* Individual chunks of this can be set/unset as a group */ + PangoFontDescription *font; + + gdouble font_scale; + + gint left_margin; + + gint indent; + + gint right_margin; + + gint pixels_above_lines; + + gint pixels_below_lines; + + gint pixels_inside_wrap; + + PangoTabArray *tabs; + + GtkWrapMode wrap_mode; /* How to handle wrap-around for this tag. + * Must be GTK_WRAPMODE_CHAR, + * GTK_WRAPMODE_NONE, GTK_WRAPMODE_WORD + */ + + PangoLanguage *language; + + /*< private >*/ + GdkColor *pg_bg_color; + + /*< public >*/ + /* hide the text */ + guint invisible : 1; + + /* Background is fit to full line height rather than + * baseline +/- ascent/descent (font height) + */ + guint bg_full_height : 1; + + /* can edit this text */ + guint editable : 1; + + /* colors are allocated etc. */ + guint realized : 1; + + /*< private >*/ + guint pad1 : 1; + guint pad2 : 1; + guint pad3 : 1; + guint pad4 : 1; +}; + +GtkTextAttributes* gtk_text_attributes_new (void); +GtkTextAttributes* gtk_text_attributes_copy (GtkTextAttributes *src); +void gtk_text_attributes_copy_values (GtkTextAttributes *src, + GtkTextAttributes *dest); +void gtk_text_attributes_unref (GtkTextAttributes *values); +GtkTextAttributes *gtk_text_attributes_ref (GtkTextAttributes *values); + +GType gtk_text_attributes_get_type (void) G_GNUC_CONST; + + +G_END_DECLS + +#endif + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktexttagtable.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktexttagtable.h new file mode 100644 index 00000000..6582c7ec --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktexttagtable.h @@ -0,0 +1,99 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TEXT_TAG_TABLE_H__ +#define __GTK_TEXT_TAG_TABLE_H__ + +#include <gtk/gtktexttag.h> + +G_BEGIN_DECLS + +#include <gtk/gtktexttag.h> + +typedef void (* GtkTextTagTableForeach) (GtkTextTag *tag, gpointer data); + +#define GTK_TYPE_TEXT_TAG_TABLE (gtk_text_tag_table_get_type ()) +#define GTK_TEXT_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_TAG_TABLE, GtkTextTagTable)) +#define GTK_TEXT_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_TAG_TABLE, GtkTextTagTableClass)) +#define GTK_IS_TEXT_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_TAG_TABLE)) +#define GTK_IS_TEXT_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_TAG_TABLE)) +#define GTK_TEXT_TAG_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_TAG_TABLE, GtkTextTagTableClass)) + +typedef struct _GtkTextTagTableClass GtkTextTagTableClass; + +struct _GtkTextTagTable +{ + GObject parent_instance; + + GHashTable *hash; + GSList *anonymous; + gint anon_count; + + GSList *buffers; +}; + +struct _GtkTextTagTableClass +{ + GObjectClass parent_class; + + void (* tag_changed) (GtkTextTagTable *table, GtkTextTag *tag, gboolean size_changed); + void (* tag_added) (GtkTextTagTable *table, GtkTextTag *tag); + void (* tag_removed) (GtkTextTagTable *table, GtkTextTag *tag); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_text_tag_table_get_type (void) G_GNUC_CONST; + +GtkTextTagTable *gtk_text_tag_table_new (void); +void gtk_text_tag_table_add (GtkTextTagTable *table, + GtkTextTag *tag); +void gtk_text_tag_table_remove (GtkTextTagTable *table, + GtkTextTag *tag); +GtkTextTag *gtk_text_tag_table_lookup (GtkTextTagTable *table, + const gchar *name); +void gtk_text_tag_table_foreach (GtkTextTagTable *table, + GtkTextTagTableForeach func, + gpointer data); +gint gtk_text_tag_table_get_size (GtkTextTagTable *table); + + +/* INTERNAL private stuff - not even exported from the library on + * many platforms + */ +void _gtk_text_tag_table_add_buffer (GtkTextTagTable *table, + gpointer buffer); +void _gtk_text_tag_table_remove_buffer (GtkTextTagTable *table, + gpointer buffer); + +G_END_DECLS + +#endif + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextview.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextview.h new file mode 100644 index 00000000..d5223118 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktextview.h @@ -0,0 +1,367 @@ +/* GTK - The GIMP Toolkit + * gtktextview.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TEXT_VIEW_H__ +#define __GTK_TEXT_VIEW_H__ + +#include <gtk/gtkcontainer.h> +#include <gtk/gtkimcontext.h> +#include <gtk/gtktextbuffer.h> +#include <gtk/gtkmenu.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TEXT_VIEW (gtk_text_view_get_type ()) +#define GTK_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_VIEW, GtkTextView)) +#define GTK_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_VIEW, GtkTextViewClass)) +#define GTK_IS_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_VIEW)) +#define GTK_IS_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_VIEW)) +#define GTK_TEXT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_VIEW, GtkTextViewClass)) + +typedef enum +{ + GTK_TEXT_WINDOW_PRIVATE, + GTK_TEXT_WINDOW_WIDGET, + GTK_TEXT_WINDOW_TEXT, + GTK_TEXT_WINDOW_LEFT, + GTK_TEXT_WINDOW_RIGHT, + GTK_TEXT_WINDOW_TOP, + GTK_TEXT_WINDOW_BOTTOM +} GtkTextWindowType; + +#define GTK_TEXT_VIEW_PRIORITY_VALIDATE (GDK_PRIORITY_REDRAW + 5) + +typedef struct _GtkTextView GtkTextView; +typedef struct _GtkTextViewClass GtkTextViewClass; + +/* Internal private types. */ +typedef struct _GtkTextWindow GtkTextWindow; +typedef struct _GtkTextPendingScroll GtkTextPendingScroll; + +struct _GtkTextView +{ + GtkContainer parent_instance; + + struct _GtkTextLayout *layout; + GtkTextBuffer *buffer; + + guint selection_drag_handler; + guint scroll_timeout; + + /* Default style settings */ + gint pixels_above_lines; + gint pixels_below_lines; + gint pixels_inside_wrap; + GtkWrapMode wrap_mode; + GtkJustification justify; + gint left_margin; + gint right_margin; + gint indent; + PangoTabArray *tabs; + guint editable : 1; + + + + guint overwrite_mode : 1; + guint cursor_visible : 1; + + /* if we have reset the IM since the last character entered */ + guint need_im_reset : 1; + + guint accepts_tab : 1; + + guint width_changed : 1; + + /* debug flag - means that we've validated onscreen since the + * last "invalidate" signal from the layout + */ + guint onscreen_validated : 1; + + guint mouse_cursor_obscured : 1; + + GtkTextWindow *text_window; + GtkTextWindow *left_window; + GtkTextWindow *right_window; + GtkTextWindow *top_window; + GtkTextWindow *bottom_window; + + GtkAdjustment *hadjustment; + GtkAdjustment *vadjustment; + + gint xoffset; /* Offsets between widget coordinates and buffer coordinates */ + gint yoffset; + gint width; /* Width and height of the buffer */ + gint height; + + /* The virtual cursor position is normally the same as the + * actual (strong) cursor position, except in two circumstances: + * + * a) When the cursor is moved vertically with the keyboard + * b) When the text view is scrolled with the keyboard + * + * In case a), virtual_cursor_x is preserved, but not virtual_cursor_y + * In case b), both virtual_cursor_x and virtual_cursor_y are preserved. + */ + gint virtual_cursor_x; /* -1 means use actual cursor position */ + gint virtual_cursor_y; /* -1 means use actual cursor position */ + + GtkTextMark *first_para_mark; /* Mark at the beginning of the first onscreen paragraph */ + gint first_para_pixels; /* Offset of top of screen in the first onscreen paragraph */ + + GtkTextMark *dnd_mark; + guint blink_timeout; + + guint first_validate_idle; /* Idle to revalidate onscreen portion, runs before resize */ + guint incremental_validate_idle; /* Idle to revalidate offscreen portions, runs after redraw */ + + GtkIMContext *im_context; + GtkWidget *popup_menu; + + gint drag_start_x; + gint drag_start_y; + + GSList *children; + + GtkTextPendingScroll *pending_scroll; + + gint pending_place_cursor_button; +}; + +struct _GtkTextViewClass +{ + GtkContainerClass parent_class; + + void (* set_scroll_adjustments) (GtkTextView *text_view, + GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); + + void (* populate_popup) (GtkTextView *text_view, + GtkMenu *menu); + + /* These are all RUN_ACTION signals for keybindings */ + + /* move insertion point */ + void (* move_cursor) (GtkTextView *text_view, + GtkMovementStep step, + gint count, + gboolean extend_selection); + + /* FIXME should be deprecated in favor of adding GTK_MOVEMENT_HORIZONTAL_PAGES + * or something in GTK 2.2, was put in to avoid adding enum values during + * the freeze. + */ + void (* page_horizontally) (GtkTextView *text_view, + gint count, + gboolean extend_selection); + + /* move the "anchor" (what Emacs calls the mark) to the cursor position */ + void (* set_anchor) (GtkTextView *text_view); + + /* Edits */ + void (* insert_at_cursor) (GtkTextView *text_view, + const gchar *str); + void (* delete_from_cursor) (GtkTextView *text_view, + GtkDeleteType type, + gint count); + void (* backspace) (GtkTextView *text_view); + + /* cut copy paste */ + void (* cut_clipboard) (GtkTextView *text_view); + void (* copy_clipboard) (GtkTextView *text_view); + void (* paste_clipboard) (GtkTextView *text_view); + /* overwrite */ + void (* toggle_overwrite) (GtkTextView *text_view); + + /* as of GTK+ 2.12 the "move-focus" signal has been moved to GtkWidget, + * so this is merley a virtual function now. Overriding it in subclasses + * continues to work though. + */ + void (* move_focus) (GtkTextView *text_view, + GtkDirectionType direction); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); +}; + +GType gtk_text_view_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_text_view_new (void); +GtkWidget * gtk_text_view_new_with_buffer (GtkTextBuffer *buffer); +void gtk_text_view_set_buffer (GtkTextView *text_view, + GtkTextBuffer *buffer); +GtkTextBuffer *gtk_text_view_get_buffer (GtkTextView *text_view); +gboolean gtk_text_view_scroll_to_iter (GtkTextView *text_view, + GtkTextIter *iter, + gdouble within_margin, + gboolean use_align, + gdouble xalign, + gdouble yalign); +void gtk_text_view_scroll_to_mark (GtkTextView *text_view, + GtkTextMark *mark, + gdouble within_margin, + gboolean use_align, + gdouble xalign, + gdouble yalign); +void gtk_text_view_scroll_mark_onscreen (GtkTextView *text_view, + GtkTextMark *mark); +gboolean gtk_text_view_move_mark_onscreen (GtkTextView *text_view, + GtkTextMark *mark); +gboolean gtk_text_view_place_cursor_onscreen (GtkTextView *text_view); + +void gtk_text_view_get_visible_rect (GtkTextView *text_view, + GdkRectangle *visible_rect); +void gtk_text_view_set_cursor_visible (GtkTextView *text_view, + gboolean setting); +gboolean gtk_text_view_get_cursor_visible (GtkTextView *text_view); + +void gtk_text_view_get_iter_location (GtkTextView *text_view, + const GtkTextIter *iter, + GdkRectangle *location); +void gtk_text_view_get_iter_at_location (GtkTextView *text_view, + GtkTextIter *iter, + gint x, + gint y); +void gtk_text_view_get_iter_at_position (GtkTextView *text_view, + GtkTextIter *iter, + gint *trailing, + gint x, + gint y); +void gtk_text_view_get_line_yrange (GtkTextView *text_view, + const GtkTextIter *iter, + gint *y, + gint *height); + +void gtk_text_view_get_line_at_y (GtkTextView *text_view, + GtkTextIter *target_iter, + gint y, + gint *line_top); + +void gtk_text_view_buffer_to_window_coords (GtkTextView *text_view, + GtkTextWindowType win, + gint buffer_x, + gint buffer_y, + gint *window_x, + gint *window_y); +void gtk_text_view_window_to_buffer_coords (GtkTextView *text_view, + GtkTextWindowType win, + gint window_x, + gint window_y, + gint *buffer_x, + gint *buffer_y); + +GdkWindow* gtk_text_view_get_window (GtkTextView *text_view, + GtkTextWindowType win); +GtkTextWindowType gtk_text_view_get_window_type (GtkTextView *text_view, + GdkWindow *window); + +void gtk_text_view_set_border_window_size (GtkTextView *text_view, + GtkTextWindowType type, + gint size); +gint gtk_text_view_get_border_window_size (GtkTextView *text_view, + GtkTextWindowType type); + +gboolean gtk_text_view_forward_display_line (GtkTextView *text_view, + GtkTextIter *iter); +gboolean gtk_text_view_backward_display_line (GtkTextView *text_view, + GtkTextIter *iter); +gboolean gtk_text_view_forward_display_line_end (GtkTextView *text_view, + GtkTextIter *iter); +gboolean gtk_text_view_backward_display_line_start (GtkTextView *text_view, + GtkTextIter *iter); +gboolean gtk_text_view_starts_display_line (GtkTextView *text_view, + const GtkTextIter *iter); +gboolean gtk_text_view_move_visually (GtkTextView *text_view, + GtkTextIter *iter, + gint count); + +/* Adding child widgets */ +void gtk_text_view_add_child_at_anchor (GtkTextView *text_view, + GtkWidget *child, + GtkTextChildAnchor *anchor); + +void gtk_text_view_add_child_in_window (GtkTextView *text_view, + GtkWidget *child, + GtkTextWindowType which_window, + /* window coordinates */ + gint xpos, + gint ypos); + +void gtk_text_view_move_child (GtkTextView *text_view, + GtkWidget *child, + /* window coordinates */ + gint xpos, + gint ypos); + +/* Default style settings (fallbacks if no tag affects the property) */ + +void gtk_text_view_set_wrap_mode (GtkTextView *text_view, + GtkWrapMode wrap_mode); +GtkWrapMode gtk_text_view_get_wrap_mode (GtkTextView *text_view); +void gtk_text_view_set_editable (GtkTextView *text_view, + gboolean setting); +gboolean gtk_text_view_get_editable (GtkTextView *text_view); +void gtk_text_view_set_overwrite (GtkTextView *text_view, + gboolean overwrite); +gboolean gtk_text_view_get_overwrite (GtkTextView *text_view); +void gtk_text_view_set_accepts_tab (GtkTextView *text_view, + gboolean accepts_tab); +gboolean gtk_text_view_get_accepts_tab (GtkTextView *text_view); +void gtk_text_view_set_pixels_above_lines (GtkTextView *text_view, + gint pixels_above_lines); +gint gtk_text_view_get_pixels_above_lines (GtkTextView *text_view); +void gtk_text_view_set_pixels_below_lines (GtkTextView *text_view, + gint pixels_below_lines); +gint gtk_text_view_get_pixels_below_lines (GtkTextView *text_view); +void gtk_text_view_set_pixels_inside_wrap (GtkTextView *text_view, + gint pixels_inside_wrap); +gint gtk_text_view_get_pixels_inside_wrap (GtkTextView *text_view); +void gtk_text_view_set_justification (GtkTextView *text_view, + GtkJustification justification); +GtkJustification gtk_text_view_get_justification (GtkTextView *text_view); +void gtk_text_view_set_left_margin (GtkTextView *text_view, + gint left_margin); +gint gtk_text_view_get_left_margin (GtkTextView *text_view); +void gtk_text_view_set_right_margin (GtkTextView *text_view, + gint right_margin); +gint gtk_text_view_get_right_margin (GtkTextView *text_view); +void gtk_text_view_set_indent (GtkTextView *text_view, + gint indent); +gint gtk_text_view_get_indent (GtkTextView *text_view); +void gtk_text_view_set_tabs (GtkTextView *text_view, + PangoTabArray *tabs); +PangoTabArray* gtk_text_view_get_tabs (GtkTextView *text_view); + +/* note that the return value of this changes with the theme */ +GtkTextAttributes* gtk_text_view_get_default_attributes (GtkTextView *text_view); + +G_END_DECLS + +#endif /* __GTK_TEXT_VIEW_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktipsquery.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktipsquery.h new file mode 100644 index 00000000..2a09baed --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktipsquery.h @@ -0,0 +1,110 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GtkQueryTips: Query onscreen widgets for their tooltips + * Copyright (C) 1998 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_TIPS_QUERY_H__ +#define __GTK_TIPS_QUERY_H__ + + +#include <gtk/gtklabel.h> + + +G_BEGIN_DECLS + +/* --- type macros --- */ +#define GTK_TYPE_TIPS_QUERY (gtk_tips_query_get_type ()) +#define GTK_TIPS_QUERY(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TIPS_QUERY, GtkTipsQuery)) +#define GTK_TIPS_QUERY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TIPS_QUERY, GtkTipsQueryClass)) +#define GTK_IS_TIPS_QUERY(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TIPS_QUERY)) +#define GTK_IS_TIPS_QUERY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TIPS_QUERY)) +#define GTK_TIPS_QUERY_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_TIPS_QUERY, GtkTipsQueryClass)) + + +/* --- typedefs --- */ +typedef struct _GtkTipsQuery GtkTipsQuery; +typedef struct _GtkTipsQueryClass GtkTipsQueryClass; + + +/* --- structures --- */ +struct _GtkTipsQuery +{ + GtkLabel label; + + guint emit_always : 1; + guint in_query : 1; + gchar *label_inactive; + gchar *label_no_tip; + + GtkWidget *caller; + GtkWidget *last_crossed; + + GdkCursor *query_cursor; +}; + +struct _GtkTipsQueryClass +{ + GtkLabelClass parent_class; + + void (*start_query) (GtkTipsQuery *tips_query); + void (*stop_query) (GtkTipsQuery *tips_query); + void (*widget_entered) (GtkTipsQuery *tips_query, + GtkWidget *widget, + const gchar *tip_text, + const gchar *tip_private); + gint (*widget_selected) (GtkTipsQuery *tips_query, + GtkWidget *widget, + const gchar *tip_text, + const gchar *tip_private, + GdkEventButton *event); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +/* --- prototypes --- */ +GtkType gtk_tips_query_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_tips_query_new (void); +void gtk_tips_query_start_query (GtkTipsQuery *tips_query); +void gtk_tips_query_stop_query (GtkTipsQuery *tips_query); +void gtk_tips_query_set_caller (GtkTipsQuery *tips_query, + GtkWidget *caller); +void gtk_tips_query_set_labels (GtkTipsQuery *tips_query, + const gchar *label_inactive, + const gchar *label_no_tip); + +G_END_DECLS + +#endif /* __GTK_TIPS_QUERY_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoggleaction.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoggleaction.h new file mode 100644 index 00000000..6325c35b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoggleaction.h @@ -0,0 +1,86 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with the Gnome Library; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Author: James Henstridge <james@daa.com.au> + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ +#ifndef __GTK_TOGGLE_ACTION_H__ +#define __GTK_TOGGLE_ACTION_H__ + +#include <gtk/gtkaction.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TOGGLE_ACTION (gtk_toggle_action_get_type ()) +#define GTK_TOGGLE_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_ACTION, GtkToggleAction)) +#define GTK_TOGGLE_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_ACTION, GtkToggleActionClass)) +#define GTK_IS_TOGGLE_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOGGLE_ACTION)) +#define GTK_IS_TOGGLE_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_ACTION)) +#define GTK_TOGGLE_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOGGLE_ACTION, GtkToggleActionClass)) + +typedef struct _GtkToggleAction GtkToggleAction; +typedef struct _GtkToggleActionPrivate GtkToggleActionPrivate; +typedef struct _GtkToggleActionClass GtkToggleActionClass; + +struct _GtkToggleAction +{ + GtkAction parent; + + /*< private >*/ + + GtkToggleActionPrivate *private_data; +}; + +struct _GtkToggleActionClass +{ + GtkActionClass parent_class; + + void (* toggled) (GtkToggleAction *action); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_toggle_action_get_type (void) G_GNUC_CONST; +GtkToggleAction *gtk_toggle_action_new (const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *stock_id); +void gtk_toggle_action_toggled (GtkToggleAction *action); +void gtk_toggle_action_set_active (GtkToggleAction *action, + gboolean is_active); +gboolean gtk_toggle_action_get_active (GtkToggleAction *action); +void gtk_toggle_action_set_draw_as_radio (GtkToggleAction *action, + gboolean draw_as_radio); +gboolean gtk_toggle_action_get_draw_as_radio (GtkToggleAction *action); + + +G_END_DECLS + +#endif /* __GTK_TOGGLE_ACTION_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktogglebutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktogglebutton.h new file mode 100644 index 00000000..c5bb68e3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktogglebutton.h @@ -0,0 +1,93 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TOGGLE_BUTTON_H__ +#define __GTK_TOGGLE_BUTTON_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkbutton.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TOGGLE_BUTTON (gtk_toggle_button_get_type ()) +#define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) +#define GTK_TOGGLE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButtonClass)) +#define GTK_IS_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOGGLE_BUTTON)) +#define GTK_IS_TOGGLE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_BUTTON)) +#define GTK_TOGGLE_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButtonClass)) + + +typedef struct _GtkToggleButton GtkToggleButton; +typedef struct _GtkToggleButtonClass GtkToggleButtonClass; + +struct _GtkToggleButton +{ + GtkButton button; + + guint active : 1; + guint draw_indicator : 1; + guint inconsistent : 1; +}; + +struct _GtkToggleButtonClass +{ + GtkButtonClass parent_class; + + void (* toggled) (GtkToggleButton *toggle_button); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_toggle_button_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_toggle_button_new (void); +GtkWidget* gtk_toggle_button_new_with_label (const gchar *label); +GtkWidget* gtk_toggle_button_new_with_mnemonic (const gchar *label); +void gtk_toggle_button_set_mode (GtkToggleButton *toggle_button, + gboolean draw_indicator); +gboolean gtk_toggle_button_get_mode (GtkToggleButton *toggle_button); +void gtk_toggle_button_set_active (GtkToggleButton *toggle_button, + gboolean is_active); +gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button); +void gtk_toggle_button_toggled (GtkToggleButton *toggle_button); +void gtk_toggle_button_set_inconsistent (GtkToggleButton *toggle_button, + gboolean setting); +gboolean gtk_toggle_button_get_inconsistent (GtkToggleButton *toggle_button); + + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_toggle_button_set_state gtk_toggle_button_set_active +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __GTK_TOGGLE_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h new file mode 100644 index 00000000..1d747d5a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h @@ -0,0 +1,73 @@ +/* gtktoggletoolbutton.h + * + * Copyright (C) 2002 Anders Carlsson <andersca@gnome.org> + * Copyright (C) 2002 James Henstridge <james@daa.com.au> + * Copyright (C) 2003 Soeren Sandmann <sandmann@daimi.au.dk> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TOGGLE_TOOL_BUTTON_H__ +#define __GTK_TOGGLE_TOOL_BUTTON_H__ + +#include "gtktoolbutton.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_TOGGLE_TOOL_BUTTON (gtk_toggle_tool_button_get_type ()) +#define GTK_TOGGLE_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButton)) +#define GTK_TOGGLE_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButtonClass)) +#define GTK_IS_TOGGLE_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOGGLE_TOOL_BUTTON)) +#define GTK_IS_TOGGLE_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_TOOL_BUTTON)) +#define GTK_TOGGLE_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButtonClass)) + +typedef struct _GtkToggleToolButton GtkToggleToolButton; +typedef struct _GtkToggleToolButtonClass GtkToggleToolButtonClass; +typedef struct _GtkToggleToolButtonPrivate GtkToggleToolButtonPrivate; + +struct _GtkToggleToolButton +{ + GtkToolButton parent; + + /*< private >*/ + GtkToggleToolButtonPrivate *priv; +}; + +struct _GtkToggleToolButtonClass +{ + GtkToolButtonClass parent_class; + + /* signal */ + void (* toggled) (GtkToggleToolButton *button); + + /* Padding for future expansion */ + void (* _gtk_reserved1) (void); + void (* _gtk_reserved2) (void); + void (* _gtk_reserved3) (void); + void (* _gtk_reserved4) (void); +}; + +GType gtk_toggle_tool_button_get_type (void) G_GNUC_CONST; +GtkToolItem *gtk_toggle_tool_button_new (void); +GtkToolItem *gtk_toggle_tool_button_new_from_stock (const gchar *stock_id); + +void gtk_toggle_tool_button_set_active (GtkToggleToolButton *button, + gboolean is_active); +gboolean gtk_toggle_tool_button_get_active (GtkToggleToolButton *button); + +G_END_DECLS + +#endif /* __GTK_TOGGLE_TOOL_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoolbar.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoolbar.h new file mode 100644 index 00000000..dbe72a81 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoolbar.h @@ -0,0 +1,278 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * GtkToolbar copyright (C) Federico Mena + * + * Copyright (C) 2002 Anders Carlsson <andersca@gnome.org> + * Copyright (C) 2002 James Henstridge <james@daa.com.au> + * Copyright (C) 2003 Soeren Sandmann <sandmann@daimi.au.dk> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TOOLBAR_H__ +#define __GTK_TOOLBAR_H__ + +#include <gdk/gdk.h> +#include <gtk/gtkcontainer.h> +#include <gtk/gtkenums.h> +#include <gtk/gtktooltips.h> + +#include "gtktoolitem.h" + +#ifndef GTK_DISABLE_DEPRECATED + +/* Not needed, retained for compatibility -Yosh */ +#include <gtk/gtkpixmap.h> +#include <gtk/gtksignal.h> + +#endif /* GTK_DISABLE_DEPRECATED */ + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOLBAR (gtk_toolbar_get_type ()) +#define GTK_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOLBAR, GtkToolbar)) +#define GTK_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOLBAR, GtkToolbarClass)) +#define GTK_IS_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOLBAR)) +#define GTK_IS_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOLBAR)) +#define GTK_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOOLBAR, GtkToolbarClass)) + +#ifndef GTK_DISABLE_DEPRECATED +typedef enum +{ + GTK_TOOLBAR_CHILD_SPACE, + GTK_TOOLBAR_CHILD_BUTTON, + GTK_TOOLBAR_CHILD_TOGGLEBUTTON, + GTK_TOOLBAR_CHILD_RADIOBUTTON, + GTK_TOOLBAR_CHILD_WIDGET +} GtkToolbarChildType; + +typedef struct _GtkToolbarChild GtkToolbarChild; + +struct _GtkToolbarChild +{ + GtkToolbarChildType type; + GtkWidget *widget; + GtkWidget *icon; + GtkWidget *label; +}; + +#endif /* GTK_DISABLE_DEPRECATED */ + +typedef enum +{ + GTK_TOOLBAR_SPACE_EMPTY, + GTK_TOOLBAR_SPACE_LINE +} GtkToolbarSpaceStyle; + +typedef struct _GtkToolbar GtkToolbar; +typedef struct _GtkToolbarClass GtkToolbarClass; +typedef struct _GtkToolbarPrivate GtkToolbarPrivate; + +struct _GtkToolbar +{ + GtkContainer container; + + /*< public >*/ + gint num_children; + GList *children; + GtkOrientation orientation; + GtkToolbarStyle style; + GtkIconSize icon_size; + +#ifndef GTK_DISABLE_DEPRECATED + GtkTooltips *tooltips; +#else + gpointer _tooltips; +#endif + + /*< private >*/ + gint button_maxw; /* maximum width of homogeneous children */ + gint button_maxh; /* maximum height of homogeneous children */ + + guint _gtk_reserved1; + guint _gtk_reserved2; + + guint style_set : 1; + guint icon_size_set : 1; +}; + +struct _GtkToolbarClass +{ + GtkContainerClass parent_class; + + /* signals */ + void (* orientation_changed) (GtkToolbar *toolbar, + GtkOrientation orientation); + void (* style_changed) (GtkToolbar *toolbar, + GtkToolbarStyle style); + gboolean (* popup_context_menu) (GtkToolbar *toolbar, + gint x, + gint y, + gint button_number); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); +}; + +GType gtk_toolbar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_toolbar_new (void); +void gtk_toolbar_insert (GtkToolbar *toolbar, + GtkToolItem *item, + gint pos); +gint gtk_toolbar_get_item_index (GtkToolbar *toolbar, + GtkToolItem *item); +gint gtk_toolbar_get_n_items (GtkToolbar *toolbar); +GtkToolItem * gtk_toolbar_get_nth_item (GtkToolbar *toolbar, + gint n); +gboolean gtk_toolbar_get_show_arrow (GtkToolbar *toolbar); +void gtk_toolbar_set_show_arrow (GtkToolbar *toolbar, + gboolean show_arrow); +GtkOrientation gtk_toolbar_get_orientation (GtkToolbar *toolbar); +void gtk_toolbar_set_orientation (GtkToolbar *toolbar, + GtkOrientation orientation); +gboolean gtk_toolbar_get_tooltips (GtkToolbar *toolbar); +void gtk_toolbar_set_tooltips (GtkToolbar *toolbar, + gboolean enable); +GtkToolbarStyle gtk_toolbar_get_style (GtkToolbar *toolbar); +void gtk_toolbar_set_style (GtkToolbar *toolbar, + GtkToolbarStyle style); +void gtk_toolbar_unset_style (GtkToolbar *toolbar); +GtkIconSize gtk_toolbar_get_icon_size (GtkToolbar *toolbar); +GtkReliefStyle gtk_toolbar_get_relief_style (GtkToolbar *toolbar); +gint gtk_toolbar_get_drop_index (GtkToolbar *toolbar, + gint x, + gint y); +void gtk_toolbar_set_drop_highlight_item (GtkToolbar *toolbar, + GtkToolItem *tool_item, + gint index_); + +/* internal functions */ +gchar * _gtk_toolbar_elide_underscores (const gchar *original); +void _gtk_toolbar_paint_space_line (GtkWidget *widget, + GtkToolbar *toolbar, + GdkRectangle *area, + GtkAllocation *allocation); +gint _gtk_toolbar_get_default_space_size (void); +void _gtk_toolbar_rebuild_menu (GtkToolbar *toolbar); + + +void gtk_toolbar_set_icon_size (GtkToolbar *toolbar, + GtkIconSize icon_size); +void gtk_toolbar_unset_icon_size (GtkToolbar *toolbar); + +#ifndef GTK_DISABLE_DEPRECATED +/* Simple button items */ +GtkWidget* gtk_toolbar_append_item (GtkToolbar *toolbar, + const char *text, + const char *tooltip_text, + const char *tooltip_private_text, + GtkWidget *icon, + GtkSignalFunc callback, + gpointer user_data); +GtkWidget* gtk_toolbar_prepend_item (GtkToolbar *toolbar, + const char *text, + const char *tooltip_text, + const char *tooltip_private_text, + GtkWidget *icon, + GtkSignalFunc callback, + gpointer user_data); +GtkWidget* gtk_toolbar_insert_item (GtkToolbar *toolbar, + const char *text, + const char *tooltip_text, + const char *tooltip_private_text, + GtkWidget *icon, + GtkSignalFunc callback, + gpointer user_data, + gint position); + +/* Stock Items */ +GtkWidget* gtk_toolbar_insert_stock (GtkToolbar *toolbar, + const gchar *stock_id, + const char *tooltip_text, + const char *tooltip_private_text, + GtkSignalFunc callback, + gpointer user_data, + gint position); + +/* Space Items */ +void gtk_toolbar_append_space (GtkToolbar *toolbar); +void gtk_toolbar_prepend_space (GtkToolbar *toolbar); +void gtk_toolbar_insert_space (GtkToolbar *toolbar, + gint position); +void gtk_toolbar_remove_space (GtkToolbar *toolbar, + gint position); +/* Any element type */ +GtkWidget* gtk_toolbar_append_element (GtkToolbar *toolbar, + GtkToolbarChildType type, + GtkWidget *widget, + const char *text, + const char *tooltip_text, + const char *tooltip_private_text, + GtkWidget *icon, + GtkSignalFunc callback, + gpointer user_data); + +GtkWidget* gtk_toolbar_prepend_element (GtkToolbar *toolbar, + GtkToolbarChildType type, + GtkWidget *widget, + const char *text, + const char *tooltip_text, + const char *tooltip_private_text, + GtkWidget *icon, + GtkSignalFunc callback, + gpointer user_data); + +GtkWidget* gtk_toolbar_insert_element (GtkToolbar *toolbar, + GtkToolbarChildType type, + GtkWidget *widget, + const char *text, + const char *tooltip_text, + const char *tooltip_private_text, + GtkWidget *icon, + GtkSignalFunc callback, + gpointer user_data, + gint position); + +/* Generic Widgets */ +void gtk_toolbar_append_widget (GtkToolbar *toolbar, + GtkWidget *widget, + const char *tooltip_text, + const char *tooltip_private_text); +void gtk_toolbar_prepend_widget (GtkToolbar *toolbar, + GtkWidget *widget, + const char *tooltip_text, + const char *tooltip_private_text); +void gtk_toolbar_insert_widget (GtkToolbar *toolbar, + GtkWidget *widget, + const char *tooltip_text, + const char *tooltip_private_text, + gint position); + +#endif /* GTK_DISABLE_DEPRECATED */ + + +G_END_DECLS + +#endif /* __GTK_TOOLBAR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoolbutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoolbutton.h new file mode 100644 index 00000000..b7329a02 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoolbutton.h @@ -0,0 +1,95 @@ +/* gtktoolbutton.h + * + * Copyright (C) 2002 Anders Carlsson <andersca@gnome.org> + * Copyright (C) 2002 James Henstridge <james@daa.com.au> + * Copyright (C) 2003 Soeren Sandmann <sandmann@daimi.au.dk> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TOOL_BUTTON_H__ +#define __GTK_TOOL_BUTTON_H__ + +#include "gtktoolitem.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOL_BUTTON (gtk_tool_button_get_type ()) +#define GTK_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOL_BUTTON, GtkToolButton)) +#define GTK_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOL_BUTTON, GtkToolButtonClass)) +#define GTK_IS_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOL_BUTTON)) +#define GTK_IS_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOL_BUTTON)) +#define GTK_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOOL_BUTTON, GtkToolButtonClass)) + +typedef struct _GtkToolButton GtkToolButton; +typedef struct _GtkToolButtonClass GtkToolButtonClass; +typedef struct _GtkToolButtonPrivate GtkToolButtonPrivate; + +struct _GtkToolButton +{ + GtkToolItem parent; + + /*< private >*/ + GtkToolButtonPrivate *priv; +}; + +struct _GtkToolButtonClass +{ + GtkToolItemClass parent_class; + + GType button_type; + + /* signal */ + void (* clicked) (GtkToolButton *tool_item); + + /* Padding for future expansion */ + void (* _gtk_reserved1) (void); + void (* _gtk_reserved2) (void); + void (* _gtk_reserved3) (void); + void (* _gtk_reserved4) (void); +}; + +GType gtk_tool_button_get_type (void) G_GNUC_CONST; +GtkToolItem *gtk_tool_button_new (GtkWidget *icon_widget, + const gchar *label); +GtkToolItem *gtk_tool_button_new_from_stock (const gchar *stock_id); + +void gtk_tool_button_set_label (GtkToolButton *button, + const gchar *label); +G_CONST_RETURN gchar *gtk_tool_button_get_label (GtkToolButton *button); +void gtk_tool_button_set_use_underline (GtkToolButton *button, + gboolean use_underline); +gboolean gtk_tool_button_get_use_underline (GtkToolButton *button); +void gtk_tool_button_set_stock_id (GtkToolButton *button, + const gchar *stock_id); +G_CONST_RETURN gchar *gtk_tool_button_get_stock_id (GtkToolButton *button); +void gtk_tool_button_set_icon_name (GtkToolButton *button, + const gchar *icon_name); +G_CONST_RETURN gchar *gtk_tool_button_get_icon_name (GtkToolButton *button); +void gtk_tool_button_set_icon_widget (GtkToolButton *button, + GtkWidget *icon_widget); +GtkWidget * gtk_tool_button_get_icon_widget (GtkToolButton *button); +void gtk_tool_button_set_label_widget (GtkToolButton *button, + GtkWidget *label_widget); +GtkWidget * gtk_tool_button_get_label_widget (GtkToolButton *button); + + +/* internal function */ +GtkWidget *_gtk_tool_button_get_button (GtkToolButton *button); + +G_END_DECLS + +#endif /* __GTK_TOOL_BUTTON_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoolitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoolitem.h new file mode 100644 index 00000000..dac7c0f0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktoolitem.h @@ -0,0 +1,130 @@ +/* gtktoolitem.c + * + * Copyright (C) 2002 Anders Carlsson <andersca@gnome.org> + * Copyright (C) 2002 James Henstridge <james@daa.com.au> + * Copyright (C) 2003 Soeren Sandmann <sandmann@daimi.au.dk> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TOOL_ITEM_H__ +#define __GTK_TOOL_ITEM_H__ + +#include <gtk/gtkbin.h> +#include <gtk/gtktooltips.h> +#include <gtk/gtkmenuitem.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOL_ITEM (gtk_tool_item_get_type ()) +#define GTK_TOOL_ITEM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_TOOL_ITEM, GtkToolItem)) +#define GTK_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOL_ITEM, GtkToolItemClass)) +#define GTK_IS_TOOL_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_TOOL_ITEM)) +#define GTK_IS_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOL_ITEM)) +#define GTK_TOOL_ITEM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GTK_TYPE_TOOL_ITEM, GtkToolItemClass)) + +typedef struct _GtkToolItem GtkToolItem; +typedef struct _GtkToolItemClass GtkToolItemClass; +typedef struct _GtkToolItemPrivate GtkToolItemPrivate; + +struct _GtkToolItem +{ + GtkBin parent; + + /*< private >*/ + GtkToolItemPrivate *priv; +}; + +struct _GtkToolItemClass +{ + GtkBinClass parent_class; + + /* signals */ + gboolean (* create_menu_proxy) (GtkToolItem *tool_item); + void (* toolbar_reconfigured) (GtkToolItem *tool_item); +#ifndef GTK_DISABLE_DEPRECATED + gboolean (* set_tooltip) (GtkToolItem *tool_item, + GtkTooltips *tooltips, + const gchar *tip_text, + const gchar *tip_private); +#else + gpointer _set_tooltip; +#endif + + /* Padding for future expansion */ + void (* _gtk_reserved1) (void); + void (* _gtk_reserved2) (void); + void (* _gtk_reserved3) (void); + void (* _gtk_reserved4) (void); +}; + +GType gtk_tool_item_get_type (void) G_GNUC_CONST; +GtkToolItem *gtk_tool_item_new (void); + +void gtk_tool_item_set_homogeneous (GtkToolItem *tool_item, + gboolean homogeneous); +gboolean gtk_tool_item_get_homogeneous (GtkToolItem *tool_item); + +void gtk_tool_item_set_expand (GtkToolItem *tool_item, + gboolean expand); +gboolean gtk_tool_item_get_expand (GtkToolItem *tool_item); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_tool_item_set_tooltip (GtkToolItem *tool_item, + GtkTooltips *tooltips, + const gchar *tip_text, + const gchar *tip_private); +#endif /* GTK_DISABLE_DEPRECATED */ +void gtk_tool_item_set_tooltip_text (GtkToolItem *tool_item, + const gchar *text); +void gtk_tool_item_set_tooltip_markup (GtkToolItem *tool_item, + const gchar *markup); + +void gtk_tool_item_set_use_drag_window (GtkToolItem *tool_item, + gboolean use_drag_window); +gboolean gtk_tool_item_get_use_drag_window (GtkToolItem *tool_item); + +void gtk_tool_item_set_visible_horizontal (GtkToolItem *tool_item, + gboolean visible_horizontal); +gboolean gtk_tool_item_get_visible_horizontal (GtkToolItem *tool_item); + +void gtk_tool_item_set_visible_vertical (GtkToolItem *tool_item, + gboolean visible_vertical); +gboolean gtk_tool_item_get_visible_vertical (GtkToolItem *tool_item); + +gboolean gtk_tool_item_get_is_important (GtkToolItem *tool_item); +void gtk_tool_item_set_is_important (GtkToolItem *tool_item, + gboolean is_important); + +GtkIconSize gtk_tool_item_get_icon_size (GtkToolItem *tool_item); +GtkOrientation gtk_tool_item_get_orientation (GtkToolItem *tool_item); +GtkToolbarStyle gtk_tool_item_get_toolbar_style (GtkToolItem *tool_item); +GtkReliefStyle gtk_tool_item_get_relief_style (GtkToolItem *tool_item); + +GtkWidget * gtk_tool_item_retrieve_proxy_menu_item (GtkToolItem *tool_item); +GtkWidget * gtk_tool_item_get_proxy_menu_item (GtkToolItem *tool_item, + const gchar *menu_item_id); +void gtk_tool_item_set_proxy_menu_item (GtkToolItem *tool_item, + const gchar *menu_item_id, + GtkWidget *menu_item); +void gtk_tool_item_rebuild_menu (GtkToolItem *tool_item); + +/* internal function */ +void _gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item); + +G_END_DECLS + +#endif /* __GTK_TOOL_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktooltip.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktooltip.h new file mode 100644 index 00000000..bc498af4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktooltip.h @@ -0,0 +1,62 @@ +/* gtktooltip.h + * + * Copyright (C) 2006-2007 Imendio AB + * Contact: Kristian Rietveld <kris@imendio.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TOOLTIP_H__ +#define __GTK_TOOLTIP_H__ + +#include "gtkwidget.h" +#include "gtkwindow.h" + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOLTIP (gtk_tooltip_get_type ()) +#define GTK_TOOLTIP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOLTIP, GtkTooltip)) +#define GTK_IS_TOOLTIP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOLTIP)) + +GType gtk_tooltip_get_type (void); + +void gtk_tooltip_set_markup (GtkTooltip *tooltip, + const gchar *markup); +void gtk_tooltip_set_text (GtkTooltip *tooltip, + const gchar *text); +void gtk_tooltip_set_icon (GtkTooltip *tooltip, + GdkPixbuf *pixbuf); +void gtk_tooltip_set_icon_from_stock (GtkTooltip *tooltip, + const gchar *stock_id, + GtkIconSize size); +void gtk_tooltip_set_custom (GtkTooltip *tooltip, + GtkWidget *custom_widget); + +void gtk_tooltip_set_tip_area (GtkTooltip *tooltip, + GdkRectangle *rect); + +void gtk_tooltip_trigger_tooltip_query (GdkDisplay *display); + + +void _gtk_tooltip_focus_in (GtkWidget *widget); +void _gtk_tooltip_focus_out (GtkWidget *widget); +void _gtk_tooltip_toggle_keyboard_mode (GtkWidget *widget); +void _gtk_tooltip_handle_event (GdkEvent *event); +void _gtk_tooltip_hide (GtkWidget *widget); + +G_END_DECLS + +#endif /* __GTK_TOOLTIP_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktooltips.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktooltips.h new file mode 100644 index 00000000..a8608565 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktooltips.h @@ -0,0 +1,109 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef GTK_DISABLE_DEPRECATED + +#ifndef __GTK_TOOLTIPS_H__ +#define __GTK_TOOLTIPS_H__ + +#include <gtk/gtkwidget.h> +#include <gtk/gtkwindow.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOLTIPS (gtk_tooltips_get_type ()) +#define GTK_TOOLTIPS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOLTIPS, GtkTooltips)) +#define GTK_TOOLTIPS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOLTIPS, GtkTooltipsClass)) +#define GTK_IS_TOOLTIPS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOLTIPS)) +#define GTK_IS_TOOLTIPS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOLTIPS)) +#define GTK_TOOLTIPS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOOLTIPS, GtkTooltipsClass)) + + +typedef struct _GtkTooltips GtkTooltips; +typedef struct _GtkTooltipsClass GtkTooltipsClass; +typedef struct _GtkTooltipsData GtkTooltipsData; + +struct _GtkTooltipsData +{ + GtkTooltips *tooltips; + GtkWidget *widget; + gchar *tip_text; + gchar *tip_private; +}; + +struct _GtkTooltips +{ + GtkObject parent_instance; + + /*< private >*/ + GtkWidget *tip_window; + GtkWidget *tip_label; + GtkTooltipsData *active_tips_data; + GList *tips_data_list; /* unused */ + + guint delay : 30; + guint enabled : 1; + guint have_grab : 1; + guint use_sticky_delay : 1; + gint timer_tag; + GTimeVal last_popdown; +}; + +struct _GtkTooltipsClass +{ + GtkObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_tooltips_get_type (void) G_GNUC_CONST; +GtkTooltips* gtk_tooltips_new (void); + +void gtk_tooltips_enable (GtkTooltips *tooltips); +void gtk_tooltips_disable (GtkTooltips *tooltips); +void gtk_tooltips_set_delay (GtkTooltips *tooltips, + guint delay); +void gtk_tooltips_set_tip (GtkTooltips *tooltips, + GtkWidget *widget, + const gchar *tip_text, + const gchar *tip_private); +GtkTooltipsData* gtk_tooltips_data_get (GtkWidget *widget); +void gtk_tooltips_force_window (GtkTooltips *tooltips); + +gboolean gtk_tooltips_get_info_from_tip_window (GtkWindow *tip_window, + GtkTooltips **tooltips, + GtkWidget **current_widget); + +G_END_DECLS + +#endif /* __GTK_TOOLTIPS_H__ */ + +#endif /* GTK_DISABLE_DEPRECATED */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktree.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktree.h new file mode 100644 index 00000000..7e9da0eb --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktree.h @@ -0,0 +1,132 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifdef GTK_ENABLE_BROKEN + +#ifndef __GTK_TREE_H__ +#define __GTK_TREE_H__ + +/* set this flag to enable tree debugging output */ +/* #define TREE_DEBUG */ + +#include <gdk/gdk.h> +#include <gtk/gtkcontainer.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE (gtk_tree_get_type ()) +#define GTK_TREE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TREE, GtkTree)) +#define GTK_TREE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE, GtkTreeClass)) +#define GTK_IS_TREE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TREE)) +#define GTK_IS_TREE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE)) +#define GTK_TREE_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_TREE, GtkTreeClass)) + + +#define GTK_IS_ROOT_TREE(obj) ((GtkObject*) GTK_TREE(obj)->root_tree == (GtkObject*)obj) +#define GTK_TREE_ROOT_TREE(obj) (GTK_TREE(obj)->root_tree ? GTK_TREE(obj)->root_tree : GTK_TREE(obj)) +#define GTK_TREE_SELECTION_OLD(obj) (GTK_TREE_ROOT_TREE(obj)->selection) + +typedef enum +{ + GTK_TREE_VIEW_LINE, /* default view mode */ + GTK_TREE_VIEW_ITEM +} GtkTreeViewMode; + +typedef struct _GtkTree GtkTree; +typedef struct _GtkTreeClass GtkTreeClass; + +struct _GtkTree +{ + GtkContainer container; + + GList *children; + + GtkTree* root_tree; /* owner of selection list */ + GtkWidget* tree_owner; + GList *selection; + guint level; + guint indent_value; + guint current_indent; + guint selection_mode : 2; + guint view_mode : 1; + guint view_line : 1; +}; + +struct _GtkTreeClass +{ + GtkContainerClass parent_class; + + void (* selection_changed) (GtkTree *tree); + void (* select_child) (GtkTree *tree, + GtkWidget *child); + void (* unselect_child) (GtkTree *tree, + GtkWidget *child); +}; + + +GtkType gtk_tree_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_tree_new (void); +void gtk_tree_append (GtkTree *tree, + GtkWidget *tree_item); +void gtk_tree_prepend (GtkTree *tree, + GtkWidget *tree_item); +void gtk_tree_insert (GtkTree *tree, + GtkWidget *tree_item, + gint position); +void gtk_tree_remove_items (GtkTree *tree, + GList *items); +void gtk_tree_clear_items (GtkTree *tree, + gint start, + gint end); +void gtk_tree_select_item (GtkTree *tree, + gint item); +void gtk_tree_unselect_item (GtkTree *tree, + gint item); +void gtk_tree_select_child (GtkTree *tree, + GtkWidget *tree_item); +void gtk_tree_unselect_child (GtkTree *tree, + GtkWidget *tree_item); +gint gtk_tree_child_position (GtkTree *tree, + GtkWidget *child); +void gtk_tree_set_selection_mode (GtkTree *tree, + GtkSelectionMode mode); +void gtk_tree_set_view_mode (GtkTree *tree, + GtkTreeViewMode mode); +void gtk_tree_set_view_lines (GtkTree *tree, + gboolean flag); + +/* deprecated function, use gtk_container_remove instead. + */ +void gtk_tree_remove_item (GtkTree *tree, + GtkWidget *child); + + +G_END_DECLS + +#endif /* __GTK_TREE_H__ */ + +#endif /* GTK_ENABLE_BROKEN */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreednd.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreednd.h new file mode 100644 index 00000000..eb983b7a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreednd.h @@ -0,0 +1,121 @@ +/* gtktreednd.h + * Copyright (C) 2001 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TREE_DND_H__ +#define __GTK_TREE_DND_H__ + +#include <gtk/gtktreemodel.h> +#include <gtk/gtkdnd.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_DRAG_SOURCE (gtk_tree_drag_source_get_type ()) +#define GTK_TREE_DRAG_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_DRAG_SOURCE, GtkTreeDragSource)) +#define GTK_IS_TREE_DRAG_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_DRAG_SOURCE)) +#define GTK_TREE_DRAG_SOURCE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_DRAG_SOURCE, GtkTreeDragSourceIface)) + +typedef struct _GtkTreeDragSource GtkTreeDragSource; /* Dummy typedef */ +typedef struct _GtkTreeDragSourceIface GtkTreeDragSourceIface; + +struct _GtkTreeDragSourceIface +{ + GTypeInterface g_iface; + + /* VTable - not signals */ + + gboolean (* row_draggable) (GtkTreeDragSource *drag_source, + GtkTreePath *path); + + gboolean (* drag_data_get) (GtkTreeDragSource *drag_source, + GtkTreePath *path, + GtkSelectionData *selection_data); + + gboolean (* drag_data_delete) (GtkTreeDragSource *drag_source, + GtkTreePath *path); +}; + +GType gtk_tree_drag_source_get_type (void) G_GNUC_CONST; + +/* Returns whether the given row can be dragged */ +gboolean gtk_tree_drag_source_row_draggable (GtkTreeDragSource *drag_source, + GtkTreePath *path); + +/* Deletes the given row, or returns FALSE if it can't */ +gboolean gtk_tree_drag_source_drag_data_delete (GtkTreeDragSource *drag_source, + GtkTreePath *path); + +/* Fills in selection_data with type selection_data->target based on + * the row denoted by path, returns TRUE if it does anything + */ +gboolean gtk_tree_drag_source_drag_data_get (GtkTreeDragSource *drag_source, + GtkTreePath *path, + GtkSelectionData *selection_data); + +#define GTK_TYPE_TREE_DRAG_DEST (gtk_tree_drag_dest_get_type ()) +#define GTK_TREE_DRAG_DEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_DRAG_DEST, GtkTreeDragDest)) +#define GTK_IS_TREE_DRAG_DEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_DRAG_DEST)) +#define GTK_TREE_DRAG_DEST_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_DRAG_DEST, GtkTreeDragDestIface)) + +typedef struct _GtkTreeDragDest GtkTreeDragDest; /* Dummy typedef */ +typedef struct _GtkTreeDragDestIface GtkTreeDragDestIface; + +struct _GtkTreeDragDestIface +{ + GTypeInterface g_iface; + + /* VTable - not signals */ + + gboolean (* drag_data_received) (GtkTreeDragDest *drag_dest, + GtkTreePath *dest, + GtkSelectionData *selection_data); + + gboolean (* row_drop_possible) (GtkTreeDragDest *drag_dest, + GtkTreePath *dest_path, + GtkSelectionData *selection_data); +}; + +GType gtk_tree_drag_dest_get_type (void) G_GNUC_CONST; + +/* Inserts a row before dest which contains data in selection_data, + * or returns FALSE if it can't + */ +gboolean gtk_tree_drag_dest_drag_data_received (GtkTreeDragDest *drag_dest, + GtkTreePath *dest, + GtkSelectionData *selection_data); + + +/* Returns TRUE if we can drop before path; path may not exist. */ +gboolean gtk_tree_drag_dest_row_drop_possible (GtkTreeDragDest *drag_dest, + GtkTreePath *dest_path, + GtkSelectionData *selection_data); + + +/* The selection data would normally have target type GTK_TREE_MODEL_ROW in this + * case. If the target is wrong these functions return FALSE. + */ +gboolean gtk_tree_set_row_drag_data (GtkSelectionData *selection_data, + GtkTreeModel *tree_model, + GtkTreePath *path); +gboolean gtk_tree_get_row_drag_data (GtkSelectionData *selection_data, + GtkTreeModel **tree_model, + GtkTreePath **path); + +G_END_DECLS + +#endif /* __GTK_TREE_DND_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeitem.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeitem.h new file mode 100644 index 00000000..0fef9e21 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeitem.h @@ -0,0 +1,91 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifdef GTK_ENABLE_BROKEN + +#ifndef __GTK_TREE_ITEM_H__ +#define __GTK_TREE_ITEM_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkitem.h> + + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_ITEM (gtk_tree_item_get_type ()) +#define GTK_TREE_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TREE_ITEM, GtkTreeItem)) +#define GTK_TREE_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_ITEM, GtkTreeItemClass)) +#define GTK_IS_TREE_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TREE_ITEM)) +#define GTK_IS_TREE_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_ITEM)) +#define GTK_TREE_ITEM_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_TREE_ITEM, GtkTreeItemClass)) + + +#define GTK_TREE_ITEM_SUBTREE(obj) (GTK_TREE_ITEM(obj)->subtree) + + +typedef struct _GtkTreeItem GtkTreeItem; +typedef struct _GtkTreeItemClass GtkTreeItemClass; + +struct _GtkTreeItem +{ + GtkItem item; + + GtkWidget *subtree; + GtkWidget *pixmaps_box; + GtkWidget *plus_pix_widget, *minus_pix_widget; + + GList *pixmaps; /* pixmap node for this items color depth */ + + guint expanded : 1; +}; + +struct _GtkTreeItemClass +{ + GtkItemClass parent_class; + + void (* expand) (GtkTreeItem *tree_item); + void (* collapse) (GtkTreeItem *tree_item); +}; + + +GtkType gtk_tree_item_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_tree_item_new (void); +GtkWidget* gtk_tree_item_new_with_label (const gchar *label); +void gtk_tree_item_set_subtree (GtkTreeItem *tree_item, + GtkWidget *subtree); +void gtk_tree_item_remove_subtree (GtkTreeItem *tree_item); +void gtk_tree_item_select (GtkTreeItem *tree_item); +void gtk_tree_item_deselect (GtkTreeItem *tree_item); +void gtk_tree_item_expand (GtkTreeItem *tree_item); +void gtk_tree_item_collapse (GtkTreeItem *tree_item); + + +G_END_DECLS + +#endif /* __GTK_TREE_ITEM_H__ */ + +#endif /* GTK_ENABLE_BROKEN */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreemodel.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreemodel.h new file mode 100644 index 00000000..cc5b937d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreemodel.h @@ -0,0 +1,267 @@ +/* gtktreemodel.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TREE_MODEL_H__ +#define __GTK_TREE_MODEL_H__ + +#include <glib-object.h> + +/* Not needed, retained for compatibility -Yosh */ +#include <gtk/gtkobject.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_MODEL (gtk_tree_model_get_type ()) +#define GTK_TREE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_MODEL, GtkTreeModel)) +#define GTK_IS_TREE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_MODEL)) +#define GTK_TREE_MODEL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_MODEL, GtkTreeModelIface)) + +#define GTK_TYPE_TREE_ITER (gtk_tree_iter_get_type ()) +#define GTK_TYPE_TREE_PATH (gtk_tree_path_get_type ()) +#define GTK_TYPE_TREE_ROW_REFERENCE (gtk_tree_row_reference_get_type ()) + +typedef struct _GtkTreeIter GtkTreeIter; +typedef struct _GtkTreePath GtkTreePath; +typedef struct _GtkTreeRowReference GtkTreeRowReference; +typedef struct _GtkTreeModel GtkTreeModel; /* Dummy typedef */ +typedef struct _GtkTreeModelIface GtkTreeModelIface; +typedef gboolean (* GtkTreeModelForeachFunc) (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data); + + +typedef enum +{ + GTK_TREE_MODEL_ITERS_PERSIST = 1 << 0, + GTK_TREE_MODEL_LIST_ONLY = 1 << 1 +} GtkTreeModelFlags; + +struct _GtkTreeIter +{ + gint stamp; + gpointer user_data; + gpointer user_data2; + gpointer user_data3; +}; + +struct _GtkTreeModelIface +{ + GTypeInterface g_iface; + + /* Signals */ + void (* row_changed) (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); + void (* row_inserted) (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); + void (* row_has_child_toggled) (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); + void (* row_deleted) (GtkTreeModel *tree_model, + GtkTreePath *path); + void (* rows_reordered) (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter, + gint *new_order); + + /* Virtual Table */ + GtkTreeModelFlags (* get_flags) (GtkTreeModel *tree_model); + + gint (* get_n_columns) (GtkTreeModel *tree_model); + GType (* get_column_type) (GtkTreeModel *tree_model, + gint index_); + gboolean (* get_iter) (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreePath *path); + GtkTreePath *(* get_path) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + void (* get_value) (GtkTreeModel *tree_model, + GtkTreeIter *iter, + gint column, + GValue *value); + gboolean (* iter_next) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + gboolean (* iter_children) (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent); + gboolean (* iter_has_child) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + gint (* iter_n_children) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + gboolean (* iter_nth_child) (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint n); + gboolean (* iter_parent) (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *child); + void (* ref_node) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + void (* unref_node) (GtkTreeModel *tree_model, + GtkTreeIter *iter); +}; + + +/* GtkTreePath operations */ +GtkTreePath *gtk_tree_path_new (void); +GtkTreePath *gtk_tree_path_new_from_string (const gchar *path); +GtkTreePath *gtk_tree_path_new_from_indices (gint first_index, + ...); +gchar *gtk_tree_path_to_string (GtkTreePath *path); +GtkTreePath *gtk_tree_path_new_first (void); +void gtk_tree_path_append_index (GtkTreePath *path, + gint index_); +void gtk_tree_path_prepend_index (GtkTreePath *path, + gint index_); +gint gtk_tree_path_get_depth (GtkTreePath *path); +gint *gtk_tree_path_get_indices (GtkTreePath *path); +void gtk_tree_path_free (GtkTreePath *path); +GtkTreePath *gtk_tree_path_copy (const GtkTreePath *path); +GType gtk_tree_path_get_type (void) G_GNUC_CONST; +gint gtk_tree_path_compare (const GtkTreePath *a, + const GtkTreePath *b); +void gtk_tree_path_next (GtkTreePath *path); +gboolean gtk_tree_path_prev (GtkTreePath *path); +gboolean gtk_tree_path_up (GtkTreePath *path); +void gtk_tree_path_down (GtkTreePath *path); + +gboolean gtk_tree_path_is_ancestor (GtkTreePath *path, + GtkTreePath *descendant); +gboolean gtk_tree_path_is_descendant (GtkTreePath *path, + GtkTreePath *ancestor); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_tree_path_new_root() gtk_tree_path_new_first() +#endif /* !GTK_DISABLE_DEPRECATED */ + +/* Row reference (an object that tracks model changes so it refers to the same + * row always; a path refers to a position, not a fixed row). You almost always + * want to call gtk_tree_row_reference_new. + */ + +GType gtk_tree_row_reference_get_type (void) G_GNUC_CONST; +GtkTreeRowReference *gtk_tree_row_reference_new (GtkTreeModel *model, + GtkTreePath *path); +GtkTreeRowReference *gtk_tree_row_reference_new_proxy (GObject *proxy, + GtkTreeModel *model, + GtkTreePath *path); +GtkTreePath *gtk_tree_row_reference_get_path (GtkTreeRowReference *reference); +GtkTreeModel *gtk_tree_row_reference_get_model (GtkTreeRowReference *reference); +gboolean gtk_tree_row_reference_valid (GtkTreeRowReference *reference); +GtkTreeRowReference *gtk_tree_row_reference_copy (GtkTreeRowReference *reference); +void gtk_tree_row_reference_free (GtkTreeRowReference *reference); +/* These two functions are only needed if you created the row reference with a + * proxy object */ +void gtk_tree_row_reference_inserted (GObject *proxy, + GtkTreePath *path); +void gtk_tree_row_reference_deleted (GObject *proxy, + GtkTreePath *path); +void gtk_tree_row_reference_reordered (GObject *proxy, + GtkTreePath *path, + GtkTreeIter *iter, + gint *new_order); + +/* GtkTreeIter operations */ +GtkTreeIter * gtk_tree_iter_copy (GtkTreeIter *iter); +void gtk_tree_iter_free (GtkTreeIter *iter); +GType gtk_tree_iter_get_type (void) G_GNUC_CONST; + +GType gtk_tree_model_get_type (void) G_GNUC_CONST; +GtkTreeModelFlags gtk_tree_model_get_flags (GtkTreeModel *tree_model); +gint gtk_tree_model_get_n_columns (GtkTreeModel *tree_model); +GType gtk_tree_model_get_column_type (GtkTreeModel *tree_model, + gint index_); + + +/* Iterator movement */ +gboolean gtk_tree_model_get_iter (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreePath *path); +gboolean gtk_tree_model_get_iter_from_string (GtkTreeModel *tree_model, + GtkTreeIter *iter, + const gchar *path_string); +gchar * gtk_tree_model_get_string_from_iter (GtkTreeModel *tree_model, + GtkTreeIter *iter); +gboolean gtk_tree_model_get_iter_first (GtkTreeModel *tree_model, + GtkTreeIter *iter); +GtkTreePath * gtk_tree_model_get_path (GtkTreeModel *tree_model, + GtkTreeIter *iter); +void gtk_tree_model_get_value (GtkTreeModel *tree_model, + GtkTreeIter *iter, + gint column, + GValue *value); +gboolean gtk_tree_model_iter_next (GtkTreeModel *tree_model, + GtkTreeIter *iter); +gboolean gtk_tree_model_iter_children (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent); +gboolean gtk_tree_model_iter_has_child (GtkTreeModel *tree_model, + GtkTreeIter *iter); +gint gtk_tree_model_iter_n_children (GtkTreeModel *tree_model, + GtkTreeIter *iter); +gboolean gtk_tree_model_iter_nth_child (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint n); +gboolean gtk_tree_model_iter_parent (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *child); +void gtk_tree_model_ref_node (GtkTreeModel *tree_model, + GtkTreeIter *iter); +void gtk_tree_model_unref_node (GtkTreeModel *tree_model, + GtkTreeIter *iter); +void gtk_tree_model_get (GtkTreeModel *tree_model, + GtkTreeIter *iter, + ...); +void gtk_tree_model_get_valist (GtkTreeModel *tree_model, + GtkTreeIter *iter, + va_list var_args); + + +void gtk_tree_model_foreach (GtkTreeModel *model, + GtkTreeModelForeachFunc func, + gpointer user_data); + + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_tree_model_get_iter_root(tree_model, iter) gtk_tree_model_get_iter_first(tree_model, iter) +#endif /* !GTK_DISABLE_DEPRECATED */ + +/* Signals */ +void gtk_tree_model_row_changed (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); +void gtk_tree_model_row_inserted (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); +void gtk_tree_model_row_has_child_toggled (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); +void gtk_tree_model_row_deleted (GtkTreeModel *tree_model, + GtkTreePath *path); +void gtk_tree_model_rows_reordered (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter, + gint *new_order); + + + + +G_END_DECLS + +#endif /* __GTK_TREE_MODEL_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreemodelfilter.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreemodelfilter.h new file mode 100644 index 00000000..e9ab5829 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreemodelfilter.h @@ -0,0 +1,104 @@ +/* gtktreemodelfilter.h + * Copyright (C) 2000,2001 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * Copyright (C) 2001-2003 Kristian Rietveld <kris@gtk.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TREE_MODEL_FILTER_H__ +#define __GTK_TREE_MODEL_FILTER_H__ + +#include <gtk/gtktreemodel.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_MODEL_FILTER (gtk_tree_model_filter_get_type ()) +#define GTK_TREE_MODEL_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilter)) +#define GTK_TREE_MODEL_FILTER_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilterClass)) +#define GTK_IS_TREE_MODEL_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_MODEL_FILTER)) +#define GTK_IS_TREE_MODEL_FILTER_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_TREE_MODEL_FILTER)) +#define GTK_TREE_MODEL_FILTER_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilterClass)) + +typedef gboolean (* GtkTreeModelFilterVisibleFunc) (GtkTreeModel *model, + GtkTreeIter *iter, + gpointer data); +typedef void (* GtkTreeModelFilterModifyFunc) (GtkTreeModel *model, + GtkTreeIter *iter, + GValue *value, + gint column, + gpointer data); + +typedef struct _GtkTreeModelFilter GtkTreeModelFilter; +typedef struct _GtkTreeModelFilterClass GtkTreeModelFilterClass; +typedef struct _GtkTreeModelFilterPrivate GtkTreeModelFilterPrivate; + +struct _GtkTreeModelFilter +{ + GObject parent; + + /*< private >*/ + GtkTreeModelFilterPrivate *priv; +}; + +struct _GtkTreeModelFilterClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved0) (void); + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); +}; + +/* base */ +GType gtk_tree_model_filter_get_type (void) G_GNUC_CONST; +GtkTreeModel *gtk_tree_model_filter_new (GtkTreeModel *child_model, + GtkTreePath *root); +void gtk_tree_model_filter_set_visible_func (GtkTreeModelFilter *filter, + GtkTreeModelFilterVisibleFunc func, + gpointer data, + GtkDestroyNotify destroy); +void gtk_tree_model_filter_set_modify_func (GtkTreeModelFilter *filter, + gint n_columns, + GType *types, + GtkTreeModelFilterModifyFunc func, + gpointer data, + GtkDestroyNotify destroy); +void gtk_tree_model_filter_set_visible_column (GtkTreeModelFilter *filter, + gint column); + +GtkTreeModel *gtk_tree_model_filter_get_model (GtkTreeModelFilter *filter); + +/* conversion */ +gboolean gtk_tree_model_filter_convert_child_iter_to_iter (GtkTreeModelFilter *filter, + GtkTreeIter *filter_iter, + GtkTreeIter *child_iter); +void gtk_tree_model_filter_convert_iter_to_child_iter (GtkTreeModelFilter *filter, + GtkTreeIter *child_iter, + GtkTreeIter *filter_iter); +GtkTreePath *gtk_tree_model_filter_convert_child_path_to_path (GtkTreeModelFilter *filter, + GtkTreePath *child_path); +GtkTreePath *gtk_tree_model_filter_convert_path_to_child_path (GtkTreeModelFilter *filter, + GtkTreePath *filter_path); + +/* extras */ +void gtk_tree_model_filter_refilter (GtkTreeModelFilter *filter); +void gtk_tree_model_filter_clear_cache (GtkTreeModelFilter *filter); + +G_END_DECLS + +#endif /* __GTK_TREE_MODEL_FILTER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreemodelsort.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreemodelsort.h new file mode 100644 index 00000000..bfd24e90 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreemodelsort.h @@ -0,0 +1,101 @@ +/* gtktreemodelsort.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TREE_MODEL_SORT_H__ +#define __GTK_TREE_MODEL_SORT_H__ + +#include <gtk/gtktreemodel.h> +#include <gtk/gtktreesortable.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_MODEL_SORT (gtk_tree_model_sort_get_type ()) +#define GTK_TREE_MODEL_SORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_MODEL_SORT, GtkTreeModelSort)) +#define GTK_TREE_MODEL_SORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_MODEL_SORT, GtkTreeModelSortClass)) +#define GTK_IS_TREE_MODEL_SORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_MODEL_SORT)) +#define GTK_IS_TREE_MODEL_SORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_MODEL_SORT)) +#define GTK_TREE_MODEL_SORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_MODEL_SORT, GtkTreeModelSortClass)) + +typedef struct _GtkTreeModelSort GtkTreeModelSort; +typedef struct _GtkTreeModelSortClass GtkTreeModelSortClass; + +struct _GtkTreeModelSort +{ + GObject parent; + + /* < private > */ + gpointer root; + gint stamp; + guint child_flags; + GtkTreeModel *child_model; + gint zero_ref_count; + + /* sort information */ + GList *sort_list; + gint sort_column_id; + GtkSortType order; + + /* default sort */ + GtkTreeIterCompareFunc default_sort_func; + gpointer default_sort_data; + GtkDestroyNotify default_sort_destroy; + + /* signal ids */ + guint changed_id; + guint inserted_id; + guint has_child_toggled_id; + guint deleted_id; + guint reordered_id; +}; + +struct _GtkTreeModelSortClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_tree_model_sort_get_type (void) G_GNUC_CONST; +GtkTreeModel *gtk_tree_model_sort_new_with_model (GtkTreeModel *child_model); + +GtkTreeModel *gtk_tree_model_sort_get_model (GtkTreeModelSort *tree_model); +GtkTreePath *gtk_tree_model_sort_convert_child_path_to_path (GtkTreeModelSort *tree_model_sort, + GtkTreePath *child_path); +void gtk_tree_model_sort_convert_child_iter_to_iter (GtkTreeModelSort *tree_model_sort, + GtkTreeIter *sort_iter, + GtkTreeIter *child_iter); +GtkTreePath *gtk_tree_model_sort_convert_path_to_child_path (GtkTreeModelSort *tree_model_sort, + GtkTreePath *sorted_path); +void gtk_tree_model_sort_convert_iter_to_child_iter (GtkTreeModelSort *tree_model_sort, + GtkTreeIter *child_iter, + GtkTreeIter *sorted_iter); +void gtk_tree_model_sort_reset_default_sort_func (GtkTreeModelSort *tree_model_sort); +void gtk_tree_model_sort_clear_cache (GtkTreeModelSort *tree_model_sort); +gboolean gtk_tree_model_sort_iter_is_valid (GtkTreeModelSort *tree_model_sort, + GtkTreeIter *iter); + + +G_END_DECLS + +#endif /* __GTK_TREE_MODEL_SORT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeselection.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeselection.h new file mode 100644 index 00000000..2c3e0a2b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeselection.h @@ -0,0 +1,123 @@ +/* gtktreeselection.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TREE_SELECTION_H__ +#define __GTK_TREE_SELECTION_H__ + +#include <glib-object.h> +#include <gtk/gtktreeview.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_TREE_SELECTION (gtk_tree_selection_get_type ()) +#define GTK_TREE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_SELECTION, GtkTreeSelection)) +#define GTK_TREE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_SELECTION, GtkTreeSelectionClass)) +#define GTK_IS_TREE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_SELECTION)) +#define GTK_IS_TREE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_SELECTION)) +#define GTK_TREE_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_SELECTION, GtkTreeSelectionClass)) + +typedef gboolean (* GtkTreeSelectionFunc) (GtkTreeSelection *selection, + GtkTreeModel *model, + GtkTreePath *path, + gboolean path_currently_selected, + gpointer data); +typedef void (* GtkTreeSelectionForeachFunc) (GtkTreeModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + gpointer data); + +struct _GtkTreeSelection +{ + GObject parent; + + /*< private >*/ + + GtkTreeView *tree_view; + GtkSelectionMode type; + GtkTreeSelectionFunc user_func; + gpointer user_data; + GtkDestroyNotify destroy; +}; + +struct _GtkTreeSelectionClass +{ + GObjectClass parent_class; + + void (* changed) (GtkTreeSelection *selection); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_tree_selection_get_type (void) G_GNUC_CONST; + +void gtk_tree_selection_set_mode (GtkTreeSelection *selection, + GtkSelectionMode type); +GtkSelectionMode gtk_tree_selection_get_mode (GtkTreeSelection *selection); +void gtk_tree_selection_set_select_function (GtkTreeSelection *selection, + GtkTreeSelectionFunc func, + gpointer data, + GtkDestroyNotify destroy); +gpointer gtk_tree_selection_get_user_data (GtkTreeSelection *selection); +GtkTreeView* gtk_tree_selection_get_tree_view (GtkTreeSelection *selection); + +/* Only meaningful if GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE is set */ +/* Use selected_foreach or get_selected_rows for GTK_SELECTION_MULTIPLE */ +gboolean gtk_tree_selection_get_selected (GtkTreeSelection *selection, + GtkTreeModel **model, + GtkTreeIter *iter); +GList * gtk_tree_selection_get_selected_rows (GtkTreeSelection *selection, + GtkTreeModel **model); +gint gtk_tree_selection_count_selected_rows (GtkTreeSelection *selection); +void gtk_tree_selection_selected_foreach (GtkTreeSelection *selection, + GtkTreeSelectionForeachFunc func, + gpointer data); +void gtk_tree_selection_select_path (GtkTreeSelection *selection, + GtkTreePath *path); +void gtk_tree_selection_unselect_path (GtkTreeSelection *selection, + GtkTreePath *path); +void gtk_tree_selection_select_iter (GtkTreeSelection *selection, + GtkTreeIter *iter); +void gtk_tree_selection_unselect_iter (GtkTreeSelection *selection, + GtkTreeIter *iter); +gboolean gtk_tree_selection_path_is_selected (GtkTreeSelection *selection, + GtkTreePath *path); +gboolean gtk_tree_selection_iter_is_selected (GtkTreeSelection *selection, + GtkTreeIter *iter); +void gtk_tree_selection_select_all (GtkTreeSelection *selection); +void gtk_tree_selection_unselect_all (GtkTreeSelection *selection); +void gtk_tree_selection_select_range (GtkTreeSelection *selection, + GtkTreePath *start_path, + GtkTreePath *end_path); +void gtk_tree_selection_unselect_range (GtkTreeSelection *selection, + GtkTreePath *start_path, + GtkTreePath *end_path); + + +G_END_DECLS + + +#endif /* __GTK_TREE_SELECTION_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreesortable.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreesortable.h new file mode 100644 index 00000000..dd7282a1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreesortable.h @@ -0,0 +1,99 @@ +/* gtktreesortable.h + * Copyright (C) 2001 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TREE_SORTABLE_H__ +#define __GTK_TREE_SORTABLE_H__ + +#include <gtk/gtkenums.h> +#include <gtk/gtktreemodel.h> +#include <gtk/gtktypeutils.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_SORTABLE (gtk_tree_sortable_get_type ()) +#define GTK_TREE_SORTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_SORTABLE, GtkTreeSortable)) +#define GTK_TREE_SORTABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_TREE_SORTABLE, GtkTreeSortableIface)) +#define GTK_IS_TREE_SORTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_SORTABLE)) +#define GTK_TREE_SORTABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_SORTABLE, GtkTreeSortableIface)) + +enum { + GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID = -1, + GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = -2 +}; + +typedef struct _GtkTreeSortable GtkTreeSortable; /* Dummy typedef */ +typedef struct _GtkTreeSortableIface GtkTreeSortableIface; + +typedef gint (* GtkTreeIterCompareFunc) (GtkTreeModel *model, + GtkTreeIter *a, + GtkTreeIter *b, + gpointer user_data); + + +struct _GtkTreeSortableIface +{ + GTypeInterface g_iface; + + /* signals */ + void (* sort_column_changed) (GtkTreeSortable *sortable); + + /* virtual table */ + gboolean (* get_sort_column_id) (GtkTreeSortable *sortable, + gint *sort_column_id, + GtkSortType *order); + void (* set_sort_column_id) (GtkTreeSortable *sortable, + gint sort_column_id, + GtkSortType order); + void (* set_sort_func) (GtkTreeSortable *sortable, + gint sort_column_id, + GtkTreeIterCompareFunc func, + gpointer data, + GtkDestroyNotify destroy); + void (* set_default_sort_func) (GtkTreeSortable *sortable, + GtkTreeIterCompareFunc func, + gpointer data, + GtkDestroyNotify destroy); + gboolean (* has_default_sort_func) (GtkTreeSortable *sortable); +}; + + +GType gtk_tree_sortable_get_type (void) G_GNUC_CONST; + +void gtk_tree_sortable_sort_column_changed (GtkTreeSortable *sortable); +gboolean gtk_tree_sortable_get_sort_column_id (GtkTreeSortable *sortable, + gint *sort_column_id, + GtkSortType *order); +void gtk_tree_sortable_set_sort_column_id (GtkTreeSortable *sortable, + gint sort_column_id, + GtkSortType order); +void gtk_tree_sortable_set_sort_func (GtkTreeSortable *sortable, + gint sort_column_id, + GtkTreeIterCompareFunc sort_func, + gpointer user_data, + GtkDestroyNotify destroy); +void gtk_tree_sortable_set_default_sort_func (GtkTreeSortable *sortable, + GtkTreeIterCompareFunc sort_func, + gpointer user_data, + GtkDestroyNotify destroy); +gboolean gtk_tree_sortable_has_default_sort_func (GtkTreeSortable *sortable); + + +G_END_DECLS + +#endif /* __GTK_TREE_SORTABLE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreestore.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreestore.h new file mode 100644 index 00000000..b7e61e2a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreestore.h @@ -0,0 +1,154 @@ +/* gtktreestore.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TREE_STORE_H__ +#define __GTK_TREE_STORE_H__ + +#include <gtk/gtktreemodel.h> +#include <gtk/gtktreesortable.h> +#include <stdarg.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_TREE_STORE (gtk_tree_store_get_type ()) +#define GTK_TREE_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_STORE, GtkTreeStore)) +#define GTK_TREE_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_STORE, GtkTreeStoreClass)) +#define GTK_IS_TREE_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_STORE)) +#define GTK_IS_TREE_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_STORE)) +#define GTK_TREE_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_STORE, GtkTreeStoreClass)) + +typedef struct _GtkTreeStore GtkTreeStore; +typedef struct _GtkTreeStoreClass GtkTreeStoreClass; + +struct _GtkTreeStore +{ + GObject parent; + + gint stamp; + gpointer root; + gpointer last; + gint n_columns; + gint sort_column_id; + GList *sort_list; + GtkSortType order; + GType *column_headers; + GtkTreeIterCompareFunc default_sort_func; + gpointer default_sort_data; + GtkDestroyNotify default_sort_destroy; + guint columns_dirty : 1; +}; + +struct _GtkTreeStoreClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_tree_store_get_type (void) G_GNUC_CONST; +GtkTreeStore *gtk_tree_store_new (gint n_columns, + ...); +GtkTreeStore *gtk_tree_store_newv (gint n_columns, + GType *types); +void gtk_tree_store_set_column_types (GtkTreeStore *tree_store, + gint n_columns, + GType *types); + +/* NOTE: use gtk_tree_model_get to get values from a GtkTreeStore */ + +void gtk_tree_store_set_value (GtkTreeStore *tree_store, + GtkTreeIter *iter, + gint column, + GValue *value); +void gtk_tree_store_set (GtkTreeStore *tree_store, + GtkTreeIter *iter, + ...); +void gtk_tree_store_set_valuesv (GtkTreeStore *tree_store, + GtkTreeIter *iter, + gint *columns, + GValue *values, + gint n_values); +void gtk_tree_store_set_valist (GtkTreeStore *tree_store, + GtkTreeIter *iter, + va_list var_args); +gboolean gtk_tree_store_remove (GtkTreeStore *tree_store, + GtkTreeIter *iter); +void gtk_tree_store_insert (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint position); +void gtk_tree_store_insert_before (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent, + GtkTreeIter *sibling); +void gtk_tree_store_insert_after (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent, + GtkTreeIter *sibling); +void gtk_tree_store_insert_with_values (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint position, + ...); +void gtk_tree_store_insert_with_valuesv (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint position, + gint *columns, + GValue *values, + gint n_values); +void gtk_tree_store_prepend (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent); +void gtk_tree_store_append (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent); +gboolean gtk_tree_store_is_ancestor (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *descendant); +gint gtk_tree_store_iter_depth (GtkTreeStore *tree_store, + GtkTreeIter *iter); +void gtk_tree_store_clear (GtkTreeStore *tree_store); +gboolean gtk_tree_store_iter_is_valid (GtkTreeStore *tree_store, + GtkTreeIter *iter); +void gtk_tree_store_reorder (GtkTreeStore *tree_store, + GtkTreeIter *parent, + gint *new_order); +void gtk_tree_store_swap (GtkTreeStore *tree_store, + GtkTreeIter *a, + GtkTreeIter *b); +void gtk_tree_store_move_before (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *position); +void gtk_tree_store_move_after (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *position); + + +G_END_DECLS + + +#endif /* __GTK_TREE_STORE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeview.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeview.h new file mode 100644 index 00000000..9ea61a9f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeview.h @@ -0,0 +1,429 @@ +/* gtktreeview.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GTK_TREE_VIEW_H__ +#define __GTK_TREE_VIEW_H__ + +#include <gtk/gtkwidget.h> +#include <gtk/gtkcontainer.h> +#include <gtk/gtktreemodel.h> +#include <gtk/gtktreeviewcolumn.h> +#include <gtk/gtkdnd.h> +#include <gtk/gtkentry.h> + + +G_BEGIN_DECLS + + +typedef enum +{ + /* drop before/after this row */ + GTK_TREE_VIEW_DROP_BEFORE, + GTK_TREE_VIEW_DROP_AFTER, + /* drop as a child of this row (with fallback to before or after + * if into is not possible) + */ + GTK_TREE_VIEW_DROP_INTO_OR_BEFORE, + GTK_TREE_VIEW_DROP_INTO_OR_AFTER +} GtkTreeViewDropPosition; + +#define GTK_TYPE_TREE_VIEW (gtk_tree_view_get_type ()) +#define GTK_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW, GtkTreeView)) +#define GTK_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_VIEW, GtkTreeViewClass)) +#define GTK_IS_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_VIEW)) +#define GTK_IS_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_VIEW)) +#define GTK_TREE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_VIEW, GtkTreeViewClass)) + +typedef struct _GtkTreeView GtkTreeView; +typedef struct _GtkTreeViewClass GtkTreeViewClass; +typedef struct _GtkTreeViewPrivate GtkTreeViewPrivate; +typedef struct _GtkTreeSelection GtkTreeSelection; +typedef struct _GtkTreeSelectionClass GtkTreeSelectionClass; + +struct _GtkTreeView +{ + GtkContainer parent; + + GtkTreeViewPrivate *priv; +}; + +struct _GtkTreeViewClass +{ + GtkContainerClass parent_class; + + void (* set_scroll_adjustments) (GtkTreeView *tree_view, + GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); + void (* row_activated) (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column); + gboolean (* test_expand_row) (GtkTreeView *tree_view, + GtkTreeIter *iter, + GtkTreePath *path); + gboolean (* test_collapse_row) (GtkTreeView *tree_view, + GtkTreeIter *iter, + GtkTreePath *path); + void (* row_expanded) (GtkTreeView *tree_view, + GtkTreeIter *iter, + GtkTreePath *path); + void (* row_collapsed) (GtkTreeView *tree_view, + GtkTreeIter *iter, + GtkTreePath *path); + void (* columns_changed) (GtkTreeView *tree_view); + void (* cursor_changed) (GtkTreeView *tree_view); + + /* Key Binding signals */ + gboolean (* move_cursor) (GtkTreeView *tree_view, + GtkMovementStep step, + gint count); + gboolean (* select_all) (GtkTreeView *tree_view); + gboolean (* unselect_all) (GtkTreeView *tree_view); + gboolean (* select_cursor_row) (GtkTreeView *tree_view, + gboolean start_editing); + gboolean (* toggle_cursor_row) (GtkTreeView *tree_view); + gboolean (* expand_collapse_cursor_row) (GtkTreeView *tree_view, + gboolean logical, + gboolean expand, + gboolean open_all); + gboolean (* select_cursor_parent) (GtkTreeView *tree_view); + gboolean (* start_interactive_search) (GtkTreeView *tree_view); + + /* Padding for future expansion */ + void (*_gtk_reserved0) (void); + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +typedef gboolean (* GtkTreeViewColumnDropFunc) (GtkTreeView *tree_view, + GtkTreeViewColumn *column, + GtkTreeViewColumn *prev_column, + GtkTreeViewColumn *next_column, + gpointer data); +typedef void (* GtkTreeViewMappingFunc) (GtkTreeView *tree_view, + GtkTreePath *path, + gpointer user_data); +typedef gboolean (*GtkTreeViewSearchEqualFunc) (GtkTreeModel *model, + gint column, + const gchar *key, + GtkTreeIter *iter, + gpointer search_data); +typedef gboolean (*GtkTreeViewRowSeparatorFunc) (GtkTreeModel *model, + GtkTreeIter *iter, + gpointer data); +typedef void (*GtkTreeViewSearchPositionFunc) (GtkTreeView *tree_view, + GtkWidget *search_dialog, + gpointer user_data); + + +/* Creators */ +GType gtk_tree_view_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_tree_view_new (void); +GtkWidget *gtk_tree_view_new_with_model (GtkTreeModel *model); + +/* Accessors */ +GtkTreeModel *gtk_tree_view_get_model (GtkTreeView *tree_view); +void gtk_tree_view_set_model (GtkTreeView *tree_view, + GtkTreeModel *model); +GtkTreeSelection *gtk_tree_view_get_selection (GtkTreeView *tree_view); +GtkAdjustment *gtk_tree_view_get_hadjustment (GtkTreeView *tree_view); +void gtk_tree_view_set_hadjustment (GtkTreeView *tree_view, + GtkAdjustment *adjustment); +GtkAdjustment *gtk_tree_view_get_vadjustment (GtkTreeView *tree_view); +void gtk_tree_view_set_vadjustment (GtkTreeView *tree_view, + GtkAdjustment *adjustment); +gboolean gtk_tree_view_get_headers_visible (GtkTreeView *tree_view); +void gtk_tree_view_set_headers_visible (GtkTreeView *tree_view, + gboolean headers_visible); +void gtk_tree_view_columns_autosize (GtkTreeView *tree_view); +gboolean gtk_tree_view_get_headers_clickable (GtkTreeView *tree_view); +void gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view, + gboolean setting); +void gtk_tree_view_set_rules_hint (GtkTreeView *tree_view, + gboolean setting); +gboolean gtk_tree_view_get_rules_hint (GtkTreeView *tree_view); + +/* Column funtions */ +gint gtk_tree_view_append_column (GtkTreeView *tree_view, + GtkTreeViewColumn *column); +gint gtk_tree_view_remove_column (GtkTreeView *tree_view, + GtkTreeViewColumn *column); +gint gtk_tree_view_insert_column (GtkTreeView *tree_view, + GtkTreeViewColumn *column, + gint position); +gint gtk_tree_view_insert_column_with_attributes (GtkTreeView *tree_view, + gint position, + const gchar *title, + GtkCellRenderer *cell, + ...) G_GNUC_NULL_TERMINATED; +gint gtk_tree_view_insert_column_with_data_func (GtkTreeView *tree_view, + gint position, + const gchar *title, + GtkCellRenderer *cell, + GtkTreeCellDataFunc func, + gpointer data, + GDestroyNotify dnotify); +GtkTreeViewColumn *gtk_tree_view_get_column (GtkTreeView *tree_view, + gint n); +GList *gtk_tree_view_get_columns (GtkTreeView *tree_view); +void gtk_tree_view_move_column_after (GtkTreeView *tree_view, + GtkTreeViewColumn *column, + GtkTreeViewColumn *base_column); +void gtk_tree_view_set_expander_column (GtkTreeView *tree_view, + GtkTreeViewColumn *column); +GtkTreeViewColumn *gtk_tree_view_get_expander_column (GtkTreeView *tree_view); +void gtk_tree_view_set_column_drag_function (GtkTreeView *tree_view, + GtkTreeViewColumnDropFunc func, + gpointer user_data, + GtkDestroyNotify destroy); + +/* Actions */ +void gtk_tree_view_scroll_to_point (GtkTreeView *tree_view, + gint tree_x, + gint tree_y); +void gtk_tree_view_scroll_to_cell (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column, + gboolean use_align, + gfloat row_align, + gfloat col_align); +void gtk_tree_view_row_activated (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column); +void gtk_tree_view_expand_all (GtkTreeView *tree_view); +void gtk_tree_view_collapse_all (GtkTreeView *tree_view); +void gtk_tree_view_expand_to_path (GtkTreeView *tree_view, + GtkTreePath *path); +gboolean gtk_tree_view_expand_row (GtkTreeView *tree_view, + GtkTreePath *path, + gboolean open_all); +gboolean gtk_tree_view_collapse_row (GtkTreeView *tree_view, + GtkTreePath *path); +void gtk_tree_view_map_expanded_rows (GtkTreeView *tree_view, + GtkTreeViewMappingFunc func, + gpointer data); +gboolean gtk_tree_view_row_expanded (GtkTreeView *tree_view, + GtkTreePath *path); +void gtk_tree_view_set_reorderable (GtkTreeView *tree_view, + gboolean reorderable); +gboolean gtk_tree_view_get_reorderable (GtkTreeView *tree_view); +void gtk_tree_view_set_cursor (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *focus_column, + gboolean start_editing); +void gtk_tree_view_set_cursor_on_cell (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *focus_column, + GtkCellRenderer *focus_cell, + gboolean start_editing); +void gtk_tree_view_get_cursor (GtkTreeView *tree_view, + GtkTreePath **path, + GtkTreeViewColumn **focus_column); + + +/* Layout information */ +GdkWindow *gtk_tree_view_get_bin_window (GtkTreeView *tree_view); +gboolean gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view, + gint x, + gint y, + GtkTreePath **path, + GtkTreeViewColumn **column, + gint *cell_x, + gint *cell_y); +void gtk_tree_view_get_cell_area (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column, + GdkRectangle *rect); +void gtk_tree_view_get_background_area (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column, + GdkRectangle *rect); +void gtk_tree_view_get_visible_rect (GtkTreeView *tree_view, + GdkRectangle *visible_rect); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_tree_view_widget_to_tree_coords (GtkTreeView *tree_view, + gint wx, + gint wy, + gint *tx, + gint *ty); +void gtk_tree_view_tree_to_widget_coords (GtkTreeView *tree_view, + gint tx, + gint ty, + gint *wx, + gint *wy); +#endif /* !GTK_DISABLE_DEPRECATED */ +gboolean gtk_tree_view_get_visible_range (GtkTreeView *tree_view, + GtkTreePath **start_path, + GtkTreePath **end_path); + +/* Drag-and-Drop support */ +void gtk_tree_view_enable_model_drag_source (GtkTreeView *tree_view, + GdkModifierType start_button_mask, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); +void gtk_tree_view_enable_model_drag_dest (GtkTreeView *tree_view, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); +void gtk_tree_view_unset_rows_drag_source (GtkTreeView *tree_view); +void gtk_tree_view_unset_rows_drag_dest (GtkTreeView *tree_view); + + +/* These are useful to implement your own custom stuff. */ +void gtk_tree_view_set_drag_dest_row (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewDropPosition pos); +void gtk_tree_view_get_drag_dest_row (GtkTreeView *tree_view, + GtkTreePath **path, + GtkTreeViewDropPosition *pos); +gboolean gtk_tree_view_get_dest_row_at_pos (GtkTreeView *tree_view, + gint drag_x, + gint drag_y, + GtkTreePath **path, + GtkTreeViewDropPosition *pos); +GdkPixmap *gtk_tree_view_create_row_drag_icon (GtkTreeView *tree_view, + GtkTreePath *path); + +/* Interactive search */ +void gtk_tree_view_set_enable_search (GtkTreeView *tree_view, + gboolean enable_search); +gboolean gtk_tree_view_get_enable_search (GtkTreeView *tree_view); +gint gtk_tree_view_get_search_column (GtkTreeView *tree_view); +void gtk_tree_view_set_search_column (GtkTreeView *tree_view, + gint column); +GtkTreeViewSearchEqualFunc gtk_tree_view_get_search_equal_func (GtkTreeView *tree_view); +void gtk_tree_view_set_search_equal_func (GtkTreeView *tree_view, + GtkTreeViewSearchEqualFunc search_equal_func, + gpointer search_user_data, + GtkDestroyNotify search_destroy); + +GtkEntry *gtk_tree_view_get_search_entry (GtkTreeView *tree_view); +void gtk_tree_view_set_search_entry (GtkTreeView *tree_view, + GtkEntry *entry); +GtkTreeViewSearchPositionFunc gtk_tree_view_get_search_position_func (GtkTreeView *tree_view); +void gtk_tree_view_set_search_position_func (GtkTreeView *tree_view, + GtkTreeViewSearchPositionFunc func, + gpointer data, + GDestroyNotify destroy); + +/* Convert between the different coordinate systems */ +void gtk_tree_view_convert_widget_to_tree_coords (GtkTreeView *tree_view, + gint wx, + gint wy, + gint *tx, + gint *ty); +void gtk_tree_view_convert_tree_to_widget_coords (GtkTreeView *tree_view, + gint tx, + gint ty, + gint *wx, + gint *wy); +void gtk_tree_view_convert_widget_to_bin_window_coords (GtkTreeView *tree_view, + gint wx, + gint wy, + gint *bx, + gint *by); +void gtk_tree_view_convert_bin_window_to_widget_coords (GtkTreeView *tree_view, + gint bx, + gint by, + gint *wx, + gint *wy); +void gtk_tree_view_convert_tree_to_bin_window_coords (GtkTreeView *tree_view, + gint tx, + gint ty, + gint *bx, + gint *by); +void gtk_tree_view_convert_bin_window_to_tree_coords (GtkTreeView *tree_view, + gint bx, + gint by, + gint *tx, + gint *ty); + +/* This function should really never be used. It is just for use by ATK. + */ +typedef void (* GtkTreeDestroyCountFunc) (GtkTreeView *tree_view, + GtkTreePath *path, + gint children, + gpointer user_data); +void gtk_tree_view_set_destroy_count_func (GtkTreeView *tree_view, + GtkTreeDestroyCountFunc func, + gpointer data, + GtkDestroyNotify destroy); + +void gtk_tree_view_set_fixed_height_mode (GtkTreeView *tree_view, + gboolean enable); +gboolean gtk_tree_view_get_fixed_height_mode (GtkTreeView *tree_view); +void gtk_tree_view_set_hover_selection (GtkTreeView *tree_view, + gboolean hover); +gboolean gtk_tree_view_get_hover_selection (GtkTreeView *tree_view); +void gtk_tree_view_set_hover_expand (GtkTreeView *tree_view, + gboolean expand); +gboolean gtk_tree_view_get_hover_expand (GtkTreeView *tree_view); +void gtk_tree_view_set_rubber_banding (GtkTreeView *tree_view, + gboolean enable); +gboolean gtk_tree_view_get_rubber_banding (GtkTreeView *tree_view); + +gboolean gtk_tree_view_is_rubber_banding_active (GtkTreeView *tree_view); + +GtkTreeViewRowSeparatorFunc gtk_tree_view_get_row_separator_func (GtkTreeView *tree_view); +void gtk_tree_view_set_row_separator_func (GtkTreeView *tree_view, + GtkTreeViewRowSeparatorFunc func, + gpointer data, + GtkDestroyNotify destroy); + +GtkTreeViewGridLines gtk_tree_view_get_grid_lines (GtkTreeView *tree_view); +void gtk_tree_view_set_grid_lines (GtkTreeView *tree_view, + GtkTreeViewGridLines grid_lines); +gboolean gtk_tree_view_get_enable_tree_lines (GtkTreeView *tree_view); +void gtk_tree_view_set_enable_tree_lines (GtkTreeView *tree_view, + gboolean enabled); +void gtk_tree_view_set_show_expanders (GtkTreeView *tree_view, + gboolean enabled); +gboolean gtk_tree_view_get_show_expanders (GtkTreeView *tree_view); +void gtk_tree_view_set_level_indentation (GtkTreeView *tree_view, + gint indentation); +gint gtk_tree_view_get_level_indentation (GtkTreeView *tree_view); + +/* Convenience functions for setting tooltips */ +void gtk_tree_view_set_tooltip_row (GtkTreeView *tree_view, + GtkTooltip *tooltip, + GtkTreePath *path); +void gtk_tree_view_set_tooltip_cell (GtkTreeView *tree_view, + GtkTooltip *tooltip, + GtkTreePath *path, + GtkTreeViewColumn *column, + GtkCellRenderer *cell); +gboolean gtk_tree_view_get_tooltip_context(GtkTreeView *tree_view, + gint *x, + gint *y, + gboolean keyboard_tip, + GtkTreeModel **model, + GtkTreePath **path, + GtkTreeIter *iter); +void gtk_tree_view_set_tooltip_column (GtkTreeView *tree_view, + gint column); +gint gtk_tree_view_get_tooltip_column (GtkTreeView *tree_view); + +G_END_DECLS + + +#endif /* __GTK_TREE_VIEW_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h new file mode 100644 index 00000000..d7f14cb4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h @@ -0,0 +1,241 @@ +/* gtktreeviewcolumn.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GTK_TREE_VIEW_COLUMN_H__ +#define __GTK_TREE_VIEW_COLUMN_H__ + +#include <glib-object.h> +#include <gtk/gtkcellrenderer.h> +#include <gtk/gtktreemodel.h> +#include <gtk/gtktreesortable.h> + +/* Not needed, retained for compatibility -Yosh */ +#include <gtk/gtkobject.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_TREE_VIEW_COLUMN (gtk_tree_view_column_get_type ()) +#define GTK_TREE_VIEW_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW_COLUMN, GtkTreeViewColumn)) +#define GTK_TREE_VIEW_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_VIEW_COLUMN, GtkTreeViewColumnClass)) +#define GTK_IS_TREE_VIEW_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_VIEW_COLUMN)) +#define GTK_IS_TREE_VIEW_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_VIEW_COLUMN)) +#define GTK_TREE_VIEW_COLUMN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_VIEW_COLUMN, GtkTreeViewColumnClass)) + +typedef enum +{ + GTK_TREE_VIEW_COLUMN_GROW_ONLY, + GTK_TREE_VIEW_COLUMN_AUTOSIZE, + GTK_TREE_VIEW_COLUMN_FIXED +} GtkTreeViewColumnSizing; + +typedef struct _GtkTreeViewColumn GtkTreeViewColumn; +typedef struct _GtkTreeViewColumnClass GtkTreeViewColumnClass; + +typedef void (* GtkTreeCellDataFunc) (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + gpointer data); + + +struct _GtkTreeViewColumn +{ + GtkObject parent; + + GtkWidget *tree_view; + GtkWidget *button; + GtkWidget *child; + GtkWidget *arrow; + GtkWidget *alignment; + GdkWindow *window; + GtkCellEditable *editable_widget; + gfloat xalign; + guint property_changed_signal; + gint spacing; + + /* Sizing fields */ + /* see gtk+/doc/tree-column-sizing.txt for more information on them */ + GtkTreeViewColumnSizing column_type; + gint requested_width; + gint button_request; + gint resized_width; + gint width; + gint fixed_width; + gint min_width; + gint max_width; + + /* dragging columns */ + gint drag_x; + gint drag_y; + + gchar *title; + GList *cell_list; + + /* Sorting */ + guint sort_clicked_signal; + guint sort_column_changed_signal; + gint sort_column_id; + GtkSortType sort_order; + + /* Flags */ + guint visible : 1; + guint resizable : 1; + guint clickable : 1; + guint dirty : 1; + guint show_sort_indicator : 1; + guint maybe_reordered : 1; + guint reorderable : 1; + guint use_resized_width : 1; + guint expand : 1; +}; + +struct _GtkTreeViewColumnClass +{ + GtkObjectClass parent_class; + + void (*clicked) (GtkTreeViewColumn *tree_column); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_tree_view_column_get_type (void) G_GNUC_CONST; +GtkTreeViewColumn *gtk_tree_view_column_new (void); +GtkTreeViewColumn *gtk_tree_view_column_new_with_attributes (const gchar *title, + GtkCellRenderer *cell, + ...) G_GNUC_NULL_TERMINATED; +void gtk_tree_view_column_pack_start (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell, + gboolean expand); +void gtk_tree_view_column_pack_end (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell, + gboolean expand); +void gtk_tree_view_column_clear (GtkTreeViewColumn *tree_column); +GList *gtk_tree_view_column_get_cell_renderers (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_add_attribute (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell_renderer, + const gchar *attribute, + gint column); +void gtk_tree_view_column_set_attributes (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell_renderer, + ...) G_GNUC_NULL_TERMINATED; +void gtk_tree_view_column_set_cell_data_func (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell_renderer, + GtkTreeCellDataFunc func, + gpointer func_data, + GtkDestroyNotify destroy); +void gtk_tree_view_column_clear_attributes (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell_renderer); +void gtk_tree_view_column_set_spacing (GtkTreeViewColumn *tree_column, + gint spacing); +gint gtk_tree_view_column_get_spacing (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_visible (GtkTreeViewColumn *tree_column, + gboolean visible); +gboolean gtk_tree_view_column_get_visible (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_resizable (GtkTreeViewColumn *tree_column, + gboolean resizable); +gboolean gtk_tree_view_column_get_resizable (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_sizing (GtkTreeViewColumn *tree_column, + GtkTreeViewColumnSizing type); +GtkTreeViewColumnSizing gtk_tree_view_column_get_sizing (GtkTreeViewColumn *tree_column); +gint gtk_tree_view_column_get_width (GtkTreeViewColumn *tree_column); +gint gtk_tree_view_column_get_fixed_width (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_fixed_width (GtkTreeViewColumn *tree_column, + gint fixed_width); +void gtk_tree_view_column_set_min_width (GtkTreeViewColumn *tree_column, + gint min_width); +gint gtk_tree_view_column_get_min_width (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_max_width (GtkTreeViewColumn *tree_column, + gint max_width); +gint gtk_tree_view_column_get_max_width (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_clicked (GtkTreeViewColumn *tree_column); + + + +/* Options for manipulating the column headers + */ +void gtk_tree_view_column_set_title (GtkTreeViewColumn *tree_column, + const gchar *title); +G_CONST_RETURN gchar *gtk_tree_view_column_get_title (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_expand (GtkTreeViewColumn *tree_column, + gboolean expand); +gboolean gtk_tree_view_column_get_expand (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_clickable (GtkTreeViewColumn *tree_column, + gboolean clickable); +gboolean gtk_tree_view_column_get_clickable (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_widget (GtkTreeViewColumn *tree_column, + GtkWidget *widget); +GtkWidget *gtk_tree_view_column_get_widget (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_alignment (GtkTreeViewColumn *tree_column, + gfloat xalign); +gfloat gtk_tree_view_column_get_alignment (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_reorderable (GtkTreeViewColumn *tree_column, + gboolean reorderable); +gboolean gtk_tree_view_column_get_reorderable (GtkTreeViewColumn *tree_column); + + + +/* You probably only want to use gtk_tree_view_column_set_sort_column_id. The + * other sorting functions exist primarily to let others do their own custom sorting. + */ +void gtk_tree_view_column_set_sort_column_id (GtkTreeViewColumn *tree_column, + gint sort_column_id); +gint gtk_tree_view_column_get_sort_column_id (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_sort_indicator (GtkTreeViewColumn *tree_column, + gboolean setting); +gboolean gtk_tree_view_column_get_sort_indicator (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_sort_order (GtkTreeViewColumn *tree_column, + GtkSortType order); +GtkSortType gtk_tree_view_column_get_sort_order (GtkTreeViewColumn *tree_column); + + +/* These functions are meant primarily for interaction between the GtkTreeView and the column. + */ +void gtk_tree_view_column_cell_set_cell_data (GtkTreeViewColumn *tree_column, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + gboolean is_expander, + gboolean is_expanded); +void gtk_tree_view_column_cell_get_size (GtkTreeViewColumn *tree_column, + GdkRectangle *cell_area, + gint *x_offset, + gint *y_offset, + gint *width, + gint *height); +gboolean gtk_tree_view_column_cell_is_visible (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_focus_cell (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell); +gboolean gtk_tree_view_column_cell_get_position (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell_renderer, + gint *start_pos, + gint *width); +void gtk_tree_view_column_queue_resize (GtkTreeViewColumn *tree_column); +GtkWidget *gtk_tree_view_column_get_tree_view (GtkTreeViewColumn *tree_column); + + +G_END_DECLS + + +#endif /* __GTK_TREE_VIEW_COLUMN_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktypebuiltins.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktypebuiltins.h new file mode 100644 index 00000000..3c3832a1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktypebuiltins.h @@ -0,0 +1,280 @@ + +/* Generated data (by glib-mkenums) */ + +#ifndef __GTK_TYPE_BUILTINS_H__ +#define __GTK_TYPE_BUILTINS_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS +/* enumerations from "gtkaccelgroup.h" */ +GType gtk_accel_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ACCEL_FLAGS (gtk_accel_flags_get_type()) +/* enumerations from "gtkassistant.h" */ +GType gtk_assistant_page_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ASSISTANT_PAGE_TYPE (gtk_assistant_page_type_get_type()) +/* enumerations from "gtkbuilder.h" */ +GType gtk_builder_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_BUILDER_ERROR (gtk_builder_error_get_type()) +/* enumerations from "gtkcalendar.h" */ +GType gtk_calendar_display_options_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CALENDAR_DISPLAY_OPTIONS (gtk_calendar_display_options_get_type()) +/* enumerations from "gtkcellrenderer.h" */ +GType gtk_cell_renderer_state_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CELL_RENDERER_STATE (gtk_cell_renderer_state_get_type()) +GType gtk_cell_renderer_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CELL_RENDERER_MODE (gtk_cell_renderer_mode_get_type()) +/* enumerations from "gtkcellrendereraccel.h" */ +GType gtk_cell_renderer_accel_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CELL_RENDERER_ACCEL_MODE (gtk_cell_renderer_accel_mode_get_type()) +/* enumerations from "gtkclist.h" */ +GType gtk_cell_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CELL_TYPE (gtk_cell_type_get_type()) +GType gtk_clist_drag_pos_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CLIST_DRAG_POS (gtk_clist_drag_pos_get_type()) +GType gtk_button_action_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_BUTTON_ACTION (gtk_button_action_get_type()) +/* enumerations from "gtkctree.h" */ +GType gtk_ctree_pos_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CTREE_POS (gtk_ctree_pos_get_type()) +GType gtk_ctree_line_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CTREE_LINE_STYLE (gtk_ctree_line_style_get_type()) +GType gtk_ctree_expander_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CTREE_EXPANDER_STYLE (gtk_ctree_expander_style_get_type()) +GType gtk_ctree_expansion_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CTREE_EXPANSION_TYPE (gtk_ctree_expansion_type_get_type()) +/* enumerations from "gtkdebug.h" */ +GType gtk_debug_flag_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DEBUG_FLAG (gtk_debug_flag_get_type()) +/* enumerations from "gtkdialog.h" */ +GType gtk_dialog_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DIALOG_FLAGS (gtk_dialog_flags_get_type()) +GType gtk_response_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RESPONSE_TYPE (gtk_response_type_get_type()) +/* enumerations from "gtkdnd.h" */ +GType gtk_dest_defaults_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DEST_DEFAULTS (gtk_dest_defaults_get_type()) +GType gtk_target_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TARGET_FLAGS (gtk_target_flags_get_type()) +/* enumerations from "gtkenums.h" */ +GType gtk_anchor_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ANCHOR_TYPE (gtk_anchor_type_get_type()) +GType gtk_arrow_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ARROW_TYPE (gtk_arrow_type_get_type()) +GType gtk_attach_options_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ATTACH_OPTIONS (gtk_attach_options_get_type()) +GType gtk_button_box_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_BUTTON_BOX_STYLE (gtk_button_box_style_get_type()) +GType gtk_curve_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CURVE_TYPE (gtk_curve_type_get_type()) +GType gtk_delete_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DELETE_TYPE (gtk_delete_type_get_type()) +GType gtk_direction_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DIRECTION_TYPE (gtk_direction_type_get_type()) +GType gtk_expander_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_EXPANDER_STYLE (gtk_expander_style_get_type()) +GType gtk_icon_size_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ICON_SIZE (gtk_icon_size_get_type()) +GType gtk_sensitivity_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SENSITIVITY_TYPE (gtk_sensitivity_type_get_type()) +GType gtk_side_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SIDE_TYPE (gtk_side_type_get_type()) +GType gtk_text_direction_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TEXT_DIRECTION (gtk_text_direction_get_type()) +GType gtk_justification_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_JUSTIFICATION (gtk_justification_get_type()) +GType gtk_match_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_MATCH_TYPE (gtk_match_type_get_type()) +GType gtk_menu_direction_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_MENU_DIRECTION_TYPE (gtk_menu_direction_type_get_type()) +GType gtk_metric_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_METRIC_TYPE (gtk_metric_type_get_type()) +GType gtk_movement_step_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_MOVEMENT_STEP (gtk_movement_step_get_type()) +GType gtk_scroll_step_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SCROLL_STEP (gtk_scroll_step_get_type()) +GType gtk_orientation_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ORIENTATION (gtk_orientation_get_type()) +GType gtk_corner_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CORNER_TYPE (gtk_corner_type_get_type()) +GType gtk_pack_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PACK_TYPE (gtk_pack_type_get_type()) +GType gtk_path_priority_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PATH_PRIORITY_TYPE (gtk_path_priority_type_get_type()) +GType gtk_path_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PATH_TYPE (gtk_path_type_get_type()) +GType gtk_policy_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_POLICY_TYPE (gtk_policy_type_get_type()) +GType gtk_position_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_POSITION_TYPE (gtk_position_type_get_type()) +GType gtk_preview_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PREVIEW_TYPE (gtk_preview_type_get_type()) +GType gtk_relief_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RELIEF_STYLE (gtk_relief_style_get_type()) +GType gtk_resize_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RESIZE_MODE (gtk_resize_mode_get_type()) +GType gtk_signal_run_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SIGNAL_RUN_TYPE (gtk_signal_run_type_get_type()) +GType gtk_scroll_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SCROLL_TYPE (gtk_scroll_type_get_type()) +GType gtk_selection_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SELECTION_MODE (gtk_selection_mode_get_type()) +GType gtk_shadow_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SHADOW_TYPE (gtk_shadow_type_get_type()) +GType gtk_state_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_STATE_TYPE (gtk_state_type_get_type()) +GType gtk_submenu_direction_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SUBMENU_DIRECTION (gtk_submenu_direction_get_type()) +GType gtk_submenu_placement_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SUBMENU_PLACEMENT (gtk_submenu_placement_get_type()) +GType gtk_toolbar_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TOOLBAR_STYLE (gtk_toolbar_style_get_type()) +GType gtk_update_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_UPDATE_TYPE (gtk_update_type_get_type()) +GType gtk_visibility_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_VISIBILITY (gtk_visibility_get_type()) +GType gtk_window_position_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_WINDOW_POSITION (gtk_window_position_get_type()) +GType gtk_window_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_WINDOW_TYPE (gtk_window_type_get_type()) +GType gtk_wrap_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_WRAP_MODE (gtk_wrap_mode_get_type()) +GType gtk_sort_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SORT_TYPE (gtk_sort_type_get_type()) +GType gtk_im_preedit_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_IM_PREEDIT_STYLE (gtk_im_preedit_style_get_type()) +GType gtk_im_status_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_IM_STATUS_STYLE (gtk_im_status_style_get_type()) +GType gtk_pack_direction_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PACK_DIRECTION (gtk_pack_direction_get_type()) +GType gtk_print_pages_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_PAGES (gtk_print_pages_get_type()) +GType gtk_page_set_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PAGE_SET (gtk_page_set_get_type()) +GType gtk_page_orientation_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PAGE_ORIENTATION (gtk_page_orientation_get_type()) +GType gtk_print_quality_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_QUALITY (gtk_print_quality_get_type()) +GType gtk_print_duplex_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_DUPLEX (gtk_print_duplex_get_type()) +GType gtk_unit_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_UNIT (gtk_unit_get_type()) +GType gtk_tree_view_grid_lines_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TREE_VIEW_GRID_LINES (gtk_tree_view_grid_lines_get_type()) +GType gtk_drag_result_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DRAG_RESULT (gtk_drag_result_get_type()) +/* enumerations from "gtkfilechooser.h" */ +GType gtk_file_chooser_action_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_FILE_CHOOSER_ACTION (gtk_file_chooser_action_get_type()) +GType gtk_file_chooser_confirmation_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_FILE_CHOOSER_CONFIRMATION (gtk_file_chooser_confirmation_get_type()) +GType gtk_file_chooser_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_FILE_CHOOSER_ERROR (gtk_file_chooser_error_get_type()) +/* enumerations from "gtkfilefilter.h" */ +GType gtk_file_filter_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_FILE_FILTER_FLAGS (gtk_file_filter_flags_get_type()) +/* enumerations from "gtkicontheme.h" */ +GType gtk_icon_lookup_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ICON_LOOKUP_FLAGS (gtk_icon_lookup_flags_get_type()) +GType gtk_icon_theme_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ICON_THEME_ERROR (gtk_icon_theme_error_get_type()) +/* enumerations from "gtkiconview.h" */ +GType gtk_icon_view_drop_position_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ICON_VIEW_DROP_POSITION (gtk_icon_view_drop_position_get_type()) +/* enumerations from "gtkimage.h" */ +GType gtk_image_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_IMAGE_TYPE (gtk_image_type_get_type()) +/* enumerations from "gtkmessagedialog.h" */ +GType gtk_message_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_MESSAGE_TYPE (gtk_message_type_get_type()) +GType gtk_buttons_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_BUTTONS_TYPE (gtk_buttons_type_get_type()) +/* enumerations from "gtknotebook.h" */ +GType gtk_notebook_tab_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_NOTEBOOK_TAB (gtk_notebook_tab_get_type()) +/* enumerations from "gtkobject.h" */ +GType gtk_object_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_OBJECT_FLAGS (gtk_object_flags_get_type()) +GType gtk_arg_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ARG_FLAGS (gtk_arg_flags_get_type()) +/* enumerations from "gtkprintoperation.h" */ +GType gtk_print_status_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_STATUS (gtk_print_status_get_type()) +GType gtk_print_operation_result_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_OPERATION_RESULT (gtk_print_operation_result_get_type()) +GType gtk_print_operation_action_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_OPERATION_ACTION (gtk_print_operation_action_get_type()) +GType gtk_print_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_ERROR (gtk_print_error_get_type()) +/* enumerations from "gtkprivate.h" */ +GType gtk_private_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRIVATE_FLAGS (gtk_private_flags_get_type()) +/* enumerations from "gtkprogressbar.h" */ +GType gtk_progress_bar_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PROGRESS_BAR_STYLE (gtk_progress_bar_style_get_type()) +GType gtk_progress_bar_orientation_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PROGRESS_BAR_ORIENTATION (gtk_progress_bar_orientation_get_type()) +/* enumerations from "gtkrc.h" */ +GType gtk_rc_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RC_FLAGS (gtk_rc_flags_get_type()) +GType gtk_rc_token_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RC_TOKEN_TYPE (gtk_rc_token_type_get_type()) +/* enumerations from "gtkrecentchooser.h" */ +GType gtk_recent_sort_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RECENT_SORT_TYPE (gtk_recent_sort_type_get_type()) +GType gtk_recent_chooser_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RECENT_CHOOSER_ERROR (gtk_recent_chooser_error_get_type()) +/* enumerations from "gtkrecentfilter.h" */ +GType gtk_recent_filter_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RECENT_FILTER_FLAGS (gtk_recent_filter_flags_get_type()) +/* enumerations from "gtkrecentmanager.h" */ +GType gtk_recent_manager_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RECENT_MANAGER_ERROR (gtk_recent_manager_error_get_type()) +/* enumerations from "gtksizegroup.h" */ +GType gtk_size_group_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SIZE_GROUP_MODE (gtk_size_group_mode_get_type()) +/* enumerations from "gtkspinbutton.h" */ +GType gtk_spin_button_update_policy_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY (gtk_spin_button_update_policy_get_type()) +GType gtk_spin_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SPIN_TYPE (gtk_spin_type_get_type()) +/* enumerations from "gtktextbuffer.h" */ +GType gtk_text_buffer_target_info_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TEXT_BUFFER_TARGET_INFO (gtk_text_buffer_target_info_get_type()) +/* enumerations from "gtktextiter.h" */ +GType gtk_text_search_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TEXT_SEARCH_FLAGS (gtk_text_search_flags_get_type()) +/* enumerations from "gtktextview.h" */ +GType gtk_text_window_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TEXT_WINDOW_TYPE (gtk_text_window_type_get_type()) +/* enumerations from "gtktoolbar.h" */ +GType gtk_toolbar_child_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TOOLBAR_CHILD_TYPE (gtk_toolbar_child_type_get_type()) +GType gtk_toolbar_space_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TOOLBAR_SPACE_STYLE (gtk_toolbar_space_style_get_type()) +/* enumerations from "gtktree.h" */ +GType gtk_tree_view_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TREE_VIEW_MODE (gtk_tree_view_mode_get_type()) +/* enumerations from "gtktreemodel.h" */ +GType gtk_tree_model_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TREE_MODEL_FLAGS (gtk_tree_model_flags_get_type()) +/* enumerations from "gtktreeview.h" */ +GType gtk_tree_view_drop_position_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TREE_VIEW_DROP_POSITION (gtk_tree_view_drop_position_get_type()) +/* enumerations from "gtktreeviewcolumn.h" */ +GType gtk_tree_view_column_sizing_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TREE_VIEW_COLUMN_SIZING (gtk_tree_view_column_sizing_get_type()) +/* enumerations from "gtkuimanager.h" */ +GType gtk_ui_manager_item_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_UI_MANAGER_ITEM_TYPE (gtk_ui_manager_item_type_get_type()) +/* enumerations from "gtkwidget.h" */ +GType gtk_widget_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_WIDGET_FLAGS (gtk_widget_flags_get_type()) +GType gtk_widget_help_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_WIDGET_HELP_TYPE (gtk_widget_help_type_get_type()) +G_END_DECLS + +#endif /* __GTK_TYPE_BUILTINS_H__ */ + +/* Generated data ends here */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktypeutils.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktypeutils.h new file mode 100644 index 00000000..90b97ab1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtktypeutils.h @@ -0,0 +1,267 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TYPE_UTILS_H__ +#define __GTK_TYPE_UTILS_H__ + + +#include <glib-object.h> + + +G_BEGIN_DECLS + +#ifndef GTK_DISABLE_DEPRECATED + +/* Fundamental Types + * many of these are just aliases for GLib types to maintain + * compatibility + */ + +#define GTK_TYPE_INVALID G_TYPE_INVALID +#define GTK_TYPE_NONE G_TYPE_NONE +#define GTK_TYPE_ENUM G_TYPE_ENUM +#define GTK_TYPE_FLAGS G_TYPE_FLAGS + +/* GtkArg types */ +#define GTK_TYPE_CHAR G_TYPE_CHAR +#define GTK_TYPE_UCHAR G_TYPE_UCHAR +#define GTK_TYPE_BOOL G_TYPE_BOOLEAN +#define GTK_TYPE_INT G_TYPE_INT +#define GTK_TYPE_UINT G_TYPE_UINT +#define GTK_TYPE_LONG G_TYPE_LONG +#define GTK_TYPE_ULONG G_TYPE_ULONG +#define GTK_TYPE_FLOAT G_TYPE_FLOAT +#define GTK_TYPE_DOUBLE G_TYPE_DOUBLE +#define GTK_TYPE_STRING G_TYPE_STRING +#define GTK_TYPE_BOXED G_TYPE_BOXED +#define GTK_TYPE_POINTER G_TYPE_POINTER + +typedef GType GtkFundamentalType; + +/* --- type macros --- */ +#define GTK_CLASS_NAME(class) (g_type_name (G_TYPE_FROM_CLASS (class))) +#define GTK_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class)) +#define GTK_TYPE_IS_OBJECT(type) (g_type_is_a ((type), GTK_TYPE_OBJECT)) + +/* outdated macros that really shouldn't e used anymore, + * use the GLib type system instead + */ +#define GTK_TYPE_FUNDAMENTAL_LAST (G_TYPE_LAST_RESERVED_FUNDAMENTAL - 1) +#define GTK_TYPE_FUNDAMENTAL_MAX (G_TYPE_FUNDAMENTAL_MAX) + +#define GTK_FUNDAMENTAL_TYPE G_TYPE_FUNDAMENTAL +#define GTK_STRUCT_OFFSET G_STRUCT_OFFSET + +#endif /* GTK_DISABLE_DEPRECATED */ + +/* glib macro wrappers (compatibility) */ +#define GTK_CHECK_CAST G_TYPE_CHECK_INSTANCE_CAST +#define GTK_CHECK_CLASS_CAST G_TYPE_CHECK_CLASS_CAST +#define GTK_CHECK_GET_CLASS G_TYPE_INSTANCE_GET_CLASS +#define GTK_CHECK_TYPE G_TYPE_CHECK_INSTANCE_TYPE +#define GTK_CHECK_CLASS_TYPE G_TYPE_CHECK_CLASS_TYPE + +/* glib type wrappers (compatibility) */ + +typedef GType GtkType; + +#ifndef GTK_DISABLE_DEPRECATED + +typedef GTypeInstance GtkTypeObject; +typedef GTypeClass GtkTypeClass; +typedef GBaseInitFunc GtkClassInitFunc; +typedef GInstanceInitFunc GtkObjectInitFunc; + +#endif /* GTK_DISABLE_DEPRECATED */ + +G_END_DECLS + +/* Builtin Types + */ +#include <gtk/gtktypebuiltins.h> + +G_BEGIN_DECLS + +/* urg */ +#define GTK_TYPE_IDENTIFIER (gtk_identifier_get_type ()) +GType gtk_identifier_get_type (void) G_GNUC_CONST; + +/* --- typedefs --- */ +/* here we come with some necessary forward declarations for structures and + * provide some fundamental function signatures + */ +typedef struct _GtkArg GtkArg; +typedef struct _GtkObject GtkObject; /* object forward declaration */ +typedef gboolean (*GtkFunction) (gpointer data); +typedef void (*GtkDestroyNotify) (gpointer data); +typedef void (*GtkCallbackMarshal) (GtkObject *object, + gpointer data, + guint n_args, + GtkArg *args); +typedef void (*GtkSignalFunc) (void); +#define GTK_SIGNAL_FUNC(f) ((GtkSignalFunc) (f)) + +#ifndef GTK_DISABLE_DEPRECATED +typedef struct _GtkTypeInfo GtkTypeInfo; +typedef GSignalCMarshaller GtkSignalMarshaller; +#endif + +#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) +/* Used by gtk_container_foreach_unmarshal () */ + +/* GtkArg, used to hold differently typed values */ +struct _GtkArg +{ + GtkType type; + gchar *name; + + /* this union only defines the required storage types for + * the possibile values, thus there is no gint enum_data field, + * because that would just be a mere alias for gint int_data. + * use the GTK_VALUE_*() and GTK_RETLOC_*() macros to access + * the discrete memebers. + */ + union { + /* flat values */ + gchar char_data; + guchar uchar_data; + gboolean bool_data; + gint int_data; + guint uint_data; + glong long_data; + gulong ulong_data; + gfloat float_data; + gdouble double_data; + gchar *string_data; + GtkObject *object_data; + gpointer pointer_data; + + /* structured values */ + struct { + GtkSignalFunc f; + gpointer d; + } signal_data; + } d; +}; + +/* argument value access macros, these must not contain casts, + * to allow the usage of these macros in combination with the + * address operator, e.g. >K_VALUE_CHAR (*arg) + */ +#define GTK_VALUE_CHAR(a) ((a).d.char_data) +#define GTK_VALUE_UCHAR(a) ((a).d.uchar_data) +#define GTK_VALUE_BOOL(a) ((a).d.bool_data) +#define GTK_VALUE_INT(a) ((a).d.int_data) +#define GTK_VALUE_UINT(a) ((a).d.uint_data) +#define GTK_VALUE_LONG(a) ((a).d.long_data) +#define GTK_VALUE_ULONG(a) ((a).d.ulong_data) +#define GTK_VALUE_FLOAT(a) ((a).d.float_data) +#define GTK_VALUE_DOUBLE(a) ((a).d.double_data) +#define GTK_VALUE_STRING(a) ((a).d.string_data) +#define GTK_VALUE_ENUM(a) ((a).d.int_data) +#define GTK_VALUE_FLAGS(a) ((a).d.uint_data) +#define GTK_VALUE_BOXED(a) ((a).d.pointer_data) +#define GTK_VALUE_OBJECT(a) ((a).d.object_data) +#define GTK_VALUE_POINTER(a) ((a).d.pointer_data) +#define GTK_VALUE_SIGNAL(a) ((a).d.signal_data) +#endif /* !GTK_DISABLE_DEPRECATED || GTK_COMPILATION */ + +#ifndef GTK_DISABLE_DEPRECATED +/* return location macros, these all narrow down to + * pointer types, because return values need to be + * passed by reference + */ +#define GTK_RETLOC_CHAR(a) ((gchar*) (a).d.pointer_data) +#define GTK_RETLOC_UCHAR(a) ((guchar*) (a).d.pointer_data) +#define GTK_RETLOC_BOOL(a) ((gboolean*) (a).d.pointer_data) +#define GTK_RETLOC_INT(a) ((gint*) (a).d.pointer_data) +#define GTK_RETLOC_UINT(a) ((guint*) (a).d.pointer_data) +#define GTK_RETLOC_LONG(a) ((glong*) (a).d.pointer_data) +#define GTK_RETLOC_ULONG(a) ((gulong*) (a).d.pointer_data) +#define GTK_RETLOC_FLOAT(a) ((gfloat*) (a).d.pointer_data) +#define GTK_RETLOC_DOUBLE(a) ((gdouble*) (a).d.pointer_data) +#define GTK_RETLOC_STRING(a) ((gchar**) (a).d.pointer_data) +#define GTK_RETLOC_ENUM(a) ((gint*) (a).d.pointer_data) +#define GTK_RETLOC_FLAGS(a) ((guint*) (a).d.pointer_data) +#define GTK_RETLOC_BOXED(a) ((gpointer*) (a).d.pointer_data) +#define GTK_RETLOC_OBJECT(a) ((GtkObject**) (a).d.pointer_data) +#define GTK_RETLOC_POINTER(a) ((gpointer*) (a).d.pointer_data) +/* GTK_RETLOC_SIGNAL() - no such thing */ + +/* type registration, it is recommended to use + * g_type_register_static() or + * g_type_register_dynamic() instead + */ +struct _GtkTypeInfo +{ + gchar *type_name; + guint object_size; + guint class_size; + GtkClassInitFunc class_init_func; + GtkObjectInitFunc object_init_func; + gpointer reserved_1; + gpointer reserved_2; + GtkClassInitFunc base_class_init_func; +}; + +#endif /* GTK_DISABLE_DEPRECATED */ + +gpointer gtk_type_class (GtkType type); + +#ifndef GTK_DISABLE_DEPRECATED + +GtkType gtk_type_unique (GtkType parent_type, + const GtkTypeInfo *gtkinfo); +gpointer gtk_type_new (GtkType type); + +/* --- compatibility defines --- */ +#define gtk_type_name(type) g_type_name (type) +#define gtk_type_from_name(name) g_type_from_name (name) +#define gtk_type_parent(type) g_type_parent (type) +#define gtk_type_is_a(type, is_a_type) g_type_is_a ((type), (is_a_type)) + +/* enum/flags compatibility functions, we strongly + * recommend to use the glib enum/flags classes directly + */ +typedef GEnumValue GtkEnumValue; +typedef GFlagsValue GtkFlagValue; +GtkEnumValue* gtk_type_enum_get_values (GtkType enum_type); +GtkFlagValue* gtk_type_flags_get_values (GtkType flags_type); +GtkEnumValue* gtk_type_enum_find_value (GtkType enum_type, + const gchar *value_name); +GtkFlagValue* gtk_type_flags_find_value (GtkType flags_type, + const gchar *value_name); + +#endif /* GTK_DISABLE_DEPRECATED */ + +#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION) +/* deprecated, use g_type_init() instead */ +void gtk_type_init (GTypeDebugFlags debug_flags); +#endif /* !GTK_DISABLE_DEPRECATED || GTK_COMPILATION */ + +G_END_DECLS + +#endif /* __GTK_TYPE_UTILS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkuimanager.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkuimanager.h new file mode 100644 index 00000000..7e1e6ead --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkuimanager.h @@ -0,0 +1,150 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with the Gnome Library; see the file COPYING.LIB. If not, + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Author: James Henstridge <james@daa.com.au> + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ +#ifndef __GTK_UI_MANAGER_H__ +#define __GTK_UI_MANAGER_H__ + + +#include <glib.h> +#include <glib-object.h> +#include <gtk/gtkaccelgroup.h> +#include <gtk/gtkwidget.h> +#include <gtk/gtkaction.h> +#include <gtk/gtkactiongroup.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_UI_MANAGER (gtk_ui_manager_get_type ()) +#define GTK_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_UI_MANAGER, GtkUIManager)) +#define GTK_UI_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_UI_MANAGER, GtkUIManagerClass)) +#define GTK_IS_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_UI_MANAGER)) +#define GTK_IS_UI_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_UI_MANAGER)) +#define GTK_UI_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_UI_MANAGER, GtkUIManagerClass)) + +typedef struct _GtkUIManager GtkUIManager; +typedef struct _GtkUIManagerClass GtkUIManagerClass; +typedef struct _GtkUIManagerPrivate GtkUIManagerPrivate; + + +struct _GtkUIManager { + GObject parent; + + /*< private >*/ + + GtkUIManagerPrivate *private_data; +}; + +struct _GtkUIManagerClass { + GObjectClass parent_class; + + /* Signals */ + void (* add_widget) (GtkUIManager *merge, + GtkWidget *widget); + void (* actions_changed) (GtkUIManager *merge); + void (* connect_proxy) (GtkUIManager *merge, + GtkAction *action, + GtkWidget *proxy); + void (* disconnect_proxy) (GtkUIManager *merge, + GtkAction *action, + GtkWidget *proxy); + void (* pre_activate) (GtkUIManager *merge, + GtkAction *action); + void (* post_activate) (GtkUIManager *merge, + GtkAction *action); + + /* Virtual functions */ + GtkWidget * (* get_widget) (GtkUIManager *manager, + const gchar *path); + GtkAction * (* get_action) (GtkUIManager *manager, + const gchar *path); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); +}; + +typedef enum { + GTK_UI_MANAGER_AUTO = 0, + GTK_UI_MANAGER_MENUBAR = 1 << 0, + GTK_UI_MANAGER_MENU = 1 << 1, + GTK_UI_MANAGER_TOOLBAR = 1 << 2, + GTK_UI_MANAGER_PLACEHOLDER = 1 << 3, + GTK_UI_MANAGER_POPUP = 1 << 4, + GTK_UI_MANAGER_MENUITEM = 1 << 5, + GTK_UI_MANAGER_TOOLITEM = 1 << 6, + GTK_UI_MANAGER_SEPARATOR = 1 << 7, + GTK_UI_MANAGER_ACCELERATOR = 1 << 8 +} GtkUIManagerItemType; + +#ifdef G_OS_WIN32 +/* Reserve old name for DLL ABI backward compatibility */ +#define gtk_ui_manager_add_ui_from_file gtk_ui_manager_add_ui_from_file_utf8 +#endif + +GType gtk_ui_manager_get_type (void) G_GNUC_CONST; +GtkUIManager *gtk_ui_manager_new (void); +void gtk_ui_manager_set_add_tearoffs (GtkUIManager *self, + gboolean add_tearoffs); +gboolean gtk_ui_manager_get_add_tearoffs (GtkUIManager *self); +void gtk_ui_manager_insert_action_group (GtkUIManager *self, + GtkActionGroup *action_group, + gint pos); +void gtk_ui_manager_remove_action_group (GtkUIManager *self, + GtkActionGroup *action_group); +GList *gtk_ui_manager_get_action_groups (GtkUIManager *self); +GtkAccelGroup *gtk_ui_manager_get_accel_group (GtkUIManager *self); +GtkWidget *gtk_ui_manager_get_widget (GtkUIManager *self, + const gchar *path); +GSList *gtk_ui_manager_get_toplevels (GtkUIManager *self, + GtkUIManagerItemType types); +GtkAction *gtk_ui_manager_get_action (GtkUIManager *self, + const gchar *path); +guint gtk_ui_manager_add_ui_from_string (GtkUIManager *self, + const gchar *buffer, + gssize length, + GError **error); +guint gtk_ui_manager_add_ui_from_file (GtkUIManager *self, + const gchar *filename, + GError **error); +void gtk_ui_manager_add_ui (GtkUIManager *self, + guint merge_id, + const gchar *path, + const gchar *name, + const gchar *action, + GtkUIManagerItemType type, + gboolean top); +void gtk_ui_manager_remove_ui (GtkUIManager *self, + guint merge_id); +gchar *gtk_ui_manager_get_ui (GtkUIManager *self); +void gtk_ui_manager_ensure_update (GtkUIManager *self); +guint gtk_ui_manager_new_merge_id (GtkUIManager *self); + +G_END_DECLS + +#endif /* __GTK_UI_MANAGER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvbbox.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvbbox.h new file mode 100644 index 00000000..8c21273c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvbbox.h @@ -0,0 +1,76 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_VBBOX_H__ +#define __GTK_VBBOX_H__ + + +#include <gtk/gtkbbox.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_VBUTTON_BOX (gtk_vbutton_box_get_type ()) +#define GTK_VBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VBUTTON_BOX, GtkVButtonBox)) +#define GTK_VBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBUTTON_BOX, GtkVButtonBoxClass)) +#define GTK_IS_VBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VBUTTON_BOX)) +#define GTK_IS_VBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VBUTTON_BOX)) +#define GTK_VBUTTON_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VBUTTON_BOX, GtkVButtonBoxClass)) + + +typedef struct _GtkVButtonBox GtkVButtonBox; +typedef struct _GtkVButtonBoxClass GtkVButtonBoxClass; + +struct _GtkVButtonBox +{ + GtkButtonBox button_box; +}; + +struct _GtkVButtonBoxClass +{ + GtkButtonBoxClass parent_class; +}; + + +GType gtk_vbutton_box_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_vbutton_box_new (void); + +/* buttons can be added by gtk_container_add() */ + +#ifndef GTK_DISABLE_DEPRECATED +gint gtk_vbutton_box_get_spacing_default (void); +void gtk_vbutton_box_set_spacing_default (gint spacing); + +GtkButtonBoxStyle gtk_vbutton_box_get_layout_default (void); +void gtk_vbutton_box_set_layout_default (GtkButtonBoxStyle layout); +#endif + + +G_END_DECLS + + +#endif /* __GTK_VBBOX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvbox.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvbox.h new file mode 100644 index 00000000..3cdb2ad1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvbox.h @@ -0,0 +1,68 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_VBOX_H__ +#define __GTK_VBOX_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkbox.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_VBOX (gtk_vbox_get_type ()) +#define GTK_VBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VBOX, GtkVBox)) +#define GTK_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBOX, GtkVBoxClass)) +#define GTK_IS_VBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VBOX)) +#define GTK_IS_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VBOX)) +#define GTK_VBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VBOX, GtkVBoxClass)) + + +typedef struct _GtkVBox GtkVBox; +typedef struct _GtkVBoxClass GtkVBoxClass; + +struct _GtkVBox +{ + GtkBox box; +}; + +struct _GtkVBoxClass +{ + GtkBoxClass parent_class; +}; + + +GType gtk_vbox_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_vbox_new (gboolean homogeneous, + gint spacing); + + +G_END_DECLS + + +#endif /* __GTK_VBOX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkversion.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkversion.h new file mode 100644 index 00000000..191bbe7a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkversion.h @@ -0,0 +1,49 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_VERSION_H__ +#define __GTK_VERSION_H__ + +/* compile time version + */ +#define GTK_MAJOR_VERSION (2) +#define GTK_MINOR_VERSION (12) +#define GTK_MICRO_VERSION (12) +#define GTK_BINARY_AGE (1212) +#define GTK_INTERFACE_AGE (12) + +/* check whether a Gtk+ version equal to or greater than + * major.minor.micro is present. + */ +#define GTK_CHECK_VERSION(major,minor,micro) \ + (GTK_MAJOR_VERSION > (major) || \ + (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION > (minor)) || \ + (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION == (minor) && \ + GTK_MICRO_VERSION >= (micro))) + + +#endif /* __GTK_VERSION_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkviewport.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkviewport.h new file mode 100644 index 00000000..8b64f174 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkviewport.h @@ -0,0 +1,88 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_VIEWPORT_H__ +#define __GTK_VIEWPORT_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkadjustment.h> +#include <gtk/gtkbin.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_VIEWPORT (gtk_viewport_get_type ()) +#define GTK_VIEWPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VIEWPORT, GtkViewport)) +#define GTK_VIEWPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VIEWPORT, GtkViewportClass)) +#define GTK_IS_VIEWPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VIEWPORT)) +#define GTK_IS_VIEWPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VIEWPORT)) +#define GTK_VIEWPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VIEWPORT, GtkViewportClass)) + + +typedef struct _GtkViewport GtkViewport; +typedef struct _GtkViewportClass GtkViewportClass; + +struct _GtkViewport +{ + GtkBin bin; + + GtkShadowType shadow_type; + GdkWindow *view_window; + GdkWindow *bin_window; + GtkAdjustment *hadjustment; + GtkAdjustment *vadjustment; +}; + +struct _GtkViewportClass +{ + GtkBinClass parent_class; + + void (*set_scroll_adjustments) (GtkViewport *viewport, + GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); +}; + + +GType gtk_viewport_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_viewport_new (GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); +GtkAdjustment* gtk_viewport_get_hadjustment (GtkViewport *viewport); +GtkAdjustment* gtk_viewport_get_vadjustment (GtkViewport *viewport); +void gtk_viewport_set_hadjustment (GtkViewport *viewport, + GtkAdjustment *adjustment); +void gtk_viewport_set_vadjustment (GtkViewport *viewport, + GtkAdjustment *adjustment); +void gtk_viewport_set_shadow_type (GtkViewport *viewport, + GtkShadowType type); +GtkShadowType gtk_viewport_get_shadow_type (GtkViewport *viewport); + + +G_END_DECLS + + +#endif /* __GTK_VIEWPORT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvolumebutton.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvolumebutton.h new file mode 100644 index 00000000..069c1228 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvolumebutton.h @@ -0,0 +1,64 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2007 Red Hat, Inc. + * + * Authors: + * - Bastien Nocera <bnocera@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 2007. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_VOLUME_BUTTON_H__ +#define __GTK_VOLUME_BUTTON_H__ + +#include <gtk/gtkscalebutton.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_VOLUME_BUTTON (gtk_volume_button_get_type ()) +#define GTK_VOLUME_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VOLUME_BUTTON, GtkVolumeButton)) +#define GTK_VOLUME_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VOLUME_BUTTON, GtkVolumeeButtonClass)) +#define GTK_IS_VOLUME_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VOLUME_BUTTON)) +#define GTK_IS_VOLUME_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VOLUME_BUTTON)) +#define GTK_VOLUME_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VOLUME_BUTTON, GtkVolumeButtonClass)) + +typedef struct _GtkVolumeButton GtkVolumeButton; +typedef struct _GtkVolumeButtonClass GtkVolumeButtonClass; + +struct _GtkVolumeButtonClass +{ + GtkScaleButtonClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_volume_button_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_volume_button_new (void); + +G_END_DECLS + +#endif /* __GTK_VOLUME_BUTTON_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvpaned.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvpaned.h new file mode 100644 index 00000000..10bb9a0c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvpaned.h @@ -0,0 +1,64 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_VPANED_H__ +#define __GTK_VPANED_H__ + +#include <gtk/gtkpaned.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_VPANED (gtk_vpaned_get_type ()) +#define GTK_VPANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VPANED, GtkVPaned)) +#define GTK_VPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VPANED, GtkVPanedClass)) +#define GTK_IS_VPANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VPANED)) +#define GTK_IS_VPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VPANED)) +#define GTK_VPANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VPANED, GtkVPanedClass)) + + +typedef struct _GtkVPaned GtkVPaned; +typedef struct _GtkVPanedClass GtkVPanedClass; + +struct _GtkVPaned +{ + GtkPaned paned; +}; + +struct _GtkVPanedClass +{ + GtkPanedClass parent_class; +}; + +GType gtk_vpaned_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_vpaned_new (void); + + +G_END_DECLS + + +#endif /* __GTK_VPANED_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvruler.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvruler.h new file mode 100644 index 00000000..2b27e52f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvruler.h @@ -0,0 +1,78 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +/* + * NOTE this widget is considered too specialized/little-used for + * GTK+, and will in the future be moved to some other package. If + * your application needs this widget, feel free to use it, as the + * widget does work and is useful in some applications; it's just not + * of general interest. However, we are not accepting new features for + * the widget, and it will eventually move out of the GTK+ + * distribution. + */ + +#ifndef __GTK_VRULER_H__ +#define __GTK_VRULER_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkruler.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_VRULER (gtk_vruler_get_type ()) +#define GTK_VRULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VRULER, GtkVRuler)) +#define GTK_VRULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VRULER, GtkVRulerClass)) +#define GTK_IS_VRULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VRULER)) +#define GTK_IS_VRULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VRULER)) +#define GTK_VRULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VRULER, GtkVRulerClass)) + + +typedef struct _GtkVRuler GtkVRuler; +typedef struct _GtkVRulerClass GtkVRulerClass; + +struct _GtkVRuler +{ + GtkRuler ruler; +}; + +struct _GtkVRulerClass +{ + GtkRulerClass parent_class; +}; + + +GType gtk_vruler_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_vruler_new (void); + + +G_END_DECLS + + +#endif /* __GTK_VRULER_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvscale.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvscale.h new file mode 100644 index 00000000..8661b751 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvscale.h @@ -0,0 +1,70 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_VSCALE_H__ +#define __GTK_VSCALE_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkscale.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_VSCALE (gtk_vscale_get_type ()) +#define GTK_VSCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VSCALE, GtkVScale)) +#define GTK_VSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSCALE, GtkVScaleClass)) +#define GTK_IS_VSCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VSCALE)) +#define GTK_IS_VSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSCALE)) +#define GTK_VSCALE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VSCALE, GtkVScaleClass)) + + +typedef struct _GtkVScale GtkVScale; +typedef struct _GtkVScaleClass GtkVScaleClass; + +struct _GtkVScale +{ + GtkScale scale; +}; + +struct _GtkVScaleClass +{ + GtkScaleClass parent_class; +}; + + +GType gtk_vscale_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_vscale_new (GtkAdjustment *adjustment); +GtkWidget* gtk_vscale_new_with_range (gdouble min, + gdouble max, + gdouble step); + + +G_END_DECLS + + +#endif /* __GTK_VSCALE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvscrollbar.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvscrollbar.h new file mode 100644 index 00000000..bdd6c3d0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvscrollbar.h @@ -0,0 +1,67 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_VSCROLLBAR_H__ +#define __GTK_VSCROLLBAR_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkscrollbar.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_VSCROLLBAR (gtk_vscrollbar_get_type ()) +#define GTK_VSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VSCROLLBAR, GtkVScrollbar)) +#define GTK_VSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSCROLLBAR, GtkVScrollbarClass)) +#define GTK_IS_VSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VSCROLLBAR)) +#define GTK_IS_VSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSCROLLBAR)) +#define GTK_VSCROLLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VSCROLLBAR, GtkVScrollbarClass)) + + +typedef struct _GtkVScrollbar GtkVScrollbar; +typedef struct _GtkVScrollbarClass GtkVScrollbarClass; + +struct _GtkVScrollbar +{ + GtkScrollbar scrollbar; +}; + +struct _GtkVScrollbarClass +{ + GtkScrollbarClass parent_class; +}; + + +GType gtk_vscrollbar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_vscrollbar_new (GtkAdjustment *adjustment); + + +G_END_DECLS + + +#endif /* __GTK_VSCROLLBAR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvseparator.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvseparator.h new file mode 100644 index 00000000..e7fd88b0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkvseparator.h @@ -0,0 +1,67 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_VSEPARATOR_H__ +#define __GTK_VSEPARATOR_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkseparator.h> + + +G_BEGIN_DECLS + + +#define GTK_TYPE_VSEPARATOR (gtk_vseparator_get_type ()) +#define GTK_VSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VSEPARATOR, GtkVSeparator)) +#define GTK_VSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSEPARATOR, GtkVSeparatorClass)) +#define GTK_IS_VSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VSEPARATOR)) +#define GTK_IS_VSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSEPARATOR)) +#define GTK_VSEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VSEPARATOR, GtkVSeparatorClass)) + + +typedef struct _GtkVSeparator GtkVSeparator; +typedef struct _GtkVSeparatorClass GtkVSeparatorClass; + +struct _GtkVSeparator +{ + GtkSeparator separator; +}; + +struct _GtkVSeparatorClass +{ + GtkSeparatorClass parent_class; +}; + + +GType gtk_vseparator_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_vseparator_new (void); + + +G_END_DECLS + + +#endif /* __GTK_SEPARATOR_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkwidget.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkwidget.h new file mode 100644 index 00000000..b7f889ab --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkwidget.h @@ -0,0 +1,828 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_WIDGET_H__ +#define __GTK_WIDGET_H__ + +#include <gdk/gdk.h> +#include <gtk/gtkaccelgroup.h> +#include <gtk/gtkobject.h> +#include <gtk/gtkadjustment.h> +#include <gtk/gtkstyle.h> +#include <gtk/gtksettings.h> +#include <atk/atkobject.h> + +G_BEGIN_DECLS + +/* The flags that are used by GtkWidget on top of the + * flags field of GtkObject. + */ +typedef enum +{ + GTK_TOPLEVEL = 1 << 4, + GTK_NO_WINDOW = 1 << 5, + GTK_REALIZED = 1 << 6, + GTK_MAPPED = 1 << 7, + GTK_VISIBLE = 1 << 8, + GTK_SENSITIVE = 1 << 9, + GTK_PARENT_SENSITIVE = 1 << 10, + GTK_CAN_FOCUS = 1 << 11, + GTK_HAS_FOCUS = 1 << 12, + + /* widget is allowed to receive the default via gtk_widget_grab_default + * and will reserve space to draw the default if possible + */ + GTK_CAN_DEFAULT = 1 << 13, + + /* the widget currently is receiving the default action and should be drawn + * appropriately if possible + */ + GTK_HAS_DEFAULT = 1 << 14, + + GTK_HAS_GRAB = 1 << 15, + GTK_RC_STYLE = 1 << 16, + GTK_COMPOSITE_CHILD = 1 << 17, + GTK_NO_REPARENT = 1 << 18, + GTK_APP_PAINTABLE = 1 << 19, + + /* the widget when focused will receive the default action and have + * HAS_DEFAULT set even if there is a different widget set as default + */ + GTK_RECEIVES_DEFAULT = 1 << 20, + + GTK_DOUBLE_BUFFERED = 1 << 21, + GTK_NO_SHOW_ALL = 1 << 22 +} GtkWidgetFlags; + +/* Kinds of widget-specific help */ +typedef enum +{ + GTK_WIDGET_HELP_TOOLTIP, + GTK_WIDGET_HELP_WHATS_THIS +} GtkWidgetHelpType; + +/* Macro for casting a pointer to a GtkWidget or GtkWidgetClass pointer. + * Macros for testing whether `widget' or `klass' are of type GTK_TYPE_WIDGET. + */ +#define GTK_TYPE_WIDGET (gtk_widget_get_type ()) +#define GTK_WIDGET(widget) (G_TYPE_CHECK_INSTANCE_CAST ((widget), GTK_TYPE_WIDGET, GtkWidget)) +#define GTK_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WIDGET, GtkWidgetClass)) +#define GTK_IS_WIDGET(widget) (G_TYPE_CHECK_INSTANCE_TYPE ((widget), GTK_TYPE_WIDGET)) +#define GTK_IS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WIDGET)) +#define GTK_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WIDGET, GtkWidgetClass)) + +/* Macros for extracting various fields from GtkWidget and GtkWidgetClass. + */ +#define GTK_WIDGET_TYPE(wid) (GTK_OBJECT_TYPE (wid)) +#define GTK_WIDGET_STATE(wid) (GTK_WIDGET (wid)->state) +#define GTK_WIDGET_SAVED_STATE(wid) (GTK_WIDGET (wid)->saved_state) + +/* Macros for extracting the widget flags from GtkWidget. + */ +#define GTK_WIDGET_FLAGS(wid) (GTK_OBJECT_FLAGS (wid)) +#define GTK_WIDGET_TOPLEVEL(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_TOPLEVEL) != 0) +#define GTK_WIDGET_NO_WINDOW(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_NO_WINDOW) != 0) +#define GTK_WIDGET_REALIZED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_REALIZED) != 0) +#define GTK_WIDGET_MAPPED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_MAPPED) != 0) +#define GTK_WIDGET_VISIBLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_VISIBLE) != 0) +#define GTK_WIDGET_DRAWABLE(wid) (GTK_WIDGET_VISIBLE (wid) && GTK_WIDGET_MAPPED (wid)) +#define GTK_WIDGET_SENSITIVE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_SENSITIVE) != 0) +#define GTK_WIDGET_PARENT_SENSITIVE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_PARENT_SENSITIVE) != 0) +#define GTK_WIDGET_IS_SENSITIVE(wid) (GTK_WIDGET_SENSITIVE (wid) && \ + GTK_WIDGET_PARENT_SENSITIVE (wid)) +#define GTK_WIDGET_CAN_FOCUS(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_CAN_FOCUS) != 0) +#define GTK_WIDGET_HAS_FOCUS(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_FOCUS) != 0) +#define GTK_WIDGET_CAN_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_CAN_DEFAULT) != 0) +#define GTK_WIDGET_HAS_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_DEFAULT) != 0) +#define GTK_WIDGET_HAS_GRAB(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_GRAB) != 0) +#define GTK_WIDGET_RC_STYLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_RC_STYLE) != 0) +#define GTK_WIDGET_COMPOSITE_CHILD(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_COMPOSITE_CHILD) != 0) +#define GTK_WIDGET_APP_PAINTABLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_APP_PAINTABLE) != 0) +#define GTK_WIDGET_RECEIVES_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_RECEIVES_DEFAULT) != 0) +#define GTK_WIDGET_DOUBLE_BUFFERED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_DOUBLE_BUFFERED) != 0) + +/* Macros for setting and clearing widget flags. + */ +#define GTK_WIDGET_SET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) |= (flag)); }G_STMT_END +#define GTK_WIDGET_UNSET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) &= ~(flag)); }G_STMT_END + +#define GTK_TYPE_REQUISITION (gtk_requisition_get_type ()) + +/* forward declaration to avoid excessive includes (and concurrent includes) + */ +typedef struct _GtkRequisition GtkRequisition; +typedef GdkRectangle GtkAllocation; +typedef struct _GtkSelectionData GtkSelectionData; +typedef struct _GtkWidgetClass GtkWidgetClass; +typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo; +typedef struct _GtkWidgetShapeInfo GtkWidgetShapeInfo; +typedef struct _GtkClipboard GtkClipboard; +typedef struct _GtkTooltip GtkTooltip; +typedef struct _GtkWindow GtkWindow; +typedef void (*GtkCallback) (GtkWidget *widget, + gpointer data); + +/* A requisition is a desired amount of space which a + * widget may request. + */ +struct _GtkRequisition +{ + gint width; + gint height; +}; + +/* The widget is the base of the tree for displayable objects. + * (A displayable object is one which takes up some amount + * of screen real estate). It provides a common base and interface + * which actual widgets must adhere to. + */ +struct _GtkWidget +{ + /* The object structure needs to be the first + * element in the widget structure in order for + * the object mechanism to work correctly. This + * allows a GtkWidget pointer to be cast to a + * GtkObject pointer. + */ + GtkObject object; + + /* 16 bits of internally used private flags. + * this will be packed into the same 4 byte alignment frame that + * state and saved_state go. we therefore don't waste any new + * space on this. + */ + guint16 private_flags; + + /* The state of the widget. There are actually only + * 5 widget states (defined in "gtkenums.h"). + */ + guint8 state; + + /* The saved state of the widget. When a widget's state + * is changed to GTK_STATE_INSENSITIVE via + * "gtk_widget_set_state" or "gtk_widget_set_sensitive" + * the old state is kept around in this field. The state + * will be restored once the widget gets sensitive again. + */ + guint8 saved_state; + + /* The widget's name. If the widget does not have a name + * (the name is NULL), then its name (as returned by + * "gtk_widget_get_name") is its class's name. + * Among other things, the widget name is used to determine + * the style to use for a widget. + */ + gchar *name; + + /*< public >*/ + + /* The style for the widget. The style contains the + * colors the widget should be drawn in for each state + * along with graphics contexts used to draw with and + * the font to use for text. + */ + GtkStyle *style; + + /* The widget's desired size. + */ + GtkRequisition requisition; + + /* The widget's allocated size. + */ + GtkAllocation allocation; + + /* The widget's window or its parent window if it does + * not have a window. (Which will be indicated by the + * GTK_NO_WINDOW flag being set). + */ + GdkWindow *window; + + /* The widget's parent. + */ + GtkWidget *parent; +}; + +struct _GtkWidgetClass +{ + /* The object class structure needs to be the first + * element in the widget class structure in order for + * the class mechanism to work correctly. This allows a + * GtkWidgetClass pointer to be cast to a GtkObjectClass + * pointer. + */ + GtkObjectClass parent_class; + + /*< public >*/ + + guint activate_signal; + + guint set_scroll_adjustments_signal; + + /*< private >*/ + + /* seldomly overidden */ + void (*dispatch_child_properties_changed) (GtkWidget *widget, + guint n_pspecs, + GParamSpec **pspecs); + + /* basics */ + void (* show) (GtkWidget *widget); + void (* show_all) (GtkWidget *widget); + void (* hide) (GtkWidget *widget); + void (* hide_all) (GtkWidget *widget); + void (* map) (GtkWidget *widget); + void (* unmap) (GtkWidget *widget); + void (* realize) (GtkWidget *widget); + void (* unrealize) (GtkWidget *widget); + void (* size_request) (GtkWidget *widget, + GtkRequisition *requisition); + void (* size_allocate) (GtkWidget *widget, + GtkAllocation *allocation); + void (* state_changed) (GtkWidget *widget, + GtkStateType previous_state); + void (* parent_set) (GtkWidget *widget, + GtkWidget *previous_parent); + void (* hierarchy_changed) (GtkWidget *widget, + GtkWidget *previous_toplevel); + void (* style_set) (GtkWidget *widget, + GtkStyle *previous_style); + void (* direction_changed) (GtkWidget *widget, + GtkTextDirection previous_direction); + void (* grab_notify) (GtkWidget *widget, + gboolean was_grabbed); + void (* child_notify) (GtkWidget *widget, + GParamSpec *pspec); + + /* Mnemonics */ + gboolean (* mnemonic_activate) (GtkWidget *widget, + gboolean group_cycling); + + /* explicit focus */ + void (* grab_focus) (GtkWidget *widget); + gboolean (* focus) (GtkWidget *widget, + GtkDirectionType direction); + + /* events */ + gboolean (* event) (GtkWidget *widget, + GdkEvent *event); + gboolean (* button_press_event) (GtkWidget *widget, + GdkEventButton *event); + gboolean (* button_release_event) (GtkWidget *widget, + GdkEventButton *event); + gboolean (* scroll_event) (GtkWidget *widget, + GdkEventScroll *event); + gboolean (* motion_notify_event) (GtkWidget *widget, + GdkEventMotion *event); + gboolean (* delete_event) (GtkWidget *widget, + GdkEventAny *event); + gboolean (* destroy_event) (GtkWidget *widget, + GdkEventAny *event); + gboolean (* expose_event) (GtkWidget *widget, + GdkEventExpose *event); + gboolean (* key_press_event) (GtkWidget *widget, + GdkEventKey *event); + gboolean (* key_release_event) (GtkWidget *widget, + GdkEventKey *event); + gboolean (* enter_notify_event) (GtkWidget *widget, + GdkEventCrossing *event); + gboolean (* leave_notify_event) (GtkWidget *widget, + GdkEventCrossing *event); + gboolean (* configure_event) (GtkWidget *widget, + GdkEventConfigure *event); + gboolean (* focus_in_event) (GtkWidget *widget, + GdkEventFocus *event); + gboolean (* focus_out_event) (GtkWidget *widget, + GdkEventFocus *event); + gboolean (* map_event) (GtkWidget *widget, + GdkEventAny *event); + gboolean (* unmap_event) (GtkWidget *widget, + GdkEventAny *event); + gboolean (* property_notify_event) (GtkWidget *widget, + GdkEventProperty *event); + gboolean (* selection_clear_event) (GtkWidget *widget, + GdkEventSelection *event); + gboolean (* selection_request_event) (GtkWidget *widget, + GdkEventSelection *event); + gboolean (* selection_notify_event) (GtkWidget *widget, + GdkEventSelection *event); + gboolean (* proximity_in_event) (GtkWidget *widget, + GdkEventProximity *event); + gboolean (* proximity_out_event) (GtkWidget *widget, + GdkEventProximity *event); + gboolean (* visibility_notify_event) (GtkWidget *widget, + GdkEventVisibility *event); + gboolean (* client_event) (GtkWidget *widget, + GdkEventClient *event); + gboolean (* no_expose_event) (GtkWidget *widget, + GdkEventAny *event); + gboolean (* window_state_event) (GtkWidget *widget, + GdkEventWindowState *event); + + /* selection */ + void (* selection_get) (GtkWidget *widget, + GtkSelectionData *selection_data, + guint info, + guint time_); + void (* selection_received) (GtkWidget *widget, + GtkSelectionData *selection_data, + guint time_); + + /* Source side drag signals */ + void (* drag_begin) (GtkWidget *widget, + GdkDragContext *context); + void (* drag_end) (GtkWidget *widget, + GdkDragContext *context); + void (* drag_data_get) (GtkWidget *widget, + GdkDragContext *context, + GtkSelectionData *selection_data, + guint info, + guint time_); + void (* drag_data_delete) (GtkWidget *widget, + GdkDragContext *context); + + /* Target side drag signals */ + void (* drag_leave) (GtkWidget *widget, + GdkDragContext *context, + guint time_); + gboolean (* drag_motion) (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint time_); + gboolean (* drag_drop) (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint time_); + void (* drag_data_received) (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + GtkSelectionData *selection_data, + guint info, + guint time_); + + /* Signals used only for keybindings */ + gboolean (* popup_menu) (GtkWidget *widget); + + /* If a widget has multiple tooltips/whatsthis, it should show the + * one for the current focus location, or if that doesn't make + * sense, should cycle through them showing each tip alongside + * whatever piece of the widget it applies to. + */ + gboolean (* show_help) (GtkWidget *widget, + GtkWidgetHelpType help_type); + + /* accessibility support + */ + AtkObject* (*get_accessible) (GtkWidget *widget); + + void (*screen_changed) (GtkWidget *widget, + GdkScreen *previous_screen); + gboolean (*can_activate_accel) (GtkWidget *widget, + guint signal_id); + + /* Sent when a grab is broken. */ + gboolean (*grab_broken_event) (GtkWidget *widget, + GdkEventGrabBroken *event); + + void (* composited_changed) (GtkWidget *widget); + + gboolean (* query_tooltip) (GtkWidget *widget, + gint x, + gint y, + gboolean keyboard_tooltip, + GtkTooltip *tooltip); + + /* Padding for future expansion */ + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); +}; + +struct _GtkWidgetAuxInfo +{ + gint x; + gint y; + gint width; + gint height; + guint x_set : 1; + guint y_set : 1; +}; + +struct _GtkWidgetShapeInfo +{ + gint16 offset_x; + gint16 offset_y; + GdkBitmap *shape_mask; +}; + +GType gtk_widget_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_widget_new (GType type, + const gchar *first_property_name, + ...); +void gtk_widget_destroy (GtkWidget *widget); +void gtk_widget_destroyed (GtkWidget *widget, + GtkWidget **widget_pointer); +#ifndef GTK_DISABLE_DEPRECATED +GtkWidget* gtk_widget_ref (GtkWidget *widget); +void gtk_widget_unref (GtkWidget *widget); +void gtk_widget_set (GtkWidget *widget, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; +#endif /* GTK_DISABLE_DEPRECATED */ +void gtk_widget_unparent (GtkWidget *widget); +void gtk_widget_show (GtkWidget *widget); +void gtk_widget_show_now (GtkWidget *widget); +void gtk_widget_hide (GtkWidget *widget); +void gtk_widget_show_all (GtkWidget *widget); +void gtk_widget_hide_all (GtkWidget *widget); +void gtk_widget_set_no_show_all (GtkWidget *widget, + gboolean no_show_all); +gboolean gtk_widget_get_no_show_all (GtkWidget *widget); +void gtk_widget_map (GtkWidget *widget); +void gtk_widget_unmap (GtkWidget *widget); +void gtk_widget_realize (GtkWidget *widget); +void gtk_widget_unrealize (GtkWidget *widget); + +/* Queuing draws */ +void gtk_widget_queue_draw (GtkWidget *widget); +void gtk_widget_queue_draw_area (GtkWidget *widget, + gint x, + gint y, + gint width, + gint height); +#ifndef GTK_DISABLE_DEPRECATED +void gtk_widget_queue_clear (GtkWidget *widget); +void gtk_widget_queue_clear_area (GtkWidget *widget, + gint x, + gint y, + gint width, + gint height); +#endif /* GTK_DISABLE_DEPRECATED */ + + +void gtk_widget_queue_resize (GtkWidget *widget); +void gtk_widget_queue_resize_no_redraw (GtkWidget *widget); +#ifndef GTK_DISABLE_DEPRECATED +void gtk_widget_draw (GtkWidget *widget, + GdkRectangle *area); +#endif /* GTK_DISABLE_DEPRECATED */ +void gtk_widget_size_request (GtkWidget *widget, + GtkRequisition *requisition); +void gtk_widget_size_allocate (GtkWidget *widget, + GtkAllocation *allocation); +void gtk_widget_get_child_requisition (GtkWidget *widget, + GtkRequisition *requisition); +void gtk_widget_add_accelerator (GtkWidget *widget, + const gchar *accel_signal, + GtkAccelGroup *accel_group, + guint accel_key, + GdkModifierType accel_mods, + GtkAccelFlags accel_flags); +gboolean gtk_widget_remove_accelerator (GtkWidget *widget, + GtkAccelGroup *accel_group, + guint accel_key, + GdkModifierType accel_mods); +void gtk_widget_set_accel_path (GtkWidget *widget, + const gchar *accel_path, + GtkAccelGroup *accel_group); +const gchar* _gtk_widget_get_accel_path (GtkWidget *widget, + gboolean *locked); +GList* gtk_widget_list_accel_closures (GtkWidget *widget); +gboolean gtk_widget_can_activate_accel (GtkWidget *widget, + guint signal_id); +gboolean gtk_widget_mnemonic_activate (GtkWidget *widget, + gboolean group_cycling); +gboolean gtk_widget_event (GtkWidget *widget, + GdkEvent *event); +gint gtk_widget_send_expose (GtkWidget *widget, + GdkEvent *event); + +gboolean gtk_widget_activate (GtkWidget *widget); +gboolean gtk_widget_set_scroll_adjustments (GtkWidget *widget, + GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); + +void gtk_widget_reparent (GtkWidget *widget, + GtkWidget *new_parent); +gboolean gtk_widget_intersect (GtkWidget *widget, + GdkRectangle *area, + GdkRectangle *intersection); +GdkRegion *gtk_widget_region_intersect (GtkWidget *widget, + GdkRegion *region); + +void gtk_widget_freeze_child_notify (GtkWidget *widget); +void gtk_widget_child_notify (GtkWidget *widget, + const gchar *child_property); +void gtk_widget_thaw_child_notify (GtkWidget *widget); + +gboolean gtk_widget_is_focus (GtkWidget *widget); +void gtk_widget_grab_focus (GtkWidget *widget); +void gtk_widget_grab_default (GtkWidget *widget); + +void gtk_widget_set_name (GtkWidget *widget, + const gchar *name); +G_CONST_RETURN gchar* gtk_widget_get_name (GtkWidget *widget); +void gtk_widget_set_state (GtkWidget *widget, + GtkStateType state); +void gtk_widget_set_sensitive (GtkWidget *widget, + gboolean sensitive); +void gtk_widget_set_app_paintable (GtkWidget *widget, + gboolean app_paintable); +void gtk_widget_set_double_buffered (GtkWidget *widget, + gboolean double_buffered); +void gtk_widget_set_redraw_on_allocate (GtkWidget *widget, + gboolean redraw_on_allocate); +void gtk_widget_set_parent (GtkWidget *widget, + GtkWidget *parent); +void gtk_widget_set_parent_window (GtkWidget *widget, + GdkWindow *parent_window); +void gtk_widget_set_child_visible (GtkWidget *widget, + gboolean is_visible); +gboolean gtk_widget_get_child_visible (GtkWidget *widget); + +GtkWidget *gtk_widget_get_parent (GtkWidget *widget); +GdkWindow *gtk_widget_get_parent_window (GtkWidget *widget); + +gboolean gtk_widget_child_focus (GtkWidget *widget, + GtkDirectionType direction); +gboolean gtk_widget_keynav_failed (GtkWidget *widget, + GtkDirectionType direction); +void gtk_widget_error_bell (GtkWidget *widget); + +void gtk_widget_set_size_request (GtkWidget *widget, + gint width, + gint height); +void gtk_widget_get_size_request (GtkWidget *widget, + gint *width, + gint *height); +#ifndef GTK_DISABLE_DEPRECATED +void gtk_widget_set_uposition (GtkWidget *widget, + gint x, + gint y); +void gtk_widget_set_usize (GtkWidget *widget, + gint width, + gint height); +#endif + +void gtk_widget_set_events (GtkWidget *widget, + gint events); +void gtk_widget_add_events (GtkWidget *widget, + gint events); +void gtk_widget_set_extension_events (GtkWidget *widget, + GdkExtensionMode mode); + +GdkExtensionMode gtk_widget_get_extension_events (GtkWidget *widget); +GtkWidget* gtk_widget_get_toplevel (GtkWidget *widget); +GtkWidget* gtk_widget_get_ancestor (GtkWidget *widget, + GType widget_type); +GdkColormap* gtk_widget_get_colormap (GtkWidget *widget); +GdkVisual* gtk_widget_get_visual (GtkWidget *widget); + +GdkScreen * gtk_widget_get_screen (GtkWidget *widget); +gboolean gtk_widget_has_screen (GtkWidget *widget); +GdkDisplay * gtk_widget_get_display (GtkWidget *widget); +GdkWindow * gtk_widget_get_root_window (GtkWidget *widget); +GtkSettings* gtk_widget_get_settings (GtkWidget *widget); +GtkClipboard *gtk_widget_get_clipboard (GtkWidget *widget, + GdkAtom selection); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_widget_set_visual(widget,visual) ((void) 0) +#define gtk_widget_push_visual(visual) ((void) 0) +#define gtk_widget_pop_visual() ((void) 0) +#define gtk_widget_set_default_visual(visual) ((void) 0) +#endif /* GTK_DISABLE_DEPRECATED */ + +/* Accessibility support */ +AtkObject* gtk_widget_get_accessible (GtkWidget *widget); + +/* The following functions must not be called on an already + * realized widget. Because it is possible that somebody + * can call get_colormap() or get_visual() and save the + * result, these functions are probably only safe to + * call in a widget's init() function. + */ +void gtk_widget_set_colormap (GtkWidget *widget, + GdkColormap *colormap); + +gint gtk_widget_get_events (GtkWidget *widget); +void gtk_widget_get_pointer (GtkWidget *widget, + gint *x, + gint *y); + +gboolean gtk_widget_is_ancestor (GtkWidget *widget, + GtkWidget *ancestor); + +gboolean gtk_widget_translate_coordinates (GtkWidget *src_widget, + GtkWidget *dest_widget, + gint src_x, + gint src_y, + gint *dest_x, + gint *dest_y); + +/* Hide widget and return TRUE. + */ +gboolean gtk_widget_hide_on_delete (GtkWidget *widget); + +/* Widget styles. + */ +void gtk_widget_set_style (GtkWidget *widget, + GtkStyle *style); +void gtk_widget_ensure_style (GtkWidget *widget); +GtkStyle* gtk_widget_get_style (GtkWidget *widget); + +void gtk_widget_modify_style (GtkWidget *widget, + GtkRcStyle *style); +GtkRcStyle *gtk_widget_get_modifier_style (GtkWidget *widget); +void gtk_widget_modify_fg (GtkWidget *widget, + GtkStateType state, + const GdkColor *color); +void gtk_widget_modify_bg (GtkWidget *widget, + GtkStateType state, + const GdkColor *color); +void gtk_widget_modify_text (GtkWidget *widget, + GtkStateType state, + const GdkColor *color); +void gtk_widget_modify_base (GtkWidget *widget, + GtkStateType state, + const GdkColor *color); +void gtk_widget_modify_cursor (GtkWidget *widget, + const GdkColor *primary, + const GdkColor *secondary); +void gtk_widget_modify_font (GtkWidget *widget, + PangoFontDescription *font_desc); + +#ifndef GTK_DISABLE_DEPRECATED +#define gtk_widget_set_rc_style(widget) (gtk_widget_set_style (widget, NULL)) +#define gtk_widget_restore_default_style(widget) (gtk_widget_set_style (widget, NULL)) +#endif + +PangoContext *gtk_widget_create_pango_context (GtkWidget *widget); +PangoContext *gtk_widget_get_pango_context (GtkWidget *widget); +PangoLayout *gtk_widget_create_pango_layout (GtkWidget *widget, + const gchar *text); + +GdkPixbuf *gtk_widget_render_icon (GtkWidget *widget, + const gchar *stock_id, + GtkIconSize size, + const gchar *detail); + +/* handle composite names for GTK_COMPOSITE_CHILD widgets, + * the returned name is newly allocated. + */ +void gtk_widget_set_composite_name (GtkWidget *widget, + const gchar *name); +gchar* gtk_widget_get_composite_name (GtkWidget *widget); + +/* Descend recursively and set rc-style on all widgets without user styles */ +void gtk_widget_reset_rc_styles (GtkWidget *widget); + +/* Push/pop pairs, to change default values upon a widget's creation. + * This will override the values that got set by the + * gtk_widget_set_default_* () functions. + */ +void gtk_widget_push_colormap (GdkColormap *cmap); +void gtk_widget_push_composite_child (void); +void gtk_widget_pop_composite_child (void); +void gtk_widget_pop_colormap (void); + +/* widget style properties + */ +void gtk_widget_class_install_style_property (GtkWidgetClass *klass, + GParamSpec *pspec); +void gtk_widget_class_install_style_property_parser (GtkWidgetClass *klass, + GParamSpec *pspec, + GtkRcPropertyParser parser); +GParamSpec* gtk_widget_class_find_style_property (GtkWidgetClass *klass, + const gchar *property_name); +GParamSpec** gtk_widget_class_list_style_properties (GtkWidgetClass *klass, + guint *n_properties); +void gtk_widget_style_get_property (GtkWidget *widget, + const gchar *property_name, + GValue *value); +void gtk_widget_style_get_valist (GtkWidget *widget, + const gchar *first_property_name, + va_list var_args); +void gtk_widget_style_get (GtkWidget *widget, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; + + +/* Set certain default values to be used at widget creation time. + */ +void gtk_widget_set_default_colormap (GdkColormap *colormap); +GtkStyle* gtk_widget_get_default_style (void); +#ifndef GDK_MULTIHEAD_SAFE +GdkColormap* gtk_widget_get_default_colormap (void); +GdkVisual* gtk_widget_get_default_visual (void); +#endif + +/* Functions for setting directionality for widgets + */ + +void gtk_widget_set_direction (GtkWidget *widget, + GtkTextDirection dir); +GtkTextDirection gtk_widget_get_direction (GtkWidget *widget); + +void gtk_widget_set_default_direction (GtkTextDirection dir); +GtkTextDirection gtk_widget_get_default_direction (void); + +/* Compositing manager functionality */ +gboolean gtk_widget_is_composited (GtkWidget *widget); + +/* Counterpart to gdk_window_shape_combine_mask. + */ +void gtk_widget_shape_combine_mask (GtkWidget *widget, + GdkBitmap *shape_mask, + gint offset_x, + gint offset_y); +void gtk_widget_input_shape_combine_mask (GtkWidget *widget, + GdkBitmap *shape_mask, + gint offset_x, + gint offset_y); + +/* internal function */ +void gtk_widget_reset_shapes (GtkWidget *widget); + +/* Compute a widget's path in the form "GtkWindow.MyLabel", and + * return newly alocated strings. + */ +void gtk_widget_path (GtkWidget *widget, + guint *path_length, + gchar **path, + gchar **path_reversed); +void gtk_widget_class_path (GtkWidget *widget, + guint *path_length, + gchar **path, + gchar **path_reversed); + +GList* gtk_widget_list_mnemonic_labels (GtkWidget *widget); +void gtk_widget_add_mnemonic_label (GtkWidget *widget, + GtkWidget *label); +void gtk_widget_remove_mnemonic_label (GtkWidget *widget, + GtkWidget *label); + +void gtk_widget_set_tooltip_window (GtkWidget *widget, + GtkWindow *custom_window); +GtkWindow *gtk_widget_get_tooltip_window (GtkWidget *widget); +void gtk_widget_trigger_tooltip_query (GtkWidget *widget); +void gtk_widget_set_tooltip_text (GtkWidget *widget, + const gchar *text); +gchar * gtk_widget_get_tooltip_text (GtkWidget *widget); +void gtk_widget_set_tooltip_markup (GtkWidget *widget, + const gchar *markup); +gchar * gtk_widget_get_tooltip_markup (GtkWidget *widget); +void gtk_widget_set_has_tooltip (GtkWidget *widget, + gboolean has_tooltip); +gboolean gtk_widget_get_has_tooltip (GtkWidget *widget); + +GType gtk_requisition_get_type (void) G_GNUC_CONST; +GtkRequisition *gtk_requisition_copy (const GtkRequisition *requisition); +void gtk_requisition_free (GtkRequisition *requisition); + +#if defined (GTK_TRACE_OBJECTS) && defined (__GNUC__) +# define gtk_widget_ref gtk_object_ref +# define gtk_widget_unref gtk_object_unref +#endif /* GTK_TRACE_OBJECTS && __GNUC__ */ + +void _gtk_widget_grab_notify (GtkWidget *widget, + gboolean was_grabbed); + +GtkWidgetAuxInfo *_gtk_widget_get_aux_info (GtkWidget *widget, + gboolean create); +void _gtk_widget_propagate_hierarchy_changed (GtkWidget *widget, + GtkWidget *previous_toplevel); +void _gtk_widget_propagate_screen_changed (GtkWidget *widget, + GdkScreen *previous_screen); +void _gtk_widget_propagate_composited_changed (GtkWidget *widget); + +GdkColormap* _gtk_widget_peek_colormap (void); + +G_END_DECLS + +#endif /* __GTK_WIDGET_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkwindow.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkwindow.h new file mode 100644 index 00000000..2f84c497 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-2.0/gtk/gtkwindow.h @@ -0,0 +1,435 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_WINDOW_H__ +#define __GTK_WINDOW_H__ + + +#include <gdk/gdk.h> +#include <gtk/gtkaccelgroup.h> +#include <gtk/gtkbin.h> +#include <gtk/gtkenums.h> +#include <gtk/gtkwidget.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_WINDOW (gtk_window_get_type ()) +#define GTK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_WINDOW, GtkWindow)) +#define GTK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WINDOW, GtkWindowClass)) +#define GTK_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_WINDOW)) +#define GTK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WINDOW)) +#define GTK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WINDOW, GtkWindowClass)) + + +typedef struct _GtkWindowClass GtkWindowClass; +typedef struct _GtkWindowGeometryInfo GtkWindowGeometryInfo; +typedef struct _GtkWindowGroup GtkWindowGroup; +typedef struct _GtkWindowGroupClass GtkWindowGroupClass; + +struct _GtkWindow +{ + GtkBin bin; + + gchar *title; + gchar *wmclass_name; + gchar *wmclass_class; + gchar *wm_role; + + GtkWidget *focus_widget; + GtkWidget *default_widget; + GtkWindow *transient_parent; + GtkWindowGeometryInfo *geometry_info; + GdkWindow *frame; + GtkWindowGroup *group; + + guint16 configure_request_count; + guint allow_shrink : 1; + guint allow_grow : 1; + guint configure_notify_received : 1; + /* The following flags are initially TRUE (before a window is mapped). + * They cause us to compute a configure request that involves + * default-only parameters. Once mapped, we set them to FALSE. + * Then we set them to TRUE again on unmap (for position) + * and on unrealize (for size). + */ + guint need_default_position : 1; + guint need_default_size : 1; + guint position : 3; + guint type : 4; /* GtkWindowType */ + guint has_user_ref_count : 1; + guint has_focus : 1; + + guint modal : 1; + guint destroy_with_parent : 1; + + guint has_frame : 1; + + /* gtk_window_iconify() called before realization */ + guint iconify_initially : 1; + guint stick_initially : 1; + guint maximize_initially : 1; + guint decorated : 1; + + guint type_hint : 3; /* GdkWindowTypeHint if the hint is one of the original eight. If not, then + * it contains GDK_WINDOW_TYPE_HINT_NORMAL + */ + guint gravity : 5; /* GdkGravity */ + + guint is_active : 1; + guint has_toplevel_focus : 1; + + guint frame_left; + guint frame_top; + guint frame_right; + guint frame_bottom; + + guint keys_changed_handler; + + GdkModifierType mnemonic_modifier; + GdkScreen *screen; +}; + +struct _GtkWindowClass +{ + GtkBinClass parent_class; + + void (* set_focus) (GtkWindow *window, + GtkWidget *focus); + gboolean (* frame_event) (GtkWindow *window, + GdkEvent *event); + + /* G_SIGNAL_ACTION signals for keybindings */ + + void (* activate_focus) (GtkWindow *window); + void (* activate_default) (GtkWindow *window); + + /* as of GTK+ 2.12 the "move-focus" signal has been moved to GtkWidget, + * so this is merley a virtual function now. Overriding it in subclasses + * continues to work though. + */ + void (* move_focus) (GtkWindow *window, + GtkDirectionType direction); + + void (*keys_changed) (GtkWindow *window); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +#define GTK_TYPE_WINDOW_GROUP (gtk_window_group_get_type ()) +#define GTK_WINDOW_GROUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_WINDOW_GROUP, GtkWindowGroup)) +#define GTK_WINDOW_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WINDOW_GROUP, GtkWindowGroupClass)) +#define GTK_IS_WINDOW_GROUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_WINDOW_GROUP)) +#define GTK_IS_WINDOW_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WINDOW_GROUP)) +#define GTK_WINDOW_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WINDOW_GROUP, GtkWindowGroupClass)) + +struct _GtkWindowGroup +{ + GObject parent_instance; + + GSList *grabs; +}; + +struct _GtkWindowGroupClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +#ifdef G_OS_WIN32 +/* Reserve old names for DLL ABI backward compatibility */ +#define gtk_window_set_icon_from_file gtk_window_set_icon_from_file_utf8 +#define gtk_window_set_default_icon_from_file gtk_window_set_default_icon_from_file_utf8 +#endif + +GType gtk_window_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_window_new (GtkWindowType type); +void gtk_window_set_title (GtkWindow *window, + const gchar *title); +G_CONST_RETURN gchar *gtk_window_get_title (GtkWindow *window); +void gtk_window_set_wmclass (GtkWindow *window, + const gchar *wmclass_name, + const gchar *wmclass_class); +void gtk_window_set_role (GtkWindow *window, + const gchar *role); +void gtk_window_set_startup_id (GtkWindow *window, + const gchar *startup_id); +G_CONST_RETURN gchar *gtk_window_get_role (GtkWindow *window); +void gtk_window_add_accel_group (GtkWindow *window, + GtkAccelGroup *accel_group); +void gtk_window_remove_accel_group (GtkWindow *window, + GtkAccelGroup *accel_group); +void gtk_window_set_position (GtkWindow *window, + GtkWindowPosition position); +gboolean gtk_window_activate_focus (GtkWindow *window); +void gtk_window_set_focus (GtkWindow *window, + GtkWidget *focus); +GtkWidget *gtk_window_get_focus (GtkWindow *window); +void gtk_window_set_default (GtkWindow *window, + GtkWidget *default_widget); +gboolean gtk_window_activate_default (GtkWindow *window); + +void gtk_window_set_transient_for (GtkWindow *window, + GtkWindow *parent); +GtkWindow *gtk_window_get_transient_for (GtkWindow *window); +void gtk_window_set_opacity (GtkWindow *window, + gdouble opacity); +gdouble gtk_window_get_opacity (GtkWindow *window); +void gtk_window_set_type_hint (GtkWindow *window, + GdkWindowTypeHint hint); +GdkWindowTypeHint gtk_window_get_type_hint (GtkWindow *window); +void gtk_window_set_skip_taskbar_hint (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_skip_taskbar_hint (GtkWindow *window); +void gtk_window_set_skip_pager_hint (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_skip_pager_hint (GtkWindow *window); +void gtk_window_set_urgency_hint (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_urgency_hint (GtkWindow *window); +void gtk_window_set_accept_focus (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_accept_focus (GtkWindow *window); +void gtk_window_set_focus_on_map (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_focus_on_map (GtkWindow *window); +void gtk_window_set_destroy_with_parent (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_destroy_with_parent (GtkWindow *window); + +void gtk_window_set_resizable (GtkWindow *window, + gboolean resizable); +gboolean gtk_window_get_resizable (GtkWindow *window); + +void gtk_window_set_gravity (GtkWindow *window, + GdkGravity gravity); +GdkGravity gtk_window_get_gravity (GtkWindow *window); + + +void gtk_window_set_geometry_hints (GtkWindow *window, + GtkWidget *geometry_widget, + GdkGeometry *geometry, + GdkWindowHints geom_mask); + +void gtk_window_set_screen (GtkWindow *window, + GdkScreen *screen); +GdkScreen* gtk_window_get_screen (GtkWindow *window); + +gboolean gtk_window_is_active (GtkWindow *window); +gboolean gtk_window_has_toplevel_focus (GtkWindow *window); + + + +/* gtk_window_set_has_frame () must be called before realizing the window_*/ +void gtk_window_set_has_frame (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_has_frame (GtkWindow *window); +void gtk_window_set_frame_dimensions (GtkWindow *window, + gint left, + gint top, + gint right, + gint bottom); +void gtk_window_get_frame_dimensions (GtkWindow *window, + gint *left, + gint *top, + gint *right, + gint *bottom); +void gtk_window_set_decorated (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_decorated (GtkWindow *window); +void gtk_window_set_deletable (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_deletable (GtkWindow *window); + +void gtk_window_set_icon_list (GtkWindow *window, + GList *list); +GList* gtk_window_get_icon_list (GtkWindow *window); +void gtk_window_set_icon (GtkWindow *window, + GdkPixbuf *icon); +void gtk_window_set_icon_name (GtkWindow *window, + const gchar *name); +gboolean gtk_window_set_icon_from_file (GtkWindow *window, + const gchar *filename, + GError **err); +GdkPixbuf* gtk_window_get_icon (GtkWindow *window); +G_CONST_RETURN +gchar *gtk_window_get_icon_name (GtkWindow *window); +void gtk_window_set_default_icon_list (GList *list); +GList* gtk_window_get_default_icon_list (void); +void gtk_window_set_default_icon (GdkPixbuf *icon); +void gtk_window_set_default_icon_name (const gchar *name); +gboolean gtk_window_set_default_icon_from_file (const gchar *filename, + GError **err); + +void gtk_window_set_auto_startup_notification (gboolean setting); + +/* If window is set modal, input will be grabbed when show and released when hide */ +void gtk_window_set_modal (GtkWindow *window, + gboolean modal); +gboolean gtk_window_get_modal (GtkWindow *window); +GList* gtk_window_list_toplevels (void); + +void gtk_window_add_mnemonic (GtkWindow *window, + guint keyval, + GtkWidget *target); +void gtk_window_remove_mnemonic (GtkWindow *window, + guint keyval, + GtkWidget *target); +gboolean gtk_window_mnemonic_activate (GtkWindow *window, + guint keyval, + GdkModifierType modifier); +void gtk_window_set_mnemonic_modifier (GtkWindow *window, + GdkModifierType modifier); +GdkModifierType gtk_window_get_mnemonic_modifier (GtkWindow *window); + +gboolean gtk_window_activate_key (GtkWindow *window, + GdkEventKey *event); +gboolean gtk_window_propagate_key_event (GtkWindow *window, + GdkEventKey *event); + +void gtk_window_present (GtkWindow *window); +void gtk_window_present_with_time (GtkWindow *window, + guint32 timestamp); +void gtk_window_iconify (GtkWindow *window); +void gtk_window_deiconify (GtkWindow *window); +void gtk_window_stick (GtkWindow *window); +void gtk_window_unstick (GtkWindow *window); +void gtk_window_maximize (GtkWindow *window); +void gtk_window_unmaximize (GtkWindow *window); +void gtk_window_fullscreen (GtkWindow *window); +void gtk_window_unfullscreen (GtkWindow *window); +void gtk_window_set_keep_above (GtkWindow *window, gboolean setting); +void gtk_window_set_keep_below (GtkWindow *window, gboolean setting); + +void gtk_window_begin_resize_drag (GtkWindow *window, + GdkWindowEdge edge, + gint button, + gint root_x, + gint root_y, + guint32 timestamp); +void gtk_window_begin_move_drag (GtkWindow *window, + gint button, + gint root_x, + gint root_y, + guint32 timestamp); + +#ifndef GTK_DISABLE_DEPRECATED +void gtk_window_set_policy (GtkWindow *window, + gint allow_shrink, + gint allow_grow, + gint auto_shrink); +#define gtk_window_position gtk_window_set_position +#endif /* GTK_DISABLE_DEPRECATED */ + +/* Set initial default size of the window (does not constrain user + * resize operations) + */ +void gtk_window_set_default_size (GtkWindow *window, + gint width, + gint height); +void gtk_window_get_default_size (GtkWindow *window, + gint *width, + gint *height); +void gtk_window_resize (GtkWindow *window, + gint width, + gint height); +void gtk_window_get_size (GtkWindow *window, + gint *width, + gint *height); +void gtk_window_move (GtkWindow *window, + gint x, + gint y); +void gtk_window_get_position (GtkWindow *window, + gint *root_x, + gint *root_y); +gboolean gtk_window_parse_geometry (GtkWindow *window, + const gchar *geometry); +GtkWindowGroup *gtk_window_get_group (GtkWindow *window); + +/* Ignore this unless you are writing a GUI builder */ +void gtk_window_reshow_with_initial_size (GtkWindow *window); + +/* Window groups + */ +GType gtk_window_group_get_type (void) G_GNUC_CONST; + +GtkWindowGroup * gtk_window_group_new (void); +void gtk_window_group_add_window (GtkWindowGroup *window_group, + GtkWindow *window); +void gtk_window_group_remove_window (GtkWindowGroup *window_group, + GtkWindow *window); + +/* --- internal functions --- */ +void _gtk_window_internal_set_focus (GtkWindow *window, + GtkWidget *focus); +void gtk_window_remove_embedded_xid (GtkWindow *window, + guint xid); +void gtk_window_add_embedded_xid (GtkWindow *window, + guint xid); +void _gtk_window_reposition (GtkWindow *window, + gint x, + gint y); +void _gtk_window_constrain_size (GtkWindow *window, + gint width, + gint height, + gint *new_width, + gint *new_height); +GtkWidget *_gtk_window_group_get_current_grab (GtkWindowGroup *window_group); + +void _gtk_window_set_has_toplevel_focus (GtkWindow *window, + gboolean has_toplevel_focus); +void _gtk_window_unset_focus_and_default (GtkWindow *window, + GtkWidget *widget); + +void _gtk_window_set_is_active (GtkWindow *window, + gboolean is_active); + +typedef void (*GtkWindowKeysForeachFunc) (GtkWindow *window, + guint keyval, + GdkModifierType modifiers, + gboolean is_mnemonic, + gpointer data); + +void _gtk_window_keys_foreach (GtkWindow *window, + GtkWindowKeysForeachFunc func, + gpointer func_data); + +/* --- internal (GtkAcceleratable) --- */ +gboolean _gtk_window_query_nonaccels (GtkWindow *window, + guint accel_key, + GdkModifierType accel_mods); + +G_END_DECLS + +#endif /* __GTK_WINDOW_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkpagesetupunixdialog.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkpagesetupunixdialog.h new file mode 100644 index 00000000..a99a07d6 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkpagesetupunixdialog.h @@ -0,0 +1,73 @@ +/* GtkPageSetupUnixDialog + * Copyright (C) 2006 Alexander Larsson <alexl@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GTK_PAGE_SETUP_UNIX_DIALOG_H__ +#define __GTK_PAGE_SETUP_UNIX_DIALOG_H__ + +#include <gtk/gtkdialog.h> +#include <gtk/gtkpagesetup.h> +#include <gtk/gtkprintsettings.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_PAGE_SETUP_UNIX_DIALOG (gtk_page_setup_unix_dialog_get_type ()) +#define GTK_PAGE_SETUP_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG, GtkPageSetupUnixDialog)) +#define GTK_PAGE_SETUP_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG, GtkPageSetupUnixDialogClass)) +#define GTK_IS_PAGE_SETUP_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG)) +#define GTK_IS_PAGE_SETUP_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG)) +#define GTK_PAGE_SETUP_UNIX_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG, GtkPageSetupUnixDialogClass)) + + +typedef struct _GtkPageSetupUnixDialog GtkPageSetupUnixDialog; +typedef struct _GtkPageSetupUnixDialogClass GtkPageSetupUnixDialogClass; +typedef struct GtkPageSetupUnixDialogPrivate GtkPageSetupUnixDialogPrivate; + +struct _GtkPageSetupUnixDialog +{ + GtkDialog parent_instance; + + GtkPageSetupUnixDialogPrivate *priv; +}; + +struct _GtkPageSetupUnixDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); +}; + +GType gtk_page_setup_unix_dialog_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_page_setup_unix_dialog_new (const gchar *title, + GtkWindow *parent); +void gtk_page_setup_unix_dialog_set_page_setup (GtkPageSetupUnixDialog *dialog, + GtkPageSetup *page_setup); +GtkPageSetup * gtk_page_setup_unix_dialog_get_page_setup (GtkPageSetupUnixDialog *dialog); +void gtk_page_setup_unix_dialog_set_print_settings (GtkPageSetupUnixDialog *dialog, + GtkPrintSettings *print_settings); +GtkPrintSettings *gtk_page_setup_unix_dialog_get_print_settings (GtkPageSetupUnixDialog *dialog); + +G_END_DECLS + +#endif /* __GTK_PAGE_SETUP_UNIX_DIALOG_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkprinter.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkprinter.h new file mode 100644 index 00000000..2d8bec1f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkprinter.h @@ -0,0 +1,119 @@ +/* GtkPrinter + * Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GTK_PRINTER_H__ +#define __GTK_PRINTER_H__ + +#include <glib-object.h> +#include <cairo.h> +#include <gtk/gtkprintsettings.h> +#include <gtk/gtkpagesetup.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_PRINT_CAPABILITIES (gtk_print_capabilities_get_type ()) + +/* Note, this type is manually registered with GObject in gtkprinter.c + * If you add any flags, update the registration as well! + */ +typedef enum +{ + GTK_PRINT_CAPABILITY_PAGE_SET = 1 << 0, + GTK_PRINT_CAPABILITY_COPIES = 1 << 1, + GTK_PRINT_CAPABILITY_COLLATE = 1 << 2, + GTK_PRINT_CAPABILITY_REVERSE = 1 << 3, + GTK_PRINT_CAPABILITY_SCALE = 1 << 4, + GTK_PRINT_CAPABILITY_GENERATE_PDF = 1 << 5, + GTK_PRINT_CAPABILITY_GENERATE_PS = 1 << 6, + GTK_PRINT_CAPABILITY_PREVIEW = 1 << 7, + GTK_PRINT_CAPABILITY_NUMBER_UP = 1 << 8 +} GtkPrintCapabilities; + +GType gtk_print_capabilities_get_type (void) G_GNUC_CONST; + +#define GTK_TYPE_PRINTER (gtk_printer_get_type ()) +#define GTK_PRINTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER, GtkPrinter)) +#define GTK_PRINTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINTER, GtkPrinterClass)) +#define GTK_IS_PRINTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER)) +#define GTK_IS_PRINTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINTER)) +#define GTK_PRINTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINTER, GtkPrinterClass)) + +typedef struct _GtkPrinter GtkPrinter; +typedef struct _GtkPrinterClass GtkPrinterClass; +typedef struct _GtkPrinterPrivate GtkPrinterPrivate; +typedef struct _GtkPrintBackend GtkPrintBackend; + +struct _GtkPrintBackend; + +struct _GtkPrinter +{ + GObject parent_instance; + + GtkPrinterPrivate *priv; +}; + +struct _GtkPrinterClass +{ + GObjectClass parent_class; + + void (*details_acquired) (GtkPrinter *printer, gboolean success); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); +}; + +GType gtk_printer_get_type (void) G_GNUC_CONST; +GtkPrinter *gtk_printer_new (const gchar *name, + GtkPrintBackend *backend, + gboolean virtual_); +GtkPrintBackend *gtk_printer_get_backend (GtkPrinter *printer); +G_CONST_RETURN gchar *gtk_printer_get_name (GtkPrinter *printer); +G_CONST_RETURN gchar *gtk_printer_get_state_message (GtkPrinter *printer); +G_CONST_RETURN gchar *gtk_printer_get_description (GtkPrinter *printer); +G_CONST_RETURN gchar *gtk_printer_get_location (GtkPrinter *printer); +G_CONST_RETURN gchar *gtk_printer_get_icon_name (GtkPrinter *printer); +gint gtk_printer_get_job_count (GtkPrinter *printer); +gboolean gtk_printer_is_active (GtkPrinter *printer); +gboolean gtk_printer_is_virtual (GtkPrinter *printer); +gboolean gtk_printer_is_default (GtkPrinter *printer); +gboolean gtk_printer_accepts_pdf (GtkPrinter *printer); +gboolean gtk_printer_accepts_ps (GtkPrinter *printer); +GList *gtk_printer_list_papers (GtkPrinter *printer); +gint gtk_printer_compare (GtkPrinter *a, + GtkPrinter *b); +gboolean gtk_printer_has_details (GtkPrinter *printer); +void gtk_printer_request_details (GtkPrinter *printer); +GtkPrintCapabilities gtk_printer_get_capabilities (GtkPrinter *printer); + +typedef gboolean (*GtkPrinterFunc) (GtkPrinter *printer, + gpointer data); + +void gtk_enumerate_printers (GtkPrinterFunc func, + gpointer data, + GDestroyNotify destroy, + gboolean wait); + +G_END_DECLS + +#endif /* __GTK_PRINTER_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkprintjob.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkprintjob.h new file mode 100644 index 00000000..89a3d5bc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkprintjob.h @@ -0,0 +1,107 @@ +/* GtkPrintJob + * Copyright (C) 2006 Red Hat,Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GTK_PRINT_JOB_H__ +#define __GTK_PRINT_JOB_H__ + +#include <glib-object.h> +#include <cairo.h> + +#include <gtk/gtkprinter.h> +#include <gtk/gtkprintoperation.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_PRINT_JOB (gtk_print_job_get_type ()) +#define GTK_PRINT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_JOB, GtkPrintJob)) +#define GTK_PRINT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINT_JOB, GtkPrintJobClass)) +#define GTK_IS_PRINT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_JOB)) +#define GTK_IS_PRINT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINT_JOB)) +#define GTK_PRINT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINT_JOB, GtkPrintJobClass)) + +typedef struct _GtkPrintJob GtkPrintJob; +typedef struct _GtkPrintJobClass GtkPrintJobClass; +typedef struct _GtkPrintJobPrivate GtkPrintJobPrivate; + +typedef void (*GtkPrintJobCompleteFunc) (GtkPrintJob *print_job, + gpointer user_data, + GError *error); + +struct _GtkPrinter; + +struct _GtkPrintJob +{ + GObject parent_instance; + + GtkPrintJobPrivate *priv; + + /* Settings the client has to implement: + * (These are read-only, set at initialization) + */ + GtkPrintPages print_pages; + GtkPageRange *page_ranges; + gint num_page_ranges; + GtkPageSet page_set; + gint num_copies; + gdouble scale; + guint rotate_to_orientation : 1; + guint collate : 1; + guint reverse : 1; +}; + +struct _GtkPrintJobClass +{ + GObjectClass parent_class; + + void (*status_changed) (GtkPrintJob *job); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); +}; + +GType gtk_print_job_get_type (void) G_GNUC_CONST; +GtkPrintJob *gtk_print_job_new (const gchar *title, + GtkPrinter *printer, + GtkPrintSettings *settings, + GtkPageSetup *page_setup); +GtkPrintSettings *gtk_print_job_get_settings (GtkPrintJob *job); +GtkPrinter *gtk_print_job_get_printer (GtkPrintJob *job); +G_CONST_RETURN gchar *gtk_print_job_get_title (GtkPrintJob *job); +GtkPrintStatus gtk_print_job_get_status (GtkPrintJob *job); +gboolean gtk_print_job_set_source_file (GtkPrintJob *job, + const gchar *filename, + GError **error); +cairo_surface_t *gtk_print_job_get_surface (GtkPrintJob *job, + GError **error); +void gtk_print_job_set_track_print_status (GtkPrintJob *job, + gboolean track_status); +gboolean gtk_print_job_get_track_print_status (GtkPrintJob *job); +void gtk_print_job_send (GtkPrintJob *job, + GtkPrintJobCompleteFunc callback, + gpointer user_data, + GDestroyNotify dnotify); + +G_END_DECLS + +#endif /* __GTK_PRINT_JOB_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkprintunixdialog.h b/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkprintunixdialog.h new file mode 100644 index 00000000..b6ad921a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/gtk-unix-print-2.0/gtk/gtkprintunixdialog.h @@ -0,0 +1,86 @@ +/* GtkPrintUnixDialog + * Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __GTK_PRINT_UNIX_DIALOG_H__ +#define __GTK_PRINT_UNIX_DIALOG_H__ + +#include <gtk/gtkdialog.h> +#include <gtk/gtkprinter.h> +#include <gtk/gtkprintjob.h> +#include <gtk/gtkprintsettings.h> +#include <gtk/gtkpagesetup.h> + +G_BEGIN_DECLS + +#define GTK_TYPE_PRINT_UNIX_DIALOG (gtk_print_unix_dialog_get_type ()) +#define GTK_PRINT_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_UNIX_DIALOG, GtkPrintUnixDialog)) +#define GTK_PRINT_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINT_UNIX_DIALOG, GtkPrintUnixDialogClass)) +#define GTK_IS_PRINT_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_UNIX_DIALOG)) +#define GTK_IS_PRINT_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINT_UNIX_DIALOG)) +#define GTK_PRINT_UNIX_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINT_UNIX_DIALOG, GtkPrintUnixDialogClass)) + + +typedef struct _GtkPrintUnixDialog GtkPrintUnixDialog; +typedef struct _GtkPrintUnixDialogClass GtkPrintUnixDialogClass; +typedef struct GtkPrintUnixDialogPrivate GtkPrintUnixDialogPrivate; + +struct _GtkPrintUnixDialog +{ + GtkDialog parent_instance; + + GtkPrintUnixDialogPrivate *priv; +}; + +struct _GtkPrintUnixDialogClass +{ + GtkDialogClass parent_class; + + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); +}; + +GType gtk_print_unix_dialog_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_print_unix_dialog_new (const gchar *title, + GtkWindow *parent); + +void gtk_print_unix_dialog_set_page_setup (GtkPrintUnixDialog *dialog, + GtkPageSetup *page_setup); +GtkPageSetup * gtk_print_unix_dialog_get_page_setup (GtkPrintUnixDialog *dialog); +void gtk_print_unix_dialog_set_current_page (GtkPrintUnixDialog *dialog, + gint current_page); +gint gtk_print_unix_dialog_get_current_page (GtkPrintUnixDialog *dialog); +void gtk_print_unix_dialog_set_settings (GtkPrintUnixDialog *dialog, + GtkPrintSettings *settings); +GtkPrintSettings *gtk_print_unix_dialog_get_settings (GtkPrintUnixDialog *dialog); +GtkPrinter * gtk_print_unix_dialog_get_selected_printer (GtkPrintUnixDialog *dialog); +void gtk_print_unix_dialog_add_custom_tab (GtkPrintUnixDialog *dialog, + GtkWidget *child, + GtkWidget *tab_label); +void gtk_print_unix_dialog_set_manual_capabilities (GtkPrintUnixDialog *dialog, + GtkPrintCapabilities capabilities); + +G_END_DECLS + +#endif /* __GTK_PRINT_UNIX_DIALOG_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-attributes.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-attributes.h new file mode 100644 index 00000000..ad7a0861 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-attributes.h @@ -0,0 +1,276 @@ +/* Pango + * pango-attributes.h: Attributed text + * + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_ATTRIBUTES_H__ +#define __PANGO_ATTRIBUTES_H__ + +#include <pango/pango-font.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +/* PangoColor */ + +typedef struct _PangoColor PangoColor; + +struct _PangoColor +{ + guint16 red; + guint16 green; + guint16 blue; +}; + +#define PANGO_TYPE_COLOR pango_color_get_type () +GType pango_color_get_type (void) G_GNUC_CONST; + +PangoColor *pango_color_copy (const PangoColor *src); +void pango_color_free (PangoColor *color); +gboolean pango_color_parse (PangoColor *color, + const char *spec); +gchar *pango_color_to_string(const PangoColor *color); + + +/* Attributes */ + +typedef struct _PangoAttribute PangoAttribute; +typedef struct _PangoAttrClass PangoAttrClass; + +typedef struct _PangoAttrString PangoAttrString; +typedef struct _PangoAttrLanguage PangoAttrLanguage; +typedef struct _PangoAttrInt PangoAttrInt; +typedef struct _PangoAttrSize PangoAttrSize; +typedef struct _PangoAttrFloat PangoAttrFloat; +typedef struct _PangoAttrColor PangoAttrColor; +typedef struct _PangoAttrFontDesc PangoAttrFontDesc; +typedef struct _PangoAttrShape PangoAttrShape; + +#define PANGO_TYPE_ATTR_LIST pango_attr_list_get_type () +typedef struct _PangoAttrList PangoAttrList; +typedef struct _PangoAttrIterator PangoAttrIterator; + +typedef enum +{ + PANGO_ATTR_INVALID, /* 0 is an invalid attribute type */ + PANGO_ATTR_LANGUAGE, /* PangoAttrLanguage */ + PANGO_ATTR_FAMILY, /* PangoAttrString */ + PANGO_ATTR_STYLE, /* PangoAttrInt */ + PANGO_ATTR_WEIGHT, /* PangoAttrInt */ + PANGO_ATTR_VARIANT, /* PangoAttrInt */ + PANGO_ATTR_STRETCH, /* PangoAttrInt */ + PANGO_ATTR_SIZE, /* PangoAttrSize */ + PANGO_ATTR_FONT_DESC, /* PangoAttrFontDesc */ + PANGO_ATTR_FOREGROUND, /* PangoAttrColor */ + PANGO_ATTR_BACKGROUND, /* PangoAttrColor */ + PANGO_ATTR_UNDERLINE, /* PangoAttrInt */ + PANGO_ATTR_STRIKETHROUGH, /* PangoAttrInt */ + PANGO_ATTR_RISE, /* PangoAttrInt */ + PANGO_ATTR_SHAPE, /* PangoAttrShape */ + PANGO_ATTR_SCALE, /* PangoAttrFloat */ + PANGO_ATTR_FALLBACK, /* PangoAttrInt */ + PANGO_ATTR_LETTER_SPACING, /* PangoAttrInt */ + PANGO_ATTR_UNDERLINE_COLOR, /* PangoAttrColor */ + PANGO_ATTR_STRIKETHROUGH_COLOR,/* PangoAttrColor */ + PANGO_ATTR_ABSOLUTE_SIZE, /* PangoAttrSize */ + PANGO_ATTR_GRAVITY, /* PangoAttrInt */ + PANGO_ATTR_GRAVITY_HINT /* PangoAttrInt */ +} PangoAttrType; + +typedef enum { + PANGO_UNDERLINE_NONE, + PANGO_UNDERLINE_SINGLE, + PANGO_UNDERLINE_DOUBLE, + PANGO_UNDERLINE_LOW, + PANGO_UNDERLINE_ERROR +} PangoUnderline; + +struct _PangoAttribute +{ + const PangoAttrClass *klass; + guint start_index; /* in bytes */ + guint end_index; /* in bytes. The character at this index is not included */ +}; + +typedef gboolean (*PangoAttrFilterFunc) (PangoAttribute *attribute, + gpointer data); + +typedef gpointer (*PangoAttrDataCopyFunc) (gconstpointer data); + +struct _PangoAttrClass +{ + /*< public >*/ + PangoAttrType type; + PangoAttribute * (*copy) (const PangoAttribute *attr); + void (*destroy) (PangoAttribute *attr); + gboolean (*equal) (const PangoAttribute *attr1, const PangoAttribute *attr2); +}; + +struct _PangoAttrString +{ + PangoAttribute attr; + char *value; +}; + +struct _PangoAttrLanguage +{ + PangoAttribute attr; + PangoLanguage *value; +}; + +struct _PangoAttrInt +{ + PangoAttribute attr; + int value; +}; + +struct _PangoAttrFloat +{ + PangoAttribute attr; + double value; +}; + +struct _PangoAttrColor +{ + PangoAttribute attr; + PangoColor color; +}; + +struct _PangoAttrSize +{ + PangoAttribute attr; + int size; + guint absolute : 1; +}; + +struct _PangoAttrShape +{ + PangoAttribute attr; + PangoRectangle ink_rect; + PangoRectangle logical_rect; + + gpointer data; + PangoAttrDataCopyFunc copy_func; + GDestroyNotify destroy_func; +}; + +struct _PangoAttrFontDesc +{ + PangoAttribute attr; + PangoFontDescription *desc; +}; + +PangoAttrType pango_attr_type_register (const gchar *name); + +void pango_attribute_init (PangoAttribute *attr, + const PangoAttrClass *klass); +PangoAttribute * pango_attribute_copy (const PangoAttribute *attr); +void pango_attribute_destroy (PangoAttribute *attr); +gboolean pango_attribute_equal (const PangoAttribute *attr1, + const PangoAttribute *attr2) G_GNUC_PURE; + +PangoAttribute *pango_attr_language_new (PangoLanguage *language); +PangoAttribute *pango_attr_family_new (const char *family); +PangoAttribute *pango_attr_foreground_new (guint16 red, + guint16 green, + guint16 blue); +PangoAttribute *pango_attr_background_new (guint16 red, + guint16 green, + guint16 blue); +PangoAttribute *pango_attr_size_new (int size); +PangoAttribute *pango_attr_size_new_absolute (int size); +PangoAttribute *pango_attr_style_new (PangoStyle style); +PangoAttribute *pango_attr_weight_new (PangoWeight weight); +PangoAttribute *pango_attr_variant_new (PangoVariant variant); +PangoAttribute *pango_attr_stretch_new (PangoStretch stretch); +PangoAttribute *pango_attr_font_desc_new (const PangoFontDescription *desc); + +PangoAttribute *pango_attr_underline_new (PangoUnderline underline); +PangoAttribute *pango_attr_underline_color_new (guint16 red, + guint16 green, + guint16 blue); +PangoAttribute *pango_attr_strikethrough_new (gboolean strikethrough); +PangoAttribute *pango_attr_strikethrough_color_new (guint16 red, + guint16 green, + guint16 blue); + +PangoAttribute *pango_attr_rise_new (int rise); +PangoAttribute *pango_attr_scale_new (double scale_factor); +PangoAttribute *pango_attr_fallback_new (gboolean enable_fallback); +PangoAttribute *pango_attr_letter_spacing_new (int letter_spacing); + +PangoAttribute *pango_attr_shape_new (const PangoRectangle *ink_rect, + const PangoRectangle *logical_rect); +PangoAttribute *pango_attr_shape_new_with_data (const PangoRectangle *ink_rect, + const PangoRectangle *logical_rect, + gpointer data, + PangoAttrDataCopyFunc copy_func, + GDestroyNotify destroy_func); + +PangoAttribute *pango_attr_gravity_new (PangoGravity gravity); +PangoAttribute *pango_attr_gravity_hint_new (PangoGravityHint hint); + +GType pango_attr_list_get_type (void) G_GNUC_CONST; +PangoAttrList * pango_attr_list_new (void); +PangoAttrList * pango_attr_list_ref (PangoAttrList *list); +void pango_attr_list_unref (PangoAttrList *list); +PangoAttrList * pango_attr_list_copy (PangoAttrList *list); +void pango_attr_list_insert (PangoAttrList *list, + PangoAttribute *attr); +void pango_attr_list_insert_before (PangoAttrList *list, + PangoAttribute *attr); +void pango_attr_list_change (PangoAttrList *list, + PangoAttribute *attr); +void pango_attr_list_splice (PangoAttrList *list, + PangoAttrList *other, + gint pos, + gint len); + +PangoAttrList *pango_attr_list_filter (PangoAttrList *list, + PangoAttrFilterFunc func, + gpointer data); + +PangoAttrIterator *pango_attr_list_get_iterator (PangoAttrList *list); + +void pango_attr_iterator_range (PangoAttrIterator *iterator, + gint *start, + gint *end); +gboolean pango_attr_iterator_next (PangoAttrIterator *iterator); +PangoAttrIterator *pango_attr_iterator_copy (PangoAttrIterator *iterator); +void pango_attr_iterator_destroy (PangoAttrIterator *iterator); +PangoAttribute * pango_attr_iterator_get (PangoAttrIterator *iterator, + PangoAttrType type); +void pango_attr_iterator_get_font (PangoAttrIterator *iterator, + PangoFontDescription *desc, + PangoLanguage **language, + GSList **extra_attrs); +GSList * pango_attr_iterator_get_attrs (PangoAttrIterator *iterator); + + +gboolean pango_parse_markup (const char *markup_text, + int length, + gunichar accel_marker, + PangoAttrList **attr_list, + char **text, + gunichar *accel_char, + GError **error); + +G_END_DECLS + +#endif /* __PANGO_ATTRIBUTES_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-break.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-break.h new file mode 100644 index 00000000..fe22acec --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-break.h @@ -0,0 +1,117 @@ +/* Pango + * pango-break.h: + * + * Copyright (C) 1999 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_BREAK_H__ +#define __PANGO_BREAK_H__ + +#include <glib.h> + +G_BEGIN_DECLS + +#include <pango/pango-item.h> + +/* Logical attributes of a character. + */ +struct _PangoLogAttr +{ + guint is_line_break : 1; /* Can break line in front of character */ + + guint is_mandatory_break : 1; /* Must break line in front of character */ + + guint is_char_break : 1; /* Can break here when doing char wrap */ + + guint is_white : 1; /* Whitespace character */ + + /* Cursor can appear in front of character (i.e. this is a grapheme + * boundary, or the first character in the text). + */ + guint is_cursor_position : 1; + + /* Note that in degenerate cases, you could have both start/end set on + * some text, most likely for sentences (e.g. no space after a period, so + * the next sentence starts right away). + */ + + guint is_word_start : 1; /* first character in a word */ + guint is_word_end : 1; /* is first non-word char after a word */ + + /* There are two ways to divide sentences. The first assigns all + * intersentence whitespace/control/format chars to some sentence, + * so all chars are in some sentence; is_sentence_boundary denotes + * the boundaries there. The second way doesn't assign + * between-sentence spaces, etc. to any sentence, so + * is_sentence_start/is_sentence_end mark the boundaries of those + * sentences. + */ + guint is_sentence_boundary : 1; + guint is_sentence_start : 1; /* first character in a sentence */ + guint is_sentence_end : 1; /* first non-sentence char after a sentence */ + + /* If set, backspace deletes one character rather than + * the entire grapheme cluster. + */ + guint backspace_deletes_character : 1; + + /* Only few space variants (U+0020 and U+00A0) have variable + * width during justification. + */ + guint is_expandable_space : 1; +}; + +/* Determine information about cluster/word/line breaks in a string + * of Unicode text. + */ +void pango_break (const gchar *text, + int length, + PangoAnalysis *analysis, + PangoLogAttr *attrs, + int attrs_len); + +void pango_find_paragraph_boundary (const gchar *text, + gint length, + gint *paragraph_delimiter_index, + gint *next_paragraph_start); + +void pango_get_log_attrs (const char *text, + int length, + int level, + PangoLanguage *language, + PangoLogAttr *log_attrs, + int attrs_len); + +#ifdef PANGO_ENABLE_ENGINE + +/* This is the default break algorithm, used if no language + * engine overrides it. Normally you should use pango_break() + * instead; this function is mostly useful for chaining up + * from a language engine override. + */ +void pango_default_break (const gchar *text, + int length, + PangoAnalysis *analysis, + PangoLogAttr *attrs, + int attrs_len); + +#endif /* PANGO_ENABLE_ENGINE */ + +G_END_DECLS + +#endif /* __PANGO_BREAK_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-context.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-context.h new file mode 100644 index 00000000..5cd88404 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-context.h @@ -0,0 +1,113 @@ +/* Pango + * pango-context.h: Rendering contexts + * + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_CONTEXT_H__ +#define __PANGO_CONTEXT_H__ + +#include <pango/pango-font.h> +#include <pango/pango-fontmap.h> +#include <pango/pango-attributes.h> + +G_BEGIN_DECLS + +/* Sort of like a GC - application set information about how + * to handle scripts + */ + +/* PangoContext typedefed in pango-fontmap.h */ +typedef struct _PangoContextClass PangoContextClass; + +#define PANGO_TYPE_CONTEXT (pango_context_get_type ()) +#define PANGO_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CONTEXT, PangoContext)) +#define PANGO_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_CONTEXT, PangoContextClass)) +#define PANGO_IS_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CONTEXT)) +#define PANGO_IS_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_CONTEXT)) +#define PANGO_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_CONTEXT, PangoContextClass)) + + +/* The PangoContext and PangoContextClass structs are private; if you + * need to create a subclass of these, file a bug. + */ + +GType pango_context_get_type (void) G_GNUC_CONST; + +#ifdef PANGO_ENABLE_BACKEND +PangoContext *pango_context_new (void); +void pango_context_set_font_map (PangoContext *context, + PangoFontMap *font_map); +#endif /* PANGO_ENABLE_BACKEND */ +PangoFontMap *pango_context_get_font_map (PangoContext *context); + +void pango_context_list_families (PangoContext *context, + PangoFontFamily ***families, + int *n_families); +PangoFont * pango_context_load_font (PangoContext *context, + const PangoFontDescription *desc); +PangoFontset *pango_context_load_fontset (PangoContext *context, + const PangoFontDescription *desc, + PangoLanguage *language); + +PangoFontMetrics *pango_context_get_metrics (PangoContext *context, + const PangoFontDescription *desc, + PangoLanguage *language); + +void pango_context_set_font_description (PangoContext *context, + const PangoFontDescription *desc); +PangoFontDescription * pango_context_get_font_description (PangoContext *context); +PangoLanguage *pango_context_get_language (PangoContext *context); +void pango_context_set_language (PangoContext *context, + PangoLanguage *language); +void pango_context_set_base_dir (PangoContext *context, + PangoDirection direction); +PangoDirection pango_context_get_base_dir (PangoContext *context); +void pango_context_set_base_gravity (PangoContext *context, + PangoGravity gravity); +PangoGravity pango_context_get_base_gravity (PangoContext *context); +PangoGravity pango_context_get_gravity (PangoContext *context); +void pango_context_set_gravity_hint (PangoContext *context, + PangoGravityHint hint); +PangoGravityHint pango_context_get_gravity_hint (PangoContext *context); + +void pango_context_set_matrix (PangoContext *context, + const PangoMatrix *matrix); +G_CONST_RETURN PangoMatrix *pango_context_get_matrix (PangoContext *context); + +/* Break a string of Unicode characters into segments with + * consistent shaping/language engine and bidrectional level. + * Returns a #GList of #PangoItem's + */ +GList *pango_itemize (PangoContext *context, + const char *text, + int start_index, + int length, + PangoAttrList *attrs, + PangoAttrIterator *cached_iter); +GList *pango_itemize_with_base_dir (PangoContext *context, + PangoDirection base_dir, + const char *text, + int start_index, + int length, + PangoAttrList *attrs, + PangoAttrIterator *cached_iter); + +G_END_DECLS + +#endif /* __PANGO_CONTEXT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-coverage.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-coverage.h new file mode 100644 index 00000000..e1e8d133 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-coverage.h @@ -0,0 +1,58 @@ +/* Pango + * pango-coverage.h: Coverage sets for fonts + * + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_COVERAGE_H__ +#define __PANGO_COVERAGE_H__ + +#include <glib.h> + +G_BEGIN_DECLS + +typedef struct _PangoCoverage PangoCoverage; + +typedef enum { + PANGO_COVERAGE_NONE, + PANGO_COVERAGE_FALLBACK, + PANGO_COVERAGE_APPROXIMATE, + PANGO_COVERAGE_EXACT +} PangoCoverageLevel; + +PangoCoverage * pango_coverage_new (void); +PangoCoverage * pango_coverage_ref (PangoCoverage *coverage); +void pango_coverage_unref (PangoCoverage *coverage); +PangoCoverage * pango_coverage_copy (PangoCoverage *coverage); +PangoCoverageLevel pango_coverage_get (PangoCoverage *coverage, + int index_); +void pango_coverage_set (PangoCoverage *coverage, + int index_, + PangoCoverageLevel level); +void pango_coverage_max (PangoCoverage *coverage, + PangoCoverage *other); + +void pango_coverage_to_bytes (PangoCoverage *coverage, + guchar **bytes, + int *n_bytes); +PangoCoverage *pango_coverage_from_bytes (guchar *bytes, + int n_bytes); + +G_END_DECLS + +#endif /* __PANGO_COVERAGE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-engine.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-engine.h new file mode 100644 index 00000000..ddc9ab16 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-engine.h @@ -0,0 +1,379 @@ +/* Pango + * pango-engine.h: Engines for script and language specific processing + * + * Copyright (C) 2000,2003 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_ENGINE_H__ +#define __PANGO_ENGINE_H__ + +#include <pango/pango-types.h> +#include <pango/pango-item.h> +#include <pango/pango-font.h> +#include <pango/pango-glyph.h> +#include <pango/pango-script.h> + +G_BEGIN_DECLS + +#ifdef PANGO_ENABLE_ENGINE + +/* Module API */ + +#define PANGO_RENDER_TYPE_NONE "PangoRenderNone" + +#define PANGO_TYPE_ENGINE (pango_engine_get_type ()) +#define PANGO_ENGINE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_ENGINE, PangoEngine)) +#define PANGO_IS_ENGINE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_ENGINE)) +#define PANGO_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_ENGINE, PangoEngineClass)) +#define PANGO_IS_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_ENGINE)) +#define PANGO_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_ENGINE, PangoEngineClass)) + +typedef struct _PangoEngine PangoEngine; +typedef struct _PangoEngineClass PangoEngineClass; + +/** + * PangoEngine: + * + * #PangoEngine is the base class for all types of language and + * script specific engines. It has no functionality by itself. + **/ +struct _PangoEngine +{ + /*< private >*/ + GObject parent_instance; +}; + +/** + * PangoEngineClass: + * + * Class structure for #PangoEngine + **/ +struct _PangoEngineClass +{ + /*< private >*/ + GObjectClass parent_class; +}; + +GType pango_engine_get_type (void) G_GNUC_CONST; + +#define PANGO_ENGINE_TYPE_LANG "PangoEngineLang" + +#define PANGO_TYPE_ENGINE_LANG (pango_engine_lang_get_type ()) +#define PANGO_ENGINE_LANG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_ENGINE_LANG, PangoEngineLang)) +#define PANGO_IS_ENGINE_LANG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_ENGINE_LANG)) +#define PANGO_ENGINE_LANG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_ENGINE_LANG, PangoEngineLangClass)) +#define PANGO_IS_ENGINE_LANG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_ENGINE_LANG)) +#define PANGO_ENGINE_LANG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_ENGINE_LANG, PangoEngineLangClass)) + +typedef struct _PangoEngineLangClass PangoEngineLangClass; + +/** + * PangoEngineLang: + * + * The #PangoEngineLang class is implemented by engines that + * customize the rendering-system independent part of the + * Pango pipeline for a particular script or language. For + * instance, a custom #PangoEngineLang could be provided for + * Thai to implement the dictionary-based word boundary + * lookups needed for that language. + **/ +struct _PangoEngineLang +{ + /*< private >*/ + PangoEngine parent_instance; +}; + +/** + * PangoEngineLangClass: + * @script_break: Provides a custom implementation of pango_break(). + * If %NULL, pango_default_break() is used instead. If not %NULL, for + * Pango versions before 1.16 (module interface version before 1.6.0), + * this was called instead of pango_default_break(), but in newer versions, + * pango_default_break() is always called and this is called after that to + * allow tailoring the breaking results. + * + * Class structure for #PangoEngineLang + **/ +struct _PangoEngineLangClass +{ + /*< private >*/ + PangoEngineClass parent_class; + + /*< public >*/ + void (*script_break) (PangoEngineLang *engine, + const char *text, + int len, + PangoAnalysis *analysis, + PangoLogAttr *attrs, + int attrs_len); +}; + +GType pango_engine_lang_get_type (void) G_GNUC_CONST; + +#define PANGO_ENGINE_TYPE_SHAPE "PangoEngineShape" + +#define PANGO_TYPE_ENGINE_SHAPE (pango_engine_shape_get_type ()) +#define PANGO_ENGINE_SHAPE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_ENGINE_SHAPE, PangoEngineShape)) +#define PANGO_IS_ENGINE_SHAPE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_ENGINE_SHAPE)) +#define PANGO_ENGINE_SHAPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_ENGINE_SHAPE, PangoEngine_ShapeClass)) +#define PANGO_IS_ENGINE_SHAPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_ENGINE_SHAPE)) +#define PANGO_ENGINE_SHAPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_ENGINE_SHAPE, PangoEngineShapeClass)) + +typedef struct _PangoEngineShapeClass PangoEngineShapeClass; + +/** + * PangoEngineShape + * + * The #PangoEngineShape class is implemented by engines that + * customize the rendering-system dependent part of the + * Pango pipeline for a particular script or language. + * A #PangoEngineShape implementation is then specific to both + * a particular rendering system or group of rendering systems + * and to a particular script. For instance, there is one + * #PangoEngineShape implementation to handle shaping Arabic + * for Fontconfig-based backends. + **/ +struct _PangoEngineShape +{ + PangoEngine parent_instance; +}; + +/** + * PangoEngineShapeClass: + * @script_shape: Given a font, a piece of text, and a #PangoAnalysis + * structure, converts characters to glyphs and positions the + * resulting glyphs. The results are stored in the #PangoGlyphString + * that is passed in. (The implementation should resize it + * appropriately using pango_glyph_string_set_size()). All fields + * of the @log_clusters and @glyphs array must be filled in, with + * the exception that Pango will automatically generate + * <literal>glyphs->glyphs[i].attr.is_cluster_start</literal> + * using the @log_clusters array. Each input character must occur in one + * of the output logical clusters; + * if no rendering is desired for a character, this may involve + * inserting glyphs with the #PangoGlyph ID #PANGO_GLYPH_EMPTY, which + * is guaranteed never to render. If the shaping fails for any reason, + * the shaper should return with an empty (zero-size) glyph string. + * If the shaper has not set the size on the glyph string yet, simply + * returning signals the failure too. + * @covers: Returns the characters that this engine can cover + * with a given font for a given language. If not overridden, the default + * implementation simply returns the coverage information for the + * font itself unmodified. + * + * Class structure for #PangoEngineShape + **/ +struct _PangoEngineShapeClass +{ + /*< private >*/ + PangoEngineClass parent_class; + + /*< public >*/ + void (*script_shape) (PangoEngineShape *engine, + PangoFont *font, + const char *text, + int length, + const PangoAnalysis *analysis, + PangoGlyphString *glyphs); + PangoCoverageLevel (*covers) (PangoEngineShape *engine, + PangoFont *font, + PangoLanguage *language, + gunichar wc); +}; + +GType pango_engine_shape_get_type (void) G_GNUC_CONST; + +typedef struct _PangoEngineInfo PangoEngineInfo; +typedef struct _PangoEngineScriptInfo PangoEngineScriptInfo; + +struct _PangoEngineScriptInfo +{ + PangoScript script; + const gchar *langs; +}; + +struct _PangoEngineInfo +{ + const gchar *id; + const gchar *engine_type; + const gchar *render_type; + PangoEngineScriptInfo *scripts; + gint n_scripts; +}; + +/** + * script_engine_list: + * @engines: location to store a pointer to an array of engines. + * @n_engines: location to store the number of elements in @engines. + * + * Function to be provided by a module to list the engines that the + * module supplies. The function stores a pointer to an array + * of #PangoEngineInfo structures and the length of that array in + * the given location. + * + * Note that script_engine_init() will not be called before this + * function. + **/ +void script_engine_list (PangoEngineInfo **engines, + int *n_engines); + +/** + * script_engine_init: + * @module: a #GTypeModule structure used to associate any + * GObject types created in this module with the module. + * + * Function to be provided by a module to register any + * GObject types in the module. + **/ +void script_engine_init (GTypeModule *module); + + +/** + * script_engine_exit: + * + * Function to be provided by the module that is called + * when the module is unloading. Frequently does nothing. + **/ +void script_engine_exit (void); + +/** + * script_engine_create: + * @id: the ID of an engine as reported by script_engine_list. + * + * Function to be provided by the module to create an instance + * of one of the engines implemented by the module. + * + * Return value: a newly created #PangoEngine of the specified + * type, or %NULL if an error occurred. (In normal operation, + * a module should not return %NULL. A %NULL return is only + * acceptable in the case where system misconfiguration or + * bugs in the driver routine are encountered.) + **/ +PangoEngine *script_engine_create (const char *id); + +/* Utility macro used by PANGO_ENGINE_LANG_DEFINE_TYPE and + * PANGO_ENGINE_LANG_DEFINE_TYPE + */ +#define PANGO_ENGINE_DEFINE_TYPE(name, prefix, class_init, instance_init, parent_type) \ +static GType prefix ## _type; \ +static void \ +prefix ## _register_type (GTypeModule *module) \ +{ \ + const GTypeInfo object_info = \ + { \ + sizeof (name ## Class), \ + (GBaseInitFunc) NULL, \ + (GBaseFinalizeFunc) NULL, \ + (GClassInitFunc) class_init, \ + (GClassFinalizeFunc) NULL, \ + NULL, /* class_data */ \ + sizeof (name), \ + 0, /* n_prelocs */ \ + (GInstanceInitFunc) instance_init, \ + NULL /* value_table */ \ + }; \ + \ + prefix ## _type = g_type_module_register_type (module, parent_type, \ + # name, \ + &object_info, 0); \ +} + +/** + * PANGO_ENGINE_LANG_DEFINE_TYPE: + * @name: Name of the the type to register (for example:, <literal>ArabicEngineFc</literal> + * @prefix: Prefix for symbols that will be defined (for example:, <literal>arabic_engine_fc</literal> + * @class_init: Class initialization function for the new type, or %NULL + * @instance_init: Instance initialization function for the new type, or %NULL + * + * Outputs the necessary code for GObject type registration for a + * #PangoEngineLang class defined in a module. Two static symbols + * are defined. + * + * <programlisting> + * static GType <replaceable>prefix</replaceable>_type; + * static void <replaceable>prefix</replaceable>_register_type (GTypeModule module); + * </programlisting> + * + * The <function><replaceable>prefix</replaceable>_register_type()</function> + * function should be called in your script_engine_init() function for + * each type that your module implements, and then your script_engine_create() + * function can create instances of the object as follows: + * + * <informalexample><programlisting> + * PangoEngine *engine = g_object_new (<replaceable>prefix</replaceable>_type, NULL); + * </programlisting></informalexample> + **/ +#define PANGO_ENGINE_LANG_DEFINE_TYPE(name, prefix, class_init, instance_init) \ + PANGO_ENGINE_DEFINE_TYPE (name, prefix, \ + class_init, instance_init, \ + PANGO_TYPE_ENGINE_LANG) + +/** + * PANGO_ENGINE_SHAPE_DEFINE_TYPE: + * @name: Name of the the type to register (for example:, <literal>ArabicEngineFc</literal> + * @prefix: Prefix for symbols that will be defined (for example:, <literal>arabic_engine_fc</literal> + * @class_init: Class initialization function for the new type, or %NULL + * @instance_init: Instance initialization function for the new type, or %NULL + * + * Outputs the necessary code for GObject type registration for a + * #PangoEngineShape class defined in a module. Two static symbols + * are defined. + * + * <programlisting> + * static GType <replaceable>prefix</replaceable>_type; + * static void <replaceable>prefix</replaceable>_register_type (GTypeModule module); + * </programlisting> + * + * The <function><replaceable>prefix</replaceable>_register_type()</function> + * function should be called in your script_engine_init() function for + * each type that your module implements, and then your script_engine_create() + * function can create instances of the object as follows: + * + * <informalexample><programlisting> + * PangoEngine *engine = g_object_new (<replaceable>prefix</replaceable>_type, NULL); + * </programlisting></informalexample> + **/ +#define PANGO_ENGINE_SHAPE_DEFINE_TYPE(name, prefix, class_init, instance_init) \ + PANGO_ENGINE_DEFINE_TYPE (name, prefix, \ + class_init, instance_init, \ + PANGO_TYPE_ENGINE_SHAPE) + +/* Macro used for possibly builtin Pango modules. Not useful + * for externally build modules. If we are compiling a module standaline, + * then we name the entry points script_engine_list, etc. But if we + * are compiling it for inclusion directly in Pango, then we need them to + * to have distinct names for this module, so we prepend a prefix. + * + * The two intermediate macros are to deal with details of the C + * preprocessor; token pasting tokens must be function arguments, + * and macro substitution isn't used on function arguments that + * are used for token pasting. + */ +#ifdef PANGO_MODULE_PREFIX +#define PANGO_MODULE_ENTRY(func) _PANGO_MODULE_ENTRY2(PANGO_MODULE_PREFIX,func) +#define _PANGO_MODULE_ENTRY2(prefix,func) _PANGO_MODULE_ENTRY3(prefix,func) +#define _PANGO_MODULE_ENTRY3(prefix,func) prefix##_script_engine_##func +#else +#define PANGO_MODULE_ENTRY(func) script_engine_##func +#endif + +#endif /* PANGO_ENABLE_ENGINE */ + +G_END_DECLS + +#endif /* __PANGO_ENGINE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-enum-types.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-enum-types.h new file mode 100644 index 00000000..8aca839a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-enum-types.h @@ -0,0 +1,58 @@ + +/* Generated data (by glib-mkenums) */ + +#ifndef __PANGO_ENUM_TYPES_H__ +#define __PANGO_ENUM_TYPES_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS +/* enumerations from "pango-attributes.h" */ +GType pango_attr_type_get_type (void); +#define PANGO_TYPE_ATTR_TYPE (pango_attr_type_get_type()) +GType pango_underline_get_type (void); +#define PANGO_TYPE_UNDERLINE (pango_underline_get_type()) +/* enumerations from "pango-coverage.h" */ +GType pango_coverage_level_get_type (void); +#define PANGO_TYPE_COVERAGE_LEVEL (pango_coverage_level_get_type()) +/* enumerations from "pango-font.h" */ +GType pango_style_get_type (void); +#define PANGO_TYPE_STYLE (pango_style_get_type()) +GType pango_variant_get_type (void); +#define PANGO_TYPE_VARIANT (pango_variant_get_type()) +GType pango_weight_get_type (void); +#define PANGO_TYPE_WEIGHT (pango_weight_get_type()) +GType pango_stretch_get_type (void); +#define PANGO_TYPE_STRETCH (pango_stretch_get_type()) +GType pango_font_mask_get_type (void); +#define PANGO_TYPE_FONT_MASK (pango_font_mask_get_type()) +/* enumerations from "pango-gravity.h" */ +GType pango_gravity_get_type (void); +#define PANGO_TYPE_GRAVITY (pango_gravity_get_type()) +GType pango_gravity_hint_get_type (void); +#define PANGO_TYPE_GRAVITY_HINT (pango_gravity_hint_get_type()) +/* enumerations from "pango-layout.h" */ +GType pango_alignment_get_type (void); +#define PANGO_TYPE_ALIGNMENT (pango_alignment_get_type()) +GType pango_wrap_mode_get_type (void); +#define PANGO_TYPE_WRAP_MODE (pango_wrap_mode_get_type()) +GType pango_ellipsize_mode_get_type (void); +#define PANGO_TYPE_ELLIPSIZE_MODE (pango_ellipsize_mode_get_type()) +/* enumerations from "pango-renderer.h" */ +GType pango_render_part_get_type (void); +#define PANGO_TYPE_RENDER_PART (pango_render_part_get_type()) +/* enumerations from "pango-script.h" */ +GType pango_script_get_type (void); +#define PANGO_TYPE_SCRIPT (pango_script_get_type()) +/* enumerations from "pango-tabs.h" */ +GType pango_tab_align_get_type (void); +#define PANGO_TYPE_TAB_ALIGN (pango_tab_align_get_type()) +/* enumerations from "pango-types.h" */ +GType pango_direction_get_type (void); +#define PANGO_TYPE_DIRECTION (pango_direction_get_type()) +G_END_DECLS + +#endif /* __PANGO_ENUM_TYPES_H__ */ + +/* Generated data ends here */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-features.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-features.h new file mode 100644 index 00000000..48c66dc7 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-features.h @@ -0,0 +1,12 @@ +/* Generated by configure. Do not edit */ +#ifndef PANGO_FEATURES_H +#define PANGO_FEATURES_H + +#define PANGO_VERSION_MAJOR 1 +#define PANGO_VERSION_MINOR 20 +#define PANGO_VERSION_MICRO 5 + +#define PANGO_VERSION_STRING "1.20.5" + + +#endif diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-font.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-font.h new file mode 100644 index 00000000..66e68aa8 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-font.h @@ -0,0 +1,382 @@ +/* Pango + * pango-font.h: Font handling + * + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_FONT_H__ +#define __PANGO_FONT_H__ + +#include <pango/pango-coverage.h> +#include <pango/pango-types.h> + +#include <glib-object.h> + +G_BEGIN_DECLS + +typedef struct _PangoFontDescription PangoFontDescription; +typedef struct _PangoFontMetrics PangoFontMetrics; + +/** + * PangoStyle: + * @PANGO_STYLE_NORMAL: the font is upright. + * @PANGO_STYLE_OBLIQUE: the font is slanted, but in a roman style. + * @PANGO_STYLE_ITALIC: the font is slanted in an italic style. + * + * An enumeration specifying the various slant styles possible for a font. + **/ +typedef enum { + PANGO_STYLE_NORMAL, + PANGO_STYLE_OBLIQUE, + PANGO_STYLE_ITALIC +} PangoStyle; + +typedef enum { + PANGO_VARIANT_NORMAL, + PANGO_VARIANT_SMALL_CAPS +} PangoVariant; + +typedef enum { + PANGO_WEIGHT_ULTRALIGHT = 200, + PANGO_WEIGHT_LIGHT = 300, + PANGO_WEIGHT_NORMAL = 400, + PANGO_WEIGHT_SEMIBOLD = 600, + PANGO_WEIGHT_BOLD = 700, + PANGO_WEIGHT_ULTRABOLD = 800, + PANGO_WEIGHT_HEAVY = 900 +} PangoWeight; + +typedef enum { + PANGO_STRETCH_ULTRA_CONDENSED, + PANGO_STRETCH_EXTRA_CONDENSED, + PANGO_STRETCH_CONDENSED, + PANGO_STRETCH_SEMI_CONDENSED, + PANGO_STRETCH_NORMAL, + PANGO_STRETCH_SEMI_EXPANDED, + PANGO_STRETCH_EXPANDED, + PANGO_STRETCH_EXTRA_EXPANDED, + PANGO_STRETCH_ULTRA_EXPANDED +} PangoStretch; + +typedef enum { + PANGO_FONT_MASK_FAMILY = 1 << 0, + PANGO_FONT_MASK_STYLE = 1 << 1, + PANGO_FONT_MASK_VARIANT = 1 << 2, + PANGO_FONT_MASK_WEIGHT = 1 << 3, + PANGO_FONT_MASK_STRETCH = 1 << 4, + PANGO_FONT_MASK_SIZE = 1 << 5, + PANGO_FONT_MASK_GRAVITY = 1 << 6 +} PangoFontMask; + +/* CSS scale factors (1.2 factor between each size) */ +#define PANGO_SCALE_XX_SMALL ((double)0.5787037037037) +#define PANGO_SCALE_X_SMALL ((double)0.6444444444444) +#define PANGO_SCALE_SMALL ((double)0.8333333333333) +#define PANGO_SCALE_MEDIUM ((double)1.0) +#define PANGO_SCALE_LARGE ((double)1.2) +#define PANGO_SCALE_X_LARGE ((double)1.4399999999999) +#define PANGO_SCALE_XX_LARGE ((double)1.728) + +/* + * PangoFontDescription + */ + +#define PANGO_TYPE_FONT_DESCRIPTION (pango_font_description_get_type ()) + +GType pango_font_description_get_type (void) G_GNUC_CONST; +PangoFontDescription *pango_font_description_new (void); +PangoFontDescription *pango_font_description_copy (const PangoFontDescription *desc); +PangoFontDescription *pango_font_description_copy_static (const PangoFontDescription *desc); +guint pango_font_description_hash (const PangoFontDescription *desc) G_GNUC_PURE; +gboolean pango_font_description_equal (const PangoFontDescription *desc1, + const PangoFontDescription *desc2) G_GNUC_PURE; +void pango_font_description_free (PangoFontDescription *desc); +void pango_font_descriptions_free (PangoFontDescription **descs, + int n_descs); + +void pango_font_description_set_family (PangoFontDescription *desc, + const char *family); +void pango_font_description_set_family_static (PangoFontDescription *desc, + const char *family); +G_CONST_RETURN char *pango_font_description_get_family (const PangoFontDescription *desc) G_GNUC_PURE; +void pango_font_description_set_style (PangoFontDescription *desc, + PangoStyle style); +PangoStyle pango_font_description_get_style (const PangoFontDescription *desc) G_GNUC_PURE; +void pango_font_description_set_variant (PangoFontDescription *desc, + PangoVariant variant); +PangoVariant pango_font_description_get_variant (const PangoFontDescription *desc) G_GNUC_PURE; +void pango_font_description_set_weight (PangoFontDescription *desc, + PangoWeight weight); +PangoWeight pango_font_description_get_weight (const PangoFontDescription *desc) G_GNUC_PURE; +void pango_font_description_set_stretch (PangoFontDescription *desc, + PangoStretch stretch); +PangoStretch pango_font_description_get_stretch (const PangoFontDescription *desc) G_GNUC_PURE; +void pango_font_description_set_size (PangoFontDescription *desc, + gint size); +gint pango_font_description_get_size (const PangoFontDescription *desc) G_GNUC_PURE; +void pango_font_description_set_absolute_size (PangoFontDescription *desc, + double size); +gboolean pango_font_description_get_size_is_absolute (const PangoFontDescription *desc) G_GNUC_PURE; +void pango_font_description_set_gravity (PangoFontDescription *desc, + PangoGravity gravity); +PangoGravity pango_font_description_get_gravity (const PangoFontDescription *desc) G_GNUC_PURE; + +PangoFontMask pango_font_description_get_set_fields (const PangoFontDescription *desc) G_GNUC_PURE; +void pango_font_description_unset_fields (PangoFontDescription *desc, + PangoFontMask to_unset); + +void pango_font_description_merge (PangoFontDescription *desc, + const PangoFontDescription *desc_to_merge, + gboolean replace_existing); +void pango_font_description_merge_static (PangoFontDescription *desc, + const PangoFontDescription *desc_to_merge, + gboolean replace_existing); + +gboolean pango_font_description_better_match (const PangoFontDescription *desc, + const PangoFontDescription *old_match, + const PangoFontDescription *new_match) G_GNUC_PURE; + +PangoFontDescription *pango_font_description_from_string (const char *str); +char * pango_font_description_to_string (const PangoFontDescription *desc); +char * pango_font_description_to_filename (const PangoFontDescription *desc); + +/* + * PangoFontMetrics + */ + +#define PANGO_TYPE_FONT_METRICS (pango_font_metrics_get_type ()) +GType pango_font_metrics_get_type (void) G_GNUC_CONST; +PangoFontMetrics *pango_font_metrics_ref (PangoFontMetrics *metrics); +void pango_font_metrics_unref (PangoFontMetrics *metrics); +int pango_font_metrics_get_ascent (PangoFontMetrics *metrics) G_GNUC_PURE; +int pango_font_metrics_get_descent (PangoFontMetrics *metrics) G_GNUC_PURE; +int pango_font_metrics_get_approximate_char_width (PangoFontMetrics *metrics) G_GNUC_PURE; +int pango_font_metrics_get_approximate_digit_width (PangoFontMetrics *metrics) G_GNUC_PURE; +int pango_font_metrics_get_underline_position (PangoFontMetrics *metrics) G_GNUC_PURE; +int pango_font_metrics_get_underline_thickness (PangoFontMetrics *metrics) G_GNUC_PURE; +int pango_font_metrics_get_strikethrough_position (PangoFontMetrics *metrics) G_GNUC_PURE; +int pango_font_metrics_get_strikethrough_thickness (PangoFontMetrics *metrics) G_GNUC_PURE; + +#ifdef PANGO_ENABLE_BACKEND + +PangoFontMetrics *pango_font_metrics_new (void); + +struct _PangoFontMetrics +{ + guint ref_count; + + int ascent; + int descent; + int approximate_char_width; + int approximate_digit_width; + int underline_position; + int underline_thickness; + int strikethrough_position; + int strikethrough_thickness; +}; + +#endif /* PANGO_ENABLE_BACKEND */ + +/* + * PangoFontFamily + */ + +#define PANGO_TYPE_FONT_FAMILY (pango_font_family_get_type ()) +#define PANGO_FONT_FAMILY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_FAMILY, PangoFontFamily)) +#define PANGO_IS_FONT_FAMILY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_FAMILY)) + +typedef struct _PangoFontFamily PangoFontFamily; +typedef struct _PangoFontFace PangoFontFace; + +GType pango_font_family_get_type (void) G_GNUC_CONST; + +void pango_font_family_list_faces (PangoFontFamily *family, + PangoFontFace ***faces, + int *n_faces); +G_CONST_RETURN char *pango_font_family_get_name (PangoFontFamily *family) G_GNUC_PURE; +gboolean pango_font_family_is_monospace (PangoFontFamily *family) G_GNUC_PURE; + +#ifdef PANGO_ENABLE_BACKEND + +#define PANGO_FONT_FAMILY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT_FAMILY, PangoFontFamilyClass)) +#define PANGO_IS_FONT_FAMILY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONT_FAMILY)) +#define PANGO_FONT_FAMILY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONT_FAMILY, PangoFontFamilyClass)) + +typedef struct _PangoFontFamilyClass PangoFontFamilyClass; + +struct _PangoFontFamily +{ + GObject parent_instance; +}; + +struct _PangoFontFamilyClass +{ + GObjectClass parent_class; + + /*< public >*/ + + void (*list_faces) (PangoFontFamily *family, + PangoFontFace ***faces, + int *n_faces); + const char * (*get_name) (PangoFontFamily *family); + gboolean (*is_monospace) (PangoFontFamily *family); + + /*< private >*/ + + /* Padding for future expansion */ + void (*_pango_reserved2) (void); + void (*_pango_reserved3) (void); + void (*_pango_reserved4) (void); +}; + +#endif /* PANGO_ENABLE_BACKEND */ + +/* + * PangoFontFace + */ + +#define PANGO_TYPE_FONT_FACE (pango_font_face_get_type ()) +#define PANGO_FONT_FACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_FACE, PangoFontFace)) +#define PANGO_IS_FONT_FACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_FACE)) + +GType pango_font_face_get_type (void) G_GNUC_CONST; + +PangoFontDescription *pango_font_face_describe (PangoFontFace *face); +G_CONST_RETURN char *pango_font_face_get_face_name (PangoFontFace *face) G_GNUC_PURE; +void pango_font_face_list_sizes (PangoFontFace *face, + int **sizes, + int *n_sizes); +gboolean pango_font_face_is_synthesized (PangoFontFace *face) G_GNUC_PURE; + +#ifdef PANGO_ENABLE_BACKEND + +#define PANGO_FONT_FACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT_FACE, PangoFontFaceClass)) +#define PANGO_IS_FONT_FACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONT_FACE)) +#define PANGO_FONT_FACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONT_FACE, PangoFontFaceClass)) + +typedef struct _PangoFontFaceClass PangoFontFaceClass; + +struct _PangoFontFace +{ + GObject parent_instance; +}; + +struct _PangoFontFaceClass +{ + GObjectClass parent_class; + + /*< public >*/ + + const char * (*get_face_name) (PangoFontFace *face); + PangoFontDescription * (*describe) (PangoFontFace *face); + void (*list_sizes) (PangoFontFace *face, + int **sizes, + int *n_sizes); + gboolean (*is_synthesized) (PangoFontFace *face); + + /*< private >*/ + + /* Padding for future expansion */ + void (*_pango_reserved3) (void); + void (*_pango_reserved4) (void); +}; + +#endif /* PANGO_ENABLE_BACKEND */ + +/* + * PangoFont + */ + +#define PANGO_TYPE_FONT (pango_font_get_type ()) +#define PANGO_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT, PangoFont)) +#define PANGO_IS_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT)) + +GType pango_font_get_type (void) G_GNUC_CONST; + +PangoFontDescription *pango_font_describe (PangoFont *font); +PangoFontDescription *pango_font_describe_with_absolute_size (PangoFont *font); +PangoCoverage * pango_font_get_coverage (PangoFont *font, + PangoLanguage *language); +PangoEngineShape * pango_font_find_shaper (PangoFont *font, + PangoLanguage *language, + guint32 ch); +PangoFontMetrics * pango_font_get_metrics (PangoFont *font, + PangoLanguage *language); +void pango_font_get_glyph_extents (PangoFont *font, + PangoGlyph glyph, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); +PangoFontMap *pango_font_get_font_map (PangoFont *font); + +#ifdef PANGO_ENABLE_BACKEND + +#define PANGO_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT, PangoFontClass)) +#define PANGO_IS_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONT)) +#define PANGO_FONT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONT, PangoFontClass)) + +typedef struct _PangoFontClass PangoFontClass; + +struct _PangoFont +{ + GObject parent_instance; +}; + +struct _PangoFontClass +{ + GObjectClass parent_class; + + /*< public >*/ + + PangoFontDescription *(*describe) (PangoFont *font); + PangoCoverage * (*get_coverage) (PangoFont *font, + PangoLanguage *lang); + PangoEngineShape * (*find_shaper) (PangoFont *font, + PangoLanguage *lang, + guint32 ch); + void (*get_glyph_extents) (PangoFont *font, + PangoGlyph glyph, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); + PangoFontMetrics * (*get_metrics) (PangoFont *font, + PangoLanguage *language); + PangoFontMap * (*get_font_map) (PangoFont *font); + PangoFontDescription *(*describe_absolute) (PangoFont *font); + /*< private >*/ + + /* Padding for future expansion */ + void (*_pango_reserved1) (void); + void (*_pango_reserved2) (void); +}; + +/* used for very rare and miserable situtations that we cannot even + * draw a hexbox + */ +#define PANGO_UNKNOWN_GLYPH_WIDTH 10 +#define PANGO_UNKNOWN_GLYPH_HEIGHT 14 + +#endif /* PANGO_ENABLE_BACKEND */ + +#define PANGO_GLYPH_EMPTY ((PangoGlyph)0x0FFFFFFF) +#define PANGO_GLYPH_INVALID_INPUT ((PangoGlyph)0xFFFFFFFF) +#define PANGO_GLYPH_UNKNOWN_FLAG ((PangoGlyph)0x10000000) +#define PANGO_GET_UNKNOWN_GLYPH(wc) ((PangoGlyph)(wc)|PANGO_GLYPH_UNKNOWN_FLAG) + + +G_END_DECLS + +#endif /* __PANGO_FONT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-fontmap.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-fontmap.h new file mode 100644 index 00000000..204178fc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-fontmap.h @@ -0,0 +1,95 @@ +/* Pango + * pango-font.h: Font handling + * + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_FONTMAP_H__ +#define __PANGO_FONTMAP_H__ + +#include <pango/pango-font.h> +#include <pango/pango-fontset.h> + +G_BEGIN_DECLS + +#define PANGO_TYPE_FONT_MAP (pango_font_map_get_type ()) +#define PANGO_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_MAP, PangoFontMap)) +#define PANGO_IS_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_MAP)) + +typedef struct _PangoContext PangoContext; + +GType pango_font_map_get_type (void) G_GNUC_CONST; +PangoFont * pango_font_map_load_font (PangoFontMap *fontmap, + PangoContext *context, + const PangoFontDescription *desc); +PangoFontset *pango_font_map_load_fontset (PangoFontMap *fontmap, + PangoContext *context, + const PangoFontDescription *desc, + PangoLanguage *language); +void pango_font_map_list_families (PangoFontMap *fontmap, + PangoFontFamily ***families, + int *n_families); + +#ifdef PANGO_ENABLE_BACKEND + +#define PANGO_FONT_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT_MAP, PangoFontMapClass)) +#define PANGO_IS_FONT_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONT_MAP)) +#define PANGO_FONT_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONT_MAP, PangoFontMapClass)) + +typedef struct _PangoFontMapClass PangoFontMapClass; + +struct _PangoFontMap +{ + GObject parent_instance; +}; + +struct _PangoFontMapClass +{ + GObjectClass parent_class; + + /*< public >*/ + + PangoFont * (*load_font) (PangoFontMap *fontmap, + PangoContext *context, + const PangoFontDescription *desc); + void (*list_families) (PangoFontMap *fontmap, + PangoFontFamily ***families, + int *n_families); + PangoFontset *(*load_fontset) (PangoFontMap *fontmap, + PangoContext *context, + const PangoFontDescription *desc, + PangoLanguage *language); + + const char *shape_engine_type; + + /*< private >*/ + + /* Padding for future expansion */ + void (*_pango_reserved1) (void); + void (*_pango_reserved2) (void); + void (*_pango_reserved3) (void); + void (*_pango_reserved4) (void); +}; + +const char *pango_font_map_get_shape_engine_type (PangoFontMap *fontmap); + +#endif /* PANGO_ENABLE_BACKEND */ + +G_END_DECLS + +#endif /* __PANGO_FONTMAP_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-fontset.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-fontset.h new file mode 100644 index 00000000..5c6c7488 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-fontset.h @@ -0,0 +1,127 @@ +/* Pango + * pango-fontset.h: Font set handling + * + * Copyright (C) 2001 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_FONTSET_H__ +#define __PANGO_FONTSET_H__ + +#include <pango/pango-coverage.h> +#include <pango/pango-types.h> + +#include <glib-object.h> + +G_BEGIN_DECLS + +/* + * PangoFontset + */ + +#define PANGO_TYPE_FONTSET (pango_fontset_get_type ()) +#define PANGO_FONTSET(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONTSET, PangoFontset)) +#define PANGO_IS_FONTSET(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONTSET)) + +GType pango_fontset_get_type (void) G_GNUC_CONST; + +typedef struct _PangoFontset PangoFontset; + +/** + * PangoFontsetForeachFunc + * @fontset: a #PangoFontset + * @font: a font from @fontset + * @data: callback data + * + * A callback function used by pango_fontset_foreach() when enumerating + * the fonts in a fontset. + * + * Returns: if %TRUE, stop iteration and return immediately. + * + * Since: 1.4 + **/ +typedef gboolean (*PangoFontsetForeachFunc) (PangoFontset *fontset, + PangoFont *font, + gpointer data); + +PangoFont * pango_fontset_get_font (PangoFontset *fontset, + guint wc); +PangoFontMetrics *pango_fontset_get_metrics (PangoFontset *fontset); +void pango_fontset_foreach (PangoFontset *fontset, + PangoFontsetForeachFunc func, + gpointer data); + +#ifdef PANGO_ENABLE_BACKEND + +typedef struct _PangoFontsetClass PangoFontsetClass; + +#define PANGO_FONTSET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONTSET, PangoFontsetClass)) +#define PANGO_IS_FONTSET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONTSET)) +#define PANGO_FONTSET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONTSET, PangoFontsetClass)) + +struct _PangoFontset +{ + GObject parent_instance; +}; + +struct _PangoFontsetClass +{ + GObjectClass parent_class; + + /*< public >*/ + + PangoFont * (*get_font) (PangoFontset *fontset, + guint wc); + + PangoFontMetrics *(*get_metrics) (PangoFontset *fontset); + PangoLanguage * (*get_language) (PangoFontset *fontset); + void (*foreach) (PangoFontset *fontset, + PangoFontsetForeachFunc func, + gpointer data); + + /*< private >*/ + + /* Padding for future expansion */ + void (*_pango_reserved1) (void); + void (*_pango_reserved2) (void); + void (*_pango_reserved3) (void); + void (*_pango_reserved4) (void); +}; + +/* + * PangoFontsetSimple + */ + +#define PANGO_TYPE_FONTSET_SIMPLE (pango_fontset_simple_get_type ()) +#define PANGO_FONTSET_SIMPLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONTSET_SIMPLE, PangoFontsetSimple)) +#define PANGO_IS_FONTSET_SIMPLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONTSET_SIMPLE)) + +typedef struct _PangoFontsetSimple PangoFontsetSimple; +typedef struct _PangoFontsetSimpleClass PangoFontsetSimpleClass; + +GType pango_fontset_simple_get_type (void) G_GNUC_CONST; + +PangoFontsetSimple * pango_fontset_simple_new (PangoLanguage *language); +void pango_fontset_simple_append (PangoFontsetSimple *fontset, + PangoFont *font); +int pango_fontset_simple_size (PangoFontsetSimple *fontset); + +#endif /* PANGO_ENABLE_BACKEND */ + +G_END_DECLS + +#endif /* __PANGO_FONTSET_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-glyph-item.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-glyph-item.h new file mode 100644 index 00000000..4bad2651 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-glyph-item.h @@ -0,0 +1,59 @@ +/* Pango + * pango-glyph-item.h: Pair of PangoItem and a glyph string + * + * Copyright (C) 2002 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_GLYPH_ITEM_H__ +#define __PANGO_GLYPH_ITEM_H__ + +#include <pango/pango-attributes.h> +#include <pango/pango-break.h> +#include <pango/pango-item.h> +#include <pango/pango-glyph.h> + +G_BEGIN_DECLS + +typedef struct _PangoGlyphItem PangoGlyphItem; + +struct _PangoGlyphItem +{ + PangoItem *item; + PangoGlyphString *glyphs; +}; + +#define PANGO_TYPE_GLYPH_ITEM (pango_glyph_item_get_type ()) + +GType pango_glyph_item_get_type (void) G_GNUC_CONST; + +PangoGlyphItem *pango_glyph_item_split (PangoGlyphItem *orig, + const char *text, + int split_index); +PangoGlyphItem *pango_glyph_item_copy (PangoGlyphItem *orig); +void pango_glyph_item_free (PangoGlyphItem *glyph_item); +GSList * pango_glyph_item_apply_attrs (PangoGlyphItem *glyph_item, + const char *text, + PangoAttrList *list); +void pango_glyph_item_letter_space (PangoGlyphItem *glyph_item, + const char *text, + PangoLogAttr *log_attrs, + int letter_spacing); + +G_END_DECLS + +#endif /* __PANGO_GLYPH_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-glyph.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-glyph.h new file mode 100644 index 00000000..cd26f53c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-glyph.h @@ -0,0 +1,135 @@ +/* Pango + * pango-glyph.h: Glyph storage + * + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_GLYPH_H__ +#define __PANGO_GLYPH_H__ + +#include <pango/pango-types.h> +#include <pango/pango-item.h> + +G_BEGIN_DECLS + +typedef struct _PangoGlyphGeometry PangoGlyphGeometry; +typedef struct _PangoGlyphVisAttr PangoGlyphVisAttr; +typedef struct _PangoGlyphInfo PangoGlyphInfo; +typedef struct _PangoGlyphString PangoGlyphString; + +/* 1024ths of a device unit */ +typedef gint32 PangoGlyphUnit; + +/* Positioning information about a glyph + */ +struct _PangoGlyphGeometry +{ + PangoGlyphUnit width; + PangoGlyphUnit x_offset; + PangoGlyphUnit y_offset; +}; + +/* Visual attributes of a glyph + */ +struct _PangoGlyphVisAttr +{ + guint is_cluster_start : 1; +}; + +/* A single glyph + */ +struct _PangoGlyphInfo +{ + PangoGlyph glyph; + PangoGlyphGeometry geometry; + PangoGlyphVisAttr attr; +}; + +/* A string of glyphs with positional information and visual attributes - + * ready for drawing + */ +struct _PangoGlyphString { + gint num_glyphs; + + PangoGlyphInfo *glyphs; + + /* This is a memory inefficient way of representing the information + * here - each value gives the byte index within the text + * corresponding to the glyph string of the start of the cluster to + * which the glyph belongs. + */ + gint *log_clusters; + + /*< private >*/ + gint space; +}; + +#define PANGO_TYPE_GLYPH_STRING (pango_glyph_string_get_type ()) + +PangoGlyphString *pango_glyph_string_new (void); +void pango_glyph_string_set_size (PangoGlyphString *string, + gint new_len); +GType pango_glyph_string_get_type (void) G_GNUC_CONST; +PangoGlyphString *pango_glyph_string_copy (PangoGlyphString *string); +void pango_glyph_string_free (PangoGlyphString *string); +void pango_glyph_string_extents (PangoGlyphString *glyphs, + PangoFont *font, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); +int pango_glyph_string_get_width(PangoGlyphString *glyphs) G_GNUC_PURE; + +void pango_glyph_string_extents_range (PangoGlyphString *glyphs, + int start, + int end, + PangoFont *font, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); + +void pango_glyph_string_get_logical_widths (PangoGlyphString *glyphs, + const char *text, + int length, + int embedding_level, + int *logical_widths); + +void pango_glyph_string_index_to_x (PangoGlyphString *glyphs, + char *text, + int length, + PangoAnalysis *analysis, + int index_, + gboolean trailing, + int *x_pos); +void pango_glyph_string_x_to_index (PangoGlyphString *glyphs, + char *text, + int length, + PangoAnalysis *analysis, + int x_pos, + int *index_, + int *trailing); + +/* Turn a string of characters into a string of glyphs + */ +void pango_shape (const gchar *text, + gint length, + const PangoAnalysis *analysis, + PangoGlyphString *glyphs); + +GList *pango_reorder_items (GList *logical_items); + +G_END_DECLS + +#endif /* __PANGO_GLYPH_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-gravity.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-gravity.h new file mode 100644 index 00000000..2e42ebd8 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-gravity.h @@ -0,0 +1,109 @@ +/* Pango + * pango-gravity.h: Gravity routines + * + * Copyright (C) 2006, 2007 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_GRAVITY_H__ +#define __PANGO_GRAVITY_H__ + +#include <glib.h> + +G_BEGIN_DECLS + +/** + * PangoGravity: + * @PANGO_GRAVITY_SOUTH: Glyphs stand upright (default) + * @PANGO_GRAVITY_EAST: Glyphs are rotated 90 degrees clockwise + * @PANGO_GRAVITY_NORTH: Glyphs are upside-down + * @PANGO_GRAVITY_WEST: Glyphs are rotated 90 degrees counter-clockwise + * @PANGO_GRAVITY_AUTO: Gravity is resolved from the context matrix + * + * The #PangoGravity type represents the orientation of glyphs in a segment + * of text. This is useful when rendering vertical text layouts. In + * those situations, the layout is rotated using a non-identity PangoMatrix, + * and then glyph orientation is controlled using #PangoGravity. + * Not every value in this enumeration makes sense for every usage of + * #PangoGravity; for example, %PANGO_GRAVITY_AUTO only can be passed to + * pango_context_set_base_gravity() and can only be returned by + * pango_context_get_base_gravity(). + * + * See also: #PangoGravityHint + * + * Since: 1.16 + **/ +typedef enum { + PANGO_GRAVITY_SOUTH, + PANGO_GRAVITY_EAST, + PANGO_GRAVITY_NORTH, + PANGO_GRAVITY_WEST, + PANGO_GRAVITY_AUTO +} PangoGravity; + +/** + * PangoGravityHint: + * @PANGO_GRAVITY_HINT_NATURAL: scripts will take their natural gravity based + * on the base gravity and the script. This is the default. + * @PANGO_GRAVITY_HINT_STRONG: always use the base gravity set, regardless of + * the script. + * @PANGO_GRAVITY_HINT_LINE: for scripts not in their natural direction (eg. + * Latin in East gravity), choose per-script gravity such that every script + * respects the line progression. This means, Latin and Arabic will take + * opposite gravities and both flow top-to-bottom for example. + * + * The #PangoGravityHint defines how horizontal scripts should behave in a + * vertical context. That is, English excerpt in a vertical paragraph for + * example. + * + * See #PangoGravity. + * + * Since: 1.16 + **/ +typedef enum { + PANGO_GRAVITY_HINT_NATURAL, + PANGO_GRAVITY_HINT_STRONG, + PANGO_GRAVITY_HINT_LINE +} PangoGravityHint; + +/** + * PANGO_GRAVITY_IS_VERTICAL: + * @gravity: the #PangoGravity to check + * + * Whether a #PangoGravity represents vertical writing directions. + * + * Returns: %TRUE if @gravity is %PANGO_GRAVITY_EAST or %PANGO_GRAVITY_WEST, + * %FALSE otherwise. + * + * Since: 1.16 + **/ +#define PANGO_GRAVITY_IS_VERTICAL(gravity) \ + ((gravity) == PANGO_GRAVITY_EAST || (gravity) == PANGO_GRAVITY_WEST) + +#include <pango/pango-matrix.h> +#include <pango/pango-script.h> + +double pango_gravity_to_rotation (PangoGravity gravity) G_GNUC_CONST; +PangoGravity pango_gravity_get_for_matrix (const PangoMatrix *matrix) G_GNUC_PURE; +PangoGravity pango_gravity_get_for_script (PangoScript script, + PangoGravity base_gravity, + PangoGravityHint hint) G_GNUC_CONST; + + +G_END_DECLS + +#endif /* __PANGO_GRAVITY_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-item.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-item.h new file mode 100644 index 00000000..0775003c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-item.h @@ -0,0 +1,72 @@ +/* Pango + * pango-item.h: Structure for storing run information + * + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_ITEM_H__ +#define __PANGO_ITEM_H__ + +#include <pango/pango-types.h> + +G_BEGIN_DECLS + +typedef struct _PangoAnalysis PangoAnalysis; +typedef struct _PangoItem PangoItem; + +/* TODO: if more flags are needed, turn this into a real PangoAnalysisFlags enum */ +#define PANGO_ANALYSIS_FLAG_CENTERED_BASELINE (1 << 0) + +struct _PangoAnalysis +{ + PangoEngineShape *shape_engine; + PangoEngineLang *lang_engine; + PangoFont *font; + + guint8 level; + guint8 gravity; /* PangoGravity */ + guint8 flags; + + guint8 script; /* PangoScript */ + PangoLanguage *language; + + GSList *extra_attrs; +}; + +struct _PangoItem +{ + gint offset; + gint length; + gint num_chars; + PangoAnalysis analysis; +}; + +#define PANGO_TYPE_ITEM (pango_item_get_type ()) + +GType pango_item_get_type (void) G_GNUC_CONST; + +PangoItem *pango_item_new (void); +PangoItem *pango_item_copy (PangoItem *item); +void pango_item_free (PangoItem *item); +PangoItem *pango_item_split (PangoItem *orig, + int split_index, + int split_offset); + +G_END_DECLS + +#endif /* __PANGO_ITEM_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-language.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-language.h new file mode 100644 index 00000000..9c1a9d8d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-language.h @@ -0,0 +1,48 @@ +/* Pango + * pango-language.h: Language handling routines + * + * Copyright (C) 1999 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_LANGUAGE_H__ +#define __PANGO_LANGUAGE_H__ + +#include <glib.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +/* Dummy typedef - internally it's a 'const char *' */ +typedef struct _PangoLanguage PangoLanguage; + +#define PANGO_TYPE_LANGUAGE (pango_language_get_type ()) + +GType pango_language_get_type (void) G_GNUC_CONST; +PangoLanguage *pango_language_from_string (const char *language); + +#define pango_language_to_string(language) ((const char *)language) + +G_CONST_RETURN char *pango_language_get_sample_string (PangoLanguage *language) G_GNUC_CONST; +PangoLanguage *pango_language_get_default (void) G_GNUC_CONST; + +gboolean pango_language_matches (PangoLanguage *language, + const char *range_list) G_GNUC_PURE; + +G_END_DECLS + +#endif /* __PANGO_LANGUAGE_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-layout.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-layout.h new file mode 100644 index 00000000..108ce872 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-layout.h @@ -0,0 +1,290 @@ +/* Pango + * pango-layout.h: High-level layout driver + * + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_LAYOUT_H__ +#define __PANGO_LAYOUT_H__ + +#include <pango/pango-attributes.h> +#include <pango/pango-context.h> +#include <pango/pango-glyph-item.h> +#include <pango/pango-tabs.h> + +G_BEGIN_DECLS + +typedef struct _PangoLayout PangoLayout; +typedef struct _PangoLayoutClass PangoLayoutClass; +typedef struct _PangoLayoutLine PangoLayoutLine; + +typedef PangoGlyphItem PangoLayoutRun; + +typedef enum { + PANGO_ALIGN_LEFT, + PANGO_ALIGN_CENTER, + PANGO_ALIGN_RIGHT +} PangoAlignment; + +typedef enum { + PANGO_WRAP_WORD, + PANGO_WRAP_CHAR, + PANGO_WRAP_WORD_CHAR +} PangoWrapMode; + +/** + * PangoEllipsizeMode + * @PANGO_ELLIPSIZE_NONE: No ellipsization + * @PANGO_ELLIPSIZE_START: Omit characters at the start of the text + * @PANGO_ELLIPSIZE_MIDDLE: Omit characters in the middle of the text + * @PANGO_ELLIPSIZE_END: Omit characters at the end of the text + * + * The #PangoEllipsizeMode type describes what sort of (if any) + * ellipsization should be applied to a line of text. In + * the ellipsization process characters are removed from the + * text in order to make it fit to a given width and replaced + * with an ellipsis. + */ +typedef enum { + PANGO_ELLIPSIZE_NONE, + PANGO_ELLIPSIZE_START, + PANGO_ELLIPSIZE_MIDDLE, + PANGO_ELLIPSIZE_END +} PangoEllipsizeMode; + +struct _PangoLayoutLine +{ + PangoLayout *layout; + gint start_index; /* start of line as byte index into layout->text */ + gint length; /* length of line in bytes */ + GSList *runs; + guint is_paragraph_start : 1; /* TRUE if this is the first line of the paragraph */ + guint resolved_dir : 3; /* Resolved PangoDirection of line */ +}; + +#define PANGO_TYPE_LAYOUT (pango_layout_get_type ()) +#define PANGO_LAYOUT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_LAYOUT, PangoLayout)) +#define PANGO_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_LAYOUT, PangoLayoutClass)) +#define PANGO_IS_LAYOUT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_LAYOUT)) +#define PANGO_IS_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_LAYOUT)) +#define PANGO_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_LAYOUT, PangoLayoutClass)) + +/* The PangoLayout and PangoLayoutClass structs are private; if you + * need to create a subclass of these, file a bug. + */ + +GType pango_layout_get_type (void) G_GNUC_CONST; +PangoLayout *pango_layout_new (PangoContext *context); +PangoLayout *pango_layout_copy (PangoLayout *src); + +PangoContext *pango_layout_get_context (PangoLayout *layout); + +void pango_layout_set_attributes (PangoLayout *layout, + PangoAttrList *attrs); +PangoAttrList *pango_layout_get_attributes (PangoLayout *layout); + +void pango_layout_set_text (PangoLayout *layout, + const char *text, + int length); +const char *pango_layout_get_text (PangoLayout *layout); + +void pango_layout_set_markup (PangoLayout *layout, + const char *markup, + int length); + +void pango_layout_set_markup_with_accel (PangoLayout *layout, + const char *markup, + int length, + gunichar accel_marker, + gunichar *accel_char); + +void pango_layout_set_font_description (PangoLayout *layout, + const PangoFontDescription *desc); + +G_CONST_RETURN PangoFontDescription *pango_layout_get_font_description (PangoLayout *layout); + +void pango_layout_set_width (PangoLayout *layout, + int width); +int pango_layout_get_width (PangoLayout *layout); +void pango_layout_set_height (PangoLayout *layout, + int height); +int pango_layout_get_height (PangoLayout *layout); +void pango_layout_set_wrap (PangoLayout *layout, + PangoWrapMode wrap); +PangoWrapMode pango_layout_get_wrap (PangoLayout *layout); +gboolean pango_layout_is_wrapped (PangoLayout *layout); +void pango_layout_set_indent (PangoLayout *layout, + int indent); +int pango_layout_get_indent (PangoLayout *layout); +void pango_layout_set_spacing (PangoLayout *layout, + int spacing); +int pango_layout_get_spacing (PangoLayout *layout); +void pango_layout_set_justify (PangoLayout *layout, + gboolean justify); +gboolean pango_layout_get_justify (PangoLayout *layout); +void pango_layout_set_auto_dir (PangoLayout *layout, + gboolean auto_dir); +gboolean pango_layout_get_auto_dir (PangoLayout *layout); +void pango_layout_set_alignment (PangoLayout *layout, + PangoAlignment alignment); +PangoAlignment pango_layout_get_alignment (PangoLayout *layout); + +void pango_layout_set_tabs (PangoLayout *layout, + PangoTabArray *tabs); + +PangoTabArray* pango_layout_get_tabs (PangoLayout *layout); + +void pango_layout_set_single_paragraph_mode (PangoLayout *layout, + gboolean setting); +gboolean pango_layout_get_single_paragraph_mode (PangoLayout *layout); + +void pango_layout_set_ellipsize (PangoLayout *layout, + PangoEllipsizeMode ellipsize); +PangoEllipsizeMode pango_layout_get_ellipsize (PangoLayout *layout); +gboolean pango_layout_is_ellipsized (PangoLayout *layout); + +int pango_layout_get_unknown_glyphs_count (PangoLayout *layout); + +void pango_layout_context_changed (PangoLayout *layout); + +void pango_layout_get_log_attrs (PangoLayout *layout, + PangoLogAttr **attrs, + gint *n_attrs); + +void pango_layout_index_to_pos (PangoLayout *layout, + int index_, + PangoRectangle *pos); +void pango_layout_index_to_line_x (PangoLayout *layout, + int index_, + gboolean trailing, + int *line, + int *x_pos); +void pango_layout_get_cursor_pos (PangoLayout *layout, + int index_, + PangoRectangle *strong_pos, + PangoRectangle *weak_pos); +void pango_layout_move_cursor_visually (PangoLayout *layout, + gboolean strong, + int old_index, + int old_trailing, + int direction, + int *new_index, + int *new_trailing); +gboolean pango_layout_xy_to_index (PangoLayout *layout, + int x, + int y, + int *index_, + int *trailing); +void pango_layout_get_extents (PangoLayout *layout, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); +void pango_layout_get_pixel_extents (PangoLayout *layout, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); +void pango_layout_get_size (PangoLayout *layout, + int *width, + int *height); +void pango_layout_get_pixel_size (PangoLayout *layout, + int *width, + int *height); + +int pango_layout_get_line_count (PangoLayout *layout); +PangoLayoutLine *pango_layout_get_line (PangoLayout *layout, + int line); +PangoLayoutLine *pango_layout_get_line_readonly (PangoLayout *layout, + int line); +GSList * pango_layout_get_lines (PangoLayout *layout); +GSList * pango_layout_get_lines_readonly (PangoLayout *layout); + + +#define PANGO_TYPE_LAYOUT_LINE (pango_layout_line_get_type ()) + +GType pango_layout_line_get_type (void) G_GNUC_CONST; + +PangoLayoutLine *pango_layout_line_ref (PangoLayoutLine *line); +void pango_layout_line_unref (PangoLayoutLine *line); + +gboolean pango_layout_line_x_to_index (PangoLayoutLine *line, + int x_pos, + int *index_, + int *trailing); +void pango_layout_line_index_to_x (PangoLayoutLine *line, + int index_, + gboolean trailing, + int *x_pos); +void pango_layout_line_get_x_ranges (PangoLayoutLine *line, + int start_index, + int end_index, + int **ranges, + int *n_ranges); +void pango_layout_line_get_extents (PangoLayoutLine *line, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); +void pango_layout_line_get_pixel_extents (PangoLayoutLine *layout_line, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); + +typedef struct _PangoLayoutIter PangoLayoutIter; + +#define PANGO_TYPE_LAYOUT_ITER (pango_layout_iter_get_type ()) + +GType pango_layout_iter_get_type (void) G_GNUC_CONST; + +PangoLayoutIter *pango_layout_get_iter (PangoLayout *layout); +PangoLayoutIter *pango_layout_iter_copy (PangoLayoutIter *iter); +void pango_layout_iter_free (PangoLayoutIter *iter); + +int pango_layout_iter_get_index (PangoLayoutIter *iter); +PangoLayoutRun *pango_layout_iter_get_run (PangoLayoutIter *iter); +PangoLayoutRun *pango_layout_iter_get_run_readonly (PangoLayoutIter *iter); +PangoLayoutLine *pango_layout_iter_get_line (PangoLayoutIter *iter); +PangoLayoutLine *pango_layout_iter_get_line_readonly (PangoLayoutIter *iter); +gboolean pango_layout_iter_at_last_line (PangoLayoutIter *iter); +PangoLayout *pango_layout_iter_get_layout (PangoLayoutIter *iter); + +gboolean pango_layout_iter_next_char (PangoLayoutIter *iter); +gboolean pango_layout_iter_next_cluster (PangoLayoutIter *iter); +gboolean pango_layout_iter_next_run (PangoLayoutIter *iter); +gboolean pango_layout_iter_next_line (PangoLayoutIter *iter); + +void pango_layout_iter_get_char_extents (PangoLayoutIter *iter, + PangoRectangle *logical_rect); +void pango_layout_iter_get_cluster_extents (PangoLayoutIter *iter, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); +void pango_layout_iter_get_run_extents (PangoLayoutIter *iter, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); +void pango_layout_iter_get_line_extents (PangoLayoutIter *iter, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); +/* All the yranges meet, unlike the logical_rect's (i.e. the yranges + * assign between-line spacing to the nearest line) + */ +void pango_layout_iter_get_line_yrange (PangoLayoutIter *iter, + int *y0_, + int *y1_); +void pango_layout_iter_get_layout_extents (PangoLayoutIter *iter, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect); +int pango_layout_iter_get_baseline (PangoLayoutIter *iter); + +G_END_DECLS + +#endif /* __PANGO_LAYOUT_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-matrix.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-matrix.h new file mode 100644 index 00000000..5909367d --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-matrix.h @@ -0,0 +1,117 @@ +/* Pango + * pango-matrix.h: Matrix manipulation routines + * + * Copyright (C) 2002, 2006 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_MATRIX_H__ +#define __PANGO_MATRIX_H__ + +#include <glib.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +typedef struct _PangoMatrix PangoMatrix; + +/** + * PangoMatrix: + * @xx: 1st component of the transformation matrix + * @xy: 2nd component of the transformation matrix + * @yx: 3rd component of the transformation matrix + * @yy: 4th component of the transformation matrix + * @x0: x translation + * @y0: y translation + * + * A structure specifying a transformation between user-space + * coordinates and device coordinates. The transformation + * is given by + * + * <programlisting> + * x_device = x_user * matrix->xx + y_user * matrix->xy + matrix->x0; + * y_device = x_user * matrix->yx + y_user * matrix->yy + matrix->y0; + * </programlisting> + * + * Since: 1.6 + **/ +struct _PangoMatrix +{ + double xx; + double xy; + double yx; + double yy; + double x0; + double y0; +}; + +/** + * PANGO_TYPE_MATRIX + * + * The GObject type for #PangoMatrix + **/ +#define PANGO_TYPE_MATRIX (pango_matrix_get_type ()) + +/** + * PANGO_MATRIX_INIT + * + * Constant that can be used to initialize a PangoMatrix to + * the identity transform. + * + * <informalexample><programlisting> + * PangoMatrix matrix = PANGO_MATRIX_INIT; + * pango_matrix_rotate (&matrix, 45.); + * </programlisting></informalexample> + * + * Since: 1.6 + **/ +#define PANGO_MATRIX_INIT { 1., 0., 0., 1., 0., 0. } + +/* for PangoRectangle */ +#include <pango/pango-types.h> + +GType pango_matrix_get_type (void) G_GNUC_CONST; + +PangoMatrix *pango_matrix_copy (const PangoMatrix *matrix); +void pango_matrix_free (PangoMatrix *matrix); + +void pango_matrix_translate (PangoMatrix *matrix, + double tx, + double ty); +void pango_matrix_scale (PangoMatrix *matrix, + double scale_x, + double scale_y); +void pango_matrix_rotate (PangoMatrix *matrix, + double degrees); +void pango_matrix_concat (PangoMatrix *matrix, + const PangoMatrix *new_matrix); +void pango_matrix_transform_point (const PangoMatrix *matrix, + double *x, + double *y); +void pango_matrix_transform_distance (const PangoMatrix *matrix, + double *dx, + double *dy); +void pango_matrix_transform_rectangle (const PangoMatrix *matrix, + PangoRectangle *rect); +void pango_matrix_transform_pixel_rectangle (const PangoMatrix *matrix, + PangoRectangle *rect); +double pango_matrix_get_font_scale_factor (const PangoMatrix *matrix) G_GNUC_PURE; + + +G_END_DECLS + +#endif /* __PANGO_MATRIX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-modules.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-modules.h new file mode 100644 index 00000000..5dbcfe9f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-modules.h @@ -0,0 +1,60 @@ +/* Pango + * pango-modules.h: + * + * Copyright (C) 1999 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_MODULES_H__ +#define __PANGO_MODULES_H__ + +#include <pango/pango-engine.h> + +G_BEGIN_DECLS + +#ifdef PANGO_ENABLE_BACKEND + +typedef struct _PangoMap PangoMap; +typedef struct _PangoMapEntry PangoMapEntry; + +typedef struct _PangoIncludedModule PangoIncludedModule; + +struct _PangoIncludedModule +{ + void (*list) (PangoEngineInfo **engines, + int *n_engines); + void (*init) (GTypeModule *module); + void (*exit) (void); + PangoEngine *(*create) (const char *id); +}; + +PangoMap * pango_find_map (PangoLanguage *language, + guint engine_type_id, + guint render_type_id); +PangoEngine * pango_map_get_engine (PangoMap *map, + PangoScript script); +void pango_map_get_engines (PangoMap *map, + PangoScript script, + GSList **exact_engines, + GSList **fallback_engines); +void pango_module_register (PangoIncludedModule *module); + +#endif /* PANGO_ENABLE_BACKEND */ + +G_END_DECLS + +#endif /* __PANGO_MODULES_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-ot.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-ot.h new file mode 100644 index 00000000..f9d787a8 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-ot.h @@ -0,0 +1,196 @@ +/* Pango + * pango-ot.h: + * + * Copyright (C) 2000,2007 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_OT_H__ +#define __PANGO_OT_H__ + +#include <pango/pangofc-font.h> +#include <pango/pango-glyph.h> +#include <pango/pango-font.h> +#include <pango/pango-script.h> +#include <pango/pango-language.h> + +G_BEGIN_DECLS + +#ifdef PANGO_ENABLE_ENGINE + +typedef guint32 PangoOTTag; + +#define PANGO_OT_TAG_MAKE(c1,c2,c3,c4) ((PangoOTTag) FT_MAKE_TAG (c1, c2, c3, c4)) +#define PANGO_OT_TAG_MAKE_FROM_STRING(s) (PANGO_OT_TAG_MAKE(((const char *) s)[0], \ + ((const char *) s)[1], \ + ((const char *) s)[2], \ + ((const char *) s)[3])) + +typedef struct _PangoOTInfo PangoOTInfo; +typedef struct _PangoOTBuffer PangoOTBuffer; +typedef struct _PangoOTGlyph PangoOTGlyph; +typedef struct _PangoOTRuleset PangoOTRuleset; +typedef struct _PangoOTFeatureMap PangoOTFeatureMap; +typedef struct _PangoOTRulesetDescription PangoOTRulesetDescription; + +typedef enum +{ + PANGO_OT_TABLE_GSUB, + PANGO_OT_TABLE_GPOS +} PangoOTTableType; + +#define PANGO_OT_ALL_GLYPHS ((guint) 0xFFFF) +#define PANGO_OT_NO_FEATURE ((guint) 0xFFFF) +#define PANGO_OT_NO_SCRIPT ((guint) 0xFFFF) +#define PANGO_OT_DEFAULT_LANGUAGE ((guint) 0xFFFF) + +#define PANGO_OT_TAG_DEFAULT_SCRIPT PANGO_OT_TAG_MAKE ('D', 'F', 'L', 'T') +#define PANGO_OT_TAG_DEFAULT_LANGUAGE PANGO_OT_TAG_MAKE ('d', 'f', 'l', 't') + +/* Note that this must match HB_GlyphItem */ +struct _PangoOTGlyph +{ + guint glyph; + guint properties; + guint cluster; + gushort component; + gushort ligID; + gushort property_cache; /* Internal */ +}; + +struct _PangoOTFeatureMap +{ + char feature_name[5]; + gulong property_bit; +}; + +struct _PangoOTRulesetDescription { + PangoScript script; + PangoLanguage *language; + const PangoOTFeatureMap *static_gsub_features; + guint n_static_gsub_features; + const PangoOTFeatureMap *static_gpos_features; + guint n_static_gpos_features; + const PangoOTFeatureMap *other_features; + guint n_other_features; +}; + + +#define PANGO_TYPE_OT_INFO (pango_ot_info_get_type ()) +#define PANGO_OT_INFO(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_OT_INFO, PangoOTInfo)) +#define PANGO_IS_OT_INFO(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_OT_INFO)) +GType pango_ot_info_get_type (void) G_GNUC_CONST; + +#define PANGO_TYPE_OT_RULESET (pango_ot_ruleset_get_type ()) +#define PANGO_OT_RULESET(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_OT_RULESET, PangoOTRuleset)) +#define PANGO_IS_OT_RULESET(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_OT_RULESET)) +GType pango_ot_ruleset_get_type (void) G_GNUC_CONST; + + +PangoOTInfo *pango_ot_info_get (FT_Face face); + +gboolean pango_ot_info_find_script (PangoOTInfo *info, + PangoOTTableType table_type, + PangoOTTag script_tag, + guint *script_index); +gboolean pango_ot_info_find_language (PangoOTInfo *info, + PangoOTTableType table_type, + guint script_index, + PangoOTTag language_tag, + guint *language_index, + guint *required_feature_index); +gboolean pango_ot_info_find_feature (PangoOTInfo *info, + PangoOTTableType table_type, + PangoOTTag feature_tag, + guint script_index, + guint language_index, + guint *feature_index); + +PangoOTTag *pango_ot_info_list_scripts (PangoOTInfo *info, + PangoOTTableType table_type); +PangoOTTag *pango_ot_info_list_languages (PangoOTInfo *info, + PangoOTTableType table_type, + guint script_index, + PangoOTTag language_tag); +PangoOTTag *pango_ot_info_list_features (PangoOTInfo *info, + PangoOTTableType table_type, + PangoOTTag tag, + guint script_index, + guint language_index); + +PangoOTBuffer *pango_ot_buffer_new (PangoFcFont *font); +void pango_ot_buffer_destroy (PangoOTBuffer *buffer); +void pango_ot_buffer_clear (PangoOTBuffer *buffer); +void pango_ot_buffer_set_rtl (PangoOTBuffer *buffer, + gboolean rtl); +void pango_ot_buffer_add_glyph (PangoOTBuffer *buffer, + guint glyph, + guint properties, + guint cluster); +void pango_ot_buffer_get_glyphs (const PangoOTBuffer *buffer, + PangoOTGlyph **glyphs, + int *n_glyphs); +void pango_ot_buffer_output (const PangoOTBuffer *buffer, + PangoGlyphString *glyphs); + +void pango_ot_buffer_set_zero_width_marks (PangoOTBuffer *buffer, + gboolean zero_width_marks); + +const PangoOTRuleset *pango_ot_ruleset_get_for_description (PangoOTInfo *info, + const PangoOTRulesetDescription *desc); +PangoOTRuleset *pango_ot_ruleset_new (PangoOTInfo *info); +PangoOTRuleset *pango_ot_ruleset_new_for (PangoOTInfo *info, + PangoScript script, + PangoLanguage *language); +PangoOTRuleset *pango_ot_ruleset_new_from_description (PangoOTInfo *info, + const PangoOTRulesetDescription *desc); +void pango_ot_ruleset_add_feature (PangoOTRuleset *ruleset, + PangoOTTableType table_type, + guint feature_index, + gulong property_bit); +gboolean pango_ot_ruleset_maybe_add_feature (PangoOTRuleset *ruleset, + PangoOTTableType table_type, + PangoOTTag feature_tag, + gulong property_bit); +guint pango_ot_ruleset_maybe_add_features (PangoOTRuleset *ruleset, + PangoOTTableType table_type, + const PangoOTFeatureMap *features, + guint n_features); +guint pango_ot_ruleset_get_feature_count (const PangoOTRuleset *ruleset, + guint *n_gsub_features, + guint *n_gpos_features); +void pango_ot_ruleset_substitute (const PangoOTRuleset *ruleset, + PangoOTBuffer *buffer); +void pango_ot_ruleset_position (const PangoOTRuleset *ruleset, + PangoOTBuffer *buffer); +PangoScript pango_ot_tag_to_script (PangoOTTag script_tag) G_GNUC_CONST; +PangoOTTag pango_ot_tag_from_script (PangoScript script) G_GNUC_CONST; +PangoLanguage *pango_ot_tag_to_language (PangoOTTag language_tag) G_GNUC_CONST; +PangoOTTag pango_ot_tag_from_language (PangoLanguage *language) G_GNUC_CONST; + +guint pango_ot_ruleset_description_hash (const PangoOTRulesetDescription *desc) G_GNUC_PURE; +gboolean pango_ot_ruleset_description_equal (const PangoOTRulesetDescription *desc1, + const PangoOTRulesetDescription *desc2) G_GNUC_PURE; +PangoOTRulesetDescription *pango_ot_ruleset_description_copy (const PangoOTRulesetDescription *desc); +void pango_ot_ruleset_description_free (PangoOTRulesetDescription *desc); + + +#endif /* PANGO_ENABLE_ENGINE */ + +G_END_DECLS + +#endif /* __PANGO_OT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-renderer.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-renderer.h new file mode 100644 index 00000000..89c45fac --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-renderer.h @@ -0,0 +1,246 @@ +/* Pango + * pango-renderer.h: Base class for rendering + * + * Copyright (C) 2004, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __PANGO_RENDERER_H_ +#define __PANGO_RENDERER_H_ + +#include <pango/pango-layout.h> + +G_BEGIN_DECLS + +#define PANGO_TYPE_RENDERER (pango_renderer_get_type()) +#define PANGO_RENDERER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_RENDERER, PangoRenderer)) +#define PANGO_IS_RENDERER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_RENDERER)) +#define PANGO_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_RENDERER, PangoRendererClass)) +#define PANGO_IS_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_RENDERER)) +#define PANGO_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_RENDERER, PangoRendererClass)) + +typedef struct _PangoRenderer PangoRenderer; +typedef struct _PangoRendererClass PangoRendererClass; +typedef struct _PangoRendererPrivate PangoRendererPrivate; + +/** + * PangoRenderPart: + * @PANGO_RENDER_PART_FOREGROUND: the text itself + * @PANGO_RENDER_PART_BACKGROUND: the area behind the text + * @PANGO_RENDER_PART_UNDERLINE: underlines + * @PANGO_RENDER_PART_STRIKETHROUGH: strikethrough lines + * + * #PangoRenderPart defines different items to render for such + * purposes as setting colors. + * + * Since: 1.8 + **/ +/* When extending, note N_RENDER_PARTS #define in pango-renderer.c */ +typedef enum +{ + PANGO_RENDER_PART_FOREGROUND, + PANGO_RENDER_PART_BACKGROUND, + PANGO_RENDER_PART_UNDERLINE, + PANGO_RENDER_PART_STRIKETHROUGH +} PangoRenderPart; + +/** + * PangoRenderer: + * @matrix: the current transformation matrix for the Renderer; may + * be %NULL, which should be treated the same as the identity matrix. + * + * #PangoRenderer is a base class for objects that are used to + * render Pango objects such as #PangoGlyphString and + * #PangoLayout. + * + * Since: 1.8 + **/ +struct _PangoRenderer +{ + /*< private >*/ + GObject parent_instance; + + PangoUnderline underline; + gboolean strikethrough; + int active_count; + + /*< public >*/ + PangoMatrix *matrix; /* May be NULL */ + + /*< private >*/ + PangoRendererPrivate *priv; +}; + +/** + * PangoRendererClass: + * @draw_glyphs: draws a #PangoGlyphString + * @draw_rectangle: draws a rectangle + * @draw_error_underline: draws a squiggly line that approximately + * covers the given rectangle in the style of an underline used to + * indicate a spelling error. + * @draw_shape: draw content for a glyph shaped with #PangoAttrShape. + * @x, @y are the coordinates of the left edge of the baseline, + * in user coordinates. + * @draw_trapezoid: draws a trapezoidal filled area + * @draw_glyph: draws a single glyph + * @part_changed: do renderer specific processing when rendering + * attributes change + * @begin: Do renderer-specific initialization before drawing + * @end: Do renderer-specific cleanup after drawing + * @prepare_run: updates the renderer for a new run + * + * Class structure for #PangoRenderer. + * + * Since: 1.8 + **/ +struct _PangoRendererClass +{ + /*< private >*/ + GObjectClass parent_class; + + /* vtable - not signals */ + /*< public >*/ + + /* All of the following have default implementations + * and take as coordinates user coordinates in Pango units + */ + void (*draw_glyphs) (PangoRenderer *renderer, + PangoFont *font, + PangoGlyphString *glyphs, + int x, + int y); + void (*draw_rectangle) (PangoRenderer *renderer, + PangoRenderPart part, + int x, + int y, + int width, + int height); + void (*draw_error_underline) (PangoRenderer *renderer, + int x, + int y, + int width, + int height); + + /* Nothing is drawn for shaped glyphs unless this is implemented */ + void (*draw_shape) (PangoRenderer *renderer, + PangoAttrShape *attr, + int x, + int y); + + /* These two must be implemented and take coordinates in + * device space as doubles. + */ + void (*draw_trapezoid) (PangoRenderer *renderer, + PangoRenderPart part, + double y1_, + double x11, + double x21, + double y2, + double x12, + double x22); + void (*draw_glyph) (PangoRenderer *renderer, + PangoFont *font, + PangoGlyph glyph, + double x, + double y); + + /* Notification of change in rendering attributes + */ + void (*part_changed) (PangoRenderer *renderer, + PangoRenderPart part); + + /* Paired around drawing operations + */ + void (*begin) (PangoRenderer *renderer); + void (*end) (PangoRenderer *renderer); + + /* Hooks into the details of layout rendering + */ + void (*prepare_run) (PangoRenderer *renderer, + PangoLayoutRun *run); + + /*< private >*/ + + /* Padding for future expansion */ + void (*_pango_reserved1) (void); + void (*_pango_reserved2) (void); + void (*_pango_reserved3) (void); + void (*_pango_reserved4) (void); +}; + +GType pango_renderer_get_type (void) G_GNUC_CONST; + +void pango_renderer_draw_layout (PangoRenderer *renderer, + PangoLayout *layout, + int x, + int y); +void pango_renderer_draw_layout_line (PangoRenderer *renderer, + PangoLayoutLine *line, + int x, + int y); +void pango_renderer_draw_glyphs (PangoRenderer *renderer, + PangoFont *font, + PangoGlyphString *glyphs, + int x, + int y); +void pango_renderer_draw_rectangle (PangoRenderer *renderer, + PangoRenderPart part, + int x, + int y, + int width, + int height); +void pango_renderer_draw_error_underline (PangoRenderer *renderer, + int x, + int y, + int width, + int height); +void pango_renderer_draw_trapezoid (PangoRenderer *renderer, + PangoRenderPart part, + double y1_, + double x11, + double x21, + double y2, + double x12, + double x22); +void pango_renderer_draw_glyph (PangoRenderer *renderer, + PangoFont *font, + PangoGlyph glyph, + double x, + double y); + +void pango_renderer_activate (PangoRenderer *renderer); +void pango_renderer_deactivate (PangoRenderer *renderer); + +void pango_renderer_part_changed (PangoRenderer *renderer, + PangoRenderPart part); + +void pango_renderer_set_color (PangoRenderer *renderer, + PangoRenderPart part, + const PangoColor *color); +PangoColor *pango_renderer_get_color (PangoRenderer *renderer, + PangoRenderPart part); + +void pango_renderer_set_matrix (PangoRenderer *renderer, + const PangoMatrix *matrix); +G_CONST_RETURN PangoMatrix *pango_renderer_get_matrix (PangoRenderer *renderer); + +PangoLayout *pango_renderer_get_layout (PangoRenderer *renderer); +PangoLayoutLine *pango_renderer_get_layout_line (PangoRenderer *renderer); + +G_END_DECLS + +#endif /* __PANGO_RENDERER_H_ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-script.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-script.h new file mode 100644 index 00000000..16e99b8c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-script.h @@ -0,0 +1,146 @@ +/* Pango + * pango-script.h: Script tag handling + * + * Copyright (C) 2002 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_SCRIPT_H__ +#define __PANGO_SCRIPT_H__ + +#include <glib.h> + +#include <pango/pango-language.h> + +G_BEGIN_DECLS + +/** + * PangoScriptIter: + * + * A #PangoScriptIter is used to iterate through a string + * and identify ranges in different scripts. + **/ +typedef struct _PangoScriptIter PangoScriptIter; + +typedef enum { /* ISO 15924 code */ + PANGO_SCRIPT_INVALID_CODE = -1, + PANGO_SCRIPT_COMMON = 0, /* Zyyy */ + PANGO_SCRIPT_INHERITED, /* Qaai */ + PANGO_SCRIPT_ARABIC, /* Arab */ + PANGO_SCRIPT_ARMENIAN, /* Armn */ + PANGO_SCRIPT_BENGALI, /* Beng */ + PANGO_SCRIPT_BOPOMOFO, /* Bopo */ + PANGO_SCRIPT_CHEROKEE, /* Cher */ + PANGO_SCRIPT_COPTIC, /* Qaac */ + PANGO_SCRIPT_CYRILLIC, /* Cyrl (Cyrs) */ + PANGO_SCRIPT_DESERET, /* Dsrt */ + PANGO_SCRIPT_DEVANAGARI, /* Deva */ + PANGO_SCRIPT_ETHIOPIC, /* Ethi */ + PANGO_SCRIPT_GEORGIAN, /* Geor (Geon, Geoa) */ + PANGO_SCRIPT_GOTHIC, /* Goth */ + PANGO_SCRIPT_GREEK, /* Grek */ + PANGO_SCRIPT_GUJARATI, /* Gujr */ + PANGO_SCRIPT_GURMUKHI, /* Guru */ + PANGO_SCRIPT_HAN, /* Hani */ + PANGO_SCRIPT_HANGUL, /* Hang */ + PANGO_SCRIPT_HEBREW, /* Hebr */ + PANGO_SCRIPT_HIRAGANA, /* Hira */ + PANGO_SCRIPT_KANNADA, /* Knda */ + PANGO_SCRIPT_KATAKANA, /* Kana */ + PANGO_SCRIPT_KHMER, /* Khmr */ + PANGO_SCRIPT_LAO, /* Laoo */ + PANGO_SCRIPT_LATIN, /* Latn (Latf, Latg) */ + PANGO_SCRIPT_MALAYALAM, /* Mlym */ + PANGO_SCRIPT_MONGOLIAN, /* Mong */ + PANGO_SCRIPT_MYANMAR, /* Mymr */ + PANGO_SCRIPT_OGHAM, /* Ogam */ + PANGO_SCRIPT_OLD_ITALIC, /* Ital */ + PANGO_SCRIPT_ORIYA, /* Orya */ + PANGO_SCRIPT_RUNIC, /* Runr */ + PANGO_SCRIPT_SINHALA, /* Sinh */ + PANGO_SCRIPT_SYRIAC, /* Syrc (Syrj, Syrn, Syre) */ + PANGO_SCRIPT_TAMIL, /* Taml */ + PANGO_SCRIPT_TELUGU, /* Telu */ + PANGO_SCRIPT_THAANA, /* Thaa */ + PANGO_SCRIPT_THAI, /* Thai */ + PANGO_SCRIPT_TIBETAN, /* Tibt */ + PANGO_SCRIPT_CANADIAN_ABORIGINAL, /* Cans */ + PANGO_SCRIPT_YI, /* Yiii */ + PANGO_SCRIPT_TAGALOG, /* Tglg */ + PANGO_SCRIPT_HANUNOO, /* Hano */ + PANGO_SCRIPT_BUHID, /* Buhd */ + PANGO_SCRIPT_TAGBANWA, /* Tagb */ + + /* Unicode-4.0 additions */ + PANGO_SCRIPT_BRAILLE, /* Brai */ + PANGO_SCRIPT_CYPRIOT, /* Cprt */ + PANGO_SCRIPT_LIMBU, /* Limb */ + PANGO_SCRIPT_OSMANYA, /* Osma */ + PANGO_SCRIPT_SHAVIAN, /* Shaw */ + PANGO_SCRIPT_LINEAR_B, /* Linb */ + PANGO_SCRIPT_TAI_LE, /* Tale */ + PANGO_SCRIPT_UGARITIC, /* Ugar */ + + /* Unicode-4.1 additions */ + PANGO_SCRIPT_NEW_TAI_LUE, /* Talu */ + PANGO_SCRIPT_BUGINESE, /* Bugi */ + PANGO_SCRIPT_GLAGOLITIC, /* Glag */ + PANGO_SCRIPT_TIFINAGH, /* Tfng */ + PANGO_SCRIPT_SYLOTI_NAGRI, /* Sylo */ + PANGO_SCRIPT_OLD_PERSIAN, /* Xpeo */ + PANGO_SCRIPT_KHAROSHTHI, /* Khar */ + + /* Unicode-5.0 additions */ + PANGO_SCRIPT_UNKNOWN, /* Zzzz */ + PANGO_SCRIPT_BALINESE, /* Bali */ + PANGO_SCRIPT_CUNEIFORM, /* Xsux */ + PANGO_SCRIPT_PHOENICIAN, /* Phnx */ + PANGO_SCRIPT_PHAGS_PA, /* Phag */ + PANGO_SCRIPT_NKO, /* Nkoo */ + + /* Unicode-5.1 additions */ + PANGO_SCRIPT_KAYAH_LI, /* Kali */ + PANGO_SCRIPT_LEPCHA, /* Lepc */ + PANGO_SCRIPT_REJANG, /* Rjng */ + PANGO_SCRIPT_SUNDANESE, /* Sund */ + PANGO_SCRIPT_SAURASHTRA, /* Saur */ + PANGO_SCRIPT_CHAM, /* Cham */ + PANGO_SCRIPT_OL_CHIKI, /* Olck */ + PANGO_SCRIPT_VAI, /* Vaii */ + PANGO_SCRIPT_CARIAN, /* Cari */ + PANGO_SCRIPT_LYCIAN, /* Lyci */ + PANGO_SCRIPT_LYDIAN /* Lydi */ +} PangoScript; + +PangoScript pango_script_for_unichar (gunichar ch) G_GNUC_CONST; + +PangoScriptIter *pango_script_iter_new (const char *text, + int length); +void pango_script_iter_get_range (PangoScriptIter *iter, + G_CONST_RETURN char **start, + G_CONST_RETURN char **end, + PangoScript *script); +gboolean pango_script_iter_next (PangoScriptIter *iter); +void pango_script_iter_free (PangoScriptIter *iter); + +PangoLanguage *pango_script_get_sample_language (PangoScript script) G_GNUC_PURE; +gboolean pango_language_includes_script (PangoLanguage *language, + PangoScript script) G_GNUC_PURE; + +G_END_DECLS + +#endif /* __PANGO_SCRIPT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-tabs.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-tabs.h new file mode 100644 index 00000000..7f52d1d0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-tabs.h @@ -0,0 +1,76 @@ +/* Pango + * pango-tabs.h: Tab-related stuff + * + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_TABS_H__ +#define __PANGO_TABS_H__ + +#include <pango/pango-types.h> + +G_BEGIN_DECLS + +typedef struct _PangoTabArray PangoTabArray; + +typedef enum +{ + PANGO_TAB_LEFT + + /* These are not supported now, but may be in the + * future. + * + * PANGO_TAB_RIGHT, + * PANGO_TAB_CENTER, + * PANGO_TAB_NUMERIC + */ +} PangoTabAlign; + +#define PANGO_TYPE_TAB_ARRAY (pango_tab_array_get_type ()) + +PangoTabArray *pango_tab_array_new (gint initial_size, + gboolean positions_in_pixels); +PangoTabArray *pango_tab_array_new_with_positions (gint size, + gboolean positions_in_pixels, + PangoTabAlign first_alignment, + gint first_position, + ...); +GType pango_tab_array_get_type (void) G_GNUC_CONST; +PangoTabArray *pango_tab_array_copy (PangoTabArray *src); +void pango_tab_array_free (PangoTabArray *tab_array); +gint pango_tab_array_get_size (PangoTabArray *tab_array); +void pango_tab_array_resize (PangoTabArray *tab_array, + gint new_size); +void pango_tab_array_set_tab (PangoTabArray *tab_array, + gint tab_index, + PangoTabAlign alignment, + gint location); +void pango_tab_array_get_tab (PangoTabArray *tab_array, + gint tab_index, + PangoTabAlign *alignment, + gint *location); +void pango_tab_array_get_tabs (PangoTabArray *tab_array, + PangoTabAlign **alignments, + gint **locations); + +gboolean pango_tab_array_get_positions_in_pixels (PangoTabArray *tab_array); + + +G_END_DECLS + +#endif /* __PANGO_TABS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-types.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-types.h new file mode 100644 index 00000000..41d68e98 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-types.h @@ -0,0 +1,146 @@ +/* Pango + * pango-types.h: + * + * Copyright (C) 1999 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_TYPES_H__ +#define __PANGO_TYPES_H__ + +#include <glib.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +typedef struct _PangoLogAttr PangoLogAttr; + +typedef struct _PangoEngineLang PangoEngineLang; +typedef struct _PangoEngineShape PangoEngineShape; + +typedef struct _PangoFont PangoFont; +typedef struct _PangoFontMap PangoFontMap; + +typedef struct _PangoRectangle PangoRectangle; + + + +/* A index of a glyph into a font. Rendering system dependent */ +typedef guint32 PangoGlyph; + + + +#define PANGO_SCALE 1024 +#define PANGO_PIXELS(d) (((int)(d) + 512) >> 10) +#define PANGO_PIXELS_FLOOR(d) (((int)(d)) >> 10) +#define PANGO_PIXELS_CEIL(d) (((int)(d) + 1023) >> 10) +/* The above expressions are just slightly wrong for floating point d; + * For example we'd expect PANGO_PIXELS(-512.5) => -1 but instead we get 0. + * That's unlikely to matter for practical use and the expression is much + * more compact and faster than alternatives that work exactly for both + * integers and floating point. + * + * PANGO_PIXELS also behaves differently for +512 and -512. + */ + +#define PANGO_UNITS_ROUND(d) \ + (((d) + (PANGO_SCALE >> 1)) & ~(PANGO_SCALE - 1)) + + +int pango_units_from_double (double d) G_GNUC_CONST; +double pango_units_to_double (int i) G_GNUC_CONST; + + + +/* A rectangle. Used to store logical and physical extents of glyphs, + * runs, strings, etc. + */ +struct _PangoRectangle +{ + int x; + int y; + int width; + int height; +}; + +/* Macros to translate from extents rectangles to ascent/descent/lbearing/rbearing + */ +#define PANGO_ASCENT(rect) (-(rect).y) +#define PANGO_DESCENT(rect) ((rect).y + (rect).height) +#define PANGO_LBEARING(rect) ((rect).x) +#define PANGO_RBEARING(rect) ((rect).x + (rect).width) + +void pango_extents_to_pixels (PangoRectangle *inclusive, + PangoRectangle *nearest); + +/** + * PangoDirection: + * @PANGO_DIRECTION_LTR: A strong left-to-right direction + * @PANGO_DIRECTION_RTL: A strong right-to-left direction + * @PANGO_DIRECTION_TTB_LTR: Deprecated value; treated the + * same as %PANGO_DIRECTION_RTL. + * @PANGO_DIRECTION_TTB_RTL: Deprecated value; treated the + * same as %PANGO_DIRECTION_LTR + * @PANGO_DIRECTION_WEAK_LTR: A weak left-to-right direction + * @PANGO_DIRECTION_WEAK_RTL: A weak right-to-left direction + * @PANGO_DIRECTION_NEUTRAL: No direction specified + * + * The #PangoDirection type represents a direction in the + * Unicode bidirectional algorithm; not every value in this + * enumeration makes sense for every usage of #PangoDirection; + * for example, the return value of pango_unichar_direction() + * and pango_find_base_dir() cannot be %PANGO_DIRECTION_WEAK_LTR + * or %PANGO_DIRECTION_WEAK_RTL, since every character is either + * neutral or has a strong direction; on the other hand + * %PANGO_DIRECTION_NEUTRAL doesn't make sense to pass + * to pango_itemize_with_base_dir(). + * + * The %PANGO_DIRECTION_TTB_LTR, %PANGO_DIRECTION_TTB_RTL + * values come from an earlier interpretation of this + * enumeration as the writing direction of a block of + * text and are no longer used; See #PangoGravity for how + * vertical text is handled in Pango. + **/ +typedef enum { + PANGO_DIRECTION_LTR, + PANGO_DIRECTION_RTL, + PANGO_DIRECTION_TTB_LTR, + PANGO_DIRECTION_TTB_RTL, + PANGO_DIRECTION_WEAK_LTR, + PANGO_DIRECTION_WEAK_RTL, + PANGO_DIRECTION_NEUTRAL +} PangoDirection; + +PangoDirection pango_unichar_direction (gunichar ch) G_GNUC_CONST; +PangoDirection pango_find_base_dir (const gchar *text, + gint length); + +#ifndef PANGO_DISABLE_DEPRECATED +gboolean pango_get_mirror_char (gunichar ch, + gunichar *mirrored_ch); +#endif + + +#include <pango/pango-gravity.h> +#include <pango/pango-language.h> +#include <pango/pango-matrix.h> +#include <pango/pango-script.h> + + +G_END_DECLS + +#endif /* __PANGO_TYPES_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-utils.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-utils.h new file mode 100644 index 00000000..41a8bbb0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango-utils.h @@ -0,0 +1,143 @@ +/* Pango + * pango-utils.c: Utilities for internal functions and modules + * + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_UTILS_H__ +#define __PANGO_UTILS_H__ + +#include <stdio.h> +#include <glib.h> +#include <pango/pango-font.h> + +G_BEGIN_DECLS + +char ** pango_split_file_list (const char *str); + +char *pango_trim_string (const char *str); +gint pango_read_line (FILE *stream, + GString *str); +gboolean pango_skip_space (const char **pos); +gboolean pango_scan_word (const char **pos, + GString *out); +gboolean pango_scan_string (const char **pos, + GString *out); +gboolean pango_scan_int (const char **pos, + int *out); + +#ifdef PANGO_ENABLE_BACKEND +char * pango_config_key_get (const char *key); +void pango_lookup_aliases (const char *fontname, + char ***families, + int *n_families); +#endif /* PANGO_ENABLE_BACKEND */ + +gboolean pango_parse_enum (GType type, + const char *str, + int *value, + gboolean warn, + char **possible_values); + +/* Functions for parsing textual representations + * of PangoFontDescription fields. They return TRUE if the input string + * contains a valid value, which then has been assigned to the corresponding + * field in the PangoFontDescription. If the warn parameter is TRUE, + * a warning is printed (with g_warning) if the string does not + * contain a valid value. + */ +gboolean pango_parse_style (const char *str, + PangoStyle *style, + gboolean warn); +gboolean pango_parse_variant (const char *str, + PangoVariant *variant, + gboolean warn); +gboolean pango_parse_weight (const char *str, + PangoWeight *weight, + gboolean warn); +gboolean pango_parse_stretch (const char *str, + PangoStretch *stretch, + gboolean warn); + +#ifdef PANGO_ENABLE_BACKEND + +/* On Unix, return the name of the "pango" subdirectory of SYSCONFDIR + * (which is set at compile time). On Win32, return the Pango + * installation directory (which is set at installation time, and + * stored in the registry). The returned string should not be + * g_free'd. + */ +G_CONST_RETURN char * pango_get_sysconf_subdirectory (void) G_GNUC_PURE; + +/* Ditto for LIBDIR/pango. On Win32, use the same Pango + * installation directory. This returned string should not be + * g_free'd either. + */ +G_CONST_RETURN char * pango_get_lib_subdirectory (void) G_GNUC_PURE; + +#endif /* PANGO_ENABLE_BACKEND */ + +/* Hint line position and thickness. + */ +void pango_quantize_line_geometry (int *thickness, + int *position); + +/* A routine from fribidi that we either wrap or provide ourselves. + */ +guint8 * pango_log2vis_get_embedding_levels (const gchar *text, + int length, + PangoDirection *pbase_dir); + +/* Unicode characters that are zero-width and should not be rendered + * normally. + */ +gboolean pango_is_zero_width (gunichar ch) G_GNUC_CONST; + +/* Pango version checking */ + +/* Encode a Pango version as an integer */ +#define PANGO_VERSION_ENCODE(major, minor, micro) ( \ + ((major) * 10000) \ + + ((minor) * 100) \ + + ((micro) * 1)) + +/* Encoded version of Pango at compile-time */ +#define PANGO_VERSION PANGO_VERSION_ENCODE( \ + PANGO_VERSION_MAJOR, \ + PANGO_VERSION_MINOR, \ + PANGO_VERSION_MICRO) + +/* Check that compile-time Pango is as new as required */ +#define PANGO_VERSION_CHECK(major,minor,micro) \ + (PANGO_VERSION >= PANGO_VERSION_ENCODE(major,minor,micro)) + + +/* Return encoded version of Pango at run-time */ +int pango_version (void) G_GNUC_CONST; + +/* Return run-time Pango version as an string */ +G_CONST_RETURN char * pango_version_string (void) G_GNUC_CONST; + +/* Check that run-time Pango is as new as required */ +G_CONST_RETURN char * pango_version_check (int required_major, + int required_minor, + int required_micro) G_GNUC_CONST; + +G_END_DECLS + +#endif /* __PANGO_UTILS_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango.h new file mode 100644 index 00000000..5b5ef1e4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pango.h @@ -0,0 +1,47 @@ +/* Pango + * pango.h: + * + * Copyright (C) 1999 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_H__ +#define __PANGO_H__ + +#include <pango/pango-attributes.h> +#include <pango/pango-break.h> +#include <pango/pango-context.h> +#include <pango/pango-coverage.h> +#include <pango/pango-engine.h> +#include <pango/pango-enum-types.h> +#include <pango/pango-features.h> +#include <pango/pango-font.h> +#include <pango/pango-fontmap.h> +#include <pango/pango-fontset.h> +#include <pango/pango-glyph.h> +#include <pango/pango-glyph-item.h> +#include <pango/pango-gravity.h> +#include <pango/pango-item.h> +#include <pango/pango-layout.h> +#include <pango/pango-matrix.h> +#include <pango/pango-renderer.h> +#include <pango/pango-script.h> +#include <pango/pango-tabs.h> +#include <pango/pango-types.h> +#include <pango/pango-utils.h> + +#endif /* __PANGO_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangocairo.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangocairo.h new file mode 100644 index 00000000..364d8019 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangocairo.h @@ -0,0 +1,147 @@ +/* Pango + * pangocairo.h: + * + * Copyright (C) 1999, 2004 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGOCAIRO_H__ +#define __PANGOCAIRO_H__ + +#include <pango/pango.h> +#include <cairo.h> + +G_BEGIN_DECLS + +/** + * PangoCairoFont: + * + * #PangoCairoFont is an interface exported by fonts for + * use with Cairo. The actual type of the font will depend + * on the particular font technology Cairo was compiled to use. + * + * Since: 1.18 + **/ +typedef struct _PangoCairoFont PangoCairoFont; +#define PANGO_TYPE_CAIRO_FONT (pango_cairo_font_get_type ()) +#define PANGO_CAIRO_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CAIRO_FONT, PangoCairoFont)) +#define PANGO_IS_CAIRO_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CAIRO_FONT)) + +/** + * PangoCairoFontMap: + * + * #PangoCairoFontMap is an interface exported by font maps for + * use with Cairo. The actual type of the font map will depend + * on the particular font technology Cairo was compiled to use. + * + * Since: 1.10 + **/ +typedef struct _PangoCairoFontMap PangoCairoFontMap; +#define PANGO_TYPE_CAIRO_FONT_MAP (pango_cairo_font_map_get_type ()) +#define PANGO_CAIRO_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CAIRO_FONT_MAP, PangoCairoFontMap)) +#define PANGO_IS_CAIRO_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CAIRO_FONT_MAP)) + +typedef void (* PangoCairoShapeRendererFunc) (cairo_t *cr, + PangoAttrShape *attr, + gboolean do_path, + gpointer data); + +/* + * PangoCairoFontMap + */ +GType pango_cairo_font_map_get_type (void) G_GNUC_CONST; + +PangoFontMap *pango_cairo_font_map_new (void); +PangoFontMap *pango_cairo_font_map_new_for_font_type (cairo_font_type_t fonttype); +PangoFontMap *pango_cairo_font_map_get_default (void); +cairo_font_type_t pango_cairo_font_map_get_font_type (PangoCairoFontMap *fontmap); + +void pango_cairo_font_map_set_resolution (PangoCairoFontMap *fontmap, + double dpi); +double pango_cairo_font_map_get_resolution (PangoCairoFontMap *fontmap); +PangoContext *pango_cairo_font_map_create_context (PangoCairoFontMap *fontmap); + +/* + * PangoCairoFont + */ +GType pango_cairo_font_get_type (void) G_GNUC_CONST; + +cairo_scaled_font_t *pango_cairo_font_get_scaled_font (PangoCairoFont *font); + +/* Update a Pango context for the current state of a cairo context + */ +void pango_cairo_update_context (cairo_t *cr, + PangoContext *context); + +void pango_cairo_context_set_font_options (PangoContext *context, + const cairo_font_options_t *options); +const cairo_font_options_t *pango_cairo_context_get_font_options (PangoContext *context); + +void pango_cairo_context_set_resolution (PangoContext *context, + double dpi); +double pango_cairo_context_get_resolution (PangoContext *context); + +void pango_cairo_context_set_shape_renderer (PangoContext *context, + PangoCairoShapeRendererFunc func, + gpointer data, + GDestroyNotify dnotify); +PangoCairoShapeRendererFunc pango_cairo_context_get_shape_renderer (PangoContext *context, + gpointer *data); + +/* Convenience + */ +PangoLayout *pango_cairo_create_layout (cairo_t *cr); +void pango_cairo_update_layout (cairo_t *cr, + PangoLayout *layout); + +/* + * Rendering + */ +void pango_cairo_show_glyph_string (cairo_t *cr, + PangoFont *font, + PangoGlyphString *glyphs); +void pango_cairo_show_layout_line (cairo_t *cr, + PangoLayoutLine *line); +void pango_cairo_show_layout (cairo_t *cr, + PangoLayout *layout); + +void pango_cairo_show_error_underline (cairo_t *cr, + double x, + double y, + double width, + double height); + +/* + * Rendering to a path + */ +void pango_cairo_glyph_string_path (cairo_t *cr, + PangoFont *font, + PangoGlyphString *glyphs); +void pango_cairo_layout_line_path (cairo_t *cr, + PangoLayoutLine *line); +void pango_cairo_layout_path (cairo_t *cr, + PangoLayout *layout); + +void pango_cairo_error_underline_path (cairo_t *cr, + double x, + double y, + double width, + double height); + +G_END_DECLS + +#endif /* __PANGOCAIRO_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangofc-decoder.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangofc-decoder.h new file mode 100644 index 00000000..8e341469 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangofc-decoder.h @@ -0,0 +1,110 @@ +/* Pango + * pangofc-decoder.h: Custom encoders/decoders on a per-font basis. + * + * Copyright (C) 2004 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_DECODER_H_ +#define __PANGO_DECODER_H_ + +#include <pango/pangofc-font.h> + +G_BEGIN_DECLS + +#define PANGO_TYPE_FC_DECODER (pango_fc_decoder_get_type()) +#define PANGO_FC_DECODER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FC_DECODER, PangoFcDecoder)) +#define PANGO_IS_FC_DECODER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FC_DECODER)) + +typedef struct _PangoFcDecoder PangoFcDecoder; +typedef struct _PangoFcDecoderClass PangoFcDecoderClass; + +#define PANGO_FC_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FC_DECODER, PangoFcDecoderClass)) +#define PANGO_IS_FC_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FC_DECODER)) +#define PANGO_FC_DECODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FC_DECODER, PangoFcDecoderClass)) + +/** + * PangoFcDecoder: + * + * #PangoFcDecoder is a virtual base class that implementations will + * inherit from. It's the interface that is used to define a custom + * encoding for a font. These objects are created in your code from a + * function callback that was originally registered with + * pango_fc_font_map_add_decoder_find_func(). Pango requires + * information about the supported charset for a font as well as the + * individual character to glyph conversions. Pango gets that + * information via the #get_charset and #get_glyph callbacks into your + * object implementation. + * + * Since: 1.6 + **/ +struct _PangoFcDecoder +{ + /*< private >*/ + GObject parent_instance; +}; + +/** + * PangoFcDecoderClass: + * @get_charset: This returns an #FcCharset given a #PangoFcFont that + * includes a list of supported characters in the font. The + * #FcCharSet that is returned should be an internal reference to your + * code. Pango will not free this structure. It is important that + * you make this callback fast because this callback is called + * separately for each character to determine Unicode coverage. + * @get_glyph: This returns a single #PangoGlyph for a given Unicode + * code point. + * + * Class structure for #PangoFcDecoder. + * + * Since: 1.6 + **/ +struct _PangoFcDecoderClass +{ + /*< private >*/ + GObjectClass parent_class; + + /* vtable - not signals */ + /*< public >*/ + FcCharSet *(*get_charset) (PangoFcDecoder *decoder, + PangoFcFont *fcfont); + PangoGlyph (*get_glyph) (PangoFcDecoder *decoder, + PangoFcFont *fcfont, + guint32 wc); + + /*< private >*/ + + /* Padding for future expansion */ + void (*_pango_reserved1) (void); + void (*_pango_reserved2) (void); + void (*_pango_reserved3) (void); + void (*_pango_reserved4) (void); +}; + +GType pango_fc_decoder_get_type (void) G_GNUC_CONST; + +FcCharSet *pango_fc_decoder_get_charset (PangoFcDecoder *decoder, + PangoFcFont *fcfont); + +PangoGlyph pango_fc_decoder_get_glyph (PangoFcDecoder *decoder, + PangoFcFont *fcfont, + guint32 wc); + +G_END_DECLS + +#endif /* __PANGO_DECODER_H_ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangofc-font.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangofc-font.h new file mode 100644 index 00000000..ae16b168 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangofc-font.h @@ -0,0 +1,151 @@ +/* Pango + * pangofc-font.h: Base fontmap type for fontconfig-based backends + * + * Copyright (C) 2003 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_FC_FONT_H__ +#define __PANGO_FC_FONT_H__ + +#include <ft2build.h> +#include FT_FREETYPE_H +#include <fontconfig/fontconfig.h> +#include <pango/pango-font.h> +#include <pango/pango-fontmap.h> +#include <pango/pango-glyph.h> + +G_BEGIN_DECLS + +#define PANGO_TYPE_FC_FONT (pango_fc_font_get_type ()) +#define PANGO_FC_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FC_FONT, PangoFcFont)) +#define PANGO_IS_FC_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FC_FONT)) + +typedef struct _PangoFcFont PangoFcFont; +typedef struct _PangoFcFontClass PangoFcFontClass; + +#if defined(PANGO_ENABLE_ENGINE) || defined(PANGO_ENABLE_BACKEND) + +/** + * PANGO_RENDER_TYPE_FC: + * + * A string constant used to identify shape engines that work + * with the fontconfig based backends. See the @engine_type field + * of #PangoEngineInfo. + **/ +#define PANGO_RENDER_TYPE_FC "PangoRenderFc" + +#ifdef PANGO_ENABLE_BACKEND + +#define PANGO_FC_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FC_FONT, PangoFcFontClass)) +#define PANGO_IS_FC_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FC_FONT)) +#define PANGO_FC_FONT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FC_FONT, PangoFcFontClass)) + +/** + * PangoFcFont: + * + * #PangoFcFont is a base class for font implementations + * using the Fontconfig and FreeType libraries and is used in + * conjunction with #PangoFcFontMap. When deriving from this + * class, you need to implement all of its virtual functions + * other than shutdown() along with the get_glyph_extents() + * virtual function from #PangoFont. + **/ +struct _PangoFcFont +{ + PangoFont parent_instance; + + FcPattern *font_pattern; /* fully resolved pattern */ + PangoFontMap *fontmap; /* associated map */ + gpointer priv; /* used internally */ + PangoMatrix matrix; /* used internally */ + PangoFontDescription *description; + + GSList *metrics_by_lang; + + guint is_hinted : 1; + guint is_transformed : 1; +}; + +/** + * PangoFcFontClass: + * @lock_face: Returns the FT_Face of the font and increases + * the reference count for the face by one. + * @unlock_face: Decreases the reference count for the + * FT_Face of the font by one. When the count is zero, + * the #PangoFcFont subclass is allowed to free the + * FT_Face. + * @has_char: Return %TRUE if the the font contains a glyph + * corresponding to the specified character. + * @get_glyph: Gets the glyph that corresponds to the given + * Unicode character. + * @get_unknown_glyph: Gets the glyph that should be used to + * display an unknown-glyph indication for the specified + * Unicode character. + * May be %NULL. + * @shutdown: Performs any font-specific shutdown code that + * needs to be done when pango_fc_font_map_shutdown is called. + * May be %NULL. + * + * Class structure for #PangoFcFont. + **/ +struct _PangoFcFontClass +{ + /*< private >*/ + PangoFontClass parent_class; + + /*< public >*/ + FT_Face (*lock_face) (PangoFcFont *font); + void (*unlock_face) (PangoFcFont *font); + gboolean (*has_char) (PangoFcFont *font, + gunichar wc); + guint (*get_glyph) (PangoFcFont *font, + gunichar wc); + PangoGlyph (*get_unknown_glyph) (PangoFcFont *font, + gunichar wc); + void (*shutdown) (PangoFcFont *font); + /*< private >*/ + + /* Padding for future expansion */ + void (*_pango_reserved1) (void); + void (*_pango_reserved2) (void); + void (*_pango_reserved3) (void); + void (*_pango_reserved4) (void); +}; + +#endif /* PANGO_ENABLE_BACKEND */ + +gboolean pango_fc_font_has_char (PangoFcFont *font, + gunichar wc); +guint pango_fc_font_get_glyph (PangoFcFont *font, + gunichar wc); +#ifndef PANGO_DISABLE_DEPRECATED +PangoGlyph pango_fc_font_get_unknown_glyph (PangoFcFont *font, + gunichar wc); +#endif /* PANGO_DISABLE_DEPRECATED */ +void pango_fc_font_kern_glyphs (PangoFcFont *font, + PangoGlyphString *glyphs); + +#endif /* PANGO_ENABLE_ENGINE || PANGO_ENABLE_BACKEND */ + +GType pango_fc_font_get_type (void) G_GNUC_CONST; + +FT_Face pango_fc_font_lock_face (PangoFcFont *font); +void pango_fc_font_unlock_face (PangoFcFont *font); + +G_END_DECLS +#endif /* __PANGO_FC_FONT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangofc-fontmap.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangofc-fontmap.h new file mode 100644 index 00000000..69a56ade --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangofc-fontmap.h @@ -0,0 +1,203 @@ +/* Pango + * pangofc-fontmap.h: Base fontmap type for fontconfig-based backends + * + * Copyright (C) 2003 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGO_FC_FONT_MAP_H__ +#define __PANGO_FC_FONT_MAP_H__ + +#include <fontconfig/fontconfig.h> +#include <pango/pango-fontmap.h> +#include <pango/pangofc-decoder.h> +#include <pango/pangofc-font.h> + +G_BEGIN_DECLS + +#define PANGO_TYPE_FC_FONT_MAP (pango_fc_font_map_get_type ()) +#define PANGO_FC_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FC_FONT_MAP, PangoFcFontMap)) +#define PANGO_IS_FC_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FC_FONT_MAP)) + +typedef struct _PangoFcFontMap PangoFcFontMap; +typedef struct _PangoFcFontMapClass PangoFcFontMapClass; +typedef struct _PangoFcFontMapPrivate PangoFcFontMapPrivate; + +#ifdef PANGO_ENABLE_BACKEND + +#define PANGO_FC_FONT_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FC_FONT_MAP, PangoFcFontMapClass)) +#define PANGO_IS_FC_FONT_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FC_FONT_MAP)) +#define PANGO_FC_FONT_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FC_FONT_MAP, PangoFcFontMapClass)) + +/** + * PangoFcFontMap: + * + * #PangoFcFontMap is a base class for font map implementations + * using the Fontconfig and FreeType libraries. To create a new + * backend using Fontconfig and FreeType, you derive from this class + * and implement a new_font() virtual function that creates an + * instance deriving from #PangoFcFont. + **/ +struct _PangoFcFontMap +{ + PangoFontMap parent_instance; + + PangoFcFontMapPrivate *priv; +}; + +/** + * PangoFcFontMapClass: + * @default_substitute: Substitutes in default values for + * unspecified fields in a #FcPattern. This will be called + * prior to creating a font for the pattern. May be %NULL. + * Deprecated in favor of @context_substitute(). + * @new_font: Creates a new #PangoFcFont for the specified + * pattern of the appropriate type for this font map. The + * @pattern argument must be passed to the "pattern" property + * of #PangoFcFont when you call g_object_new(). Deprecated + * in favor of @create_font(). + * @get_resolution: Gets the resolution (the scale factor + * between logical and absolute font sizes) that the backend + * will use for a particular fontmap and context. @context + * may be null. + * @context_key_get: Gets an opaque key holding backend + * specific options for the context that will affect + * fonts created by create_font(). The result must point to + * persistant storage owned by the fontmap. This key + * is used to index hash tables used to look up fontsets + * and fonts. + * @context_key_copy: Copies a context key. Pango uses this + * to make a persistant copy of the value returned from + * @context_key_get. + * @context_key_free: Frees a context key copied with + * @context_key_copy. + * @context_key_hash: Gets a hash value for a context key + * @context_key_equal: Compares two context keys for equality. + * @create_font: Creates a new #PangoFcFont for the specified + * pattern of the appropriate type for this font map using + * information from the context that is passed in. The + * @pattern argument must be passed to the "pattern" property + * of #PangoFcFont when you call g_object_new(). Deprecated + * in favor of @create_font(). If %NULL, new_font() is used. + * @context_substitute: Substitutes in default values for + * unspecified fields in a #FcPattern. This will be called + * prior to creating a font for the pattern. May be %NULL. + * + * Class structure for #PangoFcFontMap. + **/ +struct _PangoFcFontMapClass +{ + /*< private >*/ + PangoFontMapClass parent_class; + + /*< public >*/ + /* Deprecated in favor of context_substitute */ + void (*default_substitute) (PangoFcFontMap *fontmap, + FcPattern *pattern); + /* Deprecated in favor of create_font */ + PangoFcFont *(*new_font) (PangoFcFontMap *fontmap, + FcPattern *pattern); + + double (*get_resolution) (PangoFcFontMap *fcfontmap, + PangoContext *context); + + gconstpointer (*context_key_get) (PangoFcFontMap *fcfontmap, + PangoContext *context); + gpointer (*context_key_copy) (PangoFcFontMap *fcfontmap, + gconstpointer key); + void (*context_key_free) (PangoFcFontMap *fcfontmap, + gpointer key); + guint32 (*context_key_hash) (PangoFcFontMap *fcfontmap, + gconstpointer key); + gboolean (*context_key_equal) (PangoFcFontMap *fcfontmap, + gconstpointer key_a, + gconstpointer key_b); + + void (*context_substitute) (PangoFcFontMap *fontmap, + PangoContext *context, + FcPattern *pattern); + PangoFcFont *(*create_font) (PangoFcFontMap *fontmap, + PangoContext *context, + const PangoFontDescription *desc, + FcPattern *pattern); + /*< private >*/ + + /* Padding for future expansion */ + void (*_pango_reserved1) (void); + void (*_pango_reserved2) (void); + void (*_pango_reserved3) (void); + void (*_pango_reserved4) (void); +}; + +PangoContext * pango_fc_font_map_create_context (PangoFcFontMap *fcfontmap); +void pango_fc_font_map_cache_clear (PangoFcFontMap *fcfontmap); +void pango_fc_font_map_shutdown (PangoFcFontMap *fcfontmap); + +#endif + +GType pango_fc_font_map_get_type (void) G_GNUC_CONST; + +/** + * PangoFcDecoderFindFunc: + * @pattern: a fully resolved #FcPattern specifying the font on the system + * @user_data: user data passed to pango_fc_font_map_add_decoder_find_func() + * + * Callback function passed to pango_fc_font_map_add_decoder_find_func(). + * + * Return value: a new reference to a custom decoder for this pattern, + * or %NULL if the default decoder handling should be used. + **/ +typedef PangoFcDecoder * (*PangoFcDecoderFindFunc) (FcPattern *pattern, + gpointer user_data); + +void pango_fc_font_map_add_decoder_find_func (PangoFcFontMap *fcfontmap, + PangoFcDecoderFindFunc findfunc, + gpointer user_data, + GDestroyNotify dnotify); + +PangoFontDescription *pango_fc_font_description_from_pattern (FcPattern *pattern, + gboolean include_size); + +/** + * PANGO_FC_GRAVITY: + * + * String representing a fontconfig property name that Pango sets on any + * fontconfig pattern it passes to fontconfig if a #PangoGravity other + * than %PangoGravitySouth is desired. + * + * The property will have a #PangoGravity value as a string, like "east". + * + * Since: 1.20 + */ +#define PANGO_FC_GRAVITY "pangogravity" + +/** + * PANGO_FC_VERSION: + * + * String representing a fontconfig property name that Pango sets on any + * fontconfig pattern it passes to fontconfig. + * + * The property will have an integer value equal to what + * pango_version() returns. + * + * Since: 1.20 + */ +#define PANGO_FC_VERSION "pangoversion" + +G_END_DECLS + +#endif /* __PANGO_FC_FONT_MAP_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangoft2.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangoft2.h new file mode 100644 index 00000000..27acfa6e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangoft2.h @@ -0,0 +1,110 @@ +/* Pango + * pangoft2.h: + * + * Copyright (C) 1999 Red Hat Software + * Copyright (C) 2000 Tor Lillqvist + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGOFT2_H__ +#define __PANGOFT2_H__ + +#include <fontconfig/fontconfig.h> + +#include <pango/pango-layout.h> +#include <pango/pangofc-font.h> + +G_BEGIN_DECLS + +#ifndef PANGO_DISABLE_DEPRECATED +#define PANGO_RENDER_TYPE_FT2 "PangoRenderFT2" +#endif + +#define PANGO_TYPE_FT2_FONT_MAP (pango_ft2_font_map_get_type ()) +#define PANGO_FT2_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FT2_FONT_MAP, PangoFT2FontMap)) +#define PANGO_FT2_IS_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FT2_FONT_MAP)) + +typedef struct _PangoFT2FontMap PangoFT2FontMap; + +typedef void (*PangoFT2SubstituteFunc) (FcPattern *pattern, + gpointer data); + +/* Calls for applications */ + +void pango_ft2_render (FT_Bitmap *bitmap, + PangoFont *font, + PangoGlyphString *glyphs, + gint x, + gint y); +void pango_ft2_render_transformed (FT_Bitmap *bitmap, + const PangoMatrix *matrix, + PangoFont *font, + PangoGlyphString *glyphs, + int x, + int y); + +void pango_ft2_render_layout_line (FT_Bitmap *bitmap, + PangoLayoutLine *line, + int x, + int y); +void pango_ft2_render_layout_line_subpixel (FT_Bitmap *bitmap, + PangoLayoutLine *line, + int x, + int y); +void pango_ft2_render_layout (FT_Bitmap *bitmap, + PangoLayout *layout, + int x, + int y); +void pango_ft2_render_layout_subpixel (FT_Bitmap *bitmap, + PangoLayout *layout, + int x, + int y); + +GType pango_ft2_font_map_get_type (void) G_GNUC_CONST; + +PangoFontMap *pango_ft2_font_map_new (void); +void pango_ft2_font_map_set_resolution (PangoFT2FontMap *fontmap, + double dpi_x, + double dpi_y); +void pango_ft2_font_map_set_default_substitute (PangoFT2FontMap *fontmap, + PangoFT2SubstituteFunc func, + gpointer data, + GDestroyNotify notify); +void pango_ft2_font_map_substitute_changed (PangoFT2FontMap *fontmap); +PangoContext *pango_ft2_font_map_create_context (PangoFT2FontMap *fontmap); + + +/* API for rendering modules + */ +#ifndef PANGO_DISABLE_DEPRECATED +PangoContext *pango_ft2_get_context (double dpi_x, + double dpi_y); +PangoFontMap *pango_ft2_font_map_for_display (void); +void pango_ft2_shutdown_display (void); + +PangoGlyph pango_ft2_get_unknown_glyph (PangoFont *font); +int pango_ft2_font_get_kerning (PangoFont *font, + PangoGlyph left, + PangoGlyph right); +FT_Face pango_ft2_font_get_face (PangoFont *font); +PangoCoverage *pango_ft2_font_get_coverage (PangoFont *font, + PangoLanguage *language); +#endif /* PANGO_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __PANGOFT2_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangox.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangox.h new file mode 100644 index 00000000..dc41b61e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangox.h @@ -0,0 +1,131 @@ +/* Pango + * pangox.h: + * + * Copyright (C) 1999 Red Hat Software + * Copyright (C) 2000 SuSE Linux Ltd + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGOX_H__ +#define __PANGOX_H__ + +#include <glib.h> +#include <pango/pango-layout.h> + +G_BEGIN_DECLS + +#include <X11/Xlib.h> + +#ifndef PANGO_DISABLE_DEPRECATED + +#define PANGO_RENDER_TYPE_X "PangoRenderX" + +typedef GC (*PangoGetGCFunc) (PangoContext *context, PangoColor *color, GC base_gc); +typedef void (*PangoFreeGCFunc) (PangoContext *context, GC gc); + +/* Calls for applications + */ +PangoContext * pango_x_get_context (Display *display); +void pango_x_context_set_funcs (PangoContext *context, + PangoGetGCFunc get_gc_func, + PangoFreeGCFunc free_gc_func); + +PangoFont * pango_x_load_font (Display *display, + const gchar *spec); +void pango_x_render (Display *display, + Drawable d, + GC gc, + PangoFont *font, + PangoGlyphString *glyphs, + gint x, + gint y); +void pango_x_render_layout_line (Display *display, + Drawable drawable, + GC gc, + PangoLayoutLine *line, + int x, + int y); +void pango_x_render_layout (Display *display, + Drawable drawable, + GC gc, + PangoLayout *layout, + int x, + int y); + +/* API for rendering modules + */ +typedef guint16 PangoXSubfont; + +#define PANGO_X_MAKE_GLYPH(subfont,index_) ((subfont)<<16 | (index_)) +#define PANGO_X_GLYPH_SUBFONT(glyph) ((glyph)>>16) +#define PANGO_X_GLYPH_INDEX(glyph) ((glyph) & 0xffff) + +int pango_x_list_subfonts (PangoFont *font, + char **charsets, + int n_charsets, + PangoXSubfont **subfont_ids, + int **subfont_charsets); +gboolean pango_x_has_glyph (PangoFont *font, + PangoGlyph glyph); +PangoGlyph pango_x_get_unknown_glyph (PangoFont *font); + +#ifdef PANGO_ENABLE_ENGINE +PangoGlyph pango_x_font_get_unknown_glyph (PangoFont *font, + gunichar wc); +#endif /* PANGO_ENABLE_ENGINE */ + +/* API for libraries that want to use PangoX mixed with classic X fonts. + */ +typedef struct _PangoXFontCache PangoXFontCache; + +PangoXFontCache *pango_x_font_cache_new (Display *display); +void pango_x_font_cache_free (PangoXFontCache *cache); + +XFontStruct * pango_x_font_cache_load (PangoXFontCache *cache, + const char *xlfd); +void pango_x_font_cache_unload (PangoXFontCache *cache, + XFontStruct *fs); + +PangoFontMap * pango_x_font_map_for_display (Display *display); +void pango_x_shutdown_display (Display *display); +PangoXFontCache *pango_x_font_map_get_font_cache (PangoFontMap *font_map); + +char *pango_x_font_subfont_xlfd (PangoFont *font, + PangoXSubfont subfont_id); + + +gboolean pango_x_find_first_subfont (PangoFont *font, + char **charsets, + int n_charsets, + PangoXSubfont *rfont); + +void pango_x_fallback_shape (PangoFont *font, + PangoGlyphString *glyphs, + const char *text, + int n_chars); + +gboolean pango_x_apply_ligatures (PangoFont *font, + PangoXSubfont subfont, + gunichar **glyphs, + int *n_glyphs, + int **clusters); + +#endif /* PANGO_DISABLE_DEPRECATED */ + +G_END_DECLS + +#endif /* __PANGOX_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangoxft-render.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangoxft-render.h new file mode 100644 index 00000000..87c26a75 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangoxft-render.h @@ -0,0 +1,141 @@ +/* Pango + * pangoxft-render.h: Rendering routines for the Xft library + * + * Copyright (C) 2004 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGOXFT_RENDER_H__ +#define __PANGOXFT_RENDER_H__ + +#include <pango/pango-renderer.h> + +G_BEGIN_DECLS + +#define _XFT_NO_COMPAT_ +#include <X11/Xlib.h> +#include <X11/Xft/Xft.h> +#if defined(XftVersion) && XftVersion >= 20000 +#else +#error "must have Xft version 2 or newer" +#endif + +typedef struct _PangoXftRenderer PangoXftRenderer; +typedef struct _PangoXftRendererClass PangoXftRendererClass; +typedef struct _PangoXftRendererPrivate PangoXftRendererPrivate; + +#define PANGO_TYPE_XFT_RENDERER (pango_xft_renderer_get_type()) +#define PANGO_XFT_RENDERER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_XFT_RENDERER, PangoXftRenderer)) +#define PANGO_IS_XFT_RENDERER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_XFT_RENDERER)) +#define PANGO_XFT_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_XFT_RENDERER, PangoXftRendererClass)) +#define PANGO_IS_XFT_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_XFT_RENDERER)) +#define PANGO_XFT_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_XFT_RENDERER, PangoXftRendererClass)) + +/** + * PangoXftRenderer + * + * #PangoXftRenderer is a subclass of #PangoRenderer used for rendering + * with Pango's Xft backend. It can be used directly, or it can be + * further subclassed to modify exactly how drawing of individual + * elements occurs. + * + * Since: 1.8 + */ +struct _PangoXftRenderer +{ + /*< private >*/ + PangoRenderer parent_instance; + + Display *display; + int screen; + XftDraw *draw; + + PangoXftRendererPrivate *priv; +}; + +/** + * PangoXftRendererClass + * @composite_trapezoids: draw the specified trapezoids using + * the current color and other attributes for @part + * @composite_glyphs: draw the specified glyphs using + * the current foreground color and other foreground + * attributes + * + * The class structure for #PangoXftRenderer + * + * Since: 1.8 + */ +struct _PangoXftRendererClass +{ + /*< private >*/ + PangoRendererClass parent_class; + + /*< public >*/ + void (*composite_trapezoids) (PangoXftRenderer *xftrenderer, + PangoRenderPart part, + XTrapezoid *trapezoids, + int n_trapezoids); + void (*composite_glyphs) (PangoXftRenderer *xftrenderer, + XftFont *xft_font, + XftGlyphSpec *glyphs, + int n_glyphs); +}; + +GType pango_xft_renderer_get_type (void) G_GNUC_CONST; + +PangoRenderer *pango_xft_renderer_new (Display *display, + int screen); +void pango_xft_renderer_set_draw (PangoXftRenderer *xftrenderer, + XftDraw *draw); +void pango_xft_renderer_set_default_color (PangoXftRenderer *xftrenderer, + PangoColor *default_color); + +void pango_xft_render (XftDraw *draw, + XftColor *color, + PangoFont *font, + PangoGlyphString *glyphs, + gint x, + gint y); +void pango_xft_picture_render (Display *display, + Picture src_picture, + Picture dest_picture, + PangoFont *font, + PangoGlyphString *glyphs, + gint x, + gint y); +void pango_xft_render_transformed (XftDraw *draw, + XftColor *color, + PangoMatrix *matrix, + PangoFont *font, + PangoGlyphString *glyphs, + int x, + int y); +void pango_xft_render_layout_line (XftDraw *draw, + XftColor *color, + PangoLayoutLine *line, + int x, + int y); +void pango_xft_render_layout (XftDraw *draw, + XftColor *color, + PangoLayout *layout, + int x, + int y); + +G_END_DECLS + +#endif /* __PANGOXFT_RENDER_H__ */ + diff --git a/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangoxft.h b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangoxft.h new file mode 100644 index 00000000..a84571a8 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/include/pango-1.0/pango/pangoxft.h @@ -0,0 +1,94 @@ +/* Pango + * pangoxft.h: + * + * Copyright (C) 1999 Red Hat Software + * Copyright (C) 2000 SuSE Linux Ltd + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __PANGOXFT_H__ +#define __PANGOXFT_H__ + +#include <pango/pango-context.h> +#include <pango/pango-ot.h> +#include <pango/pangofc-font.h> +#include <pango/pango-layout.h> +#include <pango/pangoxft-render.h> + +G_BEGIN_DECLS + +#ifndef PANGO_DISABLE_DEPRECATED +#define PANGO_RENDER_TYPE_XFT "PangoRenderXft" +#endif + +#define PANGO_TYPE_XFT_FONT_MAP (pango_xft_font_map_get_type ()) +#define PANGO_XFT_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_XFT_FONT_MAP, PangoXftFontMap)) +#define PANGO_XFT_IS_FONT_MAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_XFT_FONT_MAP)) + +typedef struct _PangoXftFontMap PangoXftFontMap; + +typedef struct _PangoXftFont PangoXftFont; + +typedef void (*PangoXftSubstituteFunc) (FcPattern *pattern, + gpointer data); + +/* Calls for applications + */ +PangoFontMap *pango_xft_get_font_map (Display *display, + int screen); +PangoContext *pango_xft_get_context (Display *display, + int screen); +void pango_xft_shutdown_display (Display *display, + int screen); + +void pango_xft_set_default_substitute (Display *display, + int screen, + PangoXftSubstituteFunc func, + gpointer data, + GDestroyNotify notify); +void pango_xft_substitute_changed (Display *display, + int screen); + +GType pango_xft_font_map_get_type (void) G_GNUC_CONST; + +#define PANGO_XFT_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_XFT_FONT, PangoXftFont)) +#define PANGO_TYPE_XFT_FONT (pango_xft_font_get_type ()) +#define PANGO_XFT_IS_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_XFT_FONT)) + +GType pango_xft_font_get_type (void) G_GNUC_CONST; + +/* For shape engines + */ + +#ifdef PANGO_ENABLE_ENGINE +XftFont * pango_xft_font_get_font (PangoFont *font); +Display * pango_xft_font_get_display (PangoFont *font); +#ifndef PANGO_DISABLE_DEPRECATED +FT_Face pango_xft_font_lock_face (PangoFont *font); +void pango_xft_font_unlock_face (PangoFont *font); +guint pango_xft_font_get_glyph (PangoFont *font, + gunichar wc); +gboolean pango_xft_font_has_char (PangoFont *font, + gunichar wc); +PangoGlyph pango_xft_font_get_unknown_glyph (PangoFont *font, + gunichar wc); +#endif /* PANGO_DISABLE_DEPRECATED */ +#endif /* PANGO_ENABLE_ENGINE */ + +G_END_DECLS + +#endif /* __PANGOXFT_H__ */ diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/glib-2.0/include/glibconfig.h b/lib-x86-32/gtk-2.12.12/usr/lib/glib-2.0/include/glibconfig.h new file mode 100644 index 00000000..9547c550 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/glib-2.0/include/glibconfig.h @@ -0,0 +1,202 @@ +/* glibconfig.h + * + * This is a generated file. Please modify 'configure.in' + */ + +#ifndef __G_LIBCONFIG_H__ +#define __G_LIBCONFIG_H__ + +#include <glib/gmacros.h> + +#include <limits.h> +#include <float.h> +#define GLIB_HAVE_ALLOCA_H +#define GLIB_HAVE_SYS_POLL_H + +G_BEGIN_DECLS + +#define G_MINFLOAT FLT_MIN +#define G_MAXFLOAT FLT_MAX +#define G_MINDOUBLE DBL_MIN +#define G_MAXDOUBLE DBL_MAX +#define G_MINSHORT SHRT_MIN +#define G_MAXSHORT SHRT_MAX +#define G_MAXUSHORT USHRT_MAX +#define G_MININT INT_MIN +#define G_MAXINT INT_MAX +#define G_MAXUINT UINT_MAX +#define G_MINLONG LONG_MIN +#define G_MAXLONG LONG_MAX +#define G_MAXULONG ULONG_MAX + +typedef signed char gint8; +typedef unsigned char guint8; +typedef signed short gint16; +typedef unsigned short guint16; +#define G_GINT16_MODIFIER "h" +#define G_GINT16_FORMAT "hi" +#define G_GUINT16_FORMAT "hu" +typedef signed int gint32; +typedef unsigned int guint32; +#define G_GINT32_MODIFIER "" +#define G_GINT32_FORMAT "i" +#define G_GUINT32_FORMAT "u" +#define G_HAVE_GINT64 1 /* deprecated, always true */ + +G_GNUC_EXTENSION typedef signed long long gint64; +G_GNUC_EXTENSION typedef unsigned long long guint64; + +#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL)) +#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL)) +#define G_GINT64_MODIFIER "ll" +#define G_GINT64_FORMAT "lli" +#define G_GUINT64_FORMAT "llu" + +#define GLIB_SIZEOF_VOID_P 4 +#define GLIB_SIZEOF_LONG 4 +#define GLIB_SIZEOF_SIZE_T 4 + +typedef signed int gssize; +typedef unsigned int gsize; +#define G_GSIZE_MODIFIER "" +#define G_GSSIZE_FORMAT "i" +#define G_GSIZE_FORMAT "u" + +#define G_MAXSIZE G_MAXUINT +#define G_MINSSIZE G_MININT +#define G_MAXSSIZE G_MAXINT + +typedef gint64 goffset; +#define G_MINOFFSET G_MININT64 +#define G_MAXOFFSET G_MAXINT64 + + +#define GPOINTER_TO_INT(p) ((gint) (p)) +#define GPOINTER_TO_UINT(p) ((guint) (p)) + +#define GINT_TO_POINTER(i) ((gpointer) (i)) +#define GUINT_TO_POINTER(u) ((gpointer) (u)) + +#ifdef NeXT /* @#%@! NeXTStep */ +# define g_ATEXIT(proc) (!atexit (proc)) +#else +# define g_ATEXIT(proc) (atexit (proc)) +#endif + +#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END + +#define GLIB_MAJOR_VERSION 2 +#define GLIB_MINOR_VERSION 16 +#define GLIB_MICRO_VERSION 6 + +#define G_OS_UNIX + +#define G_VA_COPY va_copy + +#ifdef __cplusplus +#define G_HAVE_INLINE 1 +#else /* !__cplusplus */ +#define G_HAVE_INLINE 1 +#define G_HAVE___INLINE 1 +#define G_HAVE___INLINE__ 1 +#endif /* !__cplusplus */ + +#ifdef __cplusplus +#define G_CAN_INLINE 1 +#else /* !__cplusplus */ +#define G_CAN_INLINE 1 +#endif + +#ifndef __cplusplus +# define G_HAVE_ISO_VARARGS 1 +#endif +#ifdef __cplusplus +# define G_HAVE_ISO_VARARGS 1 +#endif + +/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi + * is passed ISO vararg support is turned off, and there is no work + * around to turn it on, so we unconditionally turn it off. + */ +#if __GNUC__ == 2 && __GNUC_MINOR__ == 95 +# undef G_HAVE_ISO_VARARGS +#endif + +#define G_HAVE_GNUC_VARARGS 1 +#define G_HAVE_GROWING_STACK 0 + +#define G_HAVE_GNUC_VISIBILITY 1 +#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) +#define G_GNUC_INTERNAL __hidden +#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY) +#define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) +#else +#define G_GNUC_INTERNAL +#endif + +#define G_THREADS_ENABLED +#define G_THREADS_IMPL_POSIX +typedef struct _GStaticMutex GStaticMutex; +struct _GStaticMutex +{ + struct _GMutex *runtime_mutex; + union { + char pad[24]; + double dummy_double; + void *dummy_pointer; + long dummy_long; + } static_mutex; +}; +#define G_STATIC_MUTEX_INIT { NULL, { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } } +#define g_static_mutex_get_mutex(mutex) \ + (g_thread_use_default_impl ? ((GMutex*) ((mutex)->static_mutex.pad)) : \ + g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex))) +/* This represents a system thread as used by the implementation. An + * alien implementaion, as loaded by g_thread_init can only count on + * "sizeof (gpointer)" bytes to store their info. We however need more + * for some of our native implementations. */ +typedef union _GSystemThread GSystemThread; +union _GSystemThread +{ + char data[4]; + double dummy_double; + void *dummy_pointer; + long dummy_long; +}; + +#define GINT16_TO_LE(val) ((gint16) (val)) +#define GUINT16_TO_LE(val) ((guint16) (val)) +#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val)) +#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val)) +#define GINT32_TO_LE(val) ((gint32) (val)) +#define GUINT32_TO_LE(val) ((guint32) (val)) +#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val)) +#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val)) +#define GINT64_TO_LE(val) ((gint64) (val)) +#define GUINT64_TO_LE(val) ((guint64) (val)) +#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val)) +#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val)) +#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val)) +#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val)) +#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val)) +#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val)) +#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val)) +#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val)) +#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val)) +#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val)) +#define G_BYTE_ORDER G_LITTLE_ENDIAN + +#define GLIB_SYSDEF_POLLIN =1 +#define GLIB_SYSDEF_POLLOUT =4 +#define GLIB_SYSDEF_POLLPRI =2 +#define GLIB_SYSDEF_POLLHUP =16 +#define GLIB_SYSDEF_POLLERR =8 +#define GLIB_SYSDEF_POLLNVAL =32 + +#define G_MODULE_SUFFIX "so" + +typedef int GPid; + +G_END_DECLS + +#endif /* GLIBCONFIG_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules b/lib-x86-32/gtk-2.12.12/usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules new file mode 100644 index 00000000..ec0f7a23 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules @@ -0,0 +1,34 @@ +# automatically generated by dh_gtkmodules, do not edit +"/usr/lib/gtk-2.0/2.10.0/immodules/im-multipress.so" +"multipress" "Multipress" "gtk20" "" "" + +"/usr/lib/gtk-2.0/2.10.0/immodules/im-ipa.so" +"ipa" "IPA" "gtk20" "/usr/share/locale" "" + +"/usr/lib/gtk-2.0/2.10.0/immodules/im-thai.so" +"thai" "Thai-Lao" "gtk20" "/usr/share/locale" "lo:th" + +"/usr/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.so" +"cyrillic_translit" "Cyrillic (Transliterated)" "gtk20" "/usr/share/locale" "" + +"/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so" +"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh" + +"/usr/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.so" +"inuktitut" "Inuktitut (Transliterated)" "gtk20" "/usr/share/locale" "iu" + +"/usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so" +"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa" + +"/usr/lib/gtk-2.0/2.10.0/immodules/im-viqr.so" +"viqr" "Vietnamese (VIQR)" "gtk20" "/usr/share/locale" "vi" + +"/usr/lib/gtk-2.0/2.10.0/immodules/im-ti-et.so" +"ti_et" "Tigrigna-Ethiopian (EZ+)" "gtk20" "/usr/share/locale" "ti" + +"/usr/lib/gtk-2.0/2.10.0/immodules/im-ti-er.so" +"ti_er" "Tigrigna-Eritrean (EZ+)" "gtk20" "/usr/share/locale" "ti" + +"/usr/lib/gtk-2.0/2.10.0/immodules/im-am-et.so" +"am_et" "Amharic (EZ+)" "gtk20" "/usr/share/locale" "am" + diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/gtk-2.0/2.10.0/loader-files.d/libgtk2.0-0.loaders b/lib-x86-32/gtk-2.12.12/usr/lib/gtk-2.0/2.10.0/loader-files.d/libgtk2.0-0.loaders new file mode 100644 index 00000000..61a59835 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/gtk-2.0/2.10.0/loader-files.d/libgtk2.0-0.loaders @@ -0,0 +1,106 @@ +# automatically generated by dh_gtkmodules, do not edit +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xbm.so" +"xbm" 4 "gtk20" "The XBM image format" +"image/x-xbitmap" "" +"xbm" "" +"#define " "" 100 +"/*" "" 50 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-gif.so" +"gif" 4 "gtk20" "The GIF image format" +"image/gif" "" +"gif" "" +"GIF8" "" 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-bmp.so" +"bmp" 5 "gtk20" "The BMP image format" +"image/bmp" "image/x-bmp" "image/x-MS-bmp" "" +"bmp" "" +"BM" "" 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tga.so" +"tga" 4 "gtk20" "The Targa image format" +"image/x-tga" "" +"tga" "targa" "" +" \001\001" "x " 100 +" \001\t" "x " 100 +" \002" "xz " 99 +" \003" "xz " 100 +" \n" "xz " 100 +" \013" "xz " 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ani.so" +"ani" 4 "gtk20" "The ANI image format" +"application/x-navi-animation" "" +"ani" "" +"RIFF ACON" " xxxx " 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so" +"jpeg" 5 "gtk20" "The JPEG image format" +"image/jpeg" "" +"jpeg" "jpe" "jpg" "" +"\377\330" "" 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-pcx.so" +"pcx" 4 "gtk20" "The PCX image format" +"image/x-pcx" "" +"pcx" "" +"\n \001" "" 100 +"\n\002\001" "" 100 +"\n\003\001" "" 100 +"\n\004\001" "" 100 +"\n\005\001" "" 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ico.so" +"ico" 5 "gtk20" "The ICO image format" +"image/x-icon" "image/x-ico" "image/x-win-bitmap" "" +"ico" "cur" "" +" \001 " "zz znz" 100 +" \002 " "zz znz" 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ras.so" +"ras" 4 "gtk20" "The Sun raster image format" +"image/x-cmu-raster" "image/x-sun-raster" "" +"ras" "" +"Y\246j\225" "" 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so" +"png" 5 "gtk20" "The PNG image format" +"image/png" "" +"png" "" +"\211PNG\r\n\032\n" "" 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so" +"tiff" 1 "gtk20" "The TIFF image format" +"image/tiff" "" +"tiff" "tif" "" +"MM *" " z " 100 +"II* " " z" 100 +"II* \020 CR\002 " " z zzz z" 0 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so" +"xpm" 4 "gtk20" "The XPM image format" +"image/x-xpixmap" "" +"xpm" "" +"/* XPM */" "" 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-pnm.so" +"pnm" 4 "gtk20" "The PNM/PBM/PGM/PPM image format family" +"image/x-portable-anymap" "image/x-portable-bitmap" "image/x-portable-graymap" "image/x-portable-pixmap" "" +"pnm" "pbm" "pgm" "ppm" "" +"P1" "" 100 +"P2" "" 100 +"P3" "" 100 +"P4" "" 100 +"P5" "" 100 +"P6" "" 100 + +"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-wbmp.so" +"wbmp" 4 "gtk20" "The WBMP image format" +"image/vnd.wap.wbmp" "" +"wbmp" "" +" " "zz" 1 +" `" "z " 1 +" @" "z " 1 +" " "z " 1 + diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/gtk-2.0/include/gdkconfig.h b/lib-x86-32/gtk-2.12.12/usr/lib/gtk-2.0/include/gdkconfig.h new file mode 100644 index 00000000..67c1a719 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/gtk-2.0/include/gdkconfig.h @@ -0,0 +1,23 @@ +/* gdkconfig.h + * + * This is a generated file. Please modify `configure.in' + */ + +#ifndef GDKCONFIG_H +#define GDKCONFIG_H + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + + +#define GDK_WINDOWING_X11 + +#define GDK_HAVE_WCHAR_H 1 +#define GDK_HAVE_WCTYPE_H 1 + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* GDKCONFIG_H */ diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libatk-1.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libatk-1.0.a Binary files differnew file mode 100644 index 00000000..8d921336 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libatk-1.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libcairo.a b/lib-x86-32/gtk-2.12.12/usr/lib/libcairo.a Binary files differnew file mode 100644 index 00000000..82525219 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libcairo.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgdk-x11-2.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk-x11-2.0.a Binary files differnew file mode 100644 index 00000000..146456de --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk-x11-2.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgdk-x11-2.0.so.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk-x11-2.0.so.0 new file mode 120000 index 00000000..fb923fe6 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk-x11-2.0.so.0 @@ -0,0 +1 @@ +libgdk-x11-2.0.so.0.1200.12
\ No newline at end of file diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgdk-x11-2.0.so.0.1200.12 b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk-x11-2.0.so.0.1200.12 Binary files differnew file mode 100644 index 00000000..30a03995 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk-x11-2.0.so.0.1200.12 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf-2.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf-2.0.a Binary files differnew file mode 100644 index 00000000..3bb26661 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf-2.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf-2.0.so.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf-2.0.so.0 new file mode 120000 index 00000000..2e72bfba --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf-2.0.so.0 @@ -0,0 +1 @@ +libgdk_pixbuf-2.0.so.0.1200.12
\ No newline at end of file diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf-2.0.so.0.1200.12 b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf-2.0.so.0.1200.12 Binary files differnew file mode 100644 index 00000000..e387ba87 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf-2.0.so.0.1200.12 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf_xlib-2.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf_xlib-2.0.a Binary files differnew file mode 100644 index 00000000..13427ce8 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf_xlib-2.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf_xlib-2.0.so.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf_xlib-2.0.so.0 new file mode 120000 index 00000000..dea5e2d5 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf_xlib-2.0.so.0 @@ -0,0 +1 @@ +libgdk_pixbuf_xlib-2.0.so.0.1200.12
\ No newline at end of file diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf_xlib-2.0.so.0.1200.12 b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf_xlib-2.0.so.0.1200.12 Binary files differnew file mode 100644 index 00000000..4db981bf --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgdk_pixbuf_xlib-2.0.so.0.1200.12 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgio-2.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libgio-2.0.a Binary files differnew file mode 100644 index 00000000..db4950fd --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgio-2.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgio-2.0.so.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libgio-2.0.so.0 new file mode 120000 index 00000000..e0ab7969 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgio-2.0.so.0 @@ -0,0 +1 @@ +libgio-2.0.so.0.0.0
\ No newline at end of file diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgio-2.0.so.0.0.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libgio-2.0.so.0.0.0 Binary files differnew file mode 100644 index 00000000..eddeba55 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgio-2.0.so.0.0.0 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libglib-2.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libglib-2.0.a Binary files differnew file mode 100644 index 00000000..caada97f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libglib-2.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libglib-2.0.so.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libglib-2.0.so.0 new file mode 120000 index 00000000..95259513 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libglib-2.0.so.0 @@ -0,0 +1 @@ +libglib-2.0.so.0.1600.6
\ No newline at end of file diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libglib-2.0.so.0.1600.6 b/lib-x86-32/gtk-2.12.12/usr/lib/libglib-2.0.so.0.1600.6 Binary files differnew file mode 100644 index 00000000..87dcd725 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libglib-2.0.so.0.1600.6 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgmodule-2.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libgmodule-2.0.a Binary files differnew file mode 100644 index 00000000..07bfe714 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgmodule-2.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgmodule-2.0.so.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libgmodule-2.0.so.0 new file mode 120000 index 00000000..ef6e9389 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgmodule-2.0.so.0 @@ -0,0 +1 @@ +libgmodule-2.0.so.0.1600.6
\ No newline at end of file diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgmodule-2.0.so.0.1600.6 b/lib-x86-32/gtk-2.12.12/usr/lib/libgmodule-2.0.so.0.1600.6 Binary files differnew file mode 100644 index 00000000..d797c8c5 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgmodule-2.0.so.0.1600.6 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgobject-2.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libgobject-2.0.a Binary files differnew file mode 100644 index 00000000..73f38cac --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgobject-2.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgobject-2.0.so.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libgobject-2.0.so.0 new file mode 120000 index 00000000..8595413e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgobject-2.0.so.0 @@ -0,0 +1 @@ +libgobject-2.0.so.0.1600.6
\ No newline at end of file diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgobject-2.0.so.0.1600.6 b/lib-x86-32/gtk-2.12.12/usr/lib/libgobject-2.0.so.0.1600.6 Binary files differnew file mode 100644 index 00000000..d08346cc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgobject-2.0.so.0.1600.6 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgthread-2.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libgthread-2.0.a Binary files differnew file mode 100644 index 00000000..eed565f9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgthread-2.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgthread-2.0.so.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libgthread-2.0.so.0 new file mode 120000 index 00000000..c83be93b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgthread-2.0.so.0 @@ -0,0 +1 @@ +libgthread-2.0.so.0.1600.6
\ No newline at end of file diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgthread-2.0.so.0.1600.6 b/lib-x86-32/gtk-2.12.12/usr/lib/libgthread-2.0.so.0.1600.6 Binary files differnew file mode 100644 index 00000000..461ad5b2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgthread-2.0.so.0.1600.6 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgtk-x11-2.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk-x11-2.0.a Binary files differnew file mode 100644 index 00000000..74b9dcc8 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk-x11-2.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgtk-x11-2.0.so.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk-x11-2.0.so.0 new file mode 120000 index 00000000..88c6eb39 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk-x11-2.0.so.0 @@ -0,0 +1 @@ +libgtk-x11-2.0.so.0.1200.12
\ No newline at end of file diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgtk-x11-2.0.so.0.1200.12 b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk-x11-2.0.so.0.1200.12 Binary files differnew file mode 100644 index 00000000..01630100 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk-x11-2.0.so.0.1200.12 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/gdk-pixbuf-query-loaders b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/gdk-pixbuf-query-loaders Binary files differnew file mode 100755 index 00000000..07cba6bc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/gdk-pixbuf-query-loaders diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/gtk-query-immodules-2.0 b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/gtk-query-immodules-2.0 Binary files differnew file mode 100755 index 00000000..881f03f0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/gtk-query-immodules-2.0 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/gtk-update-icon-cache b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/gtk-update-icon-cache Binary files differnew file mode 100755 index 00000000..28f9f1c2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/gtk-update-icon-cache diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/update-gdkpixbuf-loaders b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/update-gdkpixbuf-loaders new file mode 100755 index 00000000..7199af85 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/update-gdkpixbuf-loaders @@ -0,0 +1,28 @@ +#!/bin/sh + +# this script is a no-op since 2.10.3-2 +exit 0 + +set -e + +VERSION="2.12.12" +APIVER="2.0" +SHARED_PKG="libgtk2.0-0" +TMPFILE=$(mktemp -t "gtk+$APIVER-$VERSION.XXXXXXXXXX") + +echo -n "Updating the gdk-pixbuf loaders list for Gtk+ $VERSION..." +"/usr/lib/$SHARED_PKG/gdk-pixbuf-query-loaders" > $TMPFILE +if [ "x`cat "$TMPFILE" | grep -v '^#'`" = "x" ]; then + echo "no gdk-pixbuf loader found." +else + echo "done." +fi +if ! test -d "/etc/gtk-$APIVER"; then + echo -n "Creating /etc/gtk-$APIVER..." + mkdir "/etc/gtk-$APIVER" + echo "done." +fi +cp "$TMPFILE" "/etc/gtk-$APIVER/gdk-pixbuf.loaders" +chmod 644 "/etc/gtk-$APIVER/gdk-pixbuf.loaders" + +rm -f "$TMPFILE" diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/update-gtk-immodules b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/update-gtk-immodules new file mode 100755 index 00000000..a01db2d0 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libgtk2.0-0/update-gtk-immodules @@ -0,0 +1,31 @@ +#!/bin/sh + +# this script is a no-op since 2.10.3-2 +exit 0 + +set -e + +VERSION="2.12.12" +GTK_BINARY_VERSION="2.10.0" +APIVER="2.0" +SHARED_PKG="libgtk2.0-0" +TMPFILE=$(mktemp -t "gtk+$APIVER-$VERSION.XXXXXXXXXX") + +echo -n "Updating the IM modules list for Gtk+ $VERSION..." +"/usr/lib/$SHARED_PKG/gtk-query-immodules-$APIVER" \ + $(find "/usr/lib/gtk-$APIVER/$GTK_BINARY_VERSION/immodules" -name '*.so') \ + > "$TMPFILE" +if [ "x`cat "$TMPFILE" | grep -v '^#'`" = "x" ]; then + echo "no Gtk+ IM modules found." +else + echo "done." +fi +if ! test -d "/etc/gtk-$APIVER"; then + echo -n "Creating /etc/gtk-$APIVER..." + mkdir "/etc/gtk-$APIVER" + echo "done." +fi +cp "$TMPFILE" "/etc/gtk-$APIVER/gtk.immodules" +chmod 644 "/etc/gtk-$APIVER/gtk.immodules" + +rm -f "$TMPFILE" diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libpango-1.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libpango-1.0.a Binary files differnew file mode 100644 index 00000000..f81ed93c --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libpango-1.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libpangocairo-1.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libpangocairo-1.0.a Binary files differnew file mode 100644 index 00000000..f5fc97b1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libpangocairo-1.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libpangoft2-1.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libpangoft2-1.0.a Binary files differnew file mode 100644 index 00000000..deb48622 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libpangoft2-1.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libpangox-1.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libpangox-1.0.a Binary files differnew file mode 100644 index 00000000..8338be4a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libpangox-1.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/libpangoxft-1.0.a b/lib-x86-32/gtk-2.12.12/usr/lib/libpangoxft-1.0.a Binary files differnew file mode 100644 index 00000000..5a2942b1 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/libpangoxft-1.0.a diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/atk.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/atk.pc new file mode 100644 index 00000000..8e1cab06 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/atk.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: Atk +Description: Accessibility Toolkit +Version: 1.22.0 +Requires: gobject-2.0 gmodule-no-export-2.0 +Libs: -L${libdir} -latk-1.0 +Cflags: -I${includedir}/atk-1.0 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-directfb.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-directfb.pc new file mode 100644 index 00000000..51de49d2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-directfb.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=NONE +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: cairo-directfb +Description: directfb backend for cairo graphics library +Version: 1.6.4 + +Requires: cairo directfb +Libs: +Cflags: -I${includedir}/cairo diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-ft.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-ft.pc new file mode 100644 index 00000000..65726c9e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-ft.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=NONE +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: cairo-ft +Description: FreeType font backend for cairo graphics library +Version: 1.6.4 + +Requires: cairo freetype2 >= 9.7.3 fontconfig +Libs: +Cflags: -I${includedir}/cairo diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-pdf.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-pdf.pc new file mode 100644 index 00000000..45508107 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-pdf.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=NONE +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: cairo-pdf +Description: PDF backend for cairo graphics library +Version: 1.6.4 + +Requires: cairo +Libs: -lz +Cflags: -I${includedir}/cairo diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-png.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-png.pc new file mode 100644 index 00000000..6d19486a --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-png.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=NONE +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: cairo-png +Description: PNG backend for cairo graphics library +Version: 1.6.4 + +Requires: cairo libpng12 +Libs: +Cflags: -I${includedir}/cairo diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-ps.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-ps.pc new file mode 100644 index 00000000..73f9b89b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-ps.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=NONE +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: cairo-ps +Description: PostScript backend for cairo graphics library +Version: 1.6.4 + +Requires: cairo +Libs: -lz +Cflags: -I${includedir}/cairo diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-svg.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-svg.pc new file mode 100644 index 00000000..9fea7ec3 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-svg.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=NONE +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: cairo-svg +Description: SVG backend for cairo graphics library +Version: 1.6.4 + +Requires: cairo +Libs: +Cflags: -I${includedir}/cairo diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-xcb.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-xcb.pc new file mode 100644 index 00000000..1e3423a9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-xcb.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=NONE +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: cairo-xcb +Description: XCB backend for cairo graphics library +Version: 1.6.4 + +Requires: cairo xcb >= 0.9.92 xcb-render >= 0.9.92 xcb-renderutil +Libs: +Cflags: -I${includedir}/cairo diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-xlib-xrender.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-xlib-xrender.pc new file mode 100644 index 00000000..ac2c2537 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-xlib-xrender.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=NONE +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: cairo-xlib_xrender +Description: Xlib Xrender backend for cairo graphics library +Version: 1.6.4 + +Requires: cairo-xlib xrender >= 0.6 +Libs: +Cflags: -I${includedir}/cairo diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-xlib.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-xlib.pc new file mode 100644 index 00000000..5625dbe2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo-xlib.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=NONE +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: cairo-xlib +Description: Xlib backend for cairo graphics library +Version: 1.6.4 + +Requires: cairo x11 +Libs: +Cflags: -I${includedir}/cairo diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo.pc new file mode 100644 index 00000000..464fa6cc --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/cairo.pc @@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: cairo +Description: Multi-platform 2D graphics library +Version: 1.6.4 + +Requires.private: freetype2 >= 9.7.3 fontconfig directfb libpng12 xcb >= 0.9.92 xcb-render >= 0.9.92 xcb-renderutil xrender >= 0.6 x11 pixman-1 >= 0.10.0 +Libs: -L${libdir} -lcairo +Libs.private: -lz -lz -lm +Cflags: -I${includedir}/cairo diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-2.0.pc new file mode 100644 index 00000000..3cdd1737 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-2.0.pc @@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include +target=x11 + +Name: GDK +Description: GIMP Drawing Kit (${target} target) +Version: 2.12.12 +Requires: gdk-pixbuf-2.0 pango pangocairo +Requires.private: fontconfig x11 xext xrender xinerama xi xrandr xcursor xfixes xcomposite xdamage +Libs: -L${libdir} -lgdk-${target}-2.0 +Cflags: -I${includedir}/gtk-2.0 -I${libdir}/gtk-2.0/include diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-pixbuf-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-pixbuf-2.0.pc new file mode 100644 index 00000000..ac67b526 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-pixbuf-2.0.pc @@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include + +Name: GdkPixbuf +Description: Image loading and scaling +Version: 2.12.12 +Requires: gobject-2.0,gmodule-no-export-2.0 +Libs: -L${libdir} -lgdk_pixbuf-2.0 -lm +Cflags: -I${includedir}/gtk-2.0 + +Libs.private: -ltiff -ljpeg -lpng12 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-pixbuf-xlib-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-pixbuf-xlib-2.0.pc new file mode 100644 index 00000000..31194ce2 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-pixbuf-xlib-2.0.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include + +Name: GdkPixbuf Xlib +Description: GdkPixbuf rendering for Xlib +Version: 2.12.12 +Requires: gobject-2.0,gmodule-no-export-2.0,gdk-pixbuf-2.0 +Libs: -L${libdir} -lgdk_pixbuf_xlib-2.0 +Cflags: -I${includedir} diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-x11-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-x11-2.0.pc new file mode 100644 index 00000000..3cdd1737 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gdk-x11-2.0.pc @@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include +target=x11 + +Name: GDK +Description: GIMP Drawing Kit (${target} target) +Version: 2.12.12 +Requires: gdk-pixbuf-2.0 pango pangocairo +Requires.private: fontconfig x11 xext xrender xinerama xi xrandr xcursor xfixes xcomposite xdamage +Libs: -L${libdir} -lgdk-${target}-2.0 +Cflags: -I${includedir}/gtk-2.0 -I${libdir}/gtk-2.0/include diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gio-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gio-2.0.pc new file mode 100644 index 00000000..ad465fdf --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gio-2.0.pc @@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +giomoduledir=${libdir}/gio/modules + +Name: GIO +Description: glib I/O library +Version: 2.16.6 +Requires: glib-2.0,gobject-2.0,gmodule-no-export-2.0 +Libs: -L${libdir} -lgio-2.0 +Cflags: diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gio-unix-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gio-unix-2.0.pc new file mode 100644 index 00000000..c7d221f8 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gio-unix-2.0.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: GIO unix specific APIs +Description: unix specific headers for glib I/O library +Version: 2.16.6 +Requires: gobject-2.0,gmodule-no-export-2.0,gio-2.0 +Libs: -L${libdir} -lgio-2.0 +Cflags: -I${includedir}/gio-unix-2.0/ diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/glib-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/glib-2.0.pc new file mode 100644 index 00000000..d926ca47 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/glib-2.0.pc @@ -0,0 +1,14 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +glib_genmarshal=glib-genmarshal +gobject_query=gobject-query +glib_mkenums=glib-mkenums + +Name: GLib +Description: C Utility Library +Version: 2.16.6 +Libs: -L${libdir} -lglib-2.0 +Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gmodule-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gmodule-2.0.pc new file mode 100644 index 00000000..6c29784f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gmodule-2.0.pc @@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +gmodule_supported=true + +Name: GModule +Description: Dynamic module loader for GLib +Requires: glib-2.0 +Version: 2.16.6 +Libs: -L${libdir} -Wl,--export-dynamic -lgmodule-2.0 -ldl +Cflags: diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gmodule-export-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gmodule-export-2.0.pc new file mode 100644 index 00000000..6c29784f --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gmodule-export-2.0.pc @@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +gmodule_supported=true + +Name: GModule +Description: Dynamic module loader for GLib +Requires: glib-2.0 +Version: 2.16.6 +Libs: -L${libdir} -Wl,--export-dynamic -lgmodule-2.0 -ldl +Cflags: diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gmodule-no-export-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gmodule-no-export-2.0.pc new file mode 100644 index 00000000..c833cd19 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gmodule-no-export-2.0.pc @@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +gmodule_supported=true + +Name: GModule +Description: Dynamic module loader for GLib +Requires: glib-2.0 +Version: 2.16.6 +Libs: -L${libdir} -lgmodule-2.0 -ldl +Cflags: diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gobject-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gobject-2.0.pc new file mode 100644 index 00000000..59e6d1d9 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gobject-2.0.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: GObject +Description: GLib Type, Object, Parameter and Signal Library +Requires: glib-2.0 +Version: 2.16.6 +Libs: -L${libdir} -lgobject-2.0 +Cflags: diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gthread-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gthread-2.0.pc new file mode 100644 index 00000000..5dc7071b --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gthread-2.0.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: GThread +Description: Thread support for GLib +Requires: glib-2.0 +Version: 2.16.6 +Libs: -L${libdir} -lgthread-2.0 -pthread -lrt +Cflags: -pthread diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gtk+-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gtk+-2.0.pc new file mode 100644 index 00000000..3a547609 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gtk+-2.0.pc @@ -0,0 +1,15 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include +target=x11 + +gtk_binary_version=2.10.0 +gtk_host=i486-pc-linux-gnu + +Name: GTK+ +Description: GIMP Tool Kit (${target} target) +Version: 2.12.12 +Requires: gdk-${target}-2.0 atk cairo +Libs: -L${libdir} -lgtk-${target}-2.0 +Cflags: -I${includedir}/gtk-2.0 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gtk+-unix-print-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gtk+-unix-print-2.0.pc new file mode 100644 index 00000000..acd97e0e --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gtk+-unix-print-2.0.pc @@ -0,0 +1,14 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include +target=x11 + +gtk_binary_version=2.10.0 +gtk_host=i486-pc-linux-gnu + +Name: GTK+ +Description: GIMP Tool Kit Unix print support +Version: 2.12.12 +Requires: gtk+-${target}-2.0 atk cairo +Cflags: -I${includedir}/gtk-unix-print-2.0 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gtk+-x11-2.0.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gtk+-x11-2.0.pc new file mode 100644 index 00000000..3a547609 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/gtk+-x11-2.0.pc @@ -0,0 +1,15 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include +target=x11 + +gtk_binary_version=2.10.0 +gtk_host=i486-pc-linux-gnu + +Name: GTK+ +Description: GIMP Tool Kit (${target} target) +Version: 2.12.12 +Requires: gdk-${target}-2.0 atk cairo +Libs: -L${libdir} -lgtk-${target}-2.0 +Cflags: -I${includedir}/gtk-2.0 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pango.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pango.pc new file mode 100644 index 00000000..7dfc2aaa --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pango.pc @@ -0,0 +1,13 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include + +pango_module_version=1.6.0 + +Name: Pango +Description: Internationalized text handling +Version: 1.20.5 +Requires: glib-2.0,gobject-2.0,gmodule-no-export-2.0 +Libs: -L${libdir} -lpango-1.0 +Cflags: -I${includedir}/pango-1.0 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangocairo.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangocairo.pc new file mode 100644 index 00000000..ade47757 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangocairo.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include + +Name: Pango Cairo +Description: Cairo rendering support for Pango +Version: 1.20.5 +Requires: pango cairo +Libs: -L${libdir} -lpangocairo-1.0 +Cflags: -I${includedir}/pango-1.0 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangoft2.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangoft2.pc new file mode 100644 index 00000000..22b928e4 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangoft2.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include + +Name: Pango FT2 and Pango Fc +Description: Freetype 2.0 and fontconfig font support for Pango +Version: 1.20.5 +Requires: pango freetype2 fontconfig +Libs: -L${libdir} -lpangoft2-1.0 +Cflags: -I${includedir}/pango-1.0 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangox.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangox.pc new file mode 100644 index 00000000..0bd5c465 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangox.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include + +Name: Pango X +Description: X Window System font support for Pango +Version: 1.20.5 +Requires: pango +Libs: -L${libdir} -lpangox-1.0 -lX11 +Cflags: -I${includedir}/pango-1.0 diff --git a/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangoxft.pc b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangoxft.pc new file mode 100644 index 00000000..f8beac91 --- /dev/null +++ b/lib-x86-32/gtk-2.12.12/usr/lib/pkgconfig/pangoxft.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=${prefix}/include + +Name: Pango Xft +Description: Xft font support for Pango +Version: 1.20.5 +Requires: pango pangoft2 xft +Libs: -L${libdir} -lpangoxft-1.0 +Cflags: -I${includedir}/pango-1.0 |