Imported existing code
This commit is contained in:
186
libraries/i686-linux/include/gtk-2.0/gtk/gtk.h
Normal file
186
libraries/i686-linux/include/gtk-2.0/gtk/gtk.h
Normal file
@@ -0,0 +1,186 @@
|
||||
/* 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/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/gtkbbox.h>
|
||||
#include <gtk/gtkbin.h>
|
||||
#include <gtk/gtkbindings.h>
|
||||
#include <gtk/gtkbox.h>
|
||||
#include <gtk/gtkbutton.h>
|
||||
#include <gtk/gtkcalendar.h>
|
||||
#include <gtk/gtkcelllayout.h>
|
||||
#include <gtk/gtkcellrenderer.h>
|
||||
#include <gtk/gtkcellrendererpixbuf.h>
|
||||
#include <gtk/gtkcellrenderertext.h>
|
||||
#include <gtk/gtkcellrenderertoggle.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/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/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/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/gtkmessagedialog.h>
|
||||
#include <gtk/gtkmisc.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/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/gtkruler.h>
|
||||
#include <gtk/gtkscale.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/gtkstock.h>
|
||||
#include <gtk/gtkstyle.h>
|
||||
#include <gtk/gtktable.h>
|
||||
#include <gtk/gtktearoffmenuitem.h>
|
||||
#include <gtk/gtktext.h>
|
||||
#include <gtk/gtktextbuffer.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/gtktoolbar.h>
|
||||
#include <gtk/gtktoolbutton.h>
|
||||
#include <gtk/gtktoolitem.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/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__ */
|
||||
180
libraries/i686-linux/include/gtk-2.0/gtk/gtkaccelgroup.h
Normal file
180
libraries/i686-linux/include/gtk-2.0/gtk/gtkaccelgroup.h
Normal file
@@ -0,0 +1,180 @@
|
||||
/* 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);
|
||||
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);
|
||||
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__ */
|
||||
105
libraries/i686-linux/include/gtk-2.0/gtk/gtkaccellabel.h
Normal file
105
libraries/i686-linux/include/gtk-2.0/gtk/gtkaccellabel.h
Normal file
@@ -0,0 +1,105 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_ACCEL_LABEL_H__ */
|
||||
89
libraries/i686-linux/include/gtk-2.0/gtk/gtkaccelmap.h
Normal file
89
libraries/i686-linux/include/gtk-2.0/gtk/gtkaccelmap.h
Normal file
@@ -0,0 +1,89 @@
|
||||
/* 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 --- */
|
||||
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);
|
||||
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__ */
|
||||
79
libraries/i686-linux/include/gtk-2.0/gtk/gtkaccessible.h
Normal file
79
libraries/i686-linux/include/gtk-2.0/gtk/gtkaccessible.h
Normal file
@@ -0,0 +1,79 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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);
|
||||
|
||||
void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_ACCESSIBLE_H__ */
|
||||
|
||||
|
||||
122
libraries/i686-linux/include/gtk-2.0/gtk/gtkaction.h
Normal file
122
libraries/i686-linux/include/gtk-2.0/gtk/gtkaction.h
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* 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);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved1) (void);
|
||||
void (*_gtk_reserved2) (void);
|
||||
void (*_gtk_reserved3) (void);
|
||||
void (*_gtk_reserved4) (void);
|
||||
};
|
||||
|
||||
GType gtk_action_get_type (void);
|
||||
GtkAction *gtk_action_new (const gchar *name,
|
||||
const gchar *label,
|
||||
const gchar *tooltip,
|
||||
const gchar *stock_id);
|
||||
const gchar* gtk_action_get_name (GtkAction *action);
|
||||
gboolean gtk_action_is_sensitive (GtkAction *action);
|
||||
gboolean gtk_action_get_sensitive (GtkAction *action);
|
||||
gboolean gtk_action_is_visible (GtkAction *action);
|
||||
gboolean gtk_action_get_visible (GtkAction *action);
|
||||
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);
|
||||
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);
|
||||
void gtk_action_connect_accelerator (GtkAction *action);
|
||||
void gtk_action_disconnect_accelerator (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);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_ACTION_H__ */
|
||||
178
libraries/i686-linux/include/gtk-2.0/gtk/gtkactiongroup.h
Normal file
178
libraries/i686-linux/include/gtk-2.0/gtk/gtkactiongroup.h
Normal file
@@ -0,0 +1,178 @@
|
||||
/*
|
||||
* 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);
|
||||
GtkActionGroup *gtk_action_group_new (const gchar *name);
|
||||
const 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,
|
||||
GtkActionEntry *entries,
|
||||
guint n_entries,
|
||||
gpointer user_data);
|
||||
void gtk_action_group_add_toggle_actions (GtkActionGroup *action_group,
|
||||
GtkToggleActionEntry *entries,
|
||||
guint n_entries,
|
||||
gpointer user_data);
|
||||
void gtk_action_group_add_radio_actions (GtkActionGroup *action_group,
|
||||
GtkRadioActionEntry *entries,
|
||||
guint n_entries,
|
||||
gint value,
|
||||
GCallback on_change,
|
||||
gpointer user_data);
|
||||
void gtk_action_group_add_actions_full (GtkActionGroup *action_group,
|
||||
GtkActionEntry *entries,
|
||||
guint n_entries,
|
||||
gpointer user_data,
|
||||
GDestroyNotify destroy);
|
||||
void gtk_action_group_add_toggle_actions_full (GtkActionGroup *action_group,
|
||||
GtkToggleActionEntry *entries,
|
||||
guint n_entries,
|
||||
gpointer user_data,
|
||||
GDestroyNotify destroy);
|
||||
void gtk_action_group_add_radio_actions_full (GtkActionGroup *action_group,
|
||||
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);
|
||||
|
||||
/* 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__ */
|
||||
99
libraries/i686-linux/include/gtk-2.0/gtk/gtkadjustment.h
Normal file
99
libraries/i686-linux/include/gtk-2.0/gtk/gtkadjustment.h
Normal file
@@ -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_ADJUSTMENT_H__
|
||||
#define __GTK_ADJUSTMENT_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkobject.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_ADJUSTMENT_H__ */
|
||||
96
libraries/i686-linux/include/gtk-2.0/gtk/gtkalignment.h
Normal file
96
libraries/i686-linux/include/gtk-2.0/gtk/gtkalignment.h
Normal file
@@ -0,0 +1,96 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_ALIGNMENT_H__ */
|
||||
78
libraries/i686-linux/include/gtk-2.0/gtk/gtkarrow.h
Normal file
78
libraries/i686-linux/include/gtk-2.0/gtk/gtkarrow.h
Normal file
@@ -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-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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_ARROW_H__ */
|
||||
87
libraries/i686-linux/include/gtk-2.0/gtk/gtkaspectframe.h
Normal file
87
libraries/i686-linux/include/gtk-2.0/gtk/gtkaspectframe.h
Normal file
@@ -0,0 +1,87 @@
|
||||
/* 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/gtkbin.h>
|
||||
#include <gtk/gtkframe.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_ASPECT_FRAME_H__ */
|
||||
109
libraries/i686-linux/include/gtk-2.0/gtk/gtkbbox.h
Normal file
109
libraries/i686-linux/include/gtk-2.0/gtk/gtkbbox.h
Normal file
@@ -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_BUTTON_BOX_H__
|
||||
#define __GTK_BUTTON_BOX_H__
|
||||
|
||||
#include <gtk/gtkbox.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_BUTTON_BOX_H__ */
|
||||
|
||||
|
||||
73
libraries/i686-linux/include/gtk-2.0/gtk/gtkbin.h
Normal file
73
libraries/i686-linux/include/gtk-2.0/gtk/gtkbin.h
Normal file
@@ -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_BIN_H__
|
||||
#define __GTK_BIN_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkcontainer.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_BIN_H__ */
|
||||
161
libraries/i686-linux/include/gtk-2.0/gtk/gtkbindings.h
Normal file
161
libraries/i686-linux/include/gtk-2.0/gtk/gtkbindings.h
Normal file
@@ -0,0 +1,161 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
/* 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;
|
||||
GtkBindingEntry *set_next;
|
||||
GtkBindingEntry *hash_next;
|
||||
GtkBindingSignal *signals;
|
||||
};
|
||||
|
||||
struct _GtkBindingSignal
|
||||
{
|
||||
GtkBindingSignal *next;
|
||||
gchar *signal_name;
|
||||
guint n_args;
|
||||
GtkBindingArg *args;
|
||||
};
|
||||
|
||||
struct _GtkBindingArg
|
||||
{
|
||||
GType arg_type;
|
||||
union {
|
||||
glong long_data;
|
||||
gdouble double_data;
|
||||
gchar *string_data;
|
||||
} d;
|
||||
};
|
||||
|
||||
|
||||
/* 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);
|
||||
#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_signal (GtkBindingSet *binding_set,
|
||||
guint keyval,
|
||||
GdkModifierType modifiers,
|
||||
const gchar *signal_name,
|
||||
guint n_args,
|
||||
...);
|
||||
void gtk_binding_set_add_path (GtkBindingSet *binding_set,
|
||||
GtkPathType path_type,
|
||||
const gchar *path_pattern,
|
||||
GtkPathPriorityType priority);
|
||||
|
||||
|
||||
/* Non-public methods */
|
||||
|
||||
void gtk_binding_entry_remove (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);
|
||||
|
||||
|
||||
void _gtk_binding_reset_parsed (void);
|
||||
|
||||
/* 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,
|
||||
...);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_BINDINGS_H__ */
|
||||
122
libraries/i686-linux/include/gtk-2.0/gtk/gtkbox.h
Normal file
122
libraries/i686-linux/include/gtk-2.0/gtk/gtkbox.h
Normal file
@@ -0,0 +1,122 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_BOX_H__ */
|
||||
138
libraries/i686-linux/include/gtk-2.0/gtk/gtkbutton.h
Normal file
138
libraries/i686-linux/include/gtk-2.0/gtk/gtkbutton.h
Normal file
@@ -0,0 +1,138 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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_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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_BUTTON_H__ */
|
||||
157
libraries/i686-linux/include/gtk-2.0/gtk/gtkcalendar.h
Normal file
157
libraries/i686-linux/include/gtk-2.0/gtk/gtkcalendar.h
Normal file
@@ -0,0 +1,157 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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 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;
|
||||
GdkGC *xor_gc;
|
||||
|
||||
gint focus_row;
|
||||
gint focus_col;
|
||||
|
||||
gint highlight_row;
|
||||
gint highlight_col;
|
||||
|
||||
gpointer private_data;
|
||||
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);
|
||||
void gtk_calendar_freeze (GtkCalendar *calendar);
|
||||
void gtk_calendar_thaw (GtkCalendar *calendar);
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_CALENDAR_H__ */
|
||||
60
libraries/i686-linux/include/gtk-2.0/gtk/gtkcelleditable.h
Normal file
60
libraries/i686-linux/include/gtk-2.0/gtk/gtkcelleditable.h
Normal file
@@ -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__ */
|
||||
102
libraries/i686-linux/include/gtk-2.0/gtk/gtkcelllayout.h
Normal file
102
libraries/i686-linux/include/gtk-2.0/gtk/gtkcelllayout.h
Normal file
@@ -0,0 +1,102 @@
|
||||
/* 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>
|
||||
|
||||
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);
|
||||
};
|
||||
|
||||
GType gtk_cell_layout_get_type (void);
|
||||
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);
|
||||
void gtk_cell_layout_clear (GtkCellLayout *cell_layout);
|
||||
void gtk_cell_layout_set_attributes (GtkCellLayout *cell_layout,
|
||||
GtkCellRenderer *cell,
|
||||
...);
|
||||
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);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_CELL_LAYOUT_H__ */
|
||||
162
libraries/i686-linux/include/gtk-2.0/gtk/gtkcellrenderer.h
Normal file
162
libraries/i686-linux/include/gtk-2.0/gtk/gtkcellrenderer.h
Normal file
@@ -0,0 +1,162 @@
|
||||
/* 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;
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved1) (void);
|
||||
void (*_gtk_reserved2) (void);
|
||||
void (*_gtk_reserved3) (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 */
|
||||
void gtk_cell_renderer_editing_canceled (GtkCellRenderer *cell);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_CELL_RENDERER_H__ */
|
||||
@@ -0,0 +1,68 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
GtkCellRenderer *gtk_cell_renderer_pixbuf_new (void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_CELL_RENDERER_PIXBUF_H__ */
|
||||
105
libraries/i686-linux/include/gtk-2.0/gtk/gtkcellrenderertext.h
Normal file
105
libraries/i686-linux/include/gtk-2.0/gtk/gtkcellrenderertext.h
Normal file
@@ -0,0 +1,105 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
GtkCellRenderer *gtk_cell_renderer_text_new (void);
|
||||
|
||||
void gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRendererText *renderer,
|
||||
gint number_of_rows);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_CELL_RENDERER_TEXT_H__ */
|
||||
@@ -0,0 +1,80 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_CELL_RENDERER_TOGGLE_H__ */
|
||||
85
libraries/i686-linux/include/gtk-2.0/gtk/gtkcheckbutton.h
Normal file
85
libraries/i686-linux/include/gtk-2.0/gtk/gtkcheckbutton.h
Normal file
@@ -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_CHECK_BUTTON_H__
|
||||
#define __GTK_CHECK_BUTTON_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtktogglebutton.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_CHECK_BUTTON_H__ */
|
||||
105
libraries/i686-linux/include/gtk-2.0/gtk/gtkcheckmenuitem.h
Normal file
105
libraries/i686-linux/include/gtk-2.0/gtk/gtkcheckmenuitem.h
Normal file
@@ -0,0 +1,105 @@
|
||||
/* 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_MENU_CHECK_ITEM_H__
|
||||
#define __GTK_MENU_CHECK_ITEM_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkmenuitem.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_CHECK_MENU_ITEM_H__ */
|
||||
111
libraries/i686-linux/include/gtk-2.0/gtk/gtkclipboard.h
Normal file
111
libraries/i686-linux/include/gtk-2.0/gtk/gtkclipboard.h
Normal file
@@ -0,0 +1,111 @@
|
||||
/* 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__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include <gtk/gtkselection.h>
|
||||
|
||||
#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 (* 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);
|
||||
|
||||
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_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_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);
|
||||
|
||||
gboolean gtk_clipboard_wait_is_text_available (GtkClipboard *clipboard);
|
||||
|
||||
gboolean gtk_clipboard_wait_for_targets (GtkClipboard *clipboard,
|
||||
GdkAtom **targets,
|
||||
gint *n_targets);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_CLIPBOARD_H__ */
|
||||
794
libraries/i686-linux/include/gtk-2.0/gtk/gtkclist.h
Normal file
794
libraries/i686-linux/include/gtk-2.0/gtk/gtkclist.h
Normal file
@@ -0,0 +1,794 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* 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;
|
||||
|
||||
/* mem chunks */
|
||||
GMemChunk *row_mem_chunk;
|
||||
GMemChunk *cell_mem_chunk;
|
||||
|
||||
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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_CLIST_H__ */
|
||||
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
102
libraries/i686-linux/include/gtk-2.0/gtk/gtkcolorbutton.h
Normal file
102
libraries/i686-linux/include/gtk-2.0/gtk/gtkcolorbutton.h
Normal file
@@ -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__ */
|
||||
|
||||
|
||||
|
||||
|
||||
136
libraries/i686-linux/include/gtk-2.0/gtk/gtkcolorsel.h
Normal file
136
libraries/i686-linux/include/gtk-2.0/gtk/gtkcolorsel.h
Normal file
@@ -0,0 +1,136 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_COLOR_SELECTION_H__ */
|
||||
81
libraries/i686-linux/include/gtk-2.0/gtk/gtkcolorseldialog.h
Normal file
81
libraries/i686-linux/include/gtk-2.0/gtk/gtkcolorseldialog.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_COLOR_SELECTION_DIALOG_H__ */
|
||||
122
libraries/i686-linux/include/gtk-2.0/gtk/gtkcombo.h
Normal file
122
libraries/i686-linux/include/gtk-2.0/gtk/gtkcombo.h
Normal file
@@ -0,0 +1,122 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_SMART_COMBO_H__ */
|
||||
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
108
libraries/i686-linux/include/gtk-2.0/gtk/gtkcombobox.h
Normal file
108
libraries/i686-linux/include/gtk-2.0/gtk/gtkcombobox.h
Normal file
@@ -0,0 +1,108 @@
|
||||
/* 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);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved0) (void);
|
||||
void (*_gtk_reserved1) (void);
|
||||
void (*_gtk_reserved2) (void);
|
||||
void (*_gtk_reserved3) (void);
|
||||
};
|
||||
|
||||
|
||||
/* construction */
|
||||
GType gtk_combo_box_get_type (void);
|
||||
GtkWidget *gtk_combo_box_new (void);
|
||||
GtkWidget *gtk_combo_box_new_with_model (GtkTreeModel *model);
|
||||
|
||||
/* grids */
|
||||
void gtk_combo_box_set_wrap_width (GtkComboBox *combo_box,
|
||||
gint width);
|
||||
void gtk_combo_box_set_row_span_column (GtkComboBox *combo_box,
|
||||
gint row_span);
|
||||
void gtk_combo_box_set_column_span_column (GtkComboBox *combo_box,
|
||||
gint column_span);
|
||||
|
||||
/* 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);
|
||||
|
||||
/* 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);
|
||||
|
||||
/* programmatic control */
|
||||
void gtk_combo_box_popup (GtkComboBox *combo_box);
|
||||
void gtk_combo_box_popdown (GtkComboBox *combo_box);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_COMBO_BOX_H__ */
|
||||
74
libraries/i686-linux/include/gtk-2.0/gtk/gtkcomboboxentry.h
Normal file
74
libraries/i686-linux/include/gtk-2.0/gtk/gtkcomboboxentry.h
Normal file
@@ -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);
|
||||
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__ */
|
||||
229
libraries/i686-linux/include/gtk-2.0/gtk/gtkcontainer.h
Normal file
229
libraries/i686-linux/include/gtk-2.0/gtk/gtkcontainer.h
Normal file
@@ -0,0 +1,229 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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;
|
||||
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,
|
||||
...);
|
||||
void gtk_container_child_set (GtkContainer *container,
|
||||
GtkWidget *child,
|
||||
const gchar *first_prop_name,
|
||||
...);
|
||||
void gtk_container_child_get (GtkContainer *container,
|
||||
GtkWidget *child,
|
||||
const gchar *first_prop_name,
|
||||
...);
|
||||
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 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_CONTAINER_H__ */
|
||||
449
libraries/i686-linux/include/gtk-2.0/gtk/gtkctree.h
Normal file
449
libraries/i686-linux/include/gtk-2.0/gtk/gtkctree.h
Normal file
@@ -0,0 +1,449 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_CTREE_H__ */
|
||||
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
118
libraries/i686-linux/include/gtk-2.0/gtk/gtkcurve.h
Normal file
118
libraries/i686-linux/include/gtk-2.0/gtk/gtkcurve.h
Normal file
@@ -0,0 +1,118 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_CURVE_H__ */
|
||||
70
libraries/i686-linux/include/gtk-2.0/gtk/gtkdebug.h
Normal file
70
libraries/i686-linux/include/gtk-2.0/gtk/gtkdebug.h
Normal file
@@ -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_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
|
||||
} 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__ */
|
||||
174
libraries/i686-linux/include/gtk-2.0/gtk/gtkdialog.h
Normal file
174
libraries/i686-linux/include/gtk-2.0/gtk/gtkdialog.h
Normal file
@@ -0,0 +1,174 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* 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,
|
||||
...);
|
||||
|
||||
void gtk_dialog_set_response_sensitive (GtkDialog *dialog,
|
||||
gint response_id,
|
||||
gboolean setting);
|
||||
void gtk_dialog_set_default_response (GtkDialog *dialog,
|
||||
gint response_id);
|
||||
|
||||
void gtk_dialog_set_has_separator (GtkDialog *dialog,
|
||||
gboolean setting);
|
||||
gboolean gtk_dialog_get_has_separator (GtkDialog *dialog);
|
||||
|
||||
/* 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);
|
||||
gint _gtk_dialog_get_response_for_widget (GtkDialog *dialog,
|
||||
GtkWidget *widget);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_DIALOG_H__ */
|
||||
172
libraries/i686-linux/include/gtk-2.0/gtk/gtkdnd.h
Normal file
172
libraries/i686-linux/include/gtk-2.0/gtk/gtkdnd.h
Normal file
@@ -0,0 +1,172 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
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 >*/
|
||||
} 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);
|
||||
|
||||
/* 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_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);
|
||||
|
||||
/* 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_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 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_DND_H__ */
|
||||
|
||||
|
||||
|
||||
85
libraries/i686-linux/include/gtk-2.0/gtk/gtkdrawingarea.h
Normal file
85
libraries/i686-linux/include/gtk-2.0/gtk/gtkdrawingarea.h
Normal file
@@ -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_DRAWING_AREA_H__
|
||||
#define __GTK_DRAWING_AREA_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkwidget.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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 */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_DRAWING_AREA_H__ */
|
||||
119
libraries/i686-linux/include/gtk-2.0/gtk/gtkeditable.h
Normal file
119
libraries/i686-linux/include/gtk-2.0/gtk/gtkeditable.h
Normal file
@@ -0,0 +1,119 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_EDITABLE_H__ */
|
||||
217
libraries/i686-linux/include/gtk-2.0/gtk/gtkentry.h
Normal file
217
libraries/i686-linux/include/gtk-2.0/gtk/gtkentry.h
Normal file
@@ -0,0 +1,217 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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 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 (* 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);
|
||||
void (*_gtk_reserved4) (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);
|
||||
/* 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);
|
||||
|
||||
/* 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 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_ENTRY_H__ */
|
||||
108
libraries/i686-linux/include/gtk-2.0/gtk/gtkentrycompletion.h
Normal file
108
libraries/i686-linux/include/gtk-2.0/gtk/gtkentrycompletion.h
Normal file
@@ -0,0 +1,108 @@
|
||||
/* 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_);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved0) (void);
|
||||
void (*_gtk_reserved1) (void);
|
||||
void (*_gtk_reserved2) (void);
|
||||
void (*_gtk_reserved3) (void);
|
||||
};
|
||||
|
||||
/* core */
|
||||
GType gtk_entry_completion_get_type (void);
|
||||
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_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_);
|
||||
|
||||
/* convenience */
|
||||
void gtk_entry_completion_set_text_column (GtkEntryCompletion *completion,
|
||||
gint column);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_ENTRY_COMPLETION_H__ */
|
||||
461
libraries/i686-linux/include/gtk-2.0/gtk/gtkenums.h
Normal file
461
libraries/i686-linux/include/gtk-2.0/gtk/gtkenums.h
Normal file
@@ -0,0 +1,461 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
/* 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
|
||||
} 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
|
||||
} 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;
|
||||
|
||||
#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;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_ENUMS_H__ */
|
||||
74
libraries/i686-linux/include/gtk-2.0/gtk/gtkeventbox.h
Normal file
74
libraries/i686-linux/include/gtk-2.0/gtk/gtkeventbox.h
Normal file
@@ -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-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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_EVENT_BOX_H__ */
|
||||
91
libraries/i686-linux/include/gtk-2.0/gtk/gtkexpander.h
Normal file
91
libraries/i686-linux/include/gtk-2.0/gtk/gtkexpander.h
Normal file
@@ -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);
|
||||
|
||||
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__ */
|
||||
159
libraries/i686-linux/include/gtk-2.0/gtk/gtkfilechooser.h
Normal file
159
libraries/i686-linux/include/gtk-2.0/gtk/gtkfilechooser.h
Normal file
@@ -0,0 +1,159 @@
|
||||
/* 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;
|
||||
|
||||
GType gtk_file_chooser_get_type (void);
|
||||
|
||||
/* 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
|
||||
} 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);
|
||||
|
||||
/* Suggested name for the Save-type actions
|
||||
*/
|
||||
void gtk_file_chooser_set_current_name (GtkFileChooser *chooser,
|
||||
const gchar *name);
|
||||
|
||||
/* Filename manipulation
|
||||
*/
|
||||
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__ */
|
||||
@@ -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);
|
||||
GtkWidget *gtk_file_chooser_dialog_new (const gchar *title,
|
||||
GtkWindow *parent,
|
||||
GtkFileChooserAction action,
|
||||
const gchar *first_button_text,
|
||||
...);
|
||||
GtkWidget *gtk_file_chooser_dialog_new_with_backend (const gchar *title,
|
||||
GtkWindow *parent,
|
||||
GtkFileChooserAction action,
|
||||
const gchar *backend,
|
||||
const gchar *first_button_text,
|
||||
...);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_FILE_CHOOSER_DIALOG_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);
|
||||
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__ */
|
||||
78
libraries/i686-linux/include/gtk-2.0/gtk/gtkfilefilter.h
Normal file
78
libraries/i686-linux/include/gtk-2.0/gtk/gtkfilefilter.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/* 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);
|
||||
|
||||
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_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__ */
|
||||
125
libraries/i686-linux/include/gtk-2.0/gtk/gtkfilesel.h
Normal file
125
libraries/i686-linux/include/gtk-2.0/gtk/gtkfilesel.h
Normal file
@@ -0,0 +1,125 @@
|
||||
/* 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_FILESEL_H__
|
||||
#define __GTK_FILESEL_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkdialog.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
};
|
||||
|
||||
|
||||
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);
|
||||
/* This function returns the selected filename in the C runtime's
|
||||
* multibyte string encoding, which may or may not be the same as that
|
||||
* used by GDK (UTF-8). To convert to UTF-8, call g_filename_to_utf8().
|
||||
* The returned string points to a statically allocated buffer and
|
||||
* should be copied away.
|
||||
*/
|
||||
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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_FILESEL_H__ */
|
||||
361
libraries/i686-linux/include/gtk-2.0/gtk/gtkfilesystem.h
Normal file
361
libraries/i686-linux/include/gtk-2.0/gtk/gtkfilesystem.h
Normal file
@@ -0,0 +1,361 @@
|
||||
/* 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_ALL = (1 << 6) - 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);
|
||||
|
||||
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);
|
||||
|
||||
/* 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))
|
||||
|
||||
struct _GtkFileSystemIface
|
||||
{
|
||||
GTypeInterface base_iface;
|
||||
|
||||
/* Methods
|
||||
*/
|
||||
GSList * (*list_volumes) (GtkFileSystem *file_system);
|
||||
GtkFileSystemVolume * (*get_volume_for_path) (GtkFileSystem *file_system,
|
||||
const GtkFilePath *path);
|
||||
|
||||
GtkFileFolder * (*get_folder) (GtkFileSystem *file_system,
|
||||
const GtkFilePath *path,
|
||||
GtkFileInfoType types,
|
||||
GError **error);
|
||||
gboolean (*create_folder) (GtkFileSystem *file_system,
|
||||
const GtkFilePath *path,
|
||||
GError **error);
|
||||
|
||||
/* 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);
|
||||
gboolean (*volume_mount) (GtkFileSystem *file_system,
|
||||
GtkFileSystemVolume *volume,
|
||||
GError **error);
|
||||
char * (*volume_get_display_name) (GtkFileSystem *file_system,
|
||||
GtkFileSystemVolume *volume);
|
||||
GdkPixbuf * (*volume_render_icon) (GtkFileSystem *file_system,
|
||||
GtkFileSystemVolume *volume,
|
||||
GtkWidget *widget,
|
||||
gint pixel_size,
|
||||
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);
|
||||
|
||||
/* Icons */
|
||||
|
||||
GdkPixbuf * (*render_icon) (GtkFileSystem *file_system,
|
||||
const GtkFilePath *path,
|
||||
GtkWidget *widget,
|
||||
gint pixel_size,
|
||||
GError **error);
|
||||
|
||||
/* 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);
|
||||
};
|
||||
|
||||
GType gtk_file_system_get_type (void);
|
||||
|
||||
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);
|
||||
gboolean gtk_file_system_volume_mount (GtkFileSystem *file_system,
|
||||
GtkFileSystemVolume *volume,
|
||||
GError **error);
|
||||
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);
|
||||
|
||||
gboolean gtk_file_system_get_parent (GtkFileSystem *file_system,
|
||||
const GtkFilePath *path,
|
||||
GtkFilePath **parent,
|
||||
GError **error);
|
||||
GtkFileFolder *gtk_file_system_get_folder (GtkFileSystem *file_system,
|
||||
const GtkFilePath *path,
|
||||
GtkFileInfoType types,
|
||||
GError **error);
|
||||
gboolean gtk_file_system_create_folder (GtkFileSystem *file_system,
|
||||
const GtkFilePath *path,
|
||||
GError **error);
|
||||
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);
|
||||
|
||||
GdkPixbuf *gtk_file_system_render_icon (GtkFileSystem *file_system,
|
||||
const GtkFilePath *path,
|
||||
GtkWidget *widget,
|
||||
gint pixel_size,
|
||||
GError **error);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
/*
|
||||
* 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);
|
||||
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);
|
||||
#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))
|
||||
#define gtk_file_path_compare(path1,path2) strcmp (gtk_file_path_get_string (path1), \
|
||||
gtk_file_path_get_string (path2))
|
||||
|
||||
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__ */
|
||||
91
libraries/i686-linux/include/gtk-2.0/gtk/gtkfixed.h
Normal file
91
libraries/i686-linux/include/gtk-2.0/gtk/gtkfixed.h
Normal file
@@ -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_FIXED_H__
|
||||
#define __GTK_FIXED_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkcontainer.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_FIXED_H__ */
|
||||
100
libraries/i686-linux/include/gtk-2.0/gtk/gtkfontbutton.h
Normal file
100
libraries/i686-linux/include/gtk-2.0/gtk/gtkfontbutton.h
Normal file
@@ -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__ */
|
||||
|
||||
|
||||
|
||||
|
||||
202
libraries/i686-linux/include/gtk-2.0/gtk/gtkfontsel.h
Normal file
202
libraries/i686-linux/include/gtk-2.0/gtk/gtkfontsel.h
Normal file
@@ -0,0 +1,202 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_FONTSEL_H__ */
|
||||
96
libraries/i686-linux/include/gtk-2.0/gtk/gtkframe.h
Normal file
96
libraries/i686-linux/include/gtk-2.0/gtk/gtkframe.h
Normal file
@@ -0,0 +1,96 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_FRAME_H__ */
|
||||
95
libraries/i686-linux/include/gtk-2.0/gtk/gtkgamma.h
Normal file
95
libraries/i686-linux/include/gtk-2.0/gtk/gtkgamma.h
Normal file
@@ -0,0 +1,95 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_GAMMA_CURVE_H__ */
|
||||
51
libraries/i686-linux/include/gtk-2.0/gtk/gtkgc.h
Normal file
51
libraries/i686-linux/include/gtk-2.0/gtk/gtkgc.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
GdkGC* gtk_gc_get (gint depth,
|
||||
GdkColormap *colormap,
|
||||
GdkGCValues *values,
|
||||
GdkGCValuesMask values_mask);
|
||||
void gtk_gc_release (GdkGC *gc);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_GC_H__ */
|
||||
115
libraries/i686-linux/include/gtk-2.0/gtk/gtkhandlebox.h
Normal file
115
libraries/i686-linux/include/gtk-2.0/gtk/gtkhandlebox.h
Normal file
@@ -0,0 +1,115 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_HANDLE_BOX_H__ */
|
||||
79
libraries/i686-linux/include/gtk-2.0/gtk/gtkhbbox.h
Normal file
79
libraries/i686-linux/include/gtk-2.0/gtk/gtkhbbox.h
Normal file
@@ -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_HBUTTON_BOX_H__
|
||||
#define __GTK_HBUTTON_BOX_H__
|
||||
|
||||
|
||||
#include <gtk/gtkbbox.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_HBUTTON_BOX_H__ */
|
||||
72
libraries/i686-linux/include/gtk-2.0/gtk/gtkhbox.h
Normal file
72
libraries/i686-linux/include/gtk-2.0/gtk/gtkhbox.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_HBOX_H__ */
|
||||
64
libraries/i686-linux/include/gtk-2.0/gtk/gtkhpaned.h
Normal file
64
libraries/i686-linux/include/gtk-2.0/gtk/gtkhpaned.h
Normal file
@@ -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_HPANED_H__
|
||||
#define __GTK_HPANED_H__
|
||||
|
||||
#include <gtk/gtkpaned.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_HPANED_H__ */
|
||||
81
libraries/i686-linux/include/gtk-2.0/gtk/gtkhruler.h
Normal file
81
libraries/i686-linux/include/gtk-2.0/gtk/gtkhruler.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_HRULER_H__ */
|
||||
74
libraries/i686-linux/include/gtk-2.0/gtk/gtkhscale.h
Normal file
74
libraries/i686-linux/include/gtk-2.0/gtk/gtkhscale.h
Normal file
@@ -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-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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_HSCALE_H__ */
|
||||
71
libraries/i686-linux/include/gtk-2.0/gtk/gtkhscrollbar.h
Normal file
71
libraries/i686-linux/include/gtk-2.0/gtk/gtkhscrollbar.h
Normal file
@@ -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_HSCROLLBAR_H__
|
||||
#define __GTK_HSCROLLBAR_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkscrollbar.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_HSCROLLBAR_H__ */
|
||||
71
libraries/i686-linux/include/gtk-2.0/gtk/gtkhseparator.h
Normal file
71
libraries/i686-linux/include/gtk-2.0/gtk/gtkhseparator.h
Normal file
@@ -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_HSEPARATOR_H__
|
||||
#define __GTK_HSEPARATOR_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkseparator.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_HSEPARATOR_H__ */
|
||||
182
libraries/i686-linux/include/gtk-2.0/gtk/gtkiconfactory.h
Normal file
182
libraries/i686-linux/include/gtk-2.0/gtk/gtkiconfactory.h
Normal file
@@ -0,0 +1,182 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
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);
|
||||
};
|
||||
|
||||
GType gtk_icon_factory_get_type (void);
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
GSList* _gtk_icon_factory_list_ids (void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_ICON_FACTORY_H__ */
|
||||
161
libraries/i686-linux/include/gtk-2.0/gtk/gtkicontheme.h
Normal file
161
libraries/i686-linux/include/gtk-2.0/gtk/gtkicontheme.h
Normal file
@@ -0,0 +1,161 @@
|
||||
/* 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, gdk_icon_info_get_filename()
|
||||
* returns %NULL and you need to call gdk_icon_info_get_builtin_pixbuf().
|
||||
*
|
||||
* 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
|
||||
} 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) G_GNUC_CONST;
|
||||
|
||||
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);
|
||||
GtkIconInfo * gtk_icon_theme_lookup_icon (GtkIconTheme *icon_theme,
|
||||
const gchar *icon_name,
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_ICON_THEME_H__ */
|
||||
202
libraries/i686-linux/include/gtk-2.0/gtk/gtkimage.h
Normal file
202
libraries/i686-linux/include/gtk-2.0/gtk/gtkimage.h
Normal file
@@ -0,0 +1,202 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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;
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GTK_IMAGE_EMPTY,
|
||||
GTK_IMAGE_PIXMAP,
|
||||
GTK_IMAGE_IMAGE,
|
||||
GTK_IMAGE_PIXBUF,
|
||||
GTK_IMAGE_STOCK,
|
||||
GTK_IMAGE_ICON_SET,
|
||||
GTK_IMAGE_ANIMATION
|
||||
} GtkImageType;
|
||||
|
||||
struct _GtkImage
|
||||
{
|
||||
GtkMisc misc;
|
||||
|
||||
GtkImageType storage_type;
|
||||
|
||||
union
|
||||
{
|
||||
GtkImagePixmapData pixmap;
|
||||
GtkImageImageData image;
|
||||
GtkImagePixbufData pixbuf;
|
||||
GtkImageStockData stock;
|
||||
GtkImageIconSetData icon_set;
|
||||
GtkImageAnimationData anim;
|
||||
} data;
|
||||
|
||||
/* Only used with GTK_IMAGE_PIXMAP, GTK_IMAGE_IMAGE */
|
||||
GdkBitmap *mask;
|
||||
|
||||
/* Only used with GTK_IMAGE_STOCK, GTK_IMAGE_ICON_SET */
|
||||
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);
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
#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 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_IMAGE_H__ */
|
||||
81
libraries/i686-linux/include/gtk-2.0/gtk/gtkimagemenuitem.h
Normal file
81
libraries/i686-linux/include/gtk-2.0/gtk/gtkimagemenuitem.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/* 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_MENU_IMAGE_ITEM_H__
|
||||
#define __GTK_MENU_IMAGE_ITEM_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkmenuitem.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_IMAGE_MENU_ITEM_H__ */
|
||||
131
libraries/i686-linux/include/gtk-2.0/gtk/gtkimcontext.h
Normal file
131
libraries/i686-linux/include/gtk-2.0/gtk/gtkimcontext.h
Normal file
@@ -0,0 +1,131 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_IM_CONTEXT_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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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;
|
||||
};
|
||||
|
||||
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);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_IM_CONTEXT_SIMPLE_H__ */
|
||||
62
libraries/i686-linux/include/gtk-2.0/gtk/gtkimmodule.h
Normal file
62
libraries/i686-linux/include/gtk-2.0/gtk/gtkimmodule.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/* 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__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include <gtk/gtkimcontext.h>
|
||||
|
||||
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 (const gchar *lang);
|
||||
|
||||
/* 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);
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_IM_MODULE_H__ */
|
||||
76
libraries/i686-linux/include/gtk-2.0/gtk/gtkimmulticontext.h
Normal file
76
libraries/i686-linux/include/gtk-2.0/gtk/gtkimmulticontext.h
Normal file
@@ -0,0 +1,76 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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;
|
||||
|
||||
const 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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_IM_MULTICONTEXT_H__ */
|
||||
105
libraries/i686-linux/include/gtk-2.0/gtk/gtkinputdialog.h
Normal file
105
libraries/i686-linux/include/gtk-2.0/gtk/gtkinputdialog.h
Normal file
@@ -0,0 +1,105 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_INPUTDIALOG_H__ */
|
||||
73
libraries/i686-linux/include/gtk-2.0/gtk/gtkinvisible.h
Normal file
73
libraries/i686-linux/include/gtk-2.0/gtk/gtkinvisible.h
Normal file
@@ -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__ */
|
||||
83
libraries/i686-linux/include/gtk-2.0/gtk/gtkitem.h
Normal file
83
libraries/i686-linux/include/gtk-2.0/gtk/gtkitem.h
Normal file
@@ -0,0 +1,83 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_ITEM_H__ */
|
||||
246
libraries/i686-linux/include/gtk-2.0/gtk/gtkitemfactory.h
Normal file
246
libraries/i686-linux/include/gtk-2.0/gtk/gtkitemfactory.h
Normal file
@@ -0,0 +1,246 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef gchar * (*GtkTranslateFunc) (const gchar *path,
|
||||
gpointer func_data);
|
||||
|
||||
#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
|
||||
|
||||
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 || GTK_COMPILATION */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_ITEM_FACTORY_H__ */
|
||||
|
||||
172
libraries/i686-linux/include/gtk-2.0/gtk/gtklabel.h
Normal file
172
libraries/i686-linux/include/gtk-2.0/gtk/gtklabel.h
Normal file
@@ -0,0 +1,172 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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 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 char *str);
|
||||
GtkWidget* gtk_label_new_with_mnemonic (const char *str);
|
||||
void gtk_label_set_text (GtkLabel *label,
|
||||
const char *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_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_selectable (GtkLabel *label,
|
||||
gboolean setting);
|
||||
gboolean gtk_label_get_selectable (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);
|
||||
|
||||
|
||||
#ifndef GTK_DISABLE_DEPRECATED
|
||||
|
||||
#define gtk_label_set gtk_label_set_text
|
||||
void gtk_label_get (GtkLabel *label,
|
||||
char **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 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_LABEL_H__ */
|
||||
137
libraries/i686-linux/include/gtk-2.0/gtk/gtklayout.h
Normal file
137
libraries/i686-linux/include/gtk-2.0/gtk/gtklayout.h
Normal file
@@ -0,0 +1,137 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_LAYOUT_H */
|
||||
148
libraries/i686-linux/include/gtk-2.0/gtk/gtklist.h
Normal file
148
libraries/i686-linux/include/gtk-2.0/gtk/gtklist.h
Normal file
@@ -0,0 +1,148 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_LIST_H__ */
|
||||
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
98
libraries/i686-linux/include/gtk-2.0/gtk/gtklistitem.h
Normal file
98
libraries/i686-linux/include/gtk-2.0/gtk/gtklistitem.h
Normal file
@@ -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., 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_LIST_ITEM_H__ */
|
||||
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
129
libraries/i686-linux/include/gtk-2.0/gtk/gtkliststore.h
Normal file
129
libraries/i686-linux/include/gtk-2.0/gtk/gtkliststore.h
Normal file
@@ -0,0 +1,129 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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 root;
|
||||
gpointer tail;
|
||||
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);
|
||||
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_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_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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_LIST_STORE_H__ */
|
||||
228
libraries/i686-linux/include/gtk-2.0/gtk/gtkmain.h
Normal file
228
libraries/i686-linux/include/gtk-2.0/gtk/gtkmain.h
Normal file
@@ -0,0 +1,228 @@
|
||||
/* 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
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* 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 void (*GtkModuleInitFunc) (gint *argc,
|
||||
gchar ***argv);
|
||||
typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display);
|
||||
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;
|
||||
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);
|
||||
#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_find_module (const gchar *name,
|
||||
const gchar *type);
|
||||
gchar **_gtk_get_module_path (const gchar *type);
|
||||
|
||||
gchar *_gtk_get_lc_ctype (void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_MAIN_H__ */
|
||||
283
libraries/i686-linux/include/gtk-2.0/gtk/gtkmarshal.h
Normal file
283
libraries/i686-linux/include/gtk-2.0/gtk/gtkmarshal.h
Normal file
@@ -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 (./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 (./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 (./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 (./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 (./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 (./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 (./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 (./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 (./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 (./gtkmarshal.list:10) */
|
||||
#define gtk_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN
|
||||
#define gtk_marshal_NONE__BOOL gtk_marshal_VOID__BOOLEAN
|
||||
|
||||
/* NONE:BOXED (./gtkmarshal.list:11) */
|
||||
#define gtk_marshal_VOID__BOXED g_cclosure_marshal_VOID__BOXED
|
||||
#define gtk_marshal_NONE__BOXED gtk_marshal_VOID__BOXED
|
||||
|
||||
/* NONE:ENUM (./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 (./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 (./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 (./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 (./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 (./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 (./gtkmarshal.list:18) */
|
||||
#define gtk_marshal_VOID__VOID g_cclosure_marshal_VOID__VOID
|
||||
#define gtk_marshal_NONE__NONE gtk_marshal_VOID__VOID
|
||||
|
||||
/* NONE:OBJECT (./gtkmarshal.list:19) */
|
||||
#define gtk_marshal_VOID__OBJECT g_cclosure_marshal_VOID__OBJECT
|
||||
#define gtk_marshal_NONE__OBJECT gtk_marshal_VOID__OBJECT
|
||||
|
||||
/* NONE:POINTER (./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 (./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 (./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 (./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 (./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 (./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 (./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 (./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 (./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 (./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 (./gtkmarshal.list:30) */
|
||||
|
||||
/* NONE:STRING (./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 (./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 (./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 (./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 (./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 (./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 */
|
||||
213
libraries/i686-linux/include/gtk-2.0/gtk/gtkmenu.h
Normal file
213
libraries/i686-linux/include/gtk-2.0/gtk/gtkmenu.h
Normal file
@@ -0,0 +1,213 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#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);
|
||||
|
||||
#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 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_MENU_H__ */
|
||||
86
libraries/i686-linux/include/gtk-2.0/gtk/gtkmenubar.h
Normal file
86
libraries/i686-linux/include/gtk-2.0/gtk/gtkmenubar.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_MENU_BAR_H__ */
|
||||
134
libraries/i686-linux/include/gtk-2.0/gtk/gtkmenuitem.h
Normal file
134
libraries/i686-linux/include/gtk-2.0/gtk/gtkmenuitem.h
Normal file
@@ -0,0 +1,134 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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 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_remove_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);
|
||||
|
||||
#ifndef GTK_DISABLE_DEPRECATED
|
||||
#define gtk_menu_item_right_justify(menu_item) gtk_menu_item_set_right_justified ((menu_item), TRUE)
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_MENU_ITEM_H__ */
|
||||
126
libraries/i686-linux/include/gtk-2.0/gtk/gtkmenushell.h
Normal file
126
libraries/i686-linux/include/gtk-2.0/gtk/gtkmenushell.h
Normal file
@@ -0,0 +1,126 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved1) (void);
|
||||
void (*_gtk_reserved2) (void);
|
||||
void (*_gtk_reserved3) (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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_MENU_SHELL_H__ */
|
||||
110
libraries/i686-linux/include/gtk-2.0/gtk/gtkmessagedialog.h
Normal file
110
libraries/i686-linux/include/gtk-2.0/gtk/gtkmessagedialog.h
Normal file
@@ -0,0 +1,110 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GTK_MESSAGE_INFO,
|
||||
GTK_MESSAGE_WARNING,
|
||||
GTK_MESSAGE_QUESTION,
|
||||
GTK_MESSAGE_ERROR
|
||||
} 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);
|
||||
|
||||
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_markup (GtkMessageDialog *message_dialog,
|
||||
const gchar *str);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_MESSAGE_DIALOG_H__ */
|
||||
88
libraries/i686-linux/include/gtk-2.0/gtk/gtkmisc.h
Normal file
88
libraries/i686-linux/include/gtk-2.0/gtk/gtkmisc.h
Normal file
@@ -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_MISC_H__
|
||||
#define __GTK_MISC_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkwidget.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_MISC_H__ */
|
||||
250
libraries/i686-linux/include/gtk-2.0/gtk/gtknotebook.h
Normal file
250
libraries/i686-linux/include/gtk-2.0/gtk/gtknotebook.h
Normal file
@@ -0,0 +1,250 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
void (* change_current_page) (GtkNotebook *notebook,
|
||||
gint offset);
|
||||
void (* move_focus_out) (GtkNotebook *notebook,
|
||||
GtkDirectionType direction);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved1) (void);
|
||||
void (*_gtk_reserved2) (void);
|
||||
void (*_gtk_reserved3) (void);
|
||||
void (*_gtk_reserved4) (void);
|
||||
};
|
||||
|
||||
/***********************************************************
|
||||
* 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);
|
||||
|
||||
/***********************************************************
|
||||
* query, set current NoteebookPage *
|
||||
***********************************************************/
|
||||
|
||||
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);
|
||||
|
||||
#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 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_NOTEBOOK_H__ */
|
||||
220
libraries/i686-linux/include/gtk-2.0/gtk/gtkobject.h
Normal file
220
libraries/i686-linux/include/gtk-2.0/gtk/gtkobject.h
Normal file
@@ -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_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 */
|
||||
GTK_FLOATING = 1 << 1,
|
||||
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)
|
||||
#define GTK_OBJECT_FLOATING(obj) ((GTK_OBJECT_FLAGS (obj) & GTK_FLOATING) != 0)
|
||||
|
||||
/* 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
|
||||
{
|
||||
GObject 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
|
||||
{
|
||||
GObjectClass 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;
|
||||
|
||||
void gtk_object_sink (GtkObject *object);
|
||||
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,
|
||||
...);
|
||||
void gtk_object_set (GtkObject *object,
|
||||
const gchar *first_property_name,
|
||||
...);
|
||||
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__ */
|
||||
134
libraries/i686-linux/include/gtk-2.0/gtk/gtkoldeditable.h
Normal file
134
libraries/i686-linux/include/gtk-2.0/gtk/gtkoldeditable.h
Normal file
@@ -0,0 +1,134 @@
|
||||
/* 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_OLD_EDITABLE_H__ */
|
||||
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
96
libraries/i686-linux/include/gtk-2.0/gtk/gtkoptionmenu.h
Normal file
96
libraries/i686-linux/include/gtk-2.0/gtk/gtkoptionmenu.h
Normal file
@@ -0,0 +1,96 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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_);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_OPTION_MENU_H__ */
|
||||
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
145
libraries/i686-linux/include/gtk-2.0/gtk/gtkpaned.h
Normal file
145
libraries/i686-linux/include/gtk-2.0/gtk/gtkpaned.h
Normal file
@@ -0,0 +1,145 @@
|
||||
/* -*- 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>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_PANED_H__ */
|
||||
91
libraries/i686-linux/include/gtk-2.0/gtk/gtkpixmap.h
Normal file
91
libraries/i686-linux/include/gtk-2.0/gtk/gtkpixmap.h
Normal file
@@ -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_DISABLE_DEPRECATED
|
||||
|
||||
#ifndef __GTK_PIXMAP_H__
|
||||
#define __GTK_PIXMAP_H__
|
||||
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtkmisc.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_PIXMAP_H__ */
|
||||
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
104
libraries/i686-linux/include/gtk-2.0/gtk/gtkplug.h
Normal file
104
libraries/i686-linux/include/gtk-2.0/gtk/gtkplug.h
Normal file
@@ -0,0 +1,104 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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_);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_PLUG_H__ */
|
||||
146
libraries/i686-linux/include/gtk-2.0/gtk/gtkpreview.h
Normal file
146
libraries/i686-linux/include/gtk-2.0/gtk/gtkpreview.h
Normal file
@@ -0,0 +1,146 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
#endif /* __GTK_PREVIEW_H__ */
|
||||
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
110
libraries/i686-linux/include/gtk-2.0/gtk/gtkprivate.h
Normal file
110
libraries/i686-linux/include/gtk-2.0/gtk/gtkprivate.h
Normal file
@@ -0,0 +1,110 @@
|
||||
/* 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>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
/* 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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_PRIVATE_H__ */
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user