diff --git a/docs/reference/AUTHORS b/docs/reference/AUTHORS deleted file mode 100644 index 64f46b74b2..0000000000 --- a/docs/reference/AUTHORS +++ /dev/null @@ -1,7 +0,0 @@ -Damon Chaplin and others. - -See: - - http://www.gtk.org/rdp/status.html - -for a complete list. diff --git a/docs/reference/COPYING b/docs/reference/COPYING deleted file mode 100644 index df952d3cab..0000000000 --- a/docs/reference/COPYING +++ /dev/null @@ -1,30 +0,0 @@ -This work may be reproduced and distributed in whole or in part, in -any medium, physical or electronic, so as long as this copyright -notice remains intact and unchanged on all copies. Commercial -redistribution is permitted and encouraged, but you may not -redistribute, in whole or in part, under terms more restrictive than -those under which you received it. If you redistribute a modified or -translated version of this work, you must also make the source code to -the modified or translated version available in electronic form -without charge. However, mere aggregation as part of a larger work -shall not count as a modification for this purpose. - -All code examples in this work are placed into the public domain, -and may be used, modified and redistributed without restriction. - -BECAUSE THIS WORK IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE WORK, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE WORK "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. SHOULD THE WORK PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY REPAIR OR CORRECTION. - -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE WORK AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -WORK, EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog deleted file mode 100644 index b76e3993b7..0000000000 --- a/docs/reference/ChangeLog +++ /dev/null @@ -1,269 +0,0 @@ -2000-06-14 Damon Chaplin - - * gtk/tmpl/gtktooltips.sgml: added a note about no-window widgets. - -Mon Jun 5 11:17:25 2000 Owen Taylor - - * gdk/tmpl/general.sgml: Fix gdk_pointer_grab description - as pointed out by Dave Morse. - -Sun May 28 12:16:01 2000 Owen Taylor - - * gtk/tmpl/gtkaspectframe.sgml: Fix typo - pointed out by Gregory McLean. - -2000-05-28 Damon Chaplin - - * gdk/tmpl/event_structs.sgml: typo. - -2000-04-22 Damon Chaplin - - * gtk/tmpl/gtkenums.sgml: update from Lee Mallabone - - -2000-04-09 Damon Chaplin - - * gtk/tmpl/gtkmain.sgml: update from Torsten Landschoff - - - * gdk/tmpl/input_methods.sgml: - * gdk/tmpl/general.sgml: fixed typos. - -Tue Mar 14 14:17:46 2000 Raph Levien - - * gdk/tmpl/rgb.sgml: Better explanation of gdk_rgb_set_min_colors. - Thanks to Stric for spotting it. - -2000-03-07 Damon Chaplin - - * gtk/tmpl/gtkclist.sgml: fix to gtk_clist_set_reorderable(). It - reorders rows, not columns. From Guy Harris . - -2000-02-29 Damon Chaplin - - * gtk/tmpl/gtkmenuitem.sgml: minor fix from Nicolas GEORGE - . - -2000-02-28 Damon Chaplin - - * gtk/tmpl/gtkradiomenuitem.sgml: - * gtk/tmpl/gtkmenuitem.sgml: - * gtk/tmpl/gtknotebook.sgml: new menu item sections and minor update to - notebook section from Nicolas GEORGE . - -2000-02-18 Damon Chaplin - - * gtk/tmpl/gtktooltips.sgml: patch from - David Benson to note that gtk_tooltips_set_colors() - does not work. - -2000-02-09 Damon Chaplin - - * gdk/tmpl/input_methods.sgml: minor fix. - -2000-02-03 Damon Chaplin - - * gdk/gdk-sections.txt: rearranged a bit. - - * gdk/tmpl/event_structs.sgml: updated. - - * gtk/gtk-sections.txt: added INCLUDE tag for Private Info section. - - * gdk/tmpl/color_contexts.sgml: added note saying it is deprecated. - * gdk/tmpl/dnd.sgml: added note saying read the GTK+ DnD docs. - -2000-02-02 Damon Chaplin - - * gdk/tmpl/*.sgml: ran make templates. - - * gdk/gdk-docs.sgml: rearranged sections. - - * gdk/tmpl/events.sgml: documented. - - * gdk/tmpl/general.sgml: documented. - - * gdk/tmpl/rgb.sgml: fixed a few '@' -> '#'. - - * gdk/gdk-sections.txt: rearranged a few bits, including moving - GdkWChar and related functions from the input method section to the - font section, and GdkCapStyle etc. from Drawing Primitives to GCs. - - * gdk/tmpl/images.sgml: documented. - - * gdk/tmpl/drawing.sgml: updated. - - * gdk/tmpl/regions.sgml: updated. - - * gdk/tmpl/input_contexts.sgml: documented. - - * gdk/tmpl/input_methods.sgml: documented. - - * gdk/tmpl/selections.sgml: changed xref to a link since Jade says - a xref to a RefEntry is not supported. - -2000-01-19 Damon Chaplin - - * gtk/tmpl/gtkscrollbar.sgml: Started. - -2000-01-08 Damon Chaplin - - * gtk/tmpl/gtkclist.sgml: update from Paul Schifferer - - -Wed Jan 5 10:23:41 2000 Owen Taylor - - * gtk/tmpl/gtkprogress.sgml: Missing , remove extra - * gtk/tmpl/gtkobject.sgml: dos2unix - * gtk/tmpl/gtkcurve.sgml: missing - * gtk/tmpl/gtkarg.sgml: dos2unix, missing - * gtk/tmpl/gtkcolorsel.sgml: Missing 's - * gtk/tmpl/gtksignal.sgml (signal): dos2unix, missing 's - * gtk/tmpl/gtkmarshal.sgml: Missing - -1999-11-16 Damon Chaplin - - * gtk/tmpl/gtkmenubar.sgml: fixed minor error - using . - - * gtk/tmpl/gtknotebook.sgml: - * gtk/tmpl/gtklist.sgml: new sections from - Nicolas George , with help from - "Bob Springett" . - - * gtk/tmpl/gtkobject.sgml: - * gtk/tmpl/gtkarg.sgml: new sections from - David Benson . - - * gtk/tmpl/gtkvbox.sgml: - * gtk/tmpl/gtkhbox.sgml: fixed line endings. - - * gtk/tmpl/gtkvbbox.sgml: update from Lee Mallabone - - - * gdk/tmpl/drawing.sgml: fixed error in gdk_draw_arc() @angle2 param - - it is relative to @angle1 rather than from the 3 o'clock position. - - * gtk/tmpl/gtkfontseldlg.sgml: changed enums to use @ fields. - - * gtk/tmpl/gtkcolorsel.sgml: - * gtk/tmpl/gtkcolorseldlg.sgml: - * gtk/tmpl/gtkprogress.sgml: - * gtk/tmpl/gtkprogressbar.sgml: new sections from Tom Martone - - - * gtk/tmpl/gtkclist.sgml: partially written documentation from - Paul Schifferer who won't be able to finish it - -1999-09-22 Martin Norbäck - - * gtk/tmpl/gtkclist.sgml: Added information about the sorting functions - -Tue Oct 26 16:50:15 1999 Owen Taylor - - * gtk/tmpl/gtkrc.sgml: Added information about widget - paths and pattern matching. - -1999-09-22 Damon Chaplin - - * gtk/tmpl/*.sgml: ran make templates, to fix problems with structs. - - * gtk/gtk-sections.txt: rearranged GtkCombo section. - - * gtk/tmpl/gtkvseparator.sgml: - * gtk/tmpl/gtkhseparator.sgml: - * gtk/tmpl/gtkgc.sgml: - * gtk/tmpl/gtkfeatures.sgml: - * gtk/tmpl/gtktipsquery.sgml: - * gtk/tmpl/gtkitem.sgml: - * gtk/tmpl/gtkinvisible.sgml: - * gtk/tmpl/gtkgamma.sgml: - * gtk/tmpl/gtkdata.sgml: - * gtk/tmpl/gtkcurve.sgml: - * gtk/tmpl/gtkcombo.sgml: - * gtk/tmpl/gtkaccellabel.sgml: documented. - -1999-09-20 Damon Chaplin - - * gtk/gtk-docs.sgml: added role="no-toc" to the GTK+ Widgets & Objects - chapter since we've created our own special contents page. - -1999-09-19 Damon Chaplin - - * gtk/tmpl/gtkmarshal.sgml: - * gtk/tmpl/gtksignal.sgml: new sections from - David Benson . - - * gtk/gtk-sections.txt: rearranged signal sections, and made most - marshallers private. Moved GtkSignalRunType to signals section. - - * gtk/tmpl/gtkradiobutton.sgml: new section from Lee Mallabone. - -1999-09-17 Damon Chaplin - - * gtk/gtk-docs.sgml: removed menu factory and debugging sections. - - * gtk/gtk-sections.txt: made menu factory stuff private since it is - deprecated. Also made debugging stuff private since it is only useful - within GTK+. - -1999-09-14 Damon Chaplin - - * gtk/tmpl/gtkfilesel.sgml: fixed mismatched parentheses. - -1999-09-02 Damon Chaplin - - * gdk/tmpl/event_structs.sgml: - * gdk/tmpl/drawing.sgml: minor fixes. - -1999-09-20 David C. Mason - - * gtk/tmpl/gtkimage.sgml: first pass at gtkimage... not complete - -1999-08-28 Damon Chaplin - - * gtk/tmpl/gtkbbox.sgml: new section from Lee Mallabone. - - * gdk/gdk-sections.txt: rearranged rgb, regions, and drawing sections. - - * gdk/tmpl/rgb.sgml: new section from Raph Levien, with a few changes - by me, including a little example app. - - * gdk/tmpl/regions.sgml: - * gdk/tmpl/event_structs.sgml: - * gdk/tmpl/drawing.sgml: my first attempt. - * gdk/tmpl/cursors.sgml: tiny changes. - -Tue Aug 17 09:14:01 1999 Owen Taylor - - * gtk/tmpl/gtktypeutils.sgml: Fix corrupted end tag. - - * gtk/tmpl/gtkselection.sgml gtk/tmpl/gtkrc.sgml - gtk/tmpl/gtkdnd.sgml gtk/tmpl/gtkarrow.sgml - gtk/tmpl/gtkpaned.sgml gtk/tmpl/gtkmisc.sgml - gtk/tmpl/gtkhandlebox.sgml gtk/tmpl/gtkctree.sgml: - Added missing close tags. - -Thu Aug 19 14:43:08 1999 Owen Taylor - - * gdk/tmpl/gcs.sgml gdk/gdk-sections.txt: Added section. - (Written a while ago but fell through the cracks) - - * gtk/gtk-docs.sgml: Add a &hash; entity here as a - temporary hack. (There is no standard entity - for '#', and no way of escaping '#' in gtk-doc) - - * gtk/tmpl/gtkrc.sgml: Use the above to fix up #rrggbb - string literals. - - * gtk/tmpl/gtkdrawingarea.sgml: Fixed a couple - of errors in the example. (pointed out by - Nick Lamb) - -Mon Aug 16 6:60:53 1999 Owen Taylor - - * gdk/tmpl/properties.sgml - gdk/tmpl/selections.sgml - gdk/tmpl/input_devices.sgml: Documented - - * gdk/gdk-sections.txt: Moved around types for - input devices properties and selections, marked - a few functions as private. diff --git a/docs/reference/README b/docs/reference/README deleted file mode 100644 index 024306be4b..0000000000 --- a/docs/reference/README +++ /dev/null @@ -1,62 +0,0 @@ -This package contains the reference documentation -for GTK+. For more information about GTK+ -see: - - http://www.gtk.org - -For information about contributing to the -GLib/GTK+ reference documentation project, see: - - http://www.gtk.org/rdp/ - -The GTK+ reference documentation is freely redistributable, -see the file COPYING for details. - - -REQUIREMENTS -============ - -To build the documentation, you must have the gtk-doc -package installed. To rebuild the template files, -you must have the current version of the GTK+ -header files installed. - - -BUILD -===== - -First, run configure to generate the makefiles for this -module. There is one option specific to this package - - --with-html-dir=DIR top of installed HTML documentation tree - - -The Makefiles in the gdk/ and gtk/ subdirs each define three targets: - - templates: - - Scan the headers and merge the results with the current - template files - - sgml: - - Generate SGML files using the DocBook DTD from - the template files - - html: - - Generate HTML from the SGML files. - -To build the documentation, do: - - make sgml - make html - -You should only run the 'make templates' step if you -need to regenerate the templates for a more recent -version of the GTK+ sources. - -INSTALLATION -============ - - make install diff --git a/docs/reference/README.cvs-commits b/docs/reference/README.cvs-commits deleted file mode 100644 index 8b6edbd661..0000000000 --- a/docs/reference/README.cvs-commits +++ /dev/null @@ -1,39 +0,0 @@ -Before making any changes to this module, please -contact: - - Damon Chaplin - -This will ensure that duplicate work does not occur, -and also make sure we know who has written what -parts of the documentation. See - - http://www.gtk.org/rdp/ - -for more information. - -By contributing work to the Reference Documentation -Project, you agree that it will be covered under the -license terms described in the file COPYING -included in this directory. - - -Other notes: - -- Do not run 'make templates' unless you have - the latest cvs version of the gtk-1-2 - branch of GTK+ and the latest CVS version - of gtk-doc. - - (This is very important. Otherwise, the template - files may be come corrupted.) - - Make sure that gtk-config --prefix points - to the correct version of GTK+. - -- As always, ChangeLog entries should be made for - each commit. These can be really brief - "documented GHashTable"; but if you are editing - something someone else wrote, please be specific. - (Or better, send the changes to them for their - approval, first) - diff --git a/docs/reference/gdk/.cvsignore b/docs/reference/gdk/.cvsignore deleted file mode 100644 index 1fa9184d72..0000000000 --- a/docs/reference/gdk/.cvsignore +++ /dev/null @@ -1,6 +0,0 @@ -Makefile -Makefile.in -sgml -html -gdk-decl-list.txt -gdk-unused.txt diff --git a/docs/reference/gdk/Makefile.am b/docs/reference/gdk/Makefile.am deleted file mode 100644 index 0b0b0eacff..0000000000 --- a/docs/reference/gdk/Makefile.am +++ /dev/null @@ -1,50 +0,0 @@ -## Process this file with automake to produce Makefile.in - -# The name of the module. -DOC_MODULE=gdk - -# The top-level SGML file. -DOC_MAIN_SGML_FILE=gdk-docs.sgml - -# We could alternatively use this for using installed headers. -INCLUDE_DIR=`gtk-config --prefix`/include/gdk - - -TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) - -scan: - gtkdoc-scan --module=$(DOC_MODULE) $(INCLUDE_DIR)/gdk.h $(INCLUDE_DIR)/gdktypes.h $(INCLUDE_DIR)/gdkrgb.h - -templates: scan - gtkdoc-mktmpl --module=$(DOC_MODULE) - -sgml: - gtkdoc-mkdb --module=$(DOC_MODULE) - -html: - if ! test -d html ; then mkdir html ; fi - -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) - -clean-local: - rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt - -maintainer-clean-local: clean - rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt - -install-data-local: - install -d -m 0755 $(TARGET_DIR) - install -m 0644 html/*.html $(TARGET_DIR) - install -m 0644 html/index.sgml $(TARGET_DIR) - gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR) - -EXTRA_DIST = \ - $(DOC_MAIN_SGML_FILE) \ - $(DOC_MODULE)-sections.txt \ - gdk-overrides.txt \ - gdk-decl.txt - -dist-hook: - mkdir $(distdir)/tmpl - cp -p tmpl/*.sgml $(distdir)/tmpl - -.PHONY : html sgml templates scan diff --git a/docs/reference/gdk/gdk-decl.txt b/docs/reference/gdk/gdk-decl.txt deleted file mode 100644 index cd75a1e2a3..0000000000 --- a/docs/reference/gdk/gdk-decl.txt +++ /dev/null @@ -1,2919 +0,0 @@ - -GDK_PRIORITY_EVENTS -#define GDK_PRIORITY_EVENTS (G_PRIORITY_DEFAULT) - - -gdk_init -void -gint *argc,gchar ***argv - - -gdk_init_check -gboolean -gint *argc,gchar ***argv - - -gdk_exit -void -gint error_code - - -gdk_set_locale -gchar * -void - - -gdk_error_trap_push -void -void - - -gdk_error_trap_pop -gint -void - - -gdk_events_pending -gboolean -void - - -gdk_event_get -GdkEvent * -void - - -gdk_event_peek -GdkEvent * -void - - -gdk_event_get_graphics_expose -GdkEvent * -GdkWindow *window - - -gdk_event_put -void -GdkEvent *event - - -gdk_event_copy -GdkEvent * -GdkEvent *event - - -gdk_event_free -void -GdkEvent *event - - -gdk_event_get_time -guint32 -GdkEvent *event - - -gdk_event_handler_set -void -GdkEventFunc func,gpointer data,GDestroyNotify notify - - -gdk_set_show_events -void -gint show_events - - -gdk_set_use_xshm -void -gint use_xshm - - -gdk_get_show_events -gint -void - - -gdk_get_use_xshm -gint -void - - -gdk_get_display -gchar * -void - - -gdk_time_get -guint32 -void - - -gdk_timer_get -guint32 -void - - -gdk_timer_set -void -guint32 milliseconds - - -gdk_timer_enable -void -void - - -gdk_timer_disable -void -void - - -gdk_input_add_full -gint -gint source,GdkInputCondition condition,GdkInputFunction function,gpointer data,GdkDestroyNotify destroy - - -gdk_input_add -gint -gint source,GdkInputCondition condition,GdkInputFunction function,gpointer data - - -gdk_input_remove -void -gint tag - - -gdk_pointer_grab -gint -GdkWindow * window,gint owner_events,GdkEventMask event_mask,GdkWindow * confine_to,GdkCursor * cursor,guint32 time - - -gdk_pointer_ungrab -void -guint32 time - - -gdk_keyboard_grab -gint -GdkWindow * window,gint owner_events,guint32 time - - -gdk_keyboard_ungrab -void -guint32 time - - -gdk_pointer_is_grabbed -gint -void - - -gdk_screen_width -gint -void - - -gdk_screen_height -gint -void - - -gdk_screen_width_mm -gint -void - - -gdk_screen_height_mm -gint -void - - -gdk_flush -void -void - - -gdk_beep -void -void - - -gdk_key_repeat_disable -void -void - - -gdk_key_repeat_restore -void -void - - -gdk_visual_get_best_depth -gint -void - - -gdk_visual_get_best_type -GdkVisualType -void - - -gdk_visual_get_system -GdkVisual * -void - - -gdk_visual_get_best -GdkVisual * -void - - -gdk_visual_get_best_with_depth -GdkVisual * -gint depth - - -gdk_visual_get_best_with_type -GdkVisual * -GdkVisualType visual_type - - -gdk_visual_get_best_with_both -GdkVisual * -gint depth,GdkVisualType visual_type - - -gdk_visual_ref -GdkVisual * -GdkVisual *visual - - -gdk_visual_unref -void -GdkVisual *visual - - -gdk_query_depths -void -gint **depths,gint *count - - -gdk_query_visual_types -void -GdkVisualType **visual_types,gint *count - - -gdk_list_visuals -GList * -void - - -gdk_window_new -GdkWindow * -GdkWindow *parent,GdkWindowAttr *attributes,gint attributes_mask - - -gdk_window_destroy -void -GdkWindow *window - - -gdk_window_ref -GdkWindow * -GdkWindow *window - - -gdk_window_unref -void -GdkWindow *window - - -gdk_window_at_pointer -GdkWindow * -gint *win_x,gint *win_y - - -gdk_window_show -void -GdkWindow *window - - -gdk_window_hide -void -GdkWindow *window - - -gdk_window_withdraw -void -GdkWindow *window - - -gdk_window_move -void -GdkWindow *window,gint x,gint y - - -gdk_window_resize -void -GdkWindow *window,gint width,gint height - - -gdk_window_move_resize -void -GdkWindow *window,gint x,gint y,gint width,gint height - - -gdk_window_reparent -void -GdkWindow *window,GdkWindow *new_parent,gint x,gint y - - -gdk_window_clear -void -GdkWindow *window - - -gdk_window_clear_area -void -GdkWindow *window,gint x,gint y,gint width,gint height - - -gdk_window_clear_area_e -void -GdkWindow *window,gint x,gint y,gint width,gint height - - -gdk_window_copy_area -void -GdkWindow *window,GdkGC *gc,gint x,gint y,GdkWindow *source_window,gint source_x,gint source_y,gint width,gint height - - -gdk_window_raise -void -GdkWindow *window - - -gdk_window_lower -void -GdkWindow *window - - -gdk_window_set_user_data -void -GdkWindow *window,gpointer user_data - - -gdk_window_set_override_redirect -void -GdkWindow *window,gboolean override_redirect - - -gdk_window_add_filter -void -GdkWindow *window,GdkFilterFunc function,gpointer data - - -gdk_window_remove_filter -void -GdkWindow *window,GdkFilterFunc function,gpointer data - - -gdk_window_shape_combine_mask -void -GdkWindow *window,GdkBitmap *shape_mask,gint offset_x,gint offset_y - - -gdk_window_set_child_shapes -void -GdkWindow *window - - -gdk_window_merge_child_shapes -void -GdkWindow *window - - -gdk_window_is_visible -gboolean -GdkWindow *window - - -gdk_window_is_viewable -gboolean -GdkWindow *window - - -gdk_window_set_static_gravities -gboolean -GdkWindow *window,gboolean use_static - - -gdk_add_client_message_filter -void -GdkAtom message_type,GdkFilterFunc func,gpointer data - - -gdk_drag_context_new -GdkDragContext * -void - - -gdk_drag_context_ref -void -GdkDragContext *context - - -gdk_drag_context_unref -void -GdkDragContext *context - - -gdk_drag_status -void -GdkDragContext *context,GdkDragAction action,guint32 time - - -gdk_drop_reply -void -GdkDragContext *context,gboolean ok,guint32 time - - -gdk_drop_finish -void -GdkDragContext *context,gboolean success,guint32 time - - -gdk_drag_get_selection -GdkAtom -GdkDragContext *context - - -gdk_drag_begin -GdkDragContext * -GdkWindow *window,GList *targets - - -gdk_drag_get_protocol -guint32 -guint32 xid,GdkDragProtocol *protocol - - -gdk_drag_find_window -void -GdkDragContext *context,GdkWindow *drag_window,gint x_root,gint y_root,GdkWindow **dest_window,GdkDragProtocol *protocol - - -gdk_drag_motion -gboolean -GdkDragContext *context,GdkWindow *dest_window,GdkDragProtocol protocol,gint x_root,gint y_root,GdkDragAction suggested_action,GdkDragAction possible_actions,guint32 time - - -gdk_drag_drop -void -GdkDragContext *context,guint32 time - - -gdk_drag_abort -void -GdkDragContext *context,guint32 time - - -gdk_drag_get_selection -GdkAtom -GdkDragContext *context - - -gdk_window_set_hints -void -GdkWindow *window,gint x,gint y,gint min_width,gint min_height,gint max_width,gint max_height,gint flags - - -gdk_window_set_geometry_hints -void -GdkWindow *window,GdkGeometry *geometry,GdkWindowHints flags - - -gdk_set_sm_client_id -void -const gchar *sm_client_id - - -gdk_window_set_title -void -GdkWindow *window,const gchar *title - - -gdk_window_set_role -void -GdkWindow *window,const gchar *role - - -gdk_window_set_transient_for -void -GdkWindow *window,GdkWindow *leader - - -gdk_window_set_background -void -GdkWindow *window,GdkColor *color - - -gdk_window_set_back_pixmap -void -GdkWindow *window,GdkPixmap *pixmap,gint parent_relative - - -gdk_window_set_cursor -void -GdkWindow *window,GdkCursor *cursor - - -gdk_window_set_colormap -void -GdkWindow *window,GdkColormap *colormap - - -gdk_window_get_user_data -void -GdkWindow *window,gpointer *data - - -gdk_window_get_geometry -void -GdkWindow *window,gint *x,gint *y,gint *width,gint *height,gint *depth - - -gdk_window_get_position -void -GdkWindow *window,gint *x,gint *y - - -gdk_window_get_size -void -GdkWindow *window,gint *width,gint *height - - -gdk_window_get_visual -GdkVisual * -GdkWindow *window - - -gdk_window_get_colormap -GdkColormap * -GdkWindow *window - - -gdk_window_get_type -GdkWindowType -GdkWindow *window - - -gdk_window_get_origin -gint -GdkWindow *window,gint *x,gint *y - - -gdk_window_get_deskrelative_origin -gboolean -GdkWindow *window,gint *x,gint *y - - -gdk_window_get_root_origin -void -GdkWindow *window,gint *x,gint *y - - -gdk_window_get_pointer -GdkWindow * -GdkWindow *window,gint *x,gint *y,GdkModifierType *mask - - -gdk_window_get_parent -GdkWindow * -GdkWindow *window - - -gdk_window_get_toplevel -GdkWindow * -GdkWindow *window - - -gdk_window_get_children -GList * -GdkWindow *window - - -gdk_window_get_events -GdkEventMask -GdkWindow *window - - -gdk_window_set_events -void -GdkWindow *window,GdkEventMask event_mask - - -gdk_window_set_icon -void -GdkWindow *window,GdkWindow *icon_window,GdkPixmap *pixmap,GdkBitmap *mask - - -gdk_window_set_icon_name -void -GdkWindow *window,gchar *name - - -gdk_window_set_group -void -GdkWindow *window,GdkWindow *leader - - -gdk_window_set_decorations -void -GdkWindow *window,GdkWMDecoration decorations - - -gdk_window_set_functions -void -GdkWindow *window,GdkWMFunction functions - - -gdk_window_get_toplevels -GList * -void - - -gdk_window_register_dnd -void -GdkWindow *window - - -gdk_drawable_set_data -void -GdkDrawable *drawable,const gchar *key,gpointer data,GDestroyNotify destroy_func - - -gdk_cursor_new -GdkCursor * -GdkCursorType cursor_type - - -gdk_cursor_new_from_pixmap -GdkCursor * -GdkPixmap *source,GdkPixmap *mask,GdkColor *fg,GdkColor *bg,gint x,gint y - - -gdk_cursor_destroy -void -GdkCursor *cursor - - -gdk_gc_new -GdkGC * -GdkWindow *window - - -gdk_gc_new_with_values -GdkGC * -GdkWindow *window,GdkGCValues *values,GdkGCValuesMask values_mask - - -gdk_gc_ref -GdkGC * -GdkGC *gc - - -gdk_gc_unref -void -GdkGC *gc - - -gdk_gc_destroy -void -GdkGC *gc - - -gdk_gc_get_values -void -GdkGC *gc,GdkGCValues *values - - -gdk_gc_set_foreground -void -GdkGC *gc,GdkColor *color - - -gdk_gc_set_background -void -GdkGC *gc,GdkColor *color - - -gdk_gc_set_font -void -GdkGC *gc,GdkFont *font - - -gdk_gc_set_function -void -GdkGC *gc,GdkFunction function - - -gdk_gc_set_fill -void -GdkGC *gc,GdkFill fill - - -gdk_gc_set_tile -void -GdkGC *gc,GdkPixmap *tile - - -gdk_gc_set_stipple -void -GdkGC *gc,GdkPixmap *stipple - - -gdk_gc_set_ts_origin -void -GdkGC *gc,gint x,gint y - - -gdk_gc_set_clip_origin -void -GdkGC *gc,gint x,gint y - - -gdk_gc_set_clip_mask -void -GdkGC *gc,GdkBitmap *mask - - -gdk_gc_set_clip_rectangle -void -GdkGC *gc,GdkRectangle *rectangle - - -gdk_gc_set_clip_region -void -GdkGC *gc,GdkRegion *region - - -gdk_gc_set_subwindow -void -GdkGC *gc,GdkSubwindowMode mode - - -gdk_gc_set_exposures -void -GdkGC *gc,gint exposures - - -gdk_gc_set_line_attributes -void -GdkGC *gc,gint line_width,GdkLineStyle line_style,GdkCapStyle cap_style,GdkJoinStyle join_style - - -gdk_gc_set_dashes -void -GdkGC *gc,gint dash_offset,gchar dash_list[],gint n - - -gdk_gc_copy -void -GdkGC *dst_gc,GdkGC *src_gc - - -gdk_pixmap_new -GdkPixmap * -GdkWindow *window,gint width,gint height,gint depth - - -gdk_bitmap_create_from_data -GdkBitmap * -GdkWindow *window,const gchar *data,gint width,gint height - - -gdk_pixmap_create_from_data -GdkPixmap * -GdkWindow *window,const gchar *data,gint width,gint height,gint depth,GdkColor *fg,GdkColor *bg - - -gdk_pixmap_create_from_xpm -GdkPixmap * -GdkWindow *window,GdkBitmap **mask,GdkColor *transparent_color,const gchar *filename - - -gdk_pixmap_colormap_create_from_xpm -GdkPixmap * -GdkWindow *window,GdkColormap *colormap,GdkBitmap **mask,GdkColor *transparent_color,const gchar *filename - - -gdk_pixmap_create_from_xpm_d -GdkPixmap * -GdkWindow *window,GdkBitmap **mask,GdkColor *transparent_color,gchar **data - - -gdk_pixmap_colormap_create_from_xpm_d -GdkPixmap * -GdkWindow *window,GdkColormap *colormap,GdkBitmap **mask,GdkColor *transparent_color,gchar **data - - -gdk_pixmap_ref -GdkPixmap * -GdkPixmap *pixmap - - -gdk_pixmap_unref -void -GdkPixmap *pixmap - - -gdk_bitmap_ref -GdkBitmap * -GdkBitmap *pixmap - - -gdk_bitmap_unref -void -GdkBitmap *pixmap - - -gdk_image_new_bitmap -GdkImage * -GdkVisual *visual,gpointer data,gint width,gint height - - -gdk_image_new -GdkImage * -GdkImageType type,GdkVisual *visual,gint width,gint height - - -gdk_image_get -GdkImage * -GdkWindow *window,gint x,gint y,gint width,gint height - - -gdk_image_put_pixel -void -GdkImage *image,gint x,gint y,guint32 pixel - - -gdk_image_get_pixel -guint32 -GdkImage *image,gint x,gint y - - -gdk_image_destroy -void -GdkImage *image - - -gdk_colormap_new -GdkColormap * -GdkVisual *visual,gint allocate - - -gdk_colormap_ref -GdkColormap * -GdkColormap *cmap - - -gdk_colormap_unref -void -GdkColormap *cmap - - -gdk_colormap_get_system -GdkColormap * -void - - -gdk_colormap_get_system_size -gint -void - - -gdk_colormap_change -void -GdkColormap *colormap,gint ncolors - - -gdk_colormap_alloc_colors -gint -GdkColormap *colormap,GdkColor *colors,gint ncolors,gboolean writeable,gboolean best_match,gboolean *success - - -gdk_colormap_alloc_color -gboolean -GdkColormap *colormap,GdkColor *color,gboolean writeable,gboolean best_match - - -gdk_colormap_free_colors -void -GdkColormap *colormap,GdkColor *colors,gint ncolors - - -gdk_colormap_get_visual -GdkVisual * -GdkColormap *colormap - - -gdk_color_copy -GdkColor * -GdkColor *color - - -gdk_color_free -void -GdkColor *color - - -gdk_color_parse -gboolean -const gchar *spec,GdkColor *color - - -gdk_color_hash -guint -const GdkColor *colora,const GdkColor *colorb - - -gdk_color_equal -gint -const GdkColor *colora,const GdkColor *colorb - - -gdk_colors_store -void -GdkColormap *colormap,GdkColor *colors,gint ncolors - - -gdk_colors_alloc -gboolean -GdkColormap *colormap,gint contiguous,gulong *planes,gint nplanes,gulong *pixels,gint npixels - - -gdk_colors_free -void -GdkColormap *colormap,gulong *pixels,gint npixels,gulong planes - - -gdk_color_white -gboolean -GdkColormap *colormap,GdkColor *color - - -gdk_color_black -gboolean -GdkColormap *colormap,GdkColor *color - - -gdk_color_alloc -gboolean -GdkColormap *colormap,GdkColor *color - - -gdk_color_change -gboolean -GdkColormap *colormap,GdkColor *color - - -gdk_font_load -GdkFont * -const gchar *font_name - - -gdk_fontset_load -GdkFont * -gchar *fontset_name - - -gdk_font_ref -GdkFont * -GdkFont *font - - -gdk_font_unref -void -GdkFont *font - - -gdk_font_id -gint -const GdkFont *font - - -gdk_font_equal -gint -const GdkFont *fonta,const GdkFont *fontb - - -gdk_string_width -gint -GdkFont *font,const gchar *string - - -gdk_text_width -gint -GdkFont *font,const gchar *text,gint text_length - - -gdk_text_width_wc -gint -GdkFont *font,const GdkWChar *text,gint text_length - - -gdk_char_width -gint -GdkFont *font,gchar character - - -gdk_char_width_wc -gint -GdkFont *font,GdkWChar character - - -gdk_string_measure -gint -GdkFont *font,const gchar *string - - -gdk_text_measure -gint -GdkFont *font,const gchar *text,gint text_length - - -gdk_char_measure -gint -GdkFont *font,gchar character - - -gdk_string_height -gint -GdkFont *font,const gchar *string - - -gdk_text_height -gint -GdkFont *font,const gchar *text,gint text_length - - -gdk_char_height -gint -GdkFont *font,gchar character - - -gdk_text_extents -void -GdkFont *font,const gchar *text,gint text_length,gint *lbearing,gint *rbearing,gint *width,gint *ascent,gint *descent - - -gdk_text_extents_wc -void -GdkFont *font,const GdkWChar *text,gint text_length,gint *lbearing,gint *rbearing,gint *width,gint *ascent,gint *descent - - -gdk_string_extents -void -GdkFont *font,const gchar *string,gint *lbearing,gint *rbearing,gint *width,gint *ascent,gint *descent - - -gdk_draw_point -void -GdkDrawable *drawable,GdkGC *gc,gint x,gint y - - -gdk_draw_line -void -GdkDrawable *drawable,GdkGC *gc,gint x1,gint y1,gint x2,gint y2 - - -gdk_draw_rectangle -void -GdkDrawable *drawable,GdkGC *gc,gint filled,gint x,gint y,gint width,gint height - - -gdk_draw_arc -void -GdkDrawable *drawable,GdkGC *gc,gint filled,gint x,gint y,gint width,gint height,gint angle1,gint angle2 - - -gdk_draw_polygon -void -GdkDrawable *drawable,GdkGC *gc,gint filled,GdkPoint *points,gint npoints - - -gdk_draw_string -void -GdkDrawable *drawable,GdkFont *font,GdkGC *gc,gint x,gint y,const gchar *string - - -gdk_draw_text -void -GdkDrawable *drawable,GdkFont *font,GdkGC *gc,gint x,gint y,const gchar *text,gint text_length - - -gdk_draw_text_wc -void -GdkDrawable *drawable,GdkFont *font,GdkGC *gc,gint x,gint y,const GdkWChar *text,gint text_length - - -gdk_draw_pixmap -void -GdkDrawable *drawable,GdkGC *gc,GdkDrawable *src,gint xsrc,gint ysrc,gint xdest,gint ydest,gint width,gint height - - -gdk_draw_bitmap -void -GdkDrawable *drawable,GdkGC *gc,GdkDrawable *src,gint xsrc,gint ysrc,gint xdest,gint ydest,gint width,gint height - - -gdk_draw_image -void -GdkDrawable *drawable,GdkGC *gc,GdkImage *image,gint xsrc,gint ysrc,gint xdest,gint ydest,gint width,gint height - - -gdk_draw_points -void -GdkDrawable *drawable,GdkGC *gc,GdkPoint *points,gint npoints - - -gdk_draw_segments -void -GdkDrawable *drawable,GdkGC *gc,GdkSegment *segs,gint nsegs - - -gdk_draw_lines -void -GdkDrawable *drawable,GdkGC *gc,GdkPoint *points,gint npoints - - -gdk_selection_owner_set -gint -GdkWindow *owner,GdkAtom selection,guint32 time,gint send_event - - -gdk_selection_owner_get -GdkWindow * -GdkAtom selection - - -gdk_selection_convert -void -GdkWindow *requestor,GdkAtom selection,GdkAtom target,guint32 time - - -gdk_selection_property_get -gint -GdkWindow *requestor,guchar **data,GdkAtom *prop_type,gint *prop_format - - -gdk_selection_send_notify -void -guint32 requestor,GdkAtom selection,GdkAtom target,GdkAtom property,guint32 time - - -gdk_text_property_to_text_list -gint -GdkAtom encoding, gint format,guchar *text, gint length,gchar ***list - - -gdk_free_text_list -void -gchar **list - - -gdk_string_to_compound_text -gint -gchar *str,GdkAtom *encoding, gint *format,guchar **ctext, gint *length - - -gdk_free_compound_text -void -guchar *ctext - - -gdk_atom_intern -GdkAtom -const gchar *atom_name,gint only_if_exists - - -gdk_atom_name -gchar * -GdkAtom atom - - -gdk_property_get -gint -GdkWindow *window,GdkAtom property,GdkAtom type,gulong offset,gulong length,gint pdelete,GdkAtom *actual_property_type,gint *actual_format,gint *actual_length,guchar **data - - -gdk_property_change -void -GdkWindow *window,GdkAtom property,GdkAtom type,gint format,GdkPropMode mode,guchar *data,gint nelements - - -gdk_property_delete -void -GdkWindow *window,GdkAtom property - - -gdk_rectangle_intersect -gint -GdkRectangle *src1,GdkRectangle *src2,GdkRectangle *dest - - -gdk_rectangle_union -void -GdkRectangle *src1,GdkRectangle *src2,GdkRectangle *dest - - -gdk_input_init -void -void - - -gdk_input_exit -void -void - - -gdk_input_list_devices -GList * -void - - -gdk_input_set_extension_events -void -GdkWindow *window,gint mask,GdkExtensionMode mode - - -gdk_input_set_source -void -guint32 deviceid,GdkInputSource source - - -gdk_input_set_mode -gint -guint32 deviceid,GdkInputMode mode - - -gdk_input_set_axes -void -guint32 deviceid,GdkAxisUse *axes - - -gdk_input_set_key -void -guint32 deviceid,guint index,guint keyval,GdkModifierType modifiers - - -gdk_input_window_get_pointer -void -GdkWindow *window,guint32 deviceid,gdouble *x,gdouble *y,gdouble *pressure,gdouble *xtilt,gdouble *ytilt,GdkModifierType *mask - - -gdk_input_motion_events -GdkTimeCoord * -GdkWindow *window,guint32 deviceid,guint32 start,guint32 stop,gint *nevents_return - - -gdk_im_ready -gint -void - - -gdk_im_begin -void -GdkIC *ic,GdkWindow *window - - -gdk_im_end -void -void - - -gdk_im_decide_style -GdkIMStyle -GdkIMStyle supported_style - - -gdk_im_set_best_style -GdkIMStyle -GdkIMStyle best_allowed_style - - -gdk_ic_new -GdkIC * -GdkICAttr *attr,GdkICAttributesType mask - - -gdk_ic_destroy -void -GdkIC *ic - - -gdk_ic_get_style -GdkIMStyle -GdkIC *ic - - -gdk_ic_get_events -GdkEventMask -GdkIC *ic - - -gdk_ic_attr_new -GdkICAttr * -void - - -gdk_ic_attr_destroy -void -GdkICAttr *attr - - -gdk_ic_set_attr -GdkICAttributesType -GdkIC *ic,GdkICAttr *attr,GdkICAttributesType mask - - -gdk_ic_get_attr -GdkICAttributesType -GdkIC *ic,GdkICAttr *attr,GdkICAttributesType mask - - -gdk_wcstombs -gchar * -const GdkWChar *src - - -gdk_mbstowcs -gint -GdkWChar *dest,const gchar *src,gint dest_max - - -gdk_color_context_new -GdkColorContext * -GdkVisual *visual,GdkColormap *colormap - - -gdk_color_context_new_mono -GdkColorContext * -GdkVisual *visual,GdkColormap *colormap - - -gdk_color_context_free -void -GdkColorContext *cc - - -gdk_color_context_get_pixel -gulong -GdkColorContext *cc,gushort red,gushort green,gushort blue,gint *failed - - -gdk_color_context_get_pixels -void -GdkColorContext *cc,gushort *reds,gushort *greens,gushort *blues,gint ncolors,gulong *colors,gint *nallocated - - -gdk_color_context_get_pixels_incremental -void -GdkColorContext *cc,gushort *reds,gushort *greens,gushort *blues,gint ncolors,gint *used,gulong *colors,gint *nallocated - - -gdk_color_context_query_color -gint -GdkColorContext *cc,GdkColor *color - - -gdk_color_context_query_colors -gint -GdkColorContext *cc,GdkColor *colors,gint num_colors - - -gdk_color_context_add_palette -gint -GdkColorContext *cc,GdkColor *palette,gint num_palette - - -gdk_color_context_init_dither -void -GdkColorContext *cc - - -gdk_color_context_free_dither -void -GdkColorContext *cc - - -gdk_color_context_get_pixel_from_palette -gulong -GdkColorContext *cc,gushort *red,gushort *green,gushort *blue,gint *failed - - -gdk_color_context_get_index_from_palette -guchar -GdkColorContext *cc,gint *red,gint *green,gint *blue,gint *failed - - -gdk_region_new -GdkRegion * -void - - -gdk_region_destroy -void -GdkRegion *region - - -gdk_region_get_clipbox -void -GdkRegion *region,GdkRectangle *rectangle - - -gdk_region_empty -gboolean -GdkRegion *region - - -gdk_region_equal -gboolean -GdkRegion *region1,GdkRegion *region2 - - -gdk_region_point_in -gboolean -GdkRegion *region,int x,int y - - -gdk_region_rect_in -GdkOverlapType -GdkRegion *region,GdkRectangle *rect - - -gdk_region_polygon -GdkRegion * -GdkPoint *points,gint npoints,GdkFillRule fill_rule - - -gdk_region_offset -void -GdkRegion *region,gint dx,gint dy - - -gdk_region_shrink -void -GdkRegion *region,gint dx,gint dy - - -gdk_region_union_with_rect -GdkRegion * -GdkRegion *region,GdkRectangle *rect - - -gdk_regions_intersect -GdkRegion * -GdkRegion *source1,GdkRegion *source2 - - -gdk_regions_union -GdkRegion * -GdkRegion *source1,GdkRegion *source2 - - -gdk_regions_subtract -GdkRegion * -GdkRegion *source1,GdkRegion *source2 - - -gdk_regions_xor -GdkRegion * -GdkRegion *source1,GdkRegion *source2 - - -gdk_event_send_clientmessage_toall -void -GdkEvent *event - - -gdk_event_send_client_message -gboolean -GdkEvent *event,guint32 xid - - -gdk_keyval_name -gchar * -guint keyval - - -gdk_keyval_from_name -guint -const gchar *keyval_name - - -gdk_keyval_to_upper -guint -guint keyval - - -gdk_keyval_to_lower -guint -guint keyval - - -gdk_keyval_is_upper -gboolean -guint keyval - - -gdk_keyval_is_lower -gboolean -guint keyval - - -gdk_threads_mutex -extern GMutex *gdk_threads_mutex; - - -gdk_threads_enter -void -void - - -gdk_threads_leave -void -void - - -GDK_THREADS_ENTER -# define GDK_THREADS_ENTER() G_STMT_START { \ - if (gdk_threads_mutex) \ - g_mutex_lock (gdk_threads_mutex); \ - } G_STMT_END - - -GDK_THREADS_LEAVE -# define GDK_THREADS_LEAVE() G_STMT_START { \ - if (gdk_threads_mutex) \ - g_mutex_unlock (gdk_threads_mutex); \ - } G_STMT_END - - -GDK_THREADS_ENTER -# define GDK_THREADS_ENTER() - - -GDK_THREADS_LEAVE -# define GDK_THREADS_LEAVE() - - -GDK_NONE -#define GDK_NONE 0L - - -GDK_CURRENT_TIME -#define GDK_CURRENT_TIME 0L - - -GDK_PARENT_RELATIVE -#define GDK_PARENT_RELATIVE 1L - - -GDK_CORE_POINTER -#define GDK_CORE_POINTER 0xfedc - - -GdkAtom -typedef gulong GdkAtom; - - -GdkColor - - -GdkColormap - - -GdkVisual - - -GdkWindowAttr - - -GdkWindow - - -GdkGeometry - - -GdkImage - - -GdkGCValues - - -GdkGC - - -GdkPoint - - -GdkRectangle - - -GdkSegment - - -GdkFont - - -GdkCursor - - -GdkColorContextDither - - -GdkColorContext - - -GdkDragContext - - -GdkEventAny - - -GdkEventExpose - - -GdkEventNoExpose - - -GdkEventVisibility - - -GdkEventMotion - - -GdkEventButton - - -GdkEventKey - - -GdkEventFocus - - -GdkEventCrossing - - -GdkEventConfigure - - -GdkEventProperty - - -GdkEventSelection - - -GdkEventProximity - - -GdkEventClient - - -GdkEventDND - - -GdkDeviceKey - - -GdkDeviceInfo - - -GdkTimeCoord - - -GdkRegion - - -GdkEventFunc -void -GdkEvent *event, - gpointer data - - -GdkIC - - -GdkICAttr - - -GdkWChar -typedef guint32 GdkWChar; - - -GdkWindowType -typedef enum -{ - GDK_WINDOW_ROOT, - GDK_WINDOW_TOPLEVEL, - GDK_WINDOW_CHILD, - GDK_WINDOW_DIALOG, - GDK_WINDOW_TEMP, - GDK_WINDOW_PIXMAP, - GDK_WINDOW_FOREIGN -} GdkWindowType; - - -GdkWindowClass -typedef enum -{ - GDK_INPUT_OUTPUT, - GDK_INPUT_ONLY -} GdkWindowClass; - - -GdkImageType -typedef enum -{ - GDK_IMAGE_NORMAL, - GDK_IMAGE_SHARED, - GDK_IMAGE_FASTEST -} GdkImageType; - - -GdkVisualType -typedef enum -{ - GDK_VISUAL_STATIC_GRAY, - GDK_VISUAL_GRAYSCALE, - GDK_VISUAL_STATIC_COLOR, - GDK_VISUAL_PSEUDO_COLOR, - GDK_VISUAL_TRUE_COLOR, - GDK_VISUAL_DIRECT_COLOR -} GdkVisualType; - - -GdkFontType -typedef enum -{ - GDK_FONT_FONT, - GDK_FONT_FONTSET -} GdkFontType; - - -GdkWindowAttributesType -typedef enum -{ - GDK_WA_TITLE = 1 << 1, - GDK_WA_X = 1 << 2, - GDK_WA_Y = 1 << 3, - GDK_WA_CURSOR = 1 << 4, - GDK_WA_COLORMAP = 1 << 5, - GDK_WA_VISUAL = 1 << 6, - GDK_WA_WMCLASS = 1 << 7, - GDK_WA_NOREDIR = 1 << 8 -} GdkWindowAttributesType; - - -GdkWindowHints -typedef enum -{ - GDK_HINT_POS = 1 << 0, - GDK_HINT_MIN_SIZE = 1 << 1, - GDK_HINT_MAX_SIZE = 1 << 2, - GDK_HINT_BASE_SIZE = 1 << 3, - GDK_HINT_ASPECT = 1 << 4, - GDK_HINT_RESIZE_INC = 1 << 5 -} GdkWindowHints; - - -GdkFunction -typedef enum -{ - GDK_COPY, - GDK_INVERT, - GDK_XOR, - GDK_CLEAR, - GDK_AND, - GDK_AND_REVERSE, - GDK_AND_INVERT, - GDK_NOOP, - GDK_OR, - GDK_EQUIV, - GDK_OR_REVERSE, - GDK_COPY_INVERT, - GDK_OR_INVERT, - GDK_NAND, - GDK_SET -} GdkFunction; - - -GdkFill -typedef enum -{ - GDK_SOLID, - GDK_TILED, - GDK_STIPPLED, - GDK_OPAQUE_STIPPLED -} GdkFill; - - -GdkFillRule -typedef enum -{ - GDK_EVEN_ODD_RULE, - GDK_WINDING_RULE -} GdkFillRule; - - -GdkLineStyle -typedef enum -{ - GDK_LINE_SOLID, - GDK_LINE_ON_OFF_DASH, - GDK_LINE_DOUBLE_DASH -} GdkLineStyle; - - -GdkCapStyle -typedef enum -{ - GDK_CAP_NOT_LAST, - GDK_CAP_BUTT, - GDK_CAP_ROUND, - GDK_CAP_PROJECTING -} GdkCapStyle; - - -GdkJoinStyle -typedef enum -{ - GDK_JOIN_MITER, - GDK_JOIN_ROUND, - GDK_JOIN_BEVEL -} GdkJoinStyle; - - -GdkCursorType -typedef enum -{ -#include - GDK_LAST_CURSOR, - GDK_CURSOR_IS_PIXMAP = -1 -} GdkCursorType; - - -GdkFilterReturn -typedef enum { - GDK_FILTER_CONTINUE, /* Event not handled, continue processesing */ - GDK_FILTER_TRANSLATE, /* Translated event stored */ - GDK_FILTER_REMOVE /* Terminate processing, removing event */ -} GdkFilterReturn; - - -GdkVisibilityState -typedef enum { - GDK_VISIBILITY_UNOBSCURED, - GDK_VISIBILITY_PARTIAL, - GDK_VISIBILITY_FULLY_OBSCURED -} GdkVisibilityState; - - -GdkEventType -typedef enum -{ - GDK_NOTHING = -1, - GDK_DELETE = 0, - GDK_DESTROY = 1, - GDK_EXPOSE = 2, - GDK_MOTION_NOTIFY = 3, - GDK_BUTTON_PRESS = 4, - GDK_2BUTTON_PRESS = 5, - GDK_3BUTTON_PRESS = 6, - GDK_BUTTON_RELEASE = 7, - GDK_KEY_PRESS = 8, - GDK_KEY_RELEASE = 9, - GDK_ENTER_NOTIFY = 10, - GDK_LEAVE_NOTIFY = 11, - GDK_FOCUS_CHANGE = 12, - GDK_CONFIGURE = 13, - GDK_MAP = 14, - GDK_UNMAP = 15, - GDK_PROPERTY_NOTIFY = 16, - GDK_SELECTION_CLEAR = 17, - GDK_SELECTION_REQUEST = 18, - GDK_SELECTION_NOTIFY = 19, - GDK_PROXIMITY_IN = 20, - GDK_PROXIMITY_OUT = 21, - GDK_DRAG_ENTER = 22, - GDK_DRAG_LEAVE = 23, - GDK_DRAG_MOTION = 24, - GDK_DRAG_STATUS = 25, - GDK_DROP_START = 26, - GDK_DROP_FINISHED = 27, - GDK_CLIENT_EVENT = 28, - GDK_VISIBILITY_NOTIFY = 29, - GDK_NO_EXPOSE = 30 -} GdkEventType; - - -GdkEventMask -typedef enum -{ - GDK_EXPOSURE_MASK = 1 << 1, - GDK_POINTER_MOTION_MASK = 1 << 2, - GDK_POINTER_MOTION_HINT_MASK = 1 << 3, - GDK_BUTTON_MOTION_MASK = 1 << 4, - GDK_BUTTON1_MOTION_MASK = 1 << 5, - GDK_BUTTON2_MOTION_MASK = 1 << 6, - GDK_BUTTON3_MOTION_MASK = 1 << 7, - GDK_BUTTON_PRESS_MASK = 1 << 8, - GDK_BUTTON_RELEASE_MASK = 1 << 9, - GDK_KEY_PRESS_MASK = 1 << 10, - GDK_KEY_RELEASE_MASK = 1 << 11, - GDK_ENTER_NOTIFY_MASK = 1 << 12, - GDK_LEAVE_NOTIFY_MASK = 1 << 13, - GDK_FOCUS_CHANGE_MASK = 1 << 14, - GDK_STRUCTURE_MASK = 1 << 15, - GDK_PROPERTY_CHANGE_MASK = 1 << 16, - GDK_VISIBILITY_NOTIFY_MASK = 1 << 17, - GDK_PROXIMITY_IN_MASK = 1 << 18, - GDK_PROXIMITY_OUT_MASK = 1 << 19, - GDK_SUBSTRUCTURE_MASK = 1 << 20, - GDK_ALL_EVENTS_MASK = 0x0FFFFF -} GdkEventMask; - - -GdkNotifyType -typedef enum -{ - GDK_NOTIFY_ANCESTOR = 0, - GDK_NOTIFY_VIRTUAL = 1, - GDK_NOTIFY_INFERIOR = 2, - GDK_NOTIFY_NONLINEAR = 3, - GDK_NOTIFY_NONLINEAR_VIRTUAL = 4, - GDK_NOTIFY_UNKNOWN = 5 -} GdkNotifyType; - - -GdkCrossingMode -typedef enum -{ - GDK_CROSSING_NORMAL, - GDK_CROSSING_GRAB, - GDK_CROSSING_UNGRAB -} GdkCrossingMode; - - -GdkModifierType -typedef enum -{ - GDK_SHIFT_MASK = 1 << 0, - GDK_LOCK_MASK = 1 << 1, - GDK_CONTROL_MASK = 1 << 2, - GDK_MOD1_MASK = 1 << 3, - GDK_MOD2_MASK = 1 << 4, - GDK_MOD3_MASK = 1 << 5, - GDK_MOD4_MASK = 1 << 6, - GDK_MOD5_MASK = 1 << 7, - GDK_BUTTON1_MASK = 1 << 8, - GDK_BUTTON2_MASK = 1 << 9, - GDK_BUTTON3_MASK = 1 << 10, - GDK_BUTTON4_MASK = 1 << 11, - GDK_BUTTON5_MASK = 1 << 12, - GDK_RELEASE_MASK = 1 << 13, - GDK_MODIFIER_MASK = 0x3fff -} GdkModifierType; - - -GdkSubwindowMode -typedef enum -{ - GDK_CLIP_BY_CHILDREN = 0, - GDK_INCLUDE_INFERIORS = 1 -} GdkSubwindowMode; - - -GdkInputCondition -typedef enum -{ - GDK_INPUT_READ = 1 << 0, - GDK_INPUT_WRITE = 1 << 1, - GDK_INPUT_EXCEPTION = 1 << 2 -} GdkInputCondition; - - -GdkStatus -typedef enum -{ - GDK_OK = 0, - GDK_ERROR = -1, - GDK_ERROR_PARAM = -2, - GDK_ERROR_FILE = -3, - GDK_ERROR_MEM = -4 -} GdkStatus; - - -GdkByteOrder -typedef enum -{ - GDK_LSB_FIRST, - GDK_MSB_FIRST -} GdkByteOrder; - - -GdkGCValuesMask -typedef enum -{ - GDK_GC_FOREGROUND = 1 << 0, - GDK_GC_BACKGROUND = 1 << 1, - GDK_GC_FONT = 1 << 2, - GDK_GC_FUNCTION = 1 << 3, - GDK_GC_FILL = 1 << 4, - GDK_GC_TILE = 1 << 5, - GDK_GC_STIPPLE = 1 << 6, - GDK_GC_CLIP_MASK = 1 << 7, - GDK_GC_SUBWINDOW = 1 << 8, - GDK_GC_TS_X_ORIGIN = 1 << 9, - GDK_GC_TS_Y_ORIGIN = 1 << 10, - GDK_GC_CLIP_X_ORIGIN = 1 << 11, - GDK_GC_CLIP_Y_ORIGIN = 1 << 12, - GDK_GC_EXPOSURES = 1 << 13, - GDK_GC_LINE_WIDTH = 1 << 14, - GDK_GC_LINE_STYLE = 1 << 15, - GDK_GC_CAP_STYLE = 1 << 16, - GDK_GC_JOIN_STYLE = 1 << 17 -} GdkGCValuesMask; - - -GdkSelection -typedef enum -{ - GDK_SELECTION_PRIMARY = 1, - GDK_SELECTION_SECONDARY = 2 -} GdkSelection; - - -GdkPropertyState -typedef enum -{ - GDK_PROPERTY_NEW_VALUE, - GDK_PROPERTY_DELETE -} GdkPropertyState; - - -GdkPropMode -typedef enum -{ - GDK_PROP_MODE_REPLACE, - GDK_PROP_MODE_PREPEND, - GDK_PROP_MODE_APPEND -} GdkPropMode; - - -GdkInputSource -typedef enum -{ - GDK_SOURCE_MOUSE, - GDK_SOURCE_PEN, - GDK_SOURCE_ERASER, - GDK_SOURCE_CURSOR -} GdkInputSource; - - -GdkInputMode -typedef enum -{ - GDK_MODE_DISABLED, - GDK_MODE_SCREEN, - GDK_MODE_WINDOW -} GdkInputMode; - - -GdkAxisUse -typedef enum -{ - GDK_AXIS_IGNORE, - GDK_AXIS_X, - GDK_AXIS_Y, - GDK_AXIS_PRESSURE, - GDK_AXIS_XTILT, - GDK_AXIS_YTILT, - GDK_AXIS_LAST -} GdkAxisUse; - - -GdkTarget -typedef enum -{ - GDK_TARGET_BITMAP = 5, - GDK_TARGET_COLORMAP = 7, - GDK_TARGET_DRAWABLE = 17, - GDK_TARGET_PIXMAP = 20, - GDK_TARGET_STRING = 31 -} GdkTarget; - - -GdkSelectionType -typedef enum -{ - GDK_SELECTION_TYPE_ATOM = 4, - GDK_SELECTION_TYPE_BITMAP = 5, - GDK_SELECTION_TYPE_COLORMAP = 7, - GDK_SELECTION_TYPE_DRAWABLE = 17, - GDK_SELECTION_TYPE_INTEGER = 19, - GDK_SELECTION_TYPE_PIXMAP = 20, - GDK_SELECTION_TYPE_WINDOW = 33, - GDK_SELECTION_TYPE_STRING = 31 -} GdkSelectionType; - - -GdkExtensionMode -typedef enum -{ - GDK_EXTENSION_EVENTS_NONE, - GDK_EXTENSION_EVENTS_ALL, - GDK_EXTENSION_EVENTS_CURSOR -} GdkExtensionMode; - - -GdkIMStyle -typedef enum /*< flags >*/ -{ - GDK_IM_PREEDIT_AREA = 0x0001, - GDK_IM_PREEDIT_CALLBACKS = 0x0002, - GDK_IM_PREEDIT_POSITION = 0x0004, - GDK_IM_PREEDIT_NOTHING = 0x0008, - GDK_IM_PREEDIT_NONE = 0x0010, - GDK_IM_PREEDIT_MASK = 0x001f, - - GDK_IM_STATUS_AREA = 0x0100, - GDK_IM_STATUS_CALLBACKS = 0x0200, - GDK_IM_STATUS_NOTHING = 0x0400, - GDK_IM_STATUS_NONE = 0x0800, - GDK_IM_STATUS_MASK = 0x0f00 -} GdkIMStyle; - - -GdkICAttributesType -typedef enum -{ - GDK_IC_STYLE = 1 << 0, - GDK_IC_CLIENT_WINDOW = 1 << 1, - GDK_IC_FOCUS_WINDOW = 1 << 2, - GDK_IC_FILTER_EVENTS = 1 << 3, - GDK_IC_SPOT_LOCATION = 1 << 4, - GDK_IC_LINE_SPACING = 1 << 5, - GDK_IC_CURSOR = 1 << 6, - - GDK_IC_PREEDIT_FONTSET = 1 << 10, - GDK_IC_PREEDIT_AREA = 1 << 11, - GDK_IC_PREEDIT_AREA_NEEDED = 1 << 12, - GDK_IC_PREEDIT_FOREGROUND = 1 << 13, - GDK_IC_PREEDIT_BACKGROUND = 1 << 14, - GDK_IC_PREEDIT_PIXMAP = 1 << 15, - GDK_IC_PREEDIT_COLORMAP = 1 << 16, - - GDK_IC_STATUS_FONTSET = 1 << 21, - GDK_IC_STATUS_AREA = 1 << 22, - GDK_IC_STATUS_AREA_NEEDED = 1 << 23, - GDK_IC_STATUS_FOREGROUND = 1 << 24, - GDK_IC_STATUS_BACKGROUND = 1 << 25, - GDK_IC_STATUS_PIXMAP = 1 << 26, - GDK_IC_STATUS_COLORMAP = 1 << 27, - - GDK_IC_ALL_REQ = GDK_IC_STYLE | - GDK_IC_CLIENT_WINDOW, - - GDK_IC_PREEDIT_AREA_REQ = GDK_IC_PREEDIT_AREA | - GDK_IC_PREEDIT_FONTSET, - GDK_IC_PREEDIT_POSITION_REQ = GDK_IC_PREEDIT_AREA | GDK_IC_SPOT_LOCATION | - GDK_IC_PREEDIT_FONTSET, - - GDK_IC_STATUS_AREA_REQ = GDK_IC_STATUS_AREA | - GDK_IC_STATUS_FONTSET -} GdkICAttributesType; - - -GdkWMDecoration -typedef enum -{ - GDK_DECOR_ALL = 1 << 0, - GDK_DECOR_BORDER = 1 << 1, - GDK_DECOR_RESIZEH = 1 << 2, - GDK_DECOR_TITLE = 1 << 3, - GDK_DECOR_MENU = 1 << 4, - GDK_DECOR_MINIMIZE = 1 << 5, - GDK_DECOR_MAXIMIZE = 1 << 6 -} GdkWMDecoration; - - -GdkWMFunction -typedef enum -{ - GDK_FUNC_ALL = 1 << 0, - GDK_FUNC_RESIZE = 1 << 1, - GDK_FUNC_MOVE = 1 << 2, - GDK_FUNC_MINIMIZE = 1 << 3, - GDK_FUNC_MAXIMIZE = 1 << 4, - GDK_FUNC_CLOSE = 1 << 5 -} GdkWMFunction; - - -GdkInputFunction -void -gpointer data, - gint source, - GdkInputCondition condition - - -GdkDestroyNotify -void -gpointer data - - -GdkColorContextMode -typedef enum -{ - GDK_CC_MODE_UNDEFINED, - GDK_CC_MODE_BW, - GDK_CC_MODE_STD_CMAP, - GDK_CC_MODE_TRUE, - GDK_CC_MODE_MY_GRAY, - GDK_CC_MODE_PALETTE -} GdkColorContextMode; - - -GdkOverlapType -typedef enum -{ - GDK_OVERLAP_RECTANGLE_IN, - GDK_OVERLAP_RECTANGLE_OUT, - GDK_OVERLAP_RECTANGLE_PART -} GdkOverlapType; - - -GdkDragAction -typedef enum { - GDK_ACTION_DEFAULT = 1 << 0, - GDK_ACTION_COPY = 1 << 1, - GDK_ACTION_MOVE = 1 << 2, - GDK_ACTION_LINK = 1 << 3, - GDK_ACTION_PRIVATE = 1 << 4, - GDK_ACTION_ASK = 1 << 5 -} GdkDragAction; - - -GdkDragProtocol -typedef enum { - GDK_DRAG_PROTO_MOTIF, - GDK_DRAG_PROTO_XDND, - GDK_DRAG_PROTO_ROOTWIN, /* A root window with nobody claiming - * drags */ - GDK_DRAG_PROTO_NONE /* Not a valid drag window */ -} GdkDragProtocol; - - -GdkColor -struct GdkColor -{ - gulong pixel; - gushort red; - gushort green; - gushort blue; -}; - - -GdkColormap -struct GdkColormap -{ - gint size; - GdkColor *colors; -}; - - -GdkVisual -struct GdkVisual -{ - GdkVisualType type; - gint depth; - GdkByteOrder byte_order; - gint colormap_size; - gint bits_per_rgb; - - guint32 red_mask; - gint red_shift; - gint red_prec; - - guint32 green_mask; - gint green_shift; - gint green_prec; - - guint32 blue_mask; - gint blue_shift; - gint blue_prec; -}; - - -GdkWindowAttr -struct GdkWindowAttr -{ - gchar *title; - gint event_mask; - gint16 x, y; - gint16 width; - gint16 height; - GdkWindowClass wclass; - GdkVisual *visual; - GdkColormap *colormap; - GdkWindowType window_type; - GdkCursor *cursor; - gchar *wmclass_name; - gchar *wmclass_class; - gboolean override_redirect; -}; - - -GdkWindow -struct GdkWindow -{ - gpointer user_data; -}; - - -GdkGeometry -struct GdkGeometry { - gint min_width; - gint min_height; - gint max_width; - gint max_height; - gint base_width; - gint base_height; - gint width_inc; - gint height_inc; - gdouble min_aspect; - gdouble max_aspect; - /* GdkGravity gravity; */ -}; - - -GdkImage -struct GdkImage -{ - GdkImageType type; - GdkVisual *visual; /* visual used to create the image */ - GdkByteOrder byte_order; - guint16 width; - guint16 height; - guint16 depth; - guint16 bpp; /* bytes per pixel */ - guint16 bpl; /* bytes per line */ - gpointer mem; -}; - - -GdkGCValues -struct GdkGCValues -{ - GdkColor foreground; - GdkColor background; - GdkFont *font; - GdkFunction function; - GdkFill fill; - GdkPixmap *tile; - GdkPixmap *stipple; - GdkPixmap *clip_mask; - GdkSubwindowMode subwindow_mode; - gint ts_x_origin; - gint ts_y_origin; - gint clip_x_origin; - gint clip_y_origin; - gint graphics_exposures; - gint line_width; - GdkLineStyle line_style; - GdkCapStyle cap_style; - GdkJoinStyle join_style; -}; - - -GdkGC -struct GdkGC -{ - gint dummy_var; -}; - - -GdkPoint -struct GdkPoint -{ - gint16 x; - gint16 y; -}; - - -GdkRectangle -struct GdkRectangle -{ - gint16 x; - gint16 y; - guint16 width; - guint16 height; -}; - - -GdkSegment -struct GdkSegment -{ - gint16 x1; - gint16 y1; - gint16 x2; - gint16 y2; -}; - - -GdkFont -struct GdkFont -{ - GdkFontType type; - gint ascent; - gint descent; -}; - - -GdkCursor -struct GdkCursor -{ - GdkCursorType type; -}; - - -GdkColorContextDither -struct GdkColorContextDither -{ - gint fast_rgb[32][32][32]; /* quick look-up table for faster rendering */ - gint fast_err[32][32][32]; /* internal RGB error information */ - gint fast_erg[32][32][32]; - gint fast_erb[32][32][32]; -}; - - -GdkColorContext -struct GdkColorContext -{ - GdkVisual *visual; - GdkColormap *colormap; - - gint num_colors; /* available no. of colors in colormap */ - gint max_colors; /* maximum no. of colors */ - gint num_allocated; /* no. of allocated colors */ - - GdkColorContextMode mode; - gint need_to_free_colormap; - GdkAtom std_cmap_atom; - - gulong *clut; /* color look-up table */ - GdkColor *cmap; /* colormap */ - - GHashTable *color_hash; /* hash table of allocated colors */ - GdkColor *palette; /* preallocated palette */ - gint num_palette; /* size of palette */ - - GdkColorContextDither *fast_dither; /* fast dither matrix */ - - struct - { - gint red; - gint green; - gint blue; - } shifts; - - - -GdkDeviceKey -struct GdkDeviceKey -{ - guint keyval; - GdkModifierType modifiers; -}; - - -GdkDeviceInfo -struct GdkDeviceInfo -{ - guint32 deviceid; - gchar *name; - GdkInputSource source; - GdkInputMode mode; - gint has_cursor; /* TRUE if the X pointer follows device motion */ - gint num_axes; - GdkAxisUse *axes; /* Specifies use for each axis */ - gint num_keys; - GdkDeviceKey *keys; -}; - - -GdkTimeCoord -struct GdkTimeCoord -{ - guint32 time; - gdouble x; - gdouble y; - gdouble pressure; - gdouble xtilt; - gdouble ytilt; -}; - - -GdkDragContext -struct GdkDragContext { - GdkDragProtocol protocol; - - gboolean is_source; - - GdkWindow *source_window; - GdkWindow *dest_window; - - GList *targets; - GdkDragAction actions; - GdkDragAction suggested_action; - GdkDragAction action; - - guint32 start_time; -}; - - -GdkXEvent -typedef void GdkXEvent; /* Can be cast to XEvent */ - - -GdkFilterFunc -GdkFilterReturn -GdkXEvent *xevent, - GdkEvent *event, - gpointer data - - -GdkEventAny -struct GdkEventAny -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; -}; - - -GdkEventExpose -struct GdkEventExpose -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - GdkRectangle area; - gint count; /* If non-zero, how many more events follow. */ -}; - - -GdkEventNoExpose -struct GdkEventNoExpose -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - /* XXX: does anyone need the X major_code or minor_code fields? */ -}; - - -GdkEventVisibility -struct GdkEventVisibility -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - GdkVisibilityState state; -}; - - -GdkEventMotion -struct GdkEventMotion -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - guint32 time; - gdouble x; - gdouble y; - gdouble pressure; - gdouble xtilt; - gdouble ytilt; - guint state; - gint16 is_hint; - GdkInputSource source; - guint32 deviceid; - gdouble x_root, y_root; -}; - - -GdkEventButton -struct GdkEventButton -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - guint32 time; - gdouble x; - gdouble y; - gdouble pressure; - gdouble xtilt; - gdouble ytilt; - guint state; - guint button; - GdkInputSource source; - guint32 deviceid; - gdouble x_root, y_root; -}; - - -GdkEventKey -struct GdkEventKey -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - guint32 time; - guint state; - guint keyval; - gint length; - gchar *string; -}; - - -GdkEventCrossing -struct GdkEventCrossing -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - GdkWindow *subwindow; - guint32 time; - gdouble x; - gdouble y; - gdouble x_root; - gdouble y_root; - GdkCrossingMode mode; - GdkNotifyType detail; - gboolean focus; - guint state; -}; - - -GdkEventFocus -struct GdkEventFocus -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - gint16 in; -}; - - -GdkEventConfigure -struct GdkEventConfigure -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - gint16 x, y; - gint16 width; - gint16 height; -}; - - -GdkEventProperty -struct GdkEventProperty -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - GdkAtom atom; - guint32 time; - guint state; -}; - - -GdkEventSelection -struct GdkEventSelection -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - GdkAtom selection; - GdkAtom target; - GdkAtom property; - guint32 requestor; - guint32 time; -}; - - -GdkEventProximity -struct GdkEventProximity -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - guint32 time; - GdkInputSource source; - guint32 deviceid; -}; - - -GdkEventClient -struct GdkEventClient -{ - GdkEventType type; - GdkWindow *window; - gint8 send_event; - GdkAtom message_type; - gushort data_format; - union { - char b[20]; - short s[10]; - long l[5]; - } data; -}; - - -GdkEventDND -struct GdkEventDND { - GdkEventType type; - GdkWindow *window; - gint8 send_event; - GdkDragContext *context; - - guint32 time; - gshort x_root, y_root; -}; - - -GdkEvent -union GdkEvent -{ - GdkEventType type; - GdkEventAny any; - GdkEventExpose expose; - GdkEventNoExpose no_expose; - GdkEventVisibility visibility; - GdkEventMotion motion; - GdkEventButton button; - GdkEventKey key; - GdkEventCrossing crossing; - GdkEventFocus focus_change; - GdkEventConfigure configure; - GdkEventProperty property; - GdkEventSelection selection; - GdkEventProximity proximity; - GdkEventClient client; - GdkEventDND dnd; -}; - - -GdkRegion -struct GdkRegion -{ - gpointer user_data; -}; - - -GdkICAttr -struct GdkICAttr -{ - GdkIMStyle style; - GdkWindow *client_window; - GdkWindow *focus_window; - GdkEventMask filter_events; - GdkPoint spot_location; - gint line_spacing; - GdkCursor *cursor; - - GdkFont *preedit_fontset; - GdkRectangle preedit_area; - GdkRectangle preedit_area_needed; - GdkColor preedit_foreground; - GdkColor preedit_background; - GdkPixmap *preedit_pixmap; - GdkColormap *preedit_colormap; - - GdkFont *status_fontset; - GdkRectangle status_area; - GdkRectangle status_area_needed; - GdkColor status_foreground; - GdkColor status_background; - GdkPixmap *status_pixmap; - GdkColormap *status_colormap; -}; - - -GdkRgbCmap - - -GdkRgbCmap -struct GdkRgbCmap { - guint32 colors[256]; - guchar lut[256]; /* for 8-bit modes */ -}; - - -gdk_rgb_init -void -void - - -gdk_rgb_xpixel_from_rgb -gulong -guint32 rgb - - -gdk_rgb_gc_set_foreground -void -GdkGC *gc, guint32 rgb - - -gdk_rgb_gc_set_background -void -GdkGC *gc, guint32 rgb - - -GdkRgbDither -typedef enum -{ - GDK_RGB_DITHER_NONE, - GDK_RGB_DITHER_NORMAL, - GDK_RGB_DITHER_MAX -} GdkRgbDither; - - -gdk_draw_rgb_image -void -GdkDrawable *drawable,GdkGC *gc,gint x,gint y,gint width,gint height,GdkRgbDither dith,guchar *rgb_buf,gint rowstride - - -gdk_draw_rgb_image_dithalign -void -GdkDrawable *drawable,GdkGC *gc,gint x,gint y,gint width,gint height,GdkRgbDither dith,guchar *rgb_buf,gint rowstride,gint xdith,gint ydith - - -gdk_draw_rgb_32_image -void -GdkDrawable *drawable,GdkGC *gc,gint x,gint y,gint width,gint height,GdkRgbDither dith,guchar *buf,gint rowstride - - -gdk_draw_gray_image -void -GdkDrawable *drawable,GdkGC *gc,gint x,gint y,gint width,gint height,GdkRgbDither dith,guchar *buf,gint rowstride - - -gdk_rgb_cmap_new -GdkRgbCmap * -guint32 *colors, gint n_colors - - -gdk_rgb_cmap_free -void -GdkRgbCmap *cmap - - -gdk_draw_indexed_image -void -GdkDrawable *drawable,GdkGC *gc,gint x,gint y,gint width,gint height,GdkRgbDither dith,guchar *buf,gint rowstride,GdkRgbCmap *cmap - - -gdk_rgb_ditherable -gboolean -void - - -gdk_rgb_set_verbose -void -gboolean verbose - - -gdk_rgb_set_install -void -gboolean install - - -gdk_rgb_set_min_colors -void -gint min_colors - - -gdk_rgb_get_cmap -GdkColormap * -void - - -gdk_rgb_get_visual -GdkVisual * -void - diff --git a/docs/reference/gdk/gdk-docs.sgml b/docs/reference/gdk/gdk-docs.sgml deleted file mode 100644 index a656a33d8b..0000000000 --- a/docs/reference/gdk/gdk-docs.sgml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -]> - - - GDK Reference Manual - - - - GDK - &gdk-General; - - &gdk-Points-Rectangles-and-Regions; - &gdk-Graphics-Contexts; - &gdk-Drawing-Primitives; - - &gdk-Bitmaps-and-Pixmaps; - &gdk-GdkRGB; - &gdk-Images; - - &gdk-Colormaps-and-Colors; - &gdk-Color-Contexts; - &gdk-Visuals; - - &gdk-Fonts; - &gdk-Cursors; - - &gdk-Windows; - - &gdk-Events; - &gdk-Event-Structures; - - &gdk-Selections; - &gdk-Drag-and-Drop; - - &gdk-Properties-and-Atoms; - - &gdk-Threads; - - &gdk-Input; - - &gdk-Input-Devices; - - &gdk-Key-Values; - - &gdk-Input-Methods; - &gdk-Input-Contexts; - - diff --git a/docs/reference/gdk/gdk-overrides.txt b/docs/reference/gdk/gdk-overrides.txt deleted file mode 100644 index 939122e78b..0000000000 --- a/docs/reference/gdk/gdk-overrides.txt +++ /dev/null @@ -1,23 +0,0 @@ - -# GdkPixmap, GdkBitmap and GdkDrawable are the same as GdkWindow. - -GdkPixmap -struct GdkPixmap -{ - gpointer user_data; -}; - - -GdkBitmap -struct GdkBitmap -{ - gpointer user_data; -}; - - -GdkDrawable -struct GdkDrawable -{ - gpointer user_data; -}; - diff --git a/docs/reference/gdk/gdk-sections.txt b/docs/reference/gdk/gdk-sections.txt deleted file mode 100644 index 18ea372c96..0000000000 --- a/docs/reference/gdk/gdk-sections.txt +++ /dev/null @@ -1,622 +0,0 @@ - -gdk/gdk.h - -
-General -general -gdk_init -gdk_init_check -gdk_exit -gdk_set_locale -gdk_set_sm_client_id - - -gdk_get_display - - -gdk_flush - - -gdk_screen_width -gdk_screen_height -gdk_screen_width_mm -gdk_screen_height_mm - - -gdk_pointer_grab -gdk_pointer_ungrab -gdk_pointer_is_grabbed - - -gdk_keyboard_grab -gdk_keyboard_ungrab - - -gdk_key_repeat_disable -gdk_key_repeat_restore - - -gdk_beep - - -gdk_get_use_xshm -gdk_set_use_xshm - - -gdk_error_trap_push -gdk_error_trap_pop - - -GdkStatus -gdk_time_get -gdk_timer_get -gdk_timer_set -gdk_timer_enable -gdk_timer_disable -
- -
-Bitmaps and Pixmaps -pixmaps -GdkPixmap -gdk_pixmap_new -gdk_bitmap_create_from_data -gdk_pixmap_create_from_data -gdk_pixmap_create_from_xpm -gdk_pixmap_colormap_create_from_xpm -gdk_pixmap_create_from_xpm_d -gdk_pixmap_colormap_create_from_xpm_d -gdk_pixmap_ref -gdk_pixmap_unref -GdkBitmap -gdk_bitmap_ref -gdk_bitmap_unref -
- -
-Images -images -GdkImage -gdk_image_new -GdkImageType -gdk_image_new_bitmap -gdk_image_get -gdk_image_destroy - -gdk_image_put_pixel -gdk_image_get_pixel -
- -
-GdkRGB -rgb -gdk_rgb_init - - -gdk_draw_rgb_image -gdk_draw_rgb_image_dithalign -gdk_draw_indexed_image -gdk_draw_gray_image -gdk_draw_rgb_32_image -GdkRgbDither - - -gdk_rgb_cmap_new -gdk_rgb_cmap_free -GdkRgbCmap - - -gdk_rgb_gc_set_foreground -gdk_rgb_gc_set_background -gdk_rgb_xpixel_from_rgb - - -gdk_rgb_set_install -gdk_rgb_set_min_colors -gdk_rgb_get_visual -gdk_rgb_get_cmap -gdk_rgb_ditherable -gdk_rgb_set_verbose -
- -
-Colormaps and Colors -colors -GdkColor -GdkColormap -gdk_colormap_new -gdk_colormap_ref -gdk_colormap_unref -gdk_colormap_get_system -gdk_colormap_get_system_size -gdk_colormap_change -gdk_colormap_alloc_colors -gdk_colormap_alloc_color -gdk_colormap_free_colors -gdk_colormap_get_visual -gdk_colors_store -gdk_color_copy -gdk_color_free -gdk_colors_alloc -gdk_colors_free -gdk_color_white -gdk_color_black -gdk_color_parse -gdk_color_alloc -gdk_color_change -gdk_color_equal -gdk_color_hash -
- -
-Fonts -fonts -GdkFont -GdkFontType -gdk_font_load -gdk_fontset_load -gdk_font_ref -gdk_font_unref -gdk_font_id -gdk_font_equal - - -gdk_string_extents -gdk_text_extents -gdk_text_extents_wc -gdk_string_width -gdk_text_width -gdk_text_width_wc -gdk_char_width -gdk_char_width_wc -gdk_string_measure -gdk_text_measure -gdk_char_measure -gdk_string_height -gdk_text_height -gdk_char_height - - -GdkWChar -gdk_wcstombs -gdk_mbstowcs -
- -
-Drawing Primitives -drawing -gdk_draw_point -gdk_draw_points -gdk_draw_line -gdk_draw_lines -gdk_draw_segments -GdkSegment -gdk_draw_rectangle -gdk_draw_arc -gdk_draw_polygon - - -gdk_draw_string -gdk_draw_text -gdk_draw_text_wc - - -gdk_draw_pixmap -gdk_draw_image - - -gdk_draw_bitmap -
- -
-Graphics Contexts -gcs -GdkGC -GdkGCValues -GdkGCValuesMask - -GdkFunction - -gdk_gc_new -gdk_gc_new_with_values -gdk_gc_ref -gdk_gc_unref -gdk_gc_destroy -gdk_gc_get_values -gdk_gc_set_foreground -gdk_gc_set_background -gdk_gc_set_font -gdk_gc_set_function -gdk_gc_set_fill -GdkFill -gdk_gc_set_tile -gdk_gc_set_stipple -gdk_gc_set_ts_origin -gdk_gc_set_clip_origin -gdk_gc_set_clip_mask -gdk_gc_set_clip_rectangle -gdk_gc_set_clip_region -gdk_gc_set_subwindow -GdkSubwindowMode -gdk_gc_set_exposures -gdk_gc_set_line_attributes -GdkLineStyle -GdkCapStyle -GdkJoinStyle -gdk_gc_set_dashes -gdk_gc_copy -
- -
-Visuals -visuals -GdkVisual -GdkVisualType -GdkByteOrder -gdk_query_depths -gdk_query_visual_types -gdk_list_visuals - -gdk_visual_get_best_depth -gdk_visual_get_best_type -gdk_visual_get_system -gdk_visual_get_best -gdk_visual_get_best_with_depth -gdk_visual_get_best_with_type -gdk_visual_get_best_with_both -gdk_visual_ref -gdk_visual_unref -
- -
-Windows -windows -GdkWindowAttr -GdkWindow -GdkWindowType -GdkWindowClass -GdkWindowAttributesType -GdkWindowHints -GdkGeometry - -gdk_window_new -gdk_window_destroy -gdk_window_ref -gdk_window_unref -gdk_window_at_pointer -gdk_window_show -gdk_window_hide -gdk_window_is_visible -gdk_window_is_viewable -gdk_window_withdraw -gdk_window_move -gdk_window_resize -gdk_window_move_resize -gdk_window_reparent -gdk_window_clear -gdk_window_clear_area -gdk_window_clear_area_e -gdk_window_copy_area -gdk_window_raise -gdk_window_lower -gdk_window_register_dnd -gdk_window_set_user_data -gdk_window_set_override_redirect -gdk_window_add_filter -gdk_window_remove_filter -GdkFilterFunc -GdkFilterReturn -GdkXEvent -gdk_window_shape_combine_mask -gdk_window_set_child_shapes -gdk_window_merge_child_shapes -gdk_window_set_static_gravities -gdk_window_set_hints -gdk_window_set_title -gdk_window_set_background -gdk_window_set_back_pixmap -GDK_PARENT_RELATIVE -gdk_window_set_cursor -gdk_window_set_colormap -gdk_window_get_user_data -gdk_window_get_geometry -gdk_window_set_geometry_hints -gdk_window_get_position -gdk_window_get_root_origin -gdk_window_get_size -gdk_window_get_visual -gdk_window_get_colormap -gdk_window_get_type -gdk_window_get_origin -gdk_window_get_deskrelative_origin -gdk_window_get_pointer -GdkModifierType -gdk_window_get_parent -gdk_window_get_toplevel -gdk_window_get_children -gdk_window_get_events -gdk_window_set_events -gdk_window_set_icon -gdk_window_set_icon_name -gdk_window_set_transient_for -gdk_window_set_role -gdk_window_set_group -gdk_window_set_decorations -GdkWMDecoration -gdk_window_set_functions -GdkWMFunction -gdk_window_get_toplevels -GdkDrawable -gdk_drawable_set_data -
- -
-Selections -selections -GdkSelection -GdkSelectionType -GdkTarget -gdk_selection_owner_set -gdk_selection_owner_get -gdk_selection_convert -gdk_selection_property_get -gdk_selection_send_notify -
- -
-Properties and Atoms -properties -GdkAtom -GDK_NONE -gdk_text_property_to_text_list -gdk_free_text_list -gdk_string_to_compound_text -gdk_free_compound_text -gdk_atom_intern -gdk_atom_name -gdk_property_get -gdk_property_change -GdkPropMode -gdk_property_delete -
- -
-Input Methods -input_methods -GdkIMStyle -gdk_im_ready -gdk_im_decide_style -gdk_im_set_best_style - - -gdk_im_begin -gdk_im_end -
- -
-Input Contexts -input_contexts -GdkIC -gdk_ic_new -gdk_ic_destroy -gdk_ic_get_events -gdk_ic_get_style -gdk_ic_get_attr -gdk_ic_set_attr - - -GdkICAttr -GdkICAttributesType -gdk_ic_attr_new -gdk_ic_attr_destroy -
- -
-Color Contexts -color_contexts -GdkColorContext -GdkColorContextDither -GdkColorContextMode - -gdk_color_context_new -gdk_color_context_new_mono -gdk_color_context_free -gdk_color_context_get_pixel -gdk_color_context_get_pixels -gdk_color_context_get_pixels_incremental -gdk_color_context_query_color -gdk_color_context_query_colors -gdk_color_context_add_palette -gdk_color_context_init_dither -gdk_color_context_free_dither -gdk_color_context_get_pixel_from_palette -gdk_color_context_get_index_from_palette -
- -
-Points, Rectangles and Regions -regions -GdkPoint - - -GdkRectangle -gdk_rectangle_intersect -gdk_rectangle_union - - -GdkRegion -gdk_region_new -gdk_region_polygon -GdkFillRule -gdk_region_destroy - - -gdk_regions_intersect -gdk_regions_union -gdk_regions_subtract -gdk_regions_xor -gdk_region_union_with_rect -gdk_region_offset -gdk_region_shrink - - -gdk_region_empty -gdk_region_equal -gdk_region_point_in -gdk_region_rect_in -GdkOverlapType -gdk_region_get_clipbox -
- -
-Threads -threads -gdk_threads_mutex -GDK_THREADS_ENTER -GDK_THREADS_LEAVE -gdk_threads_enter -gdk_threads_leave -
- -
-Key Values -keys -gdk_keyval_name -gdk_keyval_from_name - - -gdk_keyval_is_upper -gdk_keyval_is_lower - - -gdk_keyval_to_upper -gdk_keyval_to_lower -
- -
-Input Devices -input_devices -GDK_CORE_POINTER -gdk_input_list_devices -GdkDeviceInfo -GdkDeviceKey -gdk_input_set_extension_events -GdkExtensionMode -gdk_input_set_source -GdkInputSource -gdk_input_set_mode -GdkInputMode -gdk_input_set_axes -GdkAxisUse -gdk_input_set_key -gdk_input_window_get_pointer -gdk_input_motion_events -GdkTimeCoord - - -gdk_input_init -gdk_input_exit -
- -
-Events -events -GdkEventType -GdkEventMask -GDK_CURRENT_TIME -GDK_PRIORITY_EVENTS - - -gdk_events_pending -gdk_event_peek -gdk_event_get -gdk_event_get_graphics_expose -gdk_event_put -gdk_event_copy -gdk_event_free -gdk_event_get_time - - -gdk_event_handler_set -GdkEventFunc - - -gdk_event_send_client_message -gdk_event_send_clientmessage_toall -gdk_add_client_message_filter - - -gdk_get_show_events -gdk_set_show_events -
- -
-Event Structures -event_structs -GdkEvent - - -GdkEventAny -GdkEventKey -GdkEventButton -GdkEventMotion -GdkEventExpose -GdkEventVisibility -GdkEventCrossing -GdkEventFocus -GdkEventConfigure -GdkEventProperty -GdkEventSelection -GdkEventDND -GdkEventProximity -GdkEventClient -GdkEventNoExpose - - -GdkVisibilityState -GdkCrossingMode -GdkNotifyType -GdkPropertyState -
- -
-Cursors -cursors -GdkCursor -GdkCursorType -gdk_cursor_new -gdk_cursor_new_from_pixmap -gdk_cursor_destroy -
- -
-Input -input -gdk_input_add_full -GdkInputCondition -GdkInputFunction -GdkDestroyNotify -gdk_input_add -gdk_input_remove -
- -
-Drag and Drop -dnd -gdk_drag_get_selection -gdk_drag_abort -gdk_drop_reply -gdk_drag_context_new -gdk_drag_drop -gdk_drag_find_window -gdk_drag_context_ref -gdk_drag_begin -gdk_drag_motion -gdk_drop_finish -gdk_drag_get_protocol -GdkDragProtocol -gdk_drag_context_unref -GdkDragContext -GdkDragAction -gdk_drag_status -
diff --git a/docs/reference/gdk/tmpl/color_contexts.sgml b/docs/reference/gdk/tmpl/color_contexts.sgml deleted file mode 100644 index af6455024c..0000000000 --- a/docs/reference/gdk/tmpl/color_contexts.sgml +++ /dev/null @@ -1,207 +0,0 @@ - -Color Contexts - - -routines for allocating colors (deprecated). - - - -The #GdkColorContext type is used for allocating groups of colors. - - -It is now deprecated in favor of the gdk_colormap_*() functions described in -the Colormaps and Colors -section. - - - - - - - - - - - - -@visual: -@colormap: -@num_colors: -@max_colors: -@num_allocated: -@mode: -@need_to_free_colormap: -@std_cmap_atom: -@clut: -@cmap: -@color_hash: -@palette: -@num_palette: -@fast_dither: - - - - - - -@fast_rgb: -@fast_err: -@fast_erg: -@fast_erb: - - - - - - -@GDK_CC_MODE_UNDEFINED: -@GDK_CC_MODE_BW: -@GDK_CC_MODE_STD_CMAP: -@GDK_CC_MODE_TRUE: -@GDK_CC_MODE_MY_GRAY: -@GDK_CC_MODE_PALETTE: - - - - - - -@visual: -@colormap: -@Returns: - - - - - - - -@visual: -@colormap: -@Returns: - - - - - - - -@cc: - - - - - - - -@cc: -@red: -@green: -@blue: -@failed: -@Returns: - - - - - - - -@cc: -@reds: -@greens: -@blues: -@ncolors: -@colors: -@nallocated: - - - - - - - -@cc: -@reds: -@greens: -@blues: -@ncolors: -@used: -@colors: -@nallocated: - - - - - - - -@cc: -@color: -@Returns: - - - - - - - -@cc: -@colors: -@num_colors: -@Returns: - - - - - - - -@cc: -@palette: -@num_palette: -@Returns: - - - - - - - -@cc: - - - - - - - -@cc: - - - - - - - -@cc: -@red: -@green: -@blue: -@failed: -@Returns: - - - - - - - -@cc: -@red: -@green: -@blue: -@failed: -@Returns: - - diff --git a/docs/reference/gdk/tmpl/colors.sgml b/docs/reference/gdk/tmpl/colors.sgml deleted file mode 100644 index f9050d6988..0000000000 --- a/docs/reference/gdk/tmpl/colors.sgml +++ /dev/null @@ -1,390 +0,0 @@ - -Colormaps and Colors - - -manipulation of colors and colormaps. - - - -These functions are used to modify colormaps. -A colormap is an object that contains the mapping -between the color values stored in memory and -the RGB values that are used to display color -values. In general, colormaps only contain -significant information for pseudo-color visuals, -but even for other visual types, a colormap object -is required in some circumstances. - - - -There are a couple of special colormaps that can -be retrieved. The system colormap (retrieved -with gdk_colormap_get_system()) is the default -colormap of the system. If you are using GdkRGB, -there is another colormap that is important - the -colormap in which GdkRGB works, retrieved with -gdk_rgb_get_cmap(). However, when using GdkRGB, -it is not generally necessary to allocate colors -directly. - - - -In previous revisions of this interface, a number -of functions that take a #GdkColormap parameter -were replaced with functions whose names began -with "gdk_colormap_". This process will probably -be extended somewhat in the future - -gdk_color_white(), gdk_color_black(), and -gdk_color_change() will probably become aliases. - - - - - - - - - -The #GdkColor structure is used to describe an -allocated or unallocated color. - - - - - - -pixel -For allocated colors, the value used to -draw this color on the screen. - - - -red -The red component of the color. This is -a value between 0 and 65535, with 65535 indicating -full intensitiy. - - - -green -the blue component of the color. - - - -blue -the green component of the color.. - - - - - -@pixel: -@red: -@green: -@blue: - - - -The colormap structure contains the following public -fields. - - - - - - -size -For pseudo-color colormaps, the number of colors -in the colormap.. - - - -colors -An array containing the current values in the -colormap. This can be used to map from pixel values -back to RGB values. This is only meaningful for -pseudo-color colormaps. - - - - - -@size: -@colors: - - - -Create a new colormap for the given visual. - - -@visual: a #GdkVisual. -@allocate: if %TRUE, the newly created colormap will be - a private colormap, and all colors in it will be - allocated for the applications use. -@Returns: the new #GdkColormap. - - - - -Increase the reference count of a colormap. - - -@cmap: a #GdkColormap. -@Returns: @cmap - - - - -Decrease the reference count of a colormap. If the -resulting reference count is zero, destroys the colormap. - - -@cmap: a #GdkColormap. - - - - -Returns the system's default colormap. - - -@Returns: the default colormap. - - - - -Returns the size of the system's default colormap. -(See the description of struct #GdkColormap for an -explanation of the size of a colormap.) - - -@Returns: the size of the system's default colormap. - - - - -Change the value of the first @ncolors in a private colormap -to match the values in the colors -array in the color map. This function is obsolete and -should not be used. See gdk_color_change(). - - -@colormap: a #GdkColormap. -@ncolors: the number of colors to change. - - - - -Allocates colors from a colormap. - - -@colormap: a #GdkColormap. -@colors: The color values to allocate. On return, the pixel - values for allocated colors will be filled in. -@ncolors: The number of colors in @colors. -@writeable: If %TRUE, the colors are allocated writeable - (their values can later be changed using gdk_color_change()). - Writeable colors cannot be shared between applications. -@best_match: If %TRUE, GDK will attempt to do matching against - existing colors if the colors cannot be allocated as - requested. -@success: An array of length @ncolors. On return, this - indicates whether the corresponding color in @colors was - sucessfully allocated or not. -@Returns: The number of colors that were not sucessfully - allocated. - - - - -Allocate a single color from a colormap. - - -@colormap: a #GdkColormap. -@color: the color to allocate. On return the -pixel field will be -filled in if allocation succeeds. -@writeable: If %TRUE, the color is allocated writeable - (their values can later be changed using gdk_color_change()). - Writeable colors cannot be shared between applications. -@best_match: If %TRUE, GDK will attempt to do matching against - existing colors if the color cannot be allocated as - requested. -@Returns: %TRUE if the allocation succeeded. - - - - -Free previously allocated colors. - - -@colormap: a #GdkColormap. -@colors: the colors to free. -@ncolors: the number of colors in @colors. - - - - -Return the visual for which a given colormap was created. - - -@colormap: a #GdkColormap. -@Returns: the visual of the colormap. - - - - -Change the value of the first @ncolors colors in -a private colormap. This function is obsolete and -should not be used. See gdk_color_change(). - - -@colormap: a #GdkColormap. -@colors: the new color values. -@ncolors: the number of colors to change. - - - - -Make a copy of a color structure. The result -must be freed using gdk_color_free(). - - -@color: a #GdkColor. -@Returns: a copy of @color. - - - - -Free a color structure created with -gdk_color_copy(). - - -@color: a #GdkColor. - - - - -Allocate colors from a colormap. This function -is obsolete. See gdk_colormap_alloc_colors(). -For full documentation of the fields, see -the Xlib documentation for XAllocColorCells. - - -@colormap: a #GdkColormap. -@contiguous: if %TRUE, the colors should be allocated - in contiguous color cells. -@planes: an array in which to store the plane masks. -@nplanes: the number of planes to allocate. (Or zero, - to indicate that the color allocation should not be - planar.) -@pixels: an array into which to store allocated pixel - values. -@npixels: the number of pixels in each plane to allocate. -@Returns: - - - - -Free colors allocated with gdk_colors_alloc(). This -function is obsolete. See gdk_colormap_free_colors(). - - -@colormap: a #GdkColormap. -@pixels: the pixel values of the colors to free. -@npixels: the number of values in @pixels. -@planes: the plane masks for all planes to free, OR'd - together. - - - - -Return the white color for a given colormap. The resulting -value has already allocated been allocated. - - -@colormap: a #GdkColormap. -@color: the location to store the color. -@Returns: %TRUE if the allocation succeeded. - - - - -Return the black color for a given colormap. The resulting -value has already benn allocated. - - -@colormap: a #GdkColormap. -@color: the location to store the color. -@Returns: %TRUE if the allocation succeeded. - - - - -Parse a textual specification of a color and fill in -the red, -green, and -blue fields of a -#GdkColor structure. The color is not -allocated, you must call gdk_colormap_alloc_color() yourself. -The text string can be in any of the forms accepted -by XParseColor; these include -name for a color from rgb.txt, such as -DarkSlateGray, or a hex specification -such as 305050. - - -@spec: the string specifying the color. -@color: the #GdkColor to fill in -@Returns: - - - - -Allocate a single color from a colormap. -This function is obsolete. See gdk_colormap_alloc_color(). - - -@colormap: a #GdkColormap. -@color: The color to allocate. On return, the -pixel field will be -filled in. -@Returns: %TRUE if the allocation succeeded. - - - - -Change the value of a color that has already -been allocated. If @colormap is not a private -colormap, then the color must have been allocated -using gdk_colormap_alloc_colors() with the -@writeable set to %TRUE. - - -@colormap: a #GdkColormap. -@color: a #GdkColor, with the color to change -in the pixel field, -and the new value in the remaining fields. -@Returns: - - - - -Compare two colors. - - -@colora: a #GdkColor. -@colorb: another #GdkColor. -@Returns: %TRUE if the two colors compare equal - - - - -A hash function suitable for using for a hash -table that stores #GdkColor's. - - -@colora: a #GdkColor. -@colorb: NOT USED. -@Returns: The hash function appled to @colora - - diff --git a/docs/reference/gdk/tmpl/cursors.sgml b/docs/reference/gdk/tmpl/cursors.sgml deleted file mode 100644 index 5b33090b9a..0000000000 --- a/docs/reference/gdk/tmpl/cursors.sgml +++ /dev/null @@ -1,99 +0,0 @@ - -Cursors - - -standard and pixmap cursors. - - - - - - - - - - - - - - - - -@type: - - - -The standard cursors available. - - - - - -Creates a new standard cursor. - - -@cursor_type: the type of the cursor. -@Returns: a new #GdkCursor. - - - - -Creates a new cursor from a given pixmap and mask. Both the pixmap and mask -must have a depth of 1 (i.e. each pixel has only 2 values - on or off). -The standard cursor size is 16 by 16 pixels. - -Creating a custom cursor. - -/* This data is in X bitmap format, and can be created with the 'bitmap' - utility. */ -#define cursor1_width 16 -#define cursor1_height 16 -static unsigned char cursor1_bits[] = { - 0x80, 0x01, 0x40, 0x02, 0x20, 0x04, 0x10, 0x08, 0x08, 0x10, 0x04, 0x20, - 0x82, 0x41, 0x41, 0x82, 0x41, 0x82, 0x82, 0x41, 0x04, 0x20, 0x08, 0x10, - 0x10, 0x08, 0x20, 0x04, 0x40, 0x02, 0x80, 0x01}; - -static unsigned char cursor1mask_bits[] = { - 0x80, 0x01, 0xc0, 0x03, 0x60, 0x06, 0x30, 0x0c, 0x18, 0x18, 0x8c, 0x31, - 0xc6, 0x63, 0x63, 0xc6, 0x63, 0xc6, 0xc6, 0x63, 0x8c, 0x31, 0x18, 0x18, - 0x30, 0x0c, 0x60, 0x06, 0xc0, 0x03, 0x80, 0x01}; - - - GdkCursor *cursor; - GdkPixmap *source, *mask; - GdkColor fg = { 0, 65535, 0, 0 }; /* Red. */ - GdkColor bg = { 0, 0, 0, 65535 }; /* Blue. */ - - - source = gdk_bitmap_create_from_data (NULL, cursor1_bits, - cursor1_width, cursor1_height); - mask = gdk_bitmap_create_from_data (NULL, cursor1mask_bits, - cursor1_width, cursor1_height); - cursor = gdk_cursor_new_from_pixmap (source, mask, &fg, &bg, 8, 8); - gdk_pixmap_unref (source); - gdk_pixmap_unref (mask); - - - gdk_window_set_cursor (widget->window, cursor); - - - -@source: the pixmap specifying the cursor. -@mask: the pixmap specifying the mask, which must be the same size as @source. -@fg: the foreground color, used for the bits in the source which are 1. -The color does not have to be allocated first. -@bg: the background color, used for the bits in the source which are 0. -The color does not have to be allocated first. -@x: the horizontal offset of the 'hotspot' of the cursor. -@y: the vertical offset of the 'hotspot' of the cursor. -@Returns: a new #GdkCursor. - - - - -Destroys a cursor, freeing any resources allocated for it. - - -@cursor: a #GdkCursor. - - diff --git a/docs/reference/gdk/tmpl/dnd.sgml b/docs/reference/gdk/tmpl/dnd.sgml deleted file mode 100644 index c61ad4c6f3..0000000000 --- a/docs/reference/gdk/tmpl/dnd.sgml +++ /dev/null @@ -1,194 +0,0 @@ - -Drag and Drop - - -functions for controlling drag and drop handling. - - - -These functions provide a low level interface for drag and drop. -GDK supports both the Xdnd and Motif drag and drop protocols transparently. - - -GTK+ provides a higher level abstraction based on top of these functions, -and so they are not normally needed in GTK+ applications. -See the Drag and Drop section of -the GTK+ documentation for more information. - - - - - - - - - - - - -@context: -@Returns: - - - - - - - -@context: -@time: - - - - - - - -@context: -@ok: -@time: - - - - - - - -@Returns: - - - - - - - -@context: -@time: - - - - - - - -@context: -@drag_window: -@x_root: -@y_root: -@dest_window: -@protocol: - - - - - - - -@context: - - - - - - - -@window: -@targets: -@Returns: - -@actions: - - - - - - - -@context: -@dest_window: -@protocol: -@x_root: -@y_root: -@suggested_action: -@possible_actions: -@time: -@Returns: - -@action: - - - - - - - -@context: -@success: -@time: - - - - - - - -@xid: -@protocol: -@Returns: - - - - - - - -@GDK_DRAG_PROTO_MOTIF: -@GDK_DRAG_PROTO_XDND: -@GDK_DRAG_PROTO_ROOTWIN: -@GDK_DRAG_PROTO_NONE: - - - - - - -@context: - - - - - - - -@protocol: -@is_source: -@source_window: -@dest_window: -@targets: -@actions: -@suggested_action: -@action: -@start_time: - - - - - - -@GDK_ACTION_DEFAULT: -@GDK_ACTION_COPY: -@GDK_ACTION_MOVE: -@GDK_ACTION_LINK: -@GDK_ACTION_PRIVATE: -@GDK_ACTION_ASK: - - - - - - -@context: -@action: -@time: - - diff --git a/docs/reference/gdk/tmpl/drawing.sgml b/docs/reference/gdk/tmpl/drawing.sgml deleted file mode 100644 index f9589d8fdb..0000000000 --- a/docs/reference/gdk/tmpl/drawing.sgml +++ /dev/null @@ -1,239 +0,0 @@ - -Drawing Primitives - - -functions for drawing points, lines, arcs, and text. - - - -These functions provide support for drawing points, lines, arcs and text -onto what are called 'drawables'. Drawables, as the name suggests, are things -which support drawing onto them, and are either #GdkWindow or #GdkPixmap -objects. - - -Many of the drawing operations take a #GdkGC argument, which represents a -graphics context. This #GdkGC contains a number of drawing attributes such -as foreground color, background color and line width, and is used to reduce -the number of arguments needed for each drawing operation. See the -Graphics Contexts section for -more information. - - - - - - - - - -Draws a point, using the foreground color and other attributes of the #GdkGC. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@gc: a #GdkGC. -@x: the x coordinate of the point. -@y: the y coordinate of the point. - - - - -Draws a number of points, using the foreground color and other attributes of -the #GdkGC. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@gc: a #GdkGC. -@points: an array of #GdkPoint structures. -@npoints: the number of points to be drawn. - - - - -Draws a line, using the foreground color and other attributes of the #GdkGC. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@gc: a #GdkGC. -@x1: the x coordinate of the start point. -@y1: the y coordinate of the start point. -@x2: the x coordinate of the end point. -@y2: the y coordinate of the end point. - - - - -Draws a series of lines connecting the given points. -The way in which joins between lines are draw is determined by the -#GdkCapStyle value in the #GdkGC. This can be set with -gdk_gc_set_line_attributes(). - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@gc: a #GdkGC. -@points: an array of #GdkPoint structures specifying the endpoints of the -lines. -@npoints: the size of the @points array. - - - - -Draws a number of unconnected lines. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@gc: a #GdkGC. -@segs: an array of #GdkSegment structures specifying the start and end points -of the lines to be drawn, -@nsegs: the number of line segments to draw, i.e. the size of the @segs array. - - - - -Specifies the start and end point of a line for use by the gdk_draw_segments() -function. - - -@x1: the x coordinate of the start point. -@y1: the y coordinate of the start point. -@x2: the x coordinate of the end point. -@y2: the y coordinate of the end point. - - - -Draws a rectangular outline or filled rectangle, using the foreground color -and other attributes of the #GdkGC. - - - -A rectangle drawn filled is 1 pixel smaller in both dimensions than a rectangle -outlined. Calling gdk_draw_rectangle (window, gc, TRUE, 0, 0, 20, 20) results -in a filled rectangle 20 pixels wide and 20 pixels high. Calling -gdk_draw_rectangle (window, gc, FALSE, 0, 0, 20, 20) results in an outlined -rectangle with corners at (0, 0), (0, 20), (20, 20), and (20, 0), which -makes it 21 pixels wide and 21 pixels high. - - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@gc: a #GdkGC. -@filled: TRUE if the rectangle should be filled. -@x: the x coordinate of the left edge of the rectangle. -@y: the y coordinate of the top edge of the rectangle. -@width: the width of the rectangle. -@height: the height of the rectangle. - - - - -Draws an arc or a filled 'pie slice'. The arc is defined by the bounding -rectangle of the entire ellipse, and the start and end angles of the part of -the ellipse to be drawn. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@gc: a #GdkGC. -@filled: TRUE if the arc should be filled, producing a 'pie slice'. -@x: the x coordinate of the left edge of the bounding rectangle. -@y: the y coordinate of the top edge of the bounding rectangle. -@width: the width of the bounding rectangle. -@height: the height of the bounding rectangle. -@angle1: the start angle of the arc, relative to the 3 o'clock position, -counter-clockwise, in 1/64ths of a degree. -@angle2: the end angle of the arc, relative to @angle1, in 1/64ths of a degree. - - - - -Draws an outlined or filled polygon. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@gc: a #GdkGC. -@filled: TRUE if the polygon should be filled. The polygon is closed -automatically, connecting the last point to the first point if necessary. -@points: an array of #GdkPoint structures specifying the points making up the -polygon. -@npoints: the number of points. - - - - -Draws a string of characters in the given font or fontset. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@font: a #GdkFont. -@gc: a #GdkGC. -@x: the x coordinate of the left edge of the text. -@y: the y coordinate of the baseline of the text. -@string: the string of characters to draw. - - - - -Draws a number of characters in the given font or fontset. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@font: a #GdkFont. -@gc: a #GdkGC. -@x: the x coordinate of the left edge of the text. -@y: the y coordinate of the baseline of the text. -@text: the characters to draw. -@text_length: the number of characters of @text to draw. - - - - -Draws a number of wide characters using the given font of fontset. -If the font is a 1-byte font, the string is converted into 1-byte characters -(discarding the high bytes) before output. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@font: a #GdkFont. -@gc: a #GdkGC. -@x: the x coordinate of the left edge of the text. -@y: the y coordinate of the baseline of the text. -@text: the wide characters to draw. -@text_length: the number of characters to draw. - - - - -Draws a pixmap, or a part of a pixmap, onto another drawable. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@gc: a #GdkGC. -@src: the source #GdkPixmap to draw. -@xsrc: the left edge of the source rectangle within @src. -@ysrc: the top of the source rectangle within @src. -@xdest: the x coordinate of the destination within @drawable. -@ydest: the y coordinate of the destination within @drawable. -@width: the width of the area to be copied, or -1 to make the area extend to -the right edge of the source pixmap. -@height: the height of the area to be copied, or -1 to make the area extend -to the bottom edge of the source pixmap. - - - - -Draws a #GdkImage onto a drawable. -The depth of the #GdkImage must match the depth of the #GdkDrawable. - - -@drawable: a #GdkDrawable (a #GdkWindow or a #GdkPixmap). -@gc: a #GdkGC. -@image: the #GdkImage to draw. -@xsrc: the left edge of the source rectangle within @image. -@ysrc: the top of the source rectangle within @image. -@xdest: the x coordinate of the destination within @drawable. -@ydest: the y coordinate of the destination within @drawable. -@width: the width of the area to be copied, or -1 to make the area extend to -the right edge of @image. -@height: the height of the area to be copied, or -1 to make the area extend -to the bottom edge of @image. - - diff --git a/docs/reference/gdk/tmpl/event_structs.sgml b/docs/reference/gdk/tmpl/event_structs.sgml deleted file mode 100644 index 2e6d52b5fd..0000000000 --- a/docs/reference/gdk/tmpl/event_structs.sgml +++ /dev/null @@ -1,368 +0,0 @@ - -Event Structures - - -data structures specific to each type of event. - - - -The event structs contain data specific to each type of event in GDK. - - - -A common mistake is to forget to set the event mask of a widget so that the -required events are received. See gtk_widget_set_events(). - - - - - - - - - - -The #GdkEvent struct contains a union of all of the event structs, -and allows access to the data fields in a number of ways. - - -The event type is always the first field in all of the event structs, and -can always be accessed with the following code, no matter what type of event -it is: - - - GdkEvent *event; - GdkEventType type; - - type = event->type; - - - - - -To access other fields of the event structs, the pointer to the event can be -cast to the appropriate event struct pointer, or the union member name can be -used. For example if the event type is %GDK_BUTTON_PRESS then the x coordinate -of the button press can be accessed with: - - - GdkEvent *event; - gdouble x; - - x = ((GdkEventButton*)event)->x; - - -or: - - - GdkEvent *event; - gdouble x; - - x = event->button.x; - - - - - - - -Contains the fields which are common to all event structs. -Any event pointer can safely be cast to a pointer to a #GdkEventAny to access -these fields. - - -@type: the type of the event. -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). - - - -Describes a key press or key release event. - - -@type: the type of the event (%GDK_KEY_PRESS or %GDK_KEY_RELEASE). -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@time: the time of the event in milliseconds. -@state: a bit-mask representing the state of the modifier keys (e.g. Control, -Shift and Alt) and the pointer buttons. See #GdkModifierType. -@keyval: the key that was pressed or released. See the <gdk/gdkkeysym.h> -header file for a complete list of GDK key codes. -@length: the length of @string. -@string: a null-terminated multi-byte string containing the composed characters -resulting from the key press. When text is being input, in a GtkEntry for -example, it is these characters which should be added to the input buffer. -When using Input Methods to support -internationalized text input, the composed characters appear here after the -pre-editing has been completed. - - - -Used for button press and button release events. The -type field will be one of %GDK_BUTTON_PRESS, -%GDK_2BUTTON_PRESS, %GDK_3BUTTON_PRESS, and %GDK_BUTTON_RELEASE. - - -Double and triple-clicks result in a sequence of events being received. -For double-clicks the order of events will be: - -%GDK_BUTTON_PRESS -%GDK_BUTTON_RELEASE -%GDK_BUTTON_PRESS -%GDK_2BUTTON_PRESS -%GDK_BUTTON_RELEASE - -Note that the first click is received just like a normal -button press, while the second click results in a %GDK_2BUTTON_PRESS being -received just after the %GDK_BUTTON_PRESS. - - -Triple-clicks are very similar to double-clicks, except that %GDK_3BUTTON_PRESS -is inserted after the third click. The order of the events is: - -%GDK_BUTTON_PRESS -%GDK_BUTTON_RELEASE -%GDK_BUTTON_PRESS -%GDK_2BUTTON_PRESS -%GDK_BUTTON_RELEASE -%GDK_BUTTON_PRESS -%GDK_3BUTTON_PRESS -%GDK_BUTTON_RELEASE - - - -For a double click to occur, the second button press must occur within 1/4 of -a second of the first. For a triple click to occur, the third button press -must also occur within 1/2 second of the first button press. - - -@type: the type of the event (%GDK_BUTTON_PRESS, %GDK_2BUTTON_PRESS, -%GDK_3BUTTON_PRESS or %GDK_BUTTON_RELEASE). -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@time: the time of the event in milliseconds. -@x: the x coordinate of the mouse relative to the window. -@y: the y coordinate of the mouse relative to the window. -@pressure: the pressure of the button press, intended for input devices such -as graphics tablets. It defaults to 0.5. -@xtilt: the horizontal tilt of the input device. Defaults to 0. -@ytilt: the vertical tilt of the input device. Defaults to 0. -@state: a bit-mask representing the state of the modifier keys (e.g. Control, -Shift and Alt) and the pointer buttons. See #GdkModifierType. -@button: the button which was pressed or released, numbered from 1 to 5. -Normally button 1 is the left mouse button, 2 is the middle button, -and 3 is the right button. On 2-button mice, the middle button can often -be simulated by pressing both mouse buttons together. -@source: the input device where the event came from, usually %GDK_SOURCE_MOUSE. -@deviceid: the input device ID, usually %GDK_CORE_POINTER but may be -different if touch screens or graphics tablets are being used. -@x_root: the x coordinate of the mouse relative to the root of the screen. -@y_root: the y coordinate of the mouse relative to the root of the screen. - - - - - - -@type: the type of the event. -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@time: -@x: -@y: -@pressure: -@xtilt: -@ytilt: -@state: -@is_hint: -@source: -@deviceid: -@x_root: -@y_root: - - - -Generated when all or part of a window becomes visible and needs to be -redrawn. - - -@type: the type of the event (%GDK_EXPOSE). -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@area: the area that needs to be redrawn. -@count: the number of contiguous %GDK_EXPOSE events following this one. -The only use for this is "exposure compression", i.e. handling all contiguous -%GDK_EXPOSE events in one go, though GDK performs some exposure compression -so this is not normally needed. - - - -Generated when the window visibility status has changed. - - -@type: the type of the event (%GDK_VISIBILITY_NOTIFY). -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@state: the new visibility state (%GDK_VISIBILITY_FULLY_OBSCURED, -%GDK_VISIBILITY_PARTIAL or %GDK_VISIBILITY_UNOBSCURED). - - - -Specifies the visiblity status of a window for a #GdkEventVisibility. - - -@GDK_VISIBILITY_UNOBSCURED: the window is completely visible. -@GDK_VISIBILITY_PARTIAL: the window is partially visible. -@GDK_VISIBILITY_FULLY_OBSCURED: the window is not visible at all. - - - - - - -@type: the type of the event. -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@subwindow: -@time: the time of the event in milliseconds. -@x: -@y: -@x_root: -@y_root: -@mode: -@detail: -@focus: -@state: - - - - - - -@GDK_CROSSING_NORMAL: -@GDK_CROSSING_GRAB: -@GDK_CROSSING_UNGRAB: - - - - - - -@GDK_NOTIFY_ANCESTOR: -@GDK_NOTIFY_VIRTUAL: -@GDK_NOTIFY_INFERIOR: -@GDK_NOTIFY_NONLINEAR: -@GDK_NOTIFY_NONLINEAR_VIRTUAL: -@GDK_NOTIFY_UNKNOWN: - - - -Describes a change of keyboard focus. - - -@type: the type of the event (%GDK_FOCUS_CHANGE). -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@in: TRUE if the window has gained the keyboard focus, FALSE if it has lost -the focus. - - - -Generated when a window size or position has changed. - - -@type: the type of the event (%GDK_CONFIGURE). -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@x: the new x coordinate of the window, relative to its parent. -@y: the new y coordinate of the window, relative to its parent. -@width: the new width of the window. -@height: the new height of the window. - - - -Describes a property change on a window. - - -@type: the type of the event (%GDK_PROPERTY_NOTIFY). -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@atom: the property that was changed. -@time: the time of the event in milliseconds. -@state: whether the property was changed (%GDK_PROPERTY_NEW_VALUE) or -deleted (%GDK_PROPERTY_DELETE). - - - -Specifies the type of a property change for a #GdkEventProperty. - - -@GDK_PROPERTY_NEW_VALUE: the property value wan changed. -@GDK_PROPERTY_DELETE: the property was deleted. - - - - - - -@type: the type of the event. -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@selection: -@target: -@property: -@requestor: -@time: the time of the event in milliseconds. - - - - - - -@type: the type of the event. -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@context: -@time: the time of the event in milliseconds. -@x_root: -@y_root: - - - - - - -@type: the type of the event. -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@time: the time of the event in milliseconds. -@source: -@deviceid: - - - -An event sent by another client application. - - -@type: the type of the event (%GDK_CLIENT_EVENT). -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). -@message_type: the type of the message, which can be defined by the -application. -@data_format: the format of the data, given as the number of bits in each -data element, i.e. 8, 16, or 32. 8-bit data uses the b array of the data -union, 16-bit data uses the s array, and 32-bit data uses the l array. - - - -Generated when the area of a #GdkDrawable being copied, with gdk_draw_pixmap() -or gdk_window_copy_area(), was completely available. - - -FIXME: add more here. - - -@type: the type of the event (%GDK_NO_EXPOSE). -@window: the window which received the event. -@send_event: TRUE if the event was sent explicitly (e.g. using XSendEvent). - diff --git a/docs/reference/gdk/tmpl/events.sgml b/docs/reference/gdk/tmpl/events.sgml deleted file mode 100644 index dca821ca7e..0000000000 --- a/docs/reference/gdk/tmpl/events.sgml +++ /dev/null @@ -1,303 +0,0 @@ - -Events - - -functions for handling events from the window system. - - - -This section describes functions dealing with events from the window system. - - -In GTK+ applications the events are handled automatically in -gtk_main_do_event() and passed on to the appropriate widgets, so these -functions are rarely needed. Though some of the fields in the -Event Structures are useful. - - - - - - -Event Structures - -The structs used for each type of event. - - - - - - - -Specifies the type of the event. - - -Do not confuse these events with the signals that GTK+ widgets emit. -Although many of these events result in corresponding signals being emitted, -the events are often transformed or filtered along the way. - - -@GDK_NOTHING: a special code to indicate a null event. -@GDK_DELETE: the window manager has requested that the toplevel window be -hidden or destroyed, usually when the user clicks on a special icon in the -title bar. -@GDK_DESTROY: the window has been destroyed. -@GDK_EXPOSE: all or part of the window has become visible and needs to be -redrawn. -@GDK_MOTION_NOTIFY: the pointer (usually a mouse) has moved. -@GDK_BUTTON_PRESS: a mouse button has been pressed. -@GDK_2BUTTON_PRESS: a mouse button has been double-clicked (clicked twice -within a short period of time). Note that each click also generates a -%GDK_BUTTON_PRESS event. -@GDK_3BUTTON_PRESS: a mouse button has been clicked 3 times in a short period -of time. Note that each click also generates a %GDK_BUTTON_PRESS event. -@GDK_BUTTON_RELEASE: a mouse button has been released. -@GDK_KEY_PRESS: a key has been pressed. -@GDK_KEY_RELEASE: a key has been released. -@GDK_ENTER_NOTIFY: the pointer has entered the window. -@GDK_LEAVE_NOTIFY: the pointer has left the window. -@GDK_FOCUS_CHANGE: the keyboard focus has entered or left the window. -@GDK_CONFIGURE: the size, position or stacking order of the window has changed. -Note that GTK+ discards these events for %GDK_WINDOW_CHILD windows. -@GDK_MAP: the window has been mapped. -@GDK_UNMAP: the window has been unmapped. -@GDK_PROPERTY_NOTIFY: a property on the window has been changed or deleted. -@GDK_SELECTION_CLEAR: the application has lost ownership of a selection. -@GDK_SELECTION_REQUEST: another application has requested a selection. -@GDK_SELECTION_NOTIFY: a selection has been received. -@GDK_PROXIMITY_IN: an input device has moved into contact with a sensing -surface (e.g. a touchscreen or graphics tablet). -@GDK_PROXIMITY_OUT: an input device has moved out of contact with a sensing -surface. -@GDK_DRAG_ENTER: the mouse has entered the window while a drag is in progress. -@GDK_DRAG_LEAVE: the mouse has left the window while a drag is in progress. -@GDK_DRAG_MOTION: the mouse has moved in the window while a drag is in -progress. -@GDK_DRAG_STATUS: the status of the drag operation initiated by the window -has changed. -@GDK_DROP_START: a drop operation onto the window has started. -@GDK_DROP_FINISHED: the drop operation initiated by the window has completed. -@GDK_CLIENT_EVENT: a message has been received from another application. -@GDK_VISIBILITY_NOTIFY: the window visibility status has changed. -@GDK_NO_EXPOSE: indicates that the source region was completely available -when parts of a drawable were copied. This is not very useful. - - - -A set of bit-flags to indicate which events a window is to receive. -Most of these masks map onto one or more of the #GdkEventType event types -above. - - -%GDK_POINTER_MOTION_HINT_MASK is a special mask which is used to reduce the -number of %GDK_MOTION_NOTIFY events received. Normally a %GDK_MOTION_NOTIFY -event is received each time the mouse moves. However, if the application -spends a lot of time processing the event (updating the display, for example), -it can easily lag behind the position of the mouse. When using the -%GDK_POINTER_MOTION_HINT_MASK the server will only send %GDK_MOTION_NOTIFY -events when the application asks for them, by calling gdk_window_get_pointer(). - - -@GDK_EXPOSURE_MASK: -@GDK_POINTER_MOTION_MASK: -@GDK_POINTER_MOTION_HINT_MASK: -@GDK_BUTTON_MOTION_MASK: -@GDK_BUTTON1_MOTION_MASK: -@GDK_BUTTON2_MOTION_MASK: -@GDK_BUTTON3_MOTION_MASK: -@GDK_BUTTON_PRESS_MASK: -@GDK_BUTTON_RELEASE_MASK: -@GDK_KEY_PRESS_MASK: -@GDK_KEY_RELEASE_MASK: -@GDK_ENTER_NOTIFY_MASK: -@GDK_LEAVE_NOTIFY_MASK: -@GDK_FOCUS_CHANGE_MASK: -@GDK_STRUCTURE_MASK: -@GDK_PROPERTY_CHANGE_MASK: -@GDK_VISIBILITY_NOTIFY_MASK: -@GDK_PROXIMITY_IN_MASK: -@GDK_PROXIMITY_OUT_MASK: -@GDK_SUBSTRUCTURE_MASK: -@GDK_ALL_EVENTS_MASK: the combination of all the above event masks. - - - -Represents the current time, and can be used anywhere a time is expected. - - - - - - -This is the priority that events from the X server are given in the -GLib Main Loop. - - - - - - -Checks if any events are waiting to be processed. - - -@Returns: TRUE if any events are pending. - - - - -Gets a copy of the first #GdkEvent in the event queue. -(Note that this function will not get more events from the X server. -It only checks the events that have already been moved to the GDK event queue.) - - -@Returns: a copy of the first #GdkEvent on the event queue, or NULL if no -events are in the queue. The returned #GdkEvent should be freed with -gdk_event_free(). - - - - -Gets the next #GdkEvent to be processed, fetching events from the X server if -necessary. - - -@Returns: the next #GdkEvent to be processed, or NULL if no events are pending. -The returned #GdkEvent should be freed with gdk_event_free(). - - - - -Waits for a GraphicsExpose or NoExpose event from the X server. -This is used in the #GtkText and #GtkCList widgets in GTK+ to make sure any -GraphicsExpose events are handled before the widget is scrolled. - - -@window: the #GdkWindow to wait for the events for. -@Returns: a #GdkEventExpose if a GraphicsExpose was received, or NULL if a -NoExpose event was received. - - - - -Appends a copy of the given event onto the front of the event queue. - - -@event: a #GdkEvent. - - - - -Copies a #GdkEvent, copying or incrementing the reference count of the -resources associated with it (e.g. #GdkWindow's and strings). - - -@event: a #GdkEvent. -@Returns: a copy of @event. The returned #GdkEvent should be freed with -gdk_event_free(). - - - - -Frees a #GdkEvent, freeing or decrementing any resources associated with it. -Note that this function should only be called with events returned from -gdk_event_peek(), gdk_event_get(), gdk_event_get_graphics_expose() and -gdk_event_copy(). - - -@event: a #GdkEvent. - - - - -Gets the timestamp from a #GdkEvent. - - -@event: a #GdkEvent. -@Returns: the timestamp from @event, or #GDK_CURRENT_TIME if the event has -no timestamp. - - - - -Sets the function to call to handle all events from GDK. - - -Note that GTK+ uses this to install its own event handler, so it is probably -not useful for GTK+ applications. - - -@func: the function to call to handle events from GDK. -@data: user data to pass to the function. -@notify: the function to call when the handler function is removed, i.e. when -gdk_event_handler_set() is called with another event handler. - - - - -Specifies the type of function passed to gdk_event_handler_set() to handle -all GDK events. - - -@event: the #GdkEvent to process. -@data: user data set when the event handler was installed with -gdk_event_handler_set(). - - - - -Sends an X ClientMessage event to a given window. - - -This could be used for communicating between different applications, -though the amount of data is limited to 20 bytes. - - -@event: the #GdkEvent to send, which should be a #GdkEventClient. -@xid: the window to send the X ClientMessage event to. -@Returns: non-zero on success. - - - - -Sends an X ClientMessage event to all toplevel windows. - - -Toplevel windows are determined by checking for the WM_STATE property, as -described in the Inter-Client Communication Conventions Manual (ICCCM). -If no windows are found with the WM_STATE property set, the message is sent -to all children of the root window. - - -@event: the #GdkEvent to send, which should be a #GdkEventClient. - - - - -Adds a filter to be called when X ClientMessage events are received. - - -@message_type: the type of ClientMessage events to receive. This will be -checked against the message_type field of the -XClientMessage event struct. -@func: the function to call to process the event. -@data: user data to pass to @func. - - - - -Returns non-zero if event debugging output is enabled. - - -@Returns: non-zero if event debugging output is enabled. - - - - -Sets whether event debugging information is output. -Note that GTK+ must be compiled with debugging enabled, i.e. using the -'--enable-debug' configure option. - - -@show_events: TRUE to output event debugging information. - - diff --git a/docs/reference/gdk/tmpl/fonts.sgml b/docs/reference/gdk/tmpl/fonts.sgml deleted file mode 100644 index 479b115846..0000000000 --- a/docs/reference/gdk/tmpl/fonts.sgml +++ /dev/null @@ -1,643 +0,0 @@ - -Fonts - - -loading and manipulating fonts - - - -The GdkFont data type represents a font for drawing on -the screen. These functions provide support for -loading fonts, and also for determining the dimensions -of characters and strings when drawn with a particular -font. - - - -Fonts in X are specified by a -X Logical Font Description. -The following description is considerably simplified. -For definitive information about XLFD's see the -X reference documentation. A X Logical Font Description (XLFD) -consists of a sequence of fields separated (and surrounded by) '-' -characters. For example, Adobe Helvetica Bold 12 pt, has the -full description: - - -"-adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1" - - - - -The fields in the XLFD are: - - - - - - -Foundry -the company or organization where the font originated. - - - -Family -the font family (a group of related font designs). - - - -Weight -A name for the font's typographic weight -For example, 'bold' or 'medium'). - - - -Slant -The slant of the font. Common values are 'R' for Roman, -'I' for italoc, and 'O' for oblique. - - - -Set Width -A name for the width of the font. For example, -'normal' or 'condensed'. - - - -Add Style -Additional information to distinguish a font from -other fonts of the same family. - - - -Pixel Size -The body size of the font in pixels. - - - -Point Size -The body size of the font in 10ths of a point. -(A point is 1/72.27 inch) - - - -Resolution X -The horizontal resolution that the font was designed for. - - - -Resolution Y -The vertical resolution that the font was designed for . - - - -Spacing -The type of spacing for the font - can be 'p' for proportional, -'m' for monospaced or 'c' for charcell. - - - -Average Width -The average width of a glyph in the font. For monospaced -and charcell fonts, all glyphs in the font have this width - - - -Charset Registry -The registration authority that owns the encoding for -the font. Together with the Charset Encoding field, this -defines the character set for the font. - - - -Charset Encoding -An identifier for the particular character set encoding. - - - - - - -When specifying a font via a X logical Font Description, -'*' can be used as a wildcard to match any portion of -the XLFD. For instance, the above example could -also be specified as - - -"-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" - - -It is generally a good idea to use wildcards for any -portion of the XLFD that your program does not care -about specifically, since that will improve the -chances of finding a matching font. - - - -A fontset is a list of fonts -that is used for drawing international text that may -contain characters from a number of different character -sets. It is represented by a list of XLFD's. - - - -The font for a given character set is determined by going -through the list of XLFD's in order. For each one, if -the registry and and encoding fields match the desired -character set, then that font is used, otherwise if -the XLFD contains wild-cards for the registry and encoding -fields, the registry and encoding for the desired character -set are subsituted in and a lookup is done. If a match is found -that font is used. Otherwise, processing continues -on to the next font in the list. - - - -The functions for determining the metrics of a string -come in several varieties that can take a number -of forms of string input: - - - - 8-bit string - - When using functions like gdk_string_width() that - take a gchar *, if the font is of type - %GDK_FONT_FONT and is an 8-bit font, then each - gchar indexes the glyphs in the font directly. - - - - 16-bit string - - For functions taking a gchar *, if the - font is of type %GDK_FONT_FONT, and is a 16-bit - font, then the gchar * argument is - interpreted as a guint16 * cast to - a gchar * and each guint16 - indexes the glyphs in the font directly. - - - - Multibyte string - - For functions taking a gchar *, if the - font is of type %GDK_FONT_FONTSET, then the input - string is interpreted as a multibyte - encoded according to the current locale. (A multibyte - string is one in which each character may consist - of one or more bytes, with different lengths for different - characters in the string). They can be converted to and - from wide character strings (see below) using - gdk_wcstombs() and gdk_mbstowcs().) The string will - be rendered using one or more different fonts from - the fontset. - - - - Wide character string - - For a number of the text-measuring functions, GTK+ - provides a variant (such as gdk_text_width_wc()) which - takes a GdkWChar * instead of a - gchar *. The input is then taken to - be a wide character string in the encoding of the - current locale. (A wide character string is a string - in which each character consists of several bytes, - and the width of each character in the string is - constant.) - - - - - - -GDK provides functions to determine a number of different -measurements (metrics) for a given string. (Need diagram -here). - - - - ascent - - The vertical distance from the origin of the drawing - opereration to the top of the drawn character. - - - - descent - - The vertical distance from the origin of the drawing - opereration to the bottom of the drawn character. - - - - left bearing - - The horizontal distance from the origin of the drawing - operation to the left-most part of the drawn character. - - - - right bearing - - The horizontal distance from the origin of the drawing - operation to the right-most part of the drawn character. - - - - width bearing - - The horizontal distance from the origin of the drawing - operation to the correct origin for drawing another - string to follow the current one. Depending on the - font, this could be greater than or less than the - right bearing. - - - - - - - - - - - - -The GdkFont structure represents a font or fontset. It -contains the following public fields. A new GdkFont -structure is returned by gdk_font_load() or gdk_fontset_load(), -and is reference counted with gdk_font_ref() and gdk_font_unref() - - - - - - -type -a value of type #GdkFontType which indicates -whether this font is a single font or a fontset. - - - -ascent -the maximum distance that the font, when drawn, -ascends above the baseline. - - - -descent -the maximum distance that the font, when drawn, -descends below the baseline. - - - - - -@type: -@ascent: -@descent: - - - -Indicates the type of a font. The possible values -are currently: - - - - - - -GDK_FONT_FONT -the font is a single font. - - - -GDK_FONT_FONT -the font is a fontset. - - - - - -@GDK_FONT_FONT: -@GDK_FONT_FONTSET: - - - -Loads a font. - - - -Currently, this function will always return a new -font, however, in the future, it may be changed to -look up the font in a cache. You should make no -assumptions about the initial reference count. - - -@font_name: a XLFD describing the font to load. -@Returns: a #GdkFont, or NULL if the font could not be loaded. - - - - -Loads a fontset. - - -Currently this function will always return a new -font, however, in the future, it may be changed to -look up the font in a cache. You should make no -assumptions about the initial reference count. - - -@fontset_name: a comma-separated list of XLFDs describing - the component fonts of the fontset to load. -@Returns: a #GdkFont, or NULL if the fontset could not be loaded. - - - - -Increase the reference count of a count by one. - - -@font: a #GdkFont -@Returns: @font - - - - -Decrease the reference count of a count by one. -If the result is zero, destroys the font. - - -@font: a #GdkFont - - - - -Returns the X Font ID for the given font. - - -@font: a #GdkFont. -@Returns: the numeric X Font ID - - - - -Compares two fonts for equality. Single fonts compare equal -if they have the same X font ID. This operation does -not currently work correctly for fontsets. - - -@fonta: a #GdkFont. -@fontb: another #GdkFont. -@Returns: %TRUE if the fonts are equal. - - - - -Returns the metrics of a NULL-terminated string. - - -@font: a #GdkFont. -@string: the NULL-terminated string to measure. -@lbearing: the left bearing of the string. -@rbearing: the right bearing of the string. -@width: the width of the string. -@ascent: the ascent of the string. -@descent: the descent of the string. - - - - -Returns the metrics of a string. - - -@font: a #GdkFont -@text: the text to measure -@text_length: the length of the text in bytes. (If the - font is a 16-bit font, this is twice the length - of the text in characters.) -@lbearing: the left bearing of the string. -@rbearing: the right bearing of the string. -@width: the width of the string. -@ascent: the ascent of the string. -@descent: the descent of the string. - - - - -Returns the metrics of a string of wide characters. - - -@font: a #GdkFont -@text: the text to measure. -@text_length: the length of the text in character. -@lbearing: the left bearing of the string. -@rbearing: the right bearing of the string. -@width: the width of the string. -@ascent: the ascent of the string. -@descent: the descent of the string. - - - - -Determine the width of a NULL-terminated string. -(The distance from the origin of the string to the -point where the next string in a sequence of strings -should be drawn) - - -@font: a #GdkFont -@string: the NULL-terminated string to measure -@Returns: the width of the string in pixels. - - - - -Determine the width of a given string. - - -@font: a #GdkFont -@text: the text to measure. -@text_length: the length of the text in bytes. -@Returns: the width of the string in pixels. - - - - -Determine the width of a given wide-character string. - - -@font: a #GdkFont -@text: the text to measure. -@text_length: the length of the text in characters. -@Returns: the width of the string in pixels. - - - - -Determine the width of a given character. - - -@font: a #GdkFont -@character: the character to measure. -@Returns: the width of the character in pixels. - - - - -Determine the width of a given wide character. (Encoded -in the wide-character encoding of the current locale). - - -@font: a #GdkFont -@character: the character to measure. -@Returns: the width of the character in pixels. - - - - -Determines the distance from the origin to the rightmost -portion of a NULL-terminated string when drawn. This is not the -correct value for determining the origin of the next -portion when drawing text in multiple pieces. -See gdk_string_width(). - - -@font: a #GdkFont -@string: the NULL-terminated string to measure. -@Returns: the right bearing of the string in pixels. - - - - -Determines the distance from the origin to the rightmost -portion of a string when drawn. This is not the -correct value for determining the origin of the next -portion when drawing text in multiple pieces. -See gdk_text_width(). - - -@font: a #GdkFont -@text: the text to measure. -@text_length: the length of the text in bytes. -@Returns: the right bearing of the string in pixels. - - - - -Determines the distance from the origin to the rightmost -portion of a character when drawn. This is not the -correct value for determining the origin of the next -portion when drawing text in multiple pieces. - - -@font: a #GdkFont -@character: the character to measure. -@Returns: the right bearing of the character in pixels. - - - - -Determines the total height of a given NULL-terminated -string. This value is not generally useful, because you -cannot determine how this total height will be drawn in -relation to the baseline. See gdk_string_extents(). - - -@font: a #GdkFont -@string: the NULL-terminated string to measure. -@Returns: the height of the string in pixels. - - - - -Determines the total height of a given string. -This value is not generally useful, because you cannot -determine how this total height will be drawn in -relation to the baseline. See gdk_text_extents(). - - -@font: a #GdkFont -@text: the text to measure. -@text_length: the length of the text in bytes. -@Returns: the height of the string in pixels. - - - - -Determines the total height of a given character. -This value is not generally useful, because you cannot -determine how this total height will be drawn in -relation to the baseline. See gdk_text_extents(). - - -@font: a #GdkFont -@character: the character to measure. -@Returns: the height of the character in pixels. - - - - -Specifies a wide character type, used to represent character codes. -This is needed since some native languages have character sets which have -more than 256 characters (Japanese and Chinese, for example). - - -Wide character values between 0 and 127 are always identical in meaning to -the ASCII character codes. The wide character value 0 is often used to -terminate strings of wide characters in a similar way to normal strings -using the char type. - - -An alternative to wide characters is multi-byte characters, which extend -normal char strings to cope with larger character sets. As the name suggests, -multi-byte characters use a different number of bytes to store different -character codes. For example codes 0-127 (i.e. the ASCII codes) often -use just one byte of memory, while other codes may use 2, 3 or even 4 bytes. -Multi-byte characters have the advantage that they can often be used in an -application with little change, since strings are still represented as arrays -of char values. However multi-byte strings are much easier to manipulate since -the character are all of the same size. - - -Applications typically use wide characters to represent character codes -internally, and multi-byte strings when saving the characters to a file. -The gdk_wcstombs() and gdk_mbstowcs() functions can be used to convert from -one representation to the other. - - -See the 'Extended Characters' section of the GNU C Library Reference Manual -for more detailed information on wide and multi-byte characters. - - - - - -Converts a wide character string to a multi-byte string. -(The function name comes from an acronym of 'Wide Character String TO -Multi-Byte String'). - - -@src: a wide character string. -@Returns: the multi-byte string corresponding to @src, or NULL if the -conversion failed. The returned string should be freed with g_free() when no -longer needed. - - - - -Converts a multi-byte string to a wide character string. -(The function name comes from an acronym of 'Multi-Byte String TO Wide -Character String'). - - -@dest: the space to place the converted wide character string into. -@src: the multi-byte string to convert, which must be null-terminated. -@dest_max: the maximum number of wide characters to place in @dest. -@Returns: the number of wide characters written into @dest, or -1 if the -conversion failed. - - diff --git a/docs/reference/gdk/tmpl/gcs.sgml b/docs/reference/gdk/tmpl/gcs.sgml deleted file mode 100644 index 4ec3f32425..0000000000 --- a/docs/reference/gdk/tmpl/gcs.sgml +++ /dev/null @@ -1,639 +0,0 @@ - -Graphics Contexts - - -objects to encapsulate drawing properties. - - - -All drawing operations in GDK take a -graphics context (GC) argument. -A graphics context encapsulates information about -the way things are drawn, such as the foreground -color or line width. By using graphics contexts, -the number of arguments to each drawing call is -greatly reduced, and communication overhead is -minimized, since identical arguments do not need -to be passed repeatedly. - - -Most values of a graphics context can be set at -creation time by using gdk_gc_new_with_values(), -or can be set one-by-one using functions such -as gdk_gc_set_foreground(). A few of the values -in the GC, such as the dash pattern, can only -be set by the latter method. - - - - - - - - - -The #GdkGC structure represents a graphics context. -It is an opaque structure with no user-visible -elements. - - -@dummy_var: - - - -The #GdkGCValues structure holds a set of values used -to create or modify a graphics context. - - - - - - -#GdkColor foreground; -the foreground color. - - - -#GdkColor background; -the background color. - - - -#GdkFont *font; -the default font.. - - - -#GdkFunction function; -the bitwise operation used when drawing. - - - -#GdkFill fill; -the fill style. - - - -#GdkPixmap *tile; -the tile pixmap. - - - -#GdkPixmap *stipple; -the stipple bitmap. - - - -#GdkPixmap *clip_mask; -the clip mask bitmap. - - - -#GdkSubwindowMode subwindow_mode; -the subwindow mode. - - - -#gint ts_x_origin; -the x origin of the tile or stipple. - - - -#gint ts_y_origin; -the y origin of the tile or stipple. - - - -#gint clip_x_origin; -the x origin of the clip mask. - - - -#gint clip_y_origin; -the y origin of the clip mask. - - - -#gint graphics_exposures; -whether graphics exposures are enabled. - - - -#gint line_width; -the line width - - - -#GdkLineStyle line_style; -the way dashed lines are drawn - - - -#GdkCapStyle cap_style; -the way the ends of lines are drawn - - - -#GdkJoinStyle join_style; -the way joins between lines are drawn - - - - - -@foreground: -@background: -@font: -@function: -@fill: -@tile: -@stipple: -@clip_mask: -@subwindow_mode: -@ts_x_origin: -@ts_y_origin: -@clip_x_origin: -@clip_y_origin: -@graphics_exposures: -@line_width: -@line_style: -@cap_style: -@join_style: - - - -A set of bit flags used to indicate which fields -#GdkGCValues structure are set. - - -@GDK_GC_FOREGROUND: -@GDK_GC_BACKGROUND: -@GDK_GC_FONT: -@GDK_GC_FUNCTION: -@GDK_GC_FILL: -@GDK_GC_TILE: -@GDK_GC_STIPPLE: -@GDK_GC_CLIP_MASK: -@GDK_GC_SUBWINDOW: -@GDK_GC_TS_X_ORIGIN: -@GDK_GC_TS_Y_ORIGIN: -@GDK_GC_CLIP_X_ORIGIN: -@GDK_GC_CLIP_Y_ORIGIN: -@GDK_GC_EXPOSURES: -@GDK_GC_LINE_WIDTH: -@GDK_GC_LINE_STYLE: -@GDK_GC_CAP_STYLE: -@GDK_GC_JOIN_STYLE: - - - -Determines how the bit values for the source pixels are combined with -the bit values for destination pixels to produce the final result. The -sixteen values here correspond to the 16 different possible 2x2 truth -tables. Only a couple of these values are usually useful; for colored -images, only %GDK_COPY, %GDK_XOR and %GDK_INVERT are generally -useful. For bitmaps, %GDK_AND and %GDK_OR are also useful. - - -@GDK_COPY: -@GDK_INVERT: -@GDK_XOR: -@GDK_CLEAR: -@GDK_AND: -@GDK_AND_REVERSE: -@GDK_AND_INVERT: -@GDK_NOOP: -@GDK_OR: -@GDK_EQUIV: -@GDK_OR_REVERSE: -@GDK_COPY_INVERT: -@GDK_OR_INVERT: -@GDK_NAND: -@GDK_SET: - - - -Create a new graphics context with default values. - - -@window: a #GdkDrawable. The created GC must always be used - with drawables of the same depth as this one. -@Returns: the new graphics context. - - - - -Create a new GC with the given initial values. - - -@window: a #GdkDrawable. The created GC must always be used - with drawables of the same depth as this one. -@values: a structure containing initial values for the GC. -@values_mask: a bit mask indicating which fields in @values - are set. -@Returns: the new graphics context. - - - - -Increase the reference count on a graphics context. - - -@gc: a #GdkGC. -@Returns: @gc. - - - - -Decrease the reference count on a graphics context. If -the resulting reference count is zero, the graphics -context will be destroyed. - - -@gc: a #GdkGC. - - - - -Identical to gdk_gc_unref(). This function is obsolete -and should not be used. - - -@gc: a #GdkGC. - - - - -Retrieves the current values from a graphics context. - - -@gc: a #GdkGC. -@values: the #GdkGCValues structure in which to store the results. - - - - -Sets the foreground color for a graphics context. - - -@gc: a #GdkGC. -@color: the new foreground color. - - - - -Sets the background color for a graphics context. - - -@gc: a #GdkGC. -@color: the new background color. - - - - -Sets the font for a graphics context. (Note that -all text-drawing functions in GDK take a @font -argument; the value set here is used when that -argument is %NULL.) - - -@gc: a #GdkGC. -@font: the new font. - - - - -Determines how the current pixel values and the -pixel values being drawn are combined to produce -the final pixel values. - - -@gc: a #GdkGC. -@function: - - - - -Set the fill mode for a graphics context. - - -@gc: a #GdkGC. -@fill: the new fill mode. - - - - -Determines how primitives are drawn. - - - - - - -GDK_SOLID -draw with the foreground color. - - - -GDK_TILED -draw with a tiled pixmap. - - - -GDK_STIPPLED -draw using the stipple bitmap. Pixels corresponding -to bits in the stipple bitmap that are set will be drawn in the -foreground color; pixels corresponding to bits that are -not set will be left untouched. - - - -GDK_OPAQUE_STIPPLED -draw using the stipple bitmap. Pixels corresponding -to bits in the stipple bitmap that are set will be drawn in the -foreground color; pixels corresponding to bits that are -not set will be drawn with the background color. - - - - - -@GDK_SOLID: -@GDK_TILED: -@GDK_STIPPLED: -@GDK_OPAQUE_STIPPLED: - - - -Set a tile pixmap for a graphics context. -This will only be used if the fill mode -is %GDK_TILED. - - -@gc: a #GdkGC. -@tile: the new tile pixmap. - - - - -Set the stipple bitmap for a graphics context. The -stipple will only be used if the fill mode is -%GDK_STIPPLED or %GDK_OPAQUE_STIPPLED. - - -@gc: a #GdkGC. -@stipple: the new stipple bitmap. - - - - -Set the origin when using tiles or stipples with -the GC. The tile or stipple will be aligned such -that the upper left corner of the tile or stipple -will coincide with this point. - - -@gc: a #GdkGC. -@x: the x-coordinate of the origin. -@y: the y-coordinate of the origin. - - - - -Sets the origin of the clip mask. The coordinates are -interpreted relative to the upper-left corner of -the destination drawable of the current operation. - - -@gc: a #GdkGC. -@x: the x-coordinate of the origin. -@y: the y-coordinate of the origin. - - - - -Sets the clip mask for a graphics context from a bitmap. -The clip mask is interpreted relative to the clip -origin. (See gdk_gc_set_clip_origin()). - - -@gc: the #GdkGC. -@mask: a bitmap. - - - - -Sets the clip mask for a graphics context from a -rectangle. The clip mask is interpreted relative to the clip -origin. (See gdk_gc_set_clip_origin()). - - - -@gc: a #GdkGC. -@rectangle: the rectangle to clip to. - - - - -Sets the clip mask for a graphics context from a region structure. -The clip mask is interpreted relative to the clip origin. (See -gdk_gc_set_clip_origin()). - - -@gc: a #GdkGC. -@region: the #GdkRegion. - - - - -Sets how drawing with this GC on a window will affect child -windows of that window. - - -@gc: a #GdkGC. -@mode: the subwindow mode. - - - - - -Determines how drawing onto a window will affect child -windows of that window. - - - - - - -GDK_CLIP_BY_CHILDREN -only draw onto the window itself. - - - -GDK_INCLUDE_INFERIORS -Draw onto the window and child windows. - - - - - -@GDK_CLIP_BY_CHILDREN: -@GDK_INCLUDE_INFERIORS: - - - -Sets whether copying non-visible portions of a drawable -using this graphics context generate exposure events -for the corresponding regions of the destination -drawable. (See gdk_draw_pixmap()). - - -@gc: a #GdkGC. -@exposures: if %TRUE, exposure events will be generated. - - - - -Sets various attributes of how lines are drawn. See -the corresponding members of GdkGCValues for full -explanations of the arguments. - - -@gc: a #GdkGC. -@line_width: the width of lines. -@line_style: the dash-style for lines. -@cap_style: the manner in which the ends of lines are drawn. -@join_style: the in which lines are joined together. - - - - -Determines how lines are drawn. - - - - - - -GDK_LINE_SOLID -lines are drawn solid. - - - -GDK_LINE_ON_OFF_DASH -even segments are drawn; odd segments are not drawn. - - - -GDK_LINE_DOUBLE_DASH -even segments are normally. Odd segments are drawn -in the background color if the fill style is %GDK_SOLID, -or in the background color masked by the stipple if the -fill style is %GDK_STIPPLED. - - - - - -@GDK_LINE_SOLID: -@GDK_LINE_ON_OFF_DASH: -@GDK_LINE_DOUBLE_DASH: - - - -Determines how the end of lines are drawn. - - - - - - -GDK_CAP_NOT_LAST -the same as %GDK_CAP_BUTT for lines of non-zero width. - for zero width lines, the final point on the line - will not be drawn. - - - -GDK_CAP_BUTT -the ends of the lines are drawn squared off and extending - to the coordinates of the end point. - - - -GDK_CAP_ROUND -the ends of the lines are drawn as semicircles with the - diameter equal to the line width and centered at the - end point. - - - -GDK_CAP_PROJECTING -the ends of the lines are drawn squared off and extending - half the width of the line beyond the end point. - - - - -@GDK_CAP_NOT_LAST: -@GDK_CAP_BUTT: -@GDK_CAP_ROUND: -@GDK_CAP_PROJECTING: - - - -Determines how the joins between segments of a polygon are drawn. - - - - - - -GDK_JOIN_MITER -the sides of each line are extended to meet at an angle. - - - -GDK_JOIN_ROUND -the sides of the two lines are joined by a circular arc. - - - -GDK_JOIN_BEVEL -the sides of the two lines are joined by a straight line which - makes an equal angle with each line. - - - - - -@GDK_JOIN_MITER: -@GDK_JOIN_ROUND: -@GDK_JOIN_BEVEL: - - - -Sets the way dashed-lines are drawn. Lines will be -drawn with alternating on and off segments of the -lengths specified in @dash_list. The manner in -which the on and off segments are drawn is determined -by the @line_style value of the GC. (This can -be changed with gdk_gc_set_line_attributes) - - -@gc: a #GdkGC. -@dash_offset: the -@dash_list: an array of dash lengths. -@n: the number of elements in @dash_list. - - - - -Copy the set of values from one graphics context -onto another graphics context. - - -@dst_gc: the destination graphics context. -@src_gc: the source graphics context. - - diff --git a/docs/reference/gdk/tmpl/gdk-unused.sgml b/docs/reference/gdk/tmpl/gdk-unused.sgml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/reference/gdk/tmpl/general.sgml b/docs/reference/gdk/tmpl/general.sgml deleted file mode 100644 index 0605315964..0000000000 --- a/docs/reference/gdk/tmpl/general.sgml +++ /dev/null @@ -1,347 +0,0 @@ - -General - - -library initialization and miscellaneous functions. - - - -This section describes the GDK initialization functions and miscellaneous -utility functions. - - - - - - - - - -Initializes the GDK library and connects to the X server. -If initialization fails, a warning message is output and the application -terminates with a call to exit(1). - - -Any arguments used by GDK are removed from the array and @argc and @argv are -updated accordingly. - - -GTK+ initializes GDK in gtk_init() and so this function is not usually needed -by GTK+ applications. - - -@argc: the number of command line arguments. -@argv: the array of command line arguments. - - - - -Initializes the GDK library and connects to the X server, returning TRUE on -success. - - -Any arguments used by GDK are removed from the array and @argc and @argv are -updated accordingly. - - -GTK+ initializes GDK in gtk_init() and so this function is not usually needed -by GTK+ applications. - - -@argc: the number of command line arguments. -@argv: the array of command line arguments. -@Returns: TRUE if initialization succeeded. - - - - -Exits the application using the exit() system call. - - -This routine is provided mainly for backwards compatability, since it used to -perform tasks necessary to exit the application cleanly. Those tasks are now -performed in a function which is automatically called on exit (via the use -of g_atexit()). - - -@error_code: the error code to pass to the exit() call. - - - - -Initializes the support for internationalization by calling the setlocale() -system call. This function is called by gtk_set_locale() and so GTK+ -applications should use that instead. - - -The locale to use is determined by the LANG environment variable, -so to run an application in a certain locale you can do something like this: - - - export LANG="fr" - ... run application ... - - - - -If the locale is not supported by X then it is reset to the standard "C" -locale. - - -@Returns: the resulting locale. - - - - -Sets the SM_CLIENT_ID property on the application's leader window so that -the window manager can save the application's state using the X11R6 ICCCM -session management protocol. - - -The leader window is automatically created by GDK and never shown. It's only -use is for session management. The WM_CLIENT_LEADER property is automatically -set on all X windows created by the application to point to the leader window. - - -See the X Session Management Library documentation for more information on -session management and the Inter-Client Communication Conventions Manual -(ICCCM) for information on the WM_CLIENT_LEADER property. (Both documents are -part of the X Windows distribution.) - - -@sm_client_id: the client id assigned by the session manager when the -connection was opened, or NULL to remove the property. - - - - -Gets the name of the display, which usually comes from the DISPLAY -environment variable or the --display command line option. - - -@Returns: the name of the display. - - - - -Flushes the X output buffer and waits until all requests have been processed -by the server. This is rarely needed by applications. It's main use is for -trapping X errors with gdk_error_trap_push() and gdk_error_trap_pop(). - - - - - - -Returns the width of the screen in pixels. - - -@Returns: the width of the screen in pixels. - - - - -Returns the height of the screen in pixels. - - -@Returns: the height of the screen in pixels. - - - - -Returns the width of the screen in millimeters. -Note that on many X servers this value will not be correct. - - -@Returns: the width of the screen in millimeters, though it is not always -correct. - - - - -Returns the height of the screen in millimeters. -Note that on many X servers this value will not be correct. - - -@Returns: the height of the screen in millimeters, though it is not always -correct. - - - - -Grabs the pointer (usually a mouse) so that all events are passed to this -application until the pointer is ungrabbed with gdk_pointer_ungrab(), or -the grab window becomes unviewable. -This overrides any previous pointer grab by this client. - - -Pointer grabs are used for operations which need complete control over mouse -events, even if the mouse leaves the application. -For example in GTK+ it is used for Drag and Drop, for dragging the handle in -the #GtkHPaned and #GtkVPaned widgets, and for resizing columns in #GtkCList -widgets. - - -Note that if the event mask of an X window has selected both button press and -button release events, then a button press event will cause an automatic -pointer grab until the button is released. -X does this automatically since most applications expect to receive button -press and release events in pairs. -It is equivalent to a pointer grab on the window with @owner_events set to -TRUE. - - -@window: the #GdkWindow which will own the grab (the grab window). -@owner_events: if FALSE then all pointer events are reported with respect to -@window and are only reported if selected by @event_mask. If TRUE then pointer -events for this application are reported as normal, but pointer events outside -this application are reported with respect to @window and only if selected by -@event_mask. In either mode, unreported events are discarded. -@event_mask: specifies the event mask, which is used in accordance with -@owner_events. -@confine_to: If non-%NULL, the pointer will be confined to this -window during the grab. If the pointer is outside @confine_to, it will -automatically be moved to the closest edge of @confine_to and enter -and leave events will be generated as necessary. -@cursor: the cursor to display while the grab is active. If this is NULL then -the normal cursors are used for @window and its descendants, and the cursor -for @window is used for all other windows. -@time: the timestamp of the event which led to this pointer grab. This usually -comes from a #GdkEventButton struct, though #GDK_CURRENT_TIME can be used if -the time isn't known. -@Returns: 0 if the grab was successful. - - - - -Ungrabs the pointer, if it is grabbed by this application. - - -@time: a timestamp from a #GdkEvent, or #GDK_CURRENT_TIME if no timestamp is -available. - - - - -Returns TRUE if the pointer is currently grabbed by this application. - - -Note that the return value is not completely reliable since the X server may -automatically ungrab the pointer, without informing the application, if the -grab window becomes unviewable. It also does not take passive pointer grabs -into account. - - -@Returns: TRUE if the pointer is currently grabbed by this application. -Though this value is not always correct. - - - - -Grabs the keyboard so that all events are passed to this -application until the keyboard is ungrabbed with gdk_keyboard_ungrab(). -This overrides any previous keyboard grab by this client. - - -@window: the #GdkWindow which will own the grab (the grab window). -@owner_events: if FALSE then all keyboard events are reported with respect to -@window. If TRUE then keyboard events for this application are reported as -normal, but keyboard events outside this application are reported with respect -to @window. Both key press and key release events are always reported, -independant of the event mask set by the application. -@time: a timestamp from a #GdkEvent, or #GDK_CURRENT_TIME if no timestamp is -available. -@Returns: 0 if the grab was successful. - - - - -Ungrabs the keyboard, if it is grabbed by this application. - - -@time: a timestamp from a #GdkEvent, or #GDK_CURRENT_TIME if no timestamp is -available. - - - - -Disables the keyboard auto-repeat mode. -This should be used with care as it may affect other applications. - - - - - - -Restores the keyboard auto-repeat mode to its state when the application was -started. - - - - - - -Emits a short beep. - - - - - - -Returns TRUE if GDK will attempt to use the MIT-SHM shared memory extension. - - -The shared memory extension is used for #GdkImage, and consequently for -GdkRGB. -It enables much faster drawing by communicating with the X server through -SYSV shared memory calls. However, it can only be used if the X client and -server are on the same machine and the server supports it. - - -@Returns: TRUE if use of the MIT shared memory extension will be attempted. - - - - -Sets whether the use of the MIT shared memory extension should be attempted. -This function is mainly for internal use. It is only safe for an application -to set this to FALSE, since if it is set to TRUE and the server does not -support the extension it may cause warning messages to be output. - - -@use_xshm: TRUE if use of the MIT shared memory extension should be attempted. - - - - -This function allows X errors to be trapped instead of the normal behavior -of exiting the application. It should only be used if it is not possible to -avoid the X error in any other way. - - -Trapping an X error. - - gdk_error_trap_push (); - - /* ... Call the X function which may cause an error here ... */ - - /* Flush the X queue to catch errors now. */ - gdk_flush (); - - if (gdk_error_trap_pop ()) - { - /* ... Handle the error here ... */ - } - - - - - - - -Removes the X error trap installed with gdk_error_trap_push(). - - -@Returns: the X error code, or 0 if no error occurred. - - diff --git a/docs/reference/gdk/tmpl/images.sgml b/docs/reference/gdk/tmpl/images.sgml deleted file mode 100644 index 683d817f07..0000000000 --- a/docs/reference/gdk/tmpl/images.sgml +++ /dev/null @@ -1,156 +0,0 @@ - -Images - - -an area for bit-mapped graphics stored on the X Windows client. - - - -The #GdkImage type represents an area for drawing graphics. -It has now been superceded to a large extent by the much more flexible -GdkRGB functions. - - -To create an empty #GdkImage use gdk_image_new(). -To create a #GdkImage from bitmap data use gdk_image_new_bitmap(). -To create an image from part of a #GdkWindow use gdk_image_get(). - - -The image can be manipulated with gdk_image_get_pixel() and -gdk_image_put_pixel(), or alternatively by changing the actual pixel data. -Though manipulating the pixel data requires complicated code to cope with -the different formats that may be used. - - -To draw a #GdkImage in a #GdkWindow or #GdkPixmap use gdk_draw_image(). - - -To destroy a #GdkImage use gdk_image_destroy(). - - - - - - - -Bitmaps and Pixmaps - -Graphics which are stored on the X Windows server. -Since these are stored on the server they can be drawn very quickly, and all -of the Drawing Primitives can be -used to draw on them. Their main disadvantage is that manipulating individual -pixels can be very slow. - - - - -GdkRGB - -Built on top of #GdkImage, this provides much more functionality, -including the dithering of colors to produce better output on low-color -displays. - - - - - - - - -The #GdkImage struct contains information on the image and the pixel data. - - -@type: the type of the image. -@visual: the visual. -@byte_order: the byte order. -@width: the width of the image in pixels. -@height: the height of the image in pixels. -@depth: the depth of the image, i.e. the number of bits per pixel. -@bpp: the number of bytes per pixel. -@bpl: the number of bytes per line of the image. -@mem: the pixel data. - - - -Creates a new #GdkImage. - - -@type: the type of the #GdkImage, one of %GDK_IMAGE_NORMAL, %GDK_IMAGE_SHARED -and %GDK_IMAGE_FASTEST. %GDK_IMAGE_FASTEST is probably the best choice, since -it will try creating a %GDK_IMAGE_SHARED image first and if that fails it will -then use %GDK_IMAGE_NORMAL. -@visual: the #GdkVisual to use for the image. -@width: the width of the image in pixels. -@height: the height of the image in pixels. -@Returns: a new #GdkImage, or NULL if the image could not be created. - - - - -Specifies the type of a #GdkImage. - - -@GDK_IMAGE_NORMAL: The original X image type, which is quite slow since the -image has to be transferred from the client to the server to display it. -@GDK_IMAGE_SHARED: A faster image type, which uses shared memory to transfer -the image data between client and server. However this will only be available -if client and server are on the same machine and the shared memory extension -is supported by the server. -@GDK_IMAGE_FASTEST: Specifies that %GDK_IMAGE_SHARED should be tried first, -and if that fails then %GDK_IMAGE_NORMAL will be used. - - - -Creates a new #GdkImage with a depth of 1 from the given data. - - -@visual: the #GdkVisual to use for the image. -@data: the pixel data. -@width: the width of the image in pixels. -@height: the height of the image in pixels. -@Returns: a new #GdkImage. - - - - -Gets part of a #GdkWindow and stores it in a new #GdkImage. - - -@window: the #GdkWindow to copy from. -@x: the left edge of the rectangle to copy from @window. -@y: the top edge of the rectangle to copy from @window. -@width: the width of the area to copy, in pixels. -@height: the height of the area to copy, in pixels. -@Returns: a new #GdkImage with a copy of the given area of @window. - - - - -Destroys a #GdkImage, freeing any resources allocated for it. - - -@image: a #GdkImage. - - - - -Sets a pixel in a #GdkImage to a given pixel value. - - -@image: a #GdkImage. -@x: the x coordinate of the pixel to set. -@y: the y coordinate of the pixel to set. -@pixel: the pixel value to set. - - - - -Gets a pixel value at a specified position in a #GdkImage. - - -@image: a #GdkImage. -@x: the x coordinate of the pixel to get. -@y: the y coordinate of the pixel to get. -@Returns: the pixel value at the given position. - - diff --git a/docs/reference/gdk/tmpl/input.sgml b/docs/reference/gdk/tmpl/input.sgml deleted file mode 100644 index 057b1c1c54..0000000000 --- a/docs/reference/gdk/tmpl/input.sgml +++ /dev/null @@ -1,130 +0,0 @@ - -Input - - -Callbacks on file descriptors. - - - -The functions in this section are used to establish -callbacks when some condition becomes true for -a file descriptor. They are currently just wrappers around -the IO Channel -facility. - - - - - - - -GLib Main Loop -The main loop in which input callbacks run. - - - -IO Channels -A newer and more flexible way of doing IO -callbacks. - - - - - - - -Establish a callback when a condition becomes true on -a file descriptor. - - -@source: a file descriptor. -@condition: the condition. -@function: the callback function. -@data: callback data passed to @function. -@destroy: callback function to call with @data when the input - handler is removed. -@Returns: a tag that can later be used as an argument to - gdk_input_remove(). - - - - -A set of bit flags used to specify conditions for which -an input callback will be triggered. The three members -of this enumeration correspond to the @readfds, -@writefds, and @exceptfds arguments to the -select system call. - - - - - - -GDK_INPUT_READ -the file descriptor has become available for reading. -(Or, as is standard in Unix, a socket or pipe was closed -at the other end; this is the case if a subsequent read -on the file descriptor returns a count of zero.) - - - -GDK_INPUT_WRITE -the file descriptor has become available for writing. - - - -GDK_INPUT_EXCEPTION -an exception was raised on the file descriptor. - - - - - -@GDK_INPUT_READ: -@GDK_INPUT_WRITE: -@GDK_INPUT_EXCEPTION: - - - -A callback function that will be called when some condition -occurs. - - -@data: the user data passed to gdk_input_add() or gdk_input_add_full(). -@source: the source where the condition occurred. -@condition: the triggering condition. - - - - -A callback function called when a piece of user data is -no longer being stored by GDK. Will typically free the -structure or object that @data points to. - - -@data: the user data. - - - - -Establish a callback when a condition becomes true on -a file descriptor. - - -@source: a file descriptor. -@condition: the condition. -@function: the callback function. -@data: callback data passed to @function. -@Returns: a tag that can later be used as an argument to - gdk_input_remove(). - - - - -Remove a callback added with gdk_input_add() or -gdk_input_add_full(). - - -@tag: the tag returned when the callback was set up. - - diff --git a/docs/reference/gdk/tmpl/input_contexts.sgml b/docs/reference/gdk/tmpl/input_contexts.sgml deleted file mode 100644 index b655f10bb4..0000000000 --- a/docs/reference/gdk/tmpl/input_contexts.sgml +++ /dev/null @@ -1,243 +0,0 @@ - -Input Contexts - - -internationalized text input properties. - - - -A #GdkIC input context is used for each user interface element which supports -internationalized text input. See the -Input Methods section for an overview -of how internationalized text input works in GTK+. - - - - - - - - - -The #GdkIC struct is an opaque structure representing an input context -for use with the global Input Method. - - - - - -Creates a new #GdkIC using the given attributes. - - -@attr: a #GdkICAttr struct containing attributes to use for the input context. -@mask: a #GdkICAttributesType mask specifying which of the attributes in @attr -are set. -@Returns: a new #GdkIC. - - - - -Destroys the input context. - - -@ic: a #GdkIC. - - - - -Returns the mask of events that the input method needs to function properly. -This is typically called in a widget's realize method after creating the -#GdkIC. The returned event mask is then combined with the widget's -own event mask and applied using gdk_window_set_events(). - - -@ic: a #GdkIC. -@Returns: the mask of events that the input method needs to function -properly. - - - - -Returns the pre-edit and status style of the #GdkIC. - - -@ic: a #GdkIC. -@Returns: the pre-edit and status style of the #GdkIC. - - - - -Gets attributes of a #GdkIC. - - -@ic: a #GdkIC. -@attr: a #GdkICAttr struct to contain the returned attributes. -@mask: a #GdkICAttributesType mask specifying which attributes to get. -@Returns: a #GdkICAttributesType mask specifying which of the attributes -were not retrieved succesfully. - - - - -Sets attributes of the #GdkIC. - - -Note that the GDK_IC_STYLE and GDK_IC_CLIENT_WINDOW attributes can only be set -when creating the #GdkIC, and the GDK_IC_FILTER_EVENTS attribute is read-only. - - -@ic: a #GdkIC. -@attr: a #GdkICAttr struct containing attributes to use for the input context. -@mask: a #GdkICAttributesType mask specifying which of the attributes in @attr -are set. -@Returns: a #GdkICAttributesType mask indicating which of the attributes -were not set successfully. - - - - -The #GdkICAttr struct is used when getting and setting attributes of the -input context. It is used together with a #GdkICAttributesType mask which -specifies which of the fields are being set or returned. - - -@style: the pre-edit and status style. This attribute is required when -creating the #GdkIC, and cannot be changed. -@client_window: the #GdkWindow in which the input method will display its -pre-edit and status areas or create subwindows. -The preedit_area and status_area attributes are specified relative to this -window. This attribute is required when creating the #GdkIC, and cannot be -changed. -@focus_window: the #GdkWindow which is to be used when editing text. -gdk_im_begin() sets this attribute before starting the text input process, -so it is normally not necessary to set it elsewhere. -@filter_events: the mask of events that the input method requires. -See the gdk_ic_get_events() function. This attribute is read-only and is -never changed. -@spot_location: the position of the insertion cursor, for use with the -%GDK_IM_PREEDIT_POSITION style. The y coordinate specifies the baseline of -the text. -@line_spacing: the line spacing to be used in the pre-edit and status areas -when displaying multi-line text. -@cursor: the cursor to use in the input method's windows. -If this attribute isn't set it is determined by the input method. -@preedit_fontset: the font to use for the pre-edit area. -If this attribute isn't set it is determined by the input method. -@preedit_area: the area in which the input method will display pre-editing -data, used for the %GDK_IM_PREEDIT_POSITION and %GDK_IM_PREEDIT_AREA styles. -@preedit_area_needed: the area that the input method requests for displaying -pre-editing data, used for the %GDK_IM_PREEDIT_POSITION and -%GDK_IM_PREEDIT_AREA styles. -@preedit_foreground: the foreground color to use for the pre-edit area. -This color must already be allocated in the preedit_colormap. -If this attribute isn't set it is determined by the input method. -@preedit_background: the background color to use for the pre-edit area. -This color must already be allocated in the preedit_colormap. -If this attribute isn't set it is determined by the input method. -@preedit_pixmap: the background pixmap to use for the pre-edit area. -If this attribute isn't set it is determined by the input method. -@preedit_colormap: the colormap the input method should use to allocate colors. -The default value is the colormap of client_window. -@status_fontset: the font to use for the status area. -If this attribute isn't set it is determined by the input method. -@status_area: the are that the input method will display status information in. -This is used for the %GDK_IM_STATUS_AREA style. -@status_area_needed: the size that the input method requests for displaying -status information, for the %GDK_IM_STATUS_AREA style. -@status_foreground: the foreground color to use for the status area. -This color must already be allocated in the status_colormap. -If this attribute isn't set it is determined by the input method. -@status_background: the background color to use for the status area. -This color must already be allocated in the status_colormap. -If this attribute isn't set it is determined by the input method. -@status_pixmap: the background pixmap to use for the status area. -If this attribute isn't set it is determined by the input method. -@status_colormap: the colormap the input method should use to allocate colors. -The default value is the colormap of client_window. - - - -The #GdkICAttributesType contains a set of bit-flags which are used to -specify which of the attributes in a #GdkICAttr are being set or returned. - - -It also contains several combinations of the flags which specify required -attributes for the various styles: - - -%GDK_IC_ALL_REQ: - -the set of attributes required for all styles. - - - - -%GDK_IC_PREEDIT_AREA_REQ: - -the set of additional attributes required for the -%GDK_IM_PREEDIT_AREA pre-edit style. - - - - -%GDK_IC_PREEDIT_POSITION_REQ: - -the set of additional attributes required for the -%GDK_IM_PREEDIT_POSITION pre-edit style. - - - - -%GDK_IC_STATUS_AREA_REQ: - -the set of additional attributes required for the -%GDK_IM_STATUS_AREA status style. - - - - - -@GDK_IC_STYLE: -@GDK_IC_CLIENT_WINDOW: -@GDK_IC_FOCUS_WINDOW: -@GDK_IC_FILTER_EVENTS: -@GDK_IC_SPOT_LOCATION: -@GDK_IC_LINE_SPACING: -@GDK_IC_CURSOR: -@GDK_IC_PREEDIT_FONTSET: -@GDK_IC_PREEDIT_AREA: -@GDK_IC_PREEDIT_AREA_NEEDED: -@GDK_IC_PREEDIT_FOREGROUND: -@GDK_IC_PREEDIT_BACKGROUND: -@GDK_IC_PREEDIT_PIXMAP: -@GDK_IC_PREEDIT_COLORMAP: -@GDK_IC_STATUS_FONTSET: -@GDK_IC_STATUS_AREA: -@GDK_IC_STATUS_AREA_NEEDED: -@GDK_IC_STATUS_FOREGROUND: -@GDK_IC_STATUS_BACKGROUND: -@GDK_IC_STATUS_PIXMAP: -@GDK_IC_STATUS_COLORMAP: -@GDK_IC_ALL_REQ: -@GDK_IC_PREEDIT_AREA_REQ: -@GDK_IC_PREEDIT_POSITION_REQ: -@GDK_IC_STATUS_AREA_REQ: - - - -Creates a new #GdkICAttr struct, with all fields set to 0. -The #GdkICAttr struct should be freed with gdk_ic_attr_destroy() when no -longer needed. - - -@Returns: a new #GdkICAttr struct. - - - - -Destroys the given #GdkICAttr struct, freeing the allocated memory. - - -@attr: a #GdkICAttr struct. - - diff --git a/docs/reference/gdk/tmpl/input_devices.sgml b/docs/reference/gdk/tmpl/input_devices.sgml deleted file mode 100644 index 325b2d5a53..0000000000 --- a/docs/reference/gdk/tmpl/input_devices.sgml +++ /dev/null @@ -1,301 +0,0 @@ - -Input Devices - - -Functions for handling extended input devices. - - - -In addition to the normal keyboard and mouse input devices, GTK+ also -contains support for extended input devices. In -particular, this support is targeted at graphics tablets. Graphics -tablets typically return sub-pixel positioning information and possibly -information about the pressure and tilt of the stylus. Under -X, the support for extended devices is done through the -XInput extension. - - -Because handling extended input devices may involve considerable -overhead, they need to be turned on for each #GdkWindow -individually using gdk_input_set_extension_events(). -(Or, more typically, for GtkWidgets, using gtk_widget_set_extension_events()). -As an additional complication, depending on the support from -the windowing system, its possible that a normal mouse -cursor will not be displayed for a particular extension -device. If an application does not want to deal with displaying -a cursor itself, it can ask only to get extension events -from devices that will display a cursor, by passing the -%GDK_EXTENSION_EVENTS_CURSOR value to -gdk_input_set_extension_events(). Otherwise, the application -must retrieve the device information using gdk_input_list_devices(), -check the has_cursor field, and, -if it is %FALSE, draw a cursor itself when it receives -motion events. - - -Each pointing device is assigned a unique integer ID; events from a -particular device can be identified by the -deviceid field in the event structure. The -events generated by pointer devices have also been extended to contain -pressure, xtilt -and ytilt fields which contain the extended -information reported as additional valuators -from the device. The pressure field is a -a double value ranging from 0.0 to 1.0, while the tilt fields are -double values ranging from -1.0 to 1.0. (With -1.0 representing the -maximum title to the left or up, and 1.0 representing the maximum -tilt to the right or down.) - - -One additional field in each event is the -source field, which contains an -enumeration value describing the type of device; this currently -can be one of -%GDK_SOURCE_MOUSE, - %GDK_SOURCE_PEN, -%GDK_SOURCE_ERASER, -or %GDK_SOURCE_CURSOR. This field is present to allow simple -applications to (for instance) delete when they detect eraser -devices without having to keep track of complicated per-device -settings. - - -Various aspects of each device may be configured. The easiest way of -creating a GUI to allow the user to conifigure such a device -is to use to use the #GtkInputDialog widget in GTK+. -However, even when using this widget, application writers -will need to directly query and set the configuration parameters -in order to save the state between invocations of the application. -The configuration of devices is queried using gdk_input_list_devices. -Each device must is activated using gdk_input_set_mode(), which -also controls whether the device's range is mapped to the -entire screen or to a single window. The mapping of the valuators of -the device onto the predefined valuator types is set using -gdk_input_set_axes. And the source type for each device -can be set with gdk_input_set_source(). - - -Devices may also have associated keys -or macro buttons. Such keys can be globally set to map -into normal X keyboard events. The mapping is set using -gdk_input_set_key(). - - -The interfaces in this section will most likely be considerably -modified in the future to accomodate devices that may have different -sets of additional valuators than the pressure xtilt and ytilt. - - - - - - - - - -This macro contains an integer value representing -the device ID for the core pointer device. - - - - - - -Lists all available input devices, along with their -configuration information. - - -@Returns: A #GList of #GdkDeviceInfo structures. This list - is internal data of GTK+ and should not be modified - or freed. - - - - -The #GdkDeviceInfo structure contains information about a -device. It has the following fields: - - -@deviceid: a unique integer ID for this device. -@name: the human-readable name for the device. -@source: the type of device. -@mode: a value indicating whether the device is enabled and - how the device coordinates map to the screen. -@has_cursor: if %TRUE, a cursor will be displayed indicating - the current on-screen location to the user. Otherwise, - the application is responsible for drawing a cursor - itself. -@num_axes: the number of axes for this device. -@axes: a pointer to an array of GdkAxisUse values which - give the mapping of axes onto the possible valuators - for a GDK device. -@num_keys: the number of macro buttons. -@keys: a pointer to an array of #GdkDeviceKey structures - which describe what key press events are generated - for each macro button. - - - -The #GdkDeviceKey structure contains information -about the mapping of one device macro button onto -a normal X key event. It has the following fields: - - -@keyval: the keyval to generate when the macro button is pressed. - If this is 0, no keypress will be generated. -@modifiers: the modifiers set for the generated key event. - - - -Turns extension events on or off for a particular window, -and specifies the event mask for extension events. - - -@window: a #GdkWindow. -@mask: the event mask -@mode: the type of extension events that are desired. - - - - -An enumeration used to specify which extension events -are desired for a particular widget. - - -@GDK_EXTENSION_EVENTS_NONE: no extension events are desired. -@GDK_EXTENSION_EVENTS_ALL: all extension events are desired. -@GDK_EXTENSION_EVENTS_CURSOR: extension events are desired only if a cursor - will be displayed for the device. - - - -Sets the source type for a device. - - -@deviceid: the device to configure -@source: the new source type. - - - - -An enumeration describing the type of an input device -in general terms. - - -@GDK_SOURCE_MOUSE: the device is a mouse. (This will be reported for the core - pointer, even if it is something else, such as a trackball.) -@GDK_SOURCE_PEN: the device is a stylus of a graphics tablet or similar device. -@GDK_SOURCE_ERASER: the device is an eraser. Typically, this would be the other end - of a stylus on a graphics tablet. -@GDK_SOURCE_CURSOR: the device is a graphics tablet "puck" or similar device. - - - -Enables or disables a device, and determines how the -device maps onto the screen. - - -@deviceid: the device to configure. -@mode: the new mode. -@Returns: %TRUE if the device supports the given mode, otherwise - %FALSE and the device's mode is unchanged. - - - - -An enumeration that describes the mode of an input device. - - -@GDK_MODE_DISABLED: the device is disabled and will not report any events. -@GDK_MODE_SCREEN: the device is enabled. The device's coordinate space - maps to the entire screen. -@GDK_MODE_WINDOW: the device is enabled. The device's coordinate space - is mapped to a single window. The manner in which this window - is chosen is undefined, but it will typically be the same - way in which the focus window for key events is determined. - - - -Sets the mapping of the axes (valuators) of a device -onto the predefined valuator types that GTK+ understands. - - -@deviceid: the device to configure. -@axes: an array of GdkAxisUse. This length of this array - must match the number of axes for the device. - - - - -An enumeration describing the way in which a device -axis (valuator) maps onto the predefined valuator -types that GTK+ understands. - - -@GDK_AXIS_IGNORE: the axis is ignored. -@GDK_AXIS_X: the axis is used as the x axis. -@GDK_AXIS_Y: the axis is used as the y axis. -@GDK_AXIS_PRESSURE: the axis is used for pressure information. -@GDK_AXIS_XTILT: the axis is used for x tilt information. -@GDK_AXIS_YTILT: the axis is used for x tilt information. -@GDK_AXIS_LAST: a constant equal to the numerically highest axis value. - - - -Sets the key event generated when a macro button is pressed. - - -@deviceid: the device to configure. -@index: the index of the macro button. -@keyval: the key value for the #GdkKeypressEvent to generate. - (a value of 0 means no event will be generated.) -@modifiers: the modifier field for the generated - #GdkKeyPressEvent. - - - - -Returns information about the current position of the pointer -within a window, including extended device information. -Any of the return parameters may be %NULL, in which case, -they will be ignored. - - -@window: a #GdkWindow. -@deviceid: a device ID. -@x: location to store current x postion. -@y: location to store current y postion. -@pressure: location to store current pressure. -@xtilt: location to store current tilt in the x direction. -@ytilt: location to store current tilt in the y direction. -@mask: location to store the current modifier state. - - - - -Retrieves the motion history for a given device/window pair. - - -@window: a #GdkWindow. -@deviceid: the device for which to retrieve motion history. -@start: the start time. -@stop: the stop time. -@nevents_return: location to store the number of events returned. -@Returns: a newly allocated array containing all the events - from @start to @stop. This array should be freed - with g_free() when you are finished using it. - - - - -The #GdkTimeCoord structure stores a single event in a -motion history. It contains the following fields: - - -@time: The timestamp for this event. -@x: the x position. -@y: the y position. -@pressure: the pressure. -@xtilt: the tilt in the x direction. -@ytilt: the tilt in the y direction. - diff --git a/docs/reference/gdk/tmpl/input_methods.sgml b/docs/reference/gdk/tmpl/input_methods.sgml deleted file mode 100644 index 8416b02463..0000000000 --- a/docs/reference/gdk/tmpl/input_methods.sgml +++ /dev/null @@ -1,213 +0,0 @@ - -Input Methods - - -support for internationalized text input. - - - -Input Methods provide a way for complex character sets to be used in GTK+. -Languages such as Chinese, Japanese, and Korean (often abbreviated to CJK) -use a large number of ideographs, making it impossible to support all -characters with a simple keyboard. Instead, text is usually -pre-edited using a phonetic alphabet and then -composed to form the ideographs. - - -GTK+ makes use of the input method mechanism provided by the X Windows -platform. When a GTK+ application is started, it opens a connection to the -input method appropriate for the current locale (if any). - - -Widgets which handle textual input, such as #GtkEntry, need to do a number of -things to support internationalized text input: - - -When the widget is realized: -Check if an input method is being used with gdk_im_ready(). -If it is, create a new Input Context -using gdk_ic_new(). Find out which events the -Input Context needs to receive -with gdk_ic_get_events(), and make sure that the widget's window receives -these events using gdk_window_set_events(). - - - - -When the widget's size, state or cursor position changes: - -Update the appropriate -Input Context attributes -using gdk_ic_set_attr(). - - - - -When the keyboard focus enters or leaves the widget: - -Call gdk_im_begin() or gdk_im_end() to start or finish editing the text. - - - - -When the widget receives a key_press event: - -The string and length -fields of the #GdkEventKey struct should be used to insert the composed text -into the widget. - - - - -When the widget is unrealized: - -Destroy the Input Context. - - - - - - -See the XLib reference manual for more detailed information on input methods, -and the #GtkEntry and #GtkText widgets for some example code. - - - - - - -Input Contexts - -Used for each widget that handles internationalized text input using the -global input method. - - - - - - - - -A set of bit-flags used to specify the input method styles which are supported -or which are currently in use. The flags can be divided into 2 groups, the -pre-edit flags and the status flags. - - -The pre-edit flags specify how pre-editing data is displayed. -For example, this could display the text being typed in the phonetic -alphabet before it is composed and inserted as an ideograph. - - -The status flags specify how status information is displayed. -The status information can be thought of as an extension of the -standard keyboard mode indicators, such as the Caps Lock indicator. - - - -The %GDK_IM_PREEDIT_CALLBACKS and %GDK_IM_STATUS_CALLBACKS styles are not -currently supported in GTK+. - - - -@GDK_IM_PREEDIT_AREA: The application provides the input method with an area -in which to perform off-the-spot pre-editing. -@GDK_IM_PREEDIT_CALLBACKS: The application registers a number of callback -functions which are used to display pre-editing data. -@GDK_IM_PREEDIT_POSITION: The application provides the input method with the -position of the insertion cursor, for over-the-spot -pre-editing. The input method creates its own window over the widget to -display the pre-editing data. -@GDK_IM_PREEDIT_NOTHING: The input method uses the root X window to perform -pre-editing, so the application does not need to do anything. -@GDK_IM_PREEDIT_NONE: No pre-editing is done by the input method, or no -pre-editing data needs to be displayed. -@GDK_IM_PREEDIT_MASK: A bit-mask containing all the pre-edit flags. -@GDK_IM_STATUS_AREA: The application provides the input method with an area -in which to display status information. -@GDK_IM_STATUS_CALLBACKS: The applications registers a number of callback -functions which are used to display status information. -@GDK_IM_STATUS_NOTHING: The input method uses the root X window to display -status information, so the application does not need to do anything. -@GDK_IM_STATUS_NONE: The input method does not display status information. -@GDK_IM_STATUS_MASK: A bit-mask containing all the status flags. - - - -Checks if an input method is to be used for the current locale. -If GTK+ has been compiled without support for input methods, or the current -locale doesn't need an input method, then this will return FALSE. - - -@Returns: TRUE if an input method is available and should be used. - - - - -Decides which input method style should be used, by comparing the styles given -in @supported_style with those of the available input method. - - -@supported_style: styles which are supported by the widget. -@Returns: the best style in @supported_style that is also supported by the -available input method. - - - - -Sets the best pre-edit and/or status style which should be used. -This will affect the style chosen in gdk_im_decide_style(). - - -The order of the pre-edit styles is (from worst to best): -%GDK_IM_PREEDIT_NONE, %GDK_IM_PREEDIT_NOTHING, %GDK_IM_PREEDIT_AREA, -%GDK_IM_PREEDIT_POSITION, %GDK_IM_PREEDIT_CALLBACKS. -The order of the status styles is: -%GDK_IM_STATUS_NONE, %GDK_IM_STATUS_NOTHING, %GDK_IM_STATUS_AREA, -%GDK_IM_STATUS_CALLBACKS. - - -So, for example, to set the best allowed pre-edit style to %GDK_IM_PREEDIT_AREA -you would do this: - - - - gdk_im_set_best_style (GDK_IM_PREEDIT_AREA); - - - -Or to set the best allowed pre-edit style to %GDK_IM_PREEDIT_POSITION and the -best allowed status style to %GDK_IM_STATUS_NOTHING you can do this: - - - - gdk_im_set_best_style (GDK_IM_PREEDIT_POSITION | GDK_IM_STATUS_NOTHING); - - - - -@best_allowed_style: a bit-mask with the best pre-edit style and/or the best -status style to use. If 0 is used, then the current bit-mask of all allowed -styles is returned. -@Returns: a bit-mask of all the styles allowed. - - - - -Starts editing, using the given input context and #GdkWindow. -This should be called when the widget receives the input focus, typically in -the widget's focus_in_event method. - - -@ic: a #GdkIC. -@window: the #GdkWindow which will be receiving the key press events. - - - - -Stops editing using the input method. -This should be called when the widget loses the input focus, typically in -the widget's focus_out_event method. - - - - diff --git a/docs/reference/gdk/tmpl/keys.sgml b/docs/reference/gdk/tmpl/keys.sgml deleted file mode 100644 index e014c6e10f..0000000000 --- a/docs/reference/gdk/tmpl/keys.sgml +++ /dev/null @@ -1,93 +0,0 @@ - -Key Values - - -functions for manipulating keyboard codes. - - - -Key values are the codes which are sent whenever a key is pressed or released. -They appear in the keyval field of the -#GdkEventKey structure, which is passed to signal handlers for the -"key-press-event" and "key-release-event" signals. -The complete list of key values can be found in the <gdk/gdkkeysyms.h> -header file. - - -Key values can be converted into a string representation using -gdk_keyval_name(). The reverse function, converting a string to a key value, -is provided by gdk_keyval_from_name(). - - -The case of key values can be determined using gdk_keyval_is_upper() and -gdk_keyval_is_lower(). Key values can be converted to upper or lower case -using gdk_keyval_to_upper() and gdk_keyval_to_lower(). - - - - - - - - - -Converts a key value into a symbolic name. -The names are the same as those in the <gdk/gdkkeysyms.h> header file -but without the leading "GDK_". - - -@keyval: a key value. -@Returns: a string containing the name of the key, or NULL if @keyval is not -a valid key. The string should not be modified. - - - - -Converts a key name to a key value. - - -@keyval_name: a key name. -@Returns: the corresponding key value, or %GDK_VoidSymbol if the key name is -not a valid key. - - - - -Returns TRUE if the given key value is in upper case. - - -@keyval: a key value. -@Returns: TRUE if @keyval is in upper case, or if @keyval is not subject to -case conversion. - - - - -Returns TRUE if the given key value is in lower case. - - -@keyval: a key value. -@Returns: TRUE if @keyval is in lower case, or if @keyval is not subject to -case conversion. - - - - -Converts a key value to upper case, if applicable. - - -@keyval: a key value. -@Returns: the upper case form of @keyval, or @keyval itself if it is already -in upper case or it is not subject to case conversion. - - - - -Converts a key value to lower case, if applicable. - - -@keyval: a key value. -@Returns: the lower case form of @keyval, or @keyval itself if it is already -in lower case or it is not subject to case conversion. - - diff --git a/docs/reference/gdk/tmpl/pixmaps.sgml b/docs/reference/gdk/tmpl/pixmaps.sgml deleted file mode 100644 index ea7de9ebdc..0000000000 --- a/docs/reference/gdk/tmpl/pixmaps.sgml +++ /dev/null @@ -1,196 +0,0 @@ - -Bitmaps and Pixmaps - - -Offscreen drawables. - - - -Pixmaps are offscreen drawables. They can be drawn upon with the -standard drawing primitives, then copied to another drawable (such as -a #GdkWindow) with gdk_pixmap_draw(). The depth of a pixmap -is the number of bits per pixels. Bitmaps are simply pixmaps -with a depth of 1. (That is, they are monochrome bitmaps - each -pixel can be either on or off). - - - - - - - - -An opaque structure representing an offscreen drawable. -Pointers to structures of type #GdkPixmap, #GdkBitmap, -and #GdkWindow, can often be used interchangeably. -The type #GdkDrawable refers generically to any of -these types. - - -@user_data: - - - -Create a new pixmap with a given size and depth. - - -@window: a #GdkWindow, used to determine default values for the - new pixmap. Can be %NULL if @depth is specified, -@width: The width of the new pixmap in pixels. -@height: The height of the new pixmap in pixels. -@depth: The depth (number of bits per pixel) of the new pixmap. - If -1, and @window is not %NULL, the depth of the new - pixmap will be equal to that of @window. -@Returns: the #GdkBitmap - - - - -Creates a new bitmap from data in XBM format. - - -@window: a #GdkWindow, used to determine default values for the - new pixmap. Can be %NULL, in which case the root window is - used. -@data: a pointer to the XBM data. -@width: the width of the new pixmap in pixels. -@height: the height of the new pixmap in pixels. -@Returns: the #GdkBitmap - - - - -Create a two-color pixmap from data in XBM data. - - -@window: a #GdkWindow, used to determine default values for the - new pixmap. Can be %NULL, if the depth is given. -@data: a pointer to the data. -@width: the width of the new pixmap in pixels. -@height: the height of the new pixmap in pixels. -@depth: the depth (number of bits per pixel) of the new pixmap. -@fg: the foreground color. -@bg: the background color. -@Returns: the #GdkPixmap - - - - -Create a pixmap from a XPM file. - - -@window: a #GdkWindow, used to determine default values for the - new pixmap. -@mask: a pointer to a place to store a bitmap representing -the transparency mask of the XPM file. Can be %NULL, -in which case transparency will be ignored. -@transparent_color: the color to be used for the pixels -that are transparent in the input file. Can be %NULL, -in which case a default color will be used. -@filename: the filename of a file containing XPM data. -@Returns: the #GdkPixmap - - - - -Create a pixmap from a XPM file using a particular colormap. - - -@window: a #GdkWindow, used to determine default values for the - new pixmap. Can be %NULL if @colormap is given. -@colormap: the #GdkColormap that the new pixmap will be use. - If omitted, the colormap for @window will be used. -@mask: a pointer to a place to store a bitmap representing -the transparency mask of the XPM file. Can be %NULL, -in which case transparency will be ignored. -@transparent_color: the color to be used for the pixels -that are transparent in the input file. Can be %NULL, -in which case a default color will be used. -@filename: the filename of a file containing XPM data. -@Returns: the #GdkPixmap. - - - - -Create a pixmap from data in XPM format. - - -@window: a #GdkWindow, used to determine default values for the - new pixmap. -@mask: Pointer to a place to store a bitmap representing -the transparency mask of the XPM file. Can be %NULL, -in which case transparency will be ignored. -@transparent_color: This color will be used for the pixels -that are transparent in the input file. Can be %NULL -in which case a default color will be used. -@data: Pointer to a string containing the XPM data. -@Returns: the #GdkPixmap - - - - -Create a pixmap from data in XPM format using a particular -colormap. - - -@window: a #GdkWindow, used to determine default values for the - new pixmap. Can be %NULL if @colormap is given. -@colormap: the #GdkColormap that the new pixmap will be use. - If omitted, the colormap for @window will be used. -@mask: a pointer to a place to store a bitmap representing -the transparency mask of the XPM file. Can be %NULL, -in which case transparency will be ignored. -@transparent_color: the color to be used for the pixels -that are transparent in the input file. Can be %NULL, -in which case a default color will be used. -@data: Pointer to a string containing the XPM data. -@Returns: the #GdkPixmap. - - - - -Increase the reference count of a pixmap. - - -@pixmap: a #GdkPixmap -@Returns: @pixmap - - - - -Decrease the reference count of a pixmap. If the resulting -reference count is zero, destroy the pixmap. - - -@pixmap: a #GdkPixmap - - - - -An opaque structure representing an offscreen drawable of depth -1. Pointers to structures of type GdkPixmap, #GdkBitmap, and -#GdkWindow, can often be used interchangeably. The type #GdkDrawable -refers generically to any of these types. - - -@user_data: - - - -Increase the reference count of a bitmap. An alias -for gdk_pixmap_ref(). - - -@pixmap: -@Returns: - - - - -Decrease the reference count of a bitmap. An alias -for gdk_pixmap_unref(). - - -@pixmap: - - diff --git a/docs/reference/gdk/tmpl/properties.sgml b/docs/reference/gdk/tmpl/properties.sgml deleted file mode 100644 index d792214a1c..0000000000 --- a/docs/reference/gdk/tmpl/properties.sgml +++ /dev/null @@ -1,225 +0,0 @@ - -Properties and Atoms - - -functions to manipulate properties on windows. - - - -Each window under X can have any number of associated -properties attached to it. -Properties are arbitrary chunks of data identified by -atoms. (An atom -is a numeric index into a string table on the X server. They are used -to transfer strings efficiently between clients without -having to transfer the entire string.) A property -has an associated type, which is also identified -using an atom. - - -A property has an associated format, -an integer describing how many bits are in each unit -of data inside the property. It must be 8, 16, or 32. -When data is transfered between the server and client, -if they are of different endianesses it will be byteswapped -as necessary according to the format of the property. -Note that on the client side, properties of format 32 -will be stored with one unit per long, -even if a long integer has more than 32 bits on the platform. -(This decision was apparently made for Xlib to maintain -compatibility with programs that assumed longs were 32 -bits, at the expense of programs that knew better.) - - -The functions in this section are used to add, remove -and change properties on windows, to convert atoms -to and from strings and to manipulate some types of -data commonly stored in X window properties. - - - - - - - - - -A numeric type representing a string as an index into a table -of strings on the X server. - - - - - - - - - - - - -Convert a text string from the encoding as it is stored in -a property into an array of strings in the encoding of -the current local. (The elements of the array represent -the null-separated elements of the original text string.) - - -@encoding: an atom representing the encoding. The most common - values for this are STRING, - or COMPOUND_TEXT. This is - value used as the type for the property. -@format: the format of the property. -@text: the text data. -@length: the length of the property, in item.s -@list: location to store a terminated array of strings - in the encoding of the current locale. This - array should be freed using gdk_free_text_list(). -@Returns: the number of strings stored in @list, or 0, - if the conversion failed. - - - - -Free the array of strings created by -gdk_text_property_to_text_list(). - - -@list: the value stored in the @list parameter by - a call to gdk_text_property_to_text_list(). - - - - -Convert a string from the encoding of the current locale -into a form suitable for storing in a window property. - - -@str: a null-terminated string. -@encoding: location to store the encoding atom (to be used as the type for the property). -@format: location to store the format for the property. -@ctext: location to store newly allocated data for the property. -@length: location to store the length of @ctext in items. -@Returns: 0 upon sucess, non-zero upon failure. - - - - -Free the data returned from gdk_string_to_compound_text(). - - -@ctext: The pointer stored in @ctext from a call to gdk_string_to_compound_text(). - - - - -Find or create an atom corresponding to a given string. - - -@atom_name: a string. -@only_if_exists: if %TRUE, do not create a new atom, but - just return the atom if it already exists. -@Returns: the atom corresponding to @atom_name, or, if - @only_if_exists is false, and an atom does not - already exists for the string, %GDK_NONE. - - - - -Determine the string corresponding to an atom. - - -@atom: a #GdkAtom. -@Returns: a newly allocated string containing the string - corresponding to @atom. When you are done - with the return value, you should free it - using g_free(). - - - - -Retrieves a portion of the contents of a property. If the -property does not exist, then the function returns FALSE, -and %GDK_NONE will be stored in @actual_property_type. - -Note: the XGetWindowProperty() -function that gdk_property_get() -uses has a very confusing and complicated set of semantics. -Unfortunately, gdk_property_get() makes the situation -worse instead of better (the semantics should be considered -undefined), and also prints warnings to stderr in cases where it -should return a useful error to the program. You are advised to use -XGetWindowProperty() -directly until a replacement function for gdk_property_get() -is provided. - - -@window: a #GdkWindow. -@property: the property to retrieve. -@type: the desired property type, or 0, if any type of data - is acceptable. If this does not match the actual - type, then @actual_format and @actual_length will - be filled in, a warning will be printed to stderr - and no data will be returned. -@offset: the offset into the property at which to begin - retrieving data. (in 4 byte units!) -@length: the length of the data to delete. (in bytes, but - the actual retrieved length will be the next - integer multiple multiple of four greater than - this!) -@pdelete: if %TRUE, delete the property after retrieving the - data. -@actual_property_type: location to store the actual type of - the property. -@actual_format: location to store the actual format of the data. -@actual_length: location to store the length of the retrieved - data, in bytes. -@data: location to store a pointer to the data. The retrieved - data should be freed with g_free() when you are finished - using it. -@Returns: %TRUE if data was sucessfully received and stored - in @data, otherwise %FALSE. - - - - -Change the contents of a property on a window. - - -@window: a #GdkWindow. -@property: the property to change. -@type: the new type for the property. If @mode is - %GDK_PROP_MODE_REPLACE or %GDK_PROP_MODE_APPEND, then this - must match the existing type or an error will occur. -@format: the new format for the property. If @mode is - %GDK_PROP_MODE_REPLACE or %GDK_PROP_MODE_APPEND, then this - must match the existing format or an error will occur. -@mode: a value describing how the new data is to be combined - with the current data. -@data: the data - (a guchar * - gushort *, or - gulong *, depending on @format), cast to a - guchar *. -@nelements: the number of elements of size determined by the format, - contained in @data. - - - - -Describes how existing data is combined with new data when -using gdk_property_change(). - - -@GDK_PROP_MODE_REPLACE: the new data replaces the existing data. -@GDK_PROP_MODE_PREPEND: the new data is prepended to the existing data. -@GDK_PROP_MODE_APPEND: the new data is appended to the existing data. - - - -Delete a property from a window. - - -@window: a #GdkWindow. -@property: the property to delete. - - diff --git a/docs/reference/gdk/tmpl/regions.sgml b/docs/reference/gdk/tmpl/regions.sgml deleted file mode 100644 index 32087e1d66..0000000000 --- a/docs/reference/gdk/tmpl/regions.sgml +++ /dev/null @@ -1,259 +0,0 @@ - -Points, Rectangles and Regions - - -simple graphical data types. - - - -GDK provides the #GdkPoint, #GdkRectangle and #GdkRegion data types for -representing pixels and sets of pixels on the screen. - - -#GdkPoint is a simple structure containing an x and y coordinate of a point. - - -#GdkRectangle is a structure holding the position and size of a rectangle. -The intersection of two rectangles can be computed with -gdk_rectangle_intersect(). To find the union of two rectangles use -gdk_rectangle_union(). - - -#GdkRegion is an opaque data type holding a set of arbitrary pixels, and is -usually used for clipping graphical operations (see gdk_gc_set_clip_region()). - - - - - - - - - -Defines the x and y coordinates of a point. -Note that both are defined as #gint16 values, so the coordinates are limited -to between -32,768 and 32,767. - - -@x: the x coordinate of the point. -@y: the y coordinate of the point. - - - -Defines the position and size of a rectangle. - - -@x: the x coordinate of the left edge of the rectangle. -@y: the y coordinate of the top of the rectangle. -@width: the width of the rectangle. -@height: the height of the rectangle. - - - -Calculates the intersection of two rectangles. - - -@src1: a #GdkRectangle. -@src2: a #GdkRectangle. -@dest: the intersection of @src1 and @src2. -@Returns: TRUE if the rectangles intersect. - - - - -Calculates the union of two rectangles. -The union of rectangles @src1 and @src2 is the smallest rectangle which -includes both @src1 and @src2 within it. - - -@src1: a #GdkRectangle. -@src2: a #GdkRectangle. -@dest: the union of @src1 and @src2. - - - - -A GdkRegion represents a set of pixels on the screen. -The only user-visible field of the structure is the user_data member, which -can be used to attach arbitrary data to the #GdkRegion. - - -@user_data: arbitrary data attached to the #GdkRegion. - - - -Creates a new empty #GdkRegion. - - -@Returns: a new empty #GdkRegion. - - - - -Creates a new #GdkRegion using the polygon defined by a number of points. - - - -@points: an array of #GdkPoint structs. -@npoints: the number of elements in the @points array. -@fill_rule: specifies which pixels are included in the region when the polygon -overlaps itself. -@Returns: a new #GdkRegion based on the given polygon. - - - - -The method for determining which pixels are included in a region, when -creating a #GdkRegion from a polygon. -The fill rule is only relevant for polygons which overlap themselves. - - -@GDK_EVEN_ODD_RULE: areas which are overlapped an odd number of times are -included in the region, while areas overlapped an even number of times are not. -@GDK_WINDING_RULE: overlapping areas are always included. - - - -Destroys a #GdkRegion. - - -@region: a #GdkRegion. - - - - -Returns the intersection of two regions. - - -@source1: a #GdkRegion. -@source2: a #GdkRegion. -@Returns: the intersection of @source1 and @source2. - - - - -Returns the union of two regions. -This is all pixels in either of @source1 or @source2. - - -@source1: a #GdkRegion. -@source2: a #GdkRegion. -@Returns: the union of @source1 and @source2. - - - - -Subtracts one region from another. -The result is a region containing all the pixels which are in @source1, but -which are not in @source2. - - -@source1: a #GdkRegion. -@source2: a #GdkRegion to subtract from @source1. -@Returns: @source1 - @source2. - - - - -Returns the difference between the union and the intersection of two regions. -This is a region containing the pixels that are in one of the source regions, -but which are not in both. - - -@source1: a #GdkRegion. -@source2: a #GdkRegion. -@Returns: the difference between the union and the intersection of @source1 -and @source2. - - - - -Returns the union of a region and a rectangle. - - -@region: a #GdkRegion. -@rect: a #GdkRectangle. -@Returns: the union of @region and @rect. - - - - -Moves a region the specified distance. - - -@region: a #GdkRegion. -@dx: the distance to move the region horizontally. -@dy: the distance to move the region vertically. - - - - -Resizes a region by the specified amount. -Positive values shrink the region. Negative values expand it. - - -@region: a #GdkRegion. -@dx: the number of pixels to shrink the region horizontally. -@dy: the number of pixels to shrink the region vertically. - - - - -Returns TRUE if the #GdkRegion is empty. - - -@region: a #GdkRegion. -@Returns: TRUE if @region is empty. - - - - -Returns TRUE if the two regions are the same. - - -@region1: a #GdkRegion. -@region2: a #GdkRegion. -@Returns: TRUE if @region1 and @region2 are equal. - - - - -Returns TRUE if a point is in a region. - - -@region: a #GdkRegion. -@x: the x coordinate of a point. -@y: the y coordinate of a point. -@Returns: TRUE if the point is in @region. - - - - -Tests whether a rectangle is within a region. - - -@region: a #GdkRegion. -@rect: a #GdkRectangle. -@Returns: GDK_OVERLAP_RECTANGLE_IN, GDK_OVERLAP_RECTANGLE_OUT, or -GDK_OVERLAP_RECTANGLE_PART, depending on whether the rectangle is inside, -outside, or partly inside the #GdkRegion, respectively. - - - - -Specifies the possible values returned by gdk_region_rect_in(). - - -@GDK_OVERLAP_RECTANGLE_IN: if the rectangle is inside the #GdkRegion. -@GDK_OVERLAP_RECTANGLE_OUT: if the rectangle is outside the #GdkRegion. -@GDK_OVERLAP_RECTANGLE_PART: if the rectangle is partly inside the #GdkRegion. - - - -Returns the smallest rectangle which includes the entire #GdkRegion. - - -@region: a #GdkRegion. -@rectangle: returns the smallest rectangle which includes all of @region. - - diff --git a/docs/reference/gdk/tmpl/rgb.sgml b/docs/reference/gdk/tmpl/rgb.sgml deleted file mode 100644 index 9d7beab230..0000000000 --- a/docs/reference/gdk/tmpl/rgb.sgml +++ /dev/null @@ -1,458 +0,0 @@ - -GdkRGB - - -displays RGB images (as well as grayscale and colormapped) to -the native window. - - - - -GdkRgb converts RGB, grayscale, and colormapped images into the native -window pixel format and displays them. It takes care of colormaps, -visuals, dithering, and management of the temporary buffers. - - - - -You must call gdk_rgb_init() before using any GdkRgb functionality. If -you fail to do so, expect coredumps. All Gtk+ widgets that use GdkRgb -(including #GtkPreview) call gdk_rgb_init() in their class_init method. -Thus, if you use GdkRgb only indirectly, you don't need to worry -about it. - - - -GdkRgb tries to use the system default visual and colormap, but -doesn't always succeed. Thus, you have to be prepared to install the -visual and colormap generated by GdkRgb. The following code sequence -(before any widgets are created) should work in most applications: - - - - - gdk_rgb_init (); - - gtk_widget_set_default_colormap (gdk_rgb_get_cmap ()); - gtk_widget_set_default_visual (gdk_rgb_get_visual ()); - - - - -You can also push the colormap and visual, but in general it doesn't -work unless the push wraps the window creation call. If you wrap the -push around a widget which is embedded in a window without the GdkRgb -colormap and visual, it probably won't work, and is likely to cause -colormap flashing, as well. - - - -On 8-bit systems, the colormaps used by Imlib and GdkRgb may -conflict. There is no good general solution to this other than phasing -out the dependence on Imlib. - - - -You can set the threshold for installing colormaps with -gdk_rgb_set_min_colors (). The default is 5x5x5 (125). If a colorcube -of this size or larger can be allocated in the default colormap, then -that's done. Otherwise, GdkRgb creates its own private colormap. -Setting it to 0 means that it always tries to use the default -colormap, and setting it to 216 means that it always creates a private -one if it cannot allocate the 6x6x6 colormap in the default. If you -always want a private colormap (to avoid consuming too many colormap -entries for other apps, say), you can use gdk_rgb_set_install(TRUE). -Setting the value greater than 216 exercises a bug in older versions -of GdkRgb. Note, however, that setting it to 0 doesn't let you get -away with ignoring the colormap and visual - a colormap is always -created in grayscale and direct color modes, and the visual is changed -in cases where a "better" visual than the default is available. - - - -A simple example program using GdkRGB. - -#include <gtk/gtk.h> - -#define IMAGE_WIDTH 256 -#define IMAGE_HEIGHT 256 - -guchar rgbbuf[IMAGE_WIDTH * IMAGE_HEIGHT * 3]; - -gboolean on_darea_expose (GtkWidget *widget, - GdkEventExpose *event, - gpointer user_data); - -int -main (int argc, char *argv[]) -{ - GtkWidget *window, *darea; - gint x, y; - guchar *pos; - - gtk_init (&argc, &argv); - gdk_rgb_init (); - window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - darea = gtk_drawing_area_new (); - gtk_drawing_area_size (GTK_DRAWING_AREA (darea), IMAGE_WIDTH, IMAGE_HEIGHT); - gtk_container_add (GTK_CONTAINER (window), darea); - gtk_signal_connect (GTK_OBJECT (darea), "expose-event", - GTK_SIGNAL_FUNC (on_darea_expose), NULL); - gtk_widget_show_all (window); - - /* Set up the RGB buffer. */ - pos = rgbbuf; - for (y = 0; y < IMAGE_HEIGHT; y++) - { - for (x = 0; x < IMAGE_WIDTH; x++) - { - *pos++ = x - x % 32; /* Red. */ - *pos++ = (x / 32) * 4 + y - y % 32; /* Green. */ - *pos++ = y - y % 32; /* Blue. */ - } - } - - gtk_main (); - return 0; -} - - -gboolean -on_darea_expose (GtkWidget *widget, - GdkEventExpose *event, - gpointer user_data) -{ - gdk_draw_rgb_image (widget->window, widget->style->fg_gc[GTK_STATE_NORMAL], - 0, 0, IMAGE_WIDTH, IMAGE_HEIGHT, - GDK_RGB_DITHER_MAX, rgbbuf, IMAGE_WIDTH * 3); -} - - - - - - - - -#GdkColor -The underlying Gdk mechanism for allocating -colors. - - - - - - - - -Initializes GdkRgb statically. It may be called more than once with no -ill effects. It must, however, be called before any other GdkRgb -operations are performed. - - - -The GdkRgb "context" is allocated statically. Thus, GdkRgb may be used -to drive only one visual in any given application. GdkRgb -automatically selects a best visual and sets its own colormap, if -necessary. gdk_rgb_get_visual() and gdk_rgb_get_cmap () retrieve -the chosen visual and colormap, respectively. - - - - - - -Draws an RGB image in the drawable. This is the core GdkRgb -function, and likely the only one you will need to use other than the -initialization stuff. - - - -The @rowstride parameter allows for lines to be aligned more flexibly. -For example, lines may be allocated to begin on 32-bit boundaries, -even if the width of the rectangle is odd. Rowstride is also useful -when drawing a subrectangle of a larger image in memory. Finally, to -replicate the same line a number of times, the trick of setting -@rowstride to 0 is allowed. - - - -In general, for 0 <= i < @width and 0 <= j < height, -the pixel (x + i, y + j) is colored with red value @rgb_buf[@j * -@rowstride + @i * 3], green value @rgb_buf[@j * @rowstride + @i * 3 + -1], and blue value @rgb_buf[@j * @rowstride + @i * 3 + 2]. - - -@drawable: The #GdkDrawable to draw in (usually a #GdkWindow). -@gc: The graphics context (all Gdk drawing operations require one; its -contents are ignored). -@x: The x coordinate of the top-left corner in the drawable. -@y: The y coordinate of the top-left corner in the drawable. -@width: The width of the rectangle to be drawn. -@height: The height of the rectangle to be drawn. -@dith: A #GdkRgbDither value, selecting the desired dither mode. -@rgb_buf: The pixel data, represented as packed 24-bit data. -@rowstride: The number of bytes from the start of one row in @rgb_buf to the -start of the next. - - - - -Draws an RGB image in the drawable, with an adjustment for dither alignment. - - - -This function is useful when drawing dithered images into a window -that may be scrolled. Pixel (x, y) will be drawn dithered as if its -actual location is (x + @xdith, y + @ydith). Thus, if you draw an -image into a window using zero dither alignment, then scroll up one -pixel, subsequent draws to the window should have @ydith = 1. - - - -Setting the dither alignment correctly allows updating of small parts -of the screen while avoiding visible "seams" between the different -dither textures. - - -@drawable: The #GdkDrawable to draw in (usually a #GdkWindow). -@gc: The graphics context. -@x: The x coordinate of the top-left corner in the drawable. -@y: The y coordinate of the top-left corner in the drawable. -@width: The width of the rectangle to be drawn. -@height: The height of the rectangle to be drawn. -@dith: A #GdkRgbDither value, selecting the desired dither mode. -@rgb_buf: The pixel data, represented as packed 24-bit data. -@rowstride: The number of bytes from the start of one row in @rgb_buf to the -start of the next. -@xdith: An x offset for dither alignment. -@ydith: A y offset for dither alignment. - - - - -Draws an indexed image in the drawable, using a #GdkRgbCmap to assign -actual colors to the color indices. - - -@drawable: The #GdkDrawable to draw in (usually a #GdkWindow). -@gc: The graphics context. -@x: The x coordinate of the top-left corner in the drawable. -@y: The y coordinate of the top-left corner in the drawable. -@width: The width of the rectangle to be drawn. -@height: The height of the rectangle to be drawn. -@dith: A #GdkRgbDither value, selecting the desired dither mode. -@buf: The pixel data, represented as 8-bit color indices. -@rowstride: The number of bytes from the start of one row in @buf to the -start of the next. -@cmap: The #GdkRgbCmap used to assign colors to the color indices. - - - - -Draws a grayscale image in the drawable. - - - -@drawable: The #GdkDrawable to draw in (usually a #GdkWindow). -@gc: The graphics context. -@x: The x coordinate of the top-left corner in the drawable. -@y: The y coordinate of the top-left corner in the drawable. -@width: The width of the rectangle to be drawn. -@height: The height of the rectangle to be drawn. -@dith: A #GdkRgbDither value, selecting the desired dither mode. -@buf: The pixel data, represented as 8-bit gray values. -@rowstride: The number of bytes from the start of one row in @buf to the -start of the next. - - - - -Draws a padded RGB image in the drawable. The image is stored as one -pixel per 32-bit word. It is laid out as a red byte, a green byte, a -blue byte, and a padding byte. - - - -It's unlikely that this function will give significant performance -gains in practice. In my experience, the performance gain from having -pixels aligned to 32-bit boundaries is cancelled out by the increased -memory bandwidth. - - -@drawable: The #GdkDrawable to draw in (usually a #GdkWindow). -@gc: The graphics context. -@x: The x coordinate of the top-left corner in the drawable. -@y: The y coordinate of the top-left corner in the drawable. -@width: The width of the rectangle to be drawn. -@height: The height of the rectangle to be drawn. -@dith: A #GdkRgbDither value, selecting the desired dither mode. -@buf: The pixel data, represented as padded 32-bit data. -@rowstride: The number of bytes from the start of one row in @buf to the -start of the next. - - - - - -Selects whether or not GdkRgb applies dithering -to the image on display. There are three values: - - - - - - -%GDK_RGB_DITHER_NONE: Never use dithering. - - - - - -%GDK_RGB_DITHER_NORMAL: Use dithering in 8 bits per pixel (and below) -only. - - - - - -%GDK_RGB_DITHER_MAX: Use dithering in 16 bits per pixel and below. - - - - - - -Since GdkRgb currently only handles images with 8 bits per component, -dithering on 24 bit per pixel displays is a moot point. - - -@GDK_RGB_DITHER_NONE: -@GDK_RGB_DITHER_NORMAL: -@GDK_RGB_DITHER_MAX: - - - -Creates a new #GdkRgbCmap structure. The cmap maps color indexes to -RGB colors. If @n_colors is less than 256, then images containing -color values greater than or equal to @n_colors will produce undefined -results, including possibly segfaults. - - -@colors: The colors, represented as 0xRRGGBB integer values. -@n_colors: The number of colors in the cmap. -@Returns: The newly created #GdkRgbCmap - - - - -Frees the memory associated with a #GdkRgbCmap created by gdk_rgb_cmap_new(). - - -@cmap: The #GdkRgbCmap to free. - - - - -A private data structure which maps color indices to actual RGB -colors. This is used only for gdk_draw_indexed_image(). - - -@colors: -@lut: - - - -Sets the foreground color in @gc to the specified color (or the -closest approximation, in the case of limited visuals). - - -@gc: The #GdkGC to modify. -@rgb: The color, represented as a 0xRRGGBB integer value. - - - - -Sets the background color in @gc to the specified color (or the -closest approximation, in the case of limited visuals). - - -@gc: The #GdkGC to modify. -@rgb: The color, represented as a 0xRRGGBB integer value. - - - - -Finds the X pixel closest in color to the @rgb color specified. This -value may be used to set the pixel field of -a #GdkColor struct. - - -@rgb: The color, represented as a 0xRRGGBB integer value. -@Returns: The X pixel value. - - - - -If @install is TRUE, directs GdkRgb to always install a new "private" -colormap rather than trying to find a best fit with the colors already -allocated. Ordinarily, GdkRgb will install a colormap only if a -sufficient cube cannot be allocated. - - - -A private colormap has more colors, leading to better quality display, -but also leads to the dreaded "colormap flashing" effect. - - -@install: TRUE to set install mode. - - - - -Sets the minimum number of colors for the color cube. Generally, -GdkRgb tries to allocate the largest color cube it can. If it can't -allocate a color cube at least as large as @min_colors, it installs a -private colormap. - - -@min_colors: The minimum number of colors accepted. - - - - -Gets the visual chosen by GdkRgb. This visual and the corresponding -colormap should be used when creating windows that will be drawn in by GdkRgb. - - -@Returns: The #GdkVisual chosen by GdkRgb. - - - - -Gets the colormap set by GdkRgb. This colormap and the corresponding -visual should be used when creating windows that will be drawn in by GdkRgb. - - -@Returns: The #GdkColormap set by GdkRgb. - - - - -Determine whether the visual is ditherable. This function may be -useful for presenting a user interface choice to the user about which -dither mode is desired; if the display is not ditherable, it may make -sense to gray out or hide the corresponding UI widget. - - -@Returns: TRUE if the visual is ditherable. - - - - -Sets the "verbose" flag. This is generally only useful for debugging. - - -@verbose: TRUE if verbose messages are desired. - - diff --git a/docs/reference/gdk/tmpl/selections.sgml b/docs/reference/gdk/tmpl/selections.sgml deleted file mode 100644 index fbcde204a6..0000000000 --- a/docs/reference/gdk/tmpl/selections.sgml +++ /dev/null @@ -1,185 +0,0 @@ - -Selections - - -functions for transfering data via the X selection mechanism. - - - -The X selection mechanism provides a way to transfer -arbitrary chunks of data between programs. -A selection is a essentially -a named clipboard, identified by a string interned -as a #GdkAtom. By claiming ownership of a selection, -an application indicates that it will be responsible -for supplying its contents. The most common -selections are PRIMARY and -CLIPBOARD. - - -The contents of a selection can be represented in -a number of formats, called targets. -Each target is identified by an atom. A list of -all possible targets supported by the selection owner -can be retrieved by requesting the special target -TARGETS. When a selection is -retrieved, the data is accompanied by a type -(an atom), and a format (an integer, representing -the number of bits per item). -See Properties and Atoms -for more information. - - -The functions in this section only contain the lowlevel -parts of the selection protocol. A considerably more -complicated implementation is needed on top of this. -GTK+ contains such an implementation in the functions -in gtkselection.h and programmers -should use those functions instead of the ones presented -here. If you plan to implement selection handling -directly on top of the functions here, you should refer -to the X Inter-client Communication Conventions Manual -(ICCCM). - - - - - - - - - -The #GdkSelection enumeration contains predefined -atom values for several common selections. - - -@GDK_SELECTION_PRIMARY: The primary X selection. Programs -typically claim this selection when the user -selects text and paste its contents in response -to a middle button press. -@GDK_SELECTION_SECONDARY: An additional X selection. - - - -The #GdkSelectionType enumeration contains predefined -atom values used to represent the types of data transferred -in response to a request for a target. See the -ICCCM for details about what data should be transferred -for each of these types. Other atoms can be used, -and the recommended practice for GTK+ is to to use mime -types for this purpose. However, supporting these types -may be useful for compatibility with older programs. - - -@GDK_SELECTION_TYPE_ATOM: An atom. (format 32) -@GDK_SELECTION_TYPE_BITMAP: A bitmap ID. (format 32) -@GDK_SELECTION_TYPE_COLORMAP: A colormap ID. (format 32) -@GDK_SELECTION_TYPE_DRAWABLE: A drawable ID. (format 32) -@GDK_SELECTION_TYPE_INTEGER: An integer. (format 32) -@GDK_SELECTION_TYPE_PIXMAP: A pixmap ID. (format 32) -@GDK_SELECTION_TYPE_WINDOW: A window ID. (format 32) -@GDK_SELECTION_TYPE_STRING: A string encoded - in ISO Latin-1. (With the additional of TAB - and NEWLINE.) (format 8) - - - -The #GdkTarget enumeration contains predefined atom values which are -used to describe possible targets for a selection. Other atoms can be -used, and the recommended practice for GTK+ is to to use mime types -for this purpose. However, supporting these types may be useful for -compatibility with older programs. - - -@GDK_TARGET_BITMAP: A bitmap ID. -@GDK_TARGET_COLORMAP: A colormap ID. -@GDK_TARGET_DRAWABLE: A drawable ID. -@GDK_TARGET_PIXMAP: A pixmap ID. -@GDK_TARGET_STRING: A string encoded in ISO Latin-1. - (With the additional of TAB - and NEWLINE.) - - - -Set the owner of the given selection. - - -@owner: a #GdkWindow or NULL to indicate that the - the owner for the given should be unset. -@selection: an atom identifying a selection. -@time: timestamp to use when setting the selection. - If this is older than the timestamp given last - time the owner was set for the given selection, the - request will be ignored. -@send_event: if %TRUE, and the new owner is different - from the current owner, the current owner - will be sent a SelectionClear event. -@Returns: %TRUE if the selection owner was succesfully - changed to @owner, otherwise %FALSE. - - - - -Determine the owner of the given selection. - - -@selection: an atom indentifying a selection. -@Returns: if there is a selection owner for this window, - and it is a window known to the current process, - the #GdkWindow that owns the selection, otherwise - NULL. Note that the return value may be owned - by a different process if a foreign window - was previously created for that window, but - a new foreign window will never be created by - this call. - - - - -Retrieve the contents of a selection in a given -form. - - -@requestor: a #GdkWindow. -@selection: an atom identifying the selection to get the - contents of. -@target: the form in which to retrieve the selection. -@time: the timestamp to use when retrieving the - selection. The selection owner may refuse the - request if it did not own the selection at - the time indicated by the timestamp. - - - - -Retrieve selection data that was stored by the selection -data in response to a call to gdk_selection_convert() - - -@requestor: the window on which the data is stored -@data: location to store a pointer to the retrieved data. - If the retrieval failed, NULL we be stored here, otherwise, it - will be non-NULL and the returned data should be freed with g_free() - when you are finished using it. The length of the - allocated memory is one more than the the length - of the returned data, and the final byte will always - be zero, to ensure null-termination of strings. -@prop_type: location to store the type of the property. -@prop_format: location to store the format of the property. -@Returns: the length of the retrieved data. - - - - -Send a response to SelectionRequest event. - - -@requestor: window to which to deliver response. -@selection: selection that was requested. -@target: target that was selected. -@property: property in which the selection owner stored the - data, or %GDK_NONE to indicate that the request - was rejected. -@time: timestamp. - - diff --git a/docs/reference/gdk/tmpl/threads.sgml b/docs/reference/gdk/tmpl/threads.sgml deleted file mode 100644 index 3b14e8ce3f..0000000000 --- a/docs/reference/gdk/tmpl/threads.sgml +++ /dev/null @@ -1,50 +0,0 @@ - -Threads - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/reference/gdk/tmpl/visuals.sgml b/docs/reference/gdk/tmpl/visuals.sgml deleted file mode 100644 index bff192930d..0000000000 --- a/docs/reference/gdk/tmpl/visuals.sgml +++ /dev/null @@ -1,391 +0,0 @@ - -Visuals - - -manipulation of visuals. - - - -The way that the data stored on the screen is stored -in memory can vary considerably between different X -servers; some X servers even support multiple formats -used simultaneously. An X visual -represents a particular format for screen data. -It includes information about the number of bits -used for each color, the way the bits are translated -into an RGB value for display, and the way the bits -are stored in memory. - - -There are several standard visuals. The visual returned -by gdk_visual_get_system() is the system's default -visual. gdk_rgb_get_visual() return the visual most -suited to displaying full-color image data. If you -use the calls in GdkRGB, you should create your windows -using this visual (and the colormap returned by -gdk_rgb_get_colormap()). - - -A number of functions are provided for determining -the "best" available visual. For the purposes of -making this determination, higher bit depths are -considered better, and for visuals of the same -bit depth, %GDK_VISUAL_PSEUDO_COLOR is preferred at -8bpp, otherwise, the visual types are ranked in the -order of (highest to lowest) %GDK_VISUAL_DIRECT_COLOR, -%GDK_VISUAL_TRUE_COLOR, %GDK_VISUAL_PSEUDO_COLOR, -%GDK_VISUAL_STATIC_COLOR, %GDK_VISUAL_GRAYSCALE, -then %GDK_VISUAL_STATIC_GRAY. - - - - - - - - - -The GdkVisual structure contains information about -a particular visual. It contains the following -public fields. - - - - - - -type -The type of this visual. - - - -depth -The number of bits per pixel. - - - -byte_order -The byte-order for this visual. - - - -colormap_size -The number of entries in the colormap, for -visuals of type GDK_VISUAL_PSEUDO_COLOR or -GDK_VISUAL_GRAY_SCALE. For other visual types, it -is the number of possible levels per color component. -If the visual has different numbers of levels for -different components, the value of this field is -undefined. - - - -bits_per_rgb - -The number of significant bits per red, green, or blue -when specifying colors for this visual. (For instance, -for gdk_colormap_alloc_color()) - - - - -red_mask - -A mask giving the bits in a pixel value that -correspond to the red field. Significant only for -%GDK_VISUAL_PSEUDOCOLOR and %GDK_VISUAL_DIRECTCOLOR. - - - - -red_shift, red_prec - -The red_shift and -red_prec give an alternate presentation -of the information in red_mask. -red_mask is a contiguous sequence -of red_prec starting at bit -number red_shift. For example, - shows constructing a pixel value -out of three 16 bit color values. - - - - - -green_mask - -A mask giving the bits in a pixel value that -correspond to the green field. - - - - -green_shift, green_prec - -The green_shift and -green_prec give an alternate presentation -of the information in green_mask. - - - - -blue_mask - -A mask giving the bits in a pixel value that -correspond to the blue field. - - - - -blue_shift, blue_prec - -The blue_shift and -blue_prec give an alternate presentation -of the information in blue_mask. - - - - - - -
-Constructing a pixel value from components - -guint -pixel_from_rgb (GdkVisual *visual, - guchar r, guchar b, guchar g) -{ - return ((r >> (16 - visual->red_prec)) << visual->red_shift) | - ((g >> (16 - visual->green_prec)) << visual->green_shift) | - ((r >> (16 - visual->blue_prec)) << visual->blue_shift); -} - -
- -@type: -@depth: -@byte_order: -@colormap_size: -@bits_per_rgb: -@red_mask: -@red_shift: -@red_prec: -@green_mask: -@green_shift: -@green_prec: -@blue_mask: -@blue_shift: -@blue_prec: - - - -A set of values that describe the manner in which the -pixel values for a visual are converted into RGB -values for display. - - - - - - -GDK_VISUAL_STATIC_GRAY -Each pixel value indexes a grayscale value directly. - - - -GDK_VISUAL_GRAYSCALE -Each pixel is an index into a color map that maps -pixel values into grayscale values. The color map can -be changed by an application. - - - -GDK_VISUAL_STATIC_COLOR -Each pixel value is an index into a predefined, -unmodifiable color map that maps pixel values into -rgb values. - - - -GDK_VISUAL_PSEUDO_COLOR -Each pixel is an index into a color map that maps -pixel values into rgb values. The color map can -be changed by an application. - - - -GDK_TRUE_COLOR -Each pixel value directly contains red, green, -and blue components. The red_mask, -green_mask, and -blue_mask fields of the #GdkVisual -structure describe how the components are assembled into -a pixel value. -. - - - -GDK_DIRECT_COLOR -Each pixel value contains red, green, and blue -components as for %GDK_TRUE_COLOR, but the components -are mapped via a color table into the final output -table instead of being converted directly.. - - - - - -@GDK_VISUAL_STATIC_GRAY: -@GDK_VISUAL_GRAYSCALE: -@GDK_VISUAL_STATIC_COLOR: -@GDK_VISUAL_PSEUDO_COLOR: -@GDK_VISUAL_TRUE_COLOR: -@GDK_VISUAL_DIRECT_COLOR: - - - -A set of values describing the possible byte-orders -for storing pixel values in memory. - - - - - - -GDK_LSB_FIRST -The values are stored with the least-significant byte -first. For instance, the 32-bit value 0xffeecc would be stored -in memory as 0xcc, 0xee, 0xff, 0x00. - - - -GDK_MSB_FIRST -The values are stored with the least-significant byte -first. For instance, the 32-bit value 0xffeecc would be stored -in memory as 0xff, 0xee, 0xcc, 0x00. - - - - - -@GDK_LSB_FIRST: -@GDK_MSB_FIRST: - - - -Lists the available color depths. The returned values -are pointers to static storage and should not be -modified or freed. - - -@depths: a location to store a pointer to an array - holding the available color depths. -@count: a location to store the number of values in @depths. - - - - -Lists the available visual types. The returned values -are pointers to static storage and should not be -modified or freed. - - -@visual_types: a location to store a pointer to an - array holding the available visual types. -@count: a location to store the number of values in @visual types. - - - - -Lists the available visuals. - - -@Returns: A #GList of the available visuals. The list -should be freed this list with g_list_free(). - - - - -Returns the best available color depth. - - -@Returns: the best available color depth. - - - - -Returns the best available visual type. - - -@Returns: the best available visual type. - - - - -Returns the system's default visual. - - -@Returns: the system's default visual. - - - - -Returns the best available visual. - - -@Returns: the best available visual. - - - - -Returns the best available visual with a certain depth. - - -@depth: the desired color depth -@Returns: the best available visual with @depth bits per pixel -or %NULL if no visuals with that type are available. - - - - -Returns the best available visual of a certain visual type. - - -@visual_type: the desired visual type. -@Returns: the visual of the given type with the highest depth -or %NULL if no visuals of that type are available. - - - - -Returns the best available visual - - -@depth: the desired visual type. -@visual_type: the desired depth. -@Returns: the best available visual with the given depth -and visual type, or %NULL if no matching visuals are -available. - - - - -In theory, increases the reference count of a visual. However, -the set of visuals is determined statically when GTK+ is -initialized, so this operation does nothing. - - -@visual: a #GdkVisual. -@Returns: @visual. - - - - -In theory, decreases the reference count of a visual. Like -gdk_visual_ref(), this operation does nothing. - - -@visual: a #GdkVisual. - - diff --git a/docs/reference/gdk/tmpl/windows.sgml b/docs/reference/gdk/tmpl/windows.sgml deleted file mode 100644 index 5a4ddfdf67..0000000000 --- a/docs/reference/gdk/tmpl/windows.sgml +++ /dev/null @@ -1,783 +0,0 @@ - -Windows - - - - - - - - - - - - - - - - - - - -@title: -@event_mask: -@x: -@y: -@width: -@height: -@wclass: -@visual: -@colormap: -@window_type: -@cursor: -@wmclass_name: -@wmclass_class: -@override_redirect: - - - - - - -@user_data: - - - - - - -@GDK_WINDOW_ROOT: -@GDK_WINDOW_TOPLEVEL: -@GDK_WINDOW_CHILD: -@GDK_WINDOW_DIALOG: -@GDK_WINDOW_TEMP: -@GDK_WINDOW_PIXMAP: -@GDK_WINDOW_FOREIGN: - - - - - - -@GDK_INPUT_OUTPUT: -@GDK_INPUT_ONLY: - - - - - - -@GDK_WA_TITLE: -@GDK_WA_X: -@GDK_WA_Y: -@GDK_WA_CURSOR: -@GDK_WA_COLORMAP: -@GDK_WA_VISUAL: -@GDK_WA_WMCLASS: -@GDK_WA_NOREDIR: - - - - - - -@GDK_HINT_POS: -@GDK_HINT_MIN_SIZE: -@GDK_HINT_MAX_SIZE: -@GDK_HINT_BASE_SIZE: -@GDK_HINT_ASPECT: -@GDK_HINT_RESIZE_INC: - - - - - - -@min_width: -@min_height: -@max_width: -@max_height: -@base_width: -@base_height: -@width_inc: -@height_inc: -@min_aspect: -@max_aspect: - - - - - - -@parent: -@attributes: -@attributes_mask: -@Returns: - - - - - - - -@window: - - - - - - - -@window: -@Returns: - - - - - - - -@window: - - - - - - - -@win_x: -@win_y: -@Returns: - - - - - - - -@window: - - - - - - - -@window: - - - - - - - -@window: -@Returns: - - - - - - - -@window: -@Returns: - - - - - - - -@window: - - - - - - - -@window: -@x: -@y: - - - - - - - -@window: -@width: -@height: - - - - - - - -@window: -@x: -@y: -@width: -@height: - - - - - - - -@window: -@new_parent: -@x: -@y: - - - - - - - -@window: - - - - - - - -@window: -@x: -@y: -@width: -@height: - - - - - - - -@window: -@x: -@y: -@width: -@height: - - - - - - - -@window: -@gc: -@x: -@y: -@source_window: -@source_x: -@source_y: -@width: -@height: - - - - - - - -@window: - - - - - - - -@window: - - - - - - - -@window: - - - - - - - -@window: -@user_data: - - - - - - - -@window: -@override_redirect: - - - - - - - -@window: -@function: -@data: - - - - - - - -@window: -@function: -@data: - - - - - - - -@xevent: -@event: -@data: -@Returns: - - - - - - - -@GDK_FILTER_CONTINUE: -@GDK_FILTER_TRANSLATE: -@GDK_FILTER_REMOVE: - - - - - - - - - - - - -@window: -@shape_mask: -@offset_x: -@offset_y: - - - - - - - -@window: - - - - - - - -@window: - - - - - - - -@window: -@use_static: -@Returns: - - - - - - - -@window: -@x: -@y: -@min_width: -@min_height: -@max_width: -@max_height: -@flags: - - - - - - - -@window: -@title: - - - - - - - -@window: -@color: - - - - - - - -@window: -@pixmap: -@parent_relative: - - - - - - - - - - - - - - -@window: -@cursor: - - - - - - - -@window: -@colormap: - - - - - - - -@window: -@data: - - - - - - - -@window: -@x: -@y: -@width: -@height: -@depth: - - - - - - - -@window: -@geometry: -@flags: - - - - - - - -@window: -@x: -@y: - - - - - - - -@window: -@x: -@y: - - - - - - - -@window: -@width: -@height: - - - - - - - -@window: -@Returns: - - - - - - - -@window: -@Returns: - - - - - - - -@window: -@Returns: - - - - - - - -@window: -@x: -@y: -@Returns: - - - - - - - -@window: -@x: -@y: -@Returns: - - - - - - - -@window: -@x: -@y: -@mask: -@Returns: - - - - - - - -@GDK_SHIFT_MASK: -@GDK_LOCK_MASK: -@GDK_CONTROL_MASK: -@GDK_MOD1_MASK: -@GDK_MOD2_MASK: -@GDK_MOD3_MASK: -@GDK_MOD4_MASK: -@GDK_MOD5_MASK: -@GDK_BUTTON1_MASK: -@GDK_BUTTON2_MASK: -@GDK_BUTTON3_MASK: -@GDK_BUTTON4_MASK: -@GDK_BUTTON5_MASK: -@GDK_RELEASE_MASK: -@GDK_MODIFIER_MASK: - - - - - - -@window: -@Returns: - - - - - - - -@window: -@Returns: - - - - - - - -@window: -@Returns: - - - - - - - -@window: -@Returns: - - - - - - - -@window: -@event_mask: - - - - - - - -@window: -@icon_window: -@pixmap: -@mask: - - - - - - - -@window: -@name: - - - - - - - -@window: -@leader: - - - - - - - -@window: -@role: - - - - - - - -@window: -@leader: - - - - - - - -@window: -@decorations: - - - - - - - -@GDK_DECOR_ALL: -@GDK_DECOR_BORDER: -@GDK_DECOR_RESIZEH: -@GDK_DECOR_TITLE: -@GDK_DECOR_MENU: -@GDK_DECOR_MINIMIZE: -@GDK_DECOR_MAXIMIZE: - - - - - - -@window: -@functions: - - - - - - - -@GDK_FUNC_ALL: -@GDK_FUNC_RESIZE: -@GDK_FUNC_MOVE: -@GDK_FUNC_MINIMIZE: -@GDK_FUNC_MAXIMIZE: -@GDK_FUNC_CLOSE: - - - - - - -@Returns: - - - - - - - -@user_data: - - - - - - -@drawable: -@key: -@data: -@destroy_func: - - diff --git a/docs/reference/gtk/.cvsignore b/docs/reference/gtk/.cvsignore deleted file mode 100644 index 53762fb5ac..0000000000 --- a/docs/reference/gtk/.cvsignore +++ /dev/null @@ -1,6 +0,0 @@ -Makefile -Makefile.in -sgml -html -gtk-decl-list.txt -gtk-unused.txt diff --git a/docs/reference/gtk/Makefile.am b/docs/reference/gtk/Makefile.am deleted file mode 100644 index a836723486..0000000000 --- a/docs/reference/gtk/Makefile.am +++ /dev/null @@ -1,59 +0,0 @@ -## Process this file with automake to produce Makefile.in - -# The name of the module. -DOC_MODULE=gtk - -# The top-level SGML file. -DOC_MAIN_SGML_FILE=gtk-docs.sgml - -# We could alternatively use this for using installed headers. -INCLUDE_DIR=`gtk-config --prefix`/include/gtk - - -TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) - -CFLAGS=`gtk-config --cflags` -LDFLAGS=`gtk-config --libs` - -scan: - CFLAGS=$(CFLAGS) LDFLAGS=$(LDFLAGS) gtkdoc-scanobj --module=$(DOC_MODULE) - gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers='gtkintl.h' $(INCLUDE_DIR)/*.h - -templates: scan - gtkdoc-mktmpl --module=$(DOC_MODULE) - -sgml: - gtkdoc-mkdb --module=$(DOC_MODULE) - -html: - if ! test -d html ; then mkdir html ; fi - -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) - -clean-local: - rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt - -maintainer-clean-local: clean - rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt - -install-data-local: - install -d -m 0755 $(TARGET_DIR) - install -m 0644 html/*.html $(TARGET_DIR) - install -m 0644 html/index.sgml $(TARGET_DIR) - gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR) - -EXTRA_DIST = \ - $(DOC_MAIN_SGML_FILE) \ - $(DOC_MODULE)-sections.txt \ - gtk-overrides.txt \ - gtk-decl.txt \ - gtk.hierarchy \ - gtk.signals \ - gtk.args \ - gtk.types \ - objects_grouped.sgml - -dist-hook: - mkdir $(distdir)/tmpl - cp -p tmpl/*.sgml $(distdir)/tmpl - -.PHONY : html sgml templates scan diff --git a/docs/reference/gtk/gtk-decl.txt b/docs/reference/gtk/gtk-decl.txt deleted file mode 100644 index 06169bfa53..0000000000 --- a/docs/reference/gtk/gtk-decl.txt +++ /dev/null @@ -1,13819 +0,0 @@ - -GtkAccelGroup - - -GtkAccelEntry - - -GtkAccelFlags -typedef enum -{ - /* should the accelerator appear in - * the widget's display? - */ - GTK_ACCEL_VISIBLE = 1 << 0, - /* should the signal associated with - * this accelerator be also visible? - */ - GTK_ACCEL_SIGNAL_VISIBLE = 1 << 1, - /* may the accelerator be removed - * again? - */ - GTK_ACCEL_LOCKED = 1 << 2, - GTK_ACCEL_MASK = 0x07 -} GtkAccelFlags; - - -GtkAccelGroup -struct GtkAccelGroup -{ - guint ref_count; - guint lock_count; - GdkModifierType modifier_mask; - GSList *attach_objects; -}; - - -GtkAccelEntry -struct GtkAccelEntry -{ - /* key portion - */ - GtkAccelGroup *accel_group; - guint accelerator_key; - GdkModifierType accelerator_mods; - - GtkAccelFlags accel_flags; - GtkObject *object; - guint signal_id; -}; - - -gtk_accel_group_new -GtkAccelGroup * -void - - -gtk_accel_group_get_default -GtkAccelGroup * -void - - -gtk_accel_group_ref -GtkAccelGroup * -GtkAccelGroup *accel_group - - -gtk_accel_group_unref -void -GtkAccelGroup *accel_group - - -gtk_accel_group_activate -gboolean -GtkAccelGroup *accel_group,guint accel_key,GdkModifierType accel_mods - - -gtk_accel_groups_activate -gboolean -GtkObject *object,guint accel_key,GdkModifierType accel_mods - - -gtk_accel_group_attach -void -GtkAccelGroup *accel_group,GtkObject *object - - -gtk_accel_group_detach -void -GtkAccelGroup *accel_group,GtkObject *object - - -gtk_accel_group_lock -void -GtkAccelGroup *accel_group - - -gtk_accel_group_unlock -void -GtkAccelGroup *accel_group - - -gtk_accel_group_get_entry -GtkAccelEntry * -GtkAccelGroup *accel_group,guint accel_key,GdkModifierType accel_mods - - -gtk_accel_group_lock_entry -void -GtkAccelGroup *accel_group,guint accel_key,GdkModifierType accel_mods - - -gtk_accel_group_unlock_entry -void -GtkAccelGroup *accel_group,guint accel_key,GdkModifierType accel_mods - - -gtk_accel_group_add -void -GtkAccelGroup *accel_group,guint accel_key,GdkModifierType accel_mods,GtkAccelFlags accel_flags,GtkObject *object,const gchar *accel_signal - - -gtk_accel_group_remove -void -GtkAccelGroup *accel_group,guint accel_key,GdkModifierType accel_mods,GtkObject *object - - -gtk_accel_group_handle_add -void -GtkObject *object,guint accel_signal_id,GtkAccelGroup *accel_group,guint accel_key,GdkModifierType accel_mods,GtkAccelFlags accel_flags - - -gtk_accel_group_handle_remove -void -GtkObject *object,GtkAccelGroup *accel_group,guint accel_key,GdkModifierType accel_mods - - -gtk_accel_group_create_add -guint -GtkType class_type,GtkSignalRunType signal_flags,guint handler_offset - - -gtk_accel_group_create_remove -guint -GtkType class_type,GtkSignalRunType signal_flags,guint handler_offset - - -gtk_accel_group_marshal_add -void -GtkObject *object,GtkSignalFunc func,gpointer func_data,GtkArg *args - - -gtk_accel_group_marshal_remove -void -GtkObject *object,GtkSignalFunc func,gpointer func_data,GtkArg *args - - -gtk_accel_groups_from_object -GSList * -GtkObject *object - - -gtk_accel_group_entries_from_object -GSList * -GtkObject *object - - -gtk_accelerator_valid -gboolean -guint keyval,GdkModifierType modifiers - - -gtk_accelerator_parse -void -const gchar *accelerator,guint *accelerator_key,GdkModifierType *accelerator_mods - - -gtk_accelerator_name -gchar * -guint accelerator_key,GdkModifierType accelerator_mods - - -gtk_accelerator_set_default_mod_mask -void -GdkModifierType default_mod_mask - - -gtk_accelerator_get_default_mod_mask -guint -void - - -GTK_TYPE_ACCEL_LABEL -#define GTK_TYPE_ACCEL_LABEL (gtk_accel_label_get_type ()) - - -GTK_ACCEL_LABEL -#define GTK_ACCEL_LABEL(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_ACCEL_LABEL, GtkAccelLabel)) - - -GTK_ACCEL_LABEL_CLASS -#define GTK_ACCEL_LABEL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_LABEL, GtkAccelLabelClass)) - - -GTK_IS_ACCEL_LABEL -#define GTK_IS_ACCEL_LABEL(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_ACCEL_LABEL)) - - -GTK_IS_ACCEL_LABEL_CLASS -#define GTK_IS_ACCEL_LABEL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_LABEL)) - - -GtkAccelLabel - - -GtkAccelLabelClass - - -GtkAccelLabel -struct GtkAccelLabel -{ - GtkLabel label; - - guint queue_id; - guint accel_padding; - GtkWidget *accel_widget; - gchar *accel_string; - guint16 accel_string_width; -}; - - -gtk_accel_label_get_type -GtkType -void - - -gtk_accel_label_new -GtkWidget * -const gchar *string - - -gtk_accel_label_get_accel_width -guint -GtkAccelLabel *accel_label - - -gtk_accel_label_set_accel_widget -void -GtkAccelLabel *accel_label,GtkWidget *accel_widget - - -gtk_accel_label_refetch -gboolean -GtkAccelLabel *accel_label - - -GTK_TYPE_ADJUSTMENT -#define GTK_TYPE_ADJUSTMENT (gtk_adjustment_get_type ()) - - -GTK_ADJUSTMENT -#define GTK_ADJUSTMENT(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_ADJUSTMENT, GtkAdjustment)) - - -GTK_ADJUSTMENT_CLASS -#define GTK_ADJUSTMENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_ADJUSTMENT, GtkAdjustmentClass)) - - -GTK_IS_ADJUSTMENT -#define GTK_IS_ADJUSTMENT(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_ADJUSTMENT)) - - -GTK_IS_ADJUSTMENT_CLASS -#define GTK_IS_ADJUSTMENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ADJUSTMENT)) - - -GtkAdjustment - - -GtkAdjustmentClass - - -GtkAdjustment -struct GtkAdjustment -{ - GtkData data; - - gfloat lower; - gfloat upper; - gfloat value; - gfloat step_increment; - gfloat page_increment; - gfloat page_size; -}; - - -gtk_adjustment_get_type -GtkType -void - - -gtk_adjustment_new -GtkObject * -gfloat value,gfloat lower,gfloat upper,gfloat step_increment,gfloat page_increment,gfloat page_size - - -gtk_adjustment_changed -void -GtkAdjustment *adjustment - - -gtk_adjustment_value_changed -void -GtkAdjustment *adjustment - - -gtk_adjustment_clamp_page -void -GtkAdjustment *adjustment,gfloat lower,gfloat upper - - -gtk_adjustment_set_value -void -GtkAdjustment *adjustment,gfloat value - - -GTK_TYPE_ALIGNMENT -#define GTK_TYPE_ALIGNMENT (gtk_alignment_get_type ()) - - -GTK_ALIGNMENT -#define GTK_ALIGNMENT(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_ALIGNMENT, GtkAlignment)) - - -GTK_ALIGNMENT_CLASS -#define GTK_ALIGNMENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_ALIGNMENT, GtkAlignmentClass)) - - -GTK_IS_ALIGNMENT -#define GTK_IS_ALIGNMENT(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_ALIGNMENT)) - - -GTK_IS_ALIGNMENT_CLASS -#define GTK_IS_ALIGNMENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ALIGNMENT)) - - -GtkAlignment - - -GtkAlignmentClass - - -GtkAlignment -struct GtkAlignment -{ - GtkBin bin; - - gfloat xalign; - gfloat yalign; - gfloat xscale; - gfloat yscale; -}; - - -gtk_alignment_get_type -GtkType -void - - -gtk_alignment_new -GtkWidget * -gfloat xalign,gfloat yalign,gfloat xscale,gfloat yscale - - -gtk_alignment_set -void -GtkAlignment *alignment,gfloat xalign,gfloat yalign,gfloat xscale,gfloat yscale - - -GtkArgInfo - - -GtkArgInfo -struct GtkArgInfo -{ - /* hash key portion */ - GtkType class_type; - gchar *name; - - GtkType type; - guint arg_flags; - gchar *full_name; - - /* private fields */ - guint arg_id; - guint seq_id; -}; - - -gtk_arg_new -GtkArg * -GtkType arg_type - - -gtk_arg_copy -GtkArg * -GtkArg *src_arg,GtkArg *dest_arg - - -gtk_arg_free -void -GtkArg *arg,gboolean free_contents - - -gtk_arg_reset -void -GtkArg *arg - - -gtk_arg_values_equal -gboolean -const GtkArg *arg1,const GtkArg *arg2 - - -gtk_args_collect -gchar * -GtkType object_type,GHashTable *arg_info_hash_table,GSList **arg_list_p,GSList **info_list_p,const gchar *first_arg_name,va_list var_args - - -gtk_args_collect_cleanup -void -GSList *arg_list,GSList *info_list - - -gtk_arg_get_info -gchar * -GtkType object_type,GHashTable *arg_info_hash_table,const gchar *arg_name,GtkArgInfo **info_p - - -gtk_arg_type_new_static -GtkArgInfo * -GtkType base_class_type,const gchar *arg_name,guint class_n_args_offset,GHashTable *arg_info_hash_table,GtkType arg_type,guint arg_flags,guint arg_id - - -gtk_args_query -GtkArg * -GtkType class_type,GHashTable *arg_info_hash_table,guint32 **arg_flags,guint *n_args_p - - -gtk_arg_name_strip_type -gchar * -const gchar *arg_name - - -gtk_arg_info_equal -gint -gconstpointer arg_info_1,gconstpointer arg_info_2 - - -gtk_arg_info_hash -guint -gconstpointer arg_info - - -gtk_arg_to_valueloc -void -GtkArg *arg,gpointer value_pointer - - -GTK_TYPE_ARROW -#define GTK_TYPE_ARROW (gtk_arrow_get_type ()) - - -GTK_ARROW -#define GTK_ARROW(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_ARROW, GtkArrow)) - - -GTK_ARROW_CLASS -#define GTK_ARROW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_ARROW, GtkArrowClass)) - - -GTK_IS_ARROW -#define GTK_IS_ARROW(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_ARROW)) - - -GTK_IS_ARROW_CLASS -#define GTK_IS_ARROW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ARROW)) - - -GtkArrow - - -GtkArrowClass - - -GtkArrow -struct GtkArrow -{ - GtkMisc misc; - - gint16 arrow_type; - gint16 shadow_type; -}; - - -gtk_arrow_get_type -GtkType -void - - -gtk_arrow_new -GtkWidget * -GtkArrowType arrow_type,GtkShadowType shadow_type - - -gtk_arrow_set -void -GtkArrow *arrow,GtkArrowType arrow_type,GtkShadowType shadow_type - - -GTK_TYPE_ASPECT_FRAME -#define GTK_TYPE_ASPECT_FRAME (gtk_aspect_frame_get_type ()) - - -GTK_ASPECT_FRAME -#define GTK_ASPECT_FRAME(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_ASPECT_FRAME, GtkAspectFrame)) - - -GTK_ASPECT_FRAME_CLASS -#define GTK_ASPECT_FRAME_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_ASPECT_FRAME, GtkAspectFrameClass)) - - -GTK_IS_ASPECT_FRAME -#define GTK_IS_ASPECT_FRAME(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_ASPECT_FRAME)) - - -GTK_IS_ASPECT_FRAME_CLASS -#define GTK_IS_ASPECT_FRAME_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ASPECT_FRAME)) - - -GtkAspectFrame - - -GtkAspectFrameClass - - -GtkAspectFrame -struct GtkAspectFrame -{ - GtkFrame frame; - - gfloat xalign; - gfloat yalign; - gfloat ratio; - gint obey_child; - - GtkAllocation center_allocation; -}; - - -gtk_aspect_frame_get_type -GtkType -void - - -gtk_aspect_frame_new -GtkWidget * -const gchar *label,gfloat xalign,gfloat yalign,gfloat ratio,gint obey_child - - -gtk_aspect_frame_set -void -GtkAspectFrame *aspect_frame,gfloat xalign,gfloat yalign,gfloat ratio,gint obey_child - - -GTK_TYPE_BUTTON_BOX -#define GTK_TYPE_BUTTON_BOX (gtk_button_box_get_type ()) - - -GTK_BUTTON_BOX -#define GTK_BUTTON_BOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_BUTTON_BOX, GtkButtonBox)) - - -GTK_BUTTON_BOX_CLASS -#define GTK_BUTTON_BOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_BUTTON_BOX, GtkButtonBoxClass)) - - -GTK_IS_BUTTON_BOX -#define GTK_IS_BUTTON_BOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_BUTTON_BOX)) - - -GTK_IS_BUTTON_BOX_CLASS -#define GTK_IS_BUTTON_BOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUTTON_BOX)) - - -GTK_BUTTONBOX_DEFAULT -#define GTK_BUTTONBOX_DEFAULT -1 - - -GtkButtonBox - - -GtkButtonBoxClass - - -GtkButtonBox -struct GtkButtonBox -{ - GtkBox box; - gint spacing; - gint child_min_width; - gint child_min_height; - gint child_ipad_x; - gint child_ipad_y; - GtkButtonBoxStyle layout_style; -}; - - -gtk_button_box_get_type -GtkType -void - - -gtk_button_box_get_child_size_default -void -gint *min_width, gint *min_height - - -gtk_button_box_get_child_ipadding_default -void -gint *ipad_x, gint *ipad_y - - -gtk_button_box_set_child_size_default -void -gint min_width, gint min_height - - -gtk_button_box_set_child_ipadding_default -void -gint ipad_x, gint ipad_y - - -gtk_button_box_get_spacing -gint -GtkButtonBox *widget - - -gtk_button_box_get_layout -GtkButtonBoxStyle -GtkButtonBox *widget - - -gtk_button_box_get_child_size -void -GtkButtonBox *widget,gint *min_width, gint *min_height - - -gtk_button_box_get_child_ipadding -void -GtkButtonBox *widget, gint *ipad_x, gint *ipad_y - - -gtk_button_box_set_spacing -void -GtkButtonBox *widget, gint spacing - - -gtk_button_box_set_layout -void -GtkButtonBox *widget,GtkButtonBoxStyle layout_style - - -gtk_button_box_set_child_size -void -GtkButtonBox *widget,gint min_width, gint min_height - - -gtk_button_box_set_child_ipadding -void -GtkButtonBox *widget, gint ipad_x, gint ipad_y - - -gtk_button_box_child_requisition -void -GtkWidget *widget,int *nvis_children,int *width,int *height - - -GTK_TYPE_BIN -#define GTK_TYPE_BIN (gtk_bin_get_type ()) - - -GTK_BIN -#define GTK_BIN(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_BIN, GtkBin)) - - -GTK_BIN_CLASS -#define GTK_BIN_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_BIN, GtkBinClass)) - - -GTK_IS_BIN -#define GTK_IS_BIN(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_BIN)) - - -GTK_IS_BIN_CLASS -#define GTK_IS_BIN_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BIN)) - - -GtkBin - - -GtkBinClass - - -GtkBin -struct GtkBin -{ - GtkContainer container; - - GtkWidget *child; -}; - - -gtk_bin_get_type -GtkType -void - - -GtkPatternSpec - - -GtkPatternSpec -struct GtkPatternSpec -{ - GtkMatchType match_type; - guint pattern_length; - gchar *pattern; - gchar *pattern_reversed; - gpointer user_data; - guint seq_id; -}; - - -gtk_pattern_spec_init -void -GtkPatternSpec *pspec,const gchar *pattern - - -gtk_pattern_spec_free_segs -void -GtkPatternSpec *pspec - - -gtk_pattern_match -gboolean -GtkPatternSpec *pspec,guint string_length,const gchar *string,const gchar *string_reversed - - -gtk_pattern_match_string -gboolean -GtkPatternSpec *pspec,const gchar *string - - -gtk_pattern_match_simple -gboolean -const gchar *pattern,const gchar *string - - -GtkBindingSet - - -GtkBindingEntry - - -GtkBindingSignal - - -GtkBindingArg - - -GtkBindingSet -struct GtkBindingSet -{ - gchar *set_name; - gint priority; - GSList *widget_path_pspecs; - GSList *widget_class_pspecs; - GSList *class_branch_pspecs; - GtkBindingEntry *entries; - GtkBindingEntry *current; -}; - - -GtkBindingEntry -struct GtkBindingEntry -{ - /* key portion - */ - guint keyval; - guint modifiers; - - GtkBindingSet *binding_set; - guint destroyed : 1; - guint in_emission : 1; - GtkBindingEntry *set_next; - GtkBindingEntry *hash_next; - GtkBindingSignal *signals; -}; - - -GtkBindingSignal -struct GtkBindingSignal -{ - GtkBindingSignal *next; - gchar *signal_name; - guint n_args; - GtkBindingArg *args; -}; - - -GtkBindingArg -struct GtkBindingArg -{ - GtkType arg_type; - union { - glong long_data; - gdouble double_data; - gchar *string_data; - } d; -}; - - -gtk_binding_set_new -GtkBindingSet * -const gchar *set_name - - -gtk_binding_set_by_class -GtkBindingSet * -gpointer object_class - - -gtk_binding_set_find -GtkBindingSet * -const gchar *set_name - - -gtk_bindings_activate -gboolean -GtkObject *object,guint keyval,guint modifiers - - -gtk_binding_set_activate -gboolean -GtkBindingSet *binding_set,guint keyval,guint modifiers,GtkObject *object - - -gtk_binding_entry_add -#define gtk_binding_entry_add gtk_binding_entry_clear - - -gtk_binding_entry_clear -void -GtkBindingSet *binding_set,guint keyval,guint modifiers - - -gtk_binding_entry_add_signal -void -GtkBindingSet *binding_set,guint keyval,guint modifiers,const gchar *signal_name,guint n_args,... - - -gtk_binding_set_add_path -void -GtkBindingSet *binding_set,GtkPathType path_type,const gchar *path_pattern,GtkPathPriorityType priority - - -gtk_binding_entry_remove -void -GtkBindingSet *binding_set,guint keyval,guint modifiers - - -gtk_binding_entry_add_signall -void -GtkBindingSet *binding_set,guint keyval,guint modifiers,const gchar *signal_name,GSList *binding_args - - -gtk_binding_parse_binding -guint -GScanner *scanner - - -GTK_TYPE_BOX -#define GTK_TYPE_BOX (gtk_box_get_type ()) - - -GTK_BOX -#define GTK_BOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_BOX, GtkBox)) - - -GTK_BOX_CLASS -#define GTK_BOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_BOX, GtkBoxClass)) - - -GTK_IS_BOX -#define GTK_IS_BOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_BOX)) - - -GTK_IS_BOX_CLASS -#define GTK_IS_BOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BOX)) - - -GtkBox - - -GtkBoxClass - - -GtkBoxChild - - -GtkBox -struct GtkBox -{ - GtkContainer container; - - GList *children; - gint16 spacing; - guint homogeneous : 1; -}; - - -GtkBoxChild -struct GtkBoxChild -{ - GtkWidget *widget; - guint16 padding; - guint expand : 1; - guint fill : 1; - guint pack : 1; -}; - - -gtk_box_get_type -GtkType -void - - -gtk_box_pack_start -void -GtkBox *box,GtkWidget *child,gboolean expand,gboolean fill,guint padding - - -gtk_box_pack_end -void -GtkBox *box,GtkWidget *child,gboolean expand,gboolean fill,guint padding - - -gtk_box_pack_start_defaults -void -GtkBox *box,GtkWidget *widget - - -gtk_box_pack_end_defaults -void -GtkBox *box,GtkWidget *widget - - -gtk_box_set_homogeneous -void -GtkBox *box,gboolean homogeneous - - -gtk_box_set_spacing -void -GtkBox *box,gint spacing - - -gtk_box_reorder_child -void -GtkBox *box,GtkWidget *child,gint position - - -gtk_box_query_child_packing -void -GtkBox *box,GtkWidget *child,gboolean *expand,gboolean *fill,guint *padding,GtkPackType *pack_type - - -gtk_box_set_child_packing -void -GtkBox *box,GtkWidget *child,gboolean expand,gboolean fill,guint padding,GtkPackType pack_type - - -GTK_TYPE_BUTTON -#define GTK_TYPE_BUTTON (gtk_button_get_type ()) - - -GTK_BUTTON -#define GTK_BUTTON(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_BUTTON, GtkButton)) - - -GTK_BUTTON_CLASS -#define GTK_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_BUTTON, GtkButtonClass)) - - -GTK_IS_BUTTON -#define GTK_IS_BUTTON(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_BUTTON)) - - -GTK_IS_BUTTON_CLASS -#define GTK_IS_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUTTON)) - - -GtkButton - - -GtkButtonClass - - -GtkButton -struct GtkButton -{ - GtkBin bin; - - GtkWidget *child /* deprecapted field, - * use GTK_BIN (button)->child instead - */; - - guint in_button : 1; - guint button_down : 1; - guint relief : 2; -}; - - -gtk_button_get_type -GtkType -void - - -gtk_button_new -GtkWidget * -void - - -gtk_button_new_with_label -GtkWidget * -const gchar *label - - -gtk_button_pressed -void -GtkButton *button - - -gtk_button_released -void -GtkButton *button - - -gtk_button_clicked -void -GtkButton *button - - -gtk_button_enter -void -GtkButton *button - - -gtk_button_leave -void -GtkButton *button - - -gtk_button_set_relief -void -GtkButton *button,GtkReliefStyle newstyle - - -gtk_button_get_relief -GtkReliefStyle -GtkButton *button - - -GTK_TYPE_CALENDAR -#define GTK_TYPE_CALENDAR (gtk_calendar_get_type ()) - - -GTK_CALENDAR -#define GTK_CALENDAR(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CALENDAR, GtkCalendar)) - - -GTK_CALENDAR_CLASS -#define GTK_CALENDAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CALENDAR, GtkCalendarClass)) - - -GTK_IS_CALENDAR -#define GTK_IS_CALENDAR(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CALENDAR)) - - -GTK_IS_CALENDAR_CLASS -#define GTK_IS_CALENDAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CALENDAR)) - - -GtkCalendar - - -GtkCalendarClass - - -GtkCalendarDisplayOptions -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; - - -GtkCalendar -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]; -}; - - -gtk_calendar_get_type -GtkType -void - - -gtk_calendar_new -GtkWidget * -void - - -gtk_calendar_select_month -gint -GtkCalendar *calendar,guint month,guint year - - -gtk_calendar_select_day -void -GtkCalendar *calendar,guint day - - -gtk_calendar_mark_day -gint -GtkCalendar *calendar,guint day - - -gtk_calendar_unmark_day -gint -GtkCalendar *calendar,guint day - - -gtk_calendar_clear_marks -void -GtkCalendar *calendar - - -gtk_calendar_display_options -void -GtkCalendar *calendar,GtkCalendarDisplayOptions flags - - -gtk_calendar_get_date -void -GtkCalendar *calendar,guint *year,guint *month,guint *day - - -gtk_calendar_freeze -void -GtkCalendar *calendar - - -gtk_calendar_thaw -void -GtkCalendar *calendar - - -GTK_TYPE_CHECK_BUTTON -#define GTK_TYPE_CHECK_BUTTON (gtk_check_button_get_type ()) - - -GTK_CHECK_BUTTON -#define GTK_CHECK_BUTTON(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CHECK_BUTTON, GtkCheckButton)) - - -GTK_CHECK_BUTTON_CLASS -#define GTK_CHECK_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHECK_BUTTON, GtkCheckButtonClass)) - - -GTK_IS_CHECK_BUTTON -#define GTK_IS_CHECK_BUTTON(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CHECK_BUTTON)) - - -GTK_IS_CHECK_BUTTON_CLASS -#define GTK_IS_CHECK_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHECK_BUTTON)) - - -GtkCheckButton - - -GtkCheckButtonClass - - -GtkCheckButton -struct GtkCheckButton -{ - GtkToggleButton toggle_button; -}; - - -gtk_check_button_get_type -GtkType -void - - -gtk_check_button_new -GtkWidget * -void - - -gtk_check_button_new_with_label -GtkWidget * -const gchar *label - - -GTK_TYPE_CHECK_MENU_ITEM -#define GTK_TYPE_CHECK_MENU_ITEM (gtk_check_menu_item_get_type ()) - - -GTK_CHECK_MENU_ITEM -#define GTK_CHECK_MENU_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItem)) - - -GTK_CHECK_MENU_ITEM_CLASS -#define GTK_CHECK_MENU_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItemClass)) - - -GTK_IS_CHECK_MENU_ITEM -#define GTK_IS_CHECK_MENU_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CHECK_MENU_ITEM)) - - -GTK_IS_CHECK_MENU_ITEM_CLASS -#define GTK_IS_CHECK_MENU_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHECK_MENU_ITEM)) - - -GtkCheckMenuItem - - -GtkCheckMenuItemClass - - -GtkCheckMenuItem -struct GtkCheckMenuItem -{ - GtkMenuItem menu_item; - - guint active : 1; - guint always_show_toggle : 1; -}; - - -gtk_check_menu_item_get_type -GtkType -void - - -gtk_check_menu_item_new -GtkWidget * -void - - -gtk_check_menu_item_new_with_label -GtkWidget * -const gchar *label - - -gtk_check_menu_item_set_active -void -GtkCheckMenuItem *check_menu_item,gboolean is_active - - -gtk_check_menu_item_set_show_toggle -void -GtkCheckMenuItem *menu_item,gboolean always - - -gtk_check_menu_item_toggled -void -GtkCheckMenuItem *check_menu_item - - -GtkCellType -typedef enum -{ - GTK_CELL_EMPTY, - GTK_CELL_TEXT, - GTK_CELL_PIXMAP, - GTK_CELL_PIXTEXT, - GTK_CELL_WIDGET -} GtkCellType; - - -GtkCListDragPos -typedef enum -{ - GTK_CLIST_DRAG_NONE, - GTK_CLIST_DRAG_BEFORE, - GTK_CLIST_DRAG_INTO, - GTK_CLIST_DRAG_AFTER -} GtkCListDragPos; - - -GtkButtonAction -typedef enum -{ - GTK_BUTTON_IGNORED = 0, - GTK_BUTTON_SELECTS = 1 << 0, - GTK_BUTTON_DRAGS = 1 << 1, - GTK_BUTTON_EXPANDS = 1 << 2 -} GtkButtonAction; - - -GTK_TYPE_CLIST -#define GTK_TYPE_CLIST (gtk_clist_get_type ()) - - -GTK_CLIST -#define GTK_CLIST(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) - - -GTK_CLIST_CLASS -#define GTK_CLIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CLIST, GtkCListClass)) - - -GTK_IS_CLIST -#define GTK_IS_CLIST(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CLIST)) - - -GTK_IS_CLIST_CLASS -#define GTK_IS_CLIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CLIST)) - - -GTK_CLIST_FLAGS -#define GTK_CLIST_FLAGS(clist) (GTK_CLIST (clist)->flags) - - -GTK_CLIST_SET_FLAG -#define GTK_CLIST_SET_FLAG(clist,flag) (GTK_CLIST_FLAGS (clist) |= (GTK_ ## flag)) - - -GTK_CLIST_UNSET_FLAG -#define GTK_CLIST_UNSET_FLAG(clist,flag) (GTK_CLIST_FLAGS (clist) &= ~(GTK_ ## flag)) - - -GTK_CLIST_IN_DRAG -#define GTK_CLIST_IN_DRAG(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_IN_DRAG) - - -GTK_CLIST_ROW_HEIGHT_SET -#define GTK_CLIST_ROW_HEIGHT_SET(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_ROW_HEIGHT_SET) - - -GTK_CLIST_SHOW_TITLES -#define GTK_CLIST_SHOW_TITLES(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_SHOW_TITLES) - - -GTK_CLIST_CHILD_HAS_FOCUS -#define GTK_CLIST_CHILD_HAS_FOCUS(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_CHILD_HAS_FOCUS) - - -GTK_CLIST_ADD_MODE -#define GTK_CLIST_ADD_MODE(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_ADD_MODE) - - -GTK_CLIST_AUTO_SORT -#define GTK_CLIST_AUTO_SORT(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_AUTO_SORT) - - -GTK_CLIST_AUTO_RESIZE_BLOCKED -#define GTK_CLIST_AUTO_RESIZE_BLOCKED(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_AUTO_RESIZE_BLOCKED) - - -GTK_CLIST_REORDERABLE -#define GTK_CLIST_REORDERABLE(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_REORDERABLE) - - -GTK_CLIST_USE_DRAG_ICONS -#define GTK_CLIST_USE_DRAG_ICONS(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_USE_DRAG_ICONS) - - -GTK_CLIST_DRAW_DRAG_LINE -#define GTK_CLIST_DRAW_DRAG_LINE(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_DRAW_DRAG_LINE) - - -GTK_CLIST_DRAW_DRAG_RECT -#define GTK_CLIST_DRAW_DRAG_RECT(clist) (GTK_CLIST_FLAGS (clist) & GTK_CLIST_DRAW_DRAG_RECT) - - -GTK_CLIST_ROW -#define GTK_CLIST_ROW(_glist_) ((GtkCListRow *)((_glist_)->data)) - - -GTK_CELL_TEXT -#define GTK_CELL_TEXT(cell) (((GtkCellText *) &(cell))) - - -GTK_CELL_PIXMAP -#define GTK_CELL_PIXMAP(cell) (((GtkCellPixmap *) &(cell))) - - -GTK_CELL_PIXTEXT -#define GTK_CELL_PIXTEXT(cell) (((GtkCellPixText *) &(cell))) - - -GTK_CELL_WIDGET -#define GTK_CELL_WIDGET(cell) (((GtkCellWidget *) &(cell))) - - -GtkCList - - -GtkCListClass - - -GtkCListColumn - - -GtkCListRow - - -GtkCell - - -GtkCellText - - -GtkCellPixmap - - -GtkCellPixText - - -GtkCellWidget - - -GtkCListCompareFunc -gint -GtkCList *clist, - gconstpointer ptr1, - gconstpointer ptr2 - - -GtkCListCellInfo - - -GtkCListDestInfo - - -GtkCListCellInfo -struct GtkCListCellInfo -{ - gint row; - gint column; -}; - - -GtkCListDestInfo -struct GtkCListDestInfo -{ - GtkCListCellInfo cell; - GtkCListDragPos insert_pos; -}; - - -GtkCList -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_center_offset; - 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 it's 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; - - /* dragging the selection */ - gint anchor; - GtkStateType anchor_state; - gint drag_pos; - gint htimer; - gint vtimer; - - GtkSortType sort_type; - GtkCListCompareFunc compare; - gint sort_column; -}; - - -GtkCListColumn -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; -}; - - -GtkCListRow -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; -}; - - -GtkCellText -struct GtkCellText -{ - GtkCellType type; - - gint16 vertical; - gint16 horizontal; - - GtkStyle *style; - - gchar *text; -}; - - -GtkCellPixmap -struct GtkCellPixmap -{ - GtkCellType type; - - gint16 vertical; - gint16 horizontal; - - GtkStyle *style; - - GdkPixmap *pixmap; - GdkBitmap *mask; -}; - - -GtkCellPixText -struct GtkCellPixText -{ - GtkCellType type; - - gint16 vertical; - gint16 horizontal; - - GtkStyle *style; - - gchar *text; - guint8 spacing; - GdkPixmap *pixmap; - GdkBitmap *mask; -}; - - -GtkCellWidget -struct GtkCellWidget -{ - GtkCellType type; - - gint16 vertical; - gint16 horizontal; - - GtkStyle *style; - - GtkWidget *widget; -}; - - -GtkCell -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; -}; - - -gtk_clist_get_type -GtkType -void - - -gtk_clist_construct -void -GtkCList *clist,gint columns,gchar *titles[] - - -gtk_clist_new -GtkWidget * -gint columns - - -gtk_clist_new_with_titles -GtkWidget * -gint columns,gchar *titles[] - - -gtk_clist_set_hadjustment -void -GtkCList *clist,GtkAdjustment *adjustment - - -gtk_clist_set_vadjustment -void -GtkCList *clist,GtkAdjustment *adjustment - - -gtk_clist_get_hadjustment -GtkAdjustment * -GtkCList *clist - - -gtk_clist_get_vadjustment -GtkAdjustment * -GtkCList *clist - - -gtk_clist_set_shadow_type -void -GtkCList *clist,GtkShadowType type - - -gtk_clist_set_selection_mode -void -GtkCList *clist,GtkSelectionMode mode - - -gtk_clist_set_reorderable -void -GtkCList *clist,gboolean reorderable - - -gtk_clist_set_use_drag_icons -void -GtkCList *clist,gboolean use_icons - - -gtk_clist_set_button_actions -void -GtkCList *clist,guint button,guint8 button_actions - - -gtk_clist_freeze -void -GtkCList *clist - - -gtk_clist_thaw -void -GtkCList *clist - - -gtk_clist_column_titles_show -void -GtkCList *clist - - -gtk_clist_column_titles_hide -void -GtkCList *clist - - -gtk_clist_column_title_active -void -GtkCList *clist,gint column - - -gtk_clist_column_title_passive -void -GtkCList *clist,gint column - - -gtk_clist_column_titles_active -void -GtkCList *clist - - -gtk_clist_column_titles_passive -void -GtkCList *clist - - -gtk_clist_set_column_title -void -GtkCList *clist,gint column,const gchar *title - - -gtk_clist_get_column_title -gchar * -GtkCList *clist,gint column - - -gtk_clist_set_column_widget -void -GtkCList *clist,gint column,GtkWidget *widget - - -gtk_clist_get_column_widget -GtkWidget * -GtkCList *clist,gint column - - -gtk_clist_set_column_justification -void -GtkCList *clist,gint column,GtkJustification justification - - -gtk_clist_set_column_visibility -void -GtkCList *clist,gint column,gboolean visible - - -gtk_clist_set_column_resizeable -void -GtkCList *clist,gint column,gboolean resizeable - - -gtk_clist_set_column_auto_resize -void -GtkCList *clist,gint column,gboolean auto_resize - - -gtk_clist_columns_autosize -gint -GtkCList *clist - - -gtk_clist_optimal_column_width -gint -GtkCList *clist,gint column - - -gtk_clist_set_column_width -void -GtkCList *clist,gint column,gint width - - -gtk_clist_set_column_min_width -void -GtkCList *clist,gint column,gint min_width - - -gtk_clist_set_column_max_width -void -GtkCList *clist,gint column,gint max_width - - -gtk_clist_set_row_height -void -GtkCList *clist,guint height - - -gtk_clist_moveto -void -GtkCList *clist,gint row,gint column,gfloat row_align,gfloat col_align - - -gtk_clist_row_is_visible -GtkVisibility -GtkCList *clist,gint row - - -gtk_clist_get_cell_type -GtkCellType -GtkCList *clist,gint row,gint column - - -gtk_clist_set_text -void -GtkCList *clist,gint row,gint column,const gchar *text - - -gtk_clist_get_text -gint -GtkCList *clist,gint row,gint column,gchar **text - - -gtk_clist_set_pixmap -void -GtkCList *clist,gint row,gint column,GdkPixmap *pixmap,GdkBitmap *mask - - -gtk_clist_get_pixmap -gint -GtkCList *clist,gint row,gint column,GdkPixmap **pixmap,GdkBitmap **mask - - -gtk_clist_set_pixtext -void -GtkCList *clist,gint row,gint column,const gchar *text,guint8 spacing,GdkPixmap *pixmap,GdkBitmap *mask - - -gtk_clist_get_pixtext -gint -GtkCList *clist,gint row,gint column,gchar **text,guint8 *spacing,GdkPixmap **pixmap,GdkBitmap **mask - - -gtk_clist_set_foreground -void -GtkCList *clist,gint row,GdkColor *color - - -gtk_clist_set_background -void -GtkCList *clist,gint row,GdkColor *color - - -gtk_clist_set_cell_style -void -GtkCList *clist,gint row,gint column,GtkStyle *style - - -gtk_clist_get_cell_style -GtkStyle * -GtkCList *clist,gint row,gint column - - -gtk_clist_set_row_style -void -GtkCList *clist,gint row,GtkStyle *style - - -gtk_clist_get_row_style -GtkStyle * -GtkCList *clist,gint row - - -gtk_clist_set_shift -void -GtkCList *clist,gint row,gint column,gint vertical,gint horizontal - - -gtk_clist_set_selectable -void -GtkCList *clist,gint row,gboolean selectable - - -gtk_clist_get_selectable -gboolean -GtkCList *clist,gint row - - -gtk_clist_prepend -gint -GtkCList *clist,gchar *text[] - - -gtk_clist_append -gint -GtkCList *clist,gchar *text[] - - -gtk_clist_insert -gint -GtkCList *clist,gint row,gchar *text[] - - -gtk_clist_remove -void -GtkCList *clist,gint row - - -gtk_clist_set_row_data -void -GtkCList *clist,gint row,gpointer data - - -gtk_clist_set_row_data_full -void -GtkCList *clist,gint row,gpointer data,GtkDestroyNotify destroy - - -gtk_clist_get_row_data -gpointer -GtkCList *clist,gint row - - -gtk_clist_find_row_from_data -gint -GtkCList *clist,gpointer data - - -gtk_clist_select_row -void -GtkCList *clist,gint row,gint column - - -gtk_clist_unselect_row -void -GtkCList *clist,gint row,gint column - - -gtk_clist_undo_selection -void -GtkCList *clist - - -gtk_clist_clear -void -GtkCList *clist - - -gtk_clist_get_selection_info -gint -GtkCList *clist,gint x,gint y,gint *row,gint *column - - -gtk_clist_select_all -void -GtkCList *clist - - -gtk_clist_unselect_all -void -GtkCList *clist - - -gtk_clist_swap_rows -void -GtkCList *clist,gint row1,gint row2 - - -gtk_clist_row_move -void -GtkCList *clist,gint source_row,gint dest_row - - -gtk_clist_set_compare_func -void -GtkCList *clist,GtkCListCompareFunc cmp_func - - -gtk_clist_set_sort_column -void -GtkCList *clist,gint column - - -gtk_clist_set_sort_type -void -GtkCList *clist,GtkSortType sort_type - - -gtk_clist_sort -void -GtkCList *clist - - -gtk_clist_set_auto_sort -void -GtkCList *clist,gboolean auto_sort - - -GTK_COLOR_SELECTION -#define GTK_COLOR_SELECTION(obj) GTK_CHECK_CAST (obj, gtk_color_selection_get_type (), GtkColorSelection) - - -GTK_COLOR_SELECTION_CLASS -#define GTK_COLOR_SELECTION_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_color_selection_get_type (), GtkColorSelectionClass) - - -GTK_IS_COLOR_SELECTION -#define GTK_IS_COLOR_SELECTION(obj) GTK_CHECK_TYPE (obj, gtk_color_selection_get_type ()) - - -GTK_COLOR_SELECTION_DIALOG -#define GTK_COLOR_SELECTION_DIALOG(obj) GTK_CHECK_CAST (obj, gtk_color_selection_dialog_get_type (), GtkColorSelectionDialog) - - -GTK_COLOR_SELECTION_DIALOG_CLASS -#define GTK_COLOR_SELECTION_DIALOG_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_color_selection_dialog_get_type (), GtkColorSelectionDialogClass) - - -GTK_IS_COLOR_SELECTION_DIALOG -#define GTK_IS_COLOR_SELECTION_DIALOG(obj) GTK_CHECK_TYPE (obj, gtk_color_selection_dialog_get_type ()) - - -GtkColorSelection - - -GtkColorSelectionClass - - -GtkColorSelectionDialog - - -GtkColorSelectionDialogClass - - -GtkColorSelection -struct GtkColorSelection -{ - GtkVBox vbox; - - GtkWidget *wheel_area; - GtkWidget *value_area; - GtkWidget *sample_area; - GtkWidget *sample_area_eb; - - GtkWidget *scales[8]; - GtkWidget *entries[8]; - GtkWidget *opacity_label; - - GdkGC *wheel_gc; - GdkGC *value_gc; - GdkGC *sample_gc; - - GtkUpdateType policy; - gint use_opacity; - gint timer_active; - gint timer_tag; - gdouble values[8]; - gdouble old_values[8]; - - guchar *wheel_buf; - guchar *value_buf; - guchar *sample_buf; -}; - - -GtkColorSelectionDialog -struct GtkColorSelectionDialog -{ - GtkWindow window; - - GtkWidget *colorsel; - GtkWidget *main_vbox; - GtkWidget *ok_button; - GtkWidget *reset_button; - GtkWidget *cancel_button; - GtkWidget *help_button; -}; - - -gtk_color_selection_get_type -guint -void - - -gtk_color_selection_new -GtkWidget * -void - - -gtk_color_selection_set_update_policy -void -GtkColorSelection *colorsel,GtkUpdateType policy - - -gtk_color_selection_set_opacity -void -GtkColorSelection *colorsel,gint use_opacity - - -gtk_color_selection_set_color -void -GtkColorSelection *colorsel,gdouble *color - - -gtk_color_selection_get_color -void -GtkColorSelection *colorsel,gdouble *color - - -gtk_color_selection_dialog_get_type -guint -void - - -gtk_color_selection_dialog_new -GtkWidget * -const gchar *title - - -GTK_COMBO -#define GTK_COMBO(obj) GTK_CHECK_CAST (obj, gtk_combo_get_type (), GtkCombo) - - -GTK_COMBO_CLASS -#define GTK_COMBO_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_combo_get_type (), GtkComboClass) - - -GTK_IS_COMBO -#define GTK_IS_COMBO(obj) GTK_CHECK_TYPE (obj, gtk_combo_get_type ()) - - -GtkCombo - - -GtkComboClass - - -GtkCombo -struct GtkCombo { - GtkHBox hbox; - GtkWidget *entry; - GtkWidget *button; - GtkWidget *popup; - GtkWidget *popwin; - GtkWidget *list; - - guint entry_change_id; - guint list_change_id; - - 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; -}; - - -gtk_combo_get_type -guint -void - - -gtk_combo_new -GtkWidget * -void - - -gtk_combo_set_value_in_list -void -GtkCombo* combo,gint val,gint ok_if_empty - - -gtk_combo_set_use_arrows -void -GtkCombo* combo,gint val - - -gtk_combo_set_use_arrows_always -void -GtkCombo* combo,gint val - - -gtk_combo_set_case_sensitive -void -GtkCombo* combo,gint val - - -gtk_combo_set_item_string -void -GtkCombo* combo,GtkItem* item,const gchar* item_value - - -gtk_combo_set_popdown_strings -void -GtkCombo* combo,GList *strings - - -gtk_combo_disable_activate -void -GtkCombo* combo - - -gtk_accel_label_accelerator_width -#define gtk_accel_label_accelerator_width gtk_accel_label_get_accel_width - - -gtk_container_border_width -#define gtk_container_border_width gtk_container_set_border_width - - -gtk_notebook_current_page -#define gtk_notebook_current_page gtk_notebook_get_current_page - - -gtk_packer_configure -#define gtk_packer_configure gtk_packer_set_child_packing - - -gtk_paned_gutter_size -#define gtk_paned_gutter_size gtk_paned_set_gutter_size - - -gtk_paned_handle_size -#define gtk_paned_handle_size gtk_paned_set_handle_size - - -gtk_scale_value_width -#define gtk_scale_value_width gtk_scale_get_value_width - - -gtk_window_position -#define gtk_window_position gtk_window_set_position - - -gtk_toggle_button_set_state -#define gtk_toggle_button_set_state gtk_toggle_button_set_active - - -gtk_check_menu_item_set_state -#define gtk_check_menu_item_set_state gtk_check_menu_item_set_active - - -gtk_ctree_set_reorderable -#define gtk_ctree_set_reorderable(t,r) gtk_clist_set_reorderable((GtkCList*) (t),(r)) - - -gtk_style_apply_default_pixmap -#define gtk_style_apply_default_pixmap(s,gw,st,a,x,y,w,h) \ - gtk_style_apply_default_background (s,gw,TRUE,st,a,x,y,w,h) - - -GTK_TYPE_CONTAINER -#define GTK_TYPE_CONTAINER (gtk_container_get_type ()) - - -GTK_CONTAINER -#define GTK_CONTAINER(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer)) - - -GTK_CONTAINER_CLASS -#define GTK_CONTAINER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CONTAINER, GtkContainerClass)) - - -GTK_IS_CONTAINER -#define GTK_IS_CONTAINER(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CONTAINER)) - - -GTK_IS_CONTAINER_CLASS -#define GTK_IS_CONTAINER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CONTAINER)) - - -GTK_IS_RESIZE_CONTAINER -#define GTK_IS_RESIZE_CONTAINER(widget) (GTK_IS_CONTAINER (widget) && ((GtkContainer*) (widget))->resize_mode != GTK_RESIZE_PARENT) - - -GtkContainer - - -GtkContainerClass - - -GtkContainer -struct GtkContainer -{ - GtkWidget widget; - - GtkWidget *focus_child; - - guint border_width : 16; - guint need_resize : 1; - guint resize_mode : 2; - - - /* The list of children that requested a resize - */ - GSList *resize_widgets; -}; - - -gtk_container_get_type -GtkType -void - - -gtk_container_set_border_width -void -GtkContainer *container,guint border_width - - -gtk_container_add -void -GtkContainer *container,GtkWidget *widget - - -gtk_container_remove -void -GtkContainer *container,GtkWidget *widget - - -gtk_container_set_resize_mode -void -GtkContainer *container,GtkResizeMode resize_mode - - -gtk_container_check_resize -void -GtkContainer *container - - -gtk_container_foreach -void -GtkContainer *container,GtkCallback callback,gpointer callback_data - - -gtk_container_foreach_full -void -GtkContainer *container,GtkCallback callback,GtkCallbackMarshal marshal,gpointer callback_data,GtkDestroyNotify notify - - -gtk_container_children -GList * -GtkContainer *container - - -gtk_container_focus -gint -GtkContainer *container,GtkDirectionType direction - - -gtk_container_set_focus_child -void -GtkContainer *container,GtkWidget *child - - -gtk_container_set_focus_vadjustment -void -GtkContainer *container,GtkAdjustment *adjustment - - -gtk_container_set_focus_hadjustment -void -GtkContainer *container,GtkAdjustment *adjustment - - -gtk_container_register_toplevel -void -GtkContainer *container - - -gtk_container_unregister_toplevel -void -GtkContainer *container - - -gtk_container_get_toplevels -GList * -void - - -gtk_container_resize_children -void -GtkContainer *container - - -gtk_container_child_type -GtkType -GtkContainer *container - - -gtk_container_add_child_arg_type -void -const gchar *arg_name,GtkType arg_type,guint arg_flags,guint arg_id - - -gtk_container_query_child_args -GtkArg * -GtkType class_type,guint32 **arg_flags,guint *nargs - - -gtk_container_child_getv -void -GtkContainer *container,GtkWidget *child,guint n_args,GtkArg *args - - -gtk_container_child_setv -void -GtkContainer *container,GtkWidget *child,guint n_args,GtkArg *args - - -gtk_container_add_with_args -void -GtkContainer *container,GtkWidget *widget,const gchar *first_arg_name,... - - -gtk_container_addv -void -GtkContainer *container,GtkWidget *widget,guint n_args,GtkArg *args - - -gtk_container_child_set -void -GtkContainer *container,GtkWidget *child,const gchar *first_arg_name,... - - -gtk_container_queue_resize -void -GtkContainer *container - - -gtk_container_clear_resize_widgets -void -GtkContainer *container - - -gtk_container_arg_set -void -GtkContainer *container,GtkWidget *child,GtkArg *arg,GtkArgInfo *info - - -gtk_container_arg_get -void -GtkContainer *container,GtkWidget *child,GtkArg *arg,GtkArgInfo *info - - -gtk_container_child_args_collect -gchar * -GtkType object_type,GSList **arg_list_p,GSList **info_list_p,const gchar *first_arg_name,va_list args - - -gtk_container_child_arg_get_info -gchar * -GtkType object_type,const gchar *arg_name,GtkArgInfo **info_p - - -gtk_container_forall -void -GtkContainer *container,GtkCallback callback,gpointer callback_data - - -gtk_container_child_composite_name -gchar * -GtkContainer *container,GtkWidget *child - - -GTK_TYPE_CTREE -#define GTK_TYPE_CTREE (gtk_ctree_get_type ()) - - -GTK_CTREE -#define GTK_CTREE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CTREE, GtkCTree)) - - -GTK_CTREE_CLASS -#define GTK_CTREE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CTREE, GtkCTreeClass)) - - -GTK_IS_CTREE -#define GTK_IS_CTREE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CTREE)) - - -GTK_IS_CTREE_CLASS -#define GTK_IS_CTREE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CTREE)) - - -GTK_CTREE_ROW -#define GTK_CTREE_ROW(_node_) ((GtkCTreeRow *)(((GList *)(_node_))->data)) - - -GTK_CTREE_NODE -#define GTK_CTREE_NODE(_node_) ((GtkCTreeNode *)((_node_))) - - -GTK_CTREE_NODE_NEXT -#define GTK_CTREE_NODE_NEXT(_nnode_) ((GtkCTreeNode *)(((GList *)(_nnode_))->next)) - - -GTK_CTREE_NODE_PREV -#define GTK_CTREE_NODE_PREV(_pnode_) ((GtkCTreeNode *)(((GList *)(_pnode_))->prev)) - - -GTK_CTREE_FUNC -#define GTK_CTREE_FUNC(_func_) ((GtkCTreeFunc)(_func_)) - - -GtkCTreePos -typedef enum -{ - GTK_CTREE_POS_BEFORE, - GTK_CTREE_POS_AS_CHILD, - GTK_CTREE_POS_AFTER -} GtkCTreePos; - - -GtkCTreeLineStyle -typedef enum -{ - GTK_CTREE_LINES_NONE, - GTK_CTREE_LINES_SOLID, - GTK_CTREE_LINES_DOTTED, - GTK_CTREE_LINES_TABBED -} GtkCTreeLineStyle; - - -GtkCTreeExpanderStyle -typedef enum -{ - GTK_CTREE_EXPANDER_NONE, - GTK_CTREE_EXPANDER_SQUARE, - GTK_CTREE_EXPANDER_TRIANGLE, - GTK_CTREE_EXPANDER_CIRCULAR -} GtkCTreeExpanderStyle; - - -GtkCTreeExpansionType -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; - - -GtkCTree - - -GtkCTreeClass - - -GtkCTreeRow - - -GtkCTreeNode - - -GtkCTreeFunc -void -GtkCTree *ctree, - GtkCTreeNode *node, - gpointer data - - -GtkCTreeGNodeFunc -gboolean -GtkCTree *ctree, - guint depth, - GNode *gnode, - GtkCTreeNode *cnode, - gpointer data - - -GtkCTreeCompareDragFunc -gboolean -GtkCTree *ctree, - GtkCTreeNode *source_node, - GtkCTreeNode *new_parent, - GtkCTreeNode *new_sibling - - -GtkCTree -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; -}; - - -GtkCTreeRow -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; -}; - - -GtkCTreeNode -struct GtkCTreeNode { - GList list; -}; - - -gtk_ctree_get_type -GtkType -void - - -gtk_ctree_construct -void -GtkCTree *ctree,gint columns,gint tree_column,gchar *titles[] - - -gtk_ctree_new_with_titles -GtkWidget * -gint columns,gint tree_column,gchar *titles[] - - -gtk_ctree_new -GtkWidget * -gint columns,gint tree_column - - -gtk_ctree_insert_node -GtkCTreeNode * -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 - - -gtk_ctree_remove_node -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_insert_gnode -GtkCTreeNode * -GtkCTree *ctree,GtkCTreeNode *parent,GtkCTreeNode *sibling,GNode *gnode,GtkCTreeGNodeFunc func,gpointer data - - -gtk_ctree_export_to_gnode -GNode * -GtkCTree *ctree,GNode *parent,GNode *sibling,GtkCTreeNode *node,GtkCTreeGNodeFunc func,gpointer data - - -gtk_ctree_post_recursive -void -GtkCTree *ctree,GtkCTreeNode *node,GtkCTreeFunc func,gpointer data - - -gtk_ctree_post_recursive_to_depth -void -GtkCTree *ctree,GtkCTreeNode *node,gint depth,GtkCTreeFunc func,gpointer data - - -gtk_ctree_pre_recursive -void -GtkCTree *ctree,GtkCTreeNode *node,GtkCTreeFunc func,gpointer data - - -gtk_ctree_pre_recursive_to_depth -void -GtkCTree *ctree,GtkCTreeNode *node,gint depth,GtkCTreeFunc func,gpointer data - - -gtk_ctree_is_viewable -gboolean -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_last -GtkCTreeNode * -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_find_node_ptr -GtkCTreeNode * -GtkCTree *ctree,GtkCTreeRow *ctree_row - - -gtk_ctree_node_nth -GtkCTreeNode * -GtkCTree *ctree,guint row - - -gtk_ctree_find -gboolean -GtkCTree *ctree,GtkCTreeNode *node,GtkCTreeNode *child - - -gtk_ctree_is_ancestor -gboolean -GtkCTree *ctree,GtkCTreeNode *node,GtkCTreeNode *child - - -gtk_ctree_find_by_row_data -GtkCTreeNode * -GtkCTree *ctree,GtkCTreeNode *node,gpointer data - - -gtk_ctree_find_all_by_row_data -GList * -GtkCTree *ctree,GtkCTreeNode *node,gpointer data - - -gtk_ctree_find_by_row_data_custom -GtkCTreeNode * -GtkCTree *ctree,GtkCTreeNode *node,gpointer data,GCompareFunc func - - -gtk_ctree_find_all_by_row_data_custom -GList * -GtkCTree *ctree,GtkCTreeNode *node,gpointer data,GCompareFunc func - - -gtk_ctree_is_hot_spot -gboolean -GtkCTree *ctree,gint x,gint y - - -gtk_ctree_move -void -GtkCTree *ctree,GtkCTreeNode *node,GtkCTreeNode *new_parent,GtkCTreeNode *new_sibling - - -gtk_ctree_expand -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_expand_recursive -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_expand_to_depth -void -GtkCTree *ctree,GtkCTreeNode *node,gint depth - - -gtk_ctree_collapse -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_collapse_recursive -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_collapse_to_depth -void -GtkCTree *ctree,GtkCTreeNode *node,gint depth - - -gtk_ctree_toggle_expansion -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_toggle_expansion_recursive -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_select -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_select_recursive -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_unselect -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_unselect_recursive -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_real_select_recursive -void -GtkCTree *ctree,GtkCTreeNode *node,gint state - - -gtk_ctree_node_set_text -void -GtkCTree *ctree,GtkCTreeNode *node,gint column,const gchar *text - - -gtk_ctree_node_set_pixmap -void -GtkCTree *ctree,GtkCTreeNode *node,gint column,GdkPixmap *pixmap,GdkBitmap *mask - - -gtk_ctree_node_set_pixtext -void -GtkCTree *ctree,GtkCTreeNode *node,gint column,const gchar *text,guint8 spacing,GdkPixmap *pixmap,GdkBitmap *mask - - -gtk_ctree_set_node_info -void -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 - - -gtk_ctree_node_set_shift -void -GtkCTree *ctree,GtkCTreeNode *node,gint column,gint vertical,gint horizontal - - -gtk_ctree_node_set_selectable -void -GtkCTree *ctree,GtkCTreeNode *node,gboolean selectable - - -gtk_ctree_node_get_selectable -gboolean -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_node_get_cell_type -GtkCellType -GtkCTree *ctree,GtkCTreeNode *node,gint column - - -gtk_ctree_node_get_text -gint -GtkCTree *ctree,GtkCTreeNode *node,gint column,gchar **text - - -gtk_ctree_node_get_pixmap -gint -GtkCTree *ctree,GtkCTreeNode *node,gint column,GdkPixmap **pixmap,GdkBitmap **mask - - -gtk_ctree_node_get_pixtext -gint -GtkCTree *ctree,GtkCTreeNode *node,gint column,gchar **text,guint8 *spacing,GdkPixmap **pixmap,GdkBitmap **mask - - -gtk_ctree_get_node_info -gint -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 - - -gtk_ctree_node_set_row_style -void -GtkCTree *ctree,GtkCTreeNode *node,GtkStyle *style - - -gtk_ctree_node_get_row_style -GtkStyle * -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_node_set_cell_style -void -GtkCTree *ctree,GtkCTreeNode *node,gint column,GtkStyle *style - - -gtk_ctree_node_get_cell_style -GtkStyle * -GtkCTree *ctree,GtkCTreeNode *node,gint column - - -gtk_ctree_node_set_foreground -void -GtkCTree *ctree,GtkCTreeNode *node,GdkColor *color - - -gtk_ctree_node_set_background -void -GtkCTree *ctree,GtkCTreeNode *node,GdkColor *color - - -gtk_ctree_node_set_row_data -void -GtkCTree *ctree,GtkCTreeNode *node,gpointer data - - -gtk_ctree_node_set_row_data_full -void -GtkCTree *ctree,GtkCTreeNode *node,gpointer data,GtkDestroyNotify destroy - - -gtk_ctree_node_get_row_data -gpointer -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_node_moveto -void -GtkCTree *ctree,GtkCTreeNode *node,gint column,gfloat row_align,gfloat col_align - - -gtk_ctree_node_is_visible -GtkVisibility -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_set_indent -void -GtkCTree *ctree,gint indent - - -gtk_ctree_set_spacing -void -GtkCTree *ctree,gint spacing - - -gtk_ctree_set_show_stub -void -GtkCTree *ctree,gboolean show_stub - - -gtk_ctree_set_line_style -void -GtkCTree *ctree,GtkCTreeLineStyle line_style - - -gtk_ctree_set_expander_style -void -GtkCTree *ctree,GtkCTreeExpanderStyle expander_style - - -gtk_ctree_set_drag_compare_func -void -GtkCTree *ctree,GtkCTreeCompareDragFunc cmp_func - - -gtk_ctree_sort_node -void -GtkCTree *ctree,GtkCTreeNode *node - - -gtk_ctree_sort_recursive -void -GtkCTree *ctree,GtkCTreeNode *node - - -GTK_TYPE_CURVE -#define GTK_TYPE_CURVE (gtk_curve_get_type ()) - - -GTK_CURVE -#define GTK_CURVE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CURVE, GtkCurve)) - - -GTK_CURVE_CLASS -#define GTK_CURVE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CURVE, GtkCurveClass)) - - -GTK_IS_CURVE -#define GTK_IS_CURVE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CURVE)) - - -GTK_IS_CURVE_CLASS -#define GTK_IS_CURVE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CURVE)) - - -GtkCurve - - -GtkCurveClass - - -GtkCurve -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 */ -}; - - -gtk_curve_get_type -GtkType -void - - -gtk_curve_new -GtkWidget * -void - - -gtk_curve_reset -void -GtkCurve *curve - - -gtk_curve_set_gamma -void -GtkCurve *curve, gfloat gamma - - -gtk_curve_set_range -void -GtkCurve *curve,gfloat min_x, gfloat max_x,gfloat min_y, gfloat max_y - - -gtk_curve_get_vector -void -GtkCurve *curve,int veclen, gfloat vector[] - - -gtk_curve_set_vector -void -GtkCurve *curve,int veclen, gfloat vector[] - - -gtk_curve_set_curve_type -void -GtkCurve *curve, GtkCurveType type - - -GTK_TYPE_DATA -#define GTK_TYPE_DATA (gtk_data_get_type ()) - - -GTK_DATA -#define GTK_DATA(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_DATA, GtkData)) - - -GTK_DATA_CLASS -#define GTK_DATA_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_DATA, GtkDataClass)) - - -GTK_IS_DATA -#define GTK_IS_DATA(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_DATA)) - - -GTK_IS_DATA_CLASS -#define GTK_IS_DATA_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_DATA)) - - -GtkData - - -GtkDataClass - - -GtkData -struct GtkData -{ - GtkObject object; -}; - - -gtk_data_get_type -GtkType -void - - -GtkDebugFlag -typedef enum { - GTK_DEBUG_OBJECTS = 1 << 0, - GTK_DEBUG_MISC = 1 << 1, - GTK_DEBUG_SIGNALS = 1 << 2, - GTK_DEBUG_DND = 1 << 3, - GTK_DEBUG_PLUGSOCKET = 1 << 4 -} GtkDebugFlag; - - -GTK_NOTE -#define GTK_NOTE(type,action) G_STMT_START { \ - if (gtk_debug_flags & GTK_DEBUG_##type) \ - { action; }; } G_STMT_END - - -GTK_NOTE -#define GTK_NOTE(type, action) - - -gtk_debug_flags -extern guint gtk_debug_flags; - - -GTK_TYPE_DIALOG -#define GTK_TYPE_DIALOG (gtk_dialog_get_type ()) - - -GTK_DIALOG -#define GTK_DIALOG(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_DIALOG, GtkDialog)) - - -GTK_DIALOG_CLASS -#define GTK_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_DIALOG, GtkDialogClass)) - - -GTK_IS_DIALOG -#define GTK_IS_DIALOG(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_DIALOG)) - - -GTK_IS_DIALOG_CLASS -#define GTK_IS_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_DIALOG)) - - -GtkDialog - - -GtkDialogClass - - -GtkDialogButton - - -GtkDialog -struct GtkDialog -{ - GtkWindow window; - - GtkWidget *vbox; - GtkWidget *action_area; -}; - - -gtk_dialog_get_type -GtkType -void - - -gtk_dialog_new -GtkWidget * -void - - -GtkDestDefaults -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; - - -GtkTargetFlags -typedef enum { - GTK_TARGET_SAME_APP = 1 << 0, /*< nick=same-app >*/ - GTK_TARGET_SAME_WIDGET = 1 << 1 /*< nick=same-widget >*/ -} GtkTargetFlags; - - -gtk_drag_get_data -void -GtkWidget *widget,GdkDragContext *context,GdkAtom target,guint32 time - - -gtk_drag_finish -void -GdkDragContext *context,gboolean success,gboolean del,guint32 time - - -gtk_drag_get_source_widget -GtkWidget * -GdkDragContext *context - - -gtk_drag_highlight -void -GtkWidget *widget - - -gtk_drag_unhighlight -void -GtkWidget *widget - - -gtk_drag_dest_set -void -GtkWidget *widget,GtkDestDefaults flags,const GtkTargetEntry *targets,gint n_targets,GdkDragAction actions - - -gtk_drag_dest_set_proxy -void -GtkWidget *widget,GdkWindow *proxy_window,GdkDragProtocol protocol,gboolean use_coordinates - - -gtk_drag_dest_unset -void -GtkWidget *widget - - -gtk_drag_source_set -void -GtkWidget *widget,GdkModifierType start_button_mask,const GtkTargetEntry *targets,gint n_targets,GdkDragAction actions - - -gtk_drag_source_unset -void -GtkWidget *widget - - -gtk_drag_source_set_icon -void -GtkWidget *widget,GdkColormap *colormap,GdkPixmap *pixmap,GdkBitmap *mask - - -gtk_drag_begin -GdkDragContext * -GtkWidget *widget,GtkTargetList *targets,GdkDragAction actions,gint button,GdkEvent *event - - -gtk_drag_set_icon_widget -void -GdkDragContext *context,GtkWidget *widget,gint hot_x,gint hot_y - - -gtk_drag_set_icon_pixmap -void -GdkDragContext *context,GdkColormap *colormap,GdkPixmap *pixmap,GdkBitmap *mask,gint hot_x,gint hot_y - - -gtk_drag_set_icon_default -void -GdkDragContext *context - - -gtk_drag_set_default_icon -void -GdkColormap *colormap,GdkPixmap *pixmap,GdkBitmap *mask,gint hot_x,gint hot_y - - -gtk_drag_source_handle_event -void -GtkWidget *widget,GdkEvent *event - - -gtk_drag_dest_handle_event -void -GtkWidget *toplevel,GdkEvent *event - - -GTK_TYPE_DRAWING_AREA -#define GTK_TYPE_DRAWING_AREA (gtk_drawing_area_get_type ()) - - -GTK_DRAWING_AREA -#define GTK_DRAWING_AREA(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_DRAWING_AREA, GtkDrawingArea)) - - -GTK_DRAWING_AREA_CLASS -#define GTK_DRAWING_AREA_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_DRAWING_AREA, GtkDrawingAreaClass)) - - -GTK_IS_DRAWING_AREA -#define GTK_IS_DRAWING_AREA(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_DRAWING_AREA)) - - -GTK_IS_DRAWING_AREA_CLASS -#define GTK_IS_DRAWING_AREA_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_DRAWING_AREA)) - - -GtkDrawingArea - - -GtkDrawingAreaClass - - -GtkDrawingArea -struct GtkDrawingArea -{ - GtkWidget widget; - - gpointer draw_data; -}; - - -gtk_drawing_area_get_type -GtkType -void - - -gtk_drawing_area_new -GtkWidget * -void - - -gtk_drawing_area_size -void -GtkDrawingArea *darea,gint width,gint height - - -GTK_TYPE_EDITABLE -#define GTK_TYPE_EDITABLE (gtk_editable_get_type ()) - - -GTK_EDITABLE -#define GTK_EDITABLE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_EDITABLE, GtkEditable)) - - -GTK_EDITABLE_CLASS -#define GTK_EDITABLE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_EDITABLE, GtkEditableClass)) - - -GTK_IS_EDITABLE -#define GTK_IS_EDITABLE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_EDITABLE)) - - -GTK_IS_EDITABLE_CLASS -#define GTK_IS_EDITABLE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_EDITABLE)) - - -GtkEditable - - -GtkEditableClass - - -GtkTextFunction -void -GtkEditable *editable, guint32 time - - -GtkEditable -struct GtkEditable -{ - 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; - GdkIC *ic; - GdkICAttr *ic_attr; - - gchar *clipboard_text; -}; - - -gtk_editable_get_type -GtkType -void - - -gtk_editable_select_region -void -GtkEditable *editable,gint start,gint end - - -gtk_editable_insert_text -void -GtkEditable *editable,const gchar *new_text,gint new_text_length,gint *position - - -gtk_editable_delete_text -void -GtkEditable *editable,gint start_pos,gint end_pos - - -gtk_editable_get_chars -gchar * -GtkEditable *editable,gint start_pos,gint end_pos - - -gtk_editable_cut_clipboard -void -GtkEditable *editable - - -gtk_editable_copy_clipboard -void -GtkEditable *editable - - -gtk_editable_paste_clipboard -void -GtkEditable *editable - - -gtk_editable_claim_selection -void -GtkEditable *editable,gboolean claim,guint32 time - - -gtk_editable_delete_selection -void -GtkEditable *editable - - -gtk_editable_changed -void -GtkEditable *editable - - -gtk_editable_set_position -void -GtkEditable *editable,gint position - - -gtk_editable_get_position -gint -GtkEditable *editable - - -gtk_editable_set_editable -void -GtkEditable *editable,gboolean is_editable - - -GTK_TYPE_ENTRY -#define GTK_TYPE_ENTRY (gtk_entry_get_type ()) - - -GTK_ENTRY -#define GTK_ENTRY(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) - - -GTK_ENTRY_CLASS -#define GTK_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_ENTRY, GtkEntryClass)) - - -GTK_IS_ENTRY -#define GTK_IS_ENTRY(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_ENTRY)) - - -GTK_IS_ENTRY_CLASS -#define GTK_IS_ENTRY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ENTRY)) - - -GtkEntry - - -GtkEntryClass - - -GtkEntry -struct GtkEntry -{ - GtkEditable editable; - - GdkWindow *text_area; - GdkPixmap *backing_pixmap; - GdkCursor *cursor; - GdkWChar *text; - - guint16 text_size; /* allocated size */ - guint16 text_length; /* length in use */ - guint16 text_max_length; - gint scroll_offset; - guint visible : 1; /* deprecated - see editable->visible */ - guint32 timer; - guint button; - - /* The x-offset of each character (including the last insertion position) - * only valid when the widget is realized */ - gint *char_offset; - - /* Same as 'text', but in multibyte */ - gchar *text_mb; - /* If true, 'text' and 'text_mb' are not coherent */ - guint text_mb_dirty : 1; - /* If true, we use the encoding of wchar_t as the encoding of 'text'. - * Otherwise we use the encoding of multi-byte characters instead. */ - guint use_wchar : 1; -}; - - -gtk_entry_get_type -GtkType -void - - -gtk_entry_new -GtkWidget * -void - - -gtk_entry_new_with_max_length -GtkWidget * -guint16 max - - -gtk_entry_set_text -void -GtkEntry *entry,const gchar *text - - -gtk_entry_append_text -void -GtkEntry *entry,const gchar *text - - -gtk_entry_prepend_text -void -GtkEntry *entry,const gchar *text - - -gtk_entry_set_position -void -GtkEntry *entry,gint position - - -gtk_entry_get_text -gchar * -GtkEntry *entry - - -gtk_entry_select_region -void -GtkEntry *entry,gint start,gint end - - -gtk_entry_set_visibility -void -GtkEntry *entry,gboolean visible - - -gtk_entry_set_editable -void -GtkEntry *entry,gboolean editable - - -gtk_entry_set_max_length -void -GtkEntry *entry,guint16 max - - -GtkArrowType -typedef enum -{ - GTK_ARROW_UP, - GTK_ARROW_DOWN, - GTK_ARROW_LEFT, - GTK_ARROW_RIGHT -} GtkArrowType; - - -GtkAttachOptions -typedef enum -{ - GTK_EXPAND = 1 << 0, - GTK_SHRINK = 1 << 1, - GTK_FILL = 1 << 2 -} GtkAttachOptions; - - -GtkButtonBoxStyle -typedef enum -{ - GTK_BUTTONBOX_DEFAULT_STYLE, - GTK_BUTTONBOX_SPREAD, - GTK_BUTTONBOX_EDGE, - GTK_BUTTONBOX_START, - GTK_BUTTONBOX_END -} GtkButtonBoxStyle; - - -GtkCurveType -typedef enum -{ - GTK_CURVE_TYPE_LINEAR, /* linear interpolation */ - GTK_CURVE_TYPE_SPLINE, /* spline interpolation */ - GTK_CURVE_TYPE_FREE /* free form curve */ -} GtkCurveType; - - -GtkDirectionType -typedef enum -{ - GTK_DIR_TAB_FORWARD, - GTK_DIR_TAB_BACKWARD, - GTK_DIR_UP, - GTK_DIR_DOWN, - GTK_DIR_LEFT, - GTK_DIR_RIGHT -} GtkDirectionType; - - -GtkJustification -typedef enum -{ - GTK_JUSTIFY_LEFT, - GTK_JUSTIFY_RIGHT, - GTK_JUSTIFY_CENTER, - GTK_JUSTIFY_FILL -} GtkJustification; - - -GtkMatchType -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; - - -GtkMenuDirectionType -typedef enum -{ - GTK_MENU_DIR_PARENT, - GTK_MENU_DIR_CHILD, - GTK_MENU_DIR_NEXT, - GTK_MENU_DIR_PREV -} GtkMenuDirectionType; - - -GtkMenuFactoryType -typedef enum -{ - GTK_MENU_FACTORY_MENU, - GTK_MENU_FACTORY_MENU_BAR, - GTK_MENU_FACTORY_OPTION_MENU -} GtkMenuFactoryType; - - -GtkMetricType -typedef enum -{ - GTK_PIXELS, - GTK_INCHES, - GTK_CENTIMETERS -} GtkMetricType; - - -GtkOrientation -typedef enum -{ - GTK_ORIENTATION_HORIZONTAL, - GTK_ORIENTATION_VERTICAL -} GtkOrientation; - - -GtkCornerType -typedef enum -{ - GTK_CORNER_TOP_LEFT, - GTK_CORNER_BOTTOM_LEFT, - GTK_CORNER_TOP_RIGHT, - GTK_CORNER_BOTTOM_RIGHT -} GtkCornerType; - - -GtkPackType -typedef enum -{ - GTK_PACK_START, - GTK_PACK_END -} GtkPackType; - - -GtkPathPriorityType -typedef enum -{ - GTK_PATH_PRIO_LOWEST = 0, - GTK_PATH_PRIO_GTK = 4, - GTK_PATH_PRIO_APPLICATION = 8, - GTK_PATH_PRIO_RC = 12, - GTK_PATH_PRIO_HIGHEST = 15, - GTK_PATH_PRIO_MASK = 0x0f -} GtkPathPriorityType; - - -GtkPathType -typedef enum -{ - GTK_PATH_WIDGET, - GTK_PATH_WIDGET_CLASS, - GTK_PATH_CLASS -} GtkPathType; - - -GtkPolicyType -typedef enum -{ - GTK_POLICY_ALWAYS, - GTK_POLICY_AUTOMATIC, - GTK_POLICY_NEVER -} GtkPolicyType; - - -GtkPositionType -typedef enum -{ - GTK_POS_LEFT, - GTK_POS_RIGHT, - GTK_POS_TOP, - GTK_POS_BOTTOM -} GtkPositionType; - - -GtkPreviewType -typedef enum -{ - GTK_PREVIEW_COLOR, - GTK_PREVIEW_GRAYSCALE -} GtkPreviewType; - - -GtkReliefStyle -typedef enum -{ - GTK_RELIEF_NORMAL, - GTK_RELIEF_HALF, - GTK_RELIEF_NONE -} GtkReliefStyle; - - -GtkResizeMode -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; - - -GtkSignalRunType -typedef enum /*< flags >*/ -{ - GTK_RUN_FIRST = 1 << 0, - GTK_RUN_LAST = 1 << 1, - GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST), - GTK_RUN_NO_RECURSE = 1 << 2, - GTK_RUN_ACTION = 1 << 3, - GTK_RUN_NO_HOOKS = 1 << 4 -} GtkSignalRunType; - - -GtkScrollType -typedef enum -{ - GTK_SCROLL_NONE, - GTK_SCROLL_STEP_BACKWARD, - GTK_SCROLL_STEP_FORWARD, - GTK_SCROLL_PAGE_BACKWARD, - GTK_SCROLL_PAGE_FORWARD, - GTK_SCROLL_JUMP -} GtkScrollType; - - -GtkSelectionMode -typedef enum -{ - GTK_SELECTION_SINGLE, - GTK_SELECTION_BROWSE, - GTK_SELECTION_MULTIPLE, - GTK_SELECTION_EXTENDED -} GtkSelectionMode; - - -GtkShadowType -typedef enum -{ - GTK_SHADOW_NONE, - GTK_SHADOW_IN, - GTK_SHADOW_OUT, - GTK_SHADOW_ETCHED_IN, - GTK_SHADOW_ETCHED_OUT -} GtkShadowType; - - -GtkStateType -typedef enum -{ - GTK_STATE_NORMAL, - GTK_STATE_ACTIVE, - GTK_STATE_PRELIGHT, - GTK_STATE_SELECTED, - GTK_STATE_INSENSITIVE -} GtkStateType; - - -GtkSubmenuDirection -typedef enum -{ - GTK_DIRECTION_LEFT, - GTK_DIRECTION_RIGHT -} GtkSubmenuDirection; - - -GtkSubmenuPlacement -typedef enum -{ - GTK_TOP_BOTTOM, - GTK_LEFT_RIGHT -} GtkSubmenuPlacement; - - -GtkToolbarStyle -typedef enum -{ - GTK_TOOLBAR_ICONS, - GTK_TOOLBAR_TEXT, - GTK_TOOLBAR_BOTH -} GtkToolbarStyle; - - -GtkTroughType -typedef enum -{ - GTK_TROUGH_NONE, - GTK_TROUGH_START, - GTK_TROUGH_END, - GTK_TROUGH_JUMP -} GtkTroughType; - - -GtkUpdateType -typedef enum -{ - GTK_UPDATE_CONTINUOUS, - GTK_UPDATE_DISCONTINUOUS, - GTK_UPDATE_DELAYED -} GtkUpdateType; - - -GtkVisibility -typedef enum -{ - GTK_VISIBILITY_NONE, - GTK_VISIBILITY_PARTIAL, - GTK_VISIBILITY_FULL -} GtkVisibility; - - -GtkWindowPosition -typedef enum -{ - GTK_WIN_POS_NONE, - GTK_WIN_POS_CENTER, - GTK_WIN_POS_MOUSE -} GtkWindowPosition; - - -GtkWindowType -typedef enum -{ - GTK_WINDOW_TOPLEVEL, - GTK_WINDOW_DIALOG, - GTK_WINDOW_POPUP -} GtkWindowType; - - -GtkSortType -typedef enum -{ - GTK_SORT_ASCENDING, - GTK_SORT_DESCENDING -} GtkSortType; - - -GTK_TYPE_EVENT_BOX -#define GTK_TYPE_EVENT_BOX (gtk_event_box_get_type ()) - - -GTK_EVENT_BOX -#define GTK_EVENT_BOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_EVENT_BOX, GtkEventBox)) - - -GTK_EVENT_BOX_CLASS -#define GTK_EVENT_BOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_EVENT_BOX, GtkEventBoxClass)) - - -GTK_IS_EVENT_BOX -#define GTK_IS_EVENT_BOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_EVENT_BOX)) - - -GTK_IS_EVENT_BOX_CLASS -#define GTK_IS_EVENT_BOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_EVENT_BOX)) - - -GtkEventBox - - -GtkEventBoxClass - - -GtkEventBox -struct GtkEventBox -{ - GtkBin bin; -}; - - -gtk_event_box_get_type -GtkType -void - - -gtk_event_box_new -GtkWidget * -void - - -GTK_MAJOR_VERSION -#define GTK_MAJOR_VERSION (1) - - -GTK_MINOR_VERSION -#define GTK_MINOR_VERSION (2) - - -GTK_MICRO_VERSION -#define GTK_MICRO_VERSION (3) - - -GTK_BINARY_AGE -#define GTK_BINARY_AGE (3) - - -GTK_INTERFACE_AGE -#define GTK_INTERFACE_AGE (1) - - -GTK_CHECK_VERSION -#define GTK_CHECK_VERSION(major,minor,micro) \ - (GTK_MAJOR_VERSION > (major) || \ - (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION > (minor)) || \ - (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION == (minor) && \ - GTK_MICRO_VERSION >= (micro))) - - -GTK_HAVE_CONTAINER_FOCUS_ADJUSTMENTS -#define GTK_HAVE_CONTAINER_FOCUS_ADJUSTMENTS 1-0-1 - - -GTK_HAVE_SIGNAL_INIT -#define GTK_HAVE_SIGNAL_INIT 1-0-2 - - -GTK_HAVE_FEATURES_1_1_0 -#define GTK_HAVE_FEATURES_1_1_0 1-1-0 - - -GTK_HAVE_FEATURES_1_1_2 -#define GTK_HAVE_FEATURES_1_1_2 1-1-2 - - -GTK_HAVE_FEATURES_1_1_4 -#define GTK_HAVE_FEATURES_1_1_4 1-1-4 - - -GTK_HAVE_FEATURES_1_1_5 -#define GTK_HAVE_FEATURES_1_1_5 1-1-5 - - -GTK_HAVE_FEATURES_1_1_6 -#define GTK_HAVE_FEATURES_1_1_6 1-1-6 - - -GTK_HAVE_FEATURES_1_1_7 -#define GTK_HAVE_FEATURES_1_1_7 1-1-7 - - -GTK_HAVE_FEATURES_1_1_8 -#define GTK_HAVE_FEATURES_1_1_8 1-1-8 - - -GTK_HAVE_FEATURES_1_1_9 -#define GTK_HAVE_FEATURES_1_1_9 1-1-9 - - -GTK_HAVE_FEATURES_1_1_10 -#define GTK_HAVE_FEATURES_1_1_10 1-1-10 - - -GTK_HAVE_FEATURES_1_1_11 -#define GTK_HAVE_FEATURES_1_1_11 1-1-11 - - -GTK_HAVE_FEATURES_1_1_12 -#define GTK_HAVE_FEATURES_1_1_12 1-1-12 - - -GTK_HAVE_FEATURES_1_1_13 -#define GTK_HAVE_FEATURES_1_1_13 1-1-13 - - -GTK_HAVE_FEATURES_1_1_14 -#define GTK_HAVE_FEATURES_1_1_14 1-1-14 - - -GTK_TYPE_FILE_SELECTION -#define GTK_TYPE_FILE_SELECTION (gtk_file_selection_get_type ()) - - -GTK_FILE_SELECTION -#define GTK_FILE_SELECTION(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_FILE_SELECTION, GtkFileSelection)) - - -GTK_FILE_SELECTION_CLASS -#define GTK_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_SELECTION, GtkFileSelectionClass)) - - -GTK_IS_FILE_SELECTION -#define GTK_IS_FILE_SELECTION(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_FILE_SELECTION)) - - -GTK_IS_FILE_SELECTION_CLASS -#define GTK_IS_FILE_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_SELECTION)) - - -GtkFileSelection - - -GtkFileSelectionClass - - -GtkFileSelection -struct GtkFileSelection -{ - GtkWindow window; - - 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; - -}; - - -gtk_file_selection_get_type -GtkType -void - - -gtk_file_selection_new -GtkWidget * -const gchar *title - - -gtk_file_selection_set_filename -void -GtkFileSelection *filesel,const gchar *filename - - -gtk_file_selection_get_filename -gchar * -GtkFileSelection *filesel - - -gtk_file_selection_complete -void -GtkFileSelection *filesel,const gchar *pattern - - -gtk_file_selection_show_fileop_buttons -void -GtkFileSelection *filesel - - -gtk_file_selection_hide_fileop_buttons -void -GtkFileSelection *filesel - - -GTK_TYPE_FIXED -#define GTK_TYPE_FIXED (gtk_fixed_get_type ()) - - -GTK_FIXED -#define GTK_FIXED(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_FIXED, GtkFixed)) - - -GTK_FIXED_CLASS -#define GTK_FIXED_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_FIXED, GtkFixedClass)) - - -GTK_IS_FIXED -#define GTK_IS_FIXED(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_FIXED)) - - -GTK_IS_FIXED_CLASS -#define GTK_IS_FIXED_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FIXED)) - - -GtkFixed - - -GtkFixedClass - - -GtkFixedChild - - -GtkFixed -struct GtkFixed -{ - GtkContainer container; - - GList *children; -}; - - -GtkFixedChild -struct GtkFixedChild -{ - GtkWidget *widget; - gint16 x; - gint16 y; -}; - - -gtk_fixed_get_type -GtkType -void - - -gtk_fixed_new -GtkWidget * -void - - -gtk_fixed_put -void -GtkFixed *fixed,GtkWidget *widget,gint16 x,gint16 y - - -gtk_fixed_move -void -GtkFixed *fixed,GtkWidget *widget,gint16 x,gint16 y - - -GTK_TYPE_FONT_SELECTION -#define GTK_TYPE_FONT_SELECTION (gtk_font_selection_get_type ()) - - -GTK_FONT_SELECTION -#define GTK_FONT_SELECTION(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_FONT_SELECTION, GtkFontSelection)) - - -GTK_FONT_SELECTION_CLASS -#define GTK_FONT_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_SELECTION, GtkFontSelectionClass)) - - -GTK_IS_FONT_SELECTION -#define GTK_IS_FONT_SELECTION(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_FONT_SELECTION)) - - -GTK_IS_FONT_SELECTION_CLASS -#define GTK_IS_FONT_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_SELECTION)) - - -GTK_TYPE_FONT_SELECTION_DIALOG -#define GTK_TYPE_FONT_SELECTION_DIALOG (gtk_font_selection_dialog_get_type ()) - - -GTK_FONT_SELECTION_DIALOG -#define GTK_FONT_SELECTION_DIALOG(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialog)) - - -GTK_FONT_SELECTION_DIALOG_CLASS -#define GTK_FONT_SELECTION_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialogClass)) - - -GTK_IS_FONT_SELECTION_DIALOG -#define GTK_IS_FONT_SELECTION_DIALOG(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_FONT_SELECTION_DIALOG)) - - -GTK_IS_FONT_SELECTION_DIALOG_CLASS -#define GTK_IS_FONT_SELECTION_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_SELECTION_DIALOG)) - - -GtkFontSelection - - -GtkFontSelectionClass - - -GtkFontSelectionDialog - - -GtkFontSelectionDialogClass - - -GTK_NUM_FONT_PROPERTIES -#define GTK_NUM_FONT_PROPERTIES 6 - - -GTK_NUM_STYLE_PROPERTIES -#define GTK_NUM_STYLE_PROPERTIES 5 - - -GtkFontMetricType -typedef enum -{ - GTK_FONT_METRIC_PIXELS, - GTK_FONT_METRIC_POINTS -} GtkFontMetricType; - - -GtkFontType -typedef enum -{ - GTK_FONT_BITMAP = 1 << 0, - GTK_FONT_SCALABLE = 1 << 1, - GTK_FONT_SCALABLE_BITMAP = 1 << 2, - - GTK_FONT_ALL = 0x07 -} GtkFontType; - - -GTK_NUM_FONT_FILTERS -#define GTK_NUM_FONT_FILTERS 2 - - -GtkFontFilterType -typedef enum -{ - GTK_FONT_FILTER_BASE, - GTK_FONT_FILTER_USER -} GtkFontFilterType; - - -GtkFontFilter - - -GtkFontFilter -struct GtkFontFilter -{ - gint font_type; - guint16 *property_filters[GTK_NUM_FONT_PROPERTIES]; - guint16 property_nfilters[GTK_NUM_FONT_PROPERTIES]; -}; - - -GtkFontSelection -struct GtkFontSelection -{ - GtkNotebook notebook; - - /* These are on the font page. */ - GtkWidget *main_vbox; - GtkWidget *font_label; - GtkWidget *font_entry; - GtkWidget *font_clist; - GtkWidget *font_style_entry; - GtkWidget *font_style_clist; - GtkWidget *size_entry; - GtkWidget *size_clist; - GtkWidget *pixels_button; - GtkWidget *points_button; - GtkWidget *filter_button; - GtkWidget *preview_entry; - GtkWidget *message_label; - - /* These are on the font info page. */ - GtkWidget *info_vbox; - GtkWidget *info_clist; - GtkWidget *requested_font_name; - GtkWidget *actual_font_name; - - /* These are on the filter page. */ - GtkWidget *filter_vbox; - GtkWidget *type_bitmaps_button; - GtkWidget *type_scalable_button; - GtkWidget *type_scaled_bitmaps_button; - GtkWidget *filter_clists[GTK_NUM_FONT_PROPERTIES]; - - GdkFont *font; - gint font_index; - gint style; - GtkFontMetricType metric; - /* The size is either in pixels or deci-points, depending on the metric. */ - gint size; - - /* This is the last size explicitly selected. When the user selects different - fonts we try to find the nearest size to this. */ - gint selected_size; - - /* These are the current property settings. They are indexes into the - strings in the GtkFontSelInfo properties array. */ - guint16 property_values[GTK_NUM_STYLE_PROPERTIES]; - - /* These are the base and user font filters. */ - GtkFontFilter filters[GTK_NUM_FONT_FILTERS]; -}; - - -GtkFontSelectionDialog -struct GtkFontSelectionDialog -{ - GtkWindow window; - - GtkWidget *fontsel; - - GtkWidget *main_vbox; - GtkWidget *action_area; - GtkWidget *ok_button; - /* The 'Apply' button is not shown by default but you can show/hide it. */ - GtkWidget *apply_button; - GtkWidget *cancel_button; - - /* If the user changes the width of the dialog, we turn auto-shrink off. */ - gint dialog_width; - gboolean auto_resize; -}; - - -gtk_font_selection_get_type -GtkType -void - - -gtk_font_selection_new -GtkWidget * -void - - -gtk_font_selection_get_font_name -gchar * -GtkFontSelection *fontsel - - -gtk_font_selection_get_font -GdkFont * -GtkFontSelection *fontsel - - -gtk_font_selection_set_font_name -gboolean -GtkFontSelection *fontsel,const gchar *fontname - - -gtk_font_selection_set_filter -void -GtkFontSelection *fontsel,GtkFontFilterType filter_type,GtkFontType font_type,gchar **foundries,gchar **weights,gchar **slants,gchar **setwidths,gchar **spacings,gchar **charsets - - -gtk_font_selection_get_preview_text -gchar * -GtkFontSelection *fontsel - - -gtk_font_selection_set_preview_text -void -GtkFontSelection *fontsel,const gchar *text - - -gtk_font_selection_dialog_get_type -GtkType -void - - -gtk_font_selection_dialog_new -GtkWidget * -const gchar *title - - -gtk_font_selection_dialog_get_font_name -gchar * -GtkFontSelectionDialog *fsd - - -gtk_font_selection_dialog_get_font -GdkFont * -GtkFontSelectionDialog *fsd - - -gtk_font_selection_dialog_set_font_name -gboolean -GtkFontSelectionDialog *fsd,const gchar *fontname - - -gtk_font_selection_dialog_set_filter -void -GtkFontSelectionDialog *fsd,GtkFontFilterType filter_type,GtkFontType font_type,gchar **foundries,gchar **weights,gchar **slants,gchar **setwidths,gchar **spacings,gchar **charsets - - -gtk_font_selection_dialog_get_preview_text -gchar * -GtkFontSelectionDialog *fsd - - -gtk_font_selection_dialog_set_preview_text -void -GtkFontSelectionDialog *fsd,const gchar *text - - -GTK_TYPE_FRAME -#define GTK_TYPE_FRAME (gtk_frame_get_type ()) - - -GTK_FRAME -#define GTK_FRAME(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_FRAME, GtkFrame)) - - -GTK_FRAME_CLASS -#define GTK_FRAME_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_FRAME, GtkFrameClass)) - - -GTK_IS_FRAME -#define GTK_IS_FRAME(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_FRAME)) - - -GTK_IS_FRAME_CLASS -#define GTK_IS_FRAME_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FRAME)) - - -GtkFrame - - -GtkFrameClass - - -GtkFrame -struct GtkFrame -{ - GtkBin bin; - - gchar *label; - gint16 shadow_type; - gint16 label_width; - gint16 label_height; - gfloat label_xalign; - gfloat label_yalign; -}; - - -gtk_frame_get_type -GtkType -void - - -gtk_frame_new -GtkWidget * -const gchar *label - - -gtk_frame_set_label -void -GtkFrame *frame,const gchar *label - - -gtk_frame_set_label_align -void -GtkFrame *frame,gfloat xalign,gfloat yalign - - -gtk_frame_set_shadow_type -void -GtkFrame *frame,GtkShadowType type - - -GTK_GAMMA_CURVE -#define GTK_GAMMA_CURVE(obj) \ - GTK_CHECK_CAST (obj, gtk_gamma_curve_get_type (), GtkGammaCurve) - - -GTK_GAMMA_CURVE_CLASS -#define GTK_GAMMA_CURVE_CLASS(klass) \ - GTK_CHECK_CLASS_CAST (klass, gtk_gamma_curve_get_type, GtkGammaCurveClass) - - -GTK_IS_GAMMA_CURVE -#define GTK_IS_GAMMA_CURVE(obj) \ - GTK_CHECK_TYPE (obj, gtk_gamma_curve_get_type ()) - - -GtkGammaCurve - - -GtkGammaCurveClass - - -GtkGammaCurve -struct GtkGammaCurve -{ - GtkVBox vbox; - - GtkWidget *table; - GtkWidget *curve; - GtkWidget *button[5]; /* spline, linear, free, gamma, reset */ - - gfloat gamma; - GtkWidget *gamma_dialog; - GtkWidget *gamma_text; -}; - - -gtk_gamma_curve_get_type -guint -void - - -gtk_gamma_curve_new -GtkWidget * -void - - -gtk_gc_get -GdkGC * -gint depth,GdkColormap *colormap,GdkGCValues *values,GdkGCValuesMask values_mask - - -gtk_gc_release -void -GdkGC *gc - - -GTK_HANDLE_BOX -#define GTK_HANDLE_BOX(obj) GTK_CHECK_CAST (obj, gtk_handle_box_get_type (), GtkHandleBox) - - -GTK_HANDLE_BOX_CLASS -#define GTK_HANDLE_BOX_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_handle_box_get_type (), GtkHandleBoxClass) - - -GTK_IS_HANDLE_BOX -#define GTK_IS_HANDLE_BOX(obj) GTK_CHECK_TYPE (obj, gtk_handle_box_get_type ()) - - -GtkHandleBox - - -GtkHandleBoxClass - - -GtkHandleBox -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; - - gint 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; -}; - - -gtk_handle_box_get_type -guint -void - - -gtk_handle_box_new -GtkWidget * -void - - -gtk_handle_box_set_shadow_type -void -GtkHandleBox *handle_box,GtkShadowType type - - -gtk_handle_box_set_handle_position -void -GtkHandleBox *handle_box,GtkPositionType position - - -gtk_handle_box_set_snap_edge -void -GtkHandleBox *handle_box,GtkPositionType edge - - -GTK_HBUTTON_BOX -#define GTK_HBUTTON_BOX(obj) GTK_CHECK_CAST (obj, gtk_hbutton_box_get_type (), GtkHButtonBox) - - -GTK_HBUTTON_BOX_CLASS -#define GTK_HBUTTON_BOX_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_hbutton_box_get_type (), GtkHButtonBoxClass) - - -GTK_IS_HBUTTON_BOX -#define GTK_IS_HBUTTON_BOX(obj) GTK_CHECK_TYPE (obj, gtk_hbutton_box_get_type ()) - - -GtkHButtonBox - - -GtkHButtonBoxClass - - -GtkHButtonBox -struct GtkHButtonBox -{ - GtkButtonBox button_box; -}; - - -gtk_hbutton_box_get_type -guint -void - - -gtk_hbutton_box_new -GtkWidget * -void - - -gtk_hbutton_box_get_spacing_default -gint -void - - -gtk_hbutton_box_get_layout_default -GtkButtonBoxStyle -void - - -gtk_hbutton_box_set_spacing_default -void -gint spacing - - -gtk_hbutton_box_set_layout_default -void -GtkButtonBoxStyle layout - - -GTK_TYPE_HBOX -#define GTK_TYPE_HBOX (gtk_hbox_get_type ()) - - -GTK_HBOX -#define GTK_HBOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_HBOX, GtkHBox)) - - -GTK_HBOX_CLASS -#define GTK_HBOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_HBOX, GtkHBoxClass)) - - -GTK_IS_HBOX -#define GTK_IS_HBOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_HBOX)) - - -GTK_IS_HBOX_CLASS -#define GTK_IS_HBOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HBOX)) - - -GtkHBox - - -GtkHBoxClass - - -GtkHBox -struct GtkHBox -{ - GtkBox box; -}; - - -gtk_hbox_get_type -GtkType -void - - -gtk_hbox_new -GtkWidget * -gboolean homogeneous,gint spacing - - -GTK_HPANED -#define GTK_HPANED(obj) GTK_CHECK_CAST (obj, gtk_hpaned_get_type (), GtkHPaned) - - -GTK_HPANED_CLASS -#define GTK_HPANED_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_hpaned_get_type (), GtkHPanedClass) - - -GTK_IS_HPANED -#define GTK_IS_HPANED(obj) GTK_CHECK_TYPE (obj, gtk_hpaned_get_type ()) - - -GtkHPaned - - -GtkHPanedClass - - -GtkHPaned -struct GtkHPaned -{ - GtkPaned paned; -}; - - -gtk_hpaned_get_type -guint -void - - -gtk_hpaned_new -GtkWidget * -void - - -GTK_HRULER -#define GTK_HRULER(obj) GTK_CHECK_CAST (obj, gtk_hruler_get_type (), GtkHRuler) - - -GTK_HRULER_CLASS -#define GTK_HRULER_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_hruler_get_type (), GtkHRulerClass) - - -GTK_IS_HRULER -#define GTK_IS_HRULER(obj) GTK_CHECK_TYPE (obj, gtk_hruler_get_type ()) - - -GtkHRuler - - -GtkHRulerClass - - -GtkHRuler -struct GtkHRuler -{ - GtkRuler ruler; -}; - - -gtk_hruler_get_type -guint -void - - -gtk_hruler_new -GtkWidget * -void - - -GTK_TYPE_HSCALE -#define GTK_TYPE_HSCALE (gtk_hscale_get_type ()) - - -GTK_HSCALE -#define GTK_HSCALE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_HSCALE, GtkHScale)) - - -GTK_HSCALE_CLASS -#define GTK_HSCALE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSCALE, GtkHScaleClass)) - - -GTK_IS_HSCALE -#define GTK_IS_HSCALE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_HSCALE)) - - -GTK_IS_HSCALE_CLASS -#define GTK_IS_HSCALE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSCALE)) - - -GtkHScale - - -GtkHScaleClass - - -GtkHScale -struct GtkHScale -{ - GtkScale scale; -}; - - -gtk_hscale_get_type -GtkType -void - - -gtk_hscale_new -GtkWidget * -GtkAdjustment *adjustment - - -GTK_TYPE_HSCROLLBAR -#define GTK_TYPE_HSCROLLBAR (gtk_hscrollbar_get_type ()) - - -GTK_HSCROLLBAR -#define GTK_HSCROLLBAR(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_HSCROLLBAR, GtkHScrollbar)) - - -GTK_HSCROLLBAR_CLASS -#define GTK_HSCROLLBAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSCROLLBAR, GtkHScrollbarClass)) - - -GTK_IS_HSCROLLBAR -#define GTK_IS_HSCROLLBAR(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_HSCROLLBAR)) - - -GTK_IS_HSCROLLBAR_CLASS -#define GTK_IS_HSCROLLBAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSCROLLBAR)) - - -GtkHScrollbar - - -GtkHScrollbarClass - - -GtkHScrollbar -struct GtkHScrollbar -{ - GtkScrollbar scrollbar; -}; - - -gtk_hscrollbar_get_type -GtkType -void - - -gtk_hscrollbar_new -GtkWidget * -GtkAdjustment *adjustment - - -GTK_TYPE_HSEPARATOR -#define GTK_TYPE_HSEPARATOR (gtk_hseparator_get_type ()) - - -GTK_HSEPARATOR -#define GTK_HSEPARATOR(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_HSEPARATOR, GtkHSeparator)) - - -GTK_HSEPARATOR_CLASS -#define GTK_HSEPARATOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSEPARATOR, GtkHSeparatorClass)) - - -GTK_IS_HSEPARATOR -#define GTK_IS_HSEPARATOR(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_HSEPARATOR)) - - -GTK_IS_HSEPARATOR_CLASS -#define GTK_IS_HSEPARATOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSEPARATOR)) - - -GtkHSeparator - - -GtkHSeparatorClass - - -GtkHSeparator -struct GtkHSeparator -{ - GtkSeparator separator; -}; - - -gtk_hseparator_get_type -GtkType -void - - -gtk_hseparator_new -GtkWidget * -void - - -GTK_TYPE_IMAGE -#define GTK_TYPE_IMAGE (gtk_image_get_type ()) - - -GTK_IMAGE -#define GTK_IMAGE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_IMAGE, GtkImage)) - - -GTK_IMAGE_CLASS -#define GTK_IMAGE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMAGE, GtkImageClass)) - - -GTK_IS_IMAGE -#define GTK_IS_IMAGE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_IMAGE)) - - -GTK_IS_IMAGE_CLASS -#define GTK_IS_IMAGE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMAGE)) - - -GtkImage - - -GtkImageClass - - -GtkImage -struct GtkImage -{ - GtkMisc misc; - - GdkImage *image; - GdkBitmap *mask; -}; - - -gtk_image_get_type -GtkType -void - - -gtk_image_new -GtkWidget * -GdkImage *val,GdkBitmap *mask - - -gtk_image_set -void -GtkImage *image,GdkImage *val,GdkBitmap *mask - - -gtk_image_get -void -GtkImage *image,GdkImage **val,GdkBitmap **mask - - -GTK_TYPE_INPUT_DIALOG -#define GTK_TYPE_INPUT_DIALOG (gtk_input_dialog_get_type ()) - - -GTK_INPUT_DIALOG -#define GTK_INPUT_DIALOG(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_INPUT_DIALOG, GtkInputDialog)) - - -GTK_INPUT_DIALOG_CLASS -#define GTK_INPUT_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_INPUT_DIALOG, GtkInputDialogClass)) - - -GTK_IS_INPUT_DIALOG -#define GTK_IS_INPUT_DIALOG(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_INPUT_DIALOG)) - - -GTK_IS_INPUT_DIALOG_CLASS -#define GTK_IS_INPUT_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_INPUT_DIALOG)) - - -GtkInputDialog - - -GtkInputDialogClass - - -GtkInputDialog -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]; - guint32 current_device; - - GtkWidget *keys_list; - GtkWidget *keys_listbox; -}; - - -gtk_input_dialog_get_type -GtkType -void - - -gtk_input_dialog_new -GtkWidget * -void - - -GTK_TYPE_INVISIBLE -#define GTK_TYPE_INVISIBLE (gtk_invisible_get_type ()) - - -GTK_INVISIBLE -#define GTK_INVISIBLE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_INVISIBLE, GtkInvisible)) - - -GTK_INVISIBLE_CLASS -#define GTK_INVISIBLE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_INVISIBLE, GtkInvisibleClass)) - - -GTK_IS_INVISIBLE -#define GTK_IS_INVISIBLE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_INVISIBLE)) - - -GTK_IS_INVISIBLE_CLASS -#define GTK_IS_INVISIBLE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_INVISIBLE)) - - -GtkInvisible - - -GtkInvisibleClass - - -GtkInvisible -struct GtkInvisible -{ - GtkBin bin; -}; - - -gtk_invisible_get_type -GtkType -void - - -gtk_invisible_new -GtkWidget * -void - - -GTK_TYPE_ITEM -#define GTK_TYPE_ITEM (gtk_item_get_type ()) - - -GTK_ITEM -#define GTK_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_ITEM, GtkItem)) - - -GTK_ITEM_CLASS -#define GTK_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_ITEM, GtkItemClass)) - - -GTK_IS_ITEM -#define GTK_IS_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_ITEM)) - - -GTK_IS_ITEM_CLASS -#define GTK_IS_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ITEM)) - - -GtkItem - - -GtkItemClass - - -GtkItem -struct GtkItem -{ - GtkBin bin; -}; - - -gtk_item_get_type -GtkType -void - - -gtk_item_select -void -GtkItem *item - - -gtk_item_deselect -void -GtkItem *item - - -gtk_item_toggle -void -GtkItem *item - - -GtkPrintFunc -void -gpointer func_data, - gchar *str - - -GtkTranslateFunc -gchar * -const gchar *path, - gpointer func_data - - -GtkItemFactoryCallback -void - - - -GtkItemFactoryCallback1 -void -gpointer callback_data, - guint callback_action, - GtkWidget *widget - - -GTK_TYPE_ITEM_FACTORY -#define GTK_TYPE_ITEM_FACTORY (gtk_item_factory_get_type ()) - - -GTK_ITEM_FACTORY -#define GTK_ITEM_FACTORY(object) (GTK_CHECK_CAST (object, GTK_TYPE_ITEM_FACTORY, GtkItemFactory)) - - -GTK_ITEM_FACTORY_CLASS -#define GTK_ITEM_FACTORY_CLASS(klass) (GTK_CHECK_CLASS_CAST (klass, GTK_TYPE_ITEM_FACTORY, GtkItemFactoryClass)) - - -GTK_IS_ITEM_FACTORY -#define GTK_IS_ITEM_FACTORY(object) (GTK_CHECK_TYPE (object, GTK_TYPE_ITEM_FACTORY)) - - -GTK_IS_ITEM_FACTORY_CLASS -#define GTK_IS_ITEM_FACTORY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ITEM_FACTORY)) - - -GtkItemFactory - - -GtkItemFactoryClass - - -GtkItemFactoryEntry - - -GtkItemFactoryItem - - -GtkItemFactory -struct GtkItemFactory -{ - GtkObject object; - - gchar *path; - GtkAccelGroup *accel_group; - GtkWidget *widget; - GSList *items; - - GtkTranslateFunc translate_func; - gpointer translate_data; - GtkDestroyNotify translate_notify; -}; - - -GtkItemFactoryEntry -struct GtkItemFactoryEntry -{ - gchar *path; - gchar *accelerator; - - GtkItemFactoryCallback callback; - guint callback_action; - - /* possible values: - * NULL -> "" - * "" -> "" - * "" -> create a title item - * "<Item>" -> create a simple item - * "<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 - * "<Branch>" -> create an item to hold sub items - * "<LastBranch>" -> create a right justified item to hold sub items - */ - gchar *item_type; -}; -</STRUCT> -<STRUCT> -<NAME>GtkItemFactoryItem</NAME> -struct GtkItemFactoryItem -{ - gchar *path; - guint accelerator_key; - guint accelerator_mods; - guint modified : 1; - guint in_propagation : 1; - gchar *dummy; - - GSList *widgets; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_item_factory_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_new</NAME> -<RETURNS>GtkItemFactory *</RETURNS> -GtkType container_type,const gchar *path,GtkAccelGroup *accel_group -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_construct</NAME> -<RETURNS>void </RETURNS> -GtkItemFactory *ifactory,GtkType container_type,const gchar *path,GtkAccelGroup *accel_group -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_parse_rc</NAME> -<RETURNS>void </RETURNS> -const gchar *file_name -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_parse_rc_string</NAME> -<RETURNS>void </RETURNS> -const gchar *rc_string -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_parse_rc_scanner</NAME> -<RETURNS>void </RETURNS> -GScanner *scanner -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_add_foreign</NAME> -<RETURNS>void </RETURNS> -GtkWidget *accel_widget,const gchar *full_path,GtkAccelGroup *accel_group,guint keyval,GdkModifierType modifiers -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_from_widget</NAME> -<RETURNS>GtkItemFactory *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_path_from_widget</NAME> -<RETURNS>gchar *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_get_item</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkItemFactory *ifactory,const gchar *path -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_get_widget</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkItemFactory *ifactory,const gchar *path -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_get_widget_by_action</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkItemFactory *ifactory,guint action -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_get_item_by_action</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkItemFactory *ifactory,guint action -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_dump_items</NAME> -<RETURNS>void </RETURNS> -GtkPatternSpec *path_pspec,gboolean modified_only,GtkPrintFunc print_func,gpointer func_data -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_dump_rc</NAME> -<RETURNS>void </RETURNS> -const gchar *file_name,GtkPatternSpec *path_pspec,gboolean modified_only -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_print_func</NAME> -<RETURNS>void </RETURNS> -gpointer FILE_pointer,gchar *string -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_create_item</NAME> -<RETURNS>void </RETURNS> -GtkItemFactory *ifactory,GtkItemFactoryEntry *entry,gpointer callback_data,guint callback_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_create_items</NAME> -<RETURNS>void </RETURNS> -GtkItemFactory *ifactory,guint n_entries,GtkItemFactoryEntry *entries,gpointer callback_data -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_delete_item</NAME> -<RETURNS>void </RETURNS> -GtkItemFactory *ifactory,const gchar *path -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_delete_entry</NAME> -<RETURNS>void </RETURNS> -GtkItemFactory *ifactory,GtkItemFactoryEntry *entry -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_delete_entries</NAME> -<RETURNS>void </RETURNS> -GtkItemFactory *ifactory,guint n_entries,GtkItemFactoryEntry *entries -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_popup</NAME> -<RETURNS>void </RETURNS> -GtkItemFactory *ifactory,guint x,guint y,guint mouse_button,guint32 time -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_popup_with_data</NAME> -<RETURNS>void </RETURNS> -GtkItemFactory *ifactory,gpointer popup_data,GtkDestroyNotify destroy,guint x,guint y,guint mouse_button,guint32 time -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_popup_data</NAME> -<RETURNS>gpointer </RETURNS> -GtkItemFactory *ifactory -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_popup_data_from_widget</NAME> -<RETURNS>gpointer </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_set_translate_func</NAME> -<RETURNS>void </RETURNS> -GtkItemFactory *ifactory,GtkTranslateFunc func,gpointer data,GtkDestroyNotify notify -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_from_path</NAME> -<RETURNS>GtkItemFactory *</RETURNS> -const gchar *path -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_create_menu_entries</NAME> -<RETURNS>void </RETURNS> -guint n_entries,GtkMenuEntry *entries -</FUNCTION> -<FUNCTION> -<NAME>gtk_item_factories_path_delete</NAME> -<RETURNS>void </RETURNS> -const gchar *ifactory_path,const gchar *path -</FUNCTION> -<USER_FUNCTION> -<NAME>GtkItemFactoryCallback2</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget, - gpointer callback_data, - guint callback_action -</USER_FUNCTION> -<FUNCTION> -<NAME>gtk_item_factory_create_items_ac</NAME> -<RETURNS>void </RETURNS> -GtkItemFactory *ifactory,guint n_entries,GtkItemFactoryEntry *entries,gpointer callback_data,guint callback_type -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_LABEL</NAME> -#define GTK_TYPE_LABEL (gtk_label_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_LABEL</NAME> -#define GTK_LABEL(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_LABEL, GtkLabel)) -</MACRO> -<MACRO> -<NAME>GTK_LABEL_CLASS</NAME> -#define GTK_LABEL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_LABEL, GtkLabelClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_LABEL</NAME> -#define GTK_IS_LABEL(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_LABEL)) -</MACRO> -<MACRO> -<NAME>GTK_IS_LABEL_CLASS</NAME> -#define GTK_IS_LABEL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LABEL)) -</MACRO> -<STRUCT> -<NAME>GtkLabel</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkLabelClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkLabelWord</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkLabel</NAME> -struct GtkLabel -{ - GtkMisc misc; - - gchar *label; - GdkWChar *label_wc; - gchar *pattern; - - GtkLabelWord *words; - - guint max_width : 16; - guint jtype : 2; - gboolean wrap; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_label_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_label_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -const gchar *str -</FUNCTION> -<FUNCTION> -<NAME>gtk_label_set_text</NAME> -<RETURNS>void </RETURNS> -GtkLabel *label,const gchar *str -</FUNCTION> -<FUNCTION> -<NAME>gtk_label_set_justify</NAME> -<RETURNS>void </RETURNS> -GtkLabel *label,GtkJustification jtype -</FUNCTION> -<FUNCTION> -<NAME>gtk_label_set_pattern</NAME> -<RETURNS>void </RETURNS> -GtkLabel *label,const gchar *pattern -</FUNCTION> -<FUNCTION> -<NAME>gtk_label_set_line_wrap</NAME> -<RETURNS>void </RETURNS> -GtkLabel *label,gboolean wrap -</FUNCTION> -<FUNCTION> -<NAME>gtk_label_get</NAME> -<RETURNS>void </RETURNS> -GtkLabel *label,gchar **str -</FUNCTION> -<FUNCTION> -<NAME>gtk_label_parse_uline</NAME> -<RETURNS>guint </RETURNS> -GtkLabel *label,const gchar *string -</FUNCTION> -<MACRO> -<NAME>gtk_label_set</NAME> -# define gtk_label_set gtk_label_set_text -</MACRO> -<MACRO> -<NAME>GTK_TYPE_LAYOUT</NAME> -#define GTK_TYPE_LAYOUT (gtk_layout_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_LAYOUT</NAME> -#define GTK_LAYOUT(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_LAYOUT, GtkLayout)) -</MACRO> -<MACRO> -<NAME>GTK_LAYOUT_CLASS</NAME> -#define GTK_LAYOUT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_LAYOUT, GtkLayoutClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_LAYOUT</NAME> -#define GTK_IS_LAYOUT(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_LAYOUT)) -</MACRO> -<MACRO> -<NAME>GTK_IS_LAYOUT_CLASS</NAME> -#define GTK_IS_LAYOUT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LAYOUT)) -</MACRO> -<STRUCT> -<NAME>GtkLayout</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkLayoutClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkLayout</NAME> -struct GtkLayout { - GtkContainer container; - - GList *children; - - guint width; - guint height; - - guint xoffset; - guint yoffset; - - GtkAdjustment *hadjustment; - GtkAdjustment *vadjustment; - - GdkWindow *bin_window; - - GdkVisibilityState visibility; - gulong configure_serial; - gint scroll_x; - gint scroll_y; - - guint freeze_count; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_layout_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_layout_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkAdjustment *hadjustment,GtkAdjustment *vadjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_layout_put</NAME> -<RETURNS>void </RETURNS> -GtkLayout *layout,GtkWidget *widget,gint x,gint y -</FUNCTION> -<FUNCTION> -<NAME>gtk_layout_move</NAME> -<RETURNS>void </RETURNS> -GtkLayout *layout,GtkWidget *widget,gint x,gint y -</FUNCTION> -<FUNCTION> -<NAME>gtk_layout_set_size</NAME> -<RETURNS>void </RETURNS> -GtkLayout *layout,guint width,guint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_layout_get_hadjustment</NAME> -<RETURNS>GtkAdjustment *</RETURNS> -GtkLayout *layout -</FUNCTION> -<FUNCTION> -<NAME>gtk_layout_get_vadjustment</NAME> -<RETURNS>GtkAdjustment *</RETURNS> -GtkLayout *layout -</FUNCTION> -<FUNCTION> -<NAME>gtk_layout_set_hadjustment</NAME> -<RETURNS>void </RETURNS> -GtkLayout *layout,GtkAdjustment *adjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_layout_set_vadjustment</NAME> -<RETURNS>void </RETURNS> -GtkLayout *layout,GtkAdjustment *adjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_layout_freeze</NAME> -<RETURNS>void </RETURNS> -GtkLayout *layout -</FUNCTION> -<FUNCTION> -<NAME>gtk_layout_thaw</NAME> -<RETURNS>void </RETURNS> -GtkLayout *layout -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_LIST</NAME> -#define GTK_TYPE_LIST (gtk_list_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_LIST</NAME> -#define GTK_LIST(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_LIST, GtkList)) -</MACRO> -<MACRO> -<NAME>GTK_LIST_CLASS</NAME> -#define GTK_LIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_LIST, GtkListClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_LIST</NAME> -#define GTK_IS_LIST(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_LIST)) -</MACRO> -<MACRO> -<NAME>GTK_IS_LIST_CLASS</NAME> -#define GTK_IS_LIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LIST)) -</MACRO> -<STRUCT> -<NAME>GtkList</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkListClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkList</NAME> -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> -<FUNCTION> -<NAME>gtk_list_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_insert_items</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GList *items,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_append_items</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GList *items -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_prepend_items</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GList *items -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_remove_items</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GList *items -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_remove_items_no_unref</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GList *items -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_clear_items</NAME> -<RETURNS>void </RETURNS> -GtkList *list,gint start,gint end -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_select_item</NAME> -<RETURNS>void </RETURNS> -GtkList *list,gint item -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_unselect_item</NAME> -<RETURNS>void </RETURNS> -GtkList *list,gint item -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_select_child</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_unselect_child</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_child_position</NAME> -<RETURNS>gint </RETURNS> -GtkList *list,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_set_selection_mode</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GtkSelectionMode mode -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_extend_selection</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GtkScrollType scroll_type,gfloat position,gboolean auto_start_selection -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_start_selection</NAME> -<RETURNS>void </RETURNS> -GtkList *list -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_end_selection</NAME> -<RETURNS>void </RETURNS> -GtkList *list -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_select_all</NAME> -<RETURNS>void </RETURNS> -GtkList *list -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_unselect_all</NAME> -<RETURNS>void </RETURNS> -GtkList *list -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_scroll_horizontal</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GtkScrollType scroll_type,gfloat position -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_scroll_vertical</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GtkScrollType scroll_type,gfloat position -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_toggle_add_mode</NAME> -<RETURNS>void </RETURNS> -GtkList *list -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_toggle_focus_row</NAME> -<RETURNS>void </RETURNS> -GtkList *list -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_toggle_row</NAME> -<RETURNS>void </RETURNS> -GtkList *list,GtkWidget *item -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_undo_selection</NAME> -<RETURNS>void </RETURNS> -GtkList *list -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_end_drag_selection</NAME> -<RETURNS>void </RETURNS> -GtkList *list -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_LIST_ITEM</NAME> -#define GTK_TYPE_LIST_ITEM (gtk_list_item_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_LIST_ITEM</NAME> -#define GTK_LIST_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_LIST_ITEM, GtkListItem)) -</MACRO> -<MACRO> -<NAME>GTK_LIST_ITEM_CLASS</NAME> -#define GTK_LIST_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_LIST_ITEM, GtkListItemClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_LIST_ITEM</NAME> -#define GTK_IS_LIST_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_LIST_ITEM)) -</MACRO> -<MACRO> -<NAME>GTK_IS_LIST_ITEM_CLASS</NAME> -#define GTK_IS_LIST_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LIST_ITEM)) -</MACRO> -<STRUCT> -<NAME>GtkListItem</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkListItemClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkListItem</NAME> -struct GtkListItem -{ - GtkItem item; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_list_item_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_item_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_item_new_with_label</NAME> -<RETURNS>GtkWidget *</RETURNS> -const gchar *label -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_item_select</NAME> -<RETURNS>void </RETURNS> -GtkListItem *list_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_list_item_deselect</NAME> -<RETURNS>void </RETURNS> -GtkListItem *list_item -</FUNCTION> -<MACRO> -<NAME>GTK_PRIORITY_REDRAW</NAME> -#define GTK_PRIORITY_REDRAW (G_PRIORITY_HIGH_IDLE + 20) -</MACRO> -<MACRO> -<NAME>GTK_PRIORITY_RESIZE</NAME> -#define GTK_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 10) -</MACRO> -<MACRO> -<NAME>GTK_PRIORITY_HIGH</NAME> -#define GTK_PRIORITY_HIGH G_PRIORITY_HIGH -</MACRO> -<MACRO> -<NAME>GTK_PRIORITY_INTERNAL</NAME> -#define GTK_PRIORITY_INTERNAL GTK_PRIORITY_REDRAW -</MACRO> -<MACRO> -<NAME>GTK_PRIORITY_DEFAULT</NAME> -#define GTK_PRIORITY_DEFAULT G_PRIORITY_DEFAULT_IDLE -</MACRO> -<MACRO> -<NAME>GTK_PRIORITY_LOW</NAME> -#define GTK_PRIORITY_LOW G_PRIORITY_LOW -</MACRO> -<USER_FUNCTION> -<NAME>GtkModuleInitFunc</NAME> -<RETURNS>void </RETURNS> -gint *argc, - gchar ***argv -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkKeySnoopFunc</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *grab_widget, - GdkEventKey *event, - gpointer func_data -</USER_FUNCTION> -<VARIABLE> -<NAME>gtk_major_version</NAME> -extern const guint gtk_major_version; -</VARIABLE> -<VARIABLE> -<NAME>gtk_minor_version</NAME> -extern const guint gtk_minor_version; -</VARIABLE> -<VARIABLE> -<NAME>gtk_micro_version</NAME> -extern const guint gtk_micro_version; -</VARIABLE> -<VARIABLE> -<NAME>gtk_binary_age</NAME> -extern const guint gtk_binary_age; -</VARIABLE> -<VARIABLE> -<NAME>gtk_interface_age</NAME> -extern const guint gtk_interface_age; -</VARIABLE> -<FUNCTION> -<NAME>gtk_check_version</NAME> -<RETURNS>gchar *</RETURNS> -guint required_major,guint required_minor,guint required_micro -</FUNCTION> -<FUNCTION> -<NAME>gtk_init</NAME> -<RETURNS>void </RETURNS> -int *argc,char ***argv -</FUNCTION> -<FUNCTION> -<NAME>gtk_init_check</NAME> -<RETURNS>gboolean </RETURNS> -int *argc,char ***argv -</FUNCTION> -<FUNCTION> -<NAME>gtk_exit</NAME> -<RETURNS>void </RETURNS> -gint error_code -</FUNCTION> -<FUNCTION> -<NAME>gtk_set_locale</NAME> -<RETURNS>gchar *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_events_pending</NAME> -<RETURNS>gint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_main_do_event</NAME> -<RETURNS>void </RETURNS> -GdkEvent *event -</FUNCTION> -<FUNCTION> -<NAME>gtk_main</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_main_level</NAME> -<RETURNS>guint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_main_quit</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_main_iteration</NAME> -<RETURNS>gint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_main_iteration_do</NAME> -<RETURNS>gint </RETURNS> -gboolean blocking -</FUNCTION> -<FUNCTION> -<NAME>gtk_true</NAME> -<RETURNS>gint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_false</NAME> -<RETURNS>gint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_grab_add</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_grab_get_current</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_grab_remove</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_init_add</NAME> -<RETURNS>void </RETURNS> -GtkFunction function,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_quit_add_destroy</NAME> -<RETURNS>void </RETURNS> -guint main_level,GtkObject *object -</FUNCTION> -<FUNCTION> -<NAME>gtk_quit_add</NAME> -<RETURNS>guint </RETURNS> -guint main_level,GtkFunction function,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_quit_add_full</NAME> -<RETURNS>guint </RETURNS> -guint main_level,GtkFunction function,GtkCallbackMarshal marshal,gpointer data,GtkDestroyNotify destroy -</FUNCTION> -<FUNCTION> -<NAME>gtk_quit_remove</NAME> -<RETURNS>void </RETURNS> -guint quit_handler_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_quit_remove_by_data</NAME> -<RETURNS>void </RETURNS> -gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_timeout_add</NAME> -<RETURNS>guint </RETURNS> -guint32 interval,GtkFunction function,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_timeout_add_full</NAME> -<RETURNS>guint </RETURNS> -guint32 interval,GtkFunction function,GtkCallbackMarshal marshal,gpointer data,GtkDestroyNotify destroy -</FUNCTION> -<FUNCTION> -<NAME>gtk_timeout_remove</NAME> -<RETURNS>void </RETURNS> -guint timeout_handler_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_idle_add</NAME> -<RETURNS>guint </RETURNS> -GtkFunction function,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_idle_add_priority</NAME> -<RETURNS>guint </RETURNS> -gint priority,GtkFunction function,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_idle_add_full</NAME> -<RETURNS>guint </RETURNS> -gint priority,GtkFunction function,GtkCallbackMarshal marshal,gpointer data,GtkDestroyNotify destroy -</FUNCTION> -<FUNCTION> -<NAME>gtk_idle_remove</NAME> -<RETURNS>void </RETURNS> -guint idle_handler_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_idle_remove_by_data</NAME> -<RETURNS>void </RETURNS> -gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_input_add_full</NAME> -<RETURNS>guint </RETURNS> -gint source,GdkInputCondition condition,GdkInputFunction function,GtkCallbackMarshal marshal,gpointer data,GtkDestroyNotify destroy -</FUNCTION> -<FUNCTION> -<NAME>gtk_input_remove</NAME> -<RETURNS>void </RETURNS> -guint input_handler_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_key_snooper_install</NAME> -<RETURNS>guint </RETURNS> -GtkKeySnoopFunc snooper,gpointer func_data -</FUNCTION> -<FUNCTION> -<NAME>gtk_key_snooper_remove</NAME> -<RETURNS>void </RETURNS> -guint snooper_handler_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_get_current_event</NAME> -<RETURNS>GdkEvent *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_get_event_widget</NAME> -<RETURNS>GtkWidget *</RETURNS> -GdkEvent *event -</FUNCTION> -<FUNCTION> -<NAME>gtk_propagate_event</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GdkEvent *event -</FUNCTION> -<MACRO> -<NAME>gtk_signal_default_marshaller</NAME> -#define gtk_signal_default_marshaller gtk_marshal_NONE__NONE -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_BOOL__NONE</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_BOOL__POINTER</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_BOOL__POINTER_POINTER_INT_INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_BOOL__POINTER_INT_INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_BOOL__POINTER_INT_INT_UINT</NAME> -#define gtk_marshal_BOOL__POINTER_INT_INT_UINT gtk_marshal_BOOL__POINTER_INT_INT_INT -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_BOOL__POINTER_INT_INT_INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_BOOL__POINTER_STRING_STRING_POINTER</NAME> -#define gtk_marshal_BOOL__POINTER_STRING_STRING_POINTER gtk_marshal_BOOL__POINTER_POINTER_POINTER_POINTER -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_BOOL__POINTER_POINTER_POINTER_POINTER</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_ENUM__ENUM</NAME> -#define gtk_marshal_ENUM__ENUM gtk_marshal_INT__INT -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_INT__INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_INT__POINTER</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_INT__POINTER_CHAR_CHAR</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_NONE__BOOL</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__BOXED</NAME> -#define gtk_marshal_NONE__BOXED gtk_marshal_NONE__POINTER -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__POINTER</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_NONE__C_CALLBACK</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_NONE__C_CALLBACK_C_CALLBACK</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__ENUM</NAME> -#define gtk_marshal_NONE__ENUM gtk_marshal_NONE__INT -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__ENUM_FLOAT</NAME> -#define gtk_marshal_NONE__ENUM_FLOAT gtk_marshal_NONE__INT_FLOAT -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__INT_FLOAT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__ENUM_FLOAT_BOOL</NAME> -#define gtk_marshal_NONE__ENUM_FLOAT_BOOL gtk_marshal_NONE__INT_FLOAT_BOOL -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__INT_FLOAT_BOOL</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_NONE__INT_INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_NONE__INT_INT_POINTER</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_NONE__NONE</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__OBJECT</NAME> -#define gtk_marshal_NONE__OBJECT gtk_marshal_NONE__POINTER -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__POINTER_INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_NONE__POINTER_POINTER</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<FUNCTION> -<NAME>gtk_marshal_NONE__POINTER_POINTER_POINTER</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__POINTER_STRING_STRING</NAME> -#define gtk_marshal_NONE__POINTER_STRING_STRING gtk_marshal_NONE__POINTER_POINTER_POINTER -</MACRO> -<MACRO> -<NAME>gtk_marshal_NONE__POINTER_UINT</NAME> -#define gtk_marshal_NONE__POINTER_UINT gtk_marshal_NONE__POINTER_INT -</MACRO> -<MACRO> -<NAME>gtk_marshal_NONE__POINTER_UINT_ENUM</NAME> -#define gtk_marshal_NONE__POINTER_UINT_ENUM gtk_marshal_NONE__POINTER_INT_INT -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__POINTER_INT_INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__POINTER_POINTER_UINT_UINT</NAME> -#define gtk_marshal_NONE__POINTER_POINTER_UINT_UINT gtk_marshal_NONE__POINTER_POINTER_INT_INT -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__POINTER_POINTER_INT_INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__POINTER_INT_INT_POINTER_UINT_UINT</NAME> -#define gtk_marshal_NONE__POINTER_INT_INT_POINTER_UINT_UINT gtk_marshal_NONE__POINTER_INT_INT_POINTER_INT_INT -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__POINTER_INT_INT_POINTER_INT_INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__POINTER_UINT_UINT</NAME> -#define gtk_marshal_NONE__POINTER_UINT_UINT gtk_marshal_NONE__POINTER_INT_INT -</MACRO> -<MACRO> -<NAME>gtk_marshal_NONE__STRING</NAME> -#define gtk_marshal_NONE__STRING gtk_marshal_NONE__POINTER -</MACRO> -<MACRO> -<NAME>gtk_marshal_NONE__STRING_INT_POINTER</NAME> -#define gtk_marshal_NONE__STRING_INT_POINTER gtk_marshal_NONE__POINTER_INT_POINTER -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__POINTER_INT_POINTER</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__UINT</NAME> -#define gtk_marshal_NONE__UINT gtk_marshal_NONE__INT -</MACRO> -<MACRO> -<NAME>gtk_marshal_NONE__UINT_POINTER_UINT_ENUM_ENUM_POINTER</NAME> -#define gtk_marshal_NONE__UINT_POINTER_UINT_ENUM_ENUM_POINTER gtk_marshal_NONE__INT_POINTER_INT_INT_INT_POINTER -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__INT_POINTER_INT_INT_INT_POINTER</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__UINT_POINTER_UINT_UINT_ENUM</NAME> -#define gtk_marshal_NONE__UINT_POINTER_UINT_UINT_ENUM gtk_marshal_NONE__INT_POINTER_INT_INT_INT -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__INT_POINTER_INT_INT_INT</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>gtk_marshal_NONE__UINT_STRING</NAME> -#define gtk_marshal_NONE__UINT_STRING gtk_marshal_NONE__INT_POINTER -</MACRO> -<FUNCTION> -<NAME>gtk_marshal_NONE__INT_POINTER</NAME> -<RETURNS>void </RETURNS> -GtkObject * object,GtkSignalFunc func,gpointer func_data,GtkArg * args -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_MENU</NAME> -#define GTK_TYPE_MENU (gtk_menu_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_MENU</NAME> -#define GTK_MENU(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_MENU, GtkMenu)) -</MACRO> -<MACRO> -<NAME>GTK_MENU_CLASS</NAME> -#define GTK_MENU_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU, GtkMenuClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_MENU</NAME> -#define GTK_IS_MENU(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_MENU)) -</MACRO> -<MACRO> -<NAME>GTK_IS_MENU_CLASS</NAME> -#define GTK_IS_MENU_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU)) -</MACRO> -<STRUCT> -<NAME>GtkMenu</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMenuClass</NAME> -</STRUCT> -<USER_FUNCTION> -<NAME>GtkMenuPositionFunc</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu, - gint *x, - gint *y, - gpointer user_data -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkMenuDetachFunc</NAME> -<RETURNS>void </RETURNS> -GtkWidget *attach_widget, - GtkMenu *menu -</USER_FUNCTION> -<STRUCT> -<NAME>GtkMenu</NAME> -struct GtkMenu -{ - GtkMenuShell menu_shell; - - GtkWidget *parent_menu_item; - GtkWidget *old_active_menu_item; - - GtkAccelGroup *accel_group; - GtkMenuPositionFunc position_func; - gpointer position_func_data; - - /* 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; - - guint torn_off : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_menu_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_append</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_prepend</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_insert</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu,GtkWidget *child,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_popup</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu,GtkWidget *parent_menu_shell,GtkWidget *parent_menu_item,GtkMenuPositionFunc func,gpointer data,guint button,guint32 activate_time -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_reposition</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_popdown</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_get_active</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkMenu *menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_set_active</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu,guint index -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_set_accel_group</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu,GtkAccelGroup *accel_group -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_get_accel_group</NAME> -<RETURNS>GtkAccelGroup *</RETURNS> -GtkMenu *menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_get_uline_accel_group</NAME> -<RETURNS>GtkAccelGroup *</RETURNS> -GtkMenu *menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_ensure_uline_accel_group</NAME> -<RETURNS>GtkAccelGroup *</RETURNS> -GtkMenu *menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_attach_to_widget</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu,GtkWidget *attach_widget,GtkMenuDetachFunc detacher -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_detach</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_get_attach_widget</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkMenu *menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_detach</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_set_tearoff_state</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu,gboolean torn_off -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_set_title</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu,const gchar *title -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_reorder_child</NAME> -<RETURNS>void </RETURNS> -GtkMenu *menu,GtkWidget *child,gint position -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_MENU_BAR</NAME> -#define GTK_TYPE_MENU_BAR (gtk_menu_bar_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_MENU_BAR</NAME> -#define GTK_MENU_BAR(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_MENU_BAR, GtkMenuBar)) -</MACRO> -<MACRO> -<NAME>GTK_MENU_BAR_CLASS</NAME> -#define GTK_MENU_BAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_BAR, GtkMenuBarClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_MENU_BAR</NAME> -#define GTK_IS_MENU_BAR(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_MENU_BAR)) -</MACRO> -<MACRO> -<NAME>GTK_IS_MENU_BAR_CLASS</NAME> -#define GTK_IS_MENU_BAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_BAR)) -</MACRO> -<STRUCT> -<NAME>GtkMenuBar</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMenuBarClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMenuBar</NAME> -struct GtkMenuBar -{ - GtkMenuShell menu_shell; - - GtkShadowType shadow_type; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_menu_bar_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_bar_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_bar_append</NAME> -<RETURNS>void </RETURNS> -GtkMenuBar *menu_bar,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_bar_prepend</NAME> -<RETURNS>void </RETURNS> -GtkMenuBar *menu_bar,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_bar_insert</NAME> -<RETURNS>void </RETURNS> -GtkMenuBar *menu_bar,GtkWidget *child,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_bar_set_shadow_type</NAME> -<RETURNS>void </RETURNS> -GtkMenuBar *menu_bar,GtkShadowType type -</FUNCTION> -<STRUCT> -<NAME>GtkMenuEntry</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMenuPath</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMenuFactory</NAME> -</STRUCT> -<USER_FUNCTION> -<NAME>GtkMenuCallback</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget, - gpointer user_data -</USER_FUNCTION> -<STRUCT> -<NAME>GtkMenuEntry</NAME> -struct GtkMenuEntry -{ - gchar *path; - gchar *accelerator; - GtkMenuCallback callback; - gpointer callback_data; - GtkWidget *widget; -}; -</STRUCT> -<STRUCT> -<NAME>GtkMenuPath</NAME> -struct GtkMenuPath -{ - char *path; - GtkWidget *widget; -}; -</STRUCT> -<STRUCT> -<NAME>GtkMenuFactory</NAME> -struct GtkMenuFactory -{ - gchar *path; - GtkMenuFactoryType type; - GtkAccelGroup *accel_group; - GtkWidget *widget; - GList *subfactories; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_menu_factory_new</NAME> -<RETURNS>GtkMenuFactory *</RETURNS> -GtkMenuFactoryType type -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_factory_destroy</NAME> -<RETURNS>void </RETURNS> -GtkMenuFactory *factory -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_factory_add_entries</NAME> -<RETURNS>void </RETURNS> -GtkMenuFactory *factory,GtkMenuEntry *entries,int nentries -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_factory_add_subfactory</NAME> -<RETURNS>void </RETURNS> -GtkMenuFactory *factory,GtkMenuFactory *subfactory,const char *path -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_factory_remove_paths</NAME> -<RETURNS>void </RETURNS> -GtkMenuFactory *factory,char **paths,int npaths -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_factory_remove_entries</NAME> -<RETURNS>void </RETURNS> -GtkMenuFactory *factory,GtkMenuEntry *entries,int nentries -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_factory_remove_subfactory</NAME> -<RETURNS>void </RETURNS> -GtkMenuFactory *factory,GtkMenuFactory *subfactory,const char *path -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_factory_find</NAME> -<RETURNS>GtkMenuPath *</RETURNS> -GtkMenuFactory *factory,const char *path -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_MENU_ITEM</NAME> -#define GTK_TYPE_MENU_ITEM (gtk_menu_item_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_MENU_ITEM</NAME> -#define GTK_MENU_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_MENU_ITEM, GtkMenuItem)) -</MACRO> -<MACRO> -<NAME>GTK_MENU_ITEM_CLASS</NAME> -#define GTK_MENU_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_ITEM, GtkMenuItemClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_MENU_ITEM</NAME> -#define GTK_IS_MENU_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_MENU_ITEM)) -</MACRO> -<MACRO> -<NAME>GTK_IS_MENU_ITEM_CLASS</NAME> -#define GTK_IS_MENU_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_ITEM)) -</MACRO> -<STRUCT> -<NAME>GtkMenuItem</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMenuItemClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMenuItem</NAME> -struct GtkMenuItem -{ - GtkItem item; - - GtkWidget *submenu; - - guint accelerator_signal; - guint16 toggle_size; - guint16 accelerator_width; - - guint show_toggle_indicator : 1; - guint show_submenu_indicator : 1; - guint submenu_placement : 1; - guint submenu_direction : 1; - guint right_justify: 1; - guint timer; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_menu_item_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_item_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_item_new_with_label</NAME> -<RETURNS>GtkWidget *</RETURNS> -const gchar *label -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_item_set_submenu</NAME> -<RETURNS>void </RETURNS> -GtkMenuItem *menu_item,GtkWidget *submenu -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_item_remove_submenu</NAME> -<RETURNS>void </RETURNS> -GtkMenuItem *menu_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_item_set_placement</NAME> -<RETURNS>void </RETURNS> -GtkMenuItem *menu_item,GtkSubmenuPlacement placement -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_item_configure</NAME> -<RETURNS>void </RETURNS> -GtkMenuItem *menu_item,gint show_toggle_indicator,gint show_submenu_indicator -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_item_select</NAME> -<RETURNS>void </RETURNS> -GtkMenuItem *menu_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_item_deselect</NAME> -<RETURNS>void </RETURNS> -GtkMenuItem *menu_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_item_activate</NAME> -<RETURNS>void </RETURNS> -GtkMenuItem *menu_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_item_right_justify</NAME> -<RETURNS>void </RETURNS> -GtkMenuItem *menu_item -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_MENU_SHELL</NAME> -#define GTK_TYPE_MENU_SHELL (gtk_menu_shell_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_MENU_SHELL</NAME> -#define GTK_MENU_SHELL(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShell)) -</MACRO> -<MACRO> -<NAME>GTK_MENU_SHELL_CLASS</NAME> -#define GTK_MENU_SHELL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_SHELL, GtkMenuShellClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_MENU_SHELL</NAME> -#define GTK_IS_MENU_SHELL(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_MENU_SHELL)) -</MACRO> -<MACRO> -<NAME>GTK_IS_MENU_SHELL_CLASS</NAME> -#define GTK_IS_MENU_SHELL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_SHELL)) -</MACRO> -<STRUCT> -<NAME>GtkMenuShell</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMenuShellClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMenuShell</NAME> -struct GtkMenuShell -{ - GtkContainer container; - - GList *children; - GtkWidget *active_menu_item; - GtkWidget *parent_menu_shell; - - guint active : 1; - guint have_grab : 1; - guint have_xgrab : 1; - guint button : 2; - guint ignore_leave : 1; - guint menu_flag : 1; - guint ignore_enter : 1; - - guint32 activate_time; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_menu_shell_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_shell_append</NAME> -<RETURNS>void </RETURNS> -GtkMenuShell *menu_shell,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_shell_prepend</NAME> -<RETURNS>void </RETURNS> -GtkMenuShell *menu_shell,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_shell_insert</NAME> -<RETURNS>void </RETURNS> -GtkMenuShell *menu_shell,GtkWidget *child,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_shell_deactivate</NAME> -<RETURNS>void </RETURNS> -GtkMenuShell *menu_shell -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_shell_select_item</NAME> -<RETURNS>void </RETURNS> -GtkMenuShell *menu_shell,GtkWidget *menu_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_shell_deselect</NAME> -<RETURNS>void </RETURNS> -GtkMenuShell *menu_shell -</FUNCTION> -<FUNCTION> -<NAME>gtk_menu_shell_activate_item</NAME> -<RETURNS>void </RETURNS> -GtkMenuShell *menu_shell,GtkWidget *menu_item,gboolean force_deactivate -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_MISC</NAME> -#define GTK_TYPE_MISC (gtk_misc_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_MISC</NAME> -#define GTK_MISC(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_MISC, GtkMisc)) -</MACRO> -<MACRO> -<NAME>GTK_MISC_CLASS</NAME> -#define GTK_MISC_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_MISC, GtkMiscClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_MISC</NAME> -#define GTK_IS_MISC(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_MISC)) -</MACRO> -<MACRO> -<NAME>GTK_IS_MISC_CLASS</NAME> -#define GTK_IS_MISC_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MISC)) -</MACRO> -<STRUCT> -<NAME>GtkMisc</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMiscClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkMisc</NAME> -struct GtkMisc -{ - GtkWidget widget; - - gfloat xalign; - gfloat yalign; - - guint16 xpad; - guint16 ypad; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_misc_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_misc_set_alignment</NAME> -<RETURNS>void </RETURNS> -GtkMisc *misc,gfloat xalign,gfloat yalign -</FUNCTION> -<FUNCTION> -<NAME>gtk_misc_set_padding</NAME> -<RETURNS>void </RETURNS> -GtkMisc *misc,gint xpad,gint ypad -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_NOTEBOOK</NAME> -#define GTK_TYPE_NOTEBOOK (gtk_notebook_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_NOTEBOOK</NAME> -#define GTK_NOTEBOOK(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_NOTEBOOK, GtkNotebook)) -</MACRO> -<MACRO> -<NAME>GTK_NOTEBOOK_CLASS</NAME> -#define GTK_NOTEBOOK_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_NOTEBOOK, GtkNotebookClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_NOTEBOOK</NAME> -#define GTK_IS_NOTEBOOK(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_NOTEBOOK)) -</MACRO> -<MACRO> -<NAME>GTK_IS_NOTEBOOK_CLASS</NAME> -#define GTK_IS_NOTEBOOK_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_NOTEBOOK)) -</MACRO> -<MACRO> -<NAME>GTK_NOTEBOOK_PAGE</NAME> -#define GTK_NOTEBOOK_PAGE(_glist_) ((GtkNotebookPage *)((GList *)(_glist_))->data) -</MACRO> -<STRUCT> -<NAME>GtkNotebook</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkNotebookClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkNotebookPage</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkNotebook</NAME> -struct GtkNotebook -{ - GtkContainer container; - - GtkNotebookPage *cur_page; - GList *children; - GList *first_tab; - GList *focus_tab; - - GtkWidget *menu; - GdkWindow *panel; - - 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 : 2; - guint click_child : 2; - guint button : 2; - guint need_timer : 1; - guint child_has_focus : 1; - guint have_visible_child : 1; -}; -</STRUCT> -<STRUCT> -<NAME>GtkNotebookPage</NAME> -struct GtkNotebookPage -{ - GtkWidget *child; - GtkWidget *tab_label; - GtkWidget *menu_label; - - guint default_menu : 1; - guint default_tab : 1; - guint expand : 1; - guint fill : 1; - guint pack : 1; - - GtkRequisition requisition; - GtkAllocation allocation; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_notebook_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_append_page</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,GtkWidget *tab_label -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_append_page_menu</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,GtkWidget *tab_label,GtkWidget *menu_label -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_prepend_page</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,GtkWidget *tab_label -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_prepend_page_menu</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,GtkWidget *tab_label,GtkWidget *menu_label -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_insert_page</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,GtkWidget *tab_label,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_insert_page_menu</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,GtkWidget *tab_label,GtkWidget *menu_label,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_remove_page</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,gint page_num -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_get_current_page</NAME> -<RETURNS>gint </RETURNS> -GtkNotebook *notebook -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_get_nth_page</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkNotebook *notebook,gint page_num -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_page_num</NAME> -<RETURNS>gint </RETURNS> -GtkNotebook *notebook,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_page</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,gint page_num -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_next_page</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_prev_page</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_show_border</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,gboolean show_border -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_show_tabs</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,gboolean show_tabs -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_tab_pos</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkPositionType pos -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_homogeneous_tabs</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,gboolean homogeneous -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_tab_border</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,guint border_width -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_tab_hborder</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,guint tab_hborder -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_tab_vborder</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,guint tab_vborder -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_scrollable</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,gboolean scrollable -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_popup_enable</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_popup_disable</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_get_tab_label</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkNotebook *notebook,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_tab_label</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,GtkWidget *tab_label -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_tab_label_text</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,const gchar *tab_text -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_get_menu_label</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkNotebook *notebook,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_menu_label</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,GtkWidget *menu_label -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_menu_label_text</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,const gchar *menu_text -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_query_tab_label_packing</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,gboolean *expand,gboolean *fill,GtkPackType *pack_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_set_tab_label_packing</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,gboolean expand,gboolean fill,GtkPackType pack_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_notebook_reorder_child</NAME> -<RETURNS>void </RETURNS> -GtkNotebook *notebook,GtkWidget *child,gint position -</FUNCTION> -<MACRO> -<NAME>GTK_OBJECT</NAME> -#define GTK_OBJECT(object) ( \ - GTK_IS_OBJECT (object) ? \ - (GtkObject*) (object) : \ - (GtkObject*) gtk_type_check_object_cast ((GtkTypeObject*) (object), GTK_TYPE_OBJECT) \ -) -</MACRO> -<MACRO> -<NAME>GTK_OBJECT_CLASS</NAME> -#define GTK_OBJECT_CLASS(klass) ( \ - GTK_IS_OBJECT_CLASS (klass) ? \ - (GtkObjectClass*) (klass) : \ - (GtkObjectClass*) gtk_type_check_class_cast ((GtkTypeClass*) (klass), GTK_TYPE_OBJECT) \ -) -</MACRO> -<MACRO> -<NAME>GTK_IS_OBJECT</NAME> -#define GTK_IS_OBJECT(object) ( \ - (object) != NULL && \ - GTK_IS_OBJECT_CLASS (((GtkObject*) (object))->klass) \ -) -</MACRO> -<MACRO> -<NAME>GTK_IS_OBJECT_CLASS</NAME> -#define GTK_IS_OBJECT_CLASS(klass) ( \ - (klass) != NULL && \ - GTK_FUNDAMENTAL_TYPE (((GtkObjectClass*) (klass))->type) == GTK_TYPE_OBJECT \ -) -</MACRO> -<MACRO> -<NAME>GTK_OBJECT_TYPE</NAME> -#define GTK_OBJECT_TYPE(obj) (GTK_OBJECT (obj)->klass->type) -</MACRO> -<MACRO> -<NAME>GTK_OBJECT_SIGNALS</NAME> -#define GTK_OBJECT_SIGNALS(obj) (GTK_OBJECT (obj)->klass->signals) -</MACRO> -<MACRO> -<NAME>GTK_OBJECT_NSIGNALS</NAME> -#define GTK_OBJECT_NSIGNALS(obj) (GTK_OBJECT (obj)->klass->nsignals) -</MACRO> -<ENUM> -<NAME>GtkObjectFlags</NAME> -typedef enum -{ - GTK_DESTROYED = 1 << 0, - GTK_FLOATING = 1 << 1, - GTK_CONNECTED = 1 << 2, - GTK_CONSTRUCTED = 1 << 3 -} GtkObjectFlags; -</ENUM> -<MACRO> -<NAME>GTK_OBJECT_FLAGS</NAME> -#define GTK_OBJECT_FLAGS(obj) (GTK_OBJECT (obj)->flags) -</MACRO> -<MACRO> -<NAME>GTK_OBJECT_DESTROYED</NAME> -#define GTK_OBJECT_DESTROYED(obj) ((GTK_OBJECT_FLAGS (obj) & GTK_DESTROYED) != 0) -</MACRO> -<MACRO> -<NAME>GTK_OBJECT_FLOATING</NAME> -#define GTK_OBJECT_FLOATING(obj) ((GTK_OBJECT_FLAGS (obj) & GTK_FLOATING) != 0) -</MACRO> -<MACRO> -<NAME>GTK_OBJECT_CONNECTED</NAME> -#define GTK_OBJECT_CONNECTED(obj) ((GTK_OBJECT_FLAGS (obj) & GTK_CONNECTED) != 0) -</MACRO> -<MACRO> -<NAME>GTK_OBJECT_CONSTRUCTED</NAME> -#define GTK_OBJECT_CONSTRUCTED(obj) ((GTK_OBJECT_FLAGS (obj) & GTK_CONSTRUCTED) != 0) -</MACRO> -<MACRO> -<NAME>GTK_OBJECT_SET_FLAGS</NAME> -#define GTK_OBJECT_SET_FLAGS(obj,flag) G_STMT_START{ (GTK_OBJECT_FLAGS (obj) |= (flag)); }G_STMT_END -</MACRO> -<MACRO> -<NAME>GTK_OBJECT_UNSET_FLAGS</NAME> -#define GTK_OBJECT_UNSET_FLAGS(obj,flag) G_STMT_START{ (GTK_OBJECT_FLAGS (obj) &= ~(flag)); }G_STMT_END -</MACRO> -<ENUM> -<NAME>GtkArgFlags</NAME> -typedef enum -{ - GTK_ARG_READABLE = 1 << 0, - GTK_ARG_WRITABLE = 1 << 1, - GTK_ARG_CONSTRUCT = 1 << 2, - GTK_ARG_CONSTRUCT_ONLY = 1 << 3, - GTK_ARG_CHILD_ARG = 1 << 4, - GTK_ARG_MASK = 0x1f, - - /* aliases - */ - GTK_ARG_READWRITE = GTK_ARG_READABLE | GTK_ARG_WRITABLE -} GtkArgFlags; -</ENUM> -<STRUCT> -<NAME>GtkObjectClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkObject</NAME> -struct GtkObject -{ - /* GtkTypeObject related fields: */ - GtkObjectClass *klass; - - - /* 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; - - /* reference count. - * refer to the file docs/refcounting.txt on this issue. - */ - guint ref_count; - - /* A list of keyed data pointers, used for e.g. the list of signal - * handlers or an object's user_data. - */ - GData *object_data; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_object_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_class_user_signal_new</NAME> -<RETURNS>guint </RETURNS> -GtkObjectClass *klass,const gchar *name,GtkSignalRunType signal_flags,GtkSignalMarshaller marshaller,GtkType return_val,guint nparams,... -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_class_user_signal_newv</NAME> -<RETURNS>guint </RETURNS> -GtkObjectClass *klass,const gchar *name,GtkSignalRunType signal_flags,GtkSignalMarshaller marshaller,GtkType return_val,guint nparams,GtkType *params -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_new</NAME> -<RETURNS>GtkObject *</RETURNS> -GtkType type,const gchar *first_arg_name,... -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_newv</NAME> -<RETURNS>GtkObject *</RETURNS> -GtkType object_type,guint n_args,GtkArg *args -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_default_construct</NAME> -<RETURNS>void </RETURNS> -GtkObject *object -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_constructed</NAME> -<RETURNS>void </RETURNS> -GtkObject *object -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_sink</NAME> -<RETURNS>void </RETURNS> -GtkObject *object -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_ref</NAME> -<RETURNS>void </RETURNS> -GtkObject *object -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_unref</NAME> -<RETURNS>void </RETURNS> -GtkObject *object -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_weakref</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GtkDestroyNotify notify,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_weakunref</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GtkDestroyNotify notify,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_destroy</NAME> -<RETURNS>void </RETURNS> -GtkObject *object -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_getv</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,guint n_args,GtkArg *args -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_get</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *first_arg_name,... -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_set</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *first_arg_name,... -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_setv</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,guint n_args,GtkArg *args -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_query_args</NAME> -<RETURNS>GtkArg *</RETURNS> -GtkType class_type,guint32 **arg_flags,guint *n_args -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_set_data</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *key,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_set_data_full</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *key,gpointer data,GtkDestroyNotify destroy -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_remove_data</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *key -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_get_data</NAME> -<RETURNS>gpointer </RETURNS> -GtkObject *object,const gchar *key -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_remove_no_notify</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *key -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_set_user_data</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_get_user_data</NAME> -<RETURNS>gpointer </RETURNS> -GtkObject *object -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_class_add_signals</NAME> -<RETURNS>void </RETURNS> -GtkObjectClass *klass,guint *signals,guint nsignals -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_add_arg_type</NAME> -<RETURNS>void </RETURNS> -const gchar *arg_name,GtkType arg_type,guint arg_flags,guint arg_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_set_data_by_id</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GQuark data_id,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_set_data_by_id_full</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GQuark data_id,gpointer data,GtkDestroyNotify destroy -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_get_data_by_id</NAME> -<RETURNS>gpointer </RETURNS> -GtkObject *object,GQuark data_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_remove_data_by_id</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GQuark data_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_remove_no_notify_by_id</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GQuark key_id -</FUNCTION> -<MACRO> -<NAME>gtk_object_data_try_key</NAME> -#define gtk_object_data_try_key g_quark_try_string -</MACRO> -<MACRO> -<NAME>gtk_object_data_force_id</NAME> -#define gtk_object_data_force_id g_quark_from_string -</MACRO> -<FUNCTION> -<NAME>gtk_object_arg_set</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GtkArg *arg,GtkArgInfo *info -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_arg_get</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GtkArg *arg,GtkArgInfo *info -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_args_collect</NAME> -<RETURNS>gchar *</RETURNS> -GtkType object_type,GSList **arg_list_p,GSList **info_list_p,const gchar *first_arg_name,va_list var_args -</FUNCTION> -<FUNCTION> -<NAME>gtk_object_arg_get_info</NAME> -<RETURNS>gchar *</RETURNS> -GtkType object_type,const gchar *arg_name,GtkArgInfo **info_p -</FUNCTION> -<FUNCTION> -<NAME>gtk_trace_referencing</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *func,guint dummy,guint line,gboolean do_ref -</FUNCTION> -<MACRO> -<NAME>gtk_object_ref</NAME> -# define gtk_object_ref(o) G_STMT_START{gtk_trace_referencing((o),G_GNUC_PRETTY_FUNCTION,0,__LINE__,1);}G_STMT_END -</MACRO> -<MACRO> -<NAME>gtk_object_unref</NAME> -# define gtk_object_unref(o) G_STMT_START{gtk_trace_referencing((o),G_GNUC_PRETTY_FUNCTION,0,__LINE__,0);}G_STMT_END -</MACRO> -<MACRO> -<NAME>GTK_TYPE_OPTION_MENU</NAME> -#define GTK_TYPE_OPTION_MENU (gtk_option_menu_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_OPTION_MENU</NAME> -#define GTK_OPTION_MENU(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_OPTION_MENU, GtkOptionMenu)) -</MACRO> -<MACRO> -<NAME>GTK_OPTION_MENU_CLASS</NAME> -#define GTK_OPTION_MENU_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_OPTION_MENU, GtkOptionMenuClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_OPTION_MENU</NAME> -#define GTK_IS_OPTION_MENU(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_OPTION_MENU)) -</MACRO> -<MACRO> -<NAME>GTK_IS_OPTION_MENU_CLASS</NAME> -#define GTK_IS_OPTION_MENU_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OPTION_MENU)) -</MACRO> -<STRUCT> -<NAME>GtkOptionMenu</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkOptionMenuClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkOptionMenu</NAME> -struct GtkOptionMenu -{ - GtkButton button; - - GtkWidget *menu; - GtkWidget *menu_item; - - guint16 width; - guint16 height; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_option_menu_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_option_menu_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_option_menu_get_menu</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkOptionMenu *option_menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_option_menu_set_menu</NAME> -<RETURNS>void </RETURNS> -GtkOptionMenu *option_menu,GtkWidget *menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_option_menu_remove_menu</NAME> -<RETURNS>void </RETURNS> -GtkOptionMenu *option_menu -</FUNCTION> -<FUNCTION> -<NAME>gtk_option_menu_set_history</NAME> -<RETURNS>void </RETURNS> -GtkOptionMenu *option_menu,guint index -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_PACKER</NAME> -#define GTK_TYPE_PACKER (gtk_packer_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_PACKER</NAME> -#define GTK_PACKER(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PACKER, GtkPacker)) -</MACRO> -<MACRO> -<NAME>GTK_PACKER_CLASS</NAME> -#define GTK_PACKER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PACKER, GtkPackerClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_PACKER</NAME> -#define GTK_IS_PACKER(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PACKER)) -</MACRO> -<MACRO> -<NAME>GTK_IS_PACKER_CLASS</NAME> -#define GTK_IS_PACKER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PACKER)) -</MACRO> -<STRUCT> -<NAME>GtkPacker</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPackerClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPackerChild</NAME> -</STRUCT> -<ENUM> -<NAME>GtkPackerOptions</NAME> -typedef enum -{ - GTK_PACK_EXPAND = 1 << 0, /*< nick=expand >*/ - GTK_FILL_X = 1 << 1, - GTK_FILL_Y = 1 << 2 -} GtkPackerOptions; -</ENUM> -<ENUM> -<NAME>GtkSideType</NAME> -typedef enum -{ - GTK_SIDE_TOP, - GTK_SIDE_BOTTOM, - GTK_SIDE_LEFT, - GTK_SIDE_RIGHT -} GtkSideType; -</ENUM> -<ENUM> -<NAME>GtkAnchorType</NAME> -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; -</ENUM> -<STRUCT> -<NAME>GtkPackerChild</NAME> -struct GtkPackerChild -{ - GtkWidget *widget; - - GtkAnchorType anchor; - GtkSideType side; - GtkPackerOptions options; - - guint use_default : 1; - - guint border_width : 16; - guint pad_x : 16; - guint pad_y : 16; - guint i_pad_x : 16; - guint i_pad_y : 16; -}; -</STRUCT> -<STRUCT> -<NAME>GtkPacker</NAME> -struct GtkPacker -{ - GtkContainer parent; - - GList *children; - - guint spacing; - - guint default_border_width : 16; - guint default_pad_x : 16; - guint default_pad_y : 16; - guint default_i_pad_x : 16; - guint default_i_pad_y : 16; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_packer_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_packer_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_packer_add_defaults</NAME> -<RETURNS>void </RETURNS> -GtkPacker *packer,GtkWidget *child,GtkSideType side,GtkAnchorType anchor,GtkPackerOptions options -</FUNCTION> -<FUNCTION> -<NAME>gtk_packer_add</NAME> -<RETURNS>void </RETURNS> -GtkPacker *packer,GtkWidget *child,GtkSideType side,GtkAnchorType anchor,GtkPackerOptions options,guint border_width,guint pad_x,guint pad_y,guint i_pad_x,guint i_pad_y -</FUNCTION> -<FUNCTION> -<NAME>gtk_packer_set_child_packing</NAME> -<RETURNS>void </RETURNS> -GtkPacker *packer,GtkWidget *child,GtkSideType side,GtkAnchorType anchor,GtkPackerOptions options,guint border_width,guint pad_x,guint pad_y,guint i_pad_x,guint i_pad_y -</FUNCTION> -<FUNCTION> -<NAME>gtk_packer_reorder_child</NAME> -<RETURNS>void </RETURNS> -GtkPacker *packer,GtkWidget *child,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_packer_set_spacing</NAME> -<RETURNS>void </RETURNS> -GtkPacker *packer,guint spacing -</FUNCTION> -<FUNCTION> -<NAME>gtk_packer_set_default_border_width</NAME> -<RETURNS>void </RETURNS> -GtkPacker *packer,guint border -</FUNCTION> -<FUNCTION> -<NAME>gtk_packer_set_default_pad</NAME> -<RETURNS>void </RETURNS> -GtkPacker *packer,guint pad_x,guint pad_y -</FUNCTION> -<FUNCTION> -<NAME>gtk_packer_set_default_ipad</NAME> -<RETURNS>void </RETURNS> -GtkPacker *packer,guint i_pad_x,guint i_pad_y -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_PANED</NAME> -#define GTK_TYPE_PANED (gtk_paned_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_PANED</NAME> -#define GTK_PANED(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PANED, GtkPaned)) -</MACRO> -<MACRO> -<NAME>GTK_PANED_CLASS</NAME> -#define GTK_PANED_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PANED, GtkPanedClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_PANED</NAME> -#define GTK_IS_PANED(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PANED)) -</MACRO> -<MACRO> -<NAME>GTK_IS_PANED_CLASS</NAME> -#define GTK_IS_PANED_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PANED)) -</MACRO> -<STRUCT> -<NAME>GtkPaned</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPanedClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPaned</NAME> -struct GtkPaned -{ - GtkContainer container; - - GtkWidget *child1; - GtkWidget *child2; - - GdkWindow *handle; - GdkRectangle groove_rectangle; - GdkGC *xor_gc; - - /*< public >*/ - guint16 handle_size; - guint16 gutter_size; - - /*< private >*/ - 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; - - gint16 handle_xpos; - gint16 handle_ypos; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_paned_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_paned_add1</NAME> -<RETURNS>void </RETURNS> -GtkPaned *paned,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_paned_add2</NAME> -<RETURNS>void </RETURNS> -GtkPaned *paned,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_paned_pack1</NAME> -<RETURNS>void </RETURNS> -GtkPaned *paned,GtkWidget *child,gboolean resize,gboolean shrink -</FUNCTION> -<FUNCTION> -<NAME>gtk_paned_pack2</NAME> -<RETURNS>void </RETURNS> -GtkPaned *paned,GtkWidget *child,gboolean resize,gboolean shrink -</FUNCTION> -<FUNCTION> -<NAME>gtk_paned_set_position</NAME> -<RETURNS>void </RETURNS> -GtkPaned *paned,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_paned_set_handle_size</NAME> -<RETURNS>void </RETURNS> -GtkPaned *paned,guint16 size -</FUNCTION> -<FUNCTION> -<NAME>gtk_paned_set_gutter_size</NAME> -<RETURNS>void </RETURNS> -GtkPaned *paned,guint16 size -</FUNCTION> -<FUNCTION> -<NAME>gtk_paned_compute_position</NAME> -<RETURNS>void </RETURNS> -GtkPaned *paned,gint allocation,gint child1_req,gint child2_req -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_PIXMAP</NAME> -#define GTK_TYPE_PIXMAP (gtk_pixmap_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_PIXMAP</NAME> -#define GTK_PIXMAP(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PIXMAP, GtkPixmap)) -</MACRO> -<MACRO> -<NAME>GTK_PIXMAP_CLASS</NAME> -#define GTK_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PIXMAP, GtkPixmapClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_PIXMAP</NAME> -#define GTK_IS_PIXMAP(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PIXMAP)) -</MACRO> -<MACRO> -<NAME>GTK_IS_PIXMAP_CLASS</NAME> -#define GTK_IS_PIXMAP_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PIXMAP)) -</MACRO> -<STRUCT> -<NAME>GtkPixmap</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPixmapClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPixmap</NAME> -struct GtkPixmap -{ - GtkMisc misc; - - GdkPixmap *pixmap; - GdkBitmap *mask; - - GdkPixmap *pixmap_insensitive; - guint build_insensitive : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_pixmap_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_pixmap_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GdkPixmap *pixmap,GdkBitmap *mask -</FUNCTION> -<FUNCTION> -<NAME>gtk_pixmap_set</NAME> -<RETURNS>void </RETURNS> -GtkPixmap *pixmap,GdkPixmap *val,GdkBitmap *mask -</FUNCTION> -<FUNCTION> -<NAME>gtk_pixmap_get</NAME> -<RETURNS>void </RETURNS> -GtkPixmap *pixmap,GdkPixmap **val,GdkBitmap **mask -</FUNCTION> -<FUNCTION> -<NAME>gtk_pixmap_set_build_insensitive</NAME> -<RETURNS>void </RETURNS> -GtkPixmap *pixmap,guint build -</FUNCTION> -<MACRO> -<NAME>GTK_PLUG</NAME> -#define GTK_PLUG(obj) GTK_CHECK_CAST (obj, gtk_plug_get_type (), GtkPlug) -</MACRO> -<MACRO> -<NAME>GTK_PLUG_CLASS</NAME> -#define GTK_PLUG_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_plug_get_type (), GtkPlugClass) -</MACRO> -<MACRO> -<NAME>GTK_IS_PLUG</NAME> -#define GTK_IS_PLUG(obj) GTK_CHECK_TYPE (obj, gtk_plug_get_type ()) -</MACRO> -<STRUCT> -<NAME>GtkPlug</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPlugClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPlug</NAME> -struct GtkPlug -{ - GtkWindow window; - - GdkWindow *socket_window; - gint same_app; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_plug_get_type</NAME> -<RETURNS>guint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_plug_construct</NAME> -<RETURNS>void </RETURNS> -GtkPlug *plug, guint32 socket_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_plug_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -guint32 socket_id -</FUNCTION> -<MACRO> -<NAME>GTK_PREVIEW</NAME> -#define GTK_PREVIEW(obj) GTK_CHECK_CAST (obj, gtk_preview_get_type (), GtkPreview) -</MACRO> -<MACRO> -<NAME>GTK_PREVIEW_CLASS</NAME> -#define GTK_PREVIEW_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_preview_get_type (), GtkPreviewClass) -</MACRO> -<MACRO> -<NAME>GTK_IS_PREVIEW</NAME> -#define GTK_IS_PREVIEW(obj) GTK_CHECK_TYPE (obj, gtk_preview_get_type ()) -</MACRO> -<STRUCT> -<NAME>GtkPreview</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPreviewInfo</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPreviewClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPreview</NAME> -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> -<STRUCT> -<NAME>GtkPreviewInfo</NAME> -struct GtkPreviewInfo -{ - GdkVisual *visual; - GdkColormap *cmap; - - guchar *lookup; - - gdouble gamma; -}; -</STRUCT> -<UNION> -<NAME>GtkDitherInfo</NAME> -union GtkDitherInfo -{ - gushort s[2]; - guchar c[4]; -}; -</UNION> -<FUNCTION> -<NAME>gtk_preview_get_type</NAME> -<RETURNS>guint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_uninit</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkPreviewType type -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_size</NAME> -<RETURNS>void </RETURNS> -GtkPreview *preview,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_put</NAME> -<RETURNS>void </RETURNS> -GtkPreview *preview,GdkWindow *window,GdkGC *gc,gint srcx,gint srcy,gint destx,gint desty,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_draw_row</NAME> -<RETURNS>void </RETURNS> -GtkPreview *preview,guchar *data,gint x,gint y,gint w -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_set_expand</NAME> -<RETURNS>void </RETURNS> -GtkPreview *preview,gint expand -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_set_gamma</NAME> -<RETURNS>void </RETURNS> -double gamma -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_set_color_cube</NAME> -<RETURNS>void </RETURNS> -guint nred_shades,guint ngreen_shades,guint nblue_shades,guint ngray_shades -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_set_install_cmap</NAME> -<RETURNS>void </RETURNS> -gint install_cmap -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_set_reserved</NAME> -<RETURNS>void </RETURNS> -gint nreserved -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_set_dither</NAME> -<RETURNS>void </RETURNS> -GtkPreview *preview,GdkRgbDither dither -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_get_visual</NAME> -<RETURNS>GdkVisual *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_get_cmap</NAME> -<RETURNS>GdkColormap *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_get_info</NAME> -<RETURNS>GtkPreviewInfo *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_preview_reset</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<ENUM> -<NAME>GtkPrivateFlags</NAME> -typedef enum -{ - PRIVATE_GTK_USER_STYLE = 1 << 0, - PRIVATE_GTK_REDRAW_PENDING = 1 << 1, - PRIVATE_GTK_RESIZE_PENDING = 1 << 2, - PRIVATE_GTK_RESIZE_NEEDED = 1 << 3, - PRIVATE_GTK_LEAVE_PENDING = 1 << 4, - PRIVATE_GTK_HAS_SHAPE_MASK = 1 << 5, - PRIVATE_GTK_IN_REPARENT = 1 << 6, - PRIVATE_GTK_IS_OFFSCREEN = 1 << 7 -} GtkPrivateFlags; -</ENUM> -<MACRO> -<NAME>GTK_PRIVATE_FLAGS</NAME> -#define GTK_PRIVATE_FLAGS(wid) (GTK_WIDGET (wid)->private_flags) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_USER_STYLE</NAME> -#define GTK_WIDGET_USER_STYLE(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_USER_STYLE) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_REDRAW_PENDING</NAME> -#define GTK_WIDGET_REDRAW_PENDING(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_REDRAW_PENDING) != 0) -</MACRO> -<MACRO> -<NAME>GTK_CONTAINER_RESIZE_PENDING</NAME> -#define GTK_CONTAINER_RESIZE_PENDING(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_RESIZE_PENDING) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_RESIZE_NEEDED</NAME> -#define GTK_WIDGET_RESIZE_NEEDED(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_RESIZE_NEEDED) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_LEAVE_PENDING</NAME> -#define GTK_WIDGET_LEAVE_PENDING(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_LEAVE_PENDING) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_HAS_SHAPE_MASK</NAME> -#define GTK_WIDGET_HAS_SHAPE_MASK(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_HAS_SHAPE_MASK) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_IN_REPARENT</NAME> -#define GTK_WIDGET_IN_REPARENT(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_IN_REPARENT) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_IS_OFFSCREEN</NAME> -#define GTK_WIDGET_IS_OFFSCREEN(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_IS_OFFSCREEN) != 0) -</MACRO> -<MACRO> -<NAME>GTK_PRIVATE_SET_FLAG</NAME> -#define GTK_PRIVATE_SET_FLAG(wid,flag) G_STMT_START{ (GTK_PRIVATE_FLAGS (wid) |= (PRIVATE_ ## flag)); }G_STMT_END -</MACRO> -<MACRO> -<NAME>GTK_PRIVATE_UNSET_FLAG</NAME> -#define GTK_PRIVATE_UNSET_FLAG(wid,flag) G_STMT_START{ (GTK_PRIVATE_FLAGS (wid) &= ~(PRIVATE_ ## flag)); }G_STMT_END -</MACRO> -<MACRO> -<NAME>GTK_TYPE_PROGRESS</NAME> -#define GTK_TYPE_PROGRESS (gtk_progress_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_PROGRESS</NAME> -#define GTK_PROGRESS(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PROGRESS, GtkProgress)) -</MACRO> -<MACRO> -<NAME>GTK_PROGRESS_CLASS</NAME> -#define GTK_PROGRESS_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PROGRESS, GtkProgressClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_PROGRESS</NAME> -#define GTK_IS_PROGRESS(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PROGRESS)) -</MACRO> -<MACRO> -<NAME>GTK_IS_PROGRESS_CLASS</NAME> -#define GTK_IS_PROGRESS_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PROGRESS)) -</MACRO> -<STRUCT> -<NAME>GtkProgress</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkProgressClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkProgress</NAME> -struct GtkProgress -{ - GtkWidget widget; - - GtkAdjustment *adjustment; - GdkPixmap *offscreen_pixmap; - gchar *format; - gfloat x_align; - gfloat y_align; - - guint show_text : 1; - guint activity_mode : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_progress_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_set_show_text</NAME> -<RETURNS>void </RETURNS> -GtkProgress *progress,gint show_text -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_set_text_alignment</NAME> -<RETURNS>void </RETURNS> -GtkProgress *progress,gfloat x_align,gfloat y_align -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_set_format_string</NAME> -<RETURNS>void </RETURNS> -GtkProgress *progress,gchar *format -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_set_adjustment</NAME> -<RETURNS>void </RETURNS> -GtkProgress *progress,GtkAdjustment *adjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_configure</NAME> -<RETURNS>void </RETURNS> -GtkProgress *progress,gfloat value,gfloat min,gfloat max -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_set_percentage</NAME> -<RETURNS>void </RETURNS> -GtkProgress *progress,gfloat percentage -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_set_value</NAME> -<RETURNS>void </RETURNS> -GtkProgress *progress,gfloat value -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_get_value</NAME> -<RETURNS>gfloat </RETURNS> -GtkProgress *progress -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_set_activity_mode</NAME> -<RETURNS>void </RETURNS> -GtkProgress *progress,guint activity_mode -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_get_current_text</NAME> -<RETURNS>gchar *</RETURNS> -GtkProgress *progress -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_get_text_from_value</NAME> -<RETURNS>gchar *</RETURNS> -GtkProgress *progress,gfloat value -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_get_current_percentage</NAME> -<RETURNS>gfloat </RETURNS> -GtkProgress *progress -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_get_percentage_from_value</NAME> -<RETURNS>gfloat </RETURNS> -GtkProgress *progress,gfloat value -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_PROGRESS_BAR</NAME> -#define GTK_TYPE_PROGRESS_BAR (gtk_progress_bar_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_PROGRESS_BAR</NAME> -#define GTK_PROGRESS_BAR(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_PROGRESS_BAR, GtkProgressBar)) -</MACRO> -<MACRO> -<NAME>GTK_PROGRESS_BAR_CLASS</NAME> -#define GTK_PROGRESS_BAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PROGRESS_BAR, GtkProgressBarClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_PROGRESS_BAR</NAME> -#define GTK_IS_PROGRESS_BAR(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_PROGRESS_BAR)) -</MACRO> -<MACRO> -<NAME>GTK_IS_PROGRESS_BAR_CLASS</NAME> -#define GTK_IS_PROGRESS_BAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PROGRESS_BAR)) -</MACRO> -<STRUCT> -<NAME>GtkProgressBar</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkProgressBarClass</NAME> -</STRUCT> -<ENUM> -<NAME>GtkProgressBarStyle</NAME> -typedef enum -{ - GTK_PROGRESS_CONTINUOUS, - GTK_PROGRESS_DISCRETE -} GtkProgressBarStyle; -</ENUM> -<ENUM> -<NAME>GtkProgressBarOrientation</NAME> -typedef enum -{ - GTK_PROGRESS_LEFT_TO_RIGHT, - GTK_PROGRESS_RIGHT_TO_LEFT, - GTK_PROGRESS_BOTTOM_TO_TOP, - GTK_PROGRESS_TOP_TO_BOTTOM -} GtkProgressBarOrientation; -</ENUM> -<STRUCT> -<NAME>GtkProgressBar</NAME> -struct GtkProgressBar -{ - GtkProgress progress; - - GtkProgressBarStyle bar_style; - GtkProgressBarOrientation orientation; - - guint blocks; - gint in_block; - - gint activity_pos; - guint activity_step; - guint activity_blocks; - guint activity_dir : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_progress_bar_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_bar_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_bar_new_with_adjustment</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkAdjustment *adjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_bar_set_bar_style</NAME> -<RETURNS>void </RETURNS> -GtkProgressBar *pbar,GtkProgressBarStyle style -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_bar_set_discrete_blocks</NAME> -<RETURNS>void </RETURNS> -GtkProgressBar *pbar,guint blocks -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_bar_set_activity_step</NAME> -<RETURNS>void </RETURNS> -GtkProgressBar *pbar,guint step -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_bar_set_activity_blocks</NAME> -<RETURNS>void </RETURNS> -GtkProgressBar *pbar,guint blocks -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_bar_set_orientation</NAME> -<RETURNS>void </RETURNS> -GtkProgressBar *pbar,GtkProgressBarOrientation orientation -</FUNCTION> -<FUNCTION> -<NAME>gtk_progress_bar_update</NAME> -<RETURNS>void </RETURNS> -GtkProgressBar *pbar,gfloat percentage -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_RADIO_BUTTON</NAME> -#define GTK_TYPE_RADIO_BUTTON (gtk_radio_button_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_RADIO_BUTTON</NAME> -#define GTK_RADIO_BUTTON(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_RADIO_BUTTON, GtkRadioButton)) -</MACRO> -<MACRO> -<NAME>GTK_RADIO_BUTTON_CLASS</NAME> -#define GTK_RADIO_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_BUTTON, GtkRadioButtonClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_RADIO_BUTTON</NAME> -#define GTK_IS_RADIO_BUTTON(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_RADIO_BUTTON)) -</MACRO> -<MACRO> -<NAME>GTK_IS_RADIO_BUTTON_CLASS</NAME> -#define GTK_IS_RADIO_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_BUTTON)) -</MACRO> -<STRUCT> -<NAME>GtkRadioButton</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkRadioButtonClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkRadioButton</NAME> -struct GtkRadioButton -{ - GtkCheckButton check_button; - - GSList *group; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_radio_button_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_radio_button_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GSList *group -</FUNCTION> -<FUNCTION> -<NAME>gtk_radio_button_new_from_widget</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkRadioButton *group -</FUNCTION> -<FUNCTION> -<NAME>gtk_radio_button_new_with_label</NAME> -<RETURNS>GtkWidget *</RETURNS> -GSList *group,const gchar *label -</FUNCTION> -<FUNCTION> -<NAME>gtk_radio_button_new_with_label_from_widget</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkRadioButton *group,const gchar *label -</FUNCTION> -<FUNCTION> -<NAME>gtk_radio_button_group</NAME> -<RETURNS>GSList *</RETURNS> -GtkRadioButton *radio_button -</FUNCTION> -<FUNCTION> -<NAME>gtk_radio_button_set_group</NAME> -<RETURNS>void </RETURNS> -GtkRadioButton *radio_button,GSList *group -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_RADIO_MENU_ITEM</NAME> -#define GTK_TYPE_RADIO_MENU_ITEM (gtk_radio_menu_item_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_RADIO_MENU_ITEM</NAME> -#define GTK_RADIO_MENU_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem)) -</MACRO> -<MACRO> -<NAME>GTK_RADIO_MENU_ITEM_CLASS</NAME> -#define GTK_RADIO_MENU_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItemClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_RADIO_MENU_ITEM</NAME> -#define GTK_IS_RADIO_MENU_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_RADIO_MENU_ITEM)) -</MACRO> -<MACRO> -<NAME>GTK_IS_RADIO_MENU_ITEM_CLASS</NAME> -#define GTK_IS_RADIO_MENU_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_MENU_ITEM)) -</MACRO> -<STRUCT> -<NAME>GtkRadioMenuItem</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkRadioMenuItemClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkRadioMenuItem</NAME> -struct GtkRadioMenuItem -{ - GtkCheckMenuItem check_menu_item; - - GSList *group; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_radio_menu_item_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_radio_menu_item_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GSList *group -</FUNCTION> -<FUNCTION> -<NAME>gtk_radio_menu_item_new_with_label</NAME> -<RETURNS>GtkWidget *</RETURNS> -GSList *group,const gchar *label -</FUNCTION> -<FUNCTION> -<NAME>gtk_radio_menu_item_group</NAME> -<RETURNS>GSList *</RETURNS> -GtkRadioMenuItem *radio_menu_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_radio_menu_item_set_group</NAME> -<RETURNS>void </RETURNS> -GtkRadioMenuItem *radio_menu_item,GSList *group -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_RANGE</NAME> -#define GTK_TYPE_RANGE (gtk_range_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_RANGE</NAME> -#define GTK_RANGE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_RANGE, GtkRange)) -</MACRO> -<MACRO> -<NAME>GTK_RANGE_CLASS</NAME> -#define GTK_RANGE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_RANGE, GtkRangeClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_RANGE</NAME> -#define GTK_IS_RANGE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_RANGE)) -</MACRO> -<MACRO> -<NAME>GTK_IS_RANGE_CLASS</NAME> -#define GTK_IS_RANGE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RANGE)) -</MACRO> -<STRUCT> -<NAME>GtkRange</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkRangeClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkRange</NAME> -struct GtkRange -{ - GtkWidget widget; - - GdkWindow *trough; - GdkWindow *slider; - GdkWindow *step_forw; - GdkWindow *step_back; - - gint16 x_click_point; - gint16 y_click_point; - - guint8 button; - gint8 digits; - guint policy : 2; - guint scroll_type : 3; - guint in_child : 3; - guint click_child : 3; - guint need_timer : 1; - - guint32 timer; - - gfloat old_value; - gfloat old_lower; - gfloat old_upper; - gfloat old_page_size; - - GtkAdjustment *adjustment; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_range_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_get_adjustment</NAME> -<RETURNS>GtkAdjustment *</RETURNS> -GtkRange *range -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_set_update_policy</NAME> -<RETURNS>void </RETURNS> -GtkRange *range,GtkUpdateType policy -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_set_adjustment</NAME> -<RETURNS>void </RETURNS> -GtkRange *range,GtkAdjustment *adjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_draw_background</NAME> -<RETURNS>void </RETURNS> -GtkRange *range -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_clear_background</NAME> -<RETURNS>void </RETURNS> -GtkRange *range -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_draw_trough</NAME> -<RETURNS>void </RETURNS> -GtkRange *range -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_draw_slider</NAME> -<RETURNS>void </RETURNS> -GtkRange *range -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_draw_step_forw</NAME> -<RETURNS>void </RETURNS> -GtkRange *range -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_draw_step_back</NAME> -<RETURNS>void </RETURNS> -GtkRange *range -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_slider_update</NAME> -<RETURNS>void </RETURNS> -GtkRange *range -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_trough_click</NAME> -<RETURNS>gint </RETURNS> -GtkRange *range,gint x,gint y,gfloat *jump_perc -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_default_hslider_update</NAME> -<RETURNS>void </RETURNS> -GtkRange *range -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_default_vslider_update</NAME> -<RETURNS>void </RETURNS> -GtkRange *range -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_default_htrough_click</NAME> -<RETURNS>gint </RETURNS> -GtkRange *range,gint x,gint y,gfloat *jump_perc -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_default_vtrough_click</NAME> -<RETURNS>gint </RETURNS> -GtkRange *range,gint x,gint y,gfloat *jump_perc -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_default_hmotion</NAME> -<RETURNS>void </RETURNS> -GtkRange *range,gint xdelta,gint ydelta -</FUNCTION> -<FUNCTION> -<NAME>gtk_range_default_vmotion</NAME> -<RETURNS>void </RETURNS> -GtkRange *range,gint xdelta,gint ydelta -</FUNCTION> -<ENUM> -<NAME>GtkRcFlags</NAME> -typedef enum { - GTK_RC_FG = 1 << 0, - GTK_RC_BG = 1 << 1, - GTK_RC_TEXT = 1 << 2, - GTK_RC_BASE = 1 << 3 -} GtkRcFlags; -</ENUM> -<STRUCT> -<NAME>GtkRcStyle</NAME> -struct GtkRcStyle -{ - gchar *name; - gchar *font_name; - gchar *fontset_name; - gchar *bg_pixmap_name[5]; - - GtkRcFlags color_flags[5]; - GdkColor fg[5]; - GdkColor bg[5]; - GdkColor text[5]; - GdkColor base[5]; - - GtkThemeEngine *engine; - gpointer engine_data; - - /* Private */ - guint ref_count; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_rc_init</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_add_default_file</NAME> -<RETURNS>void </RETURNS> -const gchar *filename -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_set_default_files</NAME> -<RETURNS>void </RETURNS> -gchar **filenames -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_get_default_files</NAME> -<RETURNS>gchar **</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_parse</NAME> -<RETURNS>void </RETURNS> -const gchar *filename -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_parse_string</NAME> -<RETURNS>void </RETURNS> -const gchar *rc_string -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_reparse_all</NAME> -<RETURNS>gboolean </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_get_style</NAME> -<RETURNS>GtkStyle *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_add_widget_name_style</NAME> -<RETURNS>void </RETURNS> -GtkRcStyle *rc_style,const gchar *pattern -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_add_widget_class_style</NAME> -<RETURNS>void </RETURNS> -GtkRcStyle *rc_style,const gchar *pattern -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_add_class_style</NAME> -<RETURNS>void </RETURNS> -GtkRcStyle *rc_style,const gchar *pattern -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_style_new</NAME> -<RETURNS>GtkRcStyle *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_style_ref</NAME> -<RETURNS>void </RETURNS> -GtkRcStyle *rc_style -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_style_unref</NAME> -<RETURNS>void </RETURNS> -GtkRcStyle *rc_style -</FUNCTION> -<USER_FUNCTION> -<NAME>GtkImageLoader</NAME> -<RETURNS>GdkPixmap *</RETURNS> -GdkWindow *window, - GdkColormap *colormap, - GdkBitmap **mask, - GdkColor *transparent_color, - const gchar *filename -</USER_FUNCTION> -<FUNCTION> -<NAME>gtk_rc_set_image_loader</NAME> -<RETURNS>void </RETURNS> -GtkImageLoader loader -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_load_image</NAME> -<RETURNS>GdkPixmap *</RETURNS> -GdkColormap *colormap,GdkColor *transparent_color,const gchar *filename -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_find_pixmap_in_path</NAME> -<RETURNS>gchar *</RETURNS> -GScanner *scanner,const gchar *pixmap_file -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_find_module_in_path</NAME> -<RETURNS>gchar *</RETURNS> -const gchar *module_file -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_get_theme_dir</NAME> -<RETURNS>gchar *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_get_module_dir</NAME> -<RETURNS>gchar *</RETURNS> -void -</FUNCTION> -<ENUM> -<NAME>GtkRcTokenType</NAME> -typedef enum { - GTK_RC_TOKEN_INVALID = G_TOKEN_LAST, - GTK_RC_TOKEN_INCLUDE, - GTK_RC_TOKEN_NORMAL, - GTK_RC_TOKEN_ACTIVE, - GTK_RC_TOKEN_PRELIGHT, - GTK_RC_TOKEN_SELECTED, - GTK_RC_TOKEN_INSENSITIVE, - GTK_RC_TOKEN_FG, - GTK_RC_TOKEN_BG, - GTK_RC_TOKEN_BASE, - GTK_RC_TOKEN_TEXT, - GTK_RC_TOKEN_FONT, - GTK_RC_TOKEN_FONTSET, - GTK_RC_TOKEN_BG_PIXMAP, - GTK_RC_TOKEN_PIXMAP_PATH, - GTK_RC_TOKEN_STYLE, - GTK_RC_TOKEN_BINDING, - GTK_RC_TOKEN_BIND, - GTK_RC_TOKEN_WIDGET, - GTK_RC_TOKEN_WIDGET_CLASS, - GTK_RC_TOKEN_CLASS, - GTK_RC_TOKEN_LOWEST, - GTK_RC_TOKEN_GTK, - GTK_RC_TOKEN_APPLICATION, - GTK_RC_TOKEN_RC, - GTK_RC_TOKEN_HIGHEST, - GTK_RC_TOKEN_ENGINE, - GTK_RC_TOKEN_MODULE_PATH, - GTK_RC_TOKEN_LAST -} GtkRcTokenType; -</ENUM> -<FUNCTION> -<NAME>gtk_rc_parse_color</NAME> -<RETURNS>guint </RETURNS> -GScanner *scanner,GdkColor *color -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_parse_state</NAME> -<RETURNS>guint </RETURNS> -GScanner *scanner,GtkStateType *state -</FUNCTION> -<FUNCTION> -<NAME>gtk_rc_parse_priority</NAME> -<RETURNS>guint </RETURNS> -GScanner *scanner,GtkPathPriorityType *priority -</FUNCTION> -<MACRO> -<NAME>GTK_RULER</NAME> -#define GTK_RULER(obj) GTK_CHECK_CAST (obj, gtk_ruler_get_type (), GtkRuler) -</MACRO> -<MACRO> -<NAME>GTK_RULER_CLASS</NAME> -#define GTK_RULER_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_ruler_get_type (), GtkRulerClass) -</MACRO> -<MACRO> -<NAME>GTK_IS_RULER</NAME> -#define GTK_IS_RULER(obj) GTK_CHECK_TYPE (obj, gtk_ruler_get_type ()) -</MACRO> -<STRUCT> -<NAME>GtkRuler</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkRulerClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkRulerMetric</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkRuler</NAME> -struct GtkRuler -{ - GtkWidget widget; - - GdkPixmap *backing_store; - GdkGC *non_gr_exp_gc; - GtkRulerMetric *metric; - gint xsrc, ysrc; - gint slider_size; - - /* The upper limit of the ruler (in points) */ - gfloat lower; - /* The lower limit of the ruler */ - gfloat upper; - /* The position of the mark on the ruler */ - gfloat position; - /* The maximum size of the ruler */ - gfloat max_size; -}; -</STRUCT> -<STRUCT> -<NAME>GtkRulerMetric</NAME> -struct GtkRulerMetric -{ - gchar *metric_name; - gchar *abbrev; - /* This should be points_per_unit. This is the size of the unit - * in 1/72nd's of an inch and has nothing to do with screen pixels */ - gfloat pixels_per_unit; - gfloat ruler_scale[10]; - gint subdivide[5]; /* five possible modes of subdivision */ -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_ruler_get_type</NAME> -<RETURNS>guint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_ruler_set_metric</NAME> -<RETURNS>void </RETURNS> -GtkRuler *ruler,GtkMetricType metric -</FUNCTION> -<FUNCTION> -<NAME>gtk_ruler_set_range</NAME> -<RETURNS>void </RETURNS> -GtkRuler *ruler,gfloat lower,gfloat upper,gfloat position,gfloat max_size -</FUNCTION> -<FUNCTION> -<NAME>gtk_ruler_draw_ticks</NAME> -<RETURNS>void </RETURNS> -GtkRuler *ruler -</FUNCTION> -<FUNCTION> -<NAME>gtk_ruler_draw_pos</NAME> -<RETURNS>void </RETURNS> -GtkRuler *ruler -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_SCALE</NAME> -#define GTK_TYPE_SCALE (gtk_scale_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_SCALE</NAME> -#define GTK_SCALE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_SCALE, GtkScale)) -</MACRO> -<MACRO> -<NAME>GTK_SCALE_CLASS</NAME> -#define GTK_SCALE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCALE, GtkScaleClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_SCALE</NAME> -#define GTK_IS_SCALE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_SCALE)) -</MACRO> -<MACRO> -<NAME>GTK_IS_SCALE_CLASS</NAME> -#define GTK_IS_SCALE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCALE)) -</MACRO> -<STRUCT> -<NAME>GtkScale</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkScaleClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkScale</NAME> -struct GtkScale -{ - GtkRange range; - - guint draw_value : 1; - guint value_pos : 2; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_scale_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_scale_set_digits</NAME> -<RETURNS>void </RETURNS> -GtkScale *scale,gint digits -</FUNCTION> -<FUNCTION> -<NAME>gtk_scale_set_draw_value</NAME> -<RETURNS>void </RETURNS> -GtkScale *scale,gboolean draw_value -</FUNCTION> -<FUNCTION> -<NAME>gtk_scale_set_value_pos</NAME> -<RETURNS>void </RETURNS> -GtkScale *scale,GtkPositionType pos -</FUNCTION> -<FUNCTION> -<NAME>gtk_scale_get_value_width</NAME> -<RETURNS>gint </RETURNS> -GtkScale *scale -</FUNCTION> -<FUNCTION> -<NAME>gtk_scale_draw_value</NAME> -<RETURNS>void </RETURNS> -GtkScale *scale -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_SCROLLBAR</NAME> -#define GTK_TYPE_SCROLLBAR (gtk_scrollbar_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_SCROLLBAR</NAME> -#define GTK_SCROLLBAR(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_SCROLLBAR, GtkScrollbar)) -</MACRO> -<MACRO> -<NAME>GTK_SCROLLBAR_CLASS</NAME> -#define GTK_SCROLLBAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCROLLBAR, GtkScrollbarClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_SCROLLBAR</NAME> -#define GTK_IS_SCROLLBAR(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_SCROLLBAR)) -</MACRO> -<MACRO> -<NAME>GTK_IS_SCROLLBAR_CLASS</NAME> -#define GTK_IS_SCROLLBAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCROLLBAR)) -</MACRO> -<STRUCT> -<NAME>GtkScrollbar</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkScrollbarClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkScrollbar</NAME> -struct GtkScrollbar -{ - GtkRange range; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_scrollbar_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_SCROLLED_WINDOW</NAME> -#define GTK_TYPE_SCROLLED_WINDOW (gtk_scrolled_window_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_SCROLLED_WINDOW</NAME> -#define GTK_SCROLLED_WINDOW(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindow)) -</MACRO> -<MACRO> -<NAME>GTK_SCROLLED_WINDOW_CLASS</NAME> -#define GTK_SCROLLED_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindowClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_SCROLLED_WINDOW</NAME> -#define GTK_IS_SCROLLED_WINDOW(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_SCROLLED_WINDOW)) -</MACRO> -<MACRO> -<NAME>GTK_IS_SCROLLED_WINDOW_CLASS</NAME> -#define GTK_IS_SCROLLED_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCROLLED_WINDOW)) -</MACRO> -<STRUCT> -<NAME>GtkScrolledWindow</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkScrolledWindowClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkScrolledWindow</NAME> -struct GtkScrolledWindow -{ - GtkBin container; - - GtkWidget *hscrollbar; - GtkWidget *vscrollbar; - - guint hscrollbar_policy : 2; - guint vscrollbar_policy : 2; - guint hscrollbar_visible : 1; - guint vscrollbar_visible : 1; - guint window_placement : 2; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_scrolled_window_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_scrolled_window_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkAdjustment *hadjustment,GtkAdjustment *vadjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_scrolled_window_set_hadjustment</NAME> -<RETURNS>void </RETURNS> -GtkScrolledWindow *scrolled_window,GtkAdjustment *hadjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_scrolled_window_set_vadjustment</NAME> -<RETURNS>void </RETURNS> -GtkScrolledWindow *scrolled_window,GtkAdjustment *hadjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_scrolled_window_get_hadjustment</NAME> -<RETURNS>GtkAdjustment *</RETURNS> -GtkScrolledWindow *scrolled_window -</FUNCTION> -<FUNCTION> -<NAME>gtk_scrolled_window_get_vadjustment</NAME> -<RETURNS>GtkAdjustment *</RETURNS> -GtkScrolledWindow *scrolled_window -</FUNCTION> -<FUNCTION> -<NAME>gtk_scrolled_window_set_policy</NAME> -<RETURNS>void </RETURNS> -GtkScrolledWindow *scrolled_window,GtkPolicyType hscrollbar_policy,GtkPolicyType vscrollbar_policy -</FUNCTION> -<FUNCTION> -<NAME>gtk_scrolled_window_set_placement</NAME> -<RETURNS>void </RETURNS> -GtkScrolledWindow *scrolled_window,GtkCornerType window_placement -</FUNCTION> -<FUNCTION> -<NAME>gtk_scrolled_window_add_with_viewport</NAME> -<RETURNS>void </RETURNS> -GtkScrolledWindow *scrolled_window,GtkWidget *child -</FUNCTION> -<STRUCT> -<NAME>GtkTargetList</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTargetEntry</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTargetEntry</NAME> -struct GtkTargetEntry { - gchar *target; - guint flags; - guint info; -}; -</STRUCT> -<STRUCT> -<NAME>GtkTargetPair</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTargetList</NAME> -struct GtkTargetList { - GList *list; - guint ref_count; -}; -</STRUCT> -<STRUCT> -<NAME>GtkTargetPair</NAME> -struct GtkTargetPair { - GdkAtom target; - guint flags; - guint info; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_target_list_new</NAME> -<RETURNS>GtkTargetList *</RETURNS> -const GtkTargetEntry *targets,guint ntargets -</FUNCTION> -<FUNCTION> -<NAME>gtk_target_list_ref</NAME> -<RETURNS>void </RETURNS> -GtkTargetList *list -</FUNCTION> -<FUNCTION> -<NAME>gtk_target_list_unref</NAME> -<RETURNS>void </RETURNS> -GtkTargetList *list -</FUNCTION> -<FUNCTION> -<NAME>gtk_target_list_add</NAME> -<RETURNS>void </RETURNS> -GtkTargetList *list,GdkAtom target,guint flags,guint info -</FUNCTION> -<FUNCTION> -<NAME>gtk_target_list_add_table</NAME> -<RETURNS>void </RETURNS> -GtkTargetList *list,const GtkTargetEntry *targets,guint ntargets -</FUNCTION> -<FUNCTION> -<NAME>gtk_target_list_remove</NAME> -<RETURNS>void </RETURNS> -GtkTargetList *list,GdkAtom target -</FUNCTION> -<FUNCTION> -<NAME>gtk_target_list_find</NAME> -<RETURNS>gboolean </RETURNS> -GtkTargetList *list,GdkAtom target,guint *info -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_owner_set</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget,GdkAtom selection,guint32 time -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_add_target</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GdkAtom selection,GdkAtom target,guint info -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_add_targets</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GdkAtom selection,const GtkTargetEntry *targets,guint ntargets -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_convert</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget,GdkAtom selection,GdkAtom target,guint32 time -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_data_set</NAME> -<RETURNS>void </RETURNS> -GtkSelectionData *selection_data,GdkAtom type,gint format,guchar *data,gint length -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_remove_all</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_clear</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget,GdkEventSelection *event -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_request</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget,GdkEventSelection *event -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_incr_event</NAME> -<RETURNS>gint </RETURNS> -GdkWindow *window,GdkEventProperty *event -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_notify</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget,GdkEventSelection *event -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_property_notify</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget,GdkEventProperty *event -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_data_copy</NAME> -<RETURNS>GtkSelectioData *</RETURNS> -GtkSelectionData *data -</FUNCTION> -<FUNCTION> -<NAME>gtk_selection_data_free</NAME> -<RETURNS>void </RETURNS> -GtkSelectionData *data -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_SEPARATOR</NAME> -#define GTK_TYPE_SEPARATOR (gtk_separator_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_SEPARATOR</NAME> -#define GTK_SEPARATOR(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_SEPARATOR, GtkSeparator)) -</MACRO> -<MACRO> -<NAME>GTK_SEPARATOR_CLASS</NAME> -#define GTK_SEPARATOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR, GtkSeparatorClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_SEPARATOR</NAME> -#define GTK_IS_SEPARATOR(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_SEPARATOR)) -</MACRO> -<MACRO> -<NAME>GTK_IS_SEPARATOR_CLASS</NAME> -#define GTK_IS_SEPARATOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR)) -</MACRO> -<STRUCT> -<NAME>GtkSeparator</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkSeparatorClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkSeparator</NAME> -struct GtkSeparator -{ - GtkWidget widget; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_separator_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<MACRO> -<NAME>GTK_SIGNAL_OFFSET</NAME> -#define GTK_SIGNAL_OFFSET(struct, field) (GTK_STRUCT_OFFSET (struct, field)) -</MACRO> -<USER_FUNCTION> -<NAME>GtkSignalMarshal</NAME> -<RETURNS>void </RETURNS> -GtkObject *object, - gpointer data, - guint nparams, - GtkArg *args, - GtkType *arg_types, - GtkType return_type -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkSignalDestroy</NAME> -<RETURNS>void </RETURNS> -gpointer data -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkEmissionHook</NAME> -<RETURNS>gboolean </RETURNS> -GtkObject *object, - guint signal_id, - guint n_params, - GtkArg *params, - gpointer data -</USER_FUNCTION> -<STRUCT> -<NAME>GtkSignalQuery</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkSignalQuery</NAME> -struct GtkSignalQuery -{ - GtkType object_type; - guint signal_id; - const gchar *signal_name; - guint is_user_signal : 1; - GtkSignalRunType signal_flags; - GtkType return_val; - guint nparams; - const GtkType *params; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_signal_lookup</NAME> -<RETURNS>guint </RETURNS> -const gchar *name,GtkType object_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_name</NAME> -<RETURNS>gchar *</RETURNS> -guint signal_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_n_emissions</NAME> -<RETURNS>guint </RETURNS> -GtkObject *object,guint signal_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_n_emissions_by_name</NAME> -<RETURNS>guint </RETURNS> -GtkObject *object,const gchar *name -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_emit_stop</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,guint signal_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_emit_stop_by_name</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *name -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_connect</NAME> -<RETURNS>guint </RETURNS> -GtkObject *object,const gchar *name,GtkSignalFunc func,gpointer func_data -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_connect_after</NAME> -<RETURNS>guint </RETURNS> -GtkObject *object,const gchar *name,GtkSignalFunc func,gpointer func_data -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_connect_object</NAME> -<RETURNS>guint </RETURNS> -GtkObject *object,const gchar *name,GtkSignalFunc func,GtkObject *slot_object -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_connect_object_after</NAME> -<RETURNS>guint </RETURNS> -GtkObject *object,const gchar *name,GtkSignalFunc func,GtkObject *slot_object -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_connect_full</NAME> -<RETURNS>guint </RETURNS> -GtkObject *object,const gchar *name,GtkSignalFunc func,GtkCallbackMarshal marshal,gpointer data,GtkDestroyNotify destroy_func,gint object_signal,gint after -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_connect_object_while_alive</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *signal,GtkSignalFunc func,GtkObject *alive_object -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_connect_while_alive</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *signal,GtkSignalFunc func,gpointer func_data,GtkObject *alive_object -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_disconnect</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,guint handler_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_disconnect_by_func</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GtkSignalFunc func,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_disconnect_by_data</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_handler_block</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,guint handler_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_handler_block_by_func</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GtkSignalFunc func,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_handler_block_by_data</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_handler_unblock</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,guint handler_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_handler_unblock_by_func</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,GtkSignalFunc func,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_handler_unblock_by_data</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_handler_pending</NAME> -<RETURNS>guint </RETURNS> -GtkObject *object,guint signal_id,gboolean may_be_blocked -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_handler_pending_by_func</NAME> -<RETURNS>guint </RETURNS> -GtkObject *object,guint signal_id,gboolean may_be_blocked,GtkSignalFunc func,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_handler_pending_by_id</NAME> -<RETURNS>gint </RETURNS> -GtkObject *object,guint handler_id,gboolean may_be_blocked -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_add_emission_hook</NAME> -<RETURNS>guint </RETURNS> -guint signal_id,GtkEmissionHook hook_func,gpointer data -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_add_emission_hook_full</NAME> -<RETURNS>guint </RETURNS> -guint signal_id,GtkEmissionHook hook_func,gpointer data,GDestroyNotify destroy -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_remove_emission_hook</NAME> -<RETURNS>void </RETURNS> -guint signal_id,guint hook_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_query</NAME> -<RETURNS>GtkSignalQuery *</RETURNS> -guint signal_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_init</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_new</NAME> -<RETURNS>guint </RETURNS> -const gchar *name,GtkSignalRunType signal_flags,GtkType object_type,guint function_offset,GtkSignalMarshaller marshaller,GtkType return_val,guint nparams,... -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_newv</NAME> -<RETURNS>guint </RETURNS> -const gchar *name,GtkSignalRunType signal_flags,GtkType object_type,guint function_offset,GtkSignalMarshaller marshaller,GtkType return_val,guint nparams,GtkType *params -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_emit</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,guint signal_id,... -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_emit_by_name</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *name,... -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_emitv</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,guint signal_id,GtkArg *params -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_emitv_by_name</NAME> -<RETURNS>void </RETURNS> -GtkObject *object,const gchar *name,GtkArg *params -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_handlers_destroy</NAME> -<RETURNS>void </RETURNS> -GtkObject *object -</FUNCTION> -<FUNCTION> -<NAME>gtk_signal_set_funcs</NAME> -<RETURNS>void </RETURNS> -GtkSignalMarshal marshal_func,GtkSignalDestroy destroy_func -</FUNCTION> -<MACRO> -<NAME>GTK_SOCKET</NAME> -#define GTK_SOCKET(obj) GTK_CHECK_CAST (obj, gtk_socket_get_type (), GtkSocket) -</MACRO> -<MACRO> -<NAME>GTK_SOCKET_CLASS</NAME> -#define GTK_SOCKET_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_socket_get_type (), GtkSocketClass) -</MACRO> -<MACRO> -<NAME>GTK_IS_SOCKET</NAME> -#define GTK_IS_SOCKET(obj) GTK_CHECK_TYPE (obj, gtk_socket_get_type ()) -</MACRO> -<STRUCT> -<NAME>GtkSocket</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkSocketClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkSocket</NAME> -struct GtkSocket -{ - GtkContainer container; - - guint16 request_width; - guint16 request_height; - guint16 current_width; - guint16 current_height; - - GdkWindow *plug_window; - guint same_app : 1; - guint focus_in : 1; - guint have_size : 1; - guint need_map : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_socket_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_socket_get_type</NAME> -<RETURNS>guint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_socket_steal</NAME> -<RETURNS>void </RETURNS> -GtkSocket *socket,guint32 wid -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_SPIN_BUTTON</NAME> -#define GTK_TYPE_SPIN_BUTTON (gtk_spin_button_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_SPIN_BUTTON</NAME> -#define GTK_SPIN_BUTTON(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) -</MACRO> -<MACRO> -<NAME>GTK_SPIN_BUTTON_CLASS</NAME> -#define GTK_SPIN_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SPIN_BUTTON, GtkSpinButtonClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_SPIN_BUTTON</NAME> -#define GTK_IS_SPIN_BUTTON(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_SPIN_BUTTON)) -</MACRO> -<MACRO> -<NAME>GTK_IS_SPIN_BUTTON_CLASS</NAME> -#define GTK_IS_SPIN_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SPIN_BUTTON)) -</MACRO> -<ENUM> -<NAME>GtkSpinButtonUpdatePolicy</NAME> -typedef enum -{ - GTK_UPDATE_ALWAYS, - GTK_UPDATE_IF_VALID -} GtkSpinButtonUpdatePolicy; -</ENUM> -<ENUM> -<NAME>GtkSpinType</NAME> -typedef enum -{ - GTK_SPIN_STEP_FORWARD, - GTK_SPIN_STEP_BACKWARD, - GTK_SPIN_PAGE_FORWARD, - GTK_SPIN_PAGE_BACKWARD, - GTK_SPIN_HOME, - GTK_SPIN_END, - GTK_SPIN_USER_DEFINED -} GtkSpinType; -</ENUM> -<STRUCT> -<NAME>GtkSpinButton</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkSpinButtonClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkSpinButton</NAME> -struct GtkSpinButton -{ - GtkEntry entry; - - GtkAdjustment *adjustment; - - GdkWindow *panel; - GtkShadowType shadow_type; - - guint32 timer; - guint32 ev_time; - - gfloat climb_rate; - gfloat timer_step; - - GtkSpinButtonUpdatePolicy update_policy; - - guint in_child : 2; - guint click_child : 2; - guint button : 2; - guint need_timer : 1; - guint timer_calls : 3; - guint digits : 3; - guint numeric : 1; - guint wrap : 1; - guint snap_to_ticks : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_spin_button_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_configure</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button,GtkAdjustment *adjustment,gfloat climb_rate,guint digits -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkAdjustment *adjustment,gfloat climb_rate,guint digits -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_set_adjustment</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button,GtkAdjustment *adjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_get_adjustment</NAME> -<RETURNS>GtkAdjustment *</RETURNS> -GtkSpinButton *spin_button -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_set_digits</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button,guint digits -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_get_value_as_float</NAME> -<RETURNS>gfloat </RETURNS> -GtkSpinButton *spin_button -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_get_value_as_int</NAME> -<RETURNS>gint </RETURNS> -GtkSpinButton *spin_button -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_set_value</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button,gfloat value -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_set_update_policy</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button,GtkSpinButtonUpdatePolicy policy -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_set_numeric</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button,gboolean numeric -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_spin</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button,GtkSpinType direction,gfloat increment -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_set_wrap</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button,gboolean wrap -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_set_shadow_type</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button,GtkShadowType shadow_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_set_snap_to_ticks</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button,gboolean snap_to_ticks -</FUNCTION> -<FUNCTION> -<NAME>gtk_spin_button_update</NAME> -<RETURNS>void </RETURNS> -GtkSpinButton *spin_button -</FUNCTION> -<MACRO> -<NAME>GTK_STATUSBAR</NAME> -#define GTK_STATUSBAR(obj) GTK_CHECK_CAST (obj, gtk_statusbar_get_type (), GtkStatusbar) -</MACRO> -<MACRO> -<NAME>GTK_STATUSBAR_CLASS</NAME> -#define GTK_STATUSBAR_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_statusbar_get_type (), GtkStatusbarClass) -</MACRO> -<MACRO> -<NAME>GTK_IS_STATUSBAR</NAME> -#define GTK_IS_STATUSBAR(obj) GTK_CHECK_TYPE (obj, gtk_statusbar_get_type ()) -</MACRO> -<STRUCT> -<NAME>GtkStatusbar</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkStatusbarClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkStatusbarMsg</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkStatusbar</NAME> -struct GtkStatusbar -{ - GtkHBox parent_widget; - - GtkWidget *frame; - GtkWidget *label; - - GSList *messages; - GSList *keys; - - guint seq_context_id; - guint seq_message_id; -}; -</STRUCT> -<STRUCT> -<NAME>GtkStatusbarMsg</NAME> -struct GtkStatusbarMsg -{ - gchar *text; - guint context_id; - guint message_id; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_statusbar_get_type</NAME> -<RETURNS>guint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_statusbar_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_statusbar_get_context_id</NAME> -<RETURNS>guint </RETURNS> -GtkStatusbar *statusbar,const gchar *context_description -</FUNCTION> -<FUNCTION> -<NAME>gtk_statusbar_push</NAME> -<RETURNS>guint </RETURNS> -GtkStatusbar *statusbar,guint context_id,const gchar *text -</FUNCTION> -<FUNCTION> -<NAME>gtk_statusbar_pop</NAME> -<RETURNS>void </RETURNS> -GtkStatusbar *statusbar,guint context_id -</FUNCTION> -<FUNCTION> -<NAME>gtk_statusbar_remove</NAME> -<RETURNS>void </RETURNS> -GtkStatusbar *statusbar,guint context_id,guint message_id -</FUNCTION> -<STRUCT> -<NAME>GtkStyle</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkStyleClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkThemeEngine</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkRcStyle</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkWidget</NAME> -</STRUCT> -<MACRO> -<NAME>GTK_STYLE_NUM_STYLECOLORS</NAME> -#define GTK_STYLE_NUM_STYLECOLORS() (7 * 5) -</MACRO> -<MACRO> -<NAME>GTK_STYLE_ATTACHED</NAME> -#define GTK_STYLE_ATTACHED(style) (((GtkStyle*) (style))->attach_count > 0) -</MACRO> -<STRUCT> -<NAME>GtkStyle</NAME> -struct GtkStyle -{ - GtkStyleClass *klass; - - GdkColor fg[5]; - GdkColor bg[5]; - GdkColor light[5]; - GdkColor dark[5]; - GdkColor mid[5]; - GdkColor text[5]; - GdkColor base[5]; - - GdkColor black; - GdkColor white; - GdkFont *font; - - GdkGC *fg_gc[5]; - GdkGC *bg_gc[5]; - GdkGC *light_gc[5]; - GdkGC *dark_gc[5]; - GdkGC *mid_gc[5]; - GdkGC *text_gc[5]; - GdkGC *base_gc[5]; - GdkGC *black_gc; - GdkGC *white_gc; - - GdkPixmap *bg_pixmap[5]; - - /* private */ - - gint ref_count; - gint attach_count; - - gint depth; - GdkColormap *colormap; - - GtkThemeEngine *engine; - - gpointer engine_data; - - GtkRcStyle *rc_style; /* the Rc style from which this style - * was created - */ - GSList *styles; -}; -</STRUCT> -<STRUCT> -<NAME>GtkStyleClass</NAME> -struct GtkStyleClass -{ - gint xthickness; - gint ythickness; - - void (*draw_hline) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x1, - gint x2, - gint y); - void (*draw_vline) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint y1, - gint y2, - gint x); - void (*draw_shadow) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height); - void (*draw_polygon) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - GdkPoint *point, - gint npoints, - gboolean fill); - void (*draw_arrow) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - GtkArrowType arrow_type, - gboolean fill, - gint x, - gint y, - gint width, - gint height); - void (*draw_diamond) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height); - void (*draw_oval) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height); - void (*draw_string) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - const gchar *string); - void (*draw_box) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height); - void (*draw_flat_box) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height); - void (*draw_check) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height); - void (*draw_option) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height); - void (*draw_cross) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height); - void (*draw_ramp) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - GtkArrowType arrow_type, - gint x, - gint y, - gint width, - gint height); - void (*draw_tab) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height); - void (*draw_shadow_gap) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height, - GtkPositionType gap_side, - gint gap_x, - gint gap_width); - void (*draw_box_gap) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height, - GtkPositionType gap_side, - gint gap_x, - gint gap_width); - void (*draw_extension) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height, - GtkPositionType gap_side); - void (*draw_focus) (GtkStyle *style, - GdkWindow *window, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height); - void (*draw_slider) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height, - GtkOrientation orientation); - void (*draw_handle) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type, - GtkShadowType shadow_type, - GdkRectangle *area, - GtkWidget *widget, - gchar *detail, - gint x, - gint y, - gint width, - gint height, - GtkOrientation orientation); -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_style_new</NAME> -<RETURNS>GtkStyle *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_style_copy</NAME> -<RETURNS>GtkStyle *</RETURNS> -GtkStyle *style -</FUNCTION> -<FUNCTION> -<NAME>gtk_style_attach</NAME> -<RETURNS>GtkStyle *</RETURNS> -GtkStyle *style,GdkWindow *window -</FUNCTION> -<FUNCTION> -<NAME>gtk_style_detach</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style -</FUNCTION> -<FUNCTION> -<NAME>gtk_style_ref</NAME> -<RETURNS>GtkStyle *</RETURNS> -GtkStyle *style -</FUNCTION> -<FUNCTION> -<NAME>gtk_style_unref</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style -</FUNCTION> -<FUNCTION> -<NAME>gtk_style_set_background</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_style_apply_default_background</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,gboolean set_bg,GtkStateType state_type,GdkRectangle *area,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_hline</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,gint x1,gint x2,gint y -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_vline</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,gint y1,gint y2,gint x -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_shadow</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_polygon</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkPoint *points,gint npoints,gboolean fill -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_arrow</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GtkArrowType arrow_type,gboolean fill,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_diamond</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_oval</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_string</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,gint x,gint y,const gchar *string -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_box</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_flat_box</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_check</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_option</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_cross</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_ramp</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GtkArrowType arrow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_tab</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_shadow_gap</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height,GtkPositionType gap_side,gint gap_x,gint gap_width -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_box_gap</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height,GtkPositionType gap_side,gint gap_x,gint gap_width -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_extension</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height,GtkPositionType gap_side -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_focus</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_slider</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height,GtkOrientation orientation -</FUNCTION> -<FUNCTION> -<NAME>gtk_draw_handle</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,gint x,gint y,gint width,gint height,GtkOrientation orientation -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_hline</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x1,gint x2,gint y -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_vline</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint y1,gint y2,gint x -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_shadow</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_polygon</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,GdkPoint *points,gint npoints,gboolean fill -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_arrow</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,GtkArrowType arrow_type,gboolean fill,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_diamond</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_oval</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_string</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,const gchar *string -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_box</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_flat_box</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_check</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_option</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_cross</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_ramp</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,GtkArrowType arrow_type,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_tab</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_shadow_gap</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height,GtkPositionType gap_side,gint gap_x,gint gap_width -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_box_gap</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height,GtkPositionType gap_side,gint gap_x,gint gap_width -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_extension</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height,GtkPositionType gap_side -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_focus</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_slider</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height,GtkOrientation orientation -</FUNCTION> -<FUNCTION> -<NAME>gtk_paint_handle</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style,GdkWindow *window,GtkStateType state_type,GtkShadowType shadow_type,GdkRectangle *area,GtkWidget *widget,gchar *detail,gint x,gint y,gint width,gint height,GtkOrientation orientation -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_TABLE</NAME> -#define GTK_TYPE_TABLE (gtk_table_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_TABLE</NAME> -#define GTK_TABLE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TABLE, GtkTable)) -</MACRO> -<MACRO> -<NAME>GTK_TABLE_CLASS</NAME> -#define GTK_TABLE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TABLE, GtkTableClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TABLE</NAME> -#define GTK_IS_TABLE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TABLE)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TABLE_CLASS</NAME> -#define GTK_IS_TABLE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TABLE)) -</MACRO> -<STRUCT> -<NAME>GtkTable</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTableClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTableChild</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTableRowCol</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTable</NAME> -struct GtkTable -{ - GtkContainer container; - - GList *children; - GtkTableRowCol *rows; - GtkTableRowCol *cols; - guint16 nrows; - guint16 ncols; - guint16 column_spacing; - guint16 row_spacing; - guint homogeneous : 1; -}; -</STRUCT> -<STRUCT> -<NAME>GtkTableChild</NAME> -struct GtkTableChild -{ - GtkWidget *widget; - guint16 left_attach; - guint16 right_attach; - guint16 top_attach; - guint16 bottom_attach; - guint16 xpadding; - guint16 ypadding; - guint xexpand : 1; - guint yexpand : 1; - guint xshrink : 1; - guint yshrink : 1; - guint xfill : 1; - guint yfill : 1; -}; -</STRUCT> -<STRUCT> -<NAME>GtkTableRowCol</NAME> -struct GtkTableRowCol -{ - guint16 requisition; - guint16 allocation; - guint16 spacing; - guint need_expand : 1; - guint need_shrink : 1; - guint expand : 1; - guint shrink : 1; - guint empty : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_table_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_table_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -guint rows,guint columns,gboolean homogeneous -</FUNCTION> -<FUNCTION> -<NAME>gtk_table_resize</NAME> -<RETURNS>void </RETURNS> -GtkTable *table,guint rows,guint columns -</FUNCTION> -<FUNCTION> -<NAME>gtk_table_attach</NAME> -<RETURNS>void </RETURNS> -GtkTable *table,GtkWidget *child,guint left_attach,guint right_attach,guint top_attach,guint bottom_attach,GtkAttachOptions xoptions,GtkAttachOptions yoptions,guint xpadding,guint ypadding -</FUNCTION> -<FUNCTION> -<NAME>gtk_table_attach_defaults</NAME> -<RETURNS>void </RETURNS> -GtkTable *table,GtkWidget *widget,guint left_attach,guint right_attach,guint top_attach,guint bottom_attach -</FUNCTION> -<FUNCTION> -<NAME>gtk_table_set_row_spacing</NAME> -<RETURNS>void </RETURNS> -GtkTable *table,guint row,guint spacing -</FUNCTION> -<FUNCTION> -<NAME>gtk_table_set_col_spacing</NAME> -<RETURNS>void </RETURNS> -GtkTable *table,guint column,guint spacing -</FUNCTION> -<FUNCTION> -<NAME>gtk_table_set_row_spacings</NAME> -<RETURNS>void </RETURNS> -GtkTable *table,guint spacing -</FUNCTION> -<FUNCTION> -<NAME>gtk_table_set_col_spacings</NAME> -<RETURNS>void </RETURNS> -GtkTable *table,guint spacing -</FUNCTION> -<FUNCTION> -<NAME>gtk_table_set_homogeneous</NAME> -<RETURNS>void </RETURNS> -GtkTable *table,gboolean homogeneous -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_TEAROFF_MENU_ITEM</NAME> -#define GTK_TYPE_TEAROFF_MENU_ITEM (gtk_tearoff_menu_item_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_TEAROFF_MENU_ITEM</NAME> -#define GTK_TEAROFF_MENU_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItem)) -</MACRO> -<MACRO> -<NAME>GTK_TEAROFF_MENU_ITEM_CLASS</NAME> -#define GTK_TEAROFF_MENU_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItemClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TEAROFF_MENU_ITEM</NAME> -#define GTK_IS_TEAROFF_MENU_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TEAROFF_MENU_ITEM)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TEAROFF_MENU_ITEM_CLASS</NAME> -#define GTK_IS_TEAROFF_MENU_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEAROFF_MENU_ITEM)) -</MACRO> -<STRUCT> -<NAME>GtkTearoffMenuItem</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTearoffMenuItemClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTearoffMenuItem</NAME> -struct GtkTearoffMenuItem -{ - GtkMenuItem menu_item; - - guint torn_off : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_tearoff_menu_item_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_tearoff_menu_item_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_TEXT</NAME> -#define GTK_TYPE_TEXT (gtk_text_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_TEXT</NAME> -#define GTK_TEXT(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TEXT, GtkText)) -</MACRO> -<MACRO> -<NAME>GTK_TEXT_CLASS</NAME> -#define GTK_TEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT, GtkTextClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TEXT</NAME> -#define GTK_IS_TEXT(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TEXT)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TEXT_CLASS</NAME> -#define GTK_IS_TEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT)) -</MACRO> -<STRUCT> -<NAME>GtkTextFont</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPropertyMark</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkText</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTextClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkPropertyMark</NAME> -struct GtkPropertyMark -{ - /* Position in list. */ - GList* property; - - /* Offset into that property. */ - guint offset; - - /* Current index. */ - guint index; -}; -</STRUCT> -<STRUCT> -<NAME>GtkText</NAME> -struct GtkText -{ - GtkEditable editable; - - GdkWindow *text_area; - - GtkAdjustment *hadj; - GtkAdjustment *vadj; - - GdkGC *gc; - - GdkPixmap* line_wrap_bitmap; - GdkPixmap* line_arrow_bitmap; - - /* GAPPED TEXT SEGMENT */ - - /* The text, a single segment of text a'la emacs, with a gap - * where insertion occurs. */ - union { GdkWChar *wc; guchar *ch; } text; -</STRUCT> -<FUNCTION> -<NAME>gtk_text_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkAdjustment *hadj,GtkAdjustment *vadj -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_set_editable</NAME> -<RETURNS>void </RETURNS> -GtkText *text,gboolean editable -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_set_word_wrap</NAME> -<RETURNS>void </RETURNS> -GtkText *text,gint word_wrap -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_set_line_wrap</NAME> -<RETURNS>void </RETURNS> -GtkText *text,gint line_wrap -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_set_adjustments</NAME> -<RETURNS>void </RETURNS> -GtkText *text,GtkAdjustment *hadj,GtkAdjustment *vadj -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_set_point</NAME> -<RETURNS>void </RETURNS> -GtkText *text,guint index -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_get_point</NAME> -<RETURNS>guint </RETURNS> -GtkText *text -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_get_length</NAME> -<RETURNS>guint </RETURNS> -GtkText *text -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_freeze</NAME> -<RETURNS>void </RETURNS> -GtkText *text -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_thaw</NAME> -<RETURNS>void </RETURNS> -GtkText *text -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_insert</NAME> -<RETURNS>void </RETURNS> -GtkText *text,GdkFont *font,GdkColor *fore,GdkColor *back,const char *chars,gint length -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_backward_delete</NAME> -<RETURNS>gint </RETURNS> -GtkText *text,guint nchars -</FUNCTION> -<FUNCTION> -<NAME>gtk_text_forward_delete</NAME> -<RETURNS>gint </RETURNS> -GtkText *text,guint nchars -</FUNCTION> -<MACRO> -<NAME>GTK_TEXT_INDEX</NAME> -#define GTK_TEXT_INDEX(t, index) (((t)->use_wchar) \ - ? ((index) < (t)->gap_position ? (t)->text.wc[index] : \ - (t)->text.wc[(index)+(t)->gap_size]) \ - : ((index) < (t)->gap_position ? (t)->text.ch[index] : \ - (t)->text.ch[(index)+(t)->gap_size])) -</MACRO> -<STRUCT> -<NAME>GtkThemeEngine</NAME> -struct GtkThemeEngine { - /* Fill in engine_data pointer in a GtkRcStyle by parsing contents - * of brackets. Returns G_TOKEN_NONE if succesfull, otherwise returns - * the token it expected but didn't get. - */ - guint (*parse_rc_style) (GScanner *scanner, GtkRcStyle *rc_style); - - /* Combine RC style data from src into dest. If - * dest->engine_data is NULL, it should be initialized to default - * values. - */ - void (*merge_rc_style) (GtkRcStyle *dest, GtkRcStyle *src); - - /* Fill in style->engine_data from rc_style->engine_data */ - void (*rc_style_to_style) (GtkStyle *style, GtkRcStyle *rc_style); - - /* Duplicate engine_data from src to dest. The engine_data will - * not subsequently be modified except by a call to realize_style() - * so if realize_style() does nothing, refcounting is appropriate. - */ - void (*duplicate_style) (GtkStyle *dest, GtkStyle *src); - - /* If style needs to initialize for a particular colormap/depth - * combination, do it here. style->colormap/style->depth will have - * been set at this point, and style itself initialized for - * the colormap - */ - void (*realize_style) (GtkStyle *new_style); - - /* If style needs to clean up for a particular colormap/depth - * combination, do it here. - */ - void (*unrealize_style) (GtkStyle *new_style); - - /* Clean up rc_style->engine_data before rc_style is destroyed */ - void (*destroy_rc_style) (GtkRcStyle *rc_style); - - /* Clean up style->engine_data before style is destroyed */ - void (*destroy_style) (GtkStyle *style); - - void (*set_background) (GtkStyle *style, - GdkWindow *window, - GtkStateType state_type); -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_theme_engine_get</NAME> -<RETURNS>GtkThemeEngine *</RETURNS> -gchar *name -</FUNCTION> -<FUNCTION> -<NAME>gtk_theme_engine_ref</NAME> -<RETURNS>void </RETURNS> -GtkThemeEngine *engine -</FUNCTION> -<FUNCTION> -<NAME>gtk_theme_engine_unref</NAME> -<RETURNS>void </RETURNS> -GtkThemeEngine *engine -</FUNCTION> -<FUNCTION> -<NAME>gtk_themes_init</NAME> -<RETURNS>void </RETURNS> -int *argc,char ***argv -</FUNCTION> -<FUNCTION> -<NAME>gtk_themes_exit</NAME> -<RETURNS>void </RETURNS> -gint error_code -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_TIPS_QUERY</NAME> -#define GTK_TYPE_TIPS_QUERY (gtk_tips_query_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_TIPS_QUERY</NAME> -#define GTK_TIPS_QUERY(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TIPS_QUERY, GtkTipsQuery)) -</MACRO> -<MACRO> -<NAME>GTK_TIPS_QUERY_CLASS</NAME> -#define GTK_TIPS_QUERY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TIPS_QUERY, GtkTipsQueryClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TIPS_QUERY</NAME> -#define GTK_IS_TIPS_QUERY(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TIPS_QUERY)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TIPS_QUERY_CLASS</NAME> -#define GTK_IS_TIPS_QUERY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TIPS_QUERY)) -</MACRO> -<STRUCT> -<NAME>GtkTipsQuery</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTipsQueryClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTipsQuery</NAME> -struct GtkTipsQuery -{ - GtkLabel label; - - guint emit_always : 1; - guint in_query : 1; - gchar *label_inactive; - gchar *label_no_tip; - - GtkWidget *caller; - GtkWidget *last_crossed; - - GdkCursor *query_cursor; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_tips_query_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_tips_query_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_tips_query_start_query</NAME> -<RETURNS>void </RETURNS> -GtkTipsQuery *tips_query -</FUNCTION> -<FUNCTION> -<NAME>gtk_tips_query_stop_query</NAME> -<RETURNS>void </RETURNS> -GtkTipsQuery *tips_query -</FUNCTION> -<FUNCTION> -<NAME>gtk_tips_query_set_caller</NAME> -<RETURNS>void </RETURNS> -GtkTipsQuery *tips_query,GtkWidget *caller -</FUNCTION> -<FUNCTION> -<NAME>gtk_tips_query_set_labels</NAME> -<RETURNS>void </RETURNS> -GtkTipsQuery *tips_query,const gchar *label_inactive,const gchar *label_no_tip -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_TOGGLE_BUTTON</NAME> -#define GTK_TYPE_TOGGLE_BUTTON (gtk_toggle_button_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_TOGGLE_BUTTON</NAME> -#define GTK_TOGGLE_BUTTON(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) -</MACRO> -<MACRO> -<NAME>GTK_TOGGLE_BUTTON_CLASS</NAME> -#define GTK_TOGGLE_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButtonClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TOGGLE_BUTTON</NAME> -#define GTK_IS_TOGGLE_BUTTON(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TOGGLE_BUTTON)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TOGGLE_BUTTON_CLASS</NAME> -#define GTK_IS_TOGGLE_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_BUTTON)) -</MACRO> -<STRUCT> -<NAME>GtkToggleButton</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkToggleButtonClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkToggleButton</NAME> -struct GtkToggleButton -{ - GtkButton button; - - guint active : 1; - guint draw_indicator : 1; - - GdkWindow *event_window; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_toggle_button_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_toggle_button_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_toggle_button_new_with_label</NAME> -<RETURNS>GtkWidget *</RETURNS> -const gchar *label -</FUNCTION> -<FUNCTION> -<NAME>gtk_toggle_button_set_mode</NAME> -<RETURNS>void </RETURNS> -GtkToggleButton *toggle_button,gboolean draw_indicator -</FUNCTION> -<FUNCTION> -<NAME>gtk_toggle_button_set_active</NAME> -<RETURNS>void </RETURNS> -GtkToggleButton *toggle_button,gboolean is_active -</FUNCTION> -<FUNCTION> -<NAME>gtk_toggle_button_get_active</NAME> -<RETURNS>gboolean </RETURNS> -GtkToggleButton *toggle_button -</FUNCTION> -<FUNCTION> -<NAME>gtk_toggle_button_toggled</NAME> -<RETURNS>void </RETURNS> -GtkToggleButton *toggle_button -</FUNCTION> -<MACRO> -<NAME>GTK_TOOLBAR</NAME> -#define GTK_TOOLBAR(obj) GTK_CHECK_CAST (obj, gtk_toolbar_get_type (), GtkToolbar) -</MACRO> -<MACRO> -<NAME>GTK_TOOLBAR_CLASS</NAME> -#define GTK_TOOLBAR_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_toolbar_get_type (), GtkToolbarClass) -</MACRO> -<MACRO> -<NAME>GTK_IS_TOOLBAR</NAME> -#define GTK_IS_TOOLBAR(obj) GTK_CHECK_TYPE (obj, gtk_toolbar_get_type ()) -</MACRO> -<ENUM> -<NAME>GtkToolbarChildType</NAME> -typedef enum -{ - GTK_TOOLBAR_CHILD_SPACE, - GTK_TOOLBAR_CHILD_BUTTON, - GTK_TOOLBAR_CHILD_TOGGLEBUTTON, - GTK_TOOLBAR_CHILD_RADIOBUTTON, - GTK_TOOLBAR_CHILD_WIDGET -} GtkToolbarChildType; -</ENUM> -<ENUM> -<NAME>GtkToolbarSpaceStyle</NAME> -typedef enum -{ - GTK_TOOLBAR_SPACE_EMPTY, - GTK_TOOLBAR_SPACE_LINE -} GtkToolbarSpaceStyle; -</ENUM> -<STRUCT> -<NAME>GtkToolbarChild</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkToolbar</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkToolbarClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkToolbarChild</NAME> -struct GtkToolbarChild -{ - GtkToolbarChildType type; - GtkWidget *widget; - GtkWidget *icon; - GtkWidget *label; -}; -</STRUCT> -<STRUCT> -<NAME>GtkToolbar</NAME> -struct GtkToolbar -{ - GtkContainer container; - - gint num_children; - GList *children; - GtkOrientation orientation; - GtkToolbarStyle style; - gint space_size; /* big optional space between buttons */ - GtkToolbarSpaceStyle space_style; - - GtkTooltips *tooltips; - - gint button_maxw; - gint button_maxh; - GtkReliefStyle relief; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_toolbar_get_type</NAME> -<RETURNS>guint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkOrientation orientation,GtkToolbarStyle style -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_append_item</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkToolbar *toolbar,const char *text,const char *tooltip_text,const char *tooltip_private_text,GtkWidget *icon,GtkSignalFunc callback,gpointer user_data -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_prepend_item</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkToolbar *toolbar,const char *text,const char *tooltip_text,const char *tooltip_private_text,GtkWidget *icon,GtkSignalFunc callback,gpointer user_data -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_insert_item</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkToolbar *toolbar,const char *text,const char *tooltip_text,const char *tooltip_private_text,GtkWidget *icon,GtkSignalFunc callback,gpointer user_data,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_append_space</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_prepend_space</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_insert_space</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_append_element</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkToolbar *toolbar,GtkToolbarChildType type,GtkWidget *widget,const char *text,const char *tooltip_text,const char *tooltip_private_text,GtkWidget *icon,GtkSignalFunc callback,gpointer user_data -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_prepend_element</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkToolbar *toolbar,GtkToolbarChildType type,GtkWidget *widget,const char *text,const char *tooltip_text,const char *tooltip_private_text,GtkWidget *icon,GtkSignalFunc callback,gpointer user_data -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_insert_element</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkToolbar *toolbar,GtkToolbarChildType type,GtkWidget *widget,const char *text,const char *tooltip_text,const char *tooltip_private_text,GtkWidget *icon,GtkSignalFunc callback,gpointer user_data,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_append_widget</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar,GtkWidget *widget,const char *tooltip_text,const char *tooltip_private_text -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_prepend_widget</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar,GtkWidget *widget,const char *tooltip_text,const char *tooltip_private_text -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_insert_widget</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar,GtkWidget *widget,const char *tooltip_text,const char *tooltip_private_text,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_set_orientation</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar,GtkOrientation orientation -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_set_style</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar,GtkToolbarStyle style -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_set_space_size</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar,gint space_size -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_set_space_style</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar,GtkToolbarSpaceStyle space_style -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_set_tooltips</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar,gint enable -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_set_button_relief</NAME> -<RETURNS>void </RETURNS> -GtkToolbar *toolbar,GtkReliefStyle relief -</FUNCTION> -<FUNCTION> -<NAME>gtk_toolbar_get_button_relief</NAME> -<RETURNS>GtkReliefStyle </RETURNS> -GtkToolbar *toolbar -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_TOOLTIPS</NAME> -#define GTK_TYPE_TOOLTIPS (gtk_tooltips_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_TOOLTIPS</NAME> -#define GTK_TOOLTIPS(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TOOLTIPS, GtkTooltips)) -</MACRO> -<MACRO> -<NAME>GTK_TOOLTIPS_CLASS</NAME> -#define GTK_TOOLTIPS_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOLTIPS, GtkTooltipsClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TOOLTIPS</NAME> -#define GTK_IS_TOOLTIPS(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TOOLTIPS)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TOOLTIPS_CLASS</NAME> -#define GTK_IS_TOOLTIPS_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOLTIPS)) -</MACRO> -<STRUCT> -<NAME>GtkTooltips</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTooltipsClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTooltipsData</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTooltipsData</NAME> -struct GtkTooltipsData -{ - GtkTooltips *tooltips; - GtkWidget *widget; - gchar *tip_text; - gchar *tip_private; - GdkFont *font; - gint width; - GList *row; -}; -</STRUCT> -<STRUCT> -<NAME>GtkTooltips</NAME> -struct GtkTooltips -{ - GtkData data; - - GtkWidget *tip_window; - GtkTooltipsData *active_tips_data; - GList *tips_data_list; - - GdkGC *gc; - GdkColor *foreground; - GdkColor *background; - - guint delay : 30; - guint enabled : 1; - gint timer_tag; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_tooltips_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_tooltips_new</NAME> -<RETURNS>GtkTooltips *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_tooltips_enable</NAME> -<RETURNS>void </RETURNS> -GtkTooltips *tooltips -</FUNCTION> -<FUNCTION> -<NAME>gtk_tooltips_disable</NAME> -<RETURNS>void </RETURNS> -GtkTooltips *tooltips -</FUNCTION> -<FUNCTION> -<NAME>gtk_tooltips_set_delay</NAME> -<RETURNS>void </RETURNS> -GtkTooltips *tooltips,guint delay -</FUNCTION> -<FUNCTION> -<NAME>gtk_tooltips_set_tip</NAME> -<RETURNS>void </RETURNS> -GtkTooltips *tooltips,GtkWidget *widget,const gchar *tip_text,const gchar *tip_private -</FUNCTION> -<FUNCTION> -<NAME>gtk_tooltips_set_colors</NAME> -<RETURNS>void </RETURNS> -GtkTooltips *tooltips,GdkColor *background,GdkColor *foreground -</FUNCTION> -<FUNCTION> -<NAME>gtk_tooltips_data_get</NAME> -<RETURNS>GtkTooltipsData *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_tooltips_force_window</NAME> -<RETURNS>void </RETURNS> -GtkTooltips *tooltips -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_TREE</NAME> -#define GTK_TYPE_TREE (gtk_tree_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_TREE</NAME> -#define GTK_TREE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TREE, GtkTree)) -</MACRO> -<MACRO> -<NAME>GTK_TREE_CLASS</NAME> -#define GTK_TREE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE, GtkTreeClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TREE</NAME> -#define GTK_IS_TREE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TREE)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TREE_CLASS</NAME> -#define GTK_IS_TREE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE)) -</MACRO> -<MACRO> -<NAME>GTK_IS_ROOT_TREE</NAME> -#define GTK_IS_ROOT_TREE(obj) ((GtkObject*) GTK_TREE(obj)->root_tree == (GtkObject*)obj) -</MACRO> -<MACRO> -<NAME>GTK_TREE_ROOT_TREE</NAME> -#define GTK_TREE_ROOT_TREE(obj) (GTK_TREE(obj)->root_tree ? GTK_TREE(obj)->root_tree : GTK_TREE(obj)) -</MACRO> -<MACRO> -<NAME>GTK_TREE_SELECTION</NAME> -#define GTK_TREE_SELECTION(obj) (GTK_TREE_ROOT_TREE(obj)->selection) -</MACRO> -<ENUM> -<NAME>GtkTreeViewMode</NAME> -typedef enum -{ - GTK_TREE_VIEW_LINE, /* default view mode */ - GTK_TREE_VIEW_ITEM -} GtkTreeViewMode; -</ENUM> -<STRUCT> -<NAME>GtkTree</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTreeClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTree</NAME> -struct GtkTree -{ - GtkContainer container; - - GList *children; - - GtkTree* root_tree; /* owner of selection list */ - GtkWidget* tree_owner; - GList *selection; - guint level; - guint indent_value; - guint current_indent; - guint selection_mode : 2; - guint view_mode : 1; - guint view_line : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_tree_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_append</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,GtkWidget *tree_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_prepend</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,GtkWidget *tree_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_insert</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,GtkWidget *tree_item,gint position -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_remove_items</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,GList *items -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_clear_items</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,gint start,gint end -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_select_item</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,gint item -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_unselect_item</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,gint item -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_select_child</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,GtkWidget *tree_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_unselect_child</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,GtkWidget *tree_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_child_position</NAME> -<RETURNS>gint </RETURNS> -GtkTree *tree,GtkWidget *child -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_set_selection_mode</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,GtkSelectionMode mode -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_set_view_mode</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,GtkTreeViewMode mode -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_set_view_lines</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,guint flag -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_remove_item</NAME> -<RETURNS>void </RETURNS> -GtkTree *tree,GtkWidget *child -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_TREE_ITEM</NAME> -#define GTK_TYPE_TREE_ITEM (gtk_tree_item_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_TREE_ITEM</NAME> -#define GTK_TREE_ITEM(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TREE_ITEM, GtkTreeItem)) -</MACRO> -<MACRO> -<NAME>GTK_TREE_ITEM_CLASS</NAME> -#define GTK_TREE_ITEM_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_ITEM, GtkTreeItemClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TREE_ITEM</NAME> -#define GTK_IS_TREE_ITEM(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TREE_ITEM)) -</MACRO> -<MACRO> -<NAME>GTK_IS_TREE_ITEM_CLASS</NAME> -#define GTK_IS_TREE_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_ITEM)) -</MACRO> -<MACRO> -<NAME>GTK_TREE_ITEM_SUBTREE</NAME> -#define GTK_TREE_ITEM_SUBTREE(obj) (GTK_TREE_ITEM(obj)->subtree) -</MACRO> -<STRUCT> -<NAME>GtkTreeItem</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTreeItemClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTreeItem</NAME> -struct GtkTreeItem -{ - GtkItem item; - - GtkWidget *subtree; - GtkWidget *pixmaps_box; - GtkWidget *plus_pix_widget, *minus_pix_widget; - - GList *pixmaps; /* pixmap node for this items color depth */ - - guint expanded : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_tree_item_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_item_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_item_new_with_label</NAME> -<RETURNS>GtkWidget *</RETURNS> -gchar *label -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_item_set_subtree</NAME> -<RETURNS>void </RETURNS> -GtkTreeItem *tree_item,GtkWidget *subtree -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_item_remove_subtree</NAME> -<RETURNS>void </RETURNS> -GtkTreeItem *tree_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_item_select</NAME> -<RETURNS>void </RETURNS> -GtkTreeItem *tree_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_item_deselect</NAME> -<RETURNS>void </RETURNS> -GtkTreeItem *tree_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_item_expand</NAME> -<RETURNS>void </RETURNS> -GtkTreeItem *tree_item -</FUNCTION> -<FUNCTION> -<NAME>gtk_tree_item_collapse</NAME> -<RETURNS>void </RETURNS> -GtkTreeItem *tree_item -</FUNCTION> -<VARIABLE> -<NAME>GTK_TYPE_ACCEL_FLAGS</NAME> -extern GtkType GTK_TYPE_ACCEL_FLAGS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_CALENDAR_DISPLAY_OPTIONS</NAME> -extern GtkType GTK_TYPE_CALENDAR_DISPLAY_OPTIONS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_CELL_TYPE</NAME> -extern GtkType GTK_TYPE_CELL_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_CLIST_DRAG_POS</NAME> -extern GtkType GTK_TYPE_CLIST_DRAG_POS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_BUTTON_ACTION</NAME> -extern GtkType GTK_TYPE_BUTTON_ACTION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_CTREE_POS</NAME> -extern GtkType GTK_TYPE_CTREE_POS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_CTREE_LINE_STYLE</NAME> -extern GtkType GTK_TYPE_CTREE_LINE_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_CTREE_EXPANDER_STYLE</NAME> -extern GtkType GTK_TYPE_CTREE_EXPANDER_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_CTREE_EXPANSION_TYPE</NAME> -extern GtkType GTK_TYPE_CTREE_EXPANSION_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_DEBUG_FLAG</NAME> -extern GtkType GTK_TYPE_DEBUG_FLAG; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_DEST_DEFAULTS</NAME> -extern GtkType GTK_TYPE_DEST_DEFAULTS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_TARGET_FLAGS</NAME> -extern GtkType GTK_TYPE_TARGET_FLAGS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_ARROW_TYPE</NAME> -extern GtkType GTK_TYPE_ARROW_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_ATTACH_OPTIONS</NAME> -extern GtkType GTK_TYPE_ATTACH_OPTIONS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_BUTTON_BOX_STYLE</NAME> -extern GtkType GTK_TYPE_BUTTON_BOX_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_CURVE_TYPE</NAME> -extern GtkType GTK_TYPE_CURVE_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_DIRECTION_TYPE</NAME> -extern GtkType GTK_TYPE_DIRECTION_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_JUSTIFICATION</NAME> -extern GtkType GTK_TYPE_JUSTIFICATION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_MATCH_TYPE</NAME> -extern GtkType GTK_TYPE_MATCH_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_MENU_DIRECTION_TYPE</NAME> -extern GtkType GTK_TYPE_MENU_DIRECTION_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_MENU_FACTORY_TYPE</NAME> -extern GtkType GTK_TYPE_MENU_FACTORY_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_METRIC_TYPE</NAME> -extern GtkType GTK_TYPE_METRIC_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_ORIENTATION</NAME> -extern GtkType GTK_TYPE_ORIENTATION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_CORNER_TYPE</NAME> -extern GtkType GTK_TYPE_CORNER_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_PACK_TYPE</NAME> -extern GtkType GTK_TYPE_PACK_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_PATH_PRIORITY_TYPE</NAME> -extern GtkType GTK_TYPE_PATH_PRIORITY_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_PATH_TYPE</NAME> -extern GtkType GTK_TYPE_PATH_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_POLICY_TYPE</NAME> -extern GtkType GTK_TYPE_POLICY_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_POSITION_TYPE</NAME> -extern GtkType GTK_TYPE_POSITION_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_PREVIEW_TYPE</NAME> -extern GtkType GTK_TYPE_PREVIEW_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_RELIEF_STYLE</NAME> -extern GtkType GTK_TYPE_RELIEF_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_RESIZE_MODE</NAME> -extern GtkType GTK_TYPE_RESIZE_MODE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SIGNAL_RUN_TYPE</NAME> -extern GtkType GTK_TYPE_SIGNAL_RUN_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SCROLL_TYPE</NAME> -extern GtkType GTK_TYPE_SCROLL_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SELECTION_MODE</NAME> -extern GtkType GTK_TYPE_SELECTION_MODE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SHADOW_TYPE</NAME> -extern GtkType GTK_TYPE_SHADOW_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_STATE_TYPE</NAME> -extern GtkType GTK_TYPE_STATE_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SUBMENU_DIRECTION</NAME> -extern GtkType GTK_TYPE_SUBMENU_DIRECTION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SUBMENU_PLACEMENT</NAME> -extern GtkType GTK_TYPE_SUBMENU_PLACEMENT; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_TOOLBAR_STYLE</NAME> -extern GtkType GTK_TYPE_TOOLBAR_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_TROUGH_TYPE</NAME> -extern GtkType GTK_TYPE_TROUGH_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_UPDATE_TYPE</NAME> -extern GtkType GTK_TYPE_UPDATE_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_VISIBILITY</NAME> -extern GtkType GTK_TYPE_VISIBILITY; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_WINDOW_POSITION</NAME> -extern GtkType GTK_TYPE_WINDOW_POSITION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_WINDOW_TYPE</NAME> -extern GtkType GTK_TYPE_WINDOW_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SORT_TYPE</NAME> -extern GtkType GTK_TYPE_SORT_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_FONT_METRIC_TYPE</NAME> -extern GtkType GTK_TYPE_FONT_METRIC_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_FONT_TYPE</NAME> -extern GtkType GTK_TYPE_FONT_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_FONT_FILTER_TYPE</NAME> -extern GtkType GTK_TYPE_FONT_FILTER_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_OBJECT_FLAGS</NAME> -extern GtkType GTK_TYPE_OBJECT_FLAGS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_ARG_FLAGS</NAME> -extern GtkType GTK_TYPE_ARG_FLAGS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_PACKER_OPTIONS</NAME> -extern GtkType GTK_TYPE_PACKER_OPTIONS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SIDE_TYPE</NAME> -extern GtkType GTK_TYPE_SIDE_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_ANCHOR_TYPE</NAME> -extern GtkType GTK_TYPE_ANCHOR_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_PRIVATE_FLAGS</NAME> -extern GtkType GTK_TYPE_PRIVATE_FLAGS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_PROGRESS_BAR_STYLE</NAME> -extern GtkType GTK_TYPE_PROGRESS_BAR_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_PROGRESS_BAR_ORIENTATION</NAME> -extern GtkType GTK_TYPE_PROGRESS_BAR_ORIENTATION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_RC_FLAGS</NAME> -extern GtkType GTK_TYPE_RC_FLAGS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_RC_TOKEN_TYPE</NAME> -extern GtkType GTK_TYPE_RC_TOKEN_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY</NAME> -extern GtkType GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SPIN_TYPE</NAME> -extern GtkType GTK_TYPE_SPIN_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_TOOLBAR_CHILD_TYPE</NAME> -extern GtkType GTK_TYPE_TOOLBAR_CHILD_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_TOOLBAR_SPACE_STYLE</NAME> -extern GtkType GTK_TYPE_TOOLBAR_SPACE_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_TREE_VIEW_MODE</NAME> -extern GtkType GTK_TYPE_TREE_VIEW_MODE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_FUNDAMENTAL_TYPE</NAME> -extern GtkType GTK_TYPE_FUNDAMENTAL_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_WIDGET_FLAGS</NAME> -extern GtkType GTK_TYPE_WIDGET_FLAGS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_WINDOW_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_WINDOW_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_WINDOW_CLASS</NAME> -extern GtkType GTK_TYPE_GDK_WINDOW_CLASS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_IMAGE_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_IMAGE_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_VISUAL_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_VISUAL_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_FONT_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_FONT_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_WINDOW_ATTRIBUTES_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_WINDOW_ATTRIBUTES_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_WINDOW_HINTS</NAME> -extern GtkType GTK_TYPE_GDK_WINDOW_HINTS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_FUNCTION</NAME> -extern GtkType GTK_TYPE_GDK_FUNCTION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_FILL</NAME> -extern GtkType GTK_TYPE_GDK_FILL; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_FILL_RULE</NAME> -extern GtkType GTK_TYPE_GDK_FILL_RULE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_LINE_STYLE</NAME> -extern GtkType GTK_TYPE_GDK_LINE_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_CAP_STYLE</NAME> -extern GtkType GTK_TYPE_GDK_CAP_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_JOIN_STYLE</NAME> -extern GtkType GTK_TYPE_GDK_JOIN_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_CURSOR_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_CURSOR_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_FILTER_RETURN</NAME> -extern GtkType GTK_TYPE_GDK_FILTER_RETURN; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_VISIBILITY_STATE</NAME> -extern GtkType GTK_TYPE_GDK_VISIBILITY_STATE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_EVENT_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_EVENT_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_EVENT_MASK</NAME> -extern GtkType GTK_TYPE_GDK_EVENT_MASK; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_NOTIFY_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_NOTIFY_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_CROSSING_MODE</NAME> -extern GtkType GTK_TYPE_GDK_CROSSING_MODE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_MODIFIER_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_MODIFIER_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_SUBWINDOW_MODE</NAME> -extern GtkType GTK_TYPE_GDK_SUBWINDOW_MODE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_INPUT_CONDITION</NAME> -extern GtkType GTK_TYPE_GDK_INPUT_CONDITION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_STATUS</NAME> -extern GtkType GTK_TYPE_GDK_STATUS; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_BYTE_ORDER</NAME> -extern GtkType GTK_TYPE_GDK_BYTE_ORDER; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_GC_VALUES_MASK</NAME> -extern GtkType GTK_TYPE_GDK_GC_VALUES_MASK; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_SELECTION</NAME> -extern GtkType GTK_TYPE_GDK_SELECTION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_PROPERTY_STATE</NAME> -extern GtkType GTK_TYPE_GDK_PROPERTY_STATE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_PROP_MODE</NAME> -extern GtkType GTK_TYPE_GDK_PROP_MODE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_INPUT_SOURCE</NAME> -extern GtkType GTK_TYPE_GDK_INPUT_SOURCE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_INPUT_MODE</NAME> -extern GtkType GTK_TYPE_GDK_INPUT_MODE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_AXIS_USE</NAME> -extern GtkType GTK_TYPE_GDK_AXIS_USE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_TARGET</NAME> -extern GtkType GTK_TYPE_GDK_TARGET; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_SELECTION_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_SELECTION_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_EXTENSION_MODE</NAME> -extern GtkType GTK_TYPE_GDK_EXTENSION_MODE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_IM_STYLE</NAME> -extern GtkType GTK_TYPE_GDK_IM_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_IC_ATTRIBUTES_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_IC_ATTRIBUTES_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_WM_DECORATION</NAME> -extern GtkType GTK_TYPE_GDK_WM_DECORATION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_WM_FUNCTION</NAME> -extern GtkType GTK_TYPE_GDK_WM_FUNCTION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_COLOR_CONTEXT_MODE</NAME> -extern GtkType GTK_TYPE_GDK_COLOR_CONTEXT_MODE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_OVERLAP_TYPE</NAME> -extern GtkType GTK_TYPE_GDK_OVERLAP_TYPE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_DRAG_ACTION</NAME> -extern GtkType GTK_TYPE_GDK_DRAG_ACTION; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_DRAG_PROTOCOL</NAME> -extern GtkType GTK_TYPE_GDK_DRAG_PROTOCOL; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_RGB_DITHER</NAME> -extern GtkType GTK_TYPE_GDK_RGB_DITHER; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_ACCEL_GROUP</NAME> -extern GtkType GTK_TYPE_ACCEL_GROUP; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_SELECTION_DATA</NAME> -extern GtkType GTK_TYPE_SELECTION_DATA; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_STYLE</NAME> -extern GtkType GTK_TYPE_STYLE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_CTREE_NODE</NAME> -extern GtkType GTK_TYPE_CTREE_NODE; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_COLORMAP</NAME> -extern GtkType GTK_TYPE_GDK_COLORMAP; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_VISUAL</NAME> -extern GtkType GTK_TYPE_GDK_VISUAL; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_FONT</NAME> -extern GtkType GTK_TYPE_GDK_FONT; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_WINDOW</NAME> -extern GtkType GTK_TYPE_GDK_WINDOW; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_DRAG_CONTEXT</NAME> -extern GtkType GTK_TYPE_GDK_DRAG_CONTEXT; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_EVENT</NAME> -extern GtkType GTK_TYPE_GDK_EVENT; -</VARIABLE> -<VARIABLE> -<NAME>GTK_TYPE_GDK_COLOR</NAME> -extern GtkType GTK_TYPE_GDK_COLOR; -</VARIABLE> -<MACRO> -<NAME>GTK_TYPE_NUM_BUILTINS</NAME> -#define GTK_TYPE_NUM_BUILTINS (121) -</MACRO> -<ENUM> -<NAME>GtkFundamentalType</NAME> -typedef enum -{ - GTK_TYPE_INVALID, - GTK_TYPE_NONE, - - /* flat types */ - GTK_TYPE_CHAR, - GTK_TYPE_UCHAR, - GTK_TYPE_BOOL, - GTK_TYPE_INT, - GTK_TYPE_UINT, - GTK_TYPE_LONG, - GTK_TYPE_ULONG, - GTK_TYPE_FLOAT, - GTK_TYPE_DOUBLE, - GTK_TYPE_STRING, - GTK_TYPE_ENUM, - GTK_TYPE_FLAGS, - GTK_TYPE_BOXED, - GTK_TYPE_POINTER, - - /* structured types */ - GTK_TYPE_SIGNAL, - GTK_TYPE_ARGS, - GTK_TYPE_CALLBACK, - GTK_TYPE_C_CALLBACK, - GTK_TYPE_FOREIGN, - - /* base type node of the object system */ - GTK_TYPE_OBJECT -} GtkFundamentalType; -</ENUM> -<MACRO> -<NAME>GTK_TYPE_FLAT_FIRST</NAME> -#define GTK_TYPE_FLAT_FIRST GTK_TYPE_CHAR -</MACRO> -<MACRO> -<NAME>GTK_TYPE_FLAT_LAST</NAME> -#define GTK_TYPE_FLAT_LAST GTK_TYPE_POINTER -</MACRO> -<MACRO> -<NAME>GTK_TYPE_STRUCTURED_FIRST</NAME> -#define GTK_TYPE_STRUCTURED_FIRST GTK_TYPE_SIGNAL -</MACRO> -<MACRO> -<NAME>GTK_TYPE_STRUCTURED_LAST</NAME> -#define GTK_TYPE_STRUCTURED_LAST GTK_TYPE_FOREIGN -</MACRO> -<MACRO> -<NAME>GTK_TYPE_FUNDAMENTAL_LAST</NAME> -#define GTK_TYPE_FUNDAMENTAL_LAST GTK_TYPE_OBJECT -</MACRO> -<MACRO> -<NAME>GTK_TYPE_FUNDAMENTAL_MAX</NAME> -#define GTK_TYPE_FUNDAMENTAL_MAX (32) -</MACRO> -<MACRO> -<NAME>GTK_STRUCT_OFFSET</NAME> -#define GTK_STRUCT_OFFSET(struct, field) ((gint) offsetof (struct, field)) -</MACRO> -<MACRO> -<NAME>GTK_STRUCT_OFFSET</NAME> -#define GTK_STRUCT_OFFSET(struct, field) ((gint) ((gchar*) &((struct*) 0)->field)) -</MACRO> -<MACRO> -<NAME>GTK_CHECK_CAST</NAME> -# define GTK_CHECK_CAST(tobj, cast_type, cast) ((cast*) (tobj)) -</MACRO> -<MACRO> -<NAME>GTK_CHECK_CLASS_CAST</NAME> -# define GTK_CHECK_CLASS_CAST(tclass,cast_type,cast) ((cast*) (tclass)) -</MACRO> -<MACRO> -<NAME>GTK_CHECK_CAST</NAME> -# define GTK_CHECK_CAST(tobj, cast_type, cast) \ - ((cast*) gtk_type_check_object_cast ((GtkTypeObject*) (tobj), (cast_type))) -</MACRO> -<MACRO> -<NAME>GTK_CHECK_CLASS_CAST</NAME> -# define GTK_CHECK_CLASS_CAST(tclass,cast_type,cast) \ - ((cast*) gtk_type_check_class_cast ((GtkTypeClass*) (tclass), (cast_type))) -</MACRO> -<MACRO> -<NAME>GTK_CHECK_TYPE</NAME> -#define GTK_CHECK_TYPE(type_object, otype) ( \ - ((GtkTypeObject*) (type_object)) != NULL && \ - GTK_CHECK_CLASS_TYPE (((GtkTypeObject*) (type_object))->klass, (otype)) \ -) -</MACRO> -<MACRO> -<NAME>GTK_CHECK_CLASS_TYPE</NAME> -#define GTK_CHECK_CLASS_TYPE(type_class, otype) ( \ - ((GtkTypeClass*) (type_class)) != NULL && \ - gtk_type_is_a (((GtkTypeClass*) (type_class))->type, (otype)) \ -) -</MACRO> -<TYPEDEF> -<NAME>GtkType</NAME> -typedef guint GtkType; -</TYPEDEF> -<STRUCT> -<NAME>GtkTypeObject</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTypeClass</NAME> -</STRUCT> -<MACRO> -<NAME>GTK_TYPE_IDENTIFIER</NAME> -#define GTK_TYPE_IDENTIFIER (gtk_identifier_get_type ()) -</MACRO> -<FUNCTION> -<NAME>gtk_identifier_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_MAKE</NAME> -#define GTK_TYPE_MAKE(parent_t, seqno) (((seqno) << 8) | GTK_FUNDAMENTAL_TYPE (parent_t)) -</MACRO> -<MACRO> -<NAME>GTK_FUNDAMENTAL_TYPE</NAME> -#define GTK_FUNDAMENTAL_TYPE(type) ((GtkFundamentalType) ((type) & 0xFF)) -</MACRO> -<MACRO> -<NAME>GTK_TYPE_SEQNO</NAME> -#define GTK_TYPE_SEQNO(type) ((type) > 0xFF ? (type) >> 8 : (type)) -</MACRO> -<STRUCT> -<NAME>GtkArg</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkObject</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTypeInfo</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkTypeQuery</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkEnumValue</NAME> -</STRUCT> -<MACRO> -<NAME>GTK_SIGNAL_FUNC</NAME> -#define GTK_SIGNAL_FUNC(f) ((GtkSignalFunc) f) -</MACRO> -<USER_FUNCTION> -<NAME>GtkClassInitFunc</NAME> -<RETURNS>void </RETURNS> -gpointer klass -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkObjectInitFunc</NAME> -<RETURNS>void </RETURNS> -gpointer object, - gpointer klass -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkSignalFunc</NAME> -<RETURNS>void </RETURNS> - -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkFunction</NAME> -<RETURNS>gint </RETURNS> -gpointer data -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkDestroyNotify</NAME> -<RETURNS>void </RETURNS> -gpointer data -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkCallbackMarshal</NAME> -<RETURNS>void </RETURNS> -GtkObject *object, - gpointer data, - guint n_args, - GtkArg *args -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkSignalMarshaller</NAME> -<RETURNS>void </RETURNS> -GtkObject *object, - GtkSignalFunc func, - gpointer func_data, - GtkArg *args -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkArgGetFunc</NAME> -<RETURNS>void </RETURNS> -GtkObject*, GtkArg*, guint -</USER_FUNCTION> -<USER_FUNCTION> -<NAME>GtkArgSetFunc</NAME> -<RETURNS>void </RETURNS> -GtkObject*, GtkArg*, guint -</USER_FUNCTION> -<STRUCT> -<NAME>GtkTypeObject</NAME> -struct GtkTypeObject -{ - /* A pointer to the objects class. This will actually point to - * the derived objects class struct (which will be derived from - * GtkTypeClass). - */ - GtkTypeClass *klass; -}; -</STRUCT> -<STRUCT> -<NAME>GtkArg</NAME> -struct GtkArg -{ - GtkType type; - gchar *name; - - /* this union only defines the required storage types for - * the possibile values, thus there is no gint enum_data field, - * because that would just be a mere alias for gint int_data. - * use the GTK_VALUE_*() and GTK_RETLOC_*() macros to access - * the discrete memebers. - */ - union { - /* flat values */ - gchar char_data; - guchar uchar_data; - gboolean bool_data; - gint int_data; - guint uint_data; - glong long_data; - gulong ulong_data; - gfloat float_data; - gdouble double_data; - gchar *string_data; - gpointer pointer_data; - GtkObject *object_data; - - /* structured values */ - struct { - GtkSignalFunc f; - gpointer d; - } signal_data; - struct { - gint n_args; - GtkArg *args; - } args_data; - struct { - GtkCallbackMarshal marshal; - gpointer data; - GtkDestroyNotify notify; - } callback_data; - struct { - GtkFunction func; - gpointer func_data; - } c_callback_data; - struct { - gpointer data; - GtkDestroyNotify notify; - } foreign_data; - } d; -}; -</STRUCT> -<MACRO> -<NAME>GTK_VALUE_CHAR</NAME> -#define GTK_VALUE_CHAR(a) ((a).d.char_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_UCHAR</NAME> -#define GTK_VALUE_UCHAR(a) ((a).d.uchar_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_BOOL</NAME> -#define GTK_VALUE_BOOL(a) ((a).d.bool_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_INT</NAME> -#define GTK_VALUE_INT(a) ((a).d.int_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_UINT</NAME> -#define GTK_VALUE_UINT(a) ((a).d.uint_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_LONG</NAME> -#define GTK_VALUE_LONG(a) ((a).d.long_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_ULONG</NAME> -#define GTK_VALUE_ULONG(a) ((a).d.ulong_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_FLOAT</NAME> -#define GTK_VALUE_FLOAT(a) ((a).d.float_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_DOUBLE</NAME> -#define GTK_VALUE_DOUBLE(a) ((a).d.double_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_STRING</NAME> -#define GTK_VALUE_STRING(a) ((a).d.string_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_ENUM</NAME> -#define GTK_VALUE_ENUM(a) ((a).d.int_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_FLAGS</NAME> -#define GTK_VALUE_FLAGS(a) ((a).d.uint_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_BOXED</NAME> -#define GTK_VALUE_BOXED(a) ((a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_POINTER</NAME> -#define GTK_VALUE_POINTER(a) ((a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_OBJECT</NAME> -#define GTK_VALUE_OBJECT(a) ((a).d.object_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_SIGNAL</NAME> -#define GTK_VALUE_SIGNAL(a) ((a).d.signal_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_ARGS</NAME> -#define GTK_VALUE_ARGS(a) ((a).d.args_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_CALLBACK</NAME> -#define GTK_VALUE_CALLBACK(a) ((a).d.callback_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_C_CALLBACK</NAME> -#define GTK_VALUE_C_CALLBACK(a) ((a).d.c_callback_data) -</MACRO> -<MACRO> -<NAME>GTK_VALUE_FOREIGN</NAME> -#define GTK_VALUE_FOREIGN(a) ((a).d.foreign_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_CHAR</NAME> -#define GTK_RETLOC_CHAR(a) ((gchar*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_UCHAR</NAME> -#define GTK_RETLOC_UCHAR(a) ((guchar*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_BOOL</NAME> -#define GTK_RETLOC_BOOL(a) ((gboolean*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_INT</NAME> -#define GTK_RETLOC_INT(a) ((gint*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_UINT</NAME> -#define GTK_RETLOC_UINT(a) ((guint*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_LONG</NAME> -#define GTK_RETLOC_LONG(a) ((glong*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_ULONG</NAME> -#define GTK_RETLOC_ULONG(a) ((gulong*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_FLOAT</NAME> -#define GTK_RETLOC_FLOAT(a) ((gfloat*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_DOUBLE</NAME> -#define GTK_RETLOC_DOUBLE(a) ((gdouble*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_STRING</NAME> -#define GTK_RETLOC_STRING(a) ((gchar**) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_ENUM</NAME> -#define GTK_RETLOC_ENUM(a) ((gint*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_FLAGS</NAME> -#define GTK_RETLOC_FLAGS(a) ((guint*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_BOXED</NAME> -#define GTK_RETLOC_BOXED(a) ((gpointer*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_POINTER</NAME> -#define GTK_RETLOC_POINTER(a) ((gpointer*) (a).d.pointer_data) -</MACRO> -<MACRO> -<NAME>GTK_RETLOC_OBJECT</NAME> -#define GTK_RETLOC_OBJECT(a) ((GtkObject**) (a).d.pointer_data) -</MACRO> -<STRUCT> -<NAME>GtkTypeInfo</NAME> -struct GtkTypeInfo -{ - gchar *type_name; - guint object_size; - guint class_size; - GtkClassInitFunc class_init_func; - GtkObjectInitFunc object_init_func; - gpointer reserved_1; - gpointer reserved_2; - GtkClassInitFunc base_class_init_func; -}; -</STRUCT> -<STRUCT> -<NAME>GtkTypeQuery</NAME> -struct GtkTypeQuery -{ - GtkType type; - const gchar *type_name; - guint object_size; - guint class_size; -}; -</STRUCT> -<STRUCT> -<NAME>GtkEnumValue</NAME> -struct GtkEnumValue -{ - guint value; - gchar *value_name; - gchar *value_nick; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_type_init</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_unique</NAME> -<RETURNS>GtkType </RETURNS> -GtkType parent_type,const GtkTypeInfo *type_info -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_set_chunk_alloc</NAME> -<RETURNS>void </RETURNS> -GtkType type,guint n_chunks -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_name</NAME> -<RETURNS>gchar *</RETURNS> -guint type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_from_name</NAME> -<RETURNS>GtkType </RETURNS> -const gchar *name -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_parent</NAME> -<RETURNS>GtkType </RETURNS> -GtkType type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_class</NAME> -<RETURNS>gpointer </RETURNS> -GtkType type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_parent_class</NAME> -<RETURNS>gpointer </RETURNS> -GtkType type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_children_types</NAME> -<RETURNS>GList *</RETURNS> -GtkType type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_new</NAME> -<RETURNS>gpointer </RETURNS> -GtkType type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_free</NAME> -<RETURNS>void </RETURNS> -GtkType type,gpointer mem -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_describe_heritage</NAME> -<RETURNS>void </RETURNS> -GtkType type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_describe_tree</NAME> -<RETURNS>void </RETURNS> -GtkType type,gboolean show_size -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_is_a</NAME> -<RETURNS>gboolean </RETURNS> -GtkType type,GtkType is_a_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_check_object_cast</NAME> -<RETURNS>GtkTypeObject *</RETURNS> -GtkTypeObject *type_object,GtkType cast_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_check_class_cast</NAME> -<RETURNS>GtkTypeClass *</RETURNS> -GtkTypeClass *klass,GtkType cast_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_register_enum</NAME> -<RETURNS>GtkType </RETURNS> -const gchar *type_name,GtkEnumValue *values -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_register_flags</NAME> -<RETURNS>GtkType </RETURNS> -const gchar *type_name,GtkFlagValue *values -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_enum_get_values</NAME> -<RETURNS>GtkEnumValue *</RETURNS> -GtkType enum_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_flags_get_values</NAME> -<RETURNS>GtkFlagValue *</RETURNS> -GtkType flags_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_enum_find_value</NAME> -<RETURNS>GtkEnumValue *</RETURNS> -GtkType enum_type,const gchar *value_name -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_flags_find_value</NAME> -<RETURNS>GtkFlagValue *</RETURNS> -GtkType flag_type,const gchar *value_name -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_set_varargs_type</NAME> -<RETURNS>void </RETURNS> -GtkType foreign_type,GtkType varargs_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_get_varargs_type</NAME> -<RETURNS>GtkType </RETURNS> -GtkType foreign_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_type_query</NAME> -<RETURNS>GtkTypeQuery *</RETURNS> -GtkType type -</FUNCTION> -<MACRO> -<NAME>GTK_VBUTTON_BOX</NAME> -#define GTK_VBUTTON_BOX(obj) GTK_CHECK_CAST (obj, gtk_vbutton_box_get_type (), GtkVButtonBox) -</MACRO> -<MACRO> -<NAME>GTK_VBUTTON_BOX_CLASS</NAME> -#define GTK_VBUTTON_BOX_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_vbutton_box_get_type (), GtkVButtonBoxClass) -</MACRO> -<MACRO> -<NAME>GTK_IS_VBUTTON_BOX</NAME> -#define GTK_IS_VBUTTON_BOX(obj) GTK_CHECK_TYPE (obj, gtk_vbutton_box_get_type ()) -</MACRO> -<STRUCT> -<NAME>GtkVButtonBox</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVButtonBoxClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVButtonBox</NAME> -struct GtkVButtonBox -{ - GtkButtonBox button_box; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_vbutton_box_get_type</NAME> -<RETURNS>guint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_vbutton_box_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_vbutton_box_get_spacing_default</NAME> -<RETURNS>gint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_vbutton_box_set_spacing_default</NAME> -<RETURNS>void </RETURNS> -gint spacing -</FUNCTION> -<FUNCTION> -<NAME>gtk_vbutton_box_get_layout_default</NAME> -<RETURNS>GtkButtonBoxStyle </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_vbutton_box_set_layout_default</NAME> -<RETURNS>void </RETURNS> -GtkButtonBoxStyle layout -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_VBOX</NAME> -#define GTK_TYPE_VBOX (gtk_vbox_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_VBOX</NAME> -#define GTK_VBOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_VBOX, GtkVBox)) -</MACRO> -<MACRO> -<NAME>GTK_VBOX_CLASS</NAME> -#define GTK_VBOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBOX, GtkVBoxClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_VBOX</NAME> -#define GTK_IS_VBOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_VBOX)) -</MACRO> -<MACRO> -<NAME>GTK_IS_VBOX_CLASS</NAME> -#define GTK_IS_VBOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VBOX)) -</MACRO> -<STRUCT> -<NAME>GtkVBox</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVBoxClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVBox</NAME> -struct GtkVBox -{ - GtkBox box; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_vbox_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_vbox_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -gboolean homogeneous,gint spacing -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_VIEWPORT</NAME> -#define GTK_TYPE_VIEWPORT (gtk_viewport_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_VIEWPORT</NAME> -#define GTK_VIEWPORT(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_VIEWPORT, GtkViewport)) -</MACRO> -<MACRO> -<NAME>GTK_VIEWPORT_CLASS</NAME> -#define GTK_VIEWPORT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_VIEWPORT, GtkViewportClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_VIEWPORT</NAME> -#define GTK_IS_VIEWPORT(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_VIEWPORT)) -</MACRO> -<MACRO> -<NAME>GTK_IS_VIEWPORT_CLASS</NAME> -#define GTK_IS_VIEWPORT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VIEWPORT)) -</MACRO> -<STRUCT> -<NAME>GtkViewport</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkViewportClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkViewport</NAME> -struct GtkViewport -{ - GtkBin bin; - - GtkShadowType shadow_type; - GdkWindow *view_window; - GdkWindow *bin_window; - GtkAdjustment *hadjustment; - GtkAdjustment *vadjustment; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_viewport_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_viewport_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkAdjustment *hadjustment,GtkAdjustment *vadjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_viewport_get_hadjustment</NAME> -<RETURNS>GtkAdjustment *</RETURNS> -GtkViewport *viewport -</FUNCTION> -<FUNCTION> -<NAME>gtk_viewport_get_vadjustment</NAME> -<RETURNS>GtkAdjustment *</RETURNS> -GtkViewport *viewport -</FUNCTION> -<FUNCTION> -<NAME>gtk_viewport_set_hadjustment</NAME> -<RETURNS>void </RETURNS> -GtkViewport *viewport,GtkAdjustment *adjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_viewport_set_vadjustment</NAME> -<RETURNS>void </RETURNS> -GtkViewport *viewport,GtkAdjustment *adjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_viewport_set_shadow_type</NAME> -<RETURNS>void </RETURNS> -GtkViewport *viewport,GtkShadowType type -</FUNCTION> -<MACRO> -<NAME>GTK_VPANED</NAME> -#define GTK_VPANED(obj) GTK_CHECK_CAST (obj, gtk_vpaned_get_type (), GtkVPaned) -</MACRO> -<MACRO> -<NAME>GTK_VPANED_CLASS</NAME> -#define GTK_VPANED_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_vpaned_get_type (), GtkVPanedClass) -</MACRO> -<MACRO> -<NAME>GTK_IS_VPANED</NAME> -#define GTK_IS_VPANED(obj) GTK_CHECK_TYPE (obj, gtk_vpaned_get_type ()) -</MACRO> -<STRUCT> -<NAME>GtkVPaned</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVPanedClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVPaned</NAME> -struct GtkVPaned -{ - GtkPaned paned; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_vpaned_get_type</NAME> -<RETURNS>guint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_vpaned_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<MACRO> -<NAME>GTK_VRULER</NAME> -#define GTK_VRULER(obj) GTK_CHECK_CAST (obj, gtk_vruler_get_type (), GtkVRuler) -</MACRO> -<MACRO> -<NAME>GTK_VRULER_CLASS</NAME> -#define GTK_VRULER_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_vruler_get_type (), GtkVRulerClass) -</MACRO> -<MACRO> -<NAME>GTK_IS_VRULER</NAME> -#define GTK_IS_VRULER(obj) GTK_CHECK_TYPE (obj, gtk_vruler_get_type ()) -</MACRO> -<STRUCT> -<NAME>GtkVRuler</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVRulerClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVRuler</NAME> -struct GtkVRuler -{ - GtkRuler ruler; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_vruler_get_type</NAME> -<RETURNS>guint </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_vruler_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_VSCALE</NAME> -#define GTK_TYPE_VSCALE (gtk_vscale_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_VSCALE</NAME> -#define GTK_VSCALE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_VSCALE, GtkVScale)) -</MACRO> -<MACRO> -<NAME>GTK_VSCALE_CLASS</NAME> -#define GTK_VSCALE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSCALE, GtkVScaleClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_VSCALE</NAME> -#define GTK_IS_VSCALE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_VSCALE)) -</MACRO> -<MACRO> -<NAME>GTK_IS_VSCALE_CLASS</NAME> -#define GTK_IS_VSCALE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSCALE)) -</MACRO> -<STRUCT> -<NAME>GtkVScale</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVScaleClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVScale</NAME> -struct GtkVScale -{ - GtkScale scale; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_vscale_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_vscale_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkAdjustment *adjustment -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_VSCROLLBAR</NAME> -#define GTK_TYPE_VSCROLLBAR (gtk_vscrollbar_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_VSCROLLBAR</NAME> -#define GTK_VSCROLLBAR(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_VSCROLLBAR, GtkVScrollbar)) -</MACRO> -<MACRO> -<NAME>GTK_VSCROLLBAR_CLASS</NAME> -#define GTK_VSCROLLBAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSCROLLBAR, GtkVScrollbarClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_VSCROLLBAR</NAME> -#define GTK_IS_VSCROLLBAR(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_VSCROLLBAR)) -</MACRO> -<MACRO> -<NAME>GTK_IS_VSCROLLBAR_CLASS</NAME> -#define GTK_IS_VSCROLLBAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSCROLLBAR)) -</MACRO> -<STRUCT> -<NAME>GtkVScrollbar</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVScrollbarClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVScrollbar</NAME> -struct GtkVScrollbar -{ - GtkScrollbar scrollbar; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_vscrollbar_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_vscrollbar_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkAdjustment *adjustment -</FUNCTION> -<MACRO> -<NAME>GTK_TYPE_VSEPARATOR</NAME> -#define GTK_TYPE_VSEPARATOR (gtk_vseparator_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_VSEPARATOR</NAME> -#define GTK_VSEPARATOR(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_VSEPARATOR, GtkVSeparator)) -</MACRO> -<MACRO> -<NAME>GTK_VSEPARATOR_CLASS</NAME> -#define GTK_VSEPARATOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSEPARATOR, GtkVSeparatorClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_VSEPARATOR</NAME> -#define GTK_IS_VSEPARATOR(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_VSEPARATOR)) -</MACRO> -<MACRO> -<NAME>GTK_IS_VSEPARATOR_CLASS</NAME> -#define GTK_IS_VSEPARATOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSEPARATOR)) -</MACRO> -<STRUCT> -<NAME>GtkVSeparator</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVSeparatorClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkVSeparator</NAME> -struct GtkVSeparator -{ - GtkSeparator separator; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_vseparator_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_vseparator_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -void -</FUNCTION> -<ENUM> -<NAME>GtkWidgetFlags</NAME> -typedef enum -{ - GTK_TOPLEVEL = 1 << 4, - GTK_NO_WINDOW = 1 << 5, - GTK_REALIZED = 1 << 6, - GTK_MAPPED = 1 << 7, - GTK_VISIBLE = 1 << 8, - GTK_SENSITIVE = 1 << 9, - GTK_PARENT_SENSITIVE = 1 << 10, - GTK_CAN_FOCUS = 1 << 11, - GTK_HAS_FOCUS = 1 << 12, - GTK_CAN_DEFAULT = 1 << 13, - GTK_HAS_DEFAULT = 1 << 14, - GTK_HAS_GRAB = 1 << 15, - GTK_RC_STYLE = 1 << 16, - GTK_COMPOSITE_CHILD = 1 << 17, - GTK_NO_REPARENT = 1 << 18, - GTK_APP_PAINTABLE = 1 << 19, - GTK_RECEIVES_DEFAULT = 1 << 20 -} GtkWidgetFlags; -</ENUM> -<MACRO> -<NAME>GTK_TYPE_WIDGET</NAME> -#define GTK_TYPE_WIDGET (gtk_widget_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET</NAME> -#define GTK_WIDGET(widget) (GTK_CHECK_CAST ((widget), GTK_TYPE_WIDGET, GtkWidget)) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_CLASS</NAME> -#define GTK_WIDGET_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_WIDGET, GtkWidgetClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_WIDGET</NAME> -#define GTK_IS_WIDGET(widget) (GTK_CHECK_TYPE ((widget), GTK_TYPE_WIDGET)) -</MACRO> -<MACRO> -<NAME>GTK_IS_WIDGET_CLASS</NAME> -#define GTK_IS_WIDGET_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WIDGET)) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_TYPE</NAME> -#define GTK_WIDGET_TYPE(wid) (GTK_OBJECT_TYPE (wid)) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_STATE</NAME> -#define GTK_WIDGET_STATE(wid) (GTK_WIDGET (wid)->state) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_SAVED_STATE</NAME> -#define GTK_WIDGET_SAVED_STATE(wid) (GTK_WIDGET (wid)->saved_state) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_FLAGS</NAME> -#define GTK_WIDGET_FLAGS(wid) (GTK_OBJECT_FLAGS (wid)) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_TOPLEVEL</NAME> -#define GTK_WIDGET_TOPLEVEL(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_TOPLEVEL) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_NO_WINDOW</NAME> -#define GTK_WIDGET_NO_WINDOW(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_NO_WINDOW) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_REALIZED</NAME> -#define GTK_WIDGET_REALIZED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_REALIZED) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_MAPPED</NAME> -#define GTK_WIDGET_MAPPED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_MAPPED) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_VISIBLE</NAME> -#define GTK_WIDGET_VISIBLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_VISIBLE) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_DRAWABLE</NAME> -#define GTK_WIDGET_DRAWABLE(wid) (GTK_WIDGET_VISIBLE (wid) && GTK_WIDGET_MAPPED (wid)) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_SENSITIVE</NAME> -#define GTK_WIDGET_SENSITIVE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_SENSITIVE) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_PARENT_SENSITIVE</NAME> -#define GTK_WIDGET_PARENT_SENSITIVE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_PARENT_SENSITIVE) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_IS_SENSITIVE</NAME> -#define GTK_WIDGET_IS_SENSITIVE(wid) (GTK_WIDGET_SENSITIVE (wid) && \ - GTK_WIDGET_PARENT_SENSITIVE (wid)) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_CAN_FOCUS</NAME> -#define GTK_WIDGET_CAN_FOCUS(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_CAN_FOCUS) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_HAS_FOCUS</NAME> -#define GTK_WIDGET_HAS_FOCUS(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_FOCUS) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_CAN_DEFAULT</NAME> -#define GTK_WIDGET_CAN_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_CAN_DEFAULT) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_HAS_DEFAULT</NAME> -#define GTK_WIDGET_HAS_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_DEFAULT) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_HAS_GRAB</NAME> -#define GTK_WIDGET_HAS_GRAB(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_GRAB) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_RC_STYLE</NAME> -#define GTK_WIDGET_RC_STYLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_RC_STYLE) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_COMPOSITE_CHILD</NAME> -#define GTK_WIDGET_COMPOSITE_CHILD(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_COMPOSITE_CHILD) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_APP_PAINTABLE</NAME> -#define GTK_WIDGET_APP_PAINTABLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_APP_PAINTABLE) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_RECEIVES_DEFAULT</NAME> -#define GTK_WIDGET_RECEIVES_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_RECEIVES_DEFAULT) != 0) -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_SET_FLAGS</NAME> -#define GTK_WIDGET_SET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) |= (flag)); }G_STMT_END -</MACRO> -<MACRO> -<NAME>GTK_WIDGET_UNSET_FLAGS</NAME> -#define GTK_WIDGET_UNSET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) &= ~(flag)); }G_STMT_END -</MACRO> -<STRUCT> -<NAME>GtkRequisition</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkAllocation</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkSelectionData</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkWidgetClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkWidgetAuxInfo</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkWidgetShapeInfo</NAME> -</STRUCT> -<USER_FUNCTION> -<NAME>GtkCallback</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget, - gpointer data -</USER_FUNCTION> -<STRUCT> -<NAME>GtkRequisition</NAME> -struct GtkRequisition -{ - gint16 width; - gint16 height; -}; -</STRUCT> -<STRUCT> -<NAME>GtkAllocation</NAME> -struct GtkAllocation -{ - gint16 x; - gint16 y; - guint16 width; - guint16 height; -}; -</STRUCT> -<STRUCT> -<NAME>GtkSelectionData</NAME> -struct GtkSelectionData -{ - GdkAtom selection; - GdkAtom target; - GdkAtom type; - gint format; - guchar *data; - gint length; -}; -</STRUCT> -<STRUCT> -<NAME>GtkWidget</NAME> -struct GtkWidget -{ - /* The object structure needs to be the first - * element in the widget structure in order for - * the object mechanism to work correctly. This - * allows a GtkWidget pointer to be cast to a - * GtkObject pointer. - */ - GtkObject object; - - /* 16 bits of internally used private flags. - * this will be packed into the same 4 byte alignment frame that - * state and saved_state go. we therefore don't waste any new - * space on this. - */ - guint16 private_flags; - - /* The state of the widget. There are actually only - * 5 widget states (defined in "gtkenums.h"). - */ - guint8 state; - - /* The saved state of the widget. When a widgets state - * is changed to GTK_STATE_INSENSITIVE via - * "gtk_widget_set_state" or "gtk_widget_set_sensitive" - * the old state is kept around in this field. The state - * will be restored once the widget gets sensitive again. - */ - guint8 saved_state; - - /* The widgets name. If the widget does not have a name - * (the name is NULL), then its name (as returned by - * "gtk_widget_get_name") is its classes name. - * Among other things, the widget name is used to determine - * the style to use for a widget. - */ - gchar *name; - - /* The style for the widget. The style contains the - * colors the widget should be drawn in for each state - * along with graphics contexts used to draw with and - * the font to use for text. - */ - GtkStyle *style; - - /* The widgets desired size. - */ - GtkRequisition requisition; - - /* The widgets allocated size. - */ - GtkAllocation allocation; - - /* The widgets window or its parent window if it does - * not have a window. (Which will be indicated by the - * GTK_NO_WINDOW flag being set). - */ - GdkWindow *window; - - /* The widgets parent. - */ - GtkWidget *parent; -}; -</STRUCT> -<STRUCT> -<NAME>GtkWidgetAuxInfo</NAME> -struct GtkWidgetAuxInfo -{ - gint16 x; - gint16 y; - gint16 width; - gint16 height; -}; -</STRUCT> -<STRUCT> -<NAME>GtkWidgetShapeInfo</NAME> -struct GtkWidgetShapeInfo -{ - gint16 offset_x; - gint16 offset_y; - GdkBitmap *shape_mask; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_widget_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkType type,const gchar *first_arg_name,... -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_newv</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkType type,guint nargs,GtkArg *args -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_ref</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_unref</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_destroy</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_destroyed</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkWidget **widget_pointer -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkArg *arg -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_getv</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,guint nargs,GtkArg *args -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,const gchar *first_arg_name,... -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_setv</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,guint nargs,GtkArg *args -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_unparent</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_show</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_show_now</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_hide</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_show_all</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_hide_all</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_map</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_unmap</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_realize</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_unrealize</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_queue_draw</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_queue_draw_area</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_queue_clear</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_queue_clear_area</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gint x,gint y,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_queue_resize</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_draw</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GdkRectangle *area -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_draw_focus</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_draw_default</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_size_request</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkRequisition *requisition -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_size_allocate</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkAllocation *allocation -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_child_requisition</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkRequisition *requisition -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_add_accelerator</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,const gchar *accel_signal,GtkAccelGroup *accel_group,guint accel_key,guint accel_mods,GtkAccelFlags accel_flags -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_remove_accelerator</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkAccelGroup *accel_group,guint accel_key,guint accel_mods -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_remove_accelerators</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,const gchar *accel_signal,gboolean visible_only -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_accelerator_signal</NAME> -<RETURNS>guint </RETURNS> -GtkWidget *widget,GtkAccelGroup *accel_group,guint accel_key,guint accel_mods -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_lock_accelerators</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_unlock_accelerators</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_accelerators_locked</NAME> -<RETURNS>gboolean </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_event</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget,GdkEvent *event -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_activate</NAME> -<RETURNS>gboolean </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_scroll_adjustments</NAME> -<RETURNS>gboolean </RETURNS> -GtkWidget *widget,GtkAdjustment *hadjustment,GtkAdjustment *vadjustment -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_reparent</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkWidget *new_parent -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_popup</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gint x,gint y -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_intersect</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget,GdkRectangle *area,GdkRectangle *intersection -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_grab_focus</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_grab_default</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_name</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,const gchar *name -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_name</NAME> -<RETURNS>gchar *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_state</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkStateType state -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_sensitive</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gboolean sensitive -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_app_paintable</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gboolean app_paintable -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_parent</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkWidget *parent -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_parent_window</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GdkWindow *parent_window -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_parent_window</NAME> -<RETURNS>GdkWindow *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_uposition</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gint x,gint y -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_usize</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_events</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gint events -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_add_events</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gint events -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_extension_events</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GdkExtensionMode mode -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_extension_events</NAME> -<RETURNS>GdkExtensionMode </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_toplevel</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_ancestor</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkWidget *widget,GtkType widget_type -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_colormap</NAME> -<RETURNS>GdkColormap *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_visual</NAME> -<RETURNS>GdkVisual *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_colormap</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GdkColormap *colormap -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_visual</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GdkVisual *visual -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_events</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_pointer</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gint *x,gint *y -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_is_ancestor</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget,GtkWidget *ancestor -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_hide_on_delete</NAME> -<RETURNS>gint </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_style</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkStyle *style -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_rc_style</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_ensure_style</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_style</NAME> -<RETURNS>GtkStyle *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_restore_default_style</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_modify_style</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GtkRcStyle *style -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_composite_name</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,gchar *name -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_composite_name</NAME> -<RETURNS>gchar *</RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_reset_rc_styles</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_push_style</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_push_colormap</NAME> -<RETURNS>void </RETURNS> -GdkColormap *cmap -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_push_visual</NAME> -<RETURNS>void </RETURNS> -GdkVisual *visual -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_push_composite_child</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_pop_composite_child</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_pop_style</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_pop_colormap</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_pop_visual</NAME> -<RETURNS>void </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_default_style</NAME> -<RETURNS>void </RETURNS> -GtkStyle *style -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_default_colormap</NAME> -<RETURNS>void </RETURNS> -GdkColormap *colormap -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_set_default_visual</NAME> -<RETURNS>void </RETURNS> -GdkVisual *visual -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_default_style</NAME> -<RETURNS>GtkStyle *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_default_colormap</NAME> -<RETURNS>GdkColormap *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_get_default_visual</NAME> -<RETURNS>GdkVisual *</RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_shape_combine_mask</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,GdkBitmap *shape_mask,gint offset_x,gint offset_y -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_reset_shapes</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_path</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,guint *path_length,gchar **path,gchar **path_reversed -</FUNCTION> -<FUNCTION> -<NAME>gtk_widget_class_path</NAME> -<RETURNS>void </RETURNS> -GtkWidget *widget,guint *path_length,gchar **path,gchar **path_reversed -</FUNCTION> -<MACRO> -<NAME>gtk_widget_ref</NAME> -# define gtk_widget_ref gtk_object_ref -</MACRO> -<MACRO> -<NAME>gtk_widget_unref</NAME> -# define gtk_widget_unref gtk_object_unref -</MACRO> -<MACRO> -<NAME>GTK_TYPE_WINDOW</NAME> -#define GTK_TYPE_WINDOW (gtk_window_get_type ()) -</MACRO> -<MACRO> -<NAME>GTK_WINDOW</NAME> -#define GTK_WINDOW(obj) (GTK_CHECK_CAST (obj, GTK_TYPE_WINDOW, GtkWindow)) -</MACRO> -<MACRO> -<NAME>GTK_WINDOW_CLASS</NAME> -#define GTK_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_CAST (klass, GTK_TYPE_WINDOW, GtkWindowClass)) -</MACRO> -<MACRO> -<NAME>GTK_IS_WINDOW</NAME> -#define GTK_IS_WINDOW(obj) (GTK_CHECK_TYPE (obj, GTK_TYPE_WINDOW)) -</MACRO> -<MACRO> -<NAME>GTK_IS_WINDOW_CLASS</NAME> -#define GTK_IS_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_TYPE (klass, GTK_TYPE_WINDOW)) -</MACRO> -<STRUCT> -<NAME>GtkWindow</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkWindowClass</NAME> -</STRUCT> -<STRUCT> -<NAME>GtkWindow</NAME> -struct GtkWindow -{ - GtkBin bin; - - gchar *title; - gchar *wmclass_name; - gchar *wmclass_class; - GtkWindowType type; - - GtkWidget *focus_widget; - GtkWidget *default_widget; - GtkWindow *transient_parent; - - gushort resize_count; - guint allow_shrink : 1; - guint allow_grow : 1; - guint auto_shrink : 1; - guint handling_resize : 1; - guint position : 2; - - /* The following flag is initially TRUE when a window is mapped. - * and will be set to FALSE after it is first positioned. - * It is also temporarily reset when the window's size changes. - * - * When TRUE, we move the window to the position the app set. - */ - guint use_uposition : 1; - guint modal : 1; -}; -</STRUCT> -<FUNCTION> -<NAME>gtk_window_get_type</NAME> -<RETURNS>GtkType </RETURNS> -void -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_new</NAME> -<RETURNS>GtkWidget *</RETURNS> -GtkWindowType type -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_set_title</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,const gchar *title -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_set_wmclass</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,const gchar *wmclass_name,const gchar *wmclass_class -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_set_policy</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,gint allow_shrink,gint allow_grow,gint auto_shrink -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_add_accel_group</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,GtkAccelGroup *accel_group -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_remove_accel_group</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,GtkAccelGroup *accel_group -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_set_position</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,GtkWindowPosition position -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_activate_focus</NAME> -<RETURNS>gint </RETURNS> -GtkWindow *window -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_activate_default</NAME> -<RETURNS>gint </RETURNS> -GtkWindow *window -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_set_transient_for</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,GtkWindow *parent -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_set_geometry_hints</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,GtkWidget *geometry_widget,GdkGeometry *geometry,GdkWindowHints geom_mask -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_set_default_size</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,gint width,gint height -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_set_modal</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,gboolean modal -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_set_focus</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,GtkWidget *focus -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_set_default</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,GtkWidget *defaultw -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_remove_embedded_xid</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,guint xid -</FUNCTION> -<FUNCTION> -<NAME>gtk_window_add_embedded_xid</NAME> -<RETURNS>void </RETURNS> -GtkWindow *window,guint xid -</FUNCTION> diff --git a/docs/reference/gtk/gtk-docs.sgml b/docs/reference/gtk/gtk-docs.sgml deleted file mode 100644 index 6042de1911..0000000000 --- a/docs/reference/gtk/gtk-docs.sgml +++ /dev/null @@ -1,293 +0,0 @@ -<!doctype book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [ -<!entity hash "#"> -<!entity GtkAccelLabel SYSTEM "sgml/gtkaccellabel.sgml"> -<!entity GtkAdjustment SYSTEM "sgml/gtkadjustment.sgml"> -<!entity GtkAlignment SYSTEM "sgml/gtkalignment.sgml"> -<!entity GtkArrow SYSTEM "sgml/gtkarrow.sgml"> -<!entity GtkAspectFrame SYSTEM "sgml/gtkaspectframe.sgml"> -<!entity GtkButtonBox SYSTEM "sgml/gtkbbox.sgml"> -<!entity GtkBin SYSTEM "sgml/gtkbin.sgml"> -<!entity GtkBox SYSTEM "sgml/gtkbox.sgml"> -<!entity GtkButton SYSTEM "sgml/gtkbutton.sgml"> -<!entity GtkCalendar SYSTEM "sgml/gtkcalendar.sgml"> -<!entity GtkCheckButton SYSTEM "sgml/gtkcheckbutton.sgml"> -<!entity GtkCheckMenuItem SYSTEM "sgml/gtkcheckmenuitem.sgml"> -<!entity GtkCList SYSTEM "sgml/gtkclist.sgml"> -<!entity GtkColorSelection SYSTEM "sgml/gtkcolorsel.sgml"> -<!entity GtkColorSelectionDialog SYSTEM "sgml/gtkcolorseldlg.sgml"> -<!entity GtkCombo SYSTEM "sgml/gtkcombo.sgml"> -<!entity GtkContainer SYSTEM "sgml/gtkcontainer.sgml"> -<!entity GtkCTree SYSTEM "sgml/gtkctree.sgml"> -<!entity GtkCurve SYSTEM "sgml/gtkcurve.sgml"> -<!entity GtkData SYSTEM "sgml/gtkdata.sgml"> -<!entity GtkDialog SYSTEM "sgml/gtkdialog.sgml"> -<!entity GtkDrawingArea SYSTEM "sgml/gtkdrawingarea.sgml"> -<!entity GtkEditable SYSTEM "sgml/gtkeditable.sgml"> -<!entity GtkEntry SYSTEM "sgml/gtkentry.sgml"> -<!entity GtkEventBox SYSTEM "sgml/gtkeventbox.sgml"> -<!entity GtkFileSelection SYSTEM "sgml/gtkfilesel.sgml"> -<!entity GtkFixed SYSTEM "sgml/gtkfixed.sgml"> -<!entity GtkFontSelection SYSTEM "sgml/gtkfontsel.sgml"> -<!entity GtkFontSelectionDialog SYSTEM "sgml/gtkfontseldlg.sgml"> -<!entity GtkFrame SYSTEM "sgml/gtkframe.sgml"> -<!entity GtkGammaCurve SYSTEM "sgml/gtkgamma.sgml"> -<!entity GtkHandleBox SYSTEM "sgml/gtkhandlebox.sgml"> -<!entity GtkHButtonBox SYSTEM "sgml/gtkhbbox.sgml"> -<!entity GtkHBox SYSTEM "sgml/gtkhbox.sgml"> -<!entity GtkHPaned SYSTEM "sgml/gtkhpaned.sgml"> -<!entity GtkHRuler SYSTEM "sgml/gtkhruler.sgml"> -<!entity GtkHScale SYSTEM "sgml/gtkhscale.sgml"> -<!entity GtkHScrollbar SYSTEM "sgml/gtkhscrollbar.sgml"> -<!entity GtkHSeparator SYSTEM "sgml/gtkhseparator.sgml"> -<!entity GtkImage SYSTEM "sgml/gtkimage.sgml"> -<!entity GtkInputDialog SYSTEM "sgml/gtkinputdialog.sgml"> -<!entity GtkInvisible SYSTEM "sgml/gtkinvisible.sgml"> -<!entity GtkItem SYSTEM "sgml/gtkitem.sgml"> -<!entity GtkItemFactory SYSTEM "sgml/gtkitemfactory.sgml"> -<!entity GtkLabel SYSTEM "sgml/gtklabel.sgml"> -<!entity GtkLayout SYSTEM "sgml/gtklayout.sgml"> -<!entity GtkList SYSTEM "sgml/gtklist.sgml"> -<!entity GtkListItem SYSTEM "sgml/gtklistitem.sgml"> -<!entity GtkMenu SYSTEM "sgml/gtkmenu.sgml"> -<!entity GtkMenuBar SYSTEM "sgml/gtkmenubar.sgml"> -<!entity GtkMenuItem SYSTEM "sgml/gtkmenuitem.sgml"> -<!entity GtkMenuShell SYSTEM "sgml/gtkmenushell.sgml"> -<!entity GtkMisc SYSTEM "sgml/gtkmisc.sgml"> -<!entity GtkNotebook SYSTEM "sgml/gtknotebook.sgml"> -<!entity GtkObject SYSTEM "sgml/gtkobject.sgml"> -<!entity GtkOptionMenu SYSTEM "sgml/gtkoptionmenu.sgml"> -<!entity GtkPacker SYSTEM "sgml/gtkpacker.sgml"> -<!entity GtkPaned SYSTEM "sgml/gtkpaned.sgml"> -<!entity GtkPixmap SYSTEM "sgml/gtkpixmap.sgml"> -<!entity GtkPlug SYSTEM "sgml/gtkplug.sgml"> -<!entity GtkPreview SYSTEM "sgml/gtkpreview.sgml"> -<!entity GtkProgress SYSTEM "sgml/gtkprogress.sgml"> -<!entity GtkProgressBar SYSTEM "sgml/gtkprogressbar.sgml"> -<!entity GtkRadioButton SYSTEM "sgml/gtkradiobutton.sgml"> -<!entity GtkRadioMenuItem SYSTEM "sgml/gtkradiomenuitem.sgml"> -<!entity GtkRange SYSTEM "sgml/gtkrange.sgml"> -<!entity GtkRuler SYSTEM "sgml/gtkruler.sgml"> -<!entity GtkScale SYSTEM "sgml/gtkscale.sgml"> -<!entity GtkScrollbar SYSTEM "sgml/gtkscrollbar.sgml"> -<!entity GtkScrolledWindow SYSTEM "sgml/gtkscrolledwindow.sgml"> -<!entity GtkSeparator SYSTEM "sgml/gtkseparator.sgml"> -<!entity GtkSocket SYSTEM "sgml/gtksocket.sgml"> -<!entity GtkSpinButton SYSTEM "sgml/gtkspinbutton.sgml"> -<!entity GtkStatusbar SYSTEM "sgml/gtkstatusbar.sgml"> -<!entity GtkTable SYSTEM "sgml/gtktable.sgml"> -<!entity GtkTearoffMenuItem SYSTEM "sgml/gtktearoffmenuitem.sgml"> -<!entity GtkText SYSTEM "sgml/gtktext.sgml"> -<!entity GtkTipsQuery SYSTEM "sgml/gtktipsquery.sgml"> -<!entity GtkToggleButton SYSTEM "sgml/gtktogglebutton.sgml"> -<!entity GtkToolbar SYSTEM "sgml/gtktoolbar.sgml"> -<!entity GtkTooltips SYSTEM "sgml/gtktooltips.sgml"> -<!entity GtkTree SYSTEM "sgml/gtktree.sgml"> -<!entity GtkTreeItem SYSTEM "sgml/gtktreeitem.sgml"> -<!entity GtkVButtonBox SYSTEM "sgml/gtkvbbox.sgml"> -<!entity GtkVBox SYSTEM "sgml/gtkvbox.sgml"> -<!entity GtkViewport SYSTEM "sgml/gtkviewport.sgml"> -<!entity GtkVPaned SYSTEM "sgml/gtkvpaned.sgml"> -<!entity GtkVRuler SYSTEM "sgml/gtkvruler.sgml"> -<!entity GtkVScale SYSTEM "sgml/gtkvscale.sgml"> -<!entity GtkVScrollbar SYSTEM "sgml/gtkvscrollbar.sgml"> -<!entity GtkVSeparator SYSTEM "sgml/gtkvseparator.sgml"> -<!entity GtkWidget SYSTEM "sgml/gtkwidget.sgml"> -<!entity GtkWindow SYSTEM "sgml/gtkwindow.sgml"> -<!entity gtk-General SYSTEM "sgml/gtkmain.sgml"> -<!entity gtk-Feature-Test-Macros SYSTEM "sgml/gtkfeatures.sgml"> -<!entity gtk-Graphics-Contexts SYSTEM "sgml/gtkgc.sgml"> -<!entity gtk-Styles SYSTEM "sgml/gtkstyle.sgml"> -<!entity gtk-Themes SYSTEM "sgml/gtkthemes.sgml"> -<!entity gtk-Resource-Files SYSTEM "sgml/gtkrc.sgml"> -<!entity gtk-Keyboard-Accelerators SYSTEM "sgml/gtkaccelgroup.sgml"> -<!entity gtk-Selections SYSTEM "sgml/gtkselection.sgml"> -<!entity gtk-Drag-and-Drop SYSTEM "sgml/gtkdnd.sgml"> -<!entity gtk-Signals SYSTEM "sgml/gtksignal.sgml"> -<!entity gtk-Signal-Marshallers SYSTEM "sgml/gtkmarshal.sgml"> -<!entity gtk-Object-Properties SYSTEM "sgml/gtkarg.sgml"> -<!entity gtk-Types SYSTEM "sgml/gtktypeutils.sgml"> -<!entity gtk-Bindings SYSTEM "sgml/gtkbindings.sgml"> -<!entity gtk-Standard-Enumerations SYSTEM "sgml/gtkenums.sgml"> -<!entity gtk-Private-Information SYSTEM "sgml/gtkprivate.sgml"> - -<!entity index-Object-Tree SYSTEM "sgml/tree_index.sgml"> - -<!entity index-Objects-Grouped SYSTEM "objects_grouped.sgml"> -]> -<book id="index"> - <bookinfo> - <title>GTK+ Reference Manual - - - - GTK+ - -GTK+ is a multi-platform open source GUI Toolkit. Everything about -GTK+ from the object-oriented design to the Free Software LGPL -licensing allows you to code your project with the most freedom -possible. You can develop open software, free software, or even -commercial non-free software without having to spend a dime for -licenses or royalties. - - -GTK+ is a set of libraries to create graphical user interfaces. It -works on many Unix-like platforms, and a Windows version is in -development. GTK+ is released under the GNU Library General Public -License (GNU LGPL), which allows for flexible licensing of client -applications. GTK+ has a C-based object-oriented architecture that -allows for maximum flexibility. Bindings for other languages have -been written, including C++, Objective-C, Guile/Scheme, Perl, Python, -TOM, Ada95, Free Pascal, and Eiffel. - - -GTK+ consists of the following component libraries: - - - -GLib - -Provides many useful data types, macros, type conversions, -string utilities and a lexical scanner. Includes Win32 support. - - - - -GDK - -A wrapper for low-level windowing functions. - - - - -GTK+ - -An advanced widget set. - - - - - >k-General; - >k-Feature-Test-Macros; - >k-Graphics-Contexts; - >k-Styles; - >k-Themes; - >k-Resource-Files; - >k-Keyboard-Accelerators; - >k-Selections; - >k-Drag-and-Drop; - >k-Signals; - >k-Signal-Marshallers; - >k-Object-Properties; - >k-Types; - >k-Bindings; - >k-Standard-Enumerations; - >k-Private-Information; - - - - GTK+ Widgets and Objects - &index-Objects-Grouped; - - &GtkAccelLabel; - &GtkAdjustment; - &GtkAlignment; - &GtkArrow; - &GtkAspectFrame; - &GtkButtonBox; - &GtkBin; - &GtkBox; - &GtkButton; - &GtkCalendar; - &GtkCheckButton; - &GtkCheckMenuItem; - &GtkCList; - &GtkColorSelection; - &GtkColorSelectionDialog; - &GtkCombo; - &GtkContainer; - &GtkCTree; - &GtkCurve; - &GtkData; - &GtkDialog; - &GtkDrawingArea; - &GtkEditable; - &GtkEntry; - &GtkEventBox; - &GtkFileSelection; - &GtkFixed; - &GtkFontSelection; - &GtkFontSelectionDialog; - &GtkFrame; - &GtkGammaCurve; - &GtkHandleBox; - &GtkHButtonBox; - &GtkHBox; - &GtkHPaned; - &GtkHRuler; - &GtkHScale; - &GtkHScrollbar; - &GtkHSeparator; - &GtkImage; - &GtkInputDialog; - &GtkInvisible; - &GtkItem; - &GtkItemFactory; - &GtkLabel; - &GtkLayout; - &GtkList; - &GtkListItem; - &GtkMenu; - &GtkMenuBar; - &GtkMenuItem; - &GtkMenuShell; - &GtkMisc; - &GtkNotebook; - &GtkObject; - &GtkOptionMenu; - &GtkPacker; - &GtkPaned; - &GtkPixmap; - &GtkPlug; - &GtkPreview; - &GtkProgress; - &GtkProgressBar; - &GtkRadioButton; - &GtkRadioMenuItem; - &GtkRange; - &GtkRuler; - &GtkScale; - &GtkScrollbar; - &GtkScrolledWindow; - &GtkSeparator; - &GtkSocket; - &GtkSpinButton; - &GtkStatusbar; - &GtkTable; - &GtkTearoffMenuItem; - &GtkText; - &GtkTipsQuery; - &GtkToggleButton; - &GtkToolbar; - &GtkTooltips; - &GtkTree; - &GtkTreeItem; - &GtkVButtonBox; - &GtkVBox; - &GtkViewport; - &GtkVPaned; - &GtkVRuler; - &GtkVScale; - &GtkVScrollbar; - &GtkVSeparator; - &GtkWidget; - &GtkWindow; - - - - Index - - Object Hierarchy - &index-Object-Tree; - - - diff --git a/docs/reference/gtk/gtk-overrides.txt b/docs/reference/gtk/gtk-overrides.txt deleted file mode 100644 index 485996d6ed..0000000000 --- a/docs/reference/gtk/gtk-overrides.txt +++ /dev/null @@ -1,19 +0,0 @@ -# These are manually-edited to override or add declarations to those scanned -# from the GTK header files. - -# These haven't been given parameter names in the header files. - -GtkArgGetFunc -void -GtkObject *object, -GtkArg *arg, -guint arg_id - - - -GtkArgSetFunc -void -GtkObject *object, -GtkArg *arg, -guint arg_id - diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt deleted file mode 100644 index aa0908cd7b..0000000000 --- a/docs/reference/gtk/gtk-sections.txt +++ /dev/null @@ -1,2952 +0,0 @@ - -gtk/gtk.h - -
-gtkaccellabel -GtkAccelLabel -GtkAccelLabel -gtk_accel_label_new -gtk_accel_label_set_accel_widget -gtk_accel_label_get_accel_width -gtk_accel_label_refetch - -GTK_ACCEL_LABEL -GTK_IS_ACCEL_LABEL -GTK_TYPE_ACCEL_LABEL -gtk_accel_label_get_type -GTK_ACCEL_LABEL_CLASS -GTK_IS_ACCEL_LABEL_CLASS - -gtk_accel_label_accelerator_width -
- -
-gtkadjustment -GtkAdjustment -GtkAdjustment -gtk_adjustment_new -gtk_adjustment_set_value -gtk_adjustment_clamp_page -gtk_adjustment_changed -gtk_adjustment_value_changed - -GTK_ADJUSTMENT -GTK_IS_ADJUSTMENT -GTK_TYPE_ADJUSTMENT -gtk_adjustment_get_type -GTK_ADJUSTMENT_CLASS -GTK_IS_ADJUSTMENT_CLASS -
- -
-gtkalignment -GtkAlignment -GtkAlignment -gtk_alignment_new -gtk_alignment_set - -GTK_ALIGNMENT -GTK_IS_ALIGNMENT -GTK_TYPE_ALIGNMENT -gtk_alignment_get_type -GTK_ALIGNMENT_CLASS -GTK_IS_ALIGNMENT_CLASS -
- -
-gtkarrow -GtkArrow -GtkArrow -gtk_arrow_new -gtk_arrow_set - -GTK_ARROW -GTK_IS_ARROW -GTK_TYPE_ARROW -gtk_arrow_get_type -GTK_ARROW_CLASS -GTK_IS_ARROW_CLASS -
- -
-gtkaspectframe -GtkAspectFrame -GtkAspectFrame -gtk_aspect_frame_new -gtk_aspect_frame_set - -GTK_ASPECT_FRAME -GTK_IS_ASPECT_FRAME -GTK_TYPE_ASPECT_FRAME -gtk_aspect_frame_get_type -GTK_ASPECT_FRAME_CLASS -GTK_IS_ASPECT_FRAME_CLASS -
- -
-gtkbbox -GtkButtonBox -GtkButtonBox -GTK_BUTTONBOX_DEFAULT -gtk_button_box_get_child_size_default -gtk_button_box_get_child_ipadding_default -gtk_button_box_set_child_size_default -gtk_button_box_set_child_ipadding_default -gtk_button_box_get_spacing -gtk_button_box_get_layout -gtk_button_box_get_child_size -gtk_button_box_get_child_ipadding -gtk_button_box_set_spacing -gtk_button_box_set_layout -gtk_button_box_set_child_size -gtk_button_box_set_child_ipadding -gtk_button_box_child_requisition - -GTK_BUTTON_BOX -GTK_IS_BUTTON_BOX -GTK_TYPE_BUTTON_BOX -gtk_button_box_get_type -GTK_BUTTON_BOX_CLASS -GTK_IS_BUTTON_BOX_CLASS -
- -
-gtkbin -GtkBin -GtkBin - -GTK_BIN -GTK_IS_BIN -GTK_TYPE_BIN -gtk_bin_get_type -GTK_BIN_CLASS -GTK_IS_BIN_CLASS -
- -
-gtkbox -GtkBox -GtkBox -GtkBoxChild -gtk_box_pack_start -gtk_box_pack_end -gtk_box_pack_start_defaults -gtk_box_pack_end_defaults -gtk_box_set_homogeneous -gtk_box_set_spacing -gtk_box_reorder_child -gtk_box_query_child_packing -gtk_box_set_child_packing - -GTK_BOX -GTK_IS_BOX -GTK_TYPE_BOX -gtk_box_get_type -GTK_BOX_CLASS -GTK_IS_BOX_CLASS -
- -
-gtkbutton -GtkButton -GtkButton -gtk_button_new -gtk_button_new_with_label -gtk_button_pressed -gtk_button_released -gtk_button_clicked -gtk_button_enter -gtk_button_leave -gtk_button_set_relief -gtk_button_get_relief - -GTK_BUTTON -GTK_IS_BUTTON -GTK_TYPE_BUTTON -gtk_button_get_type -GTK_BUTTON_CLASS -GTK_IS_BUTTON_CLASS -
- -
-gtkcalendar -GtkCalendar -GtkCalendarDisplayOptions -GtkCalendar -gtk_calendar_new -gtk_calendar_select_month -gtk_calendar_select_day -gtk_calendar_mark_day -gtk_calendar_unmark_day -gtk_calendar_clear_marks -gtk_calendar_display_options -gtk_calendar_get_date -gtk_calendar_freeze -gtk_calendar_thaw - -GTK_CALENDAR -GTK_IS_CALENDAR -GTK_TYPE_CALENDAR -gtk_calendar_get_type -GTK_CALENDAR_CLASS -GTK_IS_CALENDAR_CLASS -
- -
-gtkcheckbutton -GtkCheckButton -GtkCheckButton -gtk_check_button_new -gtk_check_button_new_with_label - -GTK_CHECK_BUTTON -GTK_IS_CHECK_BUTTON -GTK_TYPE_CHECK_BUTTON -gtk_check_button_get_type -GTK_CHECK_BUTTON_CLASS -GTK_IS_CHECK_BUTTON_CLASS -
- -
-gtkcheckmenuitem -GtkCheckMenuItem -GtkCheckMenuItem -gtk_check_menu_item_new -gtk_check_menu_item_new_with_label -gtk_check_menu_item_set_state -gtk_check_menu_item_set_active -gtk_check_menu_item_set_show_toggle -gtk_check_menu_item_toggled - -GTK_CHECK_MENU_ITEM -GTK_IS_CHECK_MENU_ITEM -GTK_TYPE_CHECK_MENU_ITEM -gtk_check_menu_item_get_type -GTK_CHECK_MENU_ITEM_CLASS -GTK_IS_CHECK_MENU_ITEM_CLASS -
- -
-gtkclist -GtkCList -GtkCellType -GtkButtonAction -GTK_CLIST_FLAGS -GTK_CLIST_SET_FLAG -GTK_CLIST_UNSET_FLAG -GTK_CLIST_IN_DRAG -GTK_CLIST_ROW_HEIGHT_SET -GTK_CLIST_SHOW_TITLES -GTK_CLIST_CHILD_HAS_FOCUS -GTK_CLIST_ADD_MODE -GTK_CLIST_AUTO_SORT -GTK_CLIST_AUTO_RESIZE_BLOCKED -GTK_CLIST_REORDERABLE -GTK_CLIST_USE_DRAG_ICONS -GTK_CLIST_DRAW_DRAG_LINE -GTK_CLIST_DRAW_DRAG_RECT -GTK_CLIST_ROW -GTK_CELL_TEXT -GTK_CELL_PIXMAP -GTK_CELL_PIXTEXT -GTK_CELL_WIDGET -GtkCListCompareFunc -GtkCList -GtkCListColumn -GtkCListRow -GtkCellText -GtkCellPixmap -GtkCellPixText -GtkCellWidget -GtkCell -GtkCListCellInfo -GtkCListDestInfo -GtkCListDragPos -gtk_clist_construct -gtk_clist_new -gtk_clist_new_with_titles -gtk_clist_set_shadow_type -gtk_clist_set_selection_mode -gtk_clist_freeze -gtk_clist_thaw -gtk_clist_column_titles_show -gtk_clist_column_titles_hide -gtk_clist_column_title_active -gtk_clist_column_title_passive -gtk_clist_column_titles_active -gtk_clist_column_titles_passive -gtk_clist_set_column_title -gtk_clist_set_column_widget -gtk_clist_set_column_justification -gtk_clist_set_column_visibility -gtk_clist_set_column_resizeable -gtk_clist_set_column_auto_resize -gtk_clist_optimal_column_width -gtk_clist_set_column_width -gtk_clist_set_column_min_width -gtk_clist_set_column_max_width -gtk_clist_set_row_height -gtk_clist_moveto -gtk_clist_row_is_visible -gtk_clist_get_cell_type -gtk_clist_set_text -gtk_clist_get_text -gtk_clist_set_pixmap -gtk_clist_get_pixmap -gtk_clist_set_pixtext -gtk_clist_get_pixtext -gtk_clist_set_foreground -gtk_clist_set_background -gtk_clist_set_cell_style -gtk_clist_get_cell_style -gtk_clist_set_row_style -gtk_clist_get_row_style -gtk_clist_set_shift -gtk_clist_set_selectable -gtk_clist_get_selectable -gtk_clist_prepend -gtk_clist_append -gtk_clist_insert -gtk_clist_remove -gtk_clist_set_row_data -gtk_clist_set_row_data_full -gtk_clist_get_row_data -gtk_clist_find_row_from_data -gtk_clist_select_row -gtk_clist_unselect_row -gtk_clist_undo_selection -gtk_clist_clear -gtk_clist_get_selection_info -gtk_clist_select_all -gtk_clist_unselect_all -gtk_clist_swap_rows -gtk_clist_set_compare_func -gtk_clist_set_sort_column -gtk_clist_set_sort_type -gtk_clist_sort -gtk_clist_set_auto_sort -gtk_clist_columns_autosize -gtk_clist_get_column_title -gtk_clist_get_column_widget -gtk_clist_get_hadjustment -gtk_clist_get_vadjustment -gtk_clist_row_move -gtk_clist_set_button_actions -gtk_clist_set_hadjustment -gtk_clist_set_reorderable -gtk_clist_set_use_drag_icons -gtk_clist_set_vadjustment - -GTK_CLIST -GTK_IS_CLIST -GTK_TYPE_CLIST -gtk_clist_get_type -GTK_CLIST_CLASS -GTK_IS_CLIST_CLASS -
- -
-gtkcolorsel -GtkColorSelection -GtkColorSelection -gtk_color_selection_new -gtk_color_selection_set_update_policy -gtk_color_selection_set_opacity -gtk_color_selection_set_color -gtk_color_selection_get_color - -GTK_COLOR_SELECTION -GTK_IS_COLOR_SELECTION -gtk_color_selection_get_type -GTK_COLOR_SELECTION_CLASS -
- -
-gtkcolorseldlg -GtkColorSelectionDialog -GtkColorSelectionDialog -gtk_color_selection_dialog_new - -GTK_COLOR_SELECTION_DIALOG -GTK_IS_COLOR_SELECTION_DIALOG -gtk_color_selection_dialog_get_type -GTK_COLOR_SELECTION_DIALOG_CLASS -
- -
-gtkcombo -GtkCombo -GtkCombo -gtk_combo_new -gtk_combo_set_popdown_strings -gtk_combo_set_value_in_list -gtk_combo_set_use_arrows -gtk_combo_set_use_arrows_always -gtk_combo_set_case_sensitive -gtk_combo_set_item_string -gtk_combo_disable_activate - -GTK_COMBO -GTK_IS_COMBO -gtk_combo_get_type -GTK_COMBO_CLASS -
- -
-gtkcontainer -GtkContainer -GTK_IS_RESIZE_CONTAINER -GtkContainer -gtk_container_border_width -gtk_container_add -gtk_container_remove -gtk_container_set_resize_mode -gtk_container_check_resize -gtk_container_foreach -gtk_container_foreach_full -gtk_container_children -gtk_container_focus -gtk_container_set_focus_child -gtk_container_set_focus_vadjustment -gtk_container_set_focus_hadjustment -gtk_container_register_toplevel -gtk_container_unregister_toplevel -gtk_container_resize_children -gtk_container_child_type -gtk_container_add_child_arg_type -gtk_container_query_child_args -gtk_container_child_getv -gtk_container_child_setv -gtk_container_add_with_args -gtk_container_addv -gtk_container_child_set -gtk_container_queue_resize -gtk_container_clear_resize_widgets -gtk_container_arg_set -gtk_container_arg_get -gtk_container_child_args_collect -gtk_container_child_arg_get_info -gtk_container_forall -gtk_container_child_composite_name -gtk_container_get_toplevels -gtk_container_set_border_width - -GTK_CONTAINER -GTK_IS_CONTAINER -GTK_TYPE_CONTAINER -gtk_container_get_type -GTK_CONTAINER_CLASS -GTK_IS_CONTAINER_CLASS -
- -
-gtkctree -GtkCTree -GTK_CTREE_ROW -GTK_CTREE_NODE -GTK_CTREE_NODE_NEXT -GTK_CTREE_NODE_PREV -GTK_CTREE_FUNC -GtkCTreePos -GtkCTreeLineStyle -GtkCTreeExpanderStyle -GtkCTreeExpansionType -GtkCTreeFunc -GtkCTreeGNodeFunc -GtkCTreeCompareDragFunc -GtkCTree -GtkCTreeRow -GtkCTreeNode -gtk_ctree_construct -gtk_ctree_new_with_titles -gtk_ctree_new -gtk_ctree_insert_node -gtk_ctree_remove_node -gtk_ctree_insert_gnode -gtk_ctree_export_to_gnode -gtk_ctree_post_recursive -gtk_ctree_post_recursive_to_depth -gtk_ctree_pre_recursive -gtk_ctree_pre_recursive_to_depth -gtk_ctree_is_viewable -gtk_ctree_last -gtk_ctree_find_node_ptr -gtk_ctree_find -gtk_ctree_is_ancestor -gtk_ctree_find_by_row_data -gtk_ctree_find_all_by_row_data -gtk_ctree_find_by_row_data_custom -gtk_ctree_find_all_by_row_data_custom -gtk_ctree_is_hot_spot -gtk_ctree_move -gtk_ctree_expand -gtk_ctree_expand_recursive -gtk_ctree_expand_to_depth -gtk_ctree_collapse -gtk_ctree_collapse_recursive -gtk_ctree_collapse_to_depth -gtk_ctree_toggle_expansion -gtk_ctree_toggle_expansion_recursive -gtk_ctree_select -gtk_ctree_select_recursive -gtk_ctree_unselect -gtk_ctree_unselect_recursive -gtk_ctree_real_select_recursive -gtk_ctree_node_set_text -gtk_ctree_node_set_pixmap -gtk_ctree_node_set_pixtext -gtk_ctree_set_node_info -gtk_ctree_node_set_shift -gtk_ctree_node_set_selectable -gtk_ctree_node_get_selectable -gtk_ctree_node_get_cell_type -gtk_ctree_node_get_text -gtk_ctree_node_get_pixmap -gtk_ctree_node_get_pixtext -gtk_ctree_get_node_info -gtk_ctree_node_set_row_style -gtk_ctree_node_get_row_style -gtk_ctree_node_set_cell_style -gtk_ctree_node_get_cell_style -gtk_ctree_node_set_foreground -gtk_ctree_node_set_background -gtk_ctree_node_set_row_data -gtk_ctree_node_set_row_data_full -gtk_ctree_node_get_row_data -gtk_ctree_node_moveto -gtk_ctree_node_is_visible -gtk_ctree_set_indent -gtk_ctree_set_spacing -gtk_ctree_set_reorderable -gtk_ctree_set_line_style -gtk_ctree_set_expander_style -gtk_ctree_set_drag_compare_func -gtk_ctree_sort_node -gtk_ctree_sort_recursive -gtk_ctree_node_nth -gtk_ctree_set_show_stub - -GTK_CTREE -GTK_IS_CTREE -GTK_TYPE_CTREE -gtk_ctree_get_type -GTK_CTREE_CLASS -GTK_IS_CTREE_CLASS -
- -
-GtkCurve -gtkcurve -GtkCurve -gtk_curve_new -gtk_curve_reset -gtk_curve_set_gamma -gtk_curve_set_range -gtk_curve_get_vector -gtk_curve_set_vector -gtk_curve_set_curve_type - -GTK_CURVE -GTK_IS_CURVE -GTK_TYPE_CURVE -gtk_curve_get_type -GTK_CURVE_CLASS -GTK_IS_CURVE_CLASS -
- -
-gtkdata -GtkData -GtkData - -GTK_DATA -GTK_IS_DATA -GTK_TYPE_DATA -gtk_data_get_type -GTK_DATA_CLASS -GTK_IS_DATA_CLASS -
- -
-gtkdialog -GtkDialog -GtkDialog -GtkDialogButton -gtk_dialog_new - -GTK_DIALOG -GTK_IS_DIALOG -GTK_TYPE_DIALOG -gtk_dialog_get_type -GTK_DIALOG_CLASS -GTK_IS_DIALOG_CLASS -
- -
-gtkdrawingarea -GtkDrawingArea -GtkDrawingArea -gtk_drawing_area_new -gtk_drawing_area_size - -GTK_DRAWING_AREA -GTK_IS_DRAWING_AREA -gtk_drawing_area_get_type -GTK_DRAWING_AREA_CLASS -
- -
-gtkeditable -GtkEditable -GtkTextFunction -GtkEditable -gtk_editable_select_region -gtk_editable_insert_text -gtk_editable_delete_text -gtk_editable_get_chars -gtk_editable_cut_clipboard -gtk_editable_copy_clipboard -gtk_editable_paste_clipboard -gtk_editable_claim_selection -gtk_editable_delete_selection -gtk_editable_changed -gtk_editable_set_position -gtk_editable_get_position -gtk_editable_set_editable - -GTK_EDITABLE -GTK_IS_EDITABLE -GTK_TYPE_EDITABLE -gtk_editable_get_type -GTK_EDITABLE_CLASS -GTK_IS_EDITABLE_CLASS -
- -
-gtkentry -GtkEntry -GtkEntry -gtk_entry_new -gtk_entry_new_with_max_length -gtk_entry_set_text -gtk_entry_append_text -gtk_entry_prepend_text -gtk_entry_set_position -gtk_entry_get_text -gtk_entry_select_region -gtk_entry_set_visibility -gtk_entry_set_editable -gtk_entry_set_max_length - -GTK_ENTRY -GTK_IS_ENTRY -GTK_TYPE_ENTRY -gtk_entry_get_type -GTK_ENTRY_CLASS -GTK_IS_ENTRY_CLASS -
- -
-gtkeventbox -GtkEventBox -GtkEventBox -gtk_event_box_new - -GTK_EVENT_BOX -GTK_IS_EVENT_BOX -GTK_TYPE_EVENT_BOX -gtk_event_box_get_type -GTK_EVENT_BOX_CLASS -GTK_IS_EVENT_BOX_CLASS -
- -
-gtkfilesel -GtkFileSelection -GtkFileSelection -gtk_file_selection_new -gtk_file_selection_set_filename -gtk_file_selection_get_filename -gtk_file_selection_complete -gtk_file_selection_show_fileop_buttons -gtk_file_selection_hide_fileop_buttons - -GTK_FILE_SELECTION -GTK_IS_FILE_SELECTION -GTK_TYPE_FILE_SELECTION -gtk_file_selection_get_type -GTK_FILE_SELECTION_CLASS -GTK_IS_FILE_SELECTION_CLASS -
- -
-gtkfixed -GtkFixed -GtkFixed -GtkFixedChild -gtk_fixed_new -gtk_fixed_put -gtk_fixed_move - -GTK_FIXED -GTK_IS_FIXED -GTK_TYPE_FIXED -gtk_fixed_get_type -GTK_FIXED_CLASS -GTK_IS_FIXED_CLASS -
- -
-gtkfontsel -GtkFontSelection -GtkFontSelection -gtk_font_selection_new -gtk_font_selection_get_font -gtk_font_selection_get_font_name -gtk_font_selection_set_font_name -gtk_font_selection_get_preview_text -gtk_font_selection_set_preview_text -gtk_font_selection_set_filter - - -GTK_FONT_SELECTION -GTK_IS_FONT_SELECTION -GTK_TYPE_FONT_SELECTION -gtk_font_selection_get_type -GTK_FONT_SELECTION_CLASS -GTK_IS_FONT_SELECTION_CLASS - -GTK_NUM_FONT_PROPERTIES -GTK_NUM_STYLE_PROPERTIES -GTK_NUM_FONT_FILTERS -GtkFontMetricType -GtkFontFilter -
- -
-gtkfontseldlg -GtkFontSelectionDialog -GtkFontSelectionDialog -gtk_font_selection_dialog_new -gtk_font_selection_dialog_get_font -gtk_font_selection_dialog_get_font_name -gtk_font_selection_dialog_set_font_name -gtk_font_selection_dialog_get_preview_text -gtk_font_selection_dialog_set_preview_text -gtk_font_selection_dialog_set_filter -GtkFontType -GtkFontFilterType - - -GTK_FONT_SELECTION_DIALOG -GTK_IS_FONT_SELECTION_DIALOG -GTK_TYPE_FONT_SELECTION_DIALOG -gtk_font_selection_dialog_get_type -GTK_FONT_SELECTION_DIALOG_CLASS -GTK_IS_FONT_SELECTION_DIALOG_CLASS -
- -
-gtkframe -GtkFrame -GtkFrame -gtk_frame_new -gtk_frame_set_label -gtk_frame_set_label_align -gtk_frame_set_shadow_type - -GTK_FRAME -GTK_IS_FRAME -GTK_TYPE_FRAME -gtk_frame_get_type -GTK_FRAME_CLASS -GTK_IS_FRAME_CLASS -
- -
-gtkgamma -GtkGammaCurve -GtkGammaCurve -gtk_gamma_curve_new - -GTK_GAMMA_CURVE -GTK_IS_GAMMA_CURVE -gtk_gamma_curve_get_type -GTK_GAMMA_CURVE_CLASS -
- -
-gtkhandlebox -GtkHandleBox -GtkHandleBox -gtk_handle_box_new -gtk_handle_box_set_shadow_type -gtk_handle_box_set_handle_position -gtk_handle_box_set_snap_edge - -GTK_HANDLE_BOX -GTK_IS_HANDLE_BOX -gtk_handle_box_get_type -GTK_HANDLE_BOX_CLASS -
- -
-gtkhbbox -GtkHButtonBox -GtkHButtonBox -gtk_hbutton_box_new -gtk_hbutton_box_get_spacing_default -gtk_hbutton_box_get_layout_default -gtk_hbutton_box_set_spacing_default -gtk_hbutton_box_set_layout_default - -GTK_HBUTTON_BOX -GTK_IS_HBUTTON_BOX -gtk_hbutton_box_get_type -GTK_HBUTTON_BOX_CLASS -
- -
-gtkhbox -GtkHBox -GtkHBox -gtk_hbox_new - -GTK_HBOX -GTK_IS_HBOX -GTK_TYPE_HBOX -gtk_hbox_get_type -GTK_HBOX_CLASS -GTK_IS_HBOX_CLASS -
- -
-gtkhpaned -GtkHPaned -GtkHPaned -gtk_hpaned_new - -GTK_HPANED -GTK_IS_HPANED -gtk_hpaned_get_type -GTK_HPANED_CLASS -
- -
-gtkhruler -GtkHRuler -GtkHRuler -gtk_hruler_new - -GTK_HRULER -GTK_IS_HRULER -gtk_hruler_get_type -GTK_HRULER_CLASS -
- -
-gtkhscale -GtkHScale -GtkHScale -gtk_hscale_new - -GTK_HSCALE -GTK_TYPE_HSCALE -GTK_IS_HSCALE -GTK_IS_HSCALE_CLASS -gtk_hscale_get_type -GTK_HSCALE_CLASS -
- -
-gtkhscrollbar -GtkHScrollbar -GtkHScrollbar -gtk_hscrollbar_new - -GTK_HSCROLLBAR -GTK_TYPE_HSCROLLBAR -GTK_IS_HSCROLLBAR -GTK_IS_HSCROLLBAR_CLASS -gtk_hscrollbar_get_type -GTK_HSCROLLBAR_CLASS -
- -
-gtkhseparator -GtkHSeparator -GtkHSeparator -gtk_hseparator_new - -GTK_HSEPARATOR -GTK_IS_HSEPARATOR -GTK_TYPE_HSEPARATOR -gtk_hseparator_get_type -GTK_HSEPARATOR_CLASS -GTK_IS_HSEPARATOR_CLASS -
- -
-gtkimage -GtkImage -GtkImage -gtk_image_new -gtk_image_set -gtk_image_get - -GTK_IMAGE -GTK_TYPE_IMAGE -GTK_IS_IMAGE -GTK_IS_IMAGE_CLASS -gtk_image_get_type -GTK_IMAGE_CLASS -
- -
-gtkinputdialog -GtkInputDialog -GtkInputDialog -gtk_input_dialog_new - -GTK_INPUT_DIALOG -GTK_TYPE_INPUT_DIALOG -GTK_IS_INPUT_DIALOG -GTK_IS_INPUT_DIALOG_CLASS -gtk_input_dialog_get_type -GTK_INPUT_DIALOG_CLASS -
- -
-gtkinvisible -GtkInvisible -GtkInvisible -gtk_invisible_new - -GTK_INVISIBLE -GTK_IS_INVISIBLE -GTK_TYPE_INVISIBLE -gtk_invisible_get_type -GTK_INVISIBLE_CLASS -GTK_IS_INVISIBLE_CLASS -
- -
-gtkitem -GtkItem -GtkItem -gtk_item_select -gtk_item_deselect -gtk_item_toggle - -GTK_ITEM -GTK_IS_ITEM -GTK_TYPE_ITEM -gtk_item_get_type -GTK_ITEM_CLASS -GTK_IS_ITEM_CLASS -
- -
-gtkitemfactory -GtkItemFactory -GtkPrintFunc -GtkTranslateFunc -GtkItemFactoryCallback -GtkItemFactoryCallback1 -GtkItemFactoryCallback2 -GtkItemFactory -GtkItemFactoryEntry -GtkItemFactoryItem -gtk_item_factory_new -gtk_item_factory_construct -gtk_item_factory_parse_rc -gtk_item_factory_parse_rc_string -gtk_item_factory_parse_rc_scanner -gtk_item_factory_from_widget -gtk_item_factory_path_from_widget -gtk_item_factory_get_widget -gtk_item_factory_get_widget_by_action -gtk_item_factory_dump_items -gtk_item_factory_dump_rc -gtk_item_factory_print_func -gtk_item_factory_create_item -gtk_item_factory_create_items -gtk_item_factory_create_items_ac -gtk_item_factory_delete_item -gtk_item_factory_delete_entry -gtk_item_factory_delete_entries -gtk_item_factory_popup -gtk_item_factory_popup_with_data -gtk_item_factory_popup_data -gtk_item_factory_popup_data_from_widget -gtk_item_factory_from_path -gtk_item_factory_create_menu_entries -gtk_item_factories_path_delete -gtk_item_factory_set_translate_func - -GTK_ITEM_FACTORY -GTK_IS_ITEM_FACTORY -GTK_TYPE_ITEM_FACTORY -gtk_item_factory_get_type -GTK_ITEM_FACTORY_CLASS -GTK_IS_ITEM_FACTORY_CLASS -
- -
-gtklabel -GtkLabel -GtkLabel -GtkLabelWord -gtk_label_new -gtk_label_set -gtk_label_set_pattern -gtk_label_set_justify -gtk_label_get -gtk_label_parse_uline -gtk_label_set_line_wrap -gtk_label_set_text - -GTK_LABEL -GTK_IS_LABEL -GTK_TYPE_LABEL -gtk_label_get_type -GTK_LABEL_CLASS -GTK_IS_LABEL_CLASS -
- -
-gtklayout -GtkLayout -GtkLayout -gtk_layout_new -gtk_layout_put -gtk_layout_move -gtk_layout_set_size -gtk_layout_freeze -gtk_layout_thaw -gtk_layout_get_hadjustment -gtk_layout_get_vadjustment -gtk_layout_set_hadjustment -gtk_layout_set_vadjustment - -GTK_LAYOUT -GTK_IS_LAYOUT -GTK_TYPE_LAYOUT -gtk_layout_get_type -GTK_LAYOUT_CLASS -GTK_IS_LAYOUT_CLASS -
- -
-gtklist -GtkList -GtkList -gtk_list_new -gtk_list_insert_items -gtk_list_append_items -gtk_list_prepend_items -gtk_list_remove_items -gtk_list_remove_items_no_unref -gtk_list_clear_items -gtk_list_select_item -gtk_list_unselect_item -gtk_list_select_child -gtk_list_unselect_child -gtk_list_child_position -gtk_list_set_selection_mode -gtk_list_extend_selection -gtk_list_start_selection -gtk_list_end_selection -gtk_list_select_all -gtk_list_unselect_all -gtk_list_scroll_horizontal -gtk_list_scroll_vertical -gtk_list_toggle_add_mode -gtk_list_toggle_focus_row -gtk_list_toggle_row -gtk_list_undo_selection -gtk_list_end_drag_selection - -GTK_LIST -GTK_IS_LIST -GTK_TYPE_LIST -gtk_list_get_type -GTK_LIST_CLASS -GTK_IS_LIST_CLASS -
- -
-gtklistitem -GtkListItem -GtkListItem -gtk_list_item_new -gtk_list_item_new_with_label -gtk_list_item_select -gtk_list_item_deselect - -GTK_LIST_ITEM -GTK_IS_LIST_ITEM -GTK_TYPE_LIST_ITEM -gtk_list_item_get_type -GTK_LIST_ITEM_CLASS -GTK_IS_LIST_ITEM_CLASS -
- -
-gtkmenu -GtkMenu -GtkMenu -gtk_menu_new -gtk_menu_append -gtk_menu_prepend -gtk_menu_insert -gtk_menu_reorder_child -gtk_menu_popup -gtk_menu_set_accel_group -gtk_menu_set_title - -gtk_menu_popdown -gtk_menu_reposition -gtk_menu_get_active -gtk_menu_set_active -gtk_menu_set_tearoff_state -gtk_menu_attach_to_widget -gtk_menu_detach -gtk_menu_get_attach_widget -GtkMenuPositionFunc -GtkMenuDetachFunc - -GTK_MENU -GTK_IS_MENU -GTK_TYPE_MENU -gtk_menu_get_type -GTK_MENU_CLASS -GTK_IS_MENU_CLASS -
- -
-gtkmenubar -GtkMenuBar -GtkMenuBar -gtk_menu_bar_new -gtk_menu_bar_append -gtk_menu_bar_prepend -gtk_menu_bar_insert -gtk_menu_bar_set_shadow_type - -GTK_MENU_BAR -GTK_IS_MENU_BAR -GTK_TYPE_MENU_BAR -gtk_menu_bar_get_type -GTK_MENU_BAR_CLASS -GTK_IS_MENU_BAR_CLASS -
- -
-gtkmenuitem -GtkMenuItem -GtkMenuItem -gtk_menu_item_new -gtk_menu_item_new_with_label -gtk_menu_item_set_submenu -gtk_menu_item_remove_submenu -gtk_menu_item_set_placement -gtk_menu_item_configure -gtk_menu_item_select -gtk_menu_item_deselect -gtk_menu_item_activate -gtk_menu_item_right_justify - -GTK_MENU_ITEM -GTK_IS_MENU_ITEM -GTK_TYPE_MENU_ITEM -gtk_menu_item_get_type -GTK_MENU_ITEM_CLASS -GTK_IS_MENU_ITEM_CLASS -
- -
-gtkmenushell -GtkMenuShell -GtkMenuShell -gtk_menu_shell_append -gtk_menu_shell_prepend -gtk_menu_shell_insert -gtk_menu_shell_deactivate -gtk_menu_shell_select_item -gtk_menu_shell_activate_item -GtkMenuDirectionType - -GTK_MENU_SHELL -GTK_IS_MENU_SHELL -GTK_TYPE_MENU_SHELL -gtk_menu_shell_get_type -GTK_MENU_SHELL_CLASS -GTK_IS_MENU_SHELL_CLASS -
- -
-gtkmisc -GtkMisc -GtkMisc -gtk_misc_set_alignment -gtk_misc_set_padding - -GTK_MISC -GTK_IS_MISC -GTK_TYPE_MISC -gtk_misc_get_type -GTK_MISC_CLASS -GTK_IS_MISC_CLASS -
- -
-gtknotebook -GtkNotebook -GtkNotebook -GTK_NOTEBOOK_PAGE -GtkNotebookPage -gtk_notebook_new -gtk_notebook_append_page -gtk_notebook_append_page_menu -gtk_notebook_prepend_page -gtk_notebook_prepend_page_menu -gtk_notebook_insert_page -gtk_notebook_insert_page_menu -gtk_notebook_remove_page -gtk_notebook_current_page -gtk_notebook_page_num -gtk_notebook_set_page -gtk_notebook_next_page -gtk_notebook_prev_page -gtk_notebook_reorder_child -gtk_notebook_set_tab_pos -gtk_notebook_set_show_tabs -gtk_notebook_set_show_border -gtk_notebook_set_scrollable -gtk_notebook_set_tab_border -gtk_notebook_popup_enable -gtk_notebook_popup_disable -gtk_notebook_get_current_page -gtk_notebook_get_menu_label -gtk_notebook_get_nth_page -gtk_notebook_get_tab_label -gtk_notebook_query_tab_label_packing -gtk_notebook_set_homogeneous_tabs -gtk_notebook_set_menu_label -gtk_notebook_set_menu_label_text -gtk_notebook_set_tab_hborder -gtk_notebook_set_tab_label -gtk_notebook_set_tab_label_packing -gtk_notebook_set_tab_label_text -gtk_notebook_set_tab_vborder - -GTK_NOTEBOOK -GTK_IS_NOTEBOOK -GTK_TYPE_NOTEBOOK -gtk_notebook_get_type -GTK_NOTEBOOK_CLASS -GTK_IS_NOTEBOOK_CLASS -
- -
-gtkobject -GtkObject -GTK_OBJECT_TYPE -GTK_OBJECT_SIGNALS -GTK_OBJECT_NSIGNALS -GtkObjectFlags -GTK_OBJECT_FLAGS -GTK_OBJECT_DESTROYED -GTK_OBJECT_FLOATING -GTK_OBJECT_CONNECTED -GTK_OBJECT_CONSTRUCTED -GTK_OBJECT_SET_FLAGS -GTK_OBJECT_UNSET_FLAGS -GtkArgFlags -GtkObject -gtk_object_class_user_signal_new -gtk_object_class_user_signal_newv -gtk_object_new -gtk_object_newv -gtk_object_constructed -gtk_object_default_construct -gtk_object_sink -gtk_object_ref -gtk_object_unref -gtk_object_weakref -gtk_object_weakunref -gtk_object_destroy -gtk_object_getv -gtk_object_set -gtk_object_setv -gtk_object_query_args -gtk_object_set_data -gtk_object_set_data_full -gtk_object_remove_data -gtk_object_get_data -gtk_object_remove_no_notify -gtk_object_set_user_data -gtk_object_get_user_data -gtk_object_class_add_signals -gtk_object_add_arg_type -gtk_object_set_data_by_id -gtk_object_set_data_by_id_full -gtk_object_get_data_by_id -gtk_object_remove_data_by_id -gtk_object_remove_no_notify_by_id -gtk_object_data_try_key -gtk_object_data_force_id -gtk_object_arg_set -gtk_object_arg_get -gtk_object_args_collect -gtk_object_arg_get_info -gtk_trace_referencing - -GTK_OBJECT -GTK_IS_OBJECT -gtk_object_get_type -GTK_OBJECT_CLASS -GTK_IS_OBJECT_CLASS -
- -
-gtkoptionmenu -GtkOptionMenu -GtkOptionMenu -gtk_option_menu_new -gtk_option_menu_get_menu -gtk_option_menu_set_menu -gtk_option_menu_remove_menu -gtk_option_menu_set_history - -GTK_OPTION_MENU -GTK_IS_OPTION_MENU -GTK_TYPE_OPTION_MENU -gtk_option_menu_get_type -GTK_OPTION_MENU_CLASS -GTK_IS_OPTION_MENU_CLASS -
- -
-gtkpacker -GtkPacker -GtkPackerOptions -GtkSideType -GtkAnchorType -GtkPackerChild -GtkPacker -gtk_packer_new -gtk_packer_add_defaults -gtk_packer_add -gtk_packer_configure -gtk_packer_reorder_child -gtk_packer_set_spacing -gtk_packer_set_default_border_width -gtk_packer_set_default_pad -gtk_packer_set_default_ipad -gtk_packer_set_child_packing - -GTK_PACKER -GTK_IS_PACKER -GTK_TYPE_PACKER -gtk_packer_get_type -GTK_PACKER_CLASS -GTK_IS_PACKER_CLASS -
- -
-gtkpaned -GtkPaned -GtkPaned -gtk_paned_add1 -gtk_paned_add2 -gtk_paned_handle_size -gtk_paned_gutter_size -gtk_paned_compute_position -gtk_paned_pack1 -gtk_paned_pack2 -gtk_paned_set_gutter_size -gtk_paned_set_handle_size -gtk_paned_set_position - -GTK_PANED -GTK_IS_PANED -GTK_TYPE_PANED -gtk_paned_get_type -GTK_PANED_CLASS -GTK_IS_PANED_CLASS -
- -
-gtkpixmap -GtkPixmap -GtkPixmap -gtk_pixmap_new -gtk_pixmap_set -gtk_pixmap_get -gtk_pixmap_set_build_insensitive - -GTK_PIXMAP -GTK_IS_PIXMAP -GTK_TYPE_PIXMAP -gtk_pixmap_get_type -GTK_PIXMAP_CLASS -GTK_IS_PIXMAP_CLASS -
- -
-gtkplug -GtkPlug -GtkPlug -gtk_plug_construct -gtk_plug_new - -GTK_PLUG -GTK_IS_PLUG -gtk_plug_get_type -GTK_PLUG_CLASS -
- -
-gtkpreview -GtkPreview -GtkPreviewInfo -GtkDitherInfo -GtkPreview -gtk_preview_uninit -gtk_preview_new -gtk_preview_size -gtk_preview_put -gtk_preview_draw_row -gtk_preview_set_expand -gtk_preview_set_gamma -gtk_preview_set_color_cube -gtk_preview_set_install_cmap -gtk_preview_set_reserved -gtk_preview_set_dither -gtk_preview_get_visual -gtk_preview_get_cmap -gtk_preview_get_info -gtk_preview_reset - -GTK_PREVIEW -GTK_IS_PREVIEW -gtk_preview_get_type -GTK_PREVIEW_CLASS -
- -
-gtkprogress -GtkProgress -GtkProgress -gtk_progress_set_show_text -gtk_progress_set_text_alignment -gtk_progress_set_format_string -gtk_progress_set_adjustment -gtk_progress_set_percentage -gtk_progress_set_value -gtk_progress_get_value -gtk_progress_set_activity_mode -gtk_progress_get_current_text -gtk_progress_get_text_from_value -gtk_progress_get_current_percentage -gtk_progress_get_percentage_from_value -gtk_progress_configure - -GTK_PROGRESS -GTK_TYPE_PROGRESS -GTK_IS_PROGRESS -gtk_progress_get_type -GTK_PROGRESS_CLASS -GTK_IS_PROGRESS_CLASS -
- -
-gtkprogressbar -GtkProgressBar -GtkProgressBarStyle -GtkProgressBarOrientation -GtkProgressBar -gtk_progress_bar_new -gtk_progress_bar_new_with_adjustment -gtk_progress_bar_set_bar_style -gtk_progress_bar_set_discrete_blocks -gtk_progress_bar_set_activity_step -gtk_progress_bar_set_activity_blocks -gtk_progress_bar_set_orientation -gtk_progress_bar_update - -GTK_PROGRESS_BAR -GTK_TYPE_PROGRESS_BAR -GTK_IS_PROGRESS_BAR -GTK_IS_PROGRESS_BAR_CLASS -gtk_progress_bar_get_type -GTK_PROGRESS_BAR_CLASS -
- -
-gtkradiobutton -GtkRadioButton -GtkRadioButton -gtk_radio_button_new -gtk_radio_button_new_from_widget -gtk_radio_button_new_with_label -gtk_radio_button_new_with_label_from_widget -gtk_radio_button_group -gtk_radio_button_set_group - -GTK_RADIO_BUTTON -GTK_IS_RADIO_BUTTON -GTK_TYPE_RADIO_BUTTON -gtk_radio_button_get_type -GTK_RADIO_BUTTON_CLASS -GTK_IS_RADIO_BUTTON_CLASS -
- -
-gtkradiomenuitem -GtkRadioMenuItem -GtkRadioMenuItem -gtk_radio_menu_item_new -gtk_radio_menu_item_new_with_label -gtk_radio_menu_item_group -gtk_radio_menu_item_set_group - -GTK_RADIO_MENU_ITEM -GTK_IS_RADIO_MENU_ITEM -GTK_TYPE_RADIO_MENU_ITEM -gtk_radio_menu_item_get_type -GTK_RADIO_MENU_ITEM_CLASS -GTK_IS_RADIO_MENU_ITEM_CLASS -
- -
-gtkrange -GtkRange -GtkRange -gtk_range_get_adjustment -gtk_range_set_update_policy -gtk_range_set_adjustment -gtk_range_draw_background -gtk_range_draw_trough -gtk_range_draw_slider -gtk_range_draw_step_forw -gtk_range_draw_step_back -gtk_range_slider_update -gtk_range_trough_click -gtk_range_default_hslider_update -gtk_range_default_vslider_update -gtk_range_default_htrough_click -gtk_range_default_vtrough_click -gtk_range_default_hmotion -gtk_range_default_vmotion -gtk_range_clear_background - -GTK_RANGE -GTK_TYPE_RANGE -GTK_IS_RANGE -gtk_range_get_type -GTK_RANGE_CLASS -GTK_IS_RANGE_CLASS -
- -
-gtkruler -GtkRuler -GtkRuler -GtkRulerMetric -gtk_ruler_set_metric -gtk_ruler_set_range - -GTK_RULER -GTK_IS_RULER -gtk_ruler_get_type -GTK_RULER_CLASS - -gtk_ruler_draw_ticks -gtk_ruler_draw_pos -
- -
-gtkscale -GtkScale -GtkScale -gtk_scale_set_digits -gtk_scale_set_draw_value -gtk_scale_set_value_pos -gtk_scale_get_value_width - -GTK_SCALE -GTK_TYPE_SCALE -GTK_IS_SCALE -gtk_scale_get_type -GTK_SCALE_CLASS -GTK_IS_SCALE_CLASS - -gtk_scale_value_width -gtk_scale_draw_value -
- -
-gtkscrollbar -GtkScrollbar -GtkScrollbar - -GTK_SCROLLBAR -GTK_TYPE_SCROLLBAR -GTK_IS_SCROLLBAR -gtk_scrollbar_get_type -GTK_SCROLLBAR_CLASS -GTK_IS_SCROLLBAR_CLASS -
- -
-gtkscrolledwindow -GtkScrolledWindow -GtkScrolledWindow -gtk_scrolled_window_new -gtk_scrolled_window_get_hadjustment -gtk_scrolled_window_get_vadjustment -gtk_scrolled_window_set_policy -gtk_scrolled_window_add_with_viewport -gtk_scrolled_window_set_hadjustment -gtk_scrolled_window_set_placement -gtk_scrolled_window_set_vadjustment - -GTK_SCROLLED_WINDOW -GTK_IS_SCROLLED_WINDOW -GTK_TYPE_SCROLLED_WINDOW -gtk_scrolled_window_get_type -GTK_SCROLLED_WINDOW_CLASS -GTK_IS_SCROLLED_WINDOW_CLASS -
- -
-gtkseparator -GtkSeparator -GtkSeparator - -GTK_SEPARATOR -GTK_IS_SEPARATOR -GTK_TYPE_SEPARATOR -gtk_separator_get_type -GTK_SEPARATOR_CLASS -GTK_IS_SEPARATOR_CLASS -
- -
-gtksocket -GtkSocket -GtkSocket -gtk_socket_new -gtk_socket_steal - -GTK_SOCKET -GTK_IS_SOCKET -gtk_socket_get_type -GTK_SOCKET_CLASS -
- -
-gtkspinbutton -GtkSpinButton -GtkSpinButtonUpdatePolicy -GtkSpinType -GtkSpinButton -gtk_spin_button_configure -gtk_spin_button_new -gtk_spin_button_set_adjustment -gtk_spin_button_get_adjustment -gtk_spin_button_set_digits -gtk_spin_button_get_value_as_float -gtk_spin_button_get_value_as_int -gtk_spin_button_set_value -gtk_spin_button_set_update_policy -gtk_spin_button_set_numeric -gtk_spin_button_spin -gtk_spin_button_set_wrap -gtk_spin_button_set_shadow_type -gtk_spin_button_set_snap_to_ticks -gtk_spin_button_update - -GTK_SPIN_BUTTON -GTK_IS_SPIN_BUTTON -GTK_TYPE_SPIN_BUTTON -gtk_spin_button_get_type -GTK_SPIN_BUTTON_CLASS -GTK_IS_SPIN_BUTTON_CLASS -
- -
-gtkstatusbar -GtkStatusbar -GtkStatusbar -GtkStatusbarMsg -gtk_statusbar_new -gtk_statusbar_get_context_id -gtk_statusbar_push -gtk_statusbar_pop -gtk_statusbar_remove - -GTK_STATUSBAR -GTK_IS_STATUSBAR -gtk_statusbar_get_type -GTK_STATUSBAR_CLASS -
- -
-gtktable -GtkTable -GtkTable -GtkTableChild -GtkTableRowCol -gtk_table_new -gtk_table_resize -gtk_table_attach -gtk_table_attach_defaults -gtk_table_set_row_spacing -gtk_table_set_col_spacing -gtk_table_set_row_spacings -gtk_table_set_col_spacings -gtk_table_set_homogeneous - -GTK_TABLE -GTK_IS_TABLE -GTK_TYPE_TABLE -gtk_table_get_type -GTK_TABLE_CLASS -GTK_IS_TABLE_CLASS -
- -
-gtktearoffmenuitem -GtkTearoffMenuItem -GtkTearoffMenuItem -gtk_tearoff_menu_item_new - -GTK_TEAROFF_MENU_ITEM -GTK_IS_TEAROFF_MENU_ITEM -GTK_TYPE_TEAROFF_MENU_ITEM -gtk_tearoff_menu_item_get_type -GTK_TEAROFF_MENU_ITEM_CLASS -GTK_IS_TEAROFF_MENU_ITEM_CLASS -
- -
-gtktext -GtkText -GtkTextFont -GtkPropertyMark -GtkText -gtk_text_new -gtk_text_set_editable -gtk_text_set_word_wrap -gtk_text_set_line_wrap -gtk_text_set_adjustments -gtk_text_set_point -gtk_text_get_point -gtk_text_get_length -gtk_text_freeze -gtk_text_thaw -gtk_text_insert -gtk_text_backward_delete -gtk_text_forward_delete -GTK_TEXT_INDEX - -GTK_TEXT -GTK_IS_TEXT -GTK_TYPE_TEXT -gtk_text_get_type -GTK_TEXT_CLASS -GTK_IS_TEXT_CLASS -
- -
-gtktipsquery -GtkTipsQuery -GtkTipsQuery -gtk_tips_query_new -gtk_tips_query_start_query -gtk_tips_query_stop_query -gtk_tips_query_set_caller -gtk_tips_query_set_labels - -GTK_TIPS_QUERY -GTK_IS_TIPS_QUERY -GTK_TYPE_TIPS_QUERY -gtk_tips_query_get_type -GTK_TIPS_QUERY_CLASS -GTK_IS_TIPS_QUERY_CLASS -
- -
-gtktogglebutton -GtkToggleButton -GtkToggleButton -gtk_toggle_button_new -gtk_toggle_button_new_with_label -gtk_toggle_button_set_mode -gtk_toggle_button_set_state -gtk_toggle_button_toggled -gtk_toggle_button_get_active -gtk_toggle_button_set_active - -GTK_TOGGLE_BUTTON -GTK_IS_TOGGLE_BUTTON -GTK_TYPE_TOGGLE_BUTTON -gtk_toggle_button_get_type -GTK_TOGGLE_BUTTON_CLASS -GTK_IS_TOGGLE_BUTTON_CLASS -
- -
-gtktoolbar -GtkToolbar -GtkToolbarChildType -GtkToolbarSpaceStyle -GtkToolbarChild -GtkToolbar -gtk_toolbar_new -gtk_toolbar_append_item -gtk_toolbar_prepend_item -gtk_toolbar_insert_item -gtk_toolbar_append_space -gtk_toolbar_prepend_space -gtk_toolbar_insert_space -gtk_toolbar_append_element -gtk_toolbar_prepend_element -gtk_toolbar_insert_element -gtk_toolbar_append_widget -gtk_toolbar_prepend_widget -gtk_toolbar_insert_widget -gtk_toolbar_set_orientation -gtk_toolbar_set_style -gtk_toolbar_set_space_size -gtk_toolbar_set_space_style -gtk_toolbar_set_tooltips -gtk_toolbar_set_button_relief -gtk_toolbar_get_button_relief - -GTK_TOOLBAR -GTK_IS_TOOLBAR -gtk_toolbar_get_type -GTK_TOOLBAR_CLASS -
- -
-gtktooltips -GtkTooltips -GtkTooltipsData -GtkTooltips -gtk_tooltips_new -gtk_tooltips_enable -gtk_tooltips_disable -gtk_tooltips_set_delay -gtk_tooltips_set_tip -gtk_tooltips_set_colors -gtk_tooltips_data_get -gtk_tooltips_force_window - -GTK_TOOLTIPS -GTK_IS_TOOLTIPS -GTK_TYPE_TOOLTIPS -gtk_tooltips_get_type -GTK_TOOLTIPS_CLASS -GTK_IS_TOOLTIPS_CLASS -
- -
-gtktree -GtkTree -GTK_IS_ROOT_TREE -GTK_TREE_ROOT_TREE -GTK_TREE_SELECTION -GtkTreeViewMode -GtkTree -gtk_tree_new -gtk_tree_append -gtk_tree_prepend -gtk_tree_insert -gtk_tree_remove_items -gtk_tree_clear_items -gtk_tree_select_item -gtk_tree_unselect_item -gtk_tree_select_child -gtk_tree_unselect_child -gtk_tree_child_position -gtk_tree_set_selection_mode -gtk_tree_set_view_mode -gtk_tree_set_view_lines -gtk_tree_remove_item - -GTK_TREE -GTK_IS_TREE -GTK_TYPE_TREE -gtk_tree_get_type -GTK_TREE_CLASS -GTK_IS_TREE_CLASS -
- -
-gtktreeitem -GtkTreeItem -GTK_TREE_ITEM_SUBTREE -GtkTreeItem -gtk_tree_item_new -gtk_tree_item_new_with_label -gtk_tree_item_set_subtree -gtk_tree_item_remove_subtree -gtk_tree_item_select -gtk_tree_item_deselect -gtk_tree_item_expand -gtk_tree_item_collapse - -GTK_TREE_ITEM -GTK_IS_TREE_ITEM -GTK_TYPE_TREE_ITEM -gtk_tree_item_get_type -GTK_TREE_ITEM_CLASS -GTK_IS_TREE_ITEM_CLASS -
- -
-gtkvbbox -GtkVButtonBox -GtkVButtonBox -gtk_vbutton_box_new -gtk_vbutton_box_get_spacing_default -gtk_vbutton_box_set_spacing_default -gtk_vbutton_box_get_layout_default -gtk_vbutton_box_set_layout_default - -GTK_VBUTTON_BOX -GTK_IS_VBUTTON_BOX -gtk_vbutton_box_get_type -GTK_VBUTTON_BOX_CLASS -
- -
-gtkvbox -GtkVBox -GtkVBox -gtk_vbox_new - -GTK_VBOX -GTK_IS_VBOX -GTK_TYPE_VBOX -gtk_vbox_get_type -GTK_VBOX_CLASS -GTK_IS_VBOX_CLASS -
- -
-gtkviewport -GtkViewport -GtkViewport -gtk_viewport_new -gtk_viewport_get_hadjustment -gtk_viewport_get_vadjustment -gtk_viewport_set_hadjustment -gtk_viewport_set_vadjustment -gtk_viewport_set_shadow_type - -GTK_VIEWPORT -GTK_IS_VIEWPORT -GTK_TYPE_VIEWPORT -gtk_viewport_get_type -GTK_VIEWPORT_CLASS -GTK_IS_VIEWPORT_CLASS -
- -
-gtkvpaned -GtkVPaned -GtkVPaned -gtk_vpaned_new - -GTK_VPANED -GTK_IS_VPANED -gtk_vpaned_get_type -GTK_VPANED_CLASS -
- -
-gtkvruler -GtkVRuler -GtkVRuler -gtk_vruler_new - -GTK_VRULER -GTK_IS_VRULER -gtk_vruler_get_type -GTK_VRULER_CLASS -
- -
-gtkvscale -GtkVScale -GtkVScale -gtk_vscale_new - -GTK_VSCALE -GTK_TYPE_VSCALE -GTK_IS_VSCALE -gtk_vscale_get_type -GTK_VSCALE_CLASS -GTK_IS_VSCALE_CLASS -
- -
-gtkvscrollbar -GtkVScrollbar -GtkVScrollbar -gtk_vscrollbar_new - -GTK_VSCROLLBAR -GTK_TYPE_VSCROLLBAR -GTK_IS_VSCROLLBAR -gtk_vscrollbar_get_type -GTK_VSCROLLBAR_CLASS -GTK_IS_VSCROLLBAR_CLASS -
- -
-gtkvseparator -GtkVSeparator -GtkVSeparator -gtk_vseparator_new - -GTK_VSEPARATOR -GTK_IS_VSEPARATOR -GTK_TYPE_VSEPARATOR -gtk_vseparator_get_type -GTK_VSEPARATOR_CLASS -GTK_IS_VSEPARATOR_CLASS -
- -
-gtkwidget -GtkWidget -GtkWidgetFlags -GTK_WIDGET_TYPE -GTK_WIDGET_STATE -GTK_WIDGET_SAVED_STATE -GTK_WIDGET_FLAGS -GTK_WIDGET_TOPLEVEL -GTK_WIDGET_NO_WINDOW -GTK_WIDGET_REALIZED -GTK_WIDGET_MAPPED -GTK_WIDGET_VISIBLE -GTK_WIDGET_DRAWABLE -GTK_WIDGET_SENSITIVE -GTK_WIDGET_PARENT_SENSITIVE -GTK_WIDGET_IS_SENSITIVE -GTK_WIDGET_CAN_FOCUS -GTK_WIDGET_HAS_FOCUS -GTK_WIDGET_CAN_DEFAULT -GTK_WIDGET_RECEIVES_DEFAULT -GTK_WIDGET_HAS_DEFAULT -GTK_WIDGET_HAS_GRAB -GTK_WIDGET_RC_STYLE -GTK_WIDGET_COMPOSITE_CHILD -GTK_WIDGET_APP_PAINTABLE -GTK_WIDGET_SET_FLAGS -GTK_WIDGET_UNSET_FLAGS -GtkCallback -GtkRequisition -GtkAllocation -GtkSelectionData -GtkWidget -GtkWidgetAuxInfo -GtkWidgetShapeInfo -gtk_widget_new -gtk_widget_newv -gtk_widget_ref -gtk_widget_unref -gtk_widget_destroy -gtk_widget_destroyed -gtk_widget_get -gtk_widget_getv -gtk_widget_set -gtk_widget_setv -gtk_widget_unparent -gtk_widget_show -gtk_widget_show_now -gtk_widget_hide -gtk_widget_show_all -gtk_widget_hide_all -gtk_widget_map -gtk_widget_unmap -gtk_widget_realize -gtk_widget_unrealize -gtk_widget_queue_draw -gtk_widget_queue_resize -gtk_widget_draw -gtk_widget_draw_focus -gtk_widget_draw_default -gtk_widget_size_request -gtk_widget_get_child_requisition -gtk_widget_size_allocate -gtk_widget_add_accelerator -gtk_widget_remove_accelerator -gtk_widget_remove_accelerators -gtk_widget_accelerator_signal -gtk_widget_event -gtk_widget_activate -gtk_widget_reparent -gtk_widget_popup -gtk_widget_intersect -gtk_widget_grab_focus -gtk_widget_grab_default -gtk_widget_set_name -gtk_widget_get_name -gtk_widget_set_state -gtk_widget_set_sensitive -gtk_widget_set_parent -gtk_widget_set_parent_window -gtk_widget_get_parent_window -gtk_widget_set_uposition -gtk_widget_set_usize -gtk_widget_set_events -gtk_widget_add_events -gtk_widget_set_extension_events -gtk_widget_get_extension_events -gtk_widget_get_toplevel -gtk_widget_get_ancestor -gtk_widget_get_colormap -gtk_widget_set_colormap -gtk_widget_get_visual -gtk_widget_set_visual -gtk_widget_get_events -gtk_widget_get_pointer -gtk_widget_is_ancestor -gtk_widget_hide_on_delete -gtk_widget_set_style -gtk_widget_set_rc_style -gtk_widget_ensure_style -gtk_widget_get_style -gtk_widget_restore_default_style -gtk_widget_reset_rc_styles -gtk_widget_push_style -gtk_widget_push_colormap -gtk_widget_push_visual -gtk_widget_pop_style -gtk_widget_pop_colormap -gtk_widget_pop_visual -gtk_widget_set_default_style -gtk_widget_set_default_colormap -gtk_widget_set_default_visual -gtk_widget_get_default_style -gtk_widget_get_default_colormap -gtk_widget_get_default_visual -gtk_widget_shape_combine_mask -gtk_widget_path -gtk_widget_class_path -gtk_widget_get_composite_name -gtk_widget_lock_accelerators -gtk_widget_modify_style -gtk_widget_pop_composite_child -gtk_widget_push_composite_child -gtk_widget_queue_clear -gtk_widget_queue_clear_area -gtk_widget_queue_draw_area -gtk_widget_reset_shapes -gtk_widget_set_app_paintable -gtk_widget_set_composite_name -gtk_widget_set_scroll_adjustments -gtk_widget_unlock_accelerators - -GTK_WIDGET -GTK_IS_WIDGET -GTK_TYPE_WIDGET -gtk_widget_get_type -GTK_WIDGET_CLASS -GTK_IS_WIDGET_CLASS -
- -
-gtkwindow -GtkWindow -GtkWindow -gtk_window_new -gtk_window_set_title -gtk_window_set_wmclass -gtk_window_set_focus -gtk_window_set_default -gtk_window_set_policy -gtk_window_add_accel_group -gtk_window_remove_accel_group -gtk_window_position -gtk_window_activate_focus -gtk_window_activate_default -gtk_window_set_modal -gtk_window_add_embedded_xid -gtk_window_remove_embedded_xid -gtk_window_set_default_size -gtk_window_set_geometry_hints -gtk_window_set_position -gtk_window_set_transient_for - -GTK_WINDOW -GTK_IS_WINDOW -GTK_TYPE_WINDOW -gtk_window_get_type -GTK_WINDOW_CLASS -GTK_IS_WINDOW_CLASS -
- - -
-gtkmain -General -gtk_set_locale -gtk_init -gtk_init_check -gtk_exit -gtk_events_pending -gtk_main -gtk_main_level -gtk_main_quit -gtk_main_iteration -gtk_main_iteration_do -gtk_main_do_event - -GtkModuleInitFunc - - -gtk_true -gtk_false - - -gtk_grab_add -gtk_grab_get_current -gtk_grab_remove - - -gtk_init_add -gtk_quit_add_destroy -gtk_quit_add -gtk_quit_add_full -gtk_quit_remove -gtk_quit_remove_by_data - - -gtk_timeout_add_full -gtk_timeout_add -gtk_timeout_remove - - -gtk_idle_add -gtk_idle_add_priority -gtk_idle_add_full -gtk_idle_remove -gtk_idle_remove_by_data - - -gtk_input_add_full -gtk_input_remove - - -GTK_PRIORITY_REDRAW -GTK_PRIORITY_RESIZE -GTK_PRIORITY_HIGH -GTK_PRIORITY_INTERNAL -GTK_PRIORITY_DEFAULT -GTK_PRIORITY_LOW - - -gtk_key_snooper_install -GtkKeySnoopFunc -gtk_key_snooper_remove - - -gtk_get_current_event -gtk_get_event_widget -gtk_propagate_event -
- - -
-gtkfeatures -Feature Test Macros -gtk_major_version -gtk_minor_version -gtk_micro_version -gtk_binary_age -gtk_interface_age -gtk_check_version - -GTK_MAJOR_VERSION -GTK_MINOR_VERSION -GTK_MICRO_VERSION -GTK_BINARY_AGE -GTK_INTERFACE_AGE -GTK_HAVE_CONTAINER_FOCUS_ADJUSTMENTS -GTK_HAVE_SIGNAL_INIT -GTK_HAVE_FEATURES_1_1_0 -GTK_HAVE_FEATURES_1_1_2 -GTK_HAVE_FEATURES_1_1_4 -GTK_HAVE_FEATURES_1_1_5 -GTK_HAVE_FEATURES_1_1_6 -GTK_HAVE_FEATURES_1_1_7 -GTK_HAVE_FEATURES_1_1_8 -GTK_HAVE_FEATURES_1_1_9 -GTK_HAVE_FEATURES_1_1_10 -GTK_HAVE_FEATURES_1_1_11 -GTK_HAVE_FEATURES_1_1_12 -GTK_HAVE_FEATURES_1_1_13 -GTK_HAVE_FEATURES_1_1_14 -
- - -
-gtkgc -Graphics Contexts -gtk_gc_get -gtk_gc_release -
- -
-gtkstyle -Styles -GTK_STYLE_NUM_STYLECOLORS -GTK_STYLE_ATTACHED -GtkStyle -GtkStyleClass -gtk_style_new -gtk_style_copy -gtk_style_attach -gtk_style_detach -gtk_style_ref -gtk_style_unref -gtk_style_set_background -gtk_style_apply_default_background -gtk_style_apply_default_pixmap -gtk_draw_hline -gtk_draw_vline -gtk_draw_shadow -gtk_draw_polygon -gtk_draw_arrow -gtk_draw_diamond -gtk_draw_oval -gtk_draw_string -gtk_draw_box -gtk_draw_box_gap -gtk_draw_check -gtk_draw_cross -gtk_draw_extension -gtk_draw_flat_box -gtk_draw_focus -gtk_draw_handle -gtk_draw_option -gtk_draw_ramp -gtk_draw_shadow_gap -gtk_draw_slider -gtk_draw_tab -gtk_paint_arrow -gtk_paint_box -gtk_paint_box_gap -gtk_paint_check -gtk_paint_cross -gtk_paint_diamond -gtk_paint_extension -gtk_paint_flat_box -gtk_paint_focus -gtk_paint_handle -gtk_paint_hline -gtk_paint_option -gtk_paint_oval -gtk_paint_polygon -gtk_paint_ramp -gtk_paint_shadow -gtk_paint_shadow_gap -gtk_paint_slider -gtk_paint_string -gtk_paint_tab -gtk_paint_vline -
- -
-gtkthemes -Themes -GtkThemeEngine -gtk_theme_engine_get -gtk_theme_engine_ref -gtk_theme_engine_unref -gtk_themes_init -gtk_themes_exit -
- -
-gtkrc -Resource Files -GtkRcStyle -GtkRcFlags -GtkImageLoader -GtkRcTokenType -gtk_rc_get_style -gtk_rc_add_widget_name_style -gtk_rc_add_widget_class_style -gtk_rc_add_class_style -gtk_rc_parse -gtk_rc_parse_string -gtk_rc_reparse_all -gtk_rc_add_default_file -gtk_rc_get_default_files -gtk_rc_set_default_files -gtk_rc_parse_color -gtk_rc_parse_state -gtk_rc_parse_priority -gtk_rc_find_module_in_path -gtk_rc_find_pixmap_in_path -gtk_rc_get_module_dir -gtk_rc_get_theme_dir -gtk_rc_set_image_loader -gtk_rc_load_image -gtk_rc_style_new -gtk_rc_style_ref -gtk_rc_style_unref - -gtk_rc_init -
- -
-gtkaccelgroup -Keyboard Accelerators -GtkAccelGroup -GtkAccelEntry -gtk_accel_group_new -gtk_accel_group_get_default -gtk_accel_group_ref -gtk_accel_group_unref -gtk_accel_group_activate -gtk_accel_groups_activate -gtk_accel_group_attach -gtk_accel_group_detach -gtk_accel_group_lock -gtk_accel_group_unlock -gtk_accel_group_get_entry -gtk_accel_group_lock_entry -gtk_accel_group_unlock_entry -gtk_accel_group_add -gtk_accel_group_remove -gtk_accel_group_handle_add -gtk_accel_group_handle_remove -gtk_accel_group_create_add -gtk_accel_group_create_remove -gtk_accel_group_marshal_add -gtk_accel_group_marshal_remove -gtk_accel_groups_from_object -gtk_accel_group_entries_from_object -gtk_accelerator_valid -gtk_accelerator_parse -gtk_accelerator_name -gtk_accelerator_set_default_mod_mask -gtk_accelerator_get_default_mod_mask -
- -
-gtkselection -Selections -GtkTargetEntry -GtkTargetList -GtkTargetPair -gtk_target_list_new -gtk_target_list_ref -gtk_target_list_unref -gtk_target_list_add -gtk_target_list_add_table -gtk_target_list_remove -gtk_target_list_find -gtk_selection_owner_set -gtk_selection_add_target -gtk_selection_add_targets -gtk_selection_convert -gtk_selection_data_set -gtk_selection_remove_all -gtk_selection_data_copy -gtk_selection_data_free - -gtk_selection_clear -gtk_selection_incr_event -gtk_selection_notify -gtk_selection_property_notify -gtk_selection_request -
- -
-gtkdnd -Drag and Drop -GtkDestDefaults -GtkTargetFlags - -gtk_drag_dest_set -gtk_drag_dest_set_proxy -gtk_drag_dest_unset -gtk_drag_finish -gtk_drag_get_data -gtk_drag_get_source_widget -gtk_drag_highlight -gtk_drag_unhighlight - -gtk_drag_begin -gtk_drag_set_icon_widget -gtk_drag_set_icon_pixmap -gtk_drag_set_icon_default -gtk_drag_set_default_icon -gtk_drag_source_set -gtk_drag_source_set_icon -gtk_drag_source_unset - -gtk_drag_source_handle_event -gtk_drag_dest_handle_event -
- - -
-gtksignal -Signals -GTK_SIGNAL_OFFSET -GtkSignalMarshal -GtkSignalDestroy -GtkEmissionHook -GtkSignalQuery -GtkSignalRunType -gtk_signal_init -gtk_signal_new -gtk_signal_newv -gtk_signal_lookup -gtk_signal_name -gtk_signal_emit -gtk_signal_emit_by_name -gtk_signal_emitv -gtk_signal_emitv_by_name -gtk_signal_n_emissions -gtk_signal_n_emissions_by_name -gtk_signal_emit_stop -gtk_signal_emit_stop_by_name -gtk_signal_connect -gtk_signal_connect_after -gtk_signal_connect_object -gtk_signal_connect_object_after -gtk_signal_connect_full -gtk_signal_connect_while_alive -gtk_signal_connect_object_while_alive -gtk_signal_disconnect -gtk_signal_disconnect_by_func -gtk_signal_disconnect_by_data -gtk_signal_handler_block -gtk_signal_handler_block_by_func -gtk_signal_handler_block_by_data -gtk_signal_handler_unblock -gtk_signal_handler_unblock_by_func -gtk_signal_handler_unblock_by_data -gtk_signal_handler_pending -gtk_signal_handler_pending_by_func -gtk_signal_handler_pending_by_id -gtk_signal_handlers_destroy -gtk_signal_set_funcs -gtk_signal_query -gtk_signal_add_emission_hook -gtk_signal_add_emission_hook_full -gtk_signal_remove_emission_hook -
- -
-gtkmarshal -Signal Marshallers -gtk_signal_default_marshaller - - -gtk_marshal_BOOL__POINTER_INT_INT_UINT -gtk_marshal_BOOL__POINTER_STRING_STRING_POINTER -gtk_marshal_ENUM__ENUM -gtk_marshal_NONE__BOXED -gtk_marshal_NONE__ENUM -gtk_marshal_NONE__ENUM_FLOAT -gtk_marshal_NONE__ENUM_FLOAT_BOOL -gtk_marshal_NONE__OBJECT -gtk_marshal_NONE__POINTER_STRING_STRING -gtk_marshal_NONE__POINTER_UINT -gtk_marshal_NONE__POINTER_UINT_ENUM -gtk_marshal_NONE__POINTER_POINTER_UINT_UINT -gtk_marshal_NONE__POINTER_INT_INT_POINTER_UINT_UINT -gtk_marshal_NONE__POINTER_UINT_UINT -gtk_marshal_NONE__STRING -gtk_marshal_NONE__STRING_INT_POINTER -gtk_marshal_NONE__UINT -gtk_marshal_NONE__UINT_POINTER_UINT_ENUM_ENUM_POINTER -gtk_marshal_NONE__UINT_POINTER_UINT_UINT_ENUM -gtk_marshal_NONE__UINT_STRING -gtk_marshal_BOOL__NONE -gtk_marshal_BOOL__POINTER -gtk_marshal_BOOL__POINTER_INT_INT -gtk_marshal_BOOL__POINTER_INT_INT_INT -gtk_marshal_BOOL__POINTER_POINTER_INT_INT -gtk_marshal_BOOL__POINTER_POINTER_POINTER_POINTER -gtk_marshal_INT__INT -gtk_marshal_INT__POINTER -gtk_marshal_INT__POINTER_CHAR_CHAR -gtk_marshal_NONE__BOOL -gtk_marshal_NONE__C_CALLBACK -gtk_marshal_NONE__C_CALLBACK_C_CALLBACK -gtk_marshal_NONE__INT -gtk_marshal_NONE__INT_FLOAT -gtk_marshal_NONE__INT_FLOAT_BOOL -gtk_marshal_NONE__INT_INT -gtk_marshal_NONE__INT_INT_POINTER -gtk_marshal_NONE__INT_POINTER -gtk_marshal_NONE__INT_POINTER_INT_INT_INT -gtk_marshal_NONE__INT_POINTER_INT_INT_INT_POINTER -gtk_marshal_NONE__NONE -gtk_marshal_NONE__POINTER -gtk_marshal_NONE__POINTER_INT -gtk_marshal_NONE__POINTER_INT_INT -gtk_marshal_NONE__POINTER_INT_INT_POINTER_INT_INT -gtk_marshal_NONE__POINTER_INT_POINTER -gtk_marshal_NONE__POINTER_POINTER -gtk_marshal_NONE__POINTER_POINTER_INT_INT -gtk_marshal_NONE__POINTER_POINTER_POINTER -
- -
-gtkarg -Object Properties -GtkArgInfo -gtk_arg_new -gtk_arg_copy -gtk_arg_free -gtk_args_collect -gtk_args_collect_cleanup -gtk_arg_get_info -gtk_arg_type_new_static -gtk_args_query -gtk_arg_name_strip_type -gtk_arg_info_equal -gtk_arg_info_hash -
- -
-gtktypeutils -Types -GtkType -GtkFundamentalType -GTK_TYPE_NUM_BUILTINS -GTK_TYPE_FLAT_FIRST -GTK_TYPE_FLAT_LAST -GTK_TYPE_STRUCTURED_FIRST -GTK_TYPE_STRUCTURED_LAST -GTK_TYPE_FUNDAMENTAL_LAST -GTK_TYPE_FUNDAMENTAL_MAX -GTK_STRUCT_OFFSET -GTK_CHECK_CAST -GTK_CHECK_CLASS_CAST -GTK_CHECK_TYPE -GTK_CHECK_CLASS_TYPE -GTK_TYPE_IDENTIFIER -gtk_identifier_get_type -GTK_TYPE_MAKE -GTK_FUNDAMENTAL_TYPE -GTK_TYPE_SEQNO -GTK_SIGNAL_FUNC -GtkClassInitFunc -GtkObjectInitFunc -GtkSignalFunc -GtkFunction -GtkDestroyNotify -GtkCallbackMarshal -GtkSignalMarshaller -GtkArgGetFunc -GtkArgSetFunc -GtkTypeObject -GtkArg -GTK_VALUE_CHAR -GTK_VALUE_UCHAR -GTK_VALUE_BOOL -GTK_VALUE_INT -GTK_VALUE_UINT -GTK_VALUE_LONG -GTK_VALUE_ULONG -GTK_VALUE_FLOAT -GTK_VALUE_DOUBLE -GTK_VALUE_STRING -GTK_VALUE_ENUM -GTK_VALUE_FLAGS -GTK_VALUE_BOXED -GTK_VALUE_POINTER -GTK_VALUE_OBJECT -GTK_VALUE_SIGNAL -GTK_VALUE_ARGS -GTK_VALUE_CALLBACK -GTK_VALUE_C_CALLBACK -GTK_VALUE_FOREIGN -GTK_RETLOC_CHAR -GTK_RETLOC_UCHAR -GTK_RETLOC_BOOL -GTK_RETLOC_INT -GTK_RETLOC_UINT -GTK_RETLOC_LONG -GTK_RETLOC_ULONG -GTK_RETLOC_FLOAT -GTK_RETLOC_DOUBLE -GTK_RETLOC_STRING -GTK_RETLOC_ENUM -GTK_RETLOC_FLAGS -GTK_RETLOC_BOXED -GTK_RETLOC_POINTER -GTK_RETLOC_OBJECT -GtkTypeInfo -GtkTypeQuery -GtkTypeClass -GtkEnumValue -gtk_type_init -gtk_type_unique -gtk_type_set_chunk_alloc -gtk_type_name -gtk_type_from_name -gtk_type_parent -gtk_type_class -gtk_type_parent_class -gtk_type_children_types -gtk_type_new -gtk_type_free -gtk_type_describe_heritage -gtk_type_describe_tree -gtk_type_is_a -gtk_type_check_object_cast -gtk_type_check_class_cast -gtk_type_register_enum -gtk_type_register_flags -gtk_type_enum_get_values -gtk_type_flags_get_values -gtk_type_enum_find_value -gtk_type_flags_find_value -gtk_type_set_varargs_type -gtk_type_get_varargs_type -gtk_type_query - -GTK_TYPE_ACCEL_FLAGS -GTK_TYPE_CALENDAR_DISPLAY_OPTIONS -GTK_TYPE_CELL_TYPE -GTK_TYPE_CLIST_DRAG_POS -GTK_TYPE_BUTTON_ACTION -GTK_TYPE_CTREE_POS -GTK_TYPE_CTREE_LINE_STYLE -GTK_TYPE_CTREE_EXPANDER_STYLE -GTK_TYPE_CTREE_EXPANSION_TYPE -GTK_TYPE_DEBUG_FLAG -GTK_TYPE_DEST_DEFAULTS -GTK_TYPE_TARGET_FLAGS -GTK_TYPE_ARROW_TYPE -GTK_TYPE_ATTACH_OPTIONS -GTK_TYPE_BUTTON_BOX_STYLE -GTK_TYPE_CURVE_TYPE -GTK_TYPE_DIRECTION_TYPE -GTK_TYPE_JUSTIFICATION -GTK_TYPE_MATCH_TYPE -GTK_TYPE_MENU_DIRECTION_TYPE -GTK_TYPE_MENU_FACTORY_TYPE -GTK_TYPE_METRIC_TYPE -GTK_TYPE_ORIENTATION -GTK_TYPE_CORNER_TYPE -GTK_TYPE_PACK_TYPE -GTK_TYPE_PATH_PRIORITY_TYPE -GTK_TYPE_PATH_TYPE -GTK_TYPE_POLICY_TYPE -GTK_TYPE_POSITION_TYPE -GTK_TYPE_PREVIEW_TYPE -GTK_TYPE_RELIEF_STYLE -GTK_TYPE_RESIZE_MODE -GTK_TYPE_SIGNAL_RUN_TYPE -GTK_TYPE_SCROLL_TYPE -GTK_TYPE_SELECTION_MODE -GTK_TYPE_SHADOW_TYPE -GTK_TYPE_STATE_TYPE -GTK_TYPE_SUBMENU_DIRECTION -GTK_TYPE_SUBMENU_PLACEMENT -GTK_TYPE_TOOLBAR_STYLE -GTK_TYPE_TROUGH_TYPE -GTK_TYPE_UPDATE_TYPE -GTK_TYPE_VISIBILITY -GTK_TYPE_WINDOW_POSITION -GTK_TYPE_WINDOW_TYPE -GTK_TYPE_SORT_TYPE -GTK_TYPE_FONT_METRIC_TYPE -GTK_TYPE_FONT_TYPE -GTK_TYPE_FONT_FILTER_TYPE -GTK_TYPE_OBJECT_FLAGS -GTK_TYPE_ARG_FLAGS -GTK_TYPE_PACKER_OPTIONS -GTK_TYPE_SIDE_TYPE -GTK_TYPE_ANCHOR_TYPE -GTK_TYPE_PRIVATE_FLAGS -GTK_TYPE_PROGRESS_BAR_STYLE -GTK_TYPE_PROGRESS_BAR_ORIENTATION -GTK_TYPE_RC_FLAGS -GTK_TYPE_RC_TOKEN_TYPE -GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY -GTK_TYPE_SPIN_TYPE -GTK_TYPE_TOOLBAR_CHILD_TYPE -GTK_TYPE_TOOLBAR_SPACE_STYLE -GTK_TYPE_TREE_VIEW_MODE -GTK_TYPE_FUNDAMENTAL_TYPE -GTK_TYPE_WIDGET_FLAGS -GTK_TYPE_GDK_WINDOW_TYPE -GTK_TYPE_GDK_WINDOW_CLASS -GTK_TYPE_GDK_IMAGE_TYPE -GTK_TYPE_GDK_VISUAL_TYPE -GTK_TYPE_GDK_FONT_TYPE -GTK_TYPE_GDK_WINDOW_ATTRIBUTES_TYPE -GTK_TYPE_GDK_WINDOW_HINTS -GTK_TYPE_GDK_FUNCTION -GTK_TYPE_GDK_FILL -GTK_TYPE_GDK_FILL_RULE -GTK_TYPE_GDK_LINE_STYLE -GTK_TYPE_GDK_CAP_STYLE -GTK_TYPE_GDK_JOIN_STYLE -GTK_TYPE_GDK_CURSOR_TYPE -GTK_TYPE_GDK_FILTER_RETURN -GTK_TYPE_GDK_VISIBILITY_STATE -GTK_TYPE_GDK_EVENT_TYPE -GTK_TYPE_GDK_EVENT_MASK -GTK_TYPE_GDK_NOTIFY_TYPE -GTK_TYPE_GDK_CROSSING_MODE -GTK_TYPE_GDK_MODIFIER_TYPE -GTK_TYPE_GDK_SUBWINDOW_MODE -GTK_TYPE_GDK_INPUT_CONDITION -GTK_TYPE_GDK_STATUS -GTK_TYPE_GDK_BYTE_ORDER -GTK_TYPE_GDK_GC_VALUES_MASK -GTK_TYPE_GDK_SELECTION -GTK_TYPE_GDK_PROPERTY_STATE -GTK_TYPE_GDK_PROP_MODE -GTK_TYPE_GDK_INPUT_SOURCE -GTK_TYPE_GDK_INPUT_MODE -GTK_TYPE_GDK_AXIS_USE -GTK_TYPE_GDK_TARGET -GTK_TYPE_GDK_SELECTION_TYPE -GTK_TYPE_GDK_EXTENSION_MODE -GTK_TYPE_GDK_IM_STYLE -GTK_TYPE_GDK_IC_ATTRIBUTES_TYPE -GTK_TYPE_GDK_WM_DECORATION -GTK_TYPE_GDK_WM_FUNCTION -GTK_TYPE_GDK_COLOR_CONTEXT_MODE -GTK_TYPE_GDK_OVERLAP_TYPE -GTK_TYPE_GDK_DRAG_ACTION -GTK_TYPE_GDK_DRAG_PROTOCOL -GTK_TYPE_GDK_RGB_DITHER -GTK_TYPE_ACCEL_GROUP -GTK_TYPE_SELECTION_DATA -GTK_TYPE_STYLE -GTK_TYPE_CTREE_NODE -GTK_TYPE_GDK_COLORMAP -GTK_TYPE_GDK_VISUAL -GTK_TYPE_GDK_FONT -GTK_TYPE_GDK_WINDOW -GTK_TYPE_GDK_DRAG_CONTEXT -GTK_TYPE_GDK_EVENT -GTK_TYPE_GDK_COLOR -
- -
-gtkbindings -Bindings -GtkPatternSpec -gtk_pattern_spec_init -gtk_pattern_spec_free_segs -gtk_pattern_match -gtk_pattern_match_string -gtk_pattern_match_simple -GtkBindingSet -GtkBindingEntry -GtkBindingSignal -GtkBindingArg -gtk_binding_set_new -gtk_binding_set_by_class -gtk_binding_set_find -gtk_bindings_activate -gtk_binding_set_activate -gtk_binding_entry_add -gtk_binding_entry_clear -gtk_binding_entry_add_signal -gtk_binding_set_add_path -gtk_binding_entry_remove -gtk_binding_entry_add_signall -gtk_binding_parse_binding -
- -
-gtkenums -Standard Enumerations -GtkAccelFlags -GtkArrowType -GtkAttachOptions -GtkButtonBoxStyle -GtkCornerType -GtkCurveType -GtkDirectionType -GtkJustification -GtkMatchType -GtkMetricType -GtkOrientation -GtkPackType -GtkPathPriorityType -GtkPathType -GtkPolicyType -GtkPositionType -GtkPreviewType -GtkReliefStyle -GtkResizeMode -GtkScrollType -GtkSelectionMode -GtkShadowType -GtkStateType -GtkSubmenuDirection -GtkSubmenuPlacement -GtkToolbarStyle -GtkTroughType -GtkUpdateType -GtkVisibility -GtkWindowPosition -GtkWindowType -GtkSortType -
- -
-gtkprivate -Private Information -gtk/gtkprivate.h -GtkPrivateFlags -GTK_PRIVATE_FLAGS -GTK_WIDGET_USER_STYLE -GTK_WIDGET_REDRAW_PENDING -GTK_CONTAINER_RESIZE_PENDING -GTK_WIDGET_RESIZE_NEEDED -GTK_WIDGET_LEAVE_PENDING -GTK_WIDGET_HAS_SHAPE_MASK -GTK_WIDGET_IN_REPARENT -GTK_WIDGET_IS_OFFSCREEN -GTK_PRIVATE_SET_FLAG -GTK_PRIVATE_UNSET_FLAG - - -GtkMenuCallback -GtkMenuEntry -GtkMenuPath -GtkMenuFactory -GtkMenuFactoryType -gtk_menu_factory_new -gtk_menu_factory_destroy -gtk_menu_factory_add_entries -gtk_menu_factory_add_subfactory -gtk_menu_factory_remove_paths -gtk_menu_factory_remove_entries -gtk_menu_factory_remove_subfactory -gtk_menu_factory_find - -GtkDebugFlag -gtk_debug_flags -GTK_NOTE -
- diff --git a/docs/reference/gtk/gtk.args b/docs/reference/gtk/gtk.args deleted file mode 100644 index 56aaf56253..0000000000 --- a/docs/reference/gtk/gtk.args +++ /dev/null @@ -1,846 +0,0 @@ - -GtkAccelLabel::accel_widget -GtkWidget -rw - - - -GtkAlignment::xalign -gfloat -rw - - - -GtkAlignment::yalign -gfloat -rw - - - -GtkAlignment::xscale -gfloat -rw - - - -GtkAlignment::yscale -gfloat -rw - - - -GtkArrow::arrow_type -GtkArrowType -rw - - - -GtkArrow::shadow_type -GtkShadowType -rw - - - -GtkBox::spacing -gint -rw - - - -GtkBox::homogeneous -gboolean -rw - - - -GtkButton::label -GtkString -rw - - - -GtkButton::relief -GtkReliefStyle -rw - - - -GtkCList::n_columns -guint -rwX - - - -GtkCList::shadow_type -GtkShadowType -rw - - - -GtkCList::selection_mode -GtkSelectionMode -rw - - - -GtkCList::row_height -guint -rw - - - -GtkCList::reorderable -gboolean -rw - - - -GtkCList::titles_active -gboolean -rw - - - -GtkCList::use_drag_icons -gboolean -rw - - - -GtkContainer::border_width -gulong -rw - - - -GtkContainer::resize_mode -GtkResizeMode -rw - - - -GtkContainer::child -GtkWidget -w - - - -GtkCTree::n_columns -guint -rwX - - - -GtkCTree::tree_column -guint -rwX - - - -GtkCTree::indent -guint -rw - - - -GtkCTree::spacing -guint -rw - - - -GtkCTree::show_stub -gboolean -rw - - - -GtkCTree::line_style -GtkCTreeLineStyle -rw - - - -GtkCTree::expander_style -GtkCTreeExpanderStyle -rw - - - -GtkEditable::text_position -gint -rw - - - -GtkEditable::editable -gboolean -rw - - - -GtkEntry::max_length -guint -rw - - - -GtkEntry::visibility -gboolean -rw - - - -GtkFrame::label -GtkString -rw - - - -GtkFrame::label_xalign -gfloat -rw - - - -GtkFrame::label_yalign -gfloat -rw - - - -GtkFrame::shadow -GtkShadowType -rw - - - -GtkHandleBox::shadow -GtkShadowType -rw - - - -GtkHScale::adjustment -GtkAdjustment -rwx - - - -GtkHScrollbar::adjustment -GtkAdjustment -rwx - - - -GtkLabel::label -GtkString -rw - - - -GtkLabel::pattern -GtkString -rw - - - -GtkLabel::justify -GtkJustification -rw - - - -GtkMenuBar::shadow -GtkShadowType -rw - - - -GtkMisc::xalign -gfloat -rw - - - -GtkMisc::yalign -gfloat -rw - - - -GtkMisc::xpad -gint -rw - - - -GtkMisc::ypad -gint -rw - - - -GtkNotebook::page -gint -rw - - - -GtkNotebook::tab_pos -GtkPositionType -rw - - - -GtkNotebook::tab_border -guint -w - - - -GtkNotebook::tab_hborder -guint -rw - - - -GtkNotebook::tab_vborder -guint -rw - - - -GtkNotebook::show_tabs -gboolean -rw - - - -GtkNotebook::show_border -gboolean -rw - - - -GtkNotebook::scrollable -gboolean -rw - - - -GtkNotebook::enable_popup -gboolean -rw - - - -GtkObject::user_data -gpointer -rw - - - -GtkObject::signal -GtkSignal -w - - - -GtkObject::signal_after -GtkSignal -w - - - -GtkObject::object_signal -GtkSignal -w - - - -GtkObject::object_signal_after -GtkSignal -w - - - -GtkPacker::spacing -guint -rw - - - -GtkPacker::default_border_width -guint -rw - - - -GtkPacker::default_pad_x -guint -rw - - - -GtkPacker::default_pad_y -guint -rw - - - -GtkPacker::default_ipad_x -guint -rw - - - -GtkPacker::default_ipad_y -guint -rw - - - -GtkProgress::activity_mode -gboolean -rw - - - -GtkProgress::show_text -gboolean -rw - - - -GtkProgress::text_xalign -gfloat -rw - - - -GtkProgress::text_yalign -gfloat -rw - - - -GtkProgressBar::adjustment -GtkAdjustment -rwx - - - -GtkProgressBar::orientation -GtkProgressBarOrientation -rw - - - -GtkProgressBar::bar_style -GtkProgressBarStyle -rw - - - -GtkProgressBar::activity_step -guint -rw - - - -GtkProgressBar::activity_blocks -guint -rw - - - -GtkProgressBar::discrete_blocks -guint -rw - - - -GtkRadioButton::group -GtkRadioButton -w - - - -GtkRange::update_policy -GtkUpdateType -rw - - - -GtkScale::digits -gint -rw - - - -GtkScale::draw_value -gboolean -rw - - - -GtkScale::value_pos -GtkPositionType -rw - - - -GtkScrolledWindow::hadjustment -GtkAdjustment -rwx - - - -GtkScrolledWindow::vadjustment -GtkAdjustment -rwx - - - -GtkScrolledWindow::hscrollbar_policy -GtkPolicyType -rw - - - -GtkScrolledWindow::vscrollbar_policy -GtkPolicyType -rw - - - -GtkScrolledWindow::window_placement -GtkCornerType -rw - - - -GtkSpinButton::adjustment -GtkAdjustment -rw - - - -GtkSpinButton::climb_rate -gfloat -rw - - - -GtkSpinButton::digits -guint -rw - - - -GtkSpinButton::snap_to_ticks -gboolean -rw - - - -GtkSpinButton::numeric -gboolean -rw - - - -GtkSpinButton::wrap -gboolean -rw - - - -GtkSpinButton::update_policy -GtkSpinButtonUpdatePolicy -rw - - - -GtkSpinButton::shadow_type -GtkShadowType -rw - - - -GtkSpinButton::value -gfloat -rw - - - -GtkTable::n_rows -guint -rw - - - -GtkTable::n_columns -guint -rw - - - -GtkTable::row_spacing -guint -rw - - - -GtkTable::column_spacing -guint -rw - - - -GtkTable::homogeneous -gboolean -rw - - - -GtkText::hadjustment -GtkAdjustment -rwx - - - -GtkText::vadjustment -GtkAdjustment -rwx - - - -GtkText::line_wrap -gboolean -rw - - - -GtkText::word_wrap -gboolean -rw - - - -GtkTipsQuery::emit_always -gboolean -rw - - - -GtkTipsQuery::caller -GtkWidget -rw - - - -GtkTipsQuery::label_inactive -GtkString -rw - - - -GtkTipsQuery::label_no_tip -GtkString -rw - - - -GtkToggleButton::active -gboolean -rw - - - -GtkToggleButton::draw_indicator -gboolean -rw - - - -GtkViewport::hadjustment -GtkAdjustment -rwx - - - -GtkViewport::vadjustment -GtkAdjustment -rwx - - - -GtkViewport::shadow_type -GtkShadowType -rw - - - -GtkVScale::adjustment -GtkAdjustment -rwx - - - -GtkVScrollbar::adjustment -GtkAdjustment -rwx - - - -GtkWidget::name -GtkString -rw - - - -GtkWidget::parent -GtkContainer -rw - - - -GtkWidget::x -gint -rw - - - -GtkWidget::y -gint -rw - - - -GtkWidget::width -gint -rw - - - -GtkWidget::height -gint -rw - - - -GtkWidget::visible -gboolean -rw - - - -GtkWidget::sensitive -gboolean -rw - - - -GtkWidget::app_paintable -gboolean -rw - - - -GtkWidget::can_focus -gboolean -rw - - - -GtkWidget::has_focus -gboolean -rw - - - -GtkWidget::can_default -gboolean -rw - - - -GtkWidget::has_default -gboolean -rw - - - -GtkWidget::receives_default -gboolean -rw - - - -GtkWidget::composite_child -gboolean -rw - - - -GtkWidget::style -GtkStyle -rw - - - -GtkWidget::events -GdkEventMask -rw - - - -GtkWidget::extension_events -GdkEventMask -rw - - - -GtkWindow::type -GtkWindowType -rw - - - -GtkWindow::title -GtkString -rw - - - -GtkWindow::auto_shrink -gboolean -rw - - - -GtkWindow::allow_shrink -gboolean -rw - - - -GtkWindow::allow_grow -gboolean -rw - - - -GtkWindow::modal -gboolean -rw - - - -GtkWindow::window_position -GtkWindowPosition -rw - - diff --git a/docs/reference/gtk/gtk.hierarchy b/docs/reference/gtk/gtk.hierarchy deleted file mode 100644 index dbf000ed21..0000000000 --- a/docs/reference/gtk/gtk.hierarchy +++ /dev/null @@ -1,93 +0,0 @@ -GtkObject - GtkWidget - GtkMisc - GtkLabel - GtkAccelLabel - GtkTipsQuery - GtkArrow - GtkImage - GtkPixmap - GtkContainer - GtkBin - GtkAlignment - GtkFrame - GtkAspectFrame - GtkButton - GtkToggleButton - GtkCheckButton - GtkRadioButton - GtkOptionMenu - GtkItem - GtkMenuItem - GtkCheckMenuItem - GtkRadioMenuItem - GtkTearoffMenuItem - GtkListItem - GtkTreeItem - GtkWindow - GtkColorSelectionDialog - GtkDialog - GtkInputDialog - GtkFileSelection - GtkFontSelectionDialog - GtkPlug - GtkEventBox - GtkHandleBox - GtkScrolledWindow - GtkViewport - GtkBox - GtkButtonBox - GtkHButtonBox - GtkVButtonBox - GtkVBox - GtkColorSelection - GtkGammaCurve - GtkHBox - GtkCombo - GtkStatusbar - GtkCList - GtkCTree - GtkFixed - GtkNotebook - GtkFontSelection - GtkPaned - GtkHPaned - GtkVPaned - GtkLayout - GtkList - GtkMenuShell - GtkMenu - GtkMenuBar - GtkPacker - GtkSocket - GtkTable - GtkToolbar - GtkTree - GtkCalendar - GtkDrawingArea - GtkCurve - GtkEditable - GtkEntry - GtkSpinButton - GtkText - GtkRuler - GtkHRuler - GtkVRuler - GtkRange - GtkScale - GtkHScale - GtkVScale - GtkScrollbar - GtkHScrollbar - GtkVScrollbar - GtkSeparator - GtkHSeparator - GtkVSeparator - GtkInvisible - GtkPreview - GtkProgress - GtkProgressBar - GtkData - GtkAdjustment - GtkTooltips - GtkItemFactory diff --git a/docs/reference/gtk/gtk.signals b/docs/reference/gtk/gtk.signals deleted file mode 100644 index 336b40d731..0000000000 --- a/docs/reference/gtk/gtk.signals +++ /dev/null @@ -1,1097 +0,0 @@ - -GtkAdjustment::changed -void -GtkAdjustment *adjustment - - - -GtkAdjustment::value-changed -void -GtkAdjustment *adjustment - - - -GtkButton::pressed -void -GtkButton *button - - - -GtkButton::released -void -GtkButton *button - - - -GtkButton::clicked -void -GtkButton *button - - - -GtkButton::enter -void -GtkButton *button - - - -GtkButton::leave -void -GtkButton *button - - - -GtkCalendar::month-changed -void -GtkCalendar *calendar - - - -GtkCalendar::day-selected -void -GtkCalendar *calendar - - - -GtkCalendar::day-selected-double-click -void -GtkCalendar *calendar - - - -GtkCalendar::prev-month -void -GtkCalendar *calendar - - - -GtkCalendar::next-month -void -GtkCalendar *calendar - - - -GtkCalendar::prev-year -void -GtkCalendar *calendar - - - -GtkCalendar::next-year -void -GtkCalendar *calendar - - - -GtkCheckMenuItem::toggled -void -GtkCheckMenuItem *checkmenuitem - - - -GtkCList::select-row -void -GtkCList *clist -gint row -gint column -GdkEventButton *event - - - -GtkCList::unselect-row -void -GtkCList *clist -gint row -gint column -GdkEventButton *event - - - -GtkCList::row-move -void -GtkCList *clist -gint arg1 -gint arg2 - - - -GtkCList::click-column -void -GtkCList *clist -gint column - - - -GtkCList::resize-column -void -GtkCList *clist -gint column -gint width - - - -GtkCList::toggle-focus-row -void -GtkCList *clist - - - -GtkCList::select-all -void -GtkCList *clist - - - -GtkCList::unselect-all -void -GtkCList *clist - - - -GtkCList::undo-selection -void -GtkCList *clist - - - -GtkCList::start-selection -void -GtkCList *clist - - - -GtkCList::end-selection -void -GtkCList *clist - - - -GtkCList::toggle-add-mode -void -GtkCList *clist - - - -GtkCList::extend-selection -void -GtkCList *clist -GtkScrollType scroll_type -gfloat position -gboolean auto_start_selection - - - -GtkCList::scroll-vertical -void -GtkCList *clist -GtkScrollType scroll_type -gfloat position - - - -GtkCList::scroll-horizontal -void -GtkCList *clist -GtkScrollType scroll_type -gfloat position - - - -GtkCList::abort-column-resize -void -GtkCList *clist - - - -GtkColorSelection::color-changed -void -GtkColorSelection *colorselection - - - -GtkContainer::add -void -GtkContainer *container -GtkWidget *widget - - - -GtkContainer::remove -void -GtkContainer *container -GtkWidget *widget - - - -GtkContainer::check-resize -void -GtkContainer *container - - - -GtkContainer::focus -GtkDirectionType -GtkContainer *container -GtkDirectionType direction - - - -GtkContainer::set-focus-child -void -GtkContainer *container -GtkWidget *widget - - - -GtkCTree::tree-select-row -void -GtkCTree *ctree -GList *node -gint column - - - -GtkCTree::tree-unselect-row -void -GtkCTree *ctree -GList *node -gint column - - - -GtkCTree::tree-expand -void -GtkCTree *ctree -GList *node - - - -GtkCTree::tree-collapse -void -GtkCTree *ctree -GList *node - - - -GtkCTree::tree-move -void -GtkCTree *ctree -GList *node -GList *new_parent -GList *new_sibling - - - -GtkCTree::change-focus-row-expansion -void -GtkCTree *ctree -GtkCTreeExpansionType expansion - - - -GtkCurve::curve-type-changed -void -GtkCurve *curve - - - -GtkData::disconnect -void -GtkData *data - - - -GtkEditable::changed -void -GtkEditable *editable - - - -GtkEditable::insert-text -void -GtkEditable *editable -gchar *new_text -gint new_text_length -gint *position - - - -GtkEditable::delete-text -void -GtkEditable *editable -gint start_pos -gint end_pos - - - -GtkEditable::activate -void -GtkEditable *editable - - - -GtkEditable::set-editable -void -GtkEditable *editable -gboolean is_editable - - - -GtkEditable::move-cursor -void -GtkEditable *editable -gint x -gint y - - - -GtkEditable::move-word -void -GtkEditable *editable -gint num_words - - - -GtkEditable::move-page -void -GtkEditable *editable -gint x -gint y - - - -GtkEditable::move-to-row -void -GtkEditable *editable -gint row - - - -GtkEditable::move-to-column -void -GtkEditable *editable -gint column - - - -GtkEditable::kill-char -void -GtkEditable *editable -gint direction - - - -GtkEditable::kill-word -void -GtkEditable *editable -gint direction - - - -GtkEditable::kill-line -void -GtkEditable *editable -gint direction - - - -GtkEditable::cut-clipboard -void -GtkEditable *editable - - - -GtkEditable::copy-clipboard -void -GtkEditable *editable - - - -GtkEditable::paste-clipboard -void -GtkEditable *editable - - - -GtkHandleBox::child-attached -void -GtkHandleBox *handlebox -GtkWidget *widget - - - -GtkHandleBox::child-detached -void -GtkHandleBox *handlebox -GtkWidget *widget - - - -GtkInputDialog::enable-device -void -GtkInputDialog *inputdialog -gint deviceid - - - -GtkInputDialog::disable-device -void -GtkInputDialog *inputdialog -gint deviceid - - - -GtkItem::select -void -GtkItem *item - - - -GtkItem::deselect -void -GtkItem *item - - - -GtkItem::toggle -void -GtkItem *item - - - -GtkList::selection-changed -void -GtkList *list - - - -GtkList::select-child -void -GtkList *list -GtkWidget *widget - - - -GtkList::unselect-child -void -GtkList *list -GtkWidget *widget - - - -GtkListItem::toggle-focus-row -void -GtkListItem *listitem - - - -GtkListItem::select-all -void -GtkListItem *listitem - - - -GtkListItem::unselect-all -void -GtkListItem *listitem - - - -GtkListItem::undo-selection -void -GtkListItem *listitem - - - -GtkListItem::start-selection -void -GtkListItem *listitem - - - -GtkListItem::end-selection -void -GtkListItem *listitem - - - -GtkListItem::toggle-add-mode -void -GtkListItem *listitem - - - -GtkListItem::extend-selection -void -GtkListItem *listitem -GtkScrollType scroll_type -gfloat position -gboolean auto_start_selection - - - -GtkListItem::scroll-vertical -void -GtkListItem *listitem -GtkScrollType scroll_type -gfloat position - - - -GtkListItem::scroll-horizontal -void -GtkListItem *listitem -GtkScrollType scroll_type -gfloat position - - - -GtkMenuItem::activate -void -GtkMenuItem *menuitem - - - -GtkMenuItem::activate-item -void -GtkMenuItem *menuitem - - - -GtkMenuShell::deactivate -void -GtkMenuShell *menushell - - - -GtkMenuShell::selection-done -void -GtkMenuShell *menushell - - - -GtkMenuShell::move-current -void -GtkMenuShell *menushell -GtkMenuDirectionType direction - - - -GtkMenuShell::activate-current -void -GtkMenuShell *menushell -gboolean force_hide - - - -GtkMenuShell::cancel -void -GtkMenuShell *menushell - - - -GtkNotebook::switch-page -void -GtkNotebook *notebook -GtkNotebookPage *page -gint page_num - - - -GtkObject::destroy -void -GtkObject *object - - - -GtkStatusbar::text-pushed -void -GtkStatusbar *statusbar -guint context_id -gchar *text - - - -GtkStatusbar::text-popped -void -GtkStatusbar *statusbar -guint context_id -gchar *text - - - -GtkTipsQuery::start-query -void -GtkTipsQuery *tipsquery - - - -GtkTipsQuery::stop-query -void -GtkTipsQuery *tipsquery - - - -GtkTipsQuery::widget-entered -void -GtkTipsQuery *tipsquery -GtkWidget *widget -gchar *tip_text -gchar *tip_private - - - -GtkTipsQuery::widget-selected -gboolean -GtkTipsQuery *tipsquery -GtkWidget *widget -gchar *tip_text -gchar *tip_private -GdkEventButton *event - - - -GtkToggleButton::toggled -void -GtkToggleButton *togglebutton - - - -GtkToolbar::orientation-changed -void -GtkToolbar *toolbar -GtkOrientation orientation - - - -GtkToolbar::style-changed -void -GtkToolbar *toolbar -GtkToolbarStyle style - - - -GtkTree::selection-changed -void -GtkTree *tree - - - -GtkTree::select-child -void -GtkTree *tree -GtkWidget *widget - - - -GtkTree::unselect-child -void -GtkTree *tree -GtkWidget *widget - - - -GtkTreeItem::collapse -void -GtkTreeItem *treeitem - - - -GtkTreeItem::expand -void -GtkTreeItem *treeitem - - - -GtkWidget::show -void -GtkWidget *widget - - - -GtkWidget::hide -void -GtkWidget *widget - - - -GtkWidget::map -void -GtkWidget *widget - - - -GtkWidget::unmap -void -GtkWidget *widget - - - -GtkWidget::realize -void -GtkWidget *widget - - - -GtkWidget::unrealize -void -GtkWidget *widget - - - -GtkWidget::draw -void -GtkWidget *widget -GdkRectangle *area - - - -GtkWidget::draw-focus -void -GtkWidget *widget - - - -GtkWidget::draw-default -void -GtkWidget *widget - - - -GtkWidget::size-request -void -GtkWidget *widget -GtkRequisition *requisition - - - -GtkWidget::size-allocate -void -GtkWidget *widget -GtkAllocation *allocation - - - -GtkWidget::state-changed -void -GtkWidget *widget -GtkStateType state - - - -GtkWidget::parent-set -void -GtkWidget *widget -GtkObject *old_parent - - - -GtkWidget::style-set -void -GtkWidget *widget -GtkStyle *previous_style - - - -GtkWidget::add-accelerator -void -GtkWidget *widget -guint accel_signal_id -GtkAccelGroup *accel_group -guint accel_key -GdkModifierType accel_mods -GtkAccelFlags accel_flags - - - -GtkWidget::remove-accelerator -void -GtkWidget *widget -GtkAccelGroup *accel_group -guint accel_key -GdkModifierType accel_mods - - - -GtkWidget::grab-focus -void -GtkWidget *widget - - - -GtkWidget::event -gboolean -GtkWidget *widget -GdkEvent *event - - - -GtkWidget::button-press-event -gboolean -GtkWidget *widget -GdkEventButton *event - - - -GtkWidget::button-release-event -gboolean -GtkWidget *widget -GdkEventButton *event - - - -GtkWidget::motion-notify-event -gboolean -GtkWidget *widget -GdkEventMotion *event - - - -GtkWidget::delete-event -gboolean -GtkWidget *widget -GdkEvent *event - - - -GtkWidget::destroy-event -gboolean -GtkWidget *widget -GdkEvent *event - - - -GtkWidget::expose-event -gboolean -GtkWidget *widget -GdkEventExpose *event - - - -GtkWidget::key-press-event -gboolean -GtkWidget *widget -GdkEventKey *event - - - -GtkWidget::key-release-event -gboolean -GtkWidget *widget -GdkEventKey *event - - - -GtkWidget::enter-notify-event -gboolean -GtkWidget *widget -GdkEventCrossing *event - - - -GtkWidget::leave-notify-event -gboolean -GtkWidget *widget -GdkEventCrossing *event - - - -GtkWidget::configure-event -gboolean -GtkWidget *widget -GdkEventConfigure *event - - - -GtkWidget::focus-in-event -gboolean -GtkWidget *widget -GdkEventFocus *event - - - -GtkWidget::focus-out-event -gboolean -GtkWidget *widget -GdkEventFocus *event - - - -GtkWidget::map-event -gboolean -GtkWidget *widget -GdkEvent *event - - - -GtkWidget::unmap-event -gboolean -GtkWidget *widget -GdkEvent *event - - - -GtkWidget::property-notify-event -gboolean -GtkWidget *widget -GdkEventProperty *event - - - -GtkWidget::selection-clear-event -gboolean -GtkWidget *widget -GdkEventSelection *event - - - -GtkWidget::selection-request-event -gboolean -GtkWidget *widget -GdkEventSelection *event - - - -GtkWidget::selection-notify-event -gboolean -GtkWidget *widget -GdkEventSelection *event - - - -GtkWidget::selection-get -void -GtkWidget *widget -GtkSelectionData *data -guint info -guint time - - - -GtkWidget::selection-received -void -GtkWidget *widget -GtkSelectionData *data -guint time - - - -GtkWidget::proximity-in-event -gboolean -GtkWidget *widget -GdkEventProximity *event - - - -GtkWidget::proximity-out-event -gboolean -GtkWidget *widget -GdkEventProximity *event - - - -GtkWidget::drag-begin -void -GtkWidget *widget -GdkDragContext *drag_context - - - -GtkWidget::drag-end -void -GtkWidget *widget -GdkDragContext *drag_context - - - -GtkWidget::drag-data-delete -void -GtkWidget *widget -GdkDragContext *drag_context - - - -GtkWidget::drag-leave -void -GtkWidget *widget -GdkDragContext *drag_context -guint time - - - -GtkWidget::drag-motion -gboolean -GtkWidget *widget -GdkDragContext *drag_context -gint x -gint y -guint time - - - -GtkWidget::drag-drop -gboolean -GtkWidget *widget -GdkDragContext *drag_context -gint x -gint y -guint time - - - -GtkWidget::drag-data-get -void -GtkWidget *widget -GdkDragContext *drag_context -GtkSelectionData *data -guint info -guint time - - - -GtkWidget::drag-data-received -void -GtkWidget *widget -GdkDragContext *drag_context -gint x -gint y -GtkSelectionData *data -guint info -guint time - - - -GtkWidget::client-event -gboolean -GtkWidget *widget -GdkEventClient *event - - - -GtkWidget::no-expose-event -gboolean -GtkWidget *widget -GdkEventNoExpose *event - - - -GtkWidget::visibility-notify-event -gboolean -GtkWidget *widget -GdkEvent *event - - - -GtkWidget::debug-msg -void -GtkWidget *widget -gchar *message - - - -GtkWindow::set-focus -void -GtkWindow *window -GtkWidget *widget - - diff --git a/docs/reference/gtk/gtk.types b/docs/reference/gtk/gtk.types deleted file mode 100644 index 1bc77ae576..0000000000 --- a/docs/reference/gtk/gtk.types +++ /dev/null @@ -1,96 +0,0 @@ -#include - -gtk_accel_label_get_type -gtk_adjustment_get_type -gtk_alignment_get_type -gtk_arrow_get_type -gtk_aspect_frame_get_type -gtk_bin_get_type -gtk_box_get_type -gtk_button_get_type -gtk_button_box_get_type -gtk_calendar_get_type -gtk_check_button_get_type -gtk_check_menu_item_get_type -gtk_clist_get_type -gtk_color_selection_get_type -gtk_color_selection_dialog_get_type -gtk_combo_get_type -gtk_container_get_type -gtk_ctree_get_type -gtk_curve_get_type -gtk_data_get_type -gtk_dialog_get_type -gtk_drawing_area_get_type -gtk_editable_get_type -gtk_entry_get_type -gtk_event_box_get_type -gtk_file_selection_get_type -gtk_fixed_get_type -gtk_font_selection_get_type -gtk_font_selection_dialog_get_type -gtk_frame_get_type -gtk_gamma_curve_get_type -gtk_handle_box_get_type -gtk_hbox_get_type -gtk_hbutton_box_get_type -gtk_hpaned_get_type -gtk_hruler_get_type -gtk_hscale_get_type -gtk_hscrollbar_get_type -gtk_hseparator_get_type -gtk_identifier_get_type -gtk_image_get_type -gtk_input_dialog_get_type -gtk_invisible_get_type -gtk_item_get_type -gtk_item_factory_get_type -gtk_label_get_type -gtk_layout_get_type -gtk_list_get_type -gtk_list_item_get_type -gtk_menu_get_type -gtk_menu_bar_get_type -gtk_menu_item_get_type -gtk_menu_shell_get_type -gtk_misc_get_type -gtk_notebook_get_type -gtk_object_get_type -gtk_option_menu_get_type -gtk_packer_get_type -gtk_paned_get_type -gtk_pixmap_get_type -gtk_plug_get_type -gtk_preview_get_type -gtk_progress_get_type -gtk_progress_bar_get_type -gtk_radio_button_get_type -gtk_radio_menu_item_get_type -gtk_range_get_type -gtk_ruler_get_type -gtk_scale_get_type -gtk_scrollbar_get_type -gtk_scrolled_window_get_type -gtk_separator_get_type -gtk_socket_get_type -gtk_spin_button_get_type -gtk_statusbar_get_type -gtk_table_get_type -gtk_tearoff_menu_item_get_type -gtk_text_get_type -gtk_tips_query_get_type -gtk_toggle_button_get_type -gtk_toolbar_get_type -gtk_tooltips_get_type -gtk_tree_get_type -gtk_tree_item_get_type -gtk_vbox_get_type -gtk_vbutton_box_get_type -gtk_viewport_get_type -gtk_vpaned_get_type -gtk_vruler_get_type -gtk_vscale_get_type -gtk_vscrollbar_get_type -gtk_vseparator_get_type -gtk_widget_get_type -gtk_window_get_type diff --git a/docs/reference/gtk/objects_grouped.sgml b/docs/reference/gtk/objects_grouped.sgml deleted file mode 100644 index 3b546dc9c3..0000000000 --- a/docs/reference/gtk/objects_grouped.sgml +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - -Windows & Dialogs - GtkWindow - GtkDialog - GtkColorSelectionDialog - GtkFileSelection - GtkFontSelectionDialog - GtkInputDialog - -Containers - GtkHBox - GtkVBox - GtkTable - GtkToolbar - GtkHandleBox - GtkNotebook - GtkFrame - GtkAspectFrame - GtkFixed - GtkPacker - GtkLayout - GtkScrolledWindow - GtkViewport - GtkEventBox - GtkAlignment - GtkHButtonBox - GtkVButtonBox - GtkHPaned - GtkVPaned - - -Labels & Buttons - GtkLabel - GtkAccelLabel - GtkButton - GtkCheckButton - GtkToggleButton - GtkRadioButton - -Data Entry Widgets - GtkEntry - GtkText - GtkSpinButton - GtkOptionMenu - GtkCombo - GtkHScale - GtkVScale - -Lists & Trees - GtkCList - GtkCTree - GtkList - GtkListItem - GtkTree - GtkTreeItem - -Tooltips - GtkTooltips - GtkTipsQuery - - -Menus & Menu Bars - GtkMenuBar - GtkMenu - GtkMenuItem - GtkCheckMenuItem - GtkRadioMenuItem - GtkTearoffMenuItem - -Graphical Widgets - GtkDrawingArea - GtkImage - GtkPixmap - GtkPreview - GtkCurve - GtkGammaCurve - -Misc. Widgets - GtkArrow - GtkCalendar - GtkProgressBar - GtkStatusbar - GtkHRuler - GtkVRuler - GtkHScrollbar - GtkVScrollbar - GtkHSeparator - GtkVSeparator - GtkColorSelection - GtkFontSelection - - -Abstract Base Classes - GtkWidget - GtkObject - GtkContainer - GtkBin - GtkBox - GtkButtonBox - GtkData - GtkEditable - GtkItem - GtkMenuShell - GtkMisc - GtkPaned - GtkProgress - GtkRange - GtkRuler - GtkScale - GtkScrollbar - GtkSeparator - -Integrating with other X Applications - GtkPlug - GtkSocket - -Misc. Objects - GtkAdjustment - GtkItemFactory - GtkInvisible - - - diff --git a/docs/reference/gtk/tmpl/gtk-unused.sgml b/docs/reference/gtk/tmpl/gtk-unused.sgml deleted file mode 100644 index 8cd00ccc29..0000000000 --- a/docs/reference/gtk/tmpl/gtk-unused.sgml +++ /dev/null @@ -1,629 +0,0 @@ - -Menu Factory - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@path: -@type: -@accel_group: -@widget: -@subfactories: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@factory: -@path: -@Returns: - - - - - - - - - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - - - - - - -@GTK_MENU_FACTORY_MENU: -@GTK_MENU_FACTORY_MENU_BAR: -@GTK_MENU_FACTORY_OPTION_MENU: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - - - - - - -@factory: -@entries: -@nentries: - - - - - - -@path: -@widget: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - - - -Determines the way that the the preview widget behaves -when the size it is allocated is larger than the requested -size. See gtk_preview_set_expand(). - - - - - - - - - - - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - - - - - - - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - - - - - - -@factory: -@paths: -@npaths: - - - - - - -@factory: - - - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@type: -@action: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - - - - - - -@GTK_DEBUG_OBJECTS: -@GTK_DEBUG_MISC: -@GTK_DEBUG_SIGNALS: -@GTK_DEBUG_DND: -@GTK_DEBUG_PLUGSOCKET: - - - -Determines the snap edge of a handlebox. The snap edge is -the edge of the detached child that must be aligned -with the corresponding edge of the "ghost" left -behind when the child was detached to reattach -the torn-off window. See gtk_handle_box_set_snap_edge(). - - - - - -Determines the side of the handlebox where the handle is drawn. - - - - - - - - - - - - - - - - - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@type: -@Returns: - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@factory: -@entries: -@nentries: - - - - - - - - - - - - -@widget: -@user_data: - - - - - - - - - - - - -@factory: -@subfactory: -@path: - - -Debugging - - - - - - - -@ruler: the gtkruler - - - - - - - - - - - - - - - - - - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - -@factory: -@subfactory: -@path: - - - - - - -@path: -@accelerator: -@callback: -@callback_data: -@widget: - - - - - - -@ruler: the gtkruler - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkaccelgroup.sgml b/docs/reference/gtk/tmpl/gtkaccelgroup.sgml deleted file mode 100644 index ccf0ce427a..0000000000 --- a/docs/reference/gtk/tmpl/gtkaccelgroup.sgml +++ /dev/null @@ -1,314 +0,0 @@ - -Keyboard Accelerators - - - - - - - - - - - - - - - - - - - -@ref_count: -@lock_count: -@modifier_mask: -@attach_objects: - - - - - - -@accel_group: -@accelerator_key: -@accelerator_mods: -@accel_flags: -@object: -@signal_id: - - - - - - -@Returns: - - - - - - - -@Returns: - - - - - - - -@accel_group: -@Returns: - - - - - - - -@accel_group: - - - - - - - -@accel_group: -@accel_key: -@accel_mods: -@Returns: - - - - - - - -@object: -@accel_key: -@accel_mods: -@Returns: - - - - - - - -@accel_group: -@object: - - - - - - - -@accel_group: -@object: - - - - - - - -@accel_group: - - - - - - - -@accel_group: - - - - - - - -@accel_group: -@accel_key: -@accel_mods: -@Returns: - - - - - - - -@accel_group: -@accel_key: -@accel_mods: - - - - - - - -@accel_group: -@accel_key: -@accel_mods: - - - - - - - -@accel_group: -@accel_key: -@accel_mods: -@accel_flags: -@object: -@accel_signal: - - - - - - - -@accel_group: -@accel_key: -@accel_mods: -@object: - - - - - - - -@object: -@accel_signal_id: -@accel_group: -@accel_key: -@accel_mods: -@accel_flags: - - - - - - - -@object: -@accel_group: -@accel_key: -@accel_mods: - - - - - - - -@class_type: -@signal_flags: -@handler_offset: -@Returns: - - - - - - - -@class_type: -@signal_flags: -@handler_offset: -@Returns: - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - -@object: -@func: -@func_data: -@args: - - - - - - - -@object: -@Returns: - - - - - - - -@object: -@Returns: - - - - - - - -@keyval: -@modifiers: -@Returns: - - - - - - - -@accelerator: -@accelerator_key: -@accelerator_mods: - - - - - - - -@accelerator_key: -@accelerator_mods: -@Returns: - - - - - - - -@default_mod_mask: - - - - - - - -@Returns: - - diff --git a/docs/reference/gtk/tmpl/gtkaccellabel.sgml b/docs/reference/gtk/tmpl/gtkaccellabel.sgml deleted file mode 100644 index 7676b5c705..0000000000 --- a/docs/reference/gtk/tmpl/gtkaccellabel.sgml +++ /dev/null @@ -1,132 +0,0 @@ - -GtkAccelLabel - - -a label which displays an accelerator key on the right of the text. - - - -The #GtkAccelLabel widget is a subclass of #GtkLabel that also displays an -accelerator key on the right of the label text, e.g. 'Ctl+S'. -It is commonly used in menus to show the keyboard short-cuts for commands. - - -The accelerator key to display is not set explicitly. -Instead, the #GtkAccelLabel displays the accelerators which have been added to -a particular widget. This widget is set by calling -gtk_accel_label_set_accel_widget(). - - -For example, a #GtkMenuItem widget may have an accelerator added to emit the -"activate" signal when the 'Ctl+S' key combination is pressed. -A #GtkAccelLabel is created and added to the #GtkMenuItem, and -gtk_accel_label_set_accel_widget() is called with the #GtkMenuItem as the -second argument. The #GtkAccelLabel will now display 'Ctl+S' after its label. - - -Note that creating a #GtkMenuItem with gtk_menu_item_new_with_label() (or -one of the similar functions for #GtkCheckMenuItem and #GtkRadioMenuItem) -automatically adds a #GtkAccelLabel to the #GtkMenuItem and calls -gtk_accel_label_set_accel_widget() to set it up for you. - - -A #GtkAccelLabel will only display accelerators which have GTK_ACCEL_VISIBLE -set (see #GtkAccelFlags). -A #GtkAccelLabel can display multiple accelerators and even signal names, -though it is almost always used to display just one accelerator key. - - - -Creating a simple menu item with an accelerator key. - - GtkWidget *save_item; - GtkAccelGroup *accel_group; - - /* Create a #GtkAccelGroup and add it to the window. */ - accel_group = gtk_accel_group_new (); - gtk_window_add_accel_group (GTK_WINDOW (window), accel_group); - - /* Create the menu item using the convenience function. */ - save_item = gtk_menu_item_new_with_label ("Save"); - gtk_widget_show (save_item); - gtk_container_add (GTK_CONTAINER (menu), save_item); - - /* Now add the accelerator to the #GtkMenuItem. Note that since we called - gtk_menu_item_new_with_label() to create the #GtkMenuItem the - #GtkAccelLabel is automatically set up to display the #GtkMenuItem - accelerators. We just need to make sure we use GTK_ACCEL_VISIBLE here. */ - gtk_widget_add_accelerator (save_item, "activate", accel_group, - GDK_s, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); - - - - - - - - -Keyboard Accelerators - -installing and using keyboard short-cuts. - - - -#GtkItemFactory -an easier way to create menus. - - - - - - - -The #GtkAccelLabel-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkAccelLabel. - - -@string: the label string. -@Returns: a new #GtkAccelLabel. - - - - -Sets the widget whose accelerators are to be shown. - - -@accel_label: a #GtkAccelLabel. -@accel_widget: the widget whose accelerators are to be displayed. - - - - -Returns the width needed to display the accelerator key(s). -This is used by menus to align all of the #GtkMenuItem widgets, and shouldn't -be needed by applications. - - -@accel_label: a #GtkAccelLabel. -@Returns: - - - - -Recreates the string representing the accelerator keys. -This should not be needed since the string is automatically updated whenever -accelerators are added or removed from the associated widget. - - -@accel_label: a #GtkAccelLabel. -@Returns: always returns FALSE. - - - - -The widget whose accelerators are to be shown by the #GtkAccelLabel. - - diff --git a/docs/reference/gtk/tmpl/gtkadjustment.sgml b/docs/reference/gtk/tmpl/gtkadjustment.sgml deleted file mode 100644 index bef7149651..0000000000 --- a/docs/reference/gtk/tmpl/gtkadjustment.sgml +++ /dev/null @@ -1,154 +0,0 @@ - -GtkAdjustment - - -a #GtkObject representing an adjustable bounded value. - - - -The #GtkAdjustment object represents a value which has an associated lower -and upper bound, together with step and page increments, and a page size. -It is used within several GTK+ widgets, including -#GtkSpinButton, #GtkViewport, and #GtkRange (which is a base class for -#GtkHScrollbar, #GtkVScrollbar, #GtkHScale, and #GtkVScale). - - -The #GtkAdjustment object does not update the value itself. Instead -it is left up to the owner of the #GtkAdjustment to control the value. - - -The owner of the #GtkAdjustment typically calls the -gtk_adjustment_value_changed() and gtk_adjustment_changed() functions -after changing the value and its bounds. This results in the emission of the -"value_changed" or "changed" signal respectively. - - - - - - - - - -The #GtkAdjustment-struct struct contains the following fields. - - - - - - -#gfloat lower; -the minimum value. - - - -#gfloat upper; -the maximum value. - - - -#gfloat value; -the current value. - - - -#gfloat step_increment; -the increment to use to make minor changes to the value. -In a #GtkScrollbar this increment is used when the mouse is clicked on the -arrows at the top and bottom of the scrollbar, to scroll by a small amount. - - - - -#gfloat page_increment; -the increment to use to make major changes to the value. -In a #GtkScrollbar this increment is used when the mouse is clicked in the -trough, to scroll by a large amount. - - - - -#gfloat page_size; -the page size. -In a #GtkScrollbar this is the size of the area which is currently visible. - - - - - - - - - - -Creates a new #GtkAdjustment. - - -@value: the initial value. -@lower: the minimum value. -@upper: the maximum value. -@step_increment: the step increment. -@page_increment: the page increment. -@page_size: the page size. -@Returns: a new #GtkAdjustment. - - - - -Sets the #GtkAdjustment value. - - -@adjustment: a #GtkAdjustment. -@value: the new value. - - - - -Updates the #GtkAdjustment @value to ensure that the range between @lower -and @upper is in the current page (i.e. between @value and @value + -@page_size). -If the range is larger than the page size, then only the start of it will -be in the current page. -A "changed" signal will be emitted if the value is changed. - - -@adjustment: a #GtkAdjustment. -@lower: the lower value. -@upper: the upper value. - - - - -Emits a "changed" signal from the #GtkAdjustment. -This is typically called by the owner of the #GtkAdjustment after it has -changed any of the #GtkAdjustment fields other than the value. - - -@adjustment: - - - - -Emits a "value_changed" signal from the #GtkAdjusmtent. -This is typically called by the owner of the #GtkAdjustment after it has -changed the #GtkAdjustment value field. - - -@adjustment: - - - - -Emitted when one or more of the #GtkAdjustment fields have been changed, -other than the value field. - - -@adjustment: the object which received the signal. - - - -Emitted when the #GtkAdjustment value field has been changed. - - -@adjustment: the object which received the signal. - diff --git a/docs/reference/gtk/tmpl/gtkalignment.sgml b/docs/reference/gtk/tmpl/gtkalignment.sgml deleted file mode 100644 index 39338e9bb0..0000000000 --- a/docs/reference/gtk/tmpl/gtkalignment.sgml +++ /dev/null @@ -1,99 +0,0 @@ - -GtkAlignment - - -a widget which controls the alignment and size of its child. - - - -The #GtkAlignment widget controls the alignment and size of its child widget. -It has four settings: xscale, yscale, xalign, and yalign. - - -The scale settings are used to specify how much the child widget should -expand to fill the space allocated to the #GtkAlignment. -The values can range from 0 (meaning the child doesn't expand at all) to -1 (meaning the child expands to fill all of the available space). - - -The align settings are used to place the child widget within the available -area. The values range from 0 (top or left) to 1 (bottom or right). -Of course, if the scale settings are both set to 1, the alignment settings -have no effect. - - - - - - - - - -The #GtkAlignment-struct struct contains private data only, and should -be accessed using the functions below. - - - - - -Creates a new #GtkAlignment. - - -@xalign: the horizontal alignment of the child widget, from 0 (left) to 1 -(right). -@yalign: the vertical alignment of the child widget, from 0 (top) to 1 -(bottom). -@xscale: the amount that the child widget expands horizontally to fill up -unused space, from 0 to 1. -A value of 0 indicates that the child widget should never expand. -A value of 1 indicates that the child widget will expand to fill all of the -space allocated for the #GtkAlignment. -@yscale: the amount that the child widget expands vertically to fill up -unused space, from 0 to 1. The values are similar to @xscale. -@Returns: the new #GtkAlignment. - - - - -Sets the #GtkAlignment values. - - -@alignment: a #GtkAlignment. -@xalign: the horizontal alignment of the child widget, from 0 (left) to 1 -(right). -@yalign: the vertical alignment of the child widget, from 0 (top) to 1 -(bottom). -@xscale: the amount that the child widget expands horizontally to fill up -unused space, from 0 to 1. -A value of 0 indicates that the child widget should never expand. -A value of 1 indicates that the child widget will expand to fill all of the -space allocated for the #GtkAlignment. -@yscale: the amount that the child widget expands vertically to fill up -unused space, from 0 to 1. The values are similar to @xscale. - - - - -the horizontal alignment of the child widget, from 0 (left) to 1 (right). - - - - -the vertical alignment of the child widget, from 0 (top) to 1 (bottom). - - - - -the amount that the child widget expands horizontally to fill up -unused space, from 0 to 1. -A value of 0 indicates that the child widget should never expand. -A value of 1 indicates that the child widget will expand to fill all of the -space allocated for the #GtkAlignment. - - - - -the amount that the child widget expands vertically to fill up -unused space, from 0 to 1. The values are similar to @xscale. - - diff --git a/docs/reference/gtk/tmpl/gtkarg.sgml b/docs/reference/gtk/tmpl/gtkarg.sgml deleted file mode 100644 index 8e97cc2e2f..0000000000 --- a/docs/reference/gtk/tmpl/gtkarg.sgml +++ /dev/null @@ -1,202 +0,0 @@ - -Implementation of Object Properties - - -Utility function to manipulate lists of named, typed arguments. - - - -All the functions in here are marked a Non-public. -We describe it anyway because it is occasionally useful -to understand how the work is done. - - -Arguments are a way of describing a named parameter to a function. -They have two important roles within gtk+: - - - -they describe object properties. -This means that they present an interface to get and set a named-type -for any type of object in a consistent way. -(All the relevant functions to do this start with gtk_object_set -or gtk_object_get). - - - - -they describe signal arguments. -This is a lot less often needed but still useful. -Usually if you are just emitting or creating a particular signal -it is more convenient to just use gtk_signal_emit() or gtk_signal_new(). -However if you are writing a function to emit or create an arbitrary -signal, you must use gtk_signal_emitv() or gtk_signal_newv(). - - - - - - - -#GtkObject. - - - - -A structure containing information about the argument. -Returned by gtk_arg_get_info(). - - -@class_type: if the argument is an object, this is the object class type. -@name: the name of the argument. -@type: the type of the argument; it may be an object's type -or a fundamental type. -@arg_flags: flags applicable to the argument (i.e. readable, writable, -and whether it needs to be constructed). -@full_name: the object name and argument name separated by ::, -e.g. "GtkObject::user_data" or "GtkButton::label". -@arg_id: the unique argument identified. -@seq_id: ??? - - - -Creates a new argument of a certain type, set to 0 or NULL. - - -@arg_type: the type of the argument. -@Returns: the newly created #GtkArg. - - - - -It will either copy data into an existing argument or allocate a new argument -and copy the data. Strings are duplicated. All other pointers and -values are copied (shallowly-- that is the pointers themselves are -copied, not the data they point to.) - - -You should call gtk_arg_reset() on dest_arg before calling this -if the argument may contain string data that you want freed. - - -@src_arg: the argument to duplicate. -@dest_arg: the argument to copy over (or NULL to create a new #GtkArg). -@Returns: the new #GtkArg (or dest_arg, if it was not NULL). - - - - -Frees the argument, and optionally its contents. - - -@arg: the argument to free. -@free_contents: whether to free the string, if it is a string. - - - - -Private: given a hashtable of argument information it takes a vararg -list and parses it into arguments (in the form of lists of #GtkArgs -and lists of #GtkArgInfos. - - -The list of arguments starts with first_arg_name then the first argument's -value. Followed by any number of additional name/argument pairs, -terminated with NULL. - - -@object_type: the type of object we are collecting arguments for. -@arg_info_hash_table: a hashtable mapping from names of arguments -to their #GtkArgInfos. -@arg_list_p: a returned list of arguments obtained from parsing the -varargs. -@info_list_p: a returned list of the #GtkArgInfos. -@first_arg_name: the name of the first argument. -@var_args: a va_list containing the value of the first argument, -followed by name/value pairs, followed by NULL. -@Returns: an error message on failure, or NULL otherwise. - - - - -Private: erase lists of arguments returned from gtk_args_collect(). - - -@arg_list: arg_list_p returned from gtk_args_collect(). -@info_list: info_list_p returned from gtk_args_collect(). - - - - -Private: get information about an argument. - - -@object_type: the type of object. -@arg_info_hash_table: the hashtable of #GtkArgInfos. -@arg_name: the name of the argument to lookup. -@info_p: the argument info. -@Returns: an error message on failure, or NULL otherwise. - - - - -Create a new argument registered with a class. - - -@base_class_type: the basic type having the arguments, almost alway -GTK_TYPE_OBJECT, except if your defining a different type argument -that gets a different namespace. #GtkContainer does this to define -per-child arguments of the container. -@arg_name: name of the argument to create. (must be a static constant string) -@class_n_args_offset: offset into the base class structure that tells -the number of arguments. -@arg_info_hash_table: hashtable of #GtkArgInfos. -@arg_type: type of the argument. -@arg_flags: flags of the argument. -@arg_id: ??? -@Returns: the new #GtkArgInfo. - - - - -Private: from a class type and its arginfo hashtable, -get an array of #GtkArgs that this object accepts. - - -@class_type: the class type. -@arg_info_hash_table: the hashtable of #GtkArgInfos. -@arg_flags: returned array of argument flags. -@n_args_p: the number of arguments this object accepts. -@Returns: the array of arguments (or NULL on error). - - - - -Given a fully qualified argument name (e.g. "GtkButton::label") -it returns just the argument name (e.g. "label") unless -the argument name was invalid, in which case it returns NULL. - - -@arg_name: the fully-qualified argument name. -@Returns: the base argument name. - - - - -A #GCompareFunc for hashing #GtkArgInfos. - - -@arg_info_1: a #GtkArgInfo. -@arg_info_2: a #GtkArgInfo. -@Returns: whether the arguments are the same. - - - - -A #GHashFunc for hashing #GtkArgInfos. - - -@arg_info: a #GtkArgInfo. -@Returns: a hash value for that #GtkArgInfo. - - diff --git a/docs/reference/gtk/tmpl/gtkarrow.sgml b/docs/reference/gtk/tmpl/gtkarrow.sgml deleted file mode 100644 index dd3eaf25bb..0000000000 --- a/docs/reference/gtk/tmpl/gtkarrow.sgml +++ /dev/null @@ -1,89 +0,0 @@ - -GtkArrow - - -produces an arrow pointing in one of the four cardinal directions. - - - -GtkArrow should be used to draw simple arrows that need to point in -one of the four cardinal directions (up, down, left, or right). The -style of the arrow can be one of shadow in, shadow out, etched in, or -etched out. Note that these directions and style types may be -ammended in versions of Gtk to come. - - -GtkArrow will fill any space alloted to it, but since it is inherited -from #GtkMisc, it can be padded and/or aligned, to fill exactly the -space the programmer desires. - - -Arrows are created with a call to gtk_arrow_new(). The direction or -style of an arrow can be changed after creation by using gtk_arrow_set(). - - - - - - - -gtk_paint_arrow() -the function used internally to paint the arrow. - - - - - - - -The #GtkArrow-struct containes the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#gint16 arrow_type; -the direction of the arrow, one of #GtkArrowType. - - - -#gint16 shadow_type; -the style of the arrow, one of #GtkShadowType. - - - - - - - -Creates a new arrow widget. - - -@arrow_type: a valid #GtkArrowType. -@shadow_type: a valid #GtkShadowType. -@Returns: the new #GtkArrow widget. - - - - -Sets the direction and style of the #GtkArrow, @arrow. - - -@arrow: a widget of type #GtkArrow. -@arrow_type: a valid #GtkArrowType. -@shadow_type: a valid #GtkShadowType. - - - - -the arrow direction, one of #GtkArrowType. - - - - -the arrow style, one of #GtkShadowType. - - diff --git a/docs/reference/gtk/tmpl/gtkaspectframe.sgml b/docs/reference/gtk/tmpl/gtkaspectframe.sgml deleted file mode 100644 index 9a6960578e..0000000000 --- a/docs/reference/gtk/tmpl/gtkaspectframe.sgml +++ /dev/null @@ -1,65 +0,0 @@ - -GtkAspectFrame - - -A frame that constrains its child to a particular aspect ratio. - - - -The #GtkAspectFrame is useful when you want -pack a widget so that it can resize but always retains -the same aspect ratio. For instance, one might be -drawing a small preview of a larger image. #GtkAspectFrame -derives from #GtkFrame, so it can draw a label and -a frame around the child. The frame will be -"shrink-wrapped" to the size of the child. - - - - - - - - - - - - - - - -Create a new #GtkAspectFrame. - - -@label: Label text. -@xalign: Horizontal alignment of the child within the allocation of -the #GtkAspectFrame. This ranges from 0.0 (left aligned) -to 1.0 (right aligned) -@yalign: Vertical alignment of the child within the allocation of -the #GtkAspectFrame. This ranges from 0.0 (left aligned) -to 1.0 (right aligned) -@ratio: The desired aspect ratio. -@obey_child: If %TRUE, @ratio is ignored, and the aspect - ratio is taken from the requistion of the child. -@Returns: the new #GtkAspectFrame. - -@ratio: The desired aspect ratio. - - - - -Set parameters for an existing #GtkAspectFrame. - - -@aspect_frame: a #GtkAspectFrame -@xalign: Horizontal alignment of the child within the allocation of -the #GtkAspectFrame. This ranges from 0.0 (left aligned) -to 1.0 (right aligned) -@yalign: Vertical alignment of the child within the allocation of -the #GtkAspectFrame. This ranges from 0.0 (left aligned) -to 1.0 (right aligned) -@ratio: The desired aspect ratio. -@obey_child: If %TRUE, @ratio is ignored, and the aspect - ratio is taken from the requistion of the child. - - diff --git a/docs/reference/gtk/tmpl/gtkbbox.sgml b/docs/reference/gtk/tmpl/gtkbbox.sgml deleted file mode 100644 index a73be12568..0000000000 --- a/docs/reference/gtk/tmpl/gtkbbox.sgml +++ /dev/null @@ -1,202 +0,0 @@ - -GtkButtonBox - - -Base class for #GtkHButtonBox and #GtkVButtonBox - - - -The primary purpose of this class is to keep track of the various properties -of #GtkHButtonBox and #GtkVButtonBox widgets. - - -gtk_button_box_get_child_size_default() retrieves the default minimum width and height -for widgets in any button box. gtk_button_box_set_child_size_default() -changes the default minimum child widget size. - - -gtk_button_box_get_child_size() retrieves the minimum width and height -for widgets in a given button box. gtk_button_box_set_child_size() -allows those properties to be changed. - - -gtk_button_box_get_child_ipadding_default() gets the default number of pixels of -horizontal and vertical padding that are applied to each button in every button box. -gtk_button_box_set_child_ipadding_default() allows these defaults to be -changed. - - -The internal padding of buttons can be retrieved and changed per button box using -gtk_button_box_get_child_ipadding() and gtk_button_box_set_child_ipadding() -respectively. - - -gtk_button_box_get_spacing() and gtk_button_box_set_spacing() retrieve and -change default number of pixels between buttons, respectively. - - -gtk_button_box_get_layout() and gtk_button_box_set_layout() retrieve and alter the method -used to spread the buttons in a button box across the container, respectively. - - - - - - - - - - -#GtkVButtonBox -Vertical sub-class of #GtkButtonBox. - - -#GtkHButtonBox -Horizontal sub-class of #GtkButtonBox. - - - - - - -This is a read-only struct; no members should be modified directly. - - - - - -Used internally only. - - - - - - -Retrieves the default minimum width and height for all button boxes, and -places the values in @min_width and @min_height, respectively. - - -@min_width: the default minimum width of a child widget. -@min_height: the default minimum height of a child widget. - - - - -The internal padding of a button is the amount of space between the outside -of the button and the widget it contains. This function gets the default -amount of horizontal and vertical padding, placing the results in @ipad_x -and @ipad_y, respectively. - - -@ipad_x: the default horizontal internal button padding. -@ipad_y: the default vertical internal button padding. - - - - -Sets the default size of child buttons. - - -@min_width: minimum default width for child buttons. -@min_height: minimum default height for child buttons. - - - - -Sets the default number of pixels that pad each button in every button box. - - -@ipad_x: new default horizontal padding. -@ipad_y: new default vertical padding. - - - - -Retrieves how much space a button box is placing between each child button. - - -@widget: a #GtkButtonBox. -@Returns: the current spacing applied to the buttons in @widget. - - - - -Retrieves the method being used to arrange the buttons in a button box. - - -@widget: a #GtkButtonBox. -@Returns: the method used to layout buttons in @widget. - - - - -Retrieves the current width and height of all child widgets in a button box. -@min_width and @min_height are filled with those values, respectively. - - -@widget: a #GtkButtonBox. -@min_width: the width of the buttons contained by @widget. -@min_height: the height of the buttons contained by @widget. - - - - -Gets the default number of pixels that pad the buttons in a given button box. - - -@widget: a #GtkButtonBox. -@ipad_x: the horizontal padding used by buttons in @widget. -@ipad_y: the vertical padding used by buttons in @widget. - - - - -Sets the amount of spacing between buttons in a given button box. - - -@widget: a #GtkButtonBox. -@spacing: the number of pixels of spacing. - - - - -Changes the way buttons are arranged in their container. - - -@widget: a #GtkButtonBox. -@layout_style: the new layout style. - - - - -Sets a new default size for the children of a given button box. - - -@widget: a #GtkButtonBox. -@min_width: a default width for buttons in @widget. -@min_height: a default height for buttons in @widget. - - - - -Changes the amount of internal padding used by all buttons in a given button -box. - - -@widget: a #GtkButtonBox. -@ipad_x: the horizontal padding that should be used by each button in @widget. -@ipad_y: the vertical padding that should be used by each button in @widget. - - - - -This is an internally used function and should never be called from an -application. - - -@widget: -@nvis_children: -@width: -@height: - - diff --git a/docs/reference/gtk/tmpl/gtkbin.sgml b/docs/reference/gtk/tmpl/gtkbin.sgml deleted file mode 100644 index 400fc8e2b7..0000000000 --- a/docs/reference/gtk/tmpl/gtkbin.sgml +++ /dev/null @@ -1,42 +0,0 @@ - -GtkBin - - -a container with just one child. - - - -The #GtkBin widget is a container with just one child. -It is not very useful itself, but it is useful for deriving subclasses, -since it provides common code needed for handling a single child widget. - - -Many GTK+ widgets are subclasses of #GtkBin, including #GtkWindow, #GtkButton, -#GtkFrame, #GtkHandleBox, and #GtkScrolledWindow. - - - - - - - - - -The #GtkBin-struct struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#GtkWidget *child; -the child widget. - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkbindings.sgml b/docs/reference/gtk/tmpl/gtkbindings.sgml deleted file mode 100644 index a5c84f097d..0000000000 --- a/docs/reference/gtk/tmpl/gtkbindings.sgml +++ /dev/null @@ -1,243 +0,0 @@ - -Bindings - - - - - - - - - - - - - - - - - - - -@match_type: -@pattern_length: -@pattern: -@pattern_reversed: -@user_data: -@seq_id: - - - - - - -@pspec: -@pattern: - - - - - - - -@pspec: - - - - - - - -@pspec: -@string_length: -@string: -@string_reversed: -@Returns: - - - - - - - -@pspec: -@string: -@Returns: - - - - - - - -@pattern: -@string: -@Returns: - - - - - - - -@set_name: -@priority: -@widget_path_pspecs: -@widget_class_pspecs: -@class_branch_pspecs: -@entries: -@current: - - - - - - -@keyval: -@modifiers: -@binding_set: -@destroyed: -@in_emission: -@set_next: -@hash_next: -@signals: - - - - - - -@next: -@signal_name: -@n_args: -@args: - - - - - - -@arg_type: - - - - - - -@set_name: -@Returns: - - - - - - - -@object_class: -@Returns: - - - - - - - -@set_name: -@Returns: - - - - - - - -@object: -@keyval: -@modifiers: -@Returns: - - - - - - - -@binding_set: -@keyval: -@modifiers: -@object: -@Returns: - - - - - - - - - - - - - - -@binding_set: -@keyval: -@modifiers: - - - - - - - -@binding_set: -@keyval: -@modifiers: -@signal_name: -@n_args: -@Varargs: - - - - - - - -@binding_set: -@path_type: -@path_pattern: -@priority: - - - - - - - -@binding_set: -@keyval: -@modifiers: - - - - - - - -@binding_set: -@keyval: -@modifiers: -@signal_name: -@binding_args: - - - - - - - -@scanner: -@Returns: - - diff --git a/docs/reference/gtk/tmpl/gtkbox.sgml b/docs/reference/gtk/tmpl/gtkbox.sgml deleted file mode 100644 index 442da31201..0000000000 --- a/docs/reference/gtk/tmpl/gtkbox.sgml +++ /dev/null @@ -1,366 +0,0 @@ - -GtkBox - - -a base class for box containers - - - -GtkBox is an abstract widget which encapsulates functionallity for a -particular kind of container, one that organizes a variable number of -widgets into a rectangular area. GtkBox currently has two derived -classes, #GtkHBox and #GtkVBox. - - -The rectangular area of a GtkBox is organized into either a single row -or a single column of child widgets depending upon whether the box is -of type #GtkHBox or #GtkVBox, respectively. Thus, all children of a -GtkBox are allocated one dimension in common, which is the height of a -row, or the width of a column. - - -GtkBox uses a notion of packing. Packing refers to -adding widgets with reference to a particular position in a -#GtkContainer. For a GtkBox, there are two reference positions: the -start and the end of the box. For a -#GtkVBox, the start is defined as the top of the box and the end is -defined as the bottom. For a #GtkHBox the start is defined as the -left side and the end is defined as the right side. - - -Use repeated calls to gtk_box_pack_start() to pack widgets into a -GtkBox from start to end. Use gtk_box_pack_end() to add widgets from -end to start. You may intersperse these calls and add widgets from -both ends of the same GtkBox. - - -Use gtk_box_pack_start_defaults() or gtk_box_pack_end_defaults() -to pack widgets into a GtkBox if you do not need to specify the -expand, fill, or -padding attributes of the child to be -added. - - -Because GtkBox is a #GtkContainer, you may also use -gtk_container_add() to insert widgets into the box, and they will be -packed as if with gtk_box_pack_start_defaults(). Use -gtk_container_remove() to remove widgets from the GtkBox. - - -Use gtk_box_set_homogeneous() to specify whether or not all children -of the GtkBox are forced to get the same amount of space. - - -Use gtk_box_set_spacing() to determine how much space will be -minimally placed between all children in the GtkBox. - - -Use gtk_box_reorder_child() to move a GtkBox child to a different -place in the box. - - -Use gtk_box_set_child_packing() to reset the -expand, fill, -and padding attributes of any GtkBox child. -Use gtk_box_query_child_packing() to query these fields. - - - - - - - -#GtkHBox -a derived class that organizes widgets into a row. - - - -#GtkVBox -a derived class that organizes widgets into a column. - - - -#GtkFrame -a #GtkWidget useful for drawing a border around a GtkBox. - - - -#GtkTable -a #GtkContainer for organizing widgets into a grid, -rather than independent rows or columns. - - - -#GtkLayout -a #GtkContainer for organizing widgets into arbitrary -layouts. - - - - - - - - -The #GtkBox-struct describes an instance of GtkBox and contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#GList * children; -a list of children belonging the GtkBox. The data is a list of -structures of type #GtkBoxChild-struct. - - - -#gint16 spacing; -the number of pixels to put between children of the GtkBox, zero -by default. Use gtk_box_set_spacing() to set this field. - - - -#guint homogeneous; -a flag that if %TRUE forces all children to get equal space in -the GtkBox; %FALSE by default. Use gtk_box_set_homogeneous() to set this -field. - - - - - - - -The #GtkBoxChild-struct holds a child widget of GtkBox and describes -how the child is to be packed into the GtkBox. Use -gtk_box_query_child_packing() and gtk_box_set_child_packing() to query -and reset the padding, -expand, fill, -and pack fields. - - -#GtkBoxChild-struct contains the following fields. (These fields -should be considered read-only. They should never be directly set by an -application.) - - - - - - -#GtkWidget * widget; -the child widget, packed into the GtkBox. - - - -#guint16 padding; -the number of extra pixels to put between this child and its -neighbors, set when packed, zero by default. - - - -#guint expand; -flag indicates whether extra space should be given to this -child. Any extra space given to the parent GtkBox is divided up among -all children with this attribute set to %TRUE; set when packed, %TRUE by -default. - - - -#guint fill; -flag indicates whether any extra space given to this child due to its -expand attribute being set is actually -allocated to the child, rather than being used as padding -around the widget; set when packed, %TRUE by default. - - - -#guint pack; one of -#GtkPackType indicating whether the child is packed with reference to -the start (top/left) or end (bottom/right) of the GtkBox. - - - - -@widget: -@padding: -@expand: -@fill: -@pack: - - - -Adds @child to @box, packed with reference to the start of @box. The -@child is packed after any other child packed with reference to the -start of @box. - - -@box: a #GtkBox. -@child: the #GtkWidget to be added to @box. -@expand: %TRUE if the new child is to be given extra space allocated to -@box. The extra space will be divided evenly between all children of -@box that use this option. -@fill: %TRUE if space given to @child by the @expand option is -actually allocated to @child, rather than just padding it. This -parameter has no effect if @expand is set to %FALSE. A child is -always allocated the full height of a #GtkHBox and the full width of a -#GtkVBox. This option affects the other dimension. -@padding: extra space in pixels to put between this child and its -neighbors, over and above the global amount specified by -spacing in #GtkBox-struct. If @child is a -widget at one of the reference ends of @box, then @padding pixels are also put -between @child and the reference edge of @box. - - - - -Adds @child to @box, packed with reference to the end of @box. The -@child is packed after (away from end of) any other child packed with reference to the -end of @box. - - -@box: a #GtkBox. -@child: the #GtkWidget to be added to @box. -@expand: %TRUE if the new child is to be given extra space allocated to -@box. The extra space will be divided evenly between all children of -@box that use this option. -@fill: %TRUE if space given to @child by the @expand option is -actually allocated to @child, rather than just padding it. This -parameter has no effect if @expand is set to %FALSE. A child is -always allocated the full height of a #GtkHBox and the full width of a -#GtkVBox. This option affects the other dimension. -@padding: extra space in pixels to put between this child and its -neighbors, over and above the global amount specified by -spacing in #GtkBox-struct. If @child is a -widget at one of the reference ends of @box, then @padding pixels are also put -between @child and the reference edge of @box. - - - - -Adds @widget to @box, packed with reference to the start of @box. The -child is packed after any other child packed with reference to the -start of @box. - - -Parameters for how to pack the child @widget, -expand, fill, -and padding in #GtkBoxChild-struct, are given their default -values, %TRUE, %TRUE, and 0, respectively. - - -@box: a #GtkBox. -@widget: the #GtkWidget to be added to @box. - - - - -Adds @widget to @box, packed with reference to the end of @box. The -child is packed after (away from end of) any other child packed with -reference to the end of @box. - - -Parameters for how to pack the child @widget, -expand, fill, -and padding in #GtkBoxChild-struct, are given their default -values, %TRUE, %TRUE, and 0, respectively. - - -@box: a #GtkBox. -@widget: the #GtkWidget to be added to @box. - - - - -Sets the homogeneous field of -#GtkBox-struct, controlling whether or not all children of @box are -given equal space in the box. - - -@box: a #GtkBox. -@homogeneous: a boolean value, %TRUE to create equal allotments, -%FALSE for variable allotments. - - - - -Sets the spacing field of #GtkBox-struct, -which is the number of pixels to place between children of @box. - - -@box: a #GtkBox. -@spacing: the number of pixels to put between children. - - - - -Moves @child to a new @position in the list of @box children. The -list is the children field of -#GtkBox-struct, and contains both widgets packed #GTK_PACK_START as -well as widgets packed #GTK_PACK_END, in the order that these widgets -were added to @box. - - -A widget's position in the @box children list determines where the -widget is packed into @box. A child widget at some position in the -list will be packed just after all other widgets of the same packing -type that appear earlier in the list. A negative value of @position is -interpreted as position 0. - - -@box: a #GtkBox. -@child: the #GtkWidget to move. -@position: the new position for @child in the -children list of #GtkBox-struct, starting -from 0. - - - - -Returns information about how @child is packed into @box. - - -@box: a #GtkBox. -@child: the #GtkWidget of the child to query. -@expand: the returned value of the expand -field in #GtkBoxChild-struct. -@fill: the returned value of the fill field -in #GtkBoxChild-struct. -@padding: the returned value of the padding -field in #GtkBoxChild-struct. -@pack_type: the returned value of the pack -field in #GtkBoxChild-struct. - - - - -Sets the way @child is packed into @box. - - -@box: a #GtkBox. -@child: the #GtkWidget of the child to set. -@expand: the new value of the expand field -in #GtkBoxChild-struct. -@fill: the new value of the fill field in -#GtkBoxChild-struct. -@padding: the new value of the padding -field in #GtkBoxChild-struct. -@pack_type: the new value of the pack field -in #GtkBoxChild-struct. - - - - -the minimum amount of space to put between children. Refers to the -spacing field of #GtkBox-struct. - - - - -how to allocate space for children, equally or variably. Refers to -the homogeneous field of #GtkBox-struct. - - diff --git a/docs/reference/gtk/tmpl/gtkbutton.sgml b/docs/reference/gtk/tmpl/gtkbutton.sgml deleted file mode 100644 index 7438cf40c7..0000000000 --- a/docs/reference/gtk/tmpl/gtkbutton.sgml +++ /dev/null @@ -1,158 +0,0 @@ - -GtkButton - - -A widget that creates a signal when clicked on. - - - -The #GtkButton widget is generally used to attach a function to that -is called when the button is pressed. The various signals and how to use -them are outlined below. - - -The #GtkButton widget can hold any valid child widget. That is it can -hold most any other standard #GtkWidget. The most commonly used child is -the #GtkLabel. - - - - - - - - - -This should not be accessed directly. Use the accessor functions below. - - - - - -Creates a new #GtkButton widget. - - -@Returns: The newly created #GtkButton widget. - - - - -Creates a #GtkButton widget with a #GtkLabel child containing the given -text. - - -@label: The text you want the #GtkLabel to hold. -@Returns: The newly created #GtkButton widget. - - - - -Emits a #GtkButton::pressed signal to the given #GtkButton. - - -@button: The #GtkButton you want to send the signal to. - - - - -Emits a #GtkButton::released signal to the given #GtkButton. - - -@button: The #GtkButton you want to send the signal to. - - - - -Emits a #GtkButton::clicked signal to the given #GtkButton. - - -@button: The #GtkButton you want to send the signal to. - - - - -Emits a #GtkButton::enter signal to the given #GtkButton. - - -@button: The #GtkButton you want to send the signal to. - - - - -Emits a #GtkButton::leave signal to the given #GtkButton. - - -@button: The #GtkButton you want to send the signal to. - - - - -Sets the relief style of the edges of the given #GtkButton widget. -Three styles exist, GTK_RELIEF_NORMAL, GTK_RELIEF_HALF, GTK_RELIEF_NONE. -The default style is, as one can guess, GTK_RELIEF_NORMAL. - - - - -@button: The #GtkButton you want to set relief styles of. -@newstyle: The GtkReliefStyle as described above. - - - - -Returns the current relief style of the given #GtkButton. - - -@button: The #GtkButton you want the #GtkReliefStyle from. -@Returns: The current #GtkReliefStyle - - - - -Emitted when the button is initially pressed. - - -@button: the object which received the signal. - - - -Emitted when a button which is pressed is released, no matter where the -mouse cursor is. - - -@button: the object which received the signal. - - - -Emitted when a button clicked on by the mouse and the cursor stays on the -button. If the cursor is not on the button when the mouse button is released, -the signal is not emitted. - - -@button: the object which received the signal. - - - -Emitted when the mouse cursor enters the region of the button. - - -@button: the object which received the signal. - - - -Emitted when the mouse cursor leaves the region of the button. - - -@button: the object which received the signal. - - - -The text within the child #GtkLabel of the #GtkButton. Only useful if -there is actually a #GtkLabel inside of the #GtkButton. - - - - -The #GtkReliefStyle as outlined in gtk_button_set_relief(). - - diff --git a/docs/reference/gtk/tmpl/gtkcalendar.sgml b/docs/reference/gtk/tmpl/gtkcalendar.sgml deleted file mode 100644 index b7bc326498..0000000000 --- a/docs/reference/gtk/tmpl/gtkcalendar.sgml +++ /dev/null @@ -1,240 +0,0 @@ - -GtkCalendar - - -display a calendar and/or allow the user to select a date. - - - -#GtkCalendar is a widget that displays a calendar, one month at a time. -It can be created with gtk_calendar_new(). - - -The month and year currently displayed can be altered with -gtk_calendar_select_month(). The exact day can be selected from the displayed -month using gtk_calendar_select_day(). - - -FIXME: (check)To place a visual marker on a particular day, use -gtk_calendar_mark_day() and to remove the marker, gtk_calendar_unmark_day(). -Alternative, all marks can be cleared with gtk_calendar_clear_marks(). - - -The way in which the calendar itself is displayed can be altered using -gtk_calendar_display_options(). - - -The selected date can be retrieved from a #GtkCalendar using -gtk_calendar_get_date(). - - -If performing many 'mark' operations, the calendar can be frozen to prevent -flicker, using gtk_calendar_freeze(), and 'thawed' again using -gtk_calendar_thaw(). - - - - - - - - - -num_marked_dates is an integer containing the -number of days that have a mark over them. - - -marked_date is an array containing the day numbers -that currently have a mark over them. - - -month, year, and -selected_day contain the currently visible month, -year, and selected day respectively. - - -All of these fields should be considered read only, and everything in this -struct should only be modified using the functions provided below. - - - - - - - - - - -GTK_CALENDAR_SHOW_HEADING -Specifies that the month and year should be displayed. - - -GTK_CALENDAR_SHOW_DAY_NAMES -Specifies that three letter day descriptions should be present. - - -GTK_CALENDAR_NO_MONTH_CHANGE -Prevents the user from switching months with the calendar. - - -GTK_CALENDAR_SHOW_WEEK_NUMBERS -Displays each week numbers of the current year, down the left side of -the calendar. - - -GTK_CALENDAR_WEEK_START_MONDAY -Starts the calendar week on Monday, instead of the default Sunday. - - - - - -@GTK_CALENDAR_SHOW_HEADING: -@GTK_CALENDAR_SHOW_DAY_NAMES: -@GTK_CALENDAR_NO_MONTH_CHANGE: -@GTK_CALENDAR_SHOW_WEEK_NUMBERS: -@GTK_CALENDAR_WEEK_START_MONDAY: - - - -Creates a new calendar. FIXME:default date. - - -@Returns: a #GtkCalendar. - - - - -Shifts the calendar to a different month. - - -@calendar: a #GtkCalendar. -@month: a month number. -@year: the year the month is in. -@Returns: FIXME. - - - - -Selects a day from the current month. - - -@calendar: a #GtkCalendar. -@day: the day number to select. - - - - - - - -@calendar: -@day: -@Returns: - - - - - - - -@calendar: -@day: -@Returns: - - - - - - - -@calendar: - - - - - - - -@calendar: -@flags: - - - - - - - -@calendar: -@year: -@month: -@day: - - - - -Locks the display of the calendar until it is thawed with gtk_calendar_thaw(). - - -@calendar: a #GtkCalendar. - - - - -Defrosts a calendar; all the changes made since the last -gtk_calendar_freeze() are displayed. - - -@calendar: a #GtkCalendar. - - - - -Emitted when the user clicks a button to change the selected month on a -calendar. - - -@calendar: the object which received the signal. - - - -Emitted when the user selects a day. - - -@calendar: the object which received the signal. - - - - - - -@calendar: the object which received the signal. - - - - - - -@calendar: the object which received the signal. - - - - - - -@calendar: the object which received the signal. - - - - - - -@calendar: the object which received the signal. - - - - - - -@calendar: the object which received the signal. - diff --git a/docs/reference/gtk/tmpl/gtkcheckbutton.sgml b/docs/reference/gtk/tmpl/gtkcheckbutton.sgml deleted file mode 100644 index cf2929b1d6..0000000000 --- a/docs/reference/gtk/tmpl/gtkcheckbutton.sgml +++ /dev/null @@ -1,59 +0,0 @@ - -GtkCheckButton - - -create widgets with a discrete toggle button. - - - -A #GtkCheckButton places a discrete #GtkToggleButton next to a widget, (usually a #GtkLabel). See the section on #GtkToggleButton widgets for more information about toggle/check buttons. - - -The important signal ('toggled') is also inherited from #GtkToggleButton. - - - - - - -#GtkCheckMenuItem -add check buttons to your menus. - - -#GtkButton -a more general button. - - -#GtkToggleButton -#GtkCheckButton's parent. - - -#GtkRadioButton -group check buttons together. - - - - - - -toggle_button is a #GtkToggleButton representing the actual toggle button that composes the check button. - - - - - -Creates a new #GtkCheckButton. - - -@Returns: a #GtkWidget. - - - - -Creates a new #GtkCheckButton with a #GtkLabel to the right of it. - - -@label: the text for the check button. -@Returns: a #GtkWidget. - - diff --git a/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml b/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml deleted file mode 100644 index 0cbac1879e..0000000000 --- a/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml +++ /dev/null @@ -1,108 +0,0 @@ - -GtkCheckMenuItem - - -a menu item with a check box. - - - -A #GtkCheckMenuItem is a menu item that maintains the state of a boolean -value in addition to a #GtkMenuItem's usual role in activating application -code. - - - -A check box indicating the state of the boolean value is displayed -at the left side of the #GtkMenuItem. Activating the #GtkMenuItem -toggles the value. - - - - - - - - - -The #GtkCheckMenuItem-struct struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#guint active; -TRUE if the check box is active. - - - - - - - - -Creates a new #GtkCheckMenuItem. - - -@Returns: a new #GtkCheckMenuItem. - - - - -Creates a new #GtkCheckMenuItem with a label. - - -@label: the string to use for the label. -@Returns: a new #GtkCheckMenuItem. - - - - -This macro is provided to preserve compatibility with older code. -New code should use gtk_check_menu_item_set_active() function instead. - - - - - - -Sets the active state of the menu item's check box. - - -@check_menu_item: a #GtkCheckMenuItem. -@is_active: boolean value indicating whether the check box is active. - - - - -Controls whether the check box is shown at all times. -Normally the check box is shown only when it is active or while the -menu item is selected. - - -@menu_item: a #GtkCheckMenuItem. -@always: boolean value indicating whether to always show the check box. - - - - -Emits the GtkCheckMenuItem::toggled signal. - - -@check_menu_item: a #GtkCheckMenuItem. - - - - -This signal is emitted when the state of the check box is changed. - - - -A signal handler can examine the active -field of the #GtkCheckMenuItem-struct struct to discover the new state. - - -@checkmenuitem: the object which received the signal. - diff --git a/docs/reference/gtk/tmpl/gtkclist.sgml b/docs/reference/gtk/tmpl/gtkclist.sgml deleted file mode 100644 index 12adbd8cdd..0000000000 --- a/docs/reference/gtk/tmpl/gtkclist.sgml +++ /dev/null @@ -1,1317 +0,0 @@ - -GtkCList - - -A multi-columned scrolling list widget. - - - -The #GtkCList widget is a very useful multi-columned scrolling list. It can display -data in nicely aligned vertical columns, with titles at the top of the list. - - - - - - - - - -This is the embodiment of the #GtkCList widget. This structure contains -only private data, and should be accessed only via the CList API. - - - - - -Identifies the type of element in the current cell of the CList. Cells can -contain text, pixmaps, or both. Unfortunately support for %GTK_CELL_WIDGET -was never completed. - - -@GTK_CELL_EMPTY: -@GTK_CELL_TEXT: -@GTK_CELL_PIXMAP: -@GTK_CELL_PIXTEXT: -@GTK_CELL_WIDGET: - - - -Values for specifying what mouse button events a CList will -react to. - - -@GTK_BUTTON_IGNORED: -@GTK_BUTTON_SELECTS: -@GTK_BUTTON_DRAGS: -@GTK_BUTTON_EXPANDS: - - - -Reads the current flags of the specified CList. - - -@clist: The #GtkCList widget from which to get the flags - - - - -A macro to set a particular flag for the specified CList. - - -@clist: The #GtkCList widget to affect. -@flag: A single #GtkCList flag to set. NOTE: Do not add the GTK_ prefix. - - - - -A macro to clear a particular flag for the specified CList. - - -@clist: The #GtkCList widget to affect. -@flag: A single #GtkCList flag to clear. NOTE: Do not add the GTK_ prefix. - - - - -A macro to check whether the #GtkCList is in "drag mode." - - -@clist: The #GtkCList to check. - - - - -A macro to check whether the #GtkCList's row height is set. - - -@clist: The #GtkCList to check. - - - - -A macro to check whether the flag for showing the -widget's column titles is set. - - -@clist: The #GtkCList widget to check. - - - - -A macro to check whether a child widget of the CList -has the focus. - - -@clist: The #GtkCList widget to check. - - - - -A macro to test whether the CList is in "add mode." - - -@clist: The #GtkCList widget to check. - - - - - -A macro to test whether the CList has automatic sorting -switched on. - - -@clist: The #GtkCList widget to check. - - - - - -A macro to check if automatic resizing of columns is blocked. - - -@clist: The #GtkCList widget to check. - - - - - -A macro to test if the CList's columns are re-orderable - - -@clist: The #GtkCList widget to check. - - - - - -A macro to check if the USE_DRAG_ICONS property is enabled. - - -@clist: The #GtkCList widget to check. - - - - - -A macro to check if the DRAW_DRAG_LINE property is enabled. - - -@clist: The #GtkCList widget to check. - - - - - -A macro to check if the DRAW_DRAG_RECT property is enabled. - - -@clist: The #GtkCList widget to check. - - - - - -A macro to cast a GList element to a CListRow pointer. - - -@_glist_: The GList element to convert. - - - - -A macro to cast a generic #GtkCList cell item to a GtkCellText pointer. - - -@cell: The #GtkCList cell item to convert. - - - - -A macro to cast a generic #GtkCList cell item to a GtkCellPixmap pointer. - - -@cell: The #GtkCList cell item to convert. - - - - -A macro to cast a generic #GtkCList cell item to a GtkCellPixText pointer. - - -@cell: The #GtkCList cell item to convert. - - - - -A macro to cast a generic #GtkCList cell item to a GtkCellWidget pointer. - - -@cell: The #GtkCList cell item to convert. - - - - -Function prototype for the compare function callback. - - -@clist: The #GtkCList that is affected. -@ptr1: A #gconstpointer to the first node to compare. -@ptr2: A #gconstpointer to the second node to compare. -@Returns: 0 if the nodes are equal, less than 0 if the first node should -come before the second, and greater than 1 if the second come before the -first. - - - - -A structure that the #GtkCList widget uses to keep track of information -about its columns. - - -@title: -@area: -@button: -@window: -@width: -@min_width: -@max_width: -@justification: -@visible: -@width_set: -@resizeable: -@auto_resize: -@button_passive: - - - -A structure that the #GtkCList widget uses to keep track of information -about its rows. - - -@cell: -@state: -@foreground: -@background: -@style: -@data: -@destroy: -@fg_set: -@bg_set: -@selectable: - - - -A structure that the #GtkCList widget uses to keep track of #GtkCList cells -that contain text. - - -@type: -@vertical: -@horizontal: -@style: -@text: - - - -A structure that the #GtkCList widget uses to keep track of #GtkCList cells -that contain a GdkPixmap. - - -@type: -@vertical: -@horizontal: -@style: -@pixmap: -@mask: - - - -A structure that the #GtkCList widget uses to keep track of #GtkCList cells -that contain a combination of text and a GdkPixmap. - - -@type: -@vertical: -@horizontal: -@style: -@text: -@spacing: -@pixmap: -@mask: - - - -A structure that the #GtkCList widget uses to keep track of #GtkCList cells -that contain another widget. - - -@type: -@vertical: -@horizontal: -@style: -@widget: - - - -A generic structure that the #GtkCList widget uses to keep track of the -contents of each of its cells. - - -@type: -@vertical: -@horizontal: -@style: -@widget: - - - -A simple structure that the #GtkCList widget uses to keep track -of the location of a cell. - - -@row: -@column: - - - -A simple structure that the #GtkCList widget uses to track -a cell for a drag operation. - - -@cell: -@insert_pos: - - - -An enumeration for drag operations. - - -@GTK_CLIST_DRAG_NONE: -@GTK_CLIST_DRAG_BEFORE: -@GTK_CLIST_DRAG_INTO: -@GTK_CLIST_DRAG_AFTER: - - - -Initializes a previously allocated #GtkCList widget for use. This should not -normally be used to create a #GtkCList widget. Use gtk_clist_new() instead. - - -@clist: A pointer to an uninitialized #GtkCList widget. -@columns: The number of columns the #GtkCList should have. -@titles: An array of strings that should be used as the titles i -of the columns. There should be enough strings in the array for -the number of columns specified. - - - - -Creates a new #GtkCList widget for use. - - -@columns: The number of columns the #GtkCList should have. -@Returns: A pointer to a new GtkCList object. - - - - -Creates a new #GtkCList widget with column titles for use. - - -@columns: The number of columns the #GtkCList should have. -@titles: A string array of titles for the widget. There should be -enough strings in the array for the specified number of columns. -@Returns: A pointer to a new GtkCList object. - - - - -Sets the shadow type for the specified CList. Changing this value -will cause the #GtkCList to update its visuals. - - -@clist: The #GtkCList to affect. -@type: The GtkShadowType desired. - - - - -Sets the selection mode for the specified CList. This allows you to -set whether only one or more than one item can be selected at a time -in the widget. Note that setting the widget's selection mode to one -of GTK_SELECTION_BROWSE or GTK_SELECTION_SINGLE will cause all the -items in the #GtkCList to become deselected. - - -@clist: The #GtkCList to affect. -@mode: The GtkSelectionMode type to set for this CList. - - - - -Causes the #GtkCList to stop updating its visuals until a matching call to -gtk_clist_thaw() is made. This function is useful if a lot of changes -will be made to the widget that may cause a lot of visual updating to -occur. Note that calls to gtk_clist_freeze() can be nested. - - -@clist: The #GtkCList to freeze. - - - - -Causes the specified #GtkCList to allow visual updates. - - -@clist: The #GtkCList to thaw. - - - - -This function causes the #GtkCList to show its column titles, if -they are not already showing. - - -@clist: The #GtkCList to affect. - - - - -Causes the #GtkCList to hide its column titles, if they are currently -showing. - - -@clist: The #GtkCList to affect. - - - - -Sets the specified column in the #GtkCList to become selectable. You can -then respond to events from the user clicking on a title button, and take -appropriate action. - - -@clist: The #GtkCList to affect. -@column: The column to make active, counting from 0. - - - - -Causes the specified column title button to become passive, i.e., does -not respond to events, such as the user clicking on it. - - -@clist: The #GtkCList to affect. -@column: The column to make passive, counting from 0. - - - - -Causes all column title buttons to become active. This is the same -as calling gtk_clist_column_title_active() for each column. - - -@clist: The #GtkCList to affect. - - - - -Causes all column title buttons to become passive. This is the same -as calling gtk_clist_column_title_passive() for each column. - - -@clist: The #GtkCList to affect. - - - - -Sets the title for the specified column. - - -@clist: The #GtkCList to affect. -@column: The column whose title should be changed. -@title: A string to be the column's title. - - - - -Sets a widget to be used as the specified column's title. This -can be used to place a pixmap or something else as the column -title, instead of the standard text. - - -@clist: The #GtkCList to affect. -@column: The column whose title should be a widget. -@widget: A pointer to a previously create widget. - - - - -Sets the justification to be used for all text in the specified -column. - - -@clist: The #GtkCList to affect. -@column: The column which should be affected. -@justification: A GtkJustification value for the column. - - - - -Allows you to set whether a specified column in the #GtkCList should -be hidden or shown. Note that at least one column must always be -showing, so attempting to hide the last visible column will be -ignored. - - -@clist: The #GtkCList to affect. -@column: The column to set visibility. -@visible: %TRUE or %FALSE. - - - - -Lets you specify whether a specified column should be resizeable -by the user. Note that turning on resizeability for the column will -automatically shut off auto-resizing, but turning off resizeability -will NOT turn on auto-resizing. This must be done manually via a -call to gtk_clist_set_column_auto_resize(). - - -@clist: The #GtkCList to affect. -@column: The column on which to set resizeability. -@resizeable: %TRUE or %FALSE. - - - - -Lets you specify whether a column should be automatically resized -by the widget when data is added or removed. Enabling auto-resize -on a column explicity disallows user-resizing of the column. - - -@clist: The #GtkCList to affect. -@column: The column on which to set auto-resizing. -@auto_resize: %TRUE or %FALSE. - - - - -Gets the required width in pixels that is needed to show -everything in the specified column. - - -@clist: The #GtkCList to check. -@column: The column to check. -@Returns: The required width in pixels for the column. - - - - -Causes the column specified for the #GtkCList to be set to -a specified width. - - -@clist: The #GtkCList to affect. -@column: The column to set the width. -@width: The width, in pixels. - - - - -Causes the column specified to have a minimum width, preventing -the user from resizing it smaller than that specified. - - -@clist: The #GtkCList to affect. -@column: The column to set the minimum width. -@min_width: The width, in pixels. - - - - -Causes the column specified to have a maximum width, preventing -the user from resizing it larger than that specified. - - -@clist: The #GtkCList to affect. -@column: The column to set the maximum width. -@max_width: The width, in pixels. - - - - -Causes the #GtkCList to have a specified height for its -rows. Setting the row height to 0 allows the #GtkCList to adjust -automatically to data in the row. - - -@clist: The #GtkCList to affect. -@height: The height, in pixels. - - - - -Tells the CList widget to visually move to the specified -row and column. - - -@clist: The #GtkCList to affect. -@row: The row to which to move. -@column: The column to which to move. -@row_align: A value between 0 and 1 that describes the positioning of -the row in relation to the viewable area of the CList's contents. -@col_align: A value between 0 and 1 that describes the positioning of -the column in relation to the viewable area of the CList's contents. - - - - -Checks how the specified row is visible. - - -@clist: The #GtkCList to affect. -@row: The row to query. -@Returns: A #GtkVisibility value that tells you how the row is visible. - - - - -Checks the type of cell at the location specified. - - -@clist: The #GtkCList to affect. -@row: The row of the cell. -@column: The column of the cell. -@Returns: A #GtkCellType value describing the cell. - - - - -Sets the displayed text in the specified cell. - - -@clist: The #GtkCList to affect. -@row: The row of the cell. -@column: The column of the cell. -@text: The text to set in the cell. - - - - -Gets the text for the specified cell. - - -@clist: The #GtkCList to affect. -@row: The row to query. -@column: The column to query. -@text: A pointer to a pointer to store the text. -@Returns: 1 if the cell's text could be retrieved, 0 otherwise. - - - - -Sets a pixmap for the specified cell. - - -@clist: The #GtkCList to affect. -@row: The row of the cell. -@column: The column of the cell. -@pixmap: A pointer to a #GdkPixmap to place in the cell. -@mask: A pointer to a #GdkBitmap mask for the cell. - - - - -Gets the pixmap and bitmap mask of the specified cell. The returned mask value can be NULL. - - -@clist: The #GtkCList to affect. -@row: The row of the cell. -@column: The column of the cell. -@pixmap: A pointer to a pointer to store the cell's #GdkPixmap. -@mask: A pointer to a pointer to store the cell's #GdkBitmap mask. -@Returns: 1 if the cell's pixmap could be retrieved, 0 otherwise. - - - - -Sets text and a pixmap/bitmap on the specified cell. - - -@clist: The #GtkCList to affect. -@row: The row of the cell. -@column: The column of the cell. -@text: The text to set in the cell. -@spacing: The spacing between the cell's text and pixmap. -@pixmap: A pointer to a #GdkPixmap for the cell. -@mask: A pointer to a #GdkBitmap mask for the cell. - - - - -Gets the text, pixmap and bitmap mask for the specified cell. - - -@clist: The #GtkCList to affect. -@row: The row to query. -@column: The column to query. -@text: A pointer to a pointer to store the text. -@spacing: A pointer to a #guint8 to store the spacing. -@pixmap: A pointer to a #GdkPixmap pointer to store the cell's pixmap. -@mask: A pointer to a #GdkBitmap pointer to store the cell's bitmap mask. -@Returns: 1 if the retrieval was successful, 0 otherwise. - - - - -Sets the foreground color for the specified row. - - -@clist: The #GtkCList to affect. -@row: The row to affect. -@color: A pointer to a #GdkColor structure. - - - - -Sets the background color for the specified row. - - -@clist: The #GtkCList to affect. -@row: The row to affect. -@color: A pointer to a #GdkColor structure. - - - - -Sets the style for the specified cell. - - -@clist: The #GtkCList to affect. -@row: The row of the cell. -@column: The column of the cell. -@style: A pointer to a #GtkStyle structure. - - - - -Gets the current style of the specified cell. - - -@clist: The #GtkCList to affect. -@row: The row of the cell. -@column: The column of the cell. -@Returns: A #GtkStyle object. - - - - -Sets the style for all cells in the specified row. - - -@clist: The #GtkCList to affect. -@row: The row to affect. -@style: A pointer to a #GtkStyle to set. - - - - -Gets the style set for the specified row. - - -@clist: The #GtkCList to affect. -@row: The row to query. -@Returns: The #GtkStyle of the row. - - - - -Sets the vertical and horizontal shift of the specified cell. - - -@clist: The #GtkCList to affect. -@row: The row of the cell. -@column: The column of the cell. -@vertical: The value to set for the vertical shift. -@horizontal: The value to set for the vertical shift. - - - - -Sets whether the specified row is selectable or not. - - -@clist: The #GtkCList to affect. -@row: The row to affect. -@selectable: %TRUE or %FALSE. - - - - -Gets whether the specified row is selectable or not. - - -@clist: The #GtkCList to affect. -@row: The row to query. -@Returns: A #gboolean value. - - - - -Adds a row to the CList at the top. - - -@clist: The #GtkCList to affect. -@text: An array of strings to add. -@Returns: The number of the row added. - - - - -Adds a row to the CList at the bottom. - - -@clist: The #GtkCList to affect. -@text: An array of strings to add. -@Returns: The number of the row added. - - - - -Adds a row of text to the CList at the specified position. - - -@clist: The #GtkCList to affect. -@row: The row where the text should be inserted. -@text: An array of string to add. -@Returns: The number of the row added. - - - - -Removes the specified row from the CList. - - -@clist: The #GtkCList to affect. -@row: The row to remove. - - - - -Sets data for the specified row. This is the same as calling gtk_clist_set_row_data_full(clist, row, data, NULL). - - -@clist: The #GtkCList to affect. -@row: The row to affect. -@data: The data to set for the row. - - - - -Sets the data for specified row, with a callback when the row is destroyed. - - -@clist: The #GtkCList to affect. -@row: The row to affect. -@data: The data to set for the row. -@destroy: A #GtkDestroyNotify function to be called when the row is destroyed. - - - - -Gets the currently set data for the specified row. - - -@clist: The #GtkCList to affect. -@row: The row to query. -@Returns: The data set for the row. - - - - -Searches the CList for the row with the specified data. - - -@clist: The #GtkCList to search. -@data: The data to search for a match. -@Returns: The number of the matching row, or -1 if no match could be found. - - - - -Selects the specified row. Causes the "select-row" signal to be emitted for the specified row and column. - - -@clist: The #GtkCList to affect. -@row: The row to select. -@column: The column to select. - - - - -Unselects the specified row. Causes the "unselect-row" signal to be emitted for the specified row and column. - - -@clist: The #GtkCList to affect. -@row: The row to select. -@column: The column to select. - - - - -Undoes the last selection for an "extended selection mode" CList. - - -@clist: The #GtkCList to affect. - - - - -Removes all the CList's rows. - - -@clist: The #GtkCList to affect. - - - - -Gets the row and column at the specified pixel position in the CList. - - -@clist: The #GtkCList to affect. -@x: The horizontal pixel position to check. -@y: The vertical pixel position to check.. -@row: Pointer to a #gint to store the row value. -@column: Pointer to a #gint to store the column value. -@Returns: 1 if row/column is returned and in range, 0 otherwise. - - - - -Selects all rows in the CList. This function has no affect for a -CList in "single" or "browse" selection mode. - - -@clist: The #GtkCList to affect. - - - - -Unselects all rows in the CList. - - -@clist: The #GtkCList to affect. - - - - -Swaps the two specified rows with each other. - - -@clist: The #GtkCList to affect. -@row1: Number of the first row. -@row2: Number of the second row. - - - - -Sets the compare function of the #GtkClist to @cmp_func. If @cmp_func is NULL, -then the default compare function is used. The default compare function sorts -ascending or with the type set by gtk_clist_set_sort_type() by the column set -by gtk_clist_set_sort_column(). - - -@clist: The #GtkCList to affect. -@cmp_func: The #GtkCompareFunction to use. - - - - -Sets the sort column of the clist. The sort column is used by the -default compare function to determine which column to sort by. - - -@clist: The #GtkCList to affect. -@column: The column to sort by - - - - -Sets the sort type of the #GtkClist. This is either GTK_SORT_ASCENDING for -ascening sort or GTK_SORT_DESCENDING for descending sort. - - -@clist: The #GtkCList to affect. -@sort_type: the #GtkSortType to use - - - - -Sorts the #GtkClist according to the current compare function, which -can be set with the gtk_clist_set_compare_func() function. - - -@clist: The #GtkCList to sort. - - - - -Turns on or off auto sort of the #GtkCList. If auto sort is on, then the CList will be resorted when a row is inserted into the CList. - - -@clist: The #GtkCList to affect. -@auto_sort: whether auto sort should be on or off - - - - -Auto-sizes all columns in the CList and returns the total width of the CList. - - -@clist: The #GtkCList to affect. -@Returns: The total width of the CList. - - - - -Gets the current title of the specified column - - -@clist: The #GtkCList to affect. -@column: The column to query. -@Returns: The title of the column. - - - - -Gets the widget in the column header for the specified column. - - -@clist: The #GtkCList to affect. -@column: The column to query. -@Returns: Pointer to a #GtkWidget for the column header. - - - - -Gets the #GtkAdjustment currently being used for the horizontal -aspect. - - -@clist: The #GtkCList to check. -@Returns: A #GtkAdjustment object, or NULL if none is currently -being used. - - - - -Gets the #GtkAdjustment currently being used for the vertical -aspect. - - -@clist: The #GtkCList to check. -@Returns: A #GtkAdjustment object, or NULL if none is currently -being used. - - - - -Allows you to move a row from one position to another in the -list. - - -@clist: The #GtkCList to affect. -@source_row: The original position of the row to move. -@dest_row: The position to which the row should be moved. - - - - -Sets the action(s) that the specified mouse button will have -on the CList. - - -@clist: The #GtkCList to affect. -@button: The mouse button to set. -@button_actions: A logically OR'd value of #GtkButtonAction values -for the button. - - - - -Allows you to set the #GtkAdjustment to be used for the horizontal -aspect of the #GtkCList widget. - - -@clist: The #GtkCList to affect. -@adjustment: A pointer to a #GtkAdjustment widget, or NULL. - - - - -Sets whether the CList's rows are re-orderable using drag-and-drop. - - -@clist: The #GtkCList to affect. -@reorderable: %TRUE or %FALSE. - - - - -Determines whether the #GtkClist should use icons when -doing drag-and-drop operations. - - -@clist: The #GtkCList to affect. -@use_icons: %TRUE or %FALSE. - - - - -Allows you to set the #GtkAdjustment to be used for the vertical -aspect of the #GtkCList widget. - - -@clist: The #GtkCList to affect. -@adjustment: A pointer to a #GtkAdjustment widget, or NULL. - - - - -This signal is emitted when the user selects a row in the list. -It is emitted for every row that is selected in a multi-selection or -by calling gtk_clist_select_all(). - - -@clist: The object which received the signal. -@row: The row selected. -@column: The column where the selection occured. -@event: A #GdkEvent structure for the selection. - - - -This signal is emitted when the user unselects a row in the list. -It is emitted for every row that is unselected in a multi-selection or -by calling gtk_clist_unselect_all(). It is also emitted for the -previously selected row in a "single" or "browse" mode CList. - - -@clist: The object which received the signal. -@row: The selected row -@column: The column where the selection occured. -@event: - - - -This signal is emitted when a row is moved. - - -@clist: The object which received the signal. -@arg1: The source position of the row. -@arg2: The destination position of the row. - - - -This signal is emitted when a column title is clicked. - - -@clist: The object which received the signal. -@column: The number of the column. - - - -This signal is emitted when a column is resized. - - -@clist: The object which received the signal. -@column: The number of the column -@width: The new width of the column. - - - - - - -@clist: The object which received the signal. - - - -This signal is emitted when all the rows are selected in a CList. - - -@clist: the object which received the signal. - - - -This signal is emitted when all rows are unselected in a CList. - - -@clist: the object which received the signal. - - - -This signal is emitted when an undo selection occurs in the CList, -probably via calling gtk_clist_undo_selection(). - - -@clist: the object which received the signal. - - - -This signal is emitted when a drag-selection is started in -a multiple-selection CList. - - -@clist: the object which received the signal. - - - -This signal is emitted when a selection ends in a -multiple selection CList. - - -@clist: the object which received the signal. - - - -This signal is emitted when "add mode" is toggled. - - -@clist: the object which received the signal. - - - -This signal is emitted when the selection is extended. - - -@clist: the object which received the signal. -@scroll_type: A #GtkScrollType value of any scrolling operation the -occured during the selection. -@position: A value between 0.0 and 1.0. -@auto_start_selection: %TRUE or %FALSE. - - - -This signal is emitted when the CList is scrolled vertically. - - -@clist: the object which received the signal. -@scroll_type: A #GtkScrollType value of how the scroll operation occured. -@position: A value between 0.0 and 1.0. - - - -This signal is emitted when the CList is scrolled horizontally. - - -@clist: the object which received the signal. -@scroll_type: A #GtkScrollType value of how the scroll operation occured. -@position: a value between 0.0 and 1.0. - - - -This signal is emitted when a column resize is aborted. - - -@clist: the object which received the signal. - - - -An integer value for a column. - - - - -Sets the shadowing for the CList. - - - - -Sets the type of selection mode for the CList. - - - - -An integer value representing the height of a row in pixels. - - - - -A boolean value for determining if the user can re-order the CList's -columns. - - - - -A boolean value for setting whether the column titles can be -clicked. - - - - -A boolean value for setting whether to use icons during drag -operations. - - diff --git a/docs/reference/gtk/tmpl/gtkcolorsel.sgml b/docs/reference/gtk/tmpl/gtkcolorsel.sgml deleted file mode 100644 index f3152384c1..0000000000 --- a/docs/reference/gtk/tmpl/gtkcolorsel.sgml +++ /dev/null @@ -1,109 +0,0 @@ - -GtkColorSelection - - -a widget used to select a color. - - - -The #GtkColorSelection is a widget that is used to select -a color. It consists of a color wheel and number of sliders -and entry boxes for color parameters such as hue, saturation, -value, red, green, blue, and opacity. It is found on the standard -color selection dialog box #GtkColorSelectionDialog. - - - - - - - - - -The #GtkColorSelection-struct struct contains private data only, -and should be accessed using the functions below. - - - - - -Create a new #GtkColorSelection. - - -@Returns: a #GtkColorSelection. - - - - -Sets the policy controlling when the color_changed signals are emitted. -The available policies are: - - - -%GTK_UPDATE_CONTINUOUS - signals are sent continuously as the color -selection changes. - - - - -%GTK_UPDATE_DISCONTINUOUS - signals are sent only when the mouse -button is released. - - - - -%GTK_UPDATE_DELAYED - signals are sent when the mouse button is -released or when the mouse has been motionless for a period of -time. - - - - - -@colorsel: a #GtkColorSelection. -@policy: a #GtkUpdateType value indicating the desired policy. - - - - -Controls whether opacity can be set with the #GtkColorSelection. -If this functionality is enabled, the necessary additional widgets -are added to the #GtkColorSelection and the opacity value can be -retrieved via the fourth value in the color array returned by -the gtk_color_selection_get_color() function. - - -@colorsel: a #GtkColorSelection. -@use_opacity: a boolean indicating whether the opacity selection -is enabled. - - - - -Sets the color in the #GtkColorSelection. The widgets are updated -to reflect the new color. - - -@colorsel: a #GtkColorSelection. -@color: a color array consisting of 4 gfloat values for red, green, -blue, and opacity. - - - - -Retrieve the currently selected color value. - - -@colorsel: a #GtkColorSelection -@color: a color array consisting of 4 gfloat values for red, green, -blue, and opacity. - - - - -This signal is emitted when the color changes in the #GtkColorSelection -according to its update policy. - - -@colorselection: the object which received the signal. - diff --git a/docs/reference/gtk/tmpl/gtkcolorseldlg.sgml b/docs/reference/gtk/tmpl/gtkcolorseldlg.sgml deleted file mode 100644 index e043e77be6..0000000000 --- a/docs/reference/gtk/tmpl/gtkcolorseldlg.sgml +++ /dev/null @@ -1,70 +0,0 @@ - -GtkColorSelectionDialog - - -a standard dialog box for selecting a color. - - - -The #GtkColorSelectionDialog provides a standard dialog which -allows the user to select a color much like the #GtkFileSelection -provides a standard dialog for file selection. - - - - - - - - - -The #GtkColorSelectionDialog-struct struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#GtkWidget *colorsel; -The #GtkColorSelection widget contained within the -dialog. Use this widget and its gtk_color_selection_get_color() -function to gain access to the selected color. Connect a handler -for this widget's color_changed signal to be notified when the -color changes. - - - - -#GtkWidget *ok_button; -The OK button widget contained within the dialog. -Connect a handler for the clicked event. - - - - -#GtkWidget *cancel_button; -The cancel button widget contained within the dialog. -Connect a handler for the clicked event. - - - - -#GtkWidget *help_button; -The help button widget contained within the dialog. -Connect a handler for the clicked event. - - - - - - - - - -Creates a new #GtkColorSelectionDialog. - - -@title: a string containing the title text for the dialog. -@Returns: a #GtkColorSelectionDialog. diff --git a/docs/reference/gtk/tmpl/gtkcombo.sgml b/docs/reference/gtk/tmpl/gtkcombo.sgml deleted file mode 100644 index 7113bbe6e4..0000000000 --- a/docs/reference/gtk/tmpl/gtkcombo.sgml +++ /dev/null @@ -1,204 +0,0 @@ - -GtkCombo - - -a text entry field with a dropdown list. - - - -The #GtkCombo widget consists of a single-line text entry field and a drop-down -list. The drop-down list is displayed when the user clicks on a small arrow -button to the right of the entry field. - - -The drop-down list is a #GtkList widget and can be accessed using the -list member of the #GtkCombo-struct. -List elements can contain arbitrary widgets, but if an element is not a -plain label, then you must use the gtk_list_set_item_string() function. -This sets the string which will be placed in the text entry field when the -item is selected. - - -By default, the user can step through the items in the list using the -arrow (cursor) keys, though this behaviour can be turned off with -gtk_combo_set_use_arrows(). - - -Normally the arrow keys are only active when the contents of the text entry -field matches one of the items in the list. If the contents of the entry field -do not match any of the list items, then pressing the arrow keys does nothing. -However, by calling gtk_combo_set_use_arrows_always() you can specify that the -arrow keys are always active. If the contents of the entry field does not match -any of the items in the list, then pressing the up or down arrow key will set -the entry field to the last or first item in the list, respectively. - - - -Creating a #GtkCombo widget with simple text items. - - GtkWidget *combo; - GList *items = NULL; - - items = g_list_append (items, "First Item"); - items = g_list_append (items, "Second Item"); - items = g_list_append (items, "Third Item"); - items = g_list_append (items, "Fourth Item"); - items = g_list_append (items, "Fifth Item"); - - combo = gtk_combo_new (); - gtk_combo_set_popdown_strings (GTK_COMBO (combo), items); - - - - -Creating a #GtkCombo widget with a complex item. - - GtkWidget *combo, *item, *hbox, *arrow, *label; - - combo = gtk_combo_new (); - - item = gtk_list_item_new (); - gtk_widget_show (item); - - /* You can put almost anything into the GtkListItem widget. Here we will use - a horizontal box with an arrow and a label in it. */ - hbox = gtk_hbox_new (FALSE, 3); - gtk_container_add (GTK_CONTAINER (item), hbox); - gtk_widget_show (hbox); - - arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_OUT); - gtk_widget_show (arrow); - gtk_box_pack_start (GTK_BOX (hbox), pixmap, FALSE, FALSE, 0); - - label = gtk_label_new ("First Item"); - gtk_widget_show (label); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); - - /* You must set the string to display in the entry field when the item is - selected. */ - gtk_combo_set_item_string (GTK_COMBO (combo), GTK_ITEM (item), "1st Item"); - - /* Now we simply add the item to the combo's list. */ - gtk_container_add (GTK_CONTAINER (GTK_COMBO (combo)->list), item); - - - - - - - - - - -The #GtkFixedChild-struct struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#GtkWidget *entry; -the text entry field. - - - -#GtkWidget *list; -the list shown in the drop-down window. - - - - - - - - -Creates a new #GtkCombo. - - -@Returns: a new #GtkCombo. - - - - -Convenience function to set all of the items in the popup list. -(See the example above.) - - -@combo: a #GtkCombo. -@strings: a list of strings. - - - - -Specifies whether the value entered in the text entry field must match one of -the values in the list. If this is set then the user will not be able to -perform any other action until a valid value has been entered. - - -If an empty field is acceptable, the @ok_if_empty parameter should be TRUE. - - -@combo: a #GtkCombo. -@val: TRUE if the value entered must match one of the values in the list. -@ok_if_empty: TRUE if an empty value is considered valid. - - - - -Specifies if the arrow (cursor) keys can be used to step through the items in -the list. This is on by default. - - -@combo: a #GtkCombo. -@val: TRUE if the arrow keys can be used to step through the items in the list. - - - - -Specifies if the arrow keys will still work even if the current contents of the -#GtkEntry field do not match any of the list items. - - -@combo: a #GtkCombo. -@val: - - - - -Specifies whether the text entered into the #GtkEntry field and the text in -the list items is case sensitive. - - -This may be useful, for example, when you have called -gtk_combo_set_value_in_list() to limit the values entered, but you are not -worried about differences in case. - - -@combo: a #GtkCombo. -@val: - - - - -Sets the string to place in the #GtkEntry field when a particular list item is -selected. This is needed if the list item is not a simple label. - - -@combo: a #GtkCombo. -@item: a #GtkItem which -@item_value: the string to place in the #GtkEntry when @item is selected. - - - - -Stops the #GtkCombo widget from showing the popup list when the #GtkEntry -emits the "activate" signal, i.e. when the Return key is pressed. -This may be useful if, for example. you want the Return key to close a dialog -instead. - - -@combo: a #GtkCombo. - - diff --git a/docs/reference/gtk/tmpl/gtkcontainer.sgml b/docs/reference/gtk/tmpl/gtkcontainer.sgml deleted file mode 100644 index d6782383c4..0000000000 --- a/docs/reference/gtk/tmpl/gtkcontainer.sgml +++ /dev/null @@ -1,404 +0,0 @@ - -GtkContainer - - - - - - - - - - - - - - - - - - - - - - - - - -@widget: - - - - - - - - - - - - - - -@container: -@widget: - - - - - - - -@container: -@widget: - - - - - - - -@container: -@resize_mode: - - - - - - - -@container: - - - - - - - -@container: -@callback: -@callback_data: - - - - - - - -@container: -@callback: -@marshal: -@callback_data: -@notify: - - - - - - - -@container: -@Returns: - - - - - - - -@container: -@direction: -@Returns: - - - - - - - -@container: -@child: - - - - - - - -@container: -@adjustment: - - - - - - - -@container: -@adjustment: - - - - - - - -@container: - - - - - - - -@container: - - - - - - - -@container: - - - - - - - -@container: -@Returns: - - - - - - - -@arg_name: -@arg_type: -@arg_flags: -@arg_id: - - - - - - - -@class_type: -@arg_flags: -@nargs: -@Returns: - - - - - - - -@container: -@child: -@n_args: -@args: - - - - - - - -@container: -@child: -@n_args: -@args: - - - - - - - -@container: -@widget: -@first_arg_name: -@Varargs: - - - - - - - -@container: -@widget: -@n_args: -@args: - - - - - - - -@container: -@child: -@first_arg_name: -@Varargs: - - - - - - - -@container: - - - - - - - -@container: - - - - - - - -@container: -@child: -@arg: -@info: - - - - - - - -@container: -@child: -@arg: -@info: - - - - - - - -@object_type: -@arg_list_p: -@info_list_p: -@first_arg_name: -@args: -@Returns: - - - - - - - -@object_type: -@arg_name: -@info_p: -@Returns: - - - - - - - -@container: -@callback: -@callback_data: - - - - - - - -@container: -@child: -@Returns: - - - - - - - -@Returns: - - - - - - - -@container: -@border_width: - - - - - - - -@container: the object which received the signal. -@widget: - - - - - - -@container: the object which received the signal. -@widget: - - - - - - -@container: the object which received the signal. - - - - - - -@container: the object which received the signal. -@direction: -@Returns: - - - - - - -@container: the object which received the signal. -@widget: - - - - - - - - - - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkctree.sgml b/docs/reference/gtk/tmpl/gtkctree.sgml deleted file mode 100644 index 1979f30d3b..0000000000 --- a/docs/reference/gtk/tmpl/gtkctree.sgml +++ /dev/null @@ -1,1257 +0,0 @@ - -GtkCTree - - -a widget displaying a hierarchical tree. - - - -The #GtkCTree widget is used for showing a hierarchical tree -to the user, for example a directory tree. - - -The tree is internally represented as a set of #GtkCTreeNode structures. - - -The interface has much in common with the #GtkCList widget: rows (nodes) -can be selected by the user etc. - - -Positions in the tree are often indicated by two arguments, a -parent and a sibling, both #GtkCTreeNode pointers. If the parent -is %NULL, the position is at the root of the tree and if the sibling -is %NULL, it will be the last child of parent, otherwise it will be -inserted just before the sibling. - - - - - - - - - -The #GtkCTree-struct contains the following user-accessible fields. -These fields should be considered read-only; to set the values, -use the methods below. - - - - - - -#gint tree_indent; -The number of pixels each successive level of the tree is -indented in the display. - - - -#gint tree_spacing; -The space in pixels between the graphical tree and the text in the -node. - - - -#gint tree_column; -The index of the column for which the tree graphics is drawn. - - - -#GtkCTreeLineStyle line_style; -The style in which the lines in the tree graphics are drawn. - - - -#GtkCTreeExpanderStyle expander_style; -The style in which the expander buttons are drawn. - - - -#GtkCTreeExpanderStyle expander_style; -FIXME. - - - - - - - - -Used to get the #GtkCTreeRow structure corresponding to the given #GtkCTreeNode. - - -@_node_: - - - - - - - -@_node_: - - - - -FIXME - - -@_nnode_: - - - - -FIXME - - -@_pnode_: - - - - - - - -@_func_: - - - - -A value specifying the position of a new node relative to an old one. - - - - - - -GTK_CTREE_POS_BEFORE -As a sibling, before the specified node. - - - -GTK_CTREE_POS_AS_CHILD -As a child of the specified node. - - - -GTK_CTREE_POS_AFTER -As a sibling, after the specified node. - - - - - - -@GTK_CTREE_POS_BEFORE: -@GTK_CTREE_POS_AS_CHILD: -@GTK_CTREE_POS_AFTER: - - - -The appearance of the lines in the tree graphics. - - - - - - -GTK_CTREE_LINES_NONE -No lines. - - - -GTK_CTREE_LINES_SOLID -Solid lines. - - - -GTK_CTREE_LINES_DOTTED -Dotted lines. - - - -GTK_CTREE_LINES_TABBED -FIXME. - - - - - - - -@GTK_CTREE_LINES_NONE: -@GTK_CTREE_LINES_SOLID: -@GTK_CTREE_LINES_DOTTED: -@GTK_CTREE_LINES_TABBED: - - - -The appearance of the expander buttons, i.e. the small buttons -which expand or contract parts of the tree when pressed. - - - - - - - -GTK_CTREE_EXPANDER_NONE -No expanders. - - - -GTK_CTREE_EXPANDER_SQUARE -Square expanders. - - - -GTK_CTREE_EXPANDER_TRIANGLE -Triangular expanders. - - - -GTK_CTREE_EXPANDER_CIRCULAR -Round expanders. - - - - - - - -@GTK_CTREE_EXPANDER_NONE: -@GTK_CTREE_EXPANDER_SQUARE: -@GTK_CTREE_EXPANDER_TRIANGLE: -@GTK_CTREE_EXPANDER_CIRCULAR: - - - -How to expand or collapse a part of a tree. - - - - - - -GTK_CTREE_EXPANSION_EXPAND -Expand this node. - - - -GTK_CTREE_EXPANSION_EXPAND_RECURSIVE -Expand this node and everything below it in the hierarchy. - - - -GTK_CTREE_EXPANSION_COLLAPSE -Collapse this node. - - - -GTK_CTREE_EXPANSION_COLLAPSE_RECURSIVE -Collapse this node and everything below it in the hierarchy. - - - -GTK_CTREE_EXPANSION_TOGGLE -Toggle this node (i.e. expand if collapsed and vice versa). - - - -GTK_CTREE_EXPANSION_TOGGLE_RECURSIVE -Toggle this node and everything below it in the hierarchy. - - - - - - - - -@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: - - - -A generic callback type to do something with a particular node. - - -@ctree: The #GtkCTree object. -@node: The #GtkCTreeNode in the tree. -@data: The user data associated with the node. - - - - -FIXME - - -@ctree: -@depth: -@gnode: -@cnode: -@data: -@Returns: - - - - -FIXME - - -@ctree: -@source_node: -@new_parent: -@new_sibling: -@Returns: - - - - -A structure representing a single row in the tree graph. -The values inside the structure should be considered read-only. -This structure is derived from the #GtkCListRow structure. - - - - - - -#GtkCTreeNode *parent; -The parent node of the node corresponding to this row. - - - - -#GtkCTreeNode *sibling; -The next sibling node of the node corresponding to this row. - - - - -#GtkCTreeNode *children; -The first child node corresponding to this row; to access -the other children, just use the siblings of that node. - - - - -#GdkPixmap *pixmap_closed; - The pixmap to be shown when the node is collapsed. - - - - -#GdkBitmap *mask_closed; - The mask for the above pixmap. - - - - -#GdkPixmap *pixmap_opened; - The pixmap to be shown when the node is expanded. - - - - -#GdkBitmap *mask_opened; - The mask for the above pixmap. - - - - -#guint16 level; -The level of this node in the tree. - - - - - -#guint is_leaf : 1; -Whether this row is a leaf. - - - - -#guint expanded : 1; -Whether the children of this row are visible. - - - - - - -@row: -@parent: -@sibling: -@children: -@pixmap_closed: -@mask_closed: -@pixmap_opened: -@mask_opened: -@level: -@is_leaf: -@expanded: - - - -This structure is opaque - you should use the -macros #GTK_CTREE_ROW, #GTK_CTREE_NODE_NEXT etc. as well -as the functions below to access it. - - -@list: - - - -This function is not usually used by users. - - -@ctree: -@columns: -@tree_column: -@titles: - - - - -Create a new #GtkCTree widget with the given titles for the columns. - - -@columns: Number of columns. -@tree_column: Which column has the tree graphic; 0 = leftmost. -@titles: The titles for the columns. -@Returns: The #GtkCTree widget. - - - - -Create a new #GtkCTree widget. - - -@columns: Number of columns. -@tree_column: Which columns has the tree graphic. -@Returns: The new #GtkCTree widget. - - - - -Insert a new node to the tree. The position is specified through -the parent-sibling notation, as explained in the introduction above. - - -@ctree: The #GtkCTree widget. -@parent: The parent node to be. -@sibling: The sibling node to be. -@text: The texts to be shown in each column. -@spacing: The extra space between the pixmap and the text. -@pixmap_closed: The pixmap to be used when the node is collapsed. Can be %NULL. -@mask_closed: The mask for the above pixmap. Can be %NULL. -@pixmap_opened: The pixmap to be used when the children are visible. Can be %NULL. -@mask_opened: The mask for the above pixmap. Can be %NULL. -@is_leaf: Whether this node is going to be a leaf. -@expanded: Whether this node should start out expanded or not. -@Returns: - - - - -Remove the node and all nodes underneath it from the tree. - - -@ctree: The widget. -@node: The node to be removed. - - - - -FIXME - - -@ctree: -@parent: -@sibling: -@gnode: -@func: -@data: -@Returns: - - - - -FIXME - - -@ctree: -@parent: -@sibling: -@node: -@func: -@data: -@Returns: - - - - -Recursively apply a function to all nodes of the tree at or below a certain -node. -The function is called for each node after it has been called -for that node's children. - - -@ctree: -@node: The node where to start. %NULL means to start at the root. -@func: The function to apply to each node. -@data: A closure argument given to each invocation of the function. - - - - -Recursively apply a function to nodes up to a certain depth. -The function is called for each node after it has been called -for that node's children. - - -@ctree: -@node: The node where to start. -@depth: The maximum absolute depth for applying the function. If depth is negative, this function just calls #gtk_ctree_post_recursive. -@func: The function to apply to each node. -@data: A closure argument given to each invocation of the function. - - - - -Recursively apply a function to all nodes of the tree at or below a certain -node. -The function is called for each node after it has been called -for its parent. - - -@ctree: -@node: The node where to start. %NULL means to start at the root. -@func: The function to apply to each node. -@data: A closure argument given to each invocation of the function. - - - - -Recursively apply a function to nodes up to a certain depth. -The function is called for each node after it has been called -for that node's children. - - -@ctree: -@node: The node where to start. -@depth: The maximum absolute depth for applying the function. If depth is negative, this function just calls #gtk_ctree_post_recursive. -@func: The function to apply to each node. -@data: A closure argument given to each invocation of the function. - - - - -This function checks whether the given node is viewable i.e. so that -all of its parent nodes are expanded. This is different from being -actually visible: the node can be viewable but outside the scrolling -area of the window. - - -@ctree: -@node: -@Returns: Whether the node is viewable. - - - - -Returns the last child of the last child of the last child... -of the given node. - - -@ctree: -@node: -@Returns: - - - - -Finds the node pointer given a #GtkCTreeRow structure. - - -@ctree: -@ctree_row: -@Returns: The node pointer. - - - - - - - -@ctree: -@node: The node to start searching from. May be %NULL. -@child: -@Returns: True if @child is on some level a child (grandchild...) of the @node. - - - - - - - -@ctree: -@node: -@child: -@Returns: True is @node is an ancestor of @child. - - - - -Finds a node in the tree under @node that has the given user data pointer. - - -@ctree: -@node: -@data: -@Returns: The node, or %NULL if not found. - - - - -Finds all nodes in the tree under @node that have the given user data pointer. - - -@ctree: -@node: -@data: -@Returns: A list of nodes that have the given data pointer. - - - - -Find the first node under @node whose row data pointer fulfills -a custom criterion. - - -@ctree: -@node: The node where to start searching. -@data: User data for the criterion function. -@func: The criterion function. -@Returns: The first node found. - - - - -Find all nodes under @node whose row data pointer fulfills -a custom criterion. - - - -@ctree: -@node: The node where to start searching. -@data: User data for the criterion function. -@func: The criterion function. -@Returns: A list of all nodes found. - - - - - - -@ctree: -@x: -@y: -@Returns: True if the given coordinates lie on an expander button. - - - - -Move a node in the tree to another location. - - -@ctree: -@node: The node to be moved. -@new_parent: The new parent-to-be of the node. -@new_sibling: The new sibling-to-be of the node. - - - - -Expand one node. - - -@ctree: -@node: - - - - -Expand one node and all nodes underneath. - - -@ctree: -@node: - - - - -Expand a node and its children up to the depth given. - - -@ctree: -@node: -@depth: The (absolute) depth up to which to expand nodes. - - - - -Collapse one node. - - -@ctree: -@node: - - - - -Collapse one node and all its subnodes. - - -@ctree: -@node: - - - - -Collapse a node and its children up to the depth given. - - -@ctree: -@node: -@depth: The (absolute) depth up to which to collapse nodes. - - - - -Toggle a node, i.e. if it is collapsed, expand it and vice versa. - - -@ctree: -@node: - - - - -Toggle the expansion of a node and all its children. - - -@ctree: -@node: - - - - -Cause the given node to be selected and emit the appropriate signal. - - -@ctree: -@node: - - - - -Cause the given node and its subnodes to be selected and emit the appropriate signal(s). - - -@ctree: -@node: - - - - -Unselect the given node and emit the appropriate signal. - - -@ctree: -@node: - - - - -Unselect the given node and its subnodes and emit the appropriate signal(s). - - -@ctree: -@node: - - - - -The function that implements both #gtk_ctree_select_recursive and -#gtk_ctree_unselect_recursive. - - -@ctree: -@node: -@state: True for selecting, false for unselecting. - - - - -Set the text in a node. - - -@ctree: -@node: -@column: The column whose text to change. -@text: The new text. - - - - -FIXME - - -@ctree: -@node: -@column: -@pixmap: -@mask: - - - - -FIXME - - -@ctree: -@node: -@column: -@text: -@spacing: -@pixmap: -@mask: - - - - -Change the information. Most parameters correspond -to the parameters of #gtk_ctree_insert_node. - - -@ctree: -@node: -@text: The text to be in the tree column. -@spacing: -@pixmap_closed: -@mask_closed: -@pixmap_opened: -@mask_opened: -@is_leaf: -@expanded: - - - - -Shift the given cell the given amounts in pixels. - - -@ctree: -@node: -@column: -@vertical: -@horizontal: - - - - - - - -@ctree: -@node: -@selectable: Whether this node can be selected by the user. - - - - - - - -@ctree: -@node: -@Returns: Whether this node can be selected by the user. - - - - - - - -@ctree: -@node: -@column: -@Returns: The type of the given cell. - - - - - - - -@ctree: -@node: -@column: -@text: If nonnull, the pointer to the text string is assigned to *@text. -@Returns: True if the given cell has text in it. - - - - - - - -@ctree: -@node: -@column: -@pixmap: If nonnull, the pointer to the pixmap is returned through this. -@mask: If nonnull, the pointer to the mask is returned through this. -@Returns: True if the given cell contains a pixmap. - - - - -Get the parameters of a cell containing both a pixmap and text. - - -@ctree: -@node: -@column: -@text: -@spacing: -@pixmap: -@mask: -@Returns: - - - - -Get information corresponding to a node. -Any of the return parameters can be null. - - -@ctree: -@node: -@text: -@spacing: -@pixmap_closed: -@mask_closed: -@pixmap_opened: -@mask_opened: -@is_leaf: -@expanded: -@Returns: - - - - -Set the style of a row. - - -@ctree: -@node: -@style: - - - - -Get the style of a row. - - -@ctree: -@node: -@Returns: - - - - -Set the style of an individual cell. - - -@ctree: -@node: -@column: -@style: - - - - -Get the style of an individual cell. - - -@ctree: -@node: -@column: -@Returns: - - - - - - - -@ctree: -@node: -@color: - - - - - - - -@ctree: -@node: -@color: - - - - -Set the custom data associated with a node. - - -@ctree: -@node: -@data: - - - - -This is the full interface to setting row data, so that a destructor -can be given for the data. - - -@ctree: -@node: -@data: -@destroy: The routine to be called when @data is no longer needed. - - - - - - - -@ctree: -@node: -@Returns: - - - - -This function makes the given column of the given node visible by -scrolling. - - -@ctree: -@node: The node to be made visible. -@column: The column to be made visible. -@row_align: Where in the window the row should appear. -@col_align: Where in the window the column should appear. - - - - - - - -@ctree: -@node: -@Returns: True if the node is currently inside the bounds of the window. -Note that this function can return true even if the node is not -viewable, if the node's ancestor is visible. - - - - - - - -@ctree: -@indent: The number of pixels to shift the levels of the tree. - - - - -The spacing between the tree graphic and the actual node content. - - -@ctree: -@spacing: - - - - - - - -@t: -@r: - - - - - - - -@ctree: -@line_style: - - - - - - - -@ctree: -@expander_style: - - - - -FIXME - - -@ctree: -@cmp_func: - - - - -Sort the children of a node. See #GtkCList for how to set the sorting -criteria etc. - - -@ctree: -@node: - - - - -Sort the descendants of a node. See #GtkCList for how to set the sorting -criteria etc. - - -@ctree: -@node: - - - - - - - -@ctree: -@row: -@Returns: The node corresponding to the @row th row. - - - - - - - -@ctree: -@show_stub: - - - - -Emitted when a row is selected. - - -@ctree: the object which received the signal. -@node: The node corresponding to the selected row. -@column: The column which was selected. - - - -Emitted when a node is unselected. - - -@ctree: the object which received the signal. -@node: The node corresponding to the selected row. -@column: - - - -Emitted when a node is expanded. - - -@ctree: the object which received the signal. -@node: - - - -Emitted when a node is collapsed. - - -@ctree: the object which received the signal. -@node: - - - -Emitted when a node is moved. - - -@ctree: the object which received the signal. -@node: The node that is moved. -@new_parent: The new parent of the node. -@new_sibling: The new sibling of the node. - - - -The row which has the focus is either collapsed or expanded -or toggled. - - -@ctree: the object which received the signal. -@expansion: What is being done. - - - -The number of columns in the tree. - - - - -The column in which the actual tree graphic appears. - - - - -The number of pixels to indent the tree levels. - - - - -The number of pixels between the tree and the columns. - - - - -FIXME - - - - -The style of the lines in the tree graphic. - - - - -The style of the expander buttons. - - diff --git a/docs/reference/gtk/tmpl/gtkcurve.sgml b/docs/reference/gtk/tmpl/gtkcurve.sgml deleted file mode 100644 index e8ada7ac68..0000000000 --- a/docs/reference/gtk/tmpl/gtkcurve.sgml +++ /dev/null @@ -1,125 +0,0 @@ - -GtkCurve - - -allows direct editing of a curve. - - - -The #GtkCurve widget allows the user to edit a curve covering a range of -values. It is typically used to fine-tune color balances in graphics -applications like the Gimp. - - -The #GtkCurve widget has 3 modes of operation - spline, linear and free. -In spline mode the user places points on the curve which are automatically -connected together into a smooth curve. In linear mode the user places points -on the curve which are connected by straight lines. In free mode the user can -draw the points of the curve freely, and they are not connected at all. - - - - - - -#GtkGammaCurve -a subclass for editing gamma curves. - - - - - - - - -The #GtkCurve-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkCurve. - - -@Returns: a new #GtkCurve. - - - - -Resets the curve to a straight line from the minimum x & y values to the -maximum x & y values (i.e. from the bottom-left to the top-right corners). -The curve type is not changed. - - -@curve: a #GtkCurve. - - - - -Recomputes the entire curve using the given gamma value. -A gamma value of 1 results in a straight line. Values greater than 1 result -in a curve above the straight line. Values less than 1 result in a curve -below the straight line. The curve type is changed to %GTK_CURVE_TYPE_FREE. -FIXME: Needs a more precise definition of gamma. - - -@curve: a #GtkCurve. -@gamma: the gamma value. - - - - -Sets the minimum and maximum x & y values of the curve. -The curve is also reset with a call to gtk_curve_reset(). - - -@curve: a #GtkCurve. -@min_x: the minimum x value. -@max_x: the maximum x value. -@min_y: the minimum y value. -@max_y: the maximum y value. - - - - -Returns a vector of points representing the curve. - - -@curve: a #GtkCurve. -@veclen: the number of points to calculate. -@vector: returns the points. - - - - -Sets the vector of points on the curve. -The curve type is set to %GTK_CURVE_TYPE_FREE. - - -@curve: a #GtkCurve. -@veclen: the number of points. -@vector: the points on the curve. - - - - -Sets the type of the curve. The curve will remain unchanged except when -changing from a free curve to a linear or spline curve, in which case the -curve will be changed as little as possible. - - -@curve: a #GtkCurve. -@type: the type of the curve. - - - - -Emitted when the curve type has been changed. -The curve type can be changed explicitly with a call to -gtk_curve_set_curve_type(). It is also changed as a side-effect of -calling gtk_curve_reset() or gtk_curve_set_gamma(). - - -@curve: the object which received the signal. - diff --git a/docs/reference/gtk/tmpl/gtkdata.sgml b/docs/reference/gtk/tmpl/gtkdata.sgml deleted file mode 100644 index e24459d5d2..0000000000 --- a/docs/reference/gtk/tmpl/gtkdata.sgml +++ /dev/null @@ -1,38 +0,0 @@ - -GtkData - - -abstract base class for objects containing data. - - - -The #GtkData object is a very simple object intended to be used as a base -class for objects which contain data (i.e. the 'Model' in the object-oriented -Model/View/Controller framework). - - -Currently it is not very useful since all it provides is a "disconnect" signal. -This signal could be emitted by a #GtkData subclass to notify any 'Views' -that they should disconnect from the #GtkData (the 'Model'), possibly just -before the #GtkData is destroyed. - - - - - - - - - -The #GtkData-struct struct contains no public fields. - - - - - -Emitted to notify any views on the #GtkData object to disconnect from it, -possibly because the #GtkData object is about to be destroyed. - - -@data: the object which received the signal. - diff --git a/docs/reference/gtk/tmpl/gtkdebug.sgml b/docs/reference/gtk/tmpl/gtkdebug.sgml deleted file mode 100644 index 12195b2279..0000000000 --- a/docs/reference/gtk/tmpl/gtkdebug.sgml +++ /dev/null @@ -1,42 +0,0 @@ - -Debugging - - - - - - - - - - - - - - - - - - - -@GTK_DEBUG_OBJECTS: -@GTK_DEBUG_MISC: -@GTK_DEBUG_SIGNALS: -@GTK_DEBUG_DND: -@GTK_DEBUG_PLUGSOCKET: - - - - - - - - - - - - -@type: -@action: - - diff --git a/docs/reference/gtk/tmpl/gtkdialog.sgml b/docs/reference/gtk/tmpl/gtkdialog.sgml deleted file mode 100644 index 9c0b709470..0000000000 --- a/docs/reference/gtk/tmpl/gtkdialog.sgml +++ /dev/null @@ -1,119 +0,0 @@ - -GtkDialog - - - -create popup windows. - - - -Dialog boxes are a convenient way to prompt the user for a small amount of -input, eg. to display -a message, ask a question, or anything else that does not require extensive -effort on the user's part. - - -Gtk+ treats a dialog as a window split horizontally. The top section is a -#GtkVBox, and is where widgets such as a #GtkLabel or a #GtkEntry should be -packed. The second area is known as the action_area. This is generally used -for packing buttons into the dialog which may perform functions such as cancel, ok, or apply. The two -areas are separated by a #GtkHSeparator. - - -#GtkDialog boxes are created with a call to gtk_dialog_new(). - - -If 'dialog' is a newly created dialog, the two primary areas of the window -can be accessed as GTK_DIALOG(dialog)->vbox and GTK_DIALOG(dialog)->action_area, -as can be seen from the example, below. - - -A 'modal' dialog (that is, one which freezes the rest of the application -from user input), can be created by calling gtk_window_set_modal() on the dialog. Use the -GTK_WINDOW() macro to cast the widget returned from gtk_dialog_new() into a -#GtkWindow. - - - -Using a #GtkDialog to keep the user informed. - - -/* Function to open a dialog box displaying the message provided. */ - -void quick_message(#gchar *message) { - - #GtkWidget *dialog, *label, *okay_button; - - /* Create the widgets */ - - dialog = gtk_dialog_new(); - label = gtk_label_new (message); - okay_button = gtk_button_new_with_label("Okay"); - - /* Ensure that the dialog box is destroyed when the user clicks ok. */ - - gtk_signal_connect_object (GTK_OBJECT (okay_button), "clicked", - GTK_SIGNAL_FUNC (gtk_widget_destroy), dialog); - gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->action_area), - okay_button); - - /* Add the label, and show everything we've added to the dialog. */ - - gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), - label); - gtk_widget_show_all (dialog); -} - - - - - - - - - - -#GtkVBox -Pack widgets vertically. - - -#GtkWindow -Alter the properties of your dialog box. - - -#GtkButton -Add them to the action_area to get a -response from the user. - - - - - - -window is a #GtkWindow, but should not be -modified directly, (use the functions provided, such as -gtk_window_set_title(). See the #GtkWindow section for more). - - -vbox is a #GtkVBox - the main part of the dialog box. - - -action_area is a #GtkHBox packed below the dividing #GtkHSeparator in the dialog. It is treated exactly the same as any other #GtkHBox. - - - - - -Deprecated. - - - - - -Creates a new dialog box. Widgets should not be packed into this #GtkWindow -directly, but into the vbox and action_area, as described above. - - -@Returns: a #GtkWidget - the newly created dialog box. - - diff --git a/docs/reference/gtk/tmpl/gtkdnd.sgml b/docs/reference/gtk/tmpl/gtkdnd.sgml deleted file mode 100644 index e8a32624d4..0000000000 --- a/docs/reference/gtk/tmpl/gtkdnd.sgml +++ /dev/null @@ -1,345 +0,0 @@ - -Drag and Drop - - -Functions for controlling drag and drop handling. - - - -GTK+ has a rich set of functions for doing inter-process -communication via the drag-and-drop metaphore. GTK+ -can do drag and drop (DND) via multiple protocols. -The currently supported protocols are the Xdnd and -Motif protocols. - -As well as the functions listed here, applications -may need to use some facilities provided for -Selections. -Also, the Drag and Drop API makes use of signals -in the #GtkWidget class. - - - - - - - - - -The #GtkDestfaults enumeration specifies the various -types of action that will be taken on behalf -of the user for a drag destination site. - - - - - - -GTK_DEST_DEFAULT_MOTION - - If set for a widget, GTK+, during a drag over this - widget will check if the drag matches this widget's - list of possible targets and actions. - GTK+ will then call gtk_drag_status() as appropriate. - - - - -GTK_DEST_DEFAULT_HIGHLIGHT - - If set for a widget, GTK+ will draw a highlight on - this widget as long as a drag is over this widget - and the wiget drag format and action is accetable. - - - -GTK_DEST_DEFAULT_DROP - - If set for a widget, when a drop occurs, GTK+ will - will check if the drag matches this widget's - list of possible targets and actions. If so, - GTK+ will call gtk_drag_data_get() on behalf - of the widget. Whether or not the drop is succesful, - GTK+ will call gtk_drag_finish(). If the action - was a move, then if the drag was succesful, then - %TRUE will be passed for the @delete parameter - to gtk_drag_finish(). - - - - -GTK_DEST_DEFAULT_ALL - - If set, specifies that all default actions should - be taken. - - - - - -@GTK_DEST_DEFAULT_MOTION: -@GTK_DEST_DEFAULT_HIGHLIGHT: -@GTK_DEST_DEFAULT_DROP: -@GTK_DEST_DEFAULT_ALL: - - - -The #GtkTargetFlags enumeration is used to specifies -constraints on an entry in a GtkTargetTable. - - - %GTK_TARGET_SAME_APP - - - If this is set, the target will only be selected - for drags within a single application. - - - - %GTK_TARGET_SAME_WIDGET - - - If this is set, the target will only be selected - for drags within a single widget. - - - - - -@GTK_TARGET_SAME_APP: -@GTK_TARGET_SAME_WIDGET: - - - -Set a widget as a potential drop destination. - - -@widget: a widget -@flags: the flags that specify what actions GTK+ should take - on behalf of a widget for drops onto that widget. The @targets - and @actions fields only are used if %GTK_DEST_DEFAULT_MOTION - or %GTK_DEST_DEFAULT_DROP are given. -@targets: a pointer to an array of #GtkTargetEntry indicating - the drop types that this widget will accept. -@n_targets: the number of entries in @targets. -@actions: a bitmask of possible actions for a drop onto this - widget. - - - - -Set this widget as a proxy for drops to another window. - - -@widget: a #GtkWidget -@proxy_window: the window to which to forward drag events -@protocol: the drag protocol which the @proxy_window accepts - (You can use gdk_drag_get_protocol() to determine this) -@use_coordinates: If true, send the same coordinates to the - destination, because it is a embedded - subwindow. - - - - -Clear information about a drop destination set with -gtk_drag_dest_set(). The widget will no longer receive -notification of drags. - - -@widget: a #GtkWidget - - - - -Inform the drag source that the drop is finished, and -that the data of the drag will no longer be required. - - -@context: the drag context. -@success: a flag indicating whether the drop was succesful -@del: a flag indicating whether the source should delete the - original data. (This should be %TRUE for a move) -@time: the timestamp from the "drag_data_drop" signal. - - - - -Get the data associated with a drag. When the data -is received or the retrieval fails, GTK+ will emit a -"drag_data_received" signal. Failure of the retrieval -is indicated by the length field of the @selection_data -signal parameter being negative. However, when gtk_drag_get_data() -is called implicitely because the %GTK_DRAG_DEFAULT_DROP was set, -then the widget will not receive notification of failed -drops. - - -@widget: the widget that will receive the "drag_data_received" - signal. -@context: the drag context -@target: the target (form of the data) to retrieve. -@time: a timestamp for retrieving the data. This will - generally be the time received in a "drag_data_motion" - or "drag_data_drop" signal. - - - - -Determine the source widget for a drag. - - -@context: a (destination side) drag context. -@Returns: if the drag is occurring within a single application, - a pointer to the source widget. Otherwise, NULL. - - - - -Draw a highlight around a widget. This will attach -handlers to "expose_event" and "draw", so the highlight -will continue to be displayed until gtk_drag_unhighlight -is called. - - -@widget: a widget to highlight - - - - -Remove a highlight set by gtk_drag_highlight() from -a widget. -is called. - - -@widget: a widget to remove the highlight from. - - - - -Initiate a drag on the source side. The function -only needs to be used when the application is -starting drags itself, and is not needed when -gtk_drag_source_set() is used. - - -@widget: the source widget. -@targets: The targets (data formats) in which the - source can provide the data. -@actions: A bitmask of the allowed drag actions for this - drag. -@button: The button the user clicked to start the drag. -@event: The event that triggered the start of the - drag. Usually -@Returns: The context for this drag. - - - - -Change the icon for a widget to a given widget. GTK+ -will not destroy the icon, so if you don't want -it to persist, you should connect to the "drag_end" -signal and destroy it yourself. - - -@context: the context for a drag. (This must be called - with a context for the source side of a drag) -@widget: A toplevel window to use as an icon. -@hot_x: The X offset within @widget of the hotspot. -@hot_y: The Y offset within @widget of the hotspot. - - - - -Sets a given pixmap as the icon for a given drag. -GTK+ retains a reference count for the arguments, and -will release them when they are no longer needed. - - -@context: the context for a drag. (This must be called - with a context for the source side of a drag) -@colormap: the colormap of the icon -@pixmap: the image data for the icon -@mask: the transparency mask for an image. -@hot_x: The X offset within @widget of the hotspot. -@hot_y: The Y offset within @widget of the hotspot. - - - - -Set the icon for a particular drag to the default -icon. - - -@context: the context for a drag. (This must be called - with a context for the source side of a drag) - - - - -Change the default drag icon. GTK+ retains a reference count for the -arguments, and will release them when they are no longer needed. - - -@colormap: the colormap of the icon -@pixmap: the image data for the icon -@mask: the transparency mask for an image. -@hot_x: The X offset within @widget of the hotspot. -@hot_y: The Y offset within @widget of the hotspot. - - - - -Sets up a widget so that GTK+ will start a drag -operation when the user clicks and drags on the -widget. The widget must have a window. - - -@widget: a #GtkWidget -@start_button_mask: the bitmask of buttons that can start the drag -@targets: the table of targets that the drag will support -@n_targets: the number of items in @targets -@actions: the bitmask of possible actions for a drag from this - widget. - - - - -Sets the icon that will be used for drags from a -particular widget. GTK+ retains a reference count -for the arguments, and will release them when -they are no longer needed. - - -@widget: a #GtkWidget -@colormap: the colormap of the icon -@pixmap: the image data for the icon -@mask: the transparency mask for an image. - - - - -Undo the effects of gtk_drag_source_set(). - - -@widget: a #GtkWidget - - - - -Internal function. - - -@widget: -@event: - - - - -Internal function. - - -@toplevel: -@event: - - diff --git a/docs/reference/gtk/tmpl/gtkdrawingarea.sgml b/docs/reference/gtk/tmpl/gtkdrawingarea.sgml deleted file mode 100644 index 94cf07e042..0000000000 --- a/docs/reference/gtk/tmpl/gtkdrawingarea.sgml +++ /dev/null @@ -1,110 +0,0 @@ - -GtkDrawingArea - - -a widget for custom user interface elements. - - - -The #GtkDrawingArea widget is used for creating custom -user interface elements. After creating a drawing -area, the application may want to connect to: - - - - Mouse and button press signals to respond to input from - the user. - - - - - The "realize" signal to take any necessary actions - when the widget - - - - - The "size_allocate" signal to take any necessary actions - when the widget changes size. - - - - - The "expose_event" signal to handle redrawing the - contents of the widget. - - - -As a convenience, the #GtkDrawingArea widget synthesizes -a "configure_event" when the widget is realized -and any time the size of a widget changes when it -is realized. It often suffices to connect to this -signal instead of "realize" and "size_allocate". - - -The following code portion demonstrates using a drawing -area to implement a widget that draws a circle. -As this example demonstrates, an expose handler should -draw only the pixels within the requested area and -should draw or clear all these pixels. - - -gboolean -expose_event (GdkWidget *widget, GdkEventExpose *event, gpointer data) -{ - gdk_window_clear_area (widget->window, - event->area.x, event->area.y, - event->area.width, event->area.height); - gdk_gc_set_clip_rectangle (widget->style->fg_gc[widget->state], - &event->area); - gdk_draw_arc (widget->window, - widget->style->fg_gc[widget->state], - TRUE, - 0, 0, widget->allocation.width, widget->allocation.height, - 0, 64 * 360); - gdk_gc_set_clip_rectangle (widget->style->fg_gc[widget->state], - NULL); - - return TRUE; -} -[...] - GtkWidget *drawing_area = gdk_drawing_area_new (); - gdk_drawing_area_size (GTK_DRAWING_AREA (drawing_area), - 100, 100); - gtk_signal_connect (GTK_OBJECT (drawing_area), - - - - - - - - - -The #GtkDrawingArea-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Create a new drawing area. - - -@Returns: - - - - -Set the size that the drawing area will request -in response to a "size_request" signal. The -drawing area may actually be allocated a size -larger than this depending on how it is packed -within the enclosing containers. - - -@darea: a #GtkDrawingArea. -@width: the width to request. -@height: the height to request. - - diff --git a/docs/reference/gtk/tmpl/gtkeditable.sgml b/docs/reference/gtk/tmpl/gtkeditable.sgml deleted file mode 100644 index 0d292c9e50..0000000000 --- a/docs/reference/gtk/tmpl/gtkeditable.sgml +++ /dev/null @@ -1,442 +0,0 @@ - -GtkEditable - - -Base class for text-editing widgets. - - - -The #GtkEditable class is a base class for widgets -for editing text, such as #GtkEntry and #GtkText. It -cannot be instantiated by itself. The editable -class contains functions for generically manipulating -an editable widget, a large number of action signals -used for key bindings, and several signals that -an application can connect to to modify the behavior -of a widget. - - - -As an example of the latter usage, by connecting -the following handler to "insert_text", an application -can convert all entry into a widget into uppercase. - - - Forcing entry to uppercase - -#include <ctype.h> - -void -insert_text_handler (GtkEditable *editable, - const gchar *text, - gint length, - gint *position, - gpointer data) -{ - int i; - gchar *result = g_new (gchar, length); - - for (i=0; i<length; i++) - result[i] = islower(text[i]) ? toupper(text[i]) : text[i]; - - gtk_signal_handler_block_by_func (GTK_OBJECT (editable), - GTK_SIGNAL_FUNC (insert_text_handler), - data); - gtk_editable_insert_text (editable, result, length, position); - gtk_signal_handler_unblock_by_func (GTK_OBJECT (editable), - GTK_SIGNAL_FUNC (insert_text_handler), - data); - - gtk_signal_emit_stop_by_name (GTK_OBJECT (editable), "insert_text"); - - g_free (result); -} - - - - - - - - - - - -The #GtkEditable structure contains the following fields. -(These fields should be considered read-only. They should -never be set by an application.) - - - - - - -#guint selection_start; -the starting position of the selected characters - in the widget. - - - -#guint selection_end; -the end position of the selected characters - in the widget. - - - -#guint editable; -a flag indicating whether or not the widget is -editable by the user. - - - - - -@current_pos: -@selection_start_pos: -@selection_end_pos: -@has_selection: - - - -Callback function for old method of setting key bindings. -No longer publically used. - - -@editable: -@time: - - - - -Selects a region of text. The characters that -are selected are those characters at positions from -@start_pos up to, but not including @end_pos. If -@end_pos is negative, then the the characters selected -will be those characters from @start_pos to the end -of the text. - - -@editable: a #GtkEditable widget. -@start: the starting position. -@end: the end position. - - - - -Insert text at a given position. - - -@editable: a #GtkEditable widget. -@new_text: the text to insert. -@new_text_length: the length of the text to insert, in bytes -@position: an inout parameter. The caller initializes it to - the position at which to insert the text. After the - call it points at the position after the newly - inserted text. - - - - -Delete a sequence of characters. The characters that -are deleted are those characters at positions from -@start_pos up to, but not including @end_pos. If -@end_pos is negative, then the the characters deleted -will be those characters from @start_pos to the end -of the text. - - -@editable: a #GtkEditable widget. -@start_pos: the starting position. -@end_pos: the end position. - - - - -Retrieves a sequence of characters. The characters that -are retrieved are those characters at positions from -@start_pos up to, but not including @end_pos. If -@end_pos is negative, then the the characters retrieved -will be those characters from @start_pos to the end -of the text. - - -@editable: a #GtkEditable widget. -@start_pos: the starting position. -@end_pos: the end position. -@Returns: the characters in the indicated region. - The result must be freed with g_free() when - the application is finished with it. - - - - -Causes the characters in the current selection to -be copied to the clipboard and then deleted from -the widget. - - -@editable: a #GtkEditable widget. - - - - -Causes the characters in the current selection to -be copied to the clipboard. - - -@editable: a #GtkEditable widget. - - - - -Causes the contents of the clipboard to be pasted into -the given widget at the current cursor position. - - -@editable: a #GtkEditable widget. - - - - -Claim or disclaim ownership of the PRIMARY X selection. - - -@editable: a #GtkEditable widget. -@claim: if %TRUE, claim the selection, otherwise, disclaim it. -@time: the timestamp for claiming the selection. - - - - -Deletes the current contents of the widgets selection and -disclaims the selection. - - -@editable: a #GtkEditable widget. - - - - -Causes the "changed" signal to be emitted. - - -@editable: a #GtkEditable widget. - - - - -Sets the cursor position. - - -@editable: a #GtkEditable widget. -@position: the position of the cursor. The cursor is displayed - before the character with the given (base 0) index - in the widget. The value must be less than or - equal to the number of characters in the widget. - A value of -1 indicates that the position should - be set after the last character in the entry. - Note that this position is in characters, not in - bytes. - - - - -Retrieves the current cursor position. - - -@editable: a #GtkEditable widget. -@Returns: the position of the cursor. The cursor is displayed - before the character with the given (base 0) index - in the widget. The value will be less than or - equal to the number of characters in the widget. - Note that this position is in characters, not in - bytes. - - - - -Determines if the user can edit the text in the editable -widget or not. - - -@editable: a #GtkEditable widget. -@is_editable: %TRUE if the user is allowed to edit the text - in the widget. - - - - -Indicates that the user has changed the contents -of the widget. - - -@editable: the object which received the signal. - - - -This signal is emitted when text is inserted into -the widget by the user. The default handler for -this signal will normally be responsible for inserting -the text, so by connecting to this signal and then -stopping the signal with gtk_signal_emit_stop(), it -is possible to modify the inserted text, or prevent -it from being inserted entirely. - - -@editable: the object which received the signal. -@new_text: the new text to insert. -@new_text_length: the length of the new text. -@position: the position at which to insert the new text. - this is an in-out paramter. After the signal - emission is finished, it should point after - the newly inserted text. - - - -This signal is emitted when text is deleted from -the widget by the user. The default handler for -this signal will normally be responsible for inserting -the text, so by connecting to this signal and then -stopping the signal with gtk_signal_emit_stop(), it -is possible to modify the inserted text, or prevent -it from being inserted entirely. The @start_pos -and @end_pos parameters are interpreted as for -gtk_editable_delete_text() - - -@editable: the object which received the signal. -@start_pos: the starting position. -@end_pos: the end position. - - - -Indicates that the user has activated the widget -in some fashion. Generally, this will be done -with a keystroke. (The default binding for this -action is Return for #GtkEntry and -Control-Return for #GtkText.) - - -@editable: the object which received the signal. - - - -Determines if the user can edit the text in the editable -widget or not. This is meant to be overriden by -child classes and should not generally useful to -applications. - - -@editable: the object which received the signal. -@is_editable: %TRUE if the user is allowed to edit the text - in the widget. - - - -An action signal. Move the cursor position. - - -@editable: the object which received the signal. -@x: horizontal distance to move the cursor. -@y: vertical distance to move the cursor. - - - -An action signal. Move the cursor by words. - - -@editable: the object which received the signal. -@num_words: The number of words to move the -cursor. (Can be negative). - - - -An action signal. Move the cursor by pages. - - -@editable: the object which received the signal. -@x: Number of pages to move the cursor horizontally. -@y: Number of pages to move the cursor vertically. - - - -An action signal. Move the cursor to the given row. - - -@editable: the object which received the signal. -@row: the row to move to. (A negative value indicates - the last row) - - - -An action signal. Move the cursor to the given column. - - -@editable: the object which received the signal. -@column: the column to move to. (A negative value indicates - the last column) - - - -An action signal. Delete a single character. - - -@editable: the object which received the signal. -@direction: the direction in which to delete. Positive - indicates forward deletion, negative, backwards deletion. - - - -An action signal. Delete a single word. - - -@editable: the object which received the signal. -@direction: the direction in which to delete. Positive - indicates forward deletion, negative, backwards deletion. - - - -An action signal. Delete a single line. - - -@editable: the object which received the signal. -@direction: the direction in which to delete. Positive - indicates forward deletion, negative, backwards deletion. - - - -An action signal. Causes the characters in the current -selection to be copied to the clipboard and then deleted from -the widget. - - -@editable: the object which received the signal. - - - -An action signal. Causes the characters in the current selection to -be copied to the clipboard. - - -@editable: the object which received the signal. - - - -An action signal. Causes the contents of the clipboard to -be pasted into the editable widget at the current cursor -position. - - -@editable: the object which received the signal. - - - -The position of the cursor. - - - - -A boolean indicating whether the widget is editable by -the user. - - diff --git a/docs/reference/gtk/tmpl/gtkentry.sgml b/docs/reference/gtk/tmpl/gtkentry.sgml deleted file mode 100644 index 73d3b22735..0000000000 --- a/docs/reference/gtk/tmpl/gtkentry.sgml +++ /dev/null @@ -1,185 +0,0 @@ - -GtkEntry - - -a single line text entry field. - - - -The #GtkEntry widget is a single line text entry -widget. A fairly large set of key bindings are supported -by default. If the entered text is longer than the allocation -of the widget, the widget will scroll so that the cursor -position is visible. - - - - - - - -#GtkText -a widget for handling multi-line text entry. - - - - - - - -The #GtkEntry-struct struct contains only private data. - - - - - -Creates a new #GtkEntry widget. - - -@Returns: a new #GtkEntry. - - - - -Creates a new #GtkEntry widget with the given maximum -length. - - -Note: the existance of this function is inconsistent -with the rest of the GTK+ API. The normal setup would -be to just require the user to make an extra call -to gtk_entry_set_max_length() instead. It is not -expected that this function will be removed, but -it would be better practice not to use it. - - -@max: the new maximum length. -@Returns: a new #GtkEntry. - - - - -Sets the text in the widget to the given -value, replacing the current contents. - - -@entry: a #GtkEntry. -@text: the new text. - - - - -Appends the given text to the contents of the widget. - - -@entry: a #GtkEntry. -@text: the text to append. - - - - -Prepends the given text to the contents of th ewidget. - - -@entry: a #GtkEntry. -@text: the text to prepend. - - - - -Sets the cursor position in an entry to the given -value. This function is obsolete. You should use -gtk_editable_set_position() instead. - - -@entry: a #GtkEntry. -@position: the position of the cursor. The cursor is displayed - before the character with the given (base 0) index - in the widget. The value must be less than or - equal to the number of characters in the widget. - A value of -1 indicates that the position should - be set after the last character in the entry. - Note that this position is in characters, not in - bytes. - - - - -Retrieve the contents of the entry widget. The returned -pointer points to internally allocated storage in the -widget and must not be freed, modified or stored. For -this reason, this function is deprecated. Use -gtk_editable_get_chars() instead. - - -@entry: a #GtkEntry. -@Returns: the pointer the the contents of the text widget as a - string. - - - - -Selects a region of text. The characters that -are selected are those characters at positions from -@start_pos up to, but not including @end_pos. If -@end_pos is negative, then the the characters selected -will be those characters from @start_pos to the end -of the text. This function is obsolete. You should -use gtk_editable_select_region() instead. - - -@entry: a #GtkEntry. -@start: the starting position. -@end: the end position. - - - - -Sets whether the contents of the entry are visible or -not. When visibility is set to %FALSE, characters -are displayed as asterisks (*'s), and will also appear -that way when the text in the entry widget is copied -elsewhere. - - -@entry: a #GtkEntry. -@visible: %TRUE if the contents of the entry are displayd - as plaintext. - - - - -Determines if the user can edit the text in the editable -widget or not. This function is obsolete. You should -use gtk_editable_set_editable() instead. - - -@entry: a #GtkEntry. -@editable: %TRUE if the user is allowed to edit the text - in the widget. - - - - -Sets the maximum allowed length of the contents -of the widget. If the current contents are longer -than the given length, then they will be truncated -to fit. - - -@entry: a #GtkEntry. -@max: the new maximum length. - - - - -Determines the maximum allowed length of the contents -of the widget. See gtk_entry_set_max_length(). - - - - -Determines whether the contents of the entry widget -are visible or not. See gtk_entry_set_visibility(). - - diff --git a/docs/reference/gtk/tmpl/gtkenums.sgml b/docs/reference/gtk/tmpl/gtkenums.sgml deleted file mode 100644 index 2a04388bfe..0000000000 --- a/docs/reference/gtk/tmpl/gtkenums.sgml +++ /dev/null @@ -1,346 +0,0 @@ - -Standard Enumerations - - -Public enumerated types used throughout GTK+. - - - - - - - - - - - - - - - - -@GTK_ACCEL_VISIBLE: -@GTK_ACCEL_SIGNAL_VISIBLE: -@GTK_ACCEL_LOCKED: -@GTK_ACCEL_MASK: - - - -Used to indicate the direction in which a #GtkArrow should point. - - -@GTK_ARROW_UP: Represents an upward pointing arrow. -@GTK_ARROW_DOWN: Represents a downward pointing arrow. -@GTK_ARROW_LEFT: Represents a left pointing arrow. -@GTK_ARROW_RIGHT: Represents a right pointing arrow. - - - -Denotes the expansion properties that a widget will have when it (or it's -parent) is resized. - - -@GTK_EXPAND: the widget should expand to take up any extra space in its -container that has been allocated. -@GTK_SHRINK: the widget should shrink as and when possible. -@GTK_FILL: the widget should fill the space allocated to it. - - - -Used to dictate the style that a #GtkButtonBox uses to layout the buttons it -contains. (See also: #GtkVButtonBox and #GtkHButtonBox). - - -@GTK_BUTTONBOX_DEFAULT_STYLE: Default packing. -@GTK_BUTTONBOX_SPREAD: Buttons are evenly spread across the ButtonBox. -@GTK_BUTTONBOX_EDGE: Buttons are placed at the edges of the ButtonBox. -@GTK_BUTTONBOX_START: Buttons are grouped towards the start of box, (on the -left for a HBox, or the top for a VBox). -@GTK_BUTTONBOX_END: Buttons are grouped towards the end of a box, (on the -right for a HBox, or the bottom for a VBox). - - - -Specifies which corner a child widget should be placed in when packed into -a #GtkScrolledWindow. This is effectively the opposite of where the scroll -bars are placed. - - -@GTK_CORNER_TOP_LEFT: Place the scrollbars on the right and bottom of the -widget (default behaviour). -@GTK_CORNER_BOTTOM_LEFT: Place the scrollbars on the top and right of the -widget. -@GTK_CORNER_TOP_RIGHT: Place the scrollbars on the left and bottom of the -widget. -@GTK_CORNER_BOTTOM_RIGHT: Place the scrollbars on the top and left of the -widget. - - - - - - -@GTK_CURVE_TYPE_LINEAR: -@GTK_CURVE_TYPE_SPLINE: -@GTK_CURVE_TYPE_FREE: - - - - - - -@GTK_DIR_TAB_FORWARD: -@GTK_DIR_TAB_BACKWARD: -@GTK_DIR_UP: -@GTK_DIR_DOWN: -@GTK_DIR_LEFT: -@GTK_DIR_RIGHT: - - - -Used for justifying the text inside a #GtkLabel widget. (See also -#GtkAlignment). - - -@GTK_JUSTIFY_LEFT: The text is placed at the left edge of the label. -@GTK_JUSTIFY_RIGHT: The text is placed at the right edge of the label. -@GTK_JUSTIFY_CENTER: The text is placed in the center of the label. -@GTK_JUSTIFY_FILL: The text is placed is distributed across the label. - - - - - - -@GTK_MATCH_ALL: -@GTK_MATCH_ALL_TAIL: -@GTK_MATCH_HEAD: -@GTK_MATCH_TAIL: -@GTK_MATCH_EXACT: -@GTK_MATCH_LAST: - - - - - - -@GTK_PIXELS: -@GTK_INCHES: -@GTK_CENTIMETERS: - - - - - - -@GTK_ORIENTATION_HORIZONTAL: -@GTK_ORIENTATION_VERTICAL: - - - -Used for packing widgets into #GtkBox widgets. (See also: #GtkVBox, -#GtkHBox, and #GtkButtonBox). - - -@GTK_PACK_START: The -@GTK_PACK_END: - - - - - - -@GTK_PATH_PRIO_LOWEST: -@GTK_PATH_PRIO_GTK: -@GTK_PATH_PRIO_APPLICATION: -@GTK_PATH_PRIO_RC: -@GTK_PATH_PRIO_HIGHEST: -@GTK_PATH_PRIO_MASK: - - - - - - -@GTK_PATH_WIDGET: -@GTK_PATH_WIDGET_CLASS: -@GTK_PATH_CLASS: - - - -Determines when a scroll bar will be visible. - - -@GTK_POLICY_ALWAYS: The scrollbar is always visible. -@GTK_POLICY_AUTOMATIC: The scrollbar will appear and disappear as necessary. For example, -when all of a #GtkCList can not be seen. -@GTK_POLICY_NEVER: The scrollbar will never appear. - - - - - - -@GTK_POS_LEFT: -@GTK_POS_RIGHT: -@GTK_POS_TOP: -@GTK_POS_BOTTOM: - - - -An enumeration which describes whether a preview -contains grayscale or red-green-blue data. - - -@GTK_PREVIEW_COLOR: the preview contains red-green-blue data. -@GTK_PREVIEW_GRAYSCALE: The preview contains grayscale data. - - - - - - -@GTK_RELIEF_NORMAL: -@GTK_RELIEF_HALF: -@GTK_RELIEF_NONE: - - - - - - -@GTK_RESIZE_PARENT: -@GTK_RESIZE_QUEUE: -@GTK_RESIZE_IMMEDIATE: - - - - - - -@GTK_SCROLL_NONE: -@GTK_SCROLL_STEP_BACKWARD: -@GTK_SCROLL_STEP_FORWARD: -@GTK_SCROLL_PAGE_BACKWARD: -@GTK_SCROLL_PAGE_FORWARD: -@GTK_SCROLL_JUMP: - - - - - - -@GTK_SELECTION_SINGLE: -@GTK_SELECTION_BROWSE: -@GTK_SELECTION_MULTIPLE: -@GTK_SELECTION_EXTENDED: - - - -Used to change the appearance of an outline typically provided by a #GtkFrame. - - -@GTK_SHADOW_NONE: No outline. -@GTK_SHADOW_IN: The outline is bevelled inwards. -@GTK_SHADOW_OUT: The outline is bevelled outwards like a button. -@GTK_SHADOW_ETCHED_IN: The outline itself is an inward bevel, but the frame -does -@GTK_SHADOW_ETCHED_OUT: - - - -This type indicates the current state of a widget. - - -@GTK_STATE_NORMAL: The state during normal operation. -@GTK_STATE_ACTIVE: The widget is currently active, such as a -@GTK_STATE_PRELIGHT: The mouse pointer is over the widget. -@GTK_STATE_SELECTED: -@GTK_STATE_INSENSITIVE: The state of the widget can not be altered by the -user. Its appearance will usually indicate this. - - - -Indicates the direction a sub-menu will appear. - - -@GTK_DIRECTION_LEFT: A sub-menu will appear -@GTK_DIRECTION_RIGHT: - - - - - - -@GTK_TOP_BOTTOM: -@GTK_LEFT_RIGHT: - - - -Used to customize the appearance of a #GtkToolbar. - - -@GTK_TOOLBAR_ICONS: Buttons should display only icons in the toolbar. -@GTK_TOOLBAR_TEXT: Buttons should display only text labels in the toolbar. -@GTK_TOOLBAR_BOTH: Buttons should display text and icons in the toolbar. - - - - - - -@GTK_TROUGH_NONE: -@GTK_TROUGH_START: -@GTK_TROUGH_END: -@GTK_TROUGH_JUMP: - - - - - - -@GTK_UPDATE_CONTINUOUS: -@GTK_UPDATE_DISCONTINUOUS: -@GTK_UPDATE_DELAYED: - - - - - - -@GTK_VISIBILITY_NONE: -@GTK_VISIBILITY_PARTIAL: -@GTK_VISIBILITY_FULL: - - - -Window placement can be influenced using this enumeration. - - -@GTK_WIN_POS_NONE: No influence is made on placement. -@GTK_WIN_POS_CENTER: Windows should be placed in the center of the screen. -@GTK_WIN_POS_MOUSE: Windows should be placed at the current mouse position. - - - -A #GtkWindow can be of these types. A toplevel window has standard window -decorations by default. A dialog may have fewer decorations and obey a -different placement policy. A popup window will have no decorations. - - -It should be noted that such decorations can often be over-ridden by modern -window managers. - - -@GTK_WINDOW_TOPLEVEL: A window for a typical application. -@GTK_WINDOW_DIALOG: A window for transient messages and dialogs. -@GTK_WINDOW_POPUP: A window for popups. - - - -Determines the direction of a sort. - - -@GTK_SORT_ASCENDING: Sorting is in ascending order. -@GTK_SORT_DESCENDING: Sorting is in descending order. - diff --git a/docs/reference/gtk/tmpl/gtkeventbox.sgml b/docs/reference/gtk/tmpl/gtkeventbox.sgml deleted file mode 100644 index 8dc8fbcd93..0000000000 --- a/docs/reference/gtk/tmpl/gtkeventbox.sgml +++ /dev/null @@ -1,33 +0,0 @@ - -GtkEventBox - - -a widget used to catch events for widgets which do not have their own window. - - - -The #GtkEventBox widget is a subclass of #GtkBin which also has its own window. -It is useful since it allows you to catch events for widgets which do not -have their own window. - - - - - - - - - -The #GtkEventBox-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkEventBox. - - -@Returns: a new #GtkEventBox. - - diff --git a/docs/reference/gtk/tmpl/gtkfeatures.sgml b/docs/reference/gtk/tmpl/gtkfeatures.sgml deleted file mode 100644 index b1d62c4771..0000000000 --- a/docs/reference/gtk/tmpl/gtkfeatures.sgml +++ /dev/null @@ -1,63 +0,0 @@ - -Version Information - - -variables and functions to check the GTK+ version. - - - -This section describes the variables and functions available to test the -version of the GTK+ library in use. -FIXME: probably merge with other general stuff. - - - - - - - - - -The major version number of the GTK+ library. -(e.g. in GTK+ version 1.2.5 this is 1.) - - - - - -The minor version number of the GTK+ library. -(e.g. in GTK+ version 1.2.5 this is 2.) - - - - - -The micro version number of the GTK+ library. -(e.g. in GTK+ version 1.2.5 this is 5.) - - - - - - - - - - - - - - - - - -Checks that the GTK+ library in use is compatable with the given version. - - -@required_major: the required major version. -@required_minor: the required major version. -@required_micro: the required major version. -@Returns: NULL if the GTK+ library is compatable with the given version, or -a string describing the version mismatch. - - diff --git a/docs/reference/gtk/tmpl/gtkfilesel.sgml b/docs/reference/gtk/tmpl/gtkfilesel.sgml deleted file mode 100644 index 9ac71c75c9..0000000000 --- a/docs/reference/gtk/tmpl/gtkfilesel.sgml +++ /dev/null @@ -1,167 +0,0 @@ - -GtkFileSelection - - -prompt the user for a file or directory name. - - - -GtkFileSelection should be used to retrieve file or directory names from the user. It will create a new dialog window containing a directory list, and a file list corresponding to the current working directory. The filesystem can be navigated using the directory list or the drop-down history menu. Alternatively, the TAB key can be used to navigate using filename completion - common in text based editors such as emacs and jed. - - -File selection dialogs are created with a call to gtk_file_selection_new(). - - -The default filename can be set using gtk_file_selection_set_filename() and the selected filename retrieved using gtk_file_selection_get_filename(). - - -Use gtk_file_selection_complete() to display files that match a given pattern. This can be used for example, to show only *.txt files, or only files beginning with gtk*. - - -Simple file operations; create directory, delete file, and rename file, are available from buttons at the top of the dialog. These can be hidden using gtk_file_selection_hide_fileop_buttons() and shown again using gtk_file_selection_show_fileop_buttons(). - - - -Getting a filename from the user - - -/* The file selection widget and the string to store the chosen filename */ - -GtkWidget *file_selector; -gchar *selected_filename; - -void store_filename(GtkFileSelection *selector, gpointer user_data) { - selected_filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION(file_selector)); -} - -void create_file_selection(void) { - - /* Create the selector */ - - file_selector = gtk_file_selection_new("Please select a file for editing."); - - gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION(file_selector)->ok_button), - "clicked", GTK_SIGNAL_FUNC (store_filename), NULL); - - /* Ensure that the dialog box is destroyed when the user clicks a button. */ - - gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION(file_selector)->ok_button), - "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), - (gpointer) file_selector); - - gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION(file_selector)->cancel_button), - "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), - (gpointer) file_selector); - - /* Display that dialog */ - - gtk_widget_show (file_selector); -} - - - - - - - - - - -#GtkDialog -Add your own widgets into the #GtkFileSelection. - - - - - - -The #GtkFileSelection struct contains the following #GtkWidget fields: - - - - - - -*fileop_dialog; -the dialog box used to display the #GtkFileSelection. It can be customized by adding/removing widgets from it using the standard #GtkDialog functions. - - - -*dir_list, *file_list; -the two #GtkCList widgets corresponding to directories and files. - - - -*ok_button, *cancel_button; -the two main buttons that signals should be connected to in order to perform an action when the user hits either OK or Cancel. - - - -*history_pulldown; -the #GtkOptionMenu used to create the drop-down directory history. - - - -*fileop_c_dir, *fileop_del_file, *fileop_ren_file; -the buttons that appear at the top of the file selection dialog. These "operation buttons" can be hidden and redisplayed with gtk_file_selection_hide_fileop_buttons() and gtk_file_selection_show_fileop_buttons() respectively. - - - - - - - - - -Creates a new file selection dialog box. By default it will contain a #GtkCList of the application's current working directory, and a file listing. Operation buttons that allow the user to create a directory, delete files and rename files, are also present. - - -@title: a message that will be placed in the file requestor's titlebar. -@Returns: the new file selection. - - - - -Sets a default path for the file requestor. If @filename includes a directory path, then the requestor will open with that path as its current working directory. - - - -@filesel: a #GtkFileSelection. -@filename: a string to set as the default file name. - - - - -Retrieves the currently selected filename from the file selection dialog. If no file is selected then the selected directory path is returned. - - -@filesel: a #GtkFileSelection -@Returns: a string containing the selected file's full path. - - - - -Will attempt to match @pattern to a valid filename in the current directory. If a match can be made, the matched filename will appear in the text entry field of the file selection dialog. -If a partial match can be made, the "Files" list will contain those file names which have been partially matched. - - -@filesel: a #GtkFileSelection. -@pattern: a string of characters which may or may not match any filenames in the current directory. - - - - -Shows the file operation buttons, if they have previously been hidden. The rest of the widgets in the dialog will be resized accordingly. - - -@filesel: a #GtkFileSelection. - - - - -Hides the file operation buttons that normally appear at the top of the dialog. Useful if you wish to create a custom file selector, based on #GtkFileSelection. - - -@filesel: a #GtkFileSelection. - - diff --git a/docs/reference/gtk/tmpl/gtkfixed.sgml b/docs/reference/gtk/tmpl/gtkfixed.sgml deleted file mode 100644 index c72b4e743c..0000000000 --- a/docs/reference/gtk/tmpl/gtkfixed.sgml +++ /dev/null @@ -1,102 +0,0 @@ - -GtkFixed - - -a container which supports fixed sizes and positions of its children. - - - -The #GtkFixed widget is a container which can place child widgets at fixed -positions and with fixed sizes, given in pixels. - - - - - - - - - - -The #GtkFixed-struct struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#GList *children; -a list of #GtkFixedChild elements, containing the child widgets and -their positions. - - - - - - - - -The #GtkFixedChild-struct struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#GtkWidget *widget; -the child #GtkWidget. - - - -#gint16 x; -the horizontal position of the widget within the #GtkFixed -container. - - - -#gint16 y; -the vertical position of the widget within the #GtkFixed -container. - - - - - -@widget: -@x: -@y: - - - -Creates a new #GtkFixed. - - -@Returns: a new #GtkFixed. - - - - -Adds a widget to a #GtkFixed container at the given position. - - -@fixed: a #GtkFixed. -@widget: the widget to add. -@x: the horizontal position to place the widget at. -@y: the vertical position to place the widget at. - - - - -Moves a child of a #GtkFixed container to the given position. - - -@fixed: a #GtkFixed. -@widget: the child widget. -@x: the horizontal position to move the widget to. -@y: the vertical position to move the widget to. - - diff --git a/docs/reference/gtk/tmpl/gtkfontsel.sgml b/docs/reference/gtk/tmpl/gtkfontsel.sgml deleted file mode 100644 index d888b18f10..0000000000 --- a/docs/reference/gtk/tmpl/gtkfontsel.sgml +++ /dev/null @@ -1,134 +0,0 @@ - -GtkFontSelection - - -a widget for selecting fonts. - - - -The #GtkFontSelection widget lists the available fonts, styles and sizes, -allowing the user to select a font. -It is used in the #GtkFontSelectionDialog widget to provide a dialog box for -selecting fonts. - - -To set the font which is initially selected, use -gtk_font_selection_set_font_name(). - - -To get the selected font use gtk_font_selection_get_font() -or gtk_font_selection_get_font_name(). - - -To change the text which is shown in the preview area, use -gtk_font_selection_set_preview_text(). - - -Filters can be used to limit the fonts shown. There are 2 filters in the -#GtkFontSelection - a base filter and a user filter. The base filter -can not be changed by the user, so this can be used when the user must choose -from the restricted set of fonts (e.g. for a terminal-type application you may -want to force the user to select a fixed-width font). The user filter can be -changed or reset by the user, by using the 'Reset Filter' button or changing -the options on the 'Filter' page of the widget. - - - - - - - -#GtkFontSelectionDialog -a dialog box which uses #GtkFontSelection. - - - - - - - -The #GtkFontSelection struct contains private data only, and should -only be accessed using the functions below. - - - - - -Creates a new #GtkFontSelection. - - -@Returns: a new #GtkFontSelection. - - - - -Gets the currently-selected font. - - -@fontsel: a #GtkFontSelection. -@Returns: the currently-selected font, or NULL if no font is selected. - - - - -Gets the currently-selected font name. - - -@fontsel: a #GtkFontSelection. -@Returns: - - - - -Sets the currently-selected font. - - -@fontsel: a #GtkFontSelection. -@fontname: a fontname. -@Returns: TRUE if the font was found. - - - - -Gets the text displayed in the preview area. - - -@fontsel: a #GtkFontSelection. -@Returns: the text displayed in the preview area. - - - - -Sets the text displayed in the preview area. - - -@fontsel: a #GtkFontSelection. -@text: the text to display in the preview area. - - - - -Sets one of the two font filters, to limit the fonts shown. - - -@fontsel: a #GtkFontSelection. -@filter_type: which of the two font filters to set, either -#GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter -can be changed by the user, but the base filter is permanent. -@font_type: the types of font to be shown. This is a bitwise combination of -#GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP, -or #GTK_FONT_ALL to show all three font types. -@foundries: a NULL-terminated array of strings containing foundry names which -will be shown, or NULL to show all foundries. -@weights: a NULL-terminated array of strings containing weight names which -will be shown, or NULL to show all weights. -@slants: a NULL-terminated array of strings containing slant names which -will be shown, or NULL to show all slants. -@setwidths: a NULL-terminated array of strings containing setwidth names which -will be shown, or NULL to show all setwidths. -@spacings: a NULL-terminated array of strings containing spacings which -will be shown, or NULL to show all spacings. -@charsets: a NULL-terminated array of strings containing charset names which -will be shown, or NULL to show all charsets. - - diff --git a/docs/reference/gtk/tmpl/gtkfontseldlg.sgml b/docs/reference/gtk/tmpl/gtkfontseldlg.sgml deleted file mode 100644 index a1df4d8038..0000000000 --- a/docs/reference/gtk/tmpl/gtkfontseldlg.sgml +++ /dev/null @@ -1,178 +0,0 @@ - -GtkFontSelectionDialog - - -a dialog box for selecting fonts. - - - -The #GtkFontSelectionDialog widget is a dialog box for selecting a font. - - -To set the font which is initially selected, use -gtk_font_selection_dialog_set_font_name(). - - -To get the selected font use gtk_font_selection_dialog_get_font() -or gtk_font_selection_dialog_get_font_name(). - - -To change the text which is shown in the preview area, use -gtk_font_selection_dialog_set_preview_text(). - - -Filters can be used to limit the fonts shown. There are 2 filters in the -#GtkFontSelectionDialog - a base filter and a user filter. The base filter -can not be changed by the user, so this can be used when the user must choose -from the restricted set of fonts (e.g. for a terminal-type application you may -want to force the user to select a fixed-width font). The user filter can be -changed or reset by the user, by using the 'Reset Filter' button or changing -the options on the 'Filter' page of the dialog. - - - -Setting a filter to show only fixed-width fonts. - - gchar *spacings[] = { "c", "m", NULL }; - gtk_font_selection_dialog_set_filter (GTK_FONT_SELECTION_DIALOG (fontsel), - GTK_FONT_FILTER_BASE, GTK_FONT_ALL, - NULL, NULL, NULL, NULL, spacings, NULL); - - - - -To allow only true scalable fonts to be selected use: - - - -Setting a filter to show only true scalable fonts. - - gtk_font_selection_dialog_set_filter (GTK_FONT_SELECTION_DIALOG (fontsel), - GTK_FONT_FILTER_BASE, GTK_FONT_SCALABLE, - NULL, NULL, NULL, NULL, NULL, NULL); - - - - - - - - -#GtkFontSelection -the underlying widget for selecting fonts. - - - - - - - -The #GtkFontSelectionDialog struct contains private data only, and should -only be accessed using the functions below. - - - - - -Creates a new #GtkFontSelectionDialog. - - -@title: the title of the dialog box. -@Returns: a new #GtkFontSelectionDialog. - - - - -Gets the currently-selected font. - - -@fsd: a #GtkFontSelectionDialog. -@Returns: the currently-selected font, or NULL if no font is selected. - - - - -Gets the currently-selected font name. - - -@fsd: a #GtkFontSelectionDialog. -@Returns: the currently-selected font name, or NULL if no font is selected. - - - - -Sets the currently-selected font. - - -@fsd: a #GtkFontSelectionDialog. -@fontname: a fontname. -@Returns: TRUE if the font was found. - - - - -Gets the text displayed in the preview area. - - -@fsd: a #GtkFontSelectionDialog. -@Returns: the text displayed in the preview area. - - - - -Sets the text displayed in the preview area. - - -@fsd: a #GtkFontSelectionDialog. -@text: the text to display in the preview area. - - - - -Sets one of the two font filters, to limit the fonts shown. - - -@fsd: a #GtkFontSelectionDialog. -@filter_type: which of the two font filters to set, either -#GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter -can be changed by the user, but the base filter is permanent. -@font_type: the types of font to be shown. This is a bitwise combination of -#GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP, -or #GTK_FONT_ALL to show all three font types. -@foundries: a NULL-terminated array of strings containing foundry names which -will be shown, or NULL to show all foundries. -@weights: a NULL-terminated array of strings containing weight names which -will be shown, or NULL to show all weights. -@slants: a NULL-terminated array of strings containing slant names which -will be shown, or NULL to show all slants. -@setwidths: a NULL-terminated array of strings containing setwidth names which -will be shown, or NULL to show all setwidths. -@spacings: a NULL-terminated array of strings containing spacings which -will be shown, or NULL to show all spacings. -@charsets: a NULL-terminated array of strings containing charset names which -will be shown, or NULL to show all charsets. - - - - -A set of bit flags used to specify the type of fonts shown -when calling gtk_font_selection_dialog_set_filter() or -gtk_font_selection_set_filter(). - - -@GTK_FONT_BITMAP: bitmap fonts. -@GTK_FONT_SCALABLE: scalable fonts. -@GTK_FONT_SCALABLE_BITMAP: scaled bitmap fonts. -@GTK_FONT_ALL: a bitwise combination of all of the above. - - - -A set of bit flags used to specify the filter being set -when calling gtk_font_selection_dialog_set_filter() or -gtk_font_selection_set_filter(). - - -@GTK_FONT_FILTER_BASE: the base filter, which can't be changed by the user. -@GTK_FONT_FILTER_USER: the user filter, which can be changed from within the -'Filter' page of the #GtkFontSelection widget. - diff --git a/docs/reference/gtk/tmpl/gtkframe.sgml b/docs/reference/gtk/tmpl/gtkframe.sgml deleted file mode 100644 index a675fc909b..0000000000 --- a/docs/reference/gtk/tmpl/gtkframe.sgml +++ /dev/null @@ -1,89 +0,0 @@ - -GtkFrame - - -A bin with a decorative frame and optional label. - - - -The frame widget is a Bin that surrounds its child -with a decorative frame and an optional label. -If present, the label is drawn in a gap in the -top side of the frame. The position of the -label can be controlled with gtk_frame_set_label_align(). - - - - - - - - - - - - - - - -Create a new Frame, with optional label @label. -If @label is %NULL, the label is omitted. - - -@label: -@Returns: - - - - - -Set the text of the label. If @label is %NULL, -the current label, if any, is removed. - - -@frame: -@label: - - - - -Set the alignment of the Frame widget's label. The -default value for a newly created Frame is 0.0. - - -@frame: The Frame widget. -@xalign: The position of the label along the top edge - of the widget. A value of 0.0 represents left alignment; - 1.0 represents right alignment. -@yalign: The y alignment of the label. Currently ignored. - - - - -Set the shadow type for the Frame widget. - - -@frame: The Frame widget. -@type: New shadow type. - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkgamma.sgml b/docs/reference/gtk/tmpl/gtkgamma.sgml deleted file mode 100644 index 28f392d5c1..0000000000 --- a/docs/reference/gtk/tmpl/gtkgamma.sgml +++ /dev/null @@ -1,40 +0,0 @@ - -GtkGammaCurve - - -a subclass of #GtkCurve for editing gamma curves. - - - -The #GtkGammaCurve widget is a subclass of #GtkCurve specifically for -editing gamma curves, which are used in graphics applications such as the -Gimp. - - -The #GammaCurve widget shows a curve which the user can edit with the mouse -just like a #GtkCurve widget. On the right of the curve it also displays -5 buttons, 3 of which change between the 3 curve modes (spline, linear and -free), and the other 2 set the curve to a particular gamma value, or reset it -to a straight line. - - - - - - - - - -The #GtkGammaCurve-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkGammaCurve. - - -@Returns: a new #GtkGammaCurve. - - diff --git a/docs/reference/gtk/tmpl/gtkgc.sgml b/docs/reference/gtk/tmpl/gtkgc.sgml deleted file mode 100644 index 7304c49122..0000000000 --- a/docs/reference/gtk/tmpl/gtkgc.sgml +++ /dev/null @@ -1,45 +0,0 @@ - -Graphics Contexts - - -provides access to a shared pool of #GdkGC objects. - - - -These functions provide access to a shared pool of #GdkGC objects. -When a new #GdkGC is needed, gtk_gc_get() is called with the required depth, -colormap and #GdkGCValues. If a #GdkGC with the required properties already -exists then that is returned. If not, a new #GdkGC is created. -When the #GdkGC is no longer needed, gtk_gc_release() is called. - - - - - - - - - -Gets a #GdkGC with the given depth, colormap and #GdkGCValues. -If a #GdkGC with the given properties already exists then it is returned, -otherwise a new #GdkGC is created. -The returned #GdkGC should be released with gtk_gc_release() when it is no -longer needed. - - -@depth: the depth of the #GdkGC to create. -@colormap: the #GdkColormap (FIXME: I don't know why this is needed). -@values: a #GdkGCValues struct containing settings for the #GdkGC. -@values_mask: a set of flags indicating which of the fields in @values has -been set. -@Returns: a #GdkGC. - - - - -Releases a #GdkGC allocated using gtk_gc_get(). - - -@gc: a #GdkGC. - - diff --git a/docs/reference/gtk/tmpl/gtkhandlebox.sgml b/docs/reference/gtk/tmpl/gtkhandlebox.sgml deleted file mode 100644 index e823a7a563..0000000000 --- a/docs/reference/gtk/tmpl/gtkhandlebox.sgml +++ /dev/null @@ -1,157 +0,0 @@ - -GtkHandleBox - - -a widget for detachable window portions. - - - -The #GtkHandleBox widget allows a portion of a window to be "torn -off". It is a bin widget which displays its child and a handle that -the user can drag to tear off a separate window (the float -window) containing the child widget. A thin -ghost is drawn in the original location of the -handlebox. By dragging the separate window back to its original -location, it can be reattached. - - -When reattaching, the ghost and float window, must be aligned -along one of the edges, the snap edge. -This either can be specified by the application programmer -explicitely, or GTK+ will pick a reasonable default based -on the handle position. - - -To make detaching and reattaching the handlebox as minimally confusing -as possible to the user, it is important to set the snap edge so that -the snap edge does not move when the handlebox is deattached. For -instance, if the handlebox is packed at the bottom of a VBox, then -when the handlebox is detached, the bottom edge of the handlebox's -allocation will remain fixed as the height of the handlebox shrinks, -so the snap edge should be set to %GTK_POS_BOTTOM. - - - - - - - - - -The #GtkHandleBox-struct struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -GtkShadowType shadow_type; -The shadow type for the entry. (See gtk_handle_box_set_shadow_type()). - - - -GtkPositionType handle_position; -The position of the handlebox's handle with respect -to the child. (See gtk_handle_box_set_handle_position()) - - - -gint snap_edge; -A value of type #GtkPosition type indicating snap edge for the widget. -(See gtk_handle_box_set_snap_edge). The value of -1 indicates -that this value has not been set. - - - -#gboolean child_detached; -A boolean value indicating whether the handlebox's -child is attached or detached. - - - - - - - - - - - -Create a new handle box. - - -@Returns: a new #GtkHandleBox. - - - - -Sets the type of shadow to be drawn around the border -of the - - -@handle_box: a #GtkHandleBox -@type: the shadow type. - - - - -Sets the side of the handlebox where the handle is drawn. - - -@handle_box: a #GtkHandleBox -@position: the side of the handlebox where the handle should be drawn. - - - - -Sets the snap edge of a handlebox. The snap edge is -the edge of the detached child that must be aligned -with the corresponding edge of the "ghost" left -behind when the child was detached to reattach -the torn-off window. Usually, the snap edge should -be chosen so that it stays in the same place on -the screen when the handlebox is torn off. - - -If the snap edge is not set, then an appropriate value -will be guessed from the handle position. If the -handle position is %GTK_POS_RIGHT or %GTK_POS_LEFT, -then the snap edge will be %GTK_POS_TOP, otherwise -it will be %GTK_POS_LEFT. - - -@handle_box: a #GtkHandleBox -@edge: the snap edge, or -1 to unset the value; in which -case GTK+ will try to guess an appropriate value -in the future. - - - - -This signal is emitted when the contents of the -handlebox are reattached to the main window. - - -@handlebox: the object which received the signal. -@widget: the child widget of the handlebox. - (this argument provides no extra information - and is here only for backwards-compatibility) - - - -This signal is emitted when the contents of the -handlebox are detached from the main window. - - -@handlebox: the object which received the signal. -@widget: the child widget of the handlebox. - (this argument provides no extra information - and is here only for backwards-compatibility) - - - -Determines the shadow type for the handlebox. - - diff --git a/docs/reference/gtk/tmpl/gtkhbbox.sgml b/docs/reference/gtk/tmpl/gtkhbbox.sgml deleted file mode 100644 index 889f2cf039..0000000000 --- a/docs/reference/gtk/tmpl/gtkhbbox.sgml +++ /dev/null @@ -1,98 +0,0 @@ - -GtkHButtonBox - - -a container for arranging button horizontally. - - - -A button box should be used to provide a consistent layout of buttons -throughout your application. There is one default layout and a default -spacing value that are persistant across all #HButtonBox widgets. - - -The layout/spacing can then be altered by the programmer, or if desired, by -the user to alter the 'feel' of a program to a small degree. - - -A #HButtonBox is created with gtk_hbutton_box_new(). Buttons are packed into -a button box the same way as any other box, using gtk_box_pack_start() or -gtk_box_pack_end(). - - -The default spacing between buttons can be set with -gtk_hbutton_box_set_spacing_default() and queried with -gtk_hbutton_box_get_spacing_default(). - - -The arrangement and layout of the buttons can be changed using -gtk_hbutton_box_set_layout_default() and queried with -gtk_hbutton_box_get_layout_default(). - - - - - - -#GtkBox -Used to pack widgets into button boxes. - -#GtkButtonBox -Provides functions for controlling button boxes. - - -#GtkVButtonBox -Pack buttons vertically - - - - - - -button_box is the #GtkHButtonBox widget itself and -should not be modified directly. - - - - - -Creates a new horizontal button box. - - -@Returns: a new button box #GtkWidget. - - - - -Retrieves the current default spacing for horizontal button boxes. This is the number of pixels -to be placed between the buttons when they are arranged. - - -@Returns: the default number of pixels between buttons. - - - - -Retrieves the current layout used to arrange buttons in button box widgets. - - -@Returns: the current #GtkButtonBoxStyle. - - - - -Changes the default spacing that is placed between widgets in an -horizontal button box. - - -@spacing: an integer value. - - - - -Sets a new layout mode that will be used by all button boxes. - - -@layout: a new #GtkButtonBoxStyle. - - diff --git a/docs/reference/gtk/tmpl/gtkhbox.sgml b/docs/reference/gtk/tmpl/gtkhbox.sgml deleted file mode 100644 index 49b359b763..0000000000 --- a/docs/reference/gtk/tmpl/gtkhbox.sgml +++ /dev/null @@ -1,46 +0,0 @@ - -GtkHBox - - -horizontal container box - - - -GtkHBox is a container that organizes child widgets into a single row. - - - -Use the #GtkBox packing interface to determine the arrangement, -spacing, width, and alignment of GtkHBox children. - - - -All children are allocated the same height. - - - - - - - -#GtkVBox -a sister class that organizes widgets into a column. - - - - - - - - - - - -Creates a new GtkHBox. - - -@homogeneous: %TRUE if all children are to be given equal space allotments. -@spacing: the number of pixels to place by default between children. -@Returns: a new GtkHBox. - - diff --git a/docs/reference/gtk/tmpl/gtkhpaned.sgml b/docs/reference/gtk/tmpl/gtkhpaned.sgml deleted file mode 100644 index 19f42a4101..0000000000 --- a/docs/reference/gtk/tmpl/gtkhpaned.sgml +++ /dev/null @@ -1,32 +0,0 @@ - -GtkHPaned - - -A container with two panes arranged horizontally. - - - -The HPaned widget is a container widget with two -children arranged horizontally. The division between -the two panes is adjustable by the user by dragging -a handle. See #GtkPaned for details. - - - - - - - - - - - - - - -Create a new #GtkHPaned - - -@Returns: the new #GtkHPaned - - diff --git a/docs/reference/gtk/tmpl/gtkhruler.sgml b/docs/reference/gtk/tmpl/gtkhruler.sgml deleted file mode 100644 index e6ceadc291..0000000000 --- a/docs/reference/gtk/tmpl/gtkhruler.sgml +++ /dev/null @@ -1,36 +0,0 @@ - -GtkHRuler - - -A horizontal ruler. - - - -The HRuler widget is a widget arranged horizontally creating a ruler that is -utilized around other widgets such as a text widget. The ruler is used to show -the location of the mouse on the window and to show the size of the window in -specified units. The available units of measurement are GTK_PIXELS, GTK_INCHES -and GTK_CENTIMETERS. GTK_PIXELS is the default. -rulers. - - - - - - - - - -The #GtkHRuler struct contains private data and should be accessed -with the functions below. - - - - - -Creates a new horizontal ruler. - - -@Returns: the new GTKHRuler. - - diff --git a/docs/reference/gtk/tmpl/gtkhscale.sgml b/docs/reference/gtk/tmpl/gtkhscale.sgml deleted file mode 100644 index e23b095834..0000000000 --- a/docs/reference/gtk/tmpl/gtkhscale.sgml +++ /dev/null @@ -1,44 +0,0 @@ - -GtkHScale - - -a horizontal slider widget for selecting a value from a range. - - - -The #GtkHScale widget is used to allow the user to select a value using -a horizontal slider. -A #GtkAdjustment is used to set the initial value, the lower -and upper bounds, and the step and page increments. - - -The position to show the current value, and the number of decimal places -shown can be set using the parent #GtkScale class's functions. - - - - - - - - - -The #GtkHScale-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkHScale. - - -@adjustment: the #GtkAdjustment which sets the range of the scale. -@Returns: a new #GtkHScale. - - - - -the #GtkAdjustment which sets the range of the scale. - - diff --git a/docs/reference/gtk/tmpl/gtkhscrollbar.sgml b/docs/reference/gtk/tmpl/gtkhscrollbar.sgml deleted file mode 100644 index 5317f3eae9..0000000000 --- a/docs/reference/gtk/tmpl/gtkhscrollbar.sgml +++ /dev/null @@ -1,40 +0,0 @@ - -GtkHScrollbar - - -A horizontal scrollbar - - - -The HScrollbar widget is a widget arranged horizontally creating a scroll -bar. See #GtkScrollbar for details on scrollbars. #GtkAdjustment pointers may be -added to handle the adjustment of the scrollbars or it may be left NULL in which -case one will be created you. See #GtkAdjustment for details. - - - - - - - - - -The #GtkHScrollbar struct contains private data and should be accessed -unsing the functions below. - - - - - -Creates a new horizontal scrollbar. - - -@adjustment: -@Returns: the new GTKHScrollbar - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkhseparator.sgml b/docs/reference/gtk/tmpl/gtkhseparator.sgml deleted file mode 100644 index 6eaa96a747..0000000000 --- a/docs/reference/gtk/tmpl/gtkhseparator.sgml +++ /dev/null @@ -1,45 +0,0 @@ - -GtkHSeparator - - -a horizontal separator. - - - -The #GtkHSeparator widget is a horizontal separator, used to group the -widgets within a window. It displays a horizontal line with a shadow to -make it appear sunken into the interface. - - - -The #GtkHSeparator widget is not used as a separator within menus. -To create a separator in a menu create an empty #GtkMenuItem widget using -gtk_menu_item_new() and add it to the menu with gtk_menu_append(). - - - - - - - -#GtkVSeparator -a vertical separator. - - - - - - -The #GtkHSeparator-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkHSeparator. - - -@Returns: a new #GtkHSeparator. - - diff --git a/docs/reference/gtk/tmpl/gtkimage.sgml b/docs/reference/gtk/tmpl/gtkimage.sgml deleted file mode 100644 index 4e6b178ac6..0000000000 --- a/docs/reference/gtk/tmpl/gtkimage.sgml +++ /dev/null @@ -1,60 +0,0 @@ - -GtkImage - - -A widget displaying a graphical image - - - -The #GtkImage widget displays a graphical image. The image is typically created -using gdk_image_new. - - -The pixels in a #GtkImage may be manipulated by the application after creation, -as #GtkImage store the pixel data on the client side. If you wish to store the -pixel data on the server side (thus not allowing manipulation of the data after -creation) you should use #GtkPixmap. - - - - -#GtkPixmap, #GdkRgb - - - - -This struct contain private data only and should be accessed by the functions -below. - - - - - -Creates the new GtkImage using the value and the mask. - - -@val: -@mask: a GDKBitmap that indicates which parts of the image should be transparent. -@Returns: the GtkImage - - - - -Sets the GtkImage - - -@image: a #GdkPixmap -@val: -@mask: a GDKBitmap that indicates which parts of the image should be transparent. - - - - -Gets the GtkImage - - -@image: a #GdkPixmap -@val: -@mask: a GDKBitmap that indicates which parts of the image should be transparent. - - diff --git a/docs/reference/gtk/tmpl/gtkinputdialog.sgml b/docs/reference/gtk/tmpl/gtkinputdialog.sgml deleted file mode 100644 index 691cd1e5a5..0000000000 --- a/docs/reference/gtk/tmpl/gtkinputdialog.sgml +++ /dev/null @@ -1,63 +0,0 @@ - -GtkInputDialog - - -Configure devices for the XInput extension. - - - -#GtkInputDialog displays a dialog which allows the user -to configure XInput extension devices. For each -device, they can control the mode of the device -(disabled, screen-relative, or window-relative), -the mapping of axes to coordinates, and the -mapping of the devices macro keys to key press -events. - - -#GtkInputDialog contains two buttons to which -the application can connect; one for closing -the dialog, and one for saving the changes. -No actions are bound to these by default. -The changes that the user makes take effect -immediately. - - - - - - - - - - - - - - -Creates a new #GtkInputDialog. - - -@Returns: the new #GtkInputDialog. - - - - -This signal is emitted when the user changes the -mode of a device from #GDK_MODE_DISABLED to a -#GDK_MODE_SCREEN or #GDK_MODE_WINDOW. - - -@inputdialog: the object which received the signal. -@deviceid: The ID of the newly enabled device. - - - -This signal is emitted when the user changes the -mode of a device from a #GDK_MODE_SCREEN or #GDK_MODE_WINDOW -to #GDK_MODE_ENABLED. - - -@inputdialog: the object which received the signal. -@deviceid: The ID of the newly disabled device. - diff --git a/docs/reference/gtk/tmpl/gtkinvisible.sgml b/docs/reference/gtk/tmpl/gtkinvisible.sgml deleted file mode 100644 index 50d2f76aab..0000000000 --- a/docs/reference/gtk/tmpl/gtkinvisible.sgml +++ /dev/null @@ -1,35 +0,0 @@ - -GtkInvisible - - -internally-used widget which is not displayed. - - - -The #GtkInvisible widget is used internally in GTK+, and is probably not useful -for application developers. - - -It is used for reliable pointer grabs and selection handling in the code -for drag-and-drop. - - - - - - - - - -The #GtkInvisible-struct struct contains no public fields. - - - - - -Creates a new #GtkInvisible. - - -@Returns: a new #GtkInvisible. - - diff --git a/docs/reference/gtk/tmpl/gtkitem.sgml b/docs/reference/gtk/tmpl/gtkitem.sgml deleted file mode 100644 index eec61acc59..0000000000 --- a/docs/reference/gtk/tmpl/gtkitem.sgml +++ /dev/null @@ -1,69 +0,0 @@ - -GtkItem - - -abstract base class for #GtkMenuItem, #GtkListItem and #GtkTreeItem. - - - -The #GtkItem widget is an abstract base class for #GtkMenuItem, #GtkListItem -and #GtkTreeItem. - - - - - - - - - -The #GtkItem-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Emits the "select" signal on the given item. - - -@item: a #GtkItem. - - - - -Emits the "deselect" signal on the given item. - - -@item: a #GtkItem. - - - - -Emits the "toggle" signal on the given item. - - -@item: a #GtkItem. - - - - -Emitted when the item is selected. - - -@item: the object which received the signal. - - - -Emitted when the item is deselected. - - -@item: the object which received the signal. - - - -Emitted when the item is toggled. - - -@item: the object which received the signal. - diff --git a/docs/reference/gtk/tmpl/gtkitemfactory.sgml b/docs/reference/gtk/tmpl/gtkitemfactory.sgml deleted file mode 100644 index bbe4ac0fec..0000000000 --- a/docs/reference/gtk/tmpl/gtkitemfactory.sgml +++ /dev/null @@ -1,350 +0,0 @@ - -GtkItemFactory - - - - - - - - - - - - - - - - - - - - - - - - - -@func_data: -@str: - - - - - - - -@path: -@func_data: -@Returns: - - - - - - - - - - - - - - -@callback_data: -@callback_action: -@widget: - - - - - - - -@widget: -@callback_data: -@callback_action: - - - - - - - -@path: -@accelerator: -@callback: -@callback_action: -@item_type: - - - - - - -@path: -@accelerator_key: -@accelerator_mods: -@modified: -@in_propagation: -@dummy: -@widgets: - - - - - - -@container_type: -@path: -@accel_group: -@Returns: - - - - - - - -@ifactory: -@container_type: -@path: -@accel_group: - - - - - - - -@file_name: - - - - - - - -@rc_string: - - - - - - - -@scanner: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: -@Returns: - - - - - - - -@ifactory: -@path: -@Returns: - - - - - - - -@ifactory: -@action: -@Returns: - - - - - - - -@path_pspec: -@modified_only: -@print_func: -@func_data: - - - - - - - -@file_name: -@path_pspec: -@modified_only: - - - - - - - -@FILE_pointer: -@string: - - - - - - - -@ifactory: -@entry: -@callback_data: -@callback_type: - - - - - - - -@ifactory: -@n_entries: -@entries: -@callback_data: - - - - - - - -@ifactory: -@n_entries: -@entries: -@callback_data: -@callback_type: - - - - - - - -@ifactory: -@path: - - - - - - - -@ifactory: -@entry: - - - - - - - -@ifactory: -@n_entries: -@entries: - - - - - - - -@ifactory: -@x: -@y: -@mouse_button: -@time: - - - - - - - -@ifactory: -@popup_data: -@destroy: -@x: -@y: -@mouse_button: -@time: - - - - - - - -@ifactory: -@Returns: - - - - - - - -@widget: -@Returns: - - - - - - - -@path: -@Returns: - - - - - - - -@n_entries: -@entries: - - - - - - - -@ifactory_path: -@path: - - - - - - - -@ifactory: -@func: -@data: -@notify: - - diff --git a/docs/reference/gtk/tmpl/gtklabel.sgml b/docs/reference/gtk/tmpl/gtklabel.sgml deleted file mode 100644 index 5511322ca8..0000000000 --- a/docs/reference/gtk/tmpl/gtklabel.sgml +++ /dev/null @@ -1,138 +0,0 @@ - -GtkLabel - - -A widget that displays a small to medium amount of text. - - - -The #GtkLabel widget is usually used directly by the programmer to display -word(s) describing an adjacent widget or its use. It is also used internally -by Gtk+ as #GtkButton labels, #GtkMenu items, and many other widgets which -use text. - - - - - - - - - -This should not be accessed directly. Use the accessor functions as -described below. - - - - - -Internal to #GtkLabel. - - - - - -Creates a new label with the given string of text inside it. You can -pass NULL to get an empty label widget. - - -@str: The string you want to display in the #GtkLabel -@Returns: The newly allocated #GtkLabel widget - - - - -Aliases gtk_label_set_text. Probably used for backward compatibility with -Gtk+ 1.0.x. - - - - - - -The pattern of underlines you want under the existing text within the -#GtkLabel widget. For example if the current text of the label says -"FooBarBaz" passing a pattern of "___ ___" will underline -"Foo" and "Baz" but not "Bar". - - -@label: The #GtkLabel you want to set the pattern to. -@pattern: The pattern as described above. - - - - -Set where the text within the #GtkLabel will align to. This can be one of -four values: GTK_JUSTIFY_LEFT, GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, -and GTK_JUSTIFY_FILL. GTK_JUSTIFY_CENTER is the default value when the -widget is first created with gtk_label_new(). - - -@label: The #GtkLabel widget you want to set justification for. -@jtype: The #GtkJustification type as described above. - - - - -Gets the current string of text within the #GtkLabel and writes it to -the given str argument. It does not make a copy of this string so you -must not write to it. - - -@label: The #GtkLabel widget you want to get the text from. -@str: The reference to the pointer you want to point to the text. - - - - -Parses the given string for underscores and converts the next -character to an underlined character. The last character that -was underlined will have its lower-cased accelerator keyval returned (i.e. -"_File" would return the keyval for "f". This is -probably only used within the Gtk+ library itself for menu items and such. - - -@label: The #GtkLabel you want to affect. -@string: The string you want to parse for underlines. -@Returns: The lowercase keyval of the last character underlined. - - - - -Toggles line wrapping within the #GtkLabel widget. TRUE makes it break -lines if text exceeds the widget's size. FALSE lets the text get cut off -by the edge of the widget if it exceeds the widget size. - - -@label: The #GtkLabel you want to set line wrapping for. -@wrap: TRUE turns it on; FALSE turns it off. - - - - -Sets the text within the #GtkLabel widget. It overwrites any text that -was there before. Note that underlines that were there before do not -get overwritten. If you want to erase underlines just send NULL to -gtk_label_set_pattern(). - - -@label: The #GtkLabel you want to set the text for. -@str: The text you want to add. - - - - -The actual label text. Do not write to this pointer, it is not copied. - - - - -The pattern of underlines under the existing text. Do not change the -pointer, it isn't copied. - - - - -The #GtkJustification setting. See gtk_label_set_justify() for more info. - - diff --git a/docs/reference/gtk/tmpl/gtklayout.sgml b/docs/reference/gtk/tmpl/gtklayout.sgml deleted file mode 100644 index ded7a594cc..0000000000 --- a/docs/reference/gtk/tmpl/gtklayout.sgml +++ /dev/null @@ -1,116 +0,0 @@ - -GtkLayout - - - - - - - - - - - - - - - - - - - - - - - - - -@hadjustment: -@vadjustment: -@Returns: - - - - - - - -@layout: -@widget: -@x: -@y: - - - - - - - -@layout: -@widget: -@x: -@y: - - - - - - - -@layout: -@width: -@height: - - - - - - - -@layout: - - - - - - - -@layout: - - - - - - - -@layout: -@Returns: - - - - - - - -@layout: -@Returns: - - - - - - - -@layout: -@adjustment: - - - - - - - -@layout: -@adjustment: - - diff --git a/docs/reference/gtk/tmpl/gtklist.sgml b/docs/reference/gtk/tmpl/gtklist.sgml deleted file mode 100644 index 85d8c8a871..0000000000 --- a/docs/reference/gtk/tmpl/gtklist.sgml +++ /dev/null @@ -1,372 +0,0 @@ - -GtkList - - -Widget for packing a list of selectable items. - - - -The GtkList widget is a container whose children are displayed -vertically in order, and can be selected. - -The list has many selection modes, which are programmer selective and -depend on how many elements are able to be selected at the same time. - - - - - - -#GtkContainer -For functions that apply to every #GtkContainer -(like #GtkList). - - -#GtkListitem -Children of a #GtkList widget must be of this -type. - - - - - - - - - -@container: the parent class object -@children: a GList with the children of the list; belonging to #GtkListitem -@selection: a GList with selected items of the list -@undo_selection: -@undo_unselection: -@last_focus_child: -@undo_focus_child: -@htimer: -@vtimer: -@anchor: -@drag_pos: -@anchor_state: -@selection_mode: the selection mode of the list -@drag_selection: -@add_mode: - - - -Creates a new #GtkList. - - -@Returns: the newly created #GtkList - - - - -Inserts @items into the @list at the position @position. The @GList items -must not be freed after. - - -@list: the list widget. -@items: the items. -@position: the position to insert @items, starting at 0. - - - - -Adds @items to the end of the @list. - - -@list: the list widget. -@items: the items. - - - - -Inserts @items at the beginning of the @list. - - -@list: the list widget. -@items: the items. - - - - -Removes the @items from the @list. - - -@list: the list widget. -@items: the items to remove. - - - - -Removes the @items from the @list, without unreferencing them. It -may be useful if you want to move the items from one list to another. - - -@list: the list widget. -@items: the items. - - - - -Removes the items between index @start (included) and @end (excluded) -from the @list. If @end is negative, or greater than the number of -children of @list, it's assumed to be exactly the number of -elements. If @start is greater than or equal to @end, nothing is -done. - - -@list: the list widget. -@start: the index of the first item to remove. -@end: the index of the lest item to remove plus one. - - - - -Selects the child number @item of the @list. Nothing happens if @item -is out of bounds. The signal GtkList::select-child will be emitted. - - -@list: the list widget. -@item: the index of the child to select. - - - - -Unselects the child number @item of the @list. Nothing happens if -@item is out of bounds. The signal GtkList::unselect-child will be -emitted. - - -@list: the list widget. -@item: the index of the child to unselect. - - - - -Selects the given @child. The signal GtkList::select-child will be -emitted. - - -@list: the list widget -@child: the child to select. - - - - -Unselects the given @child. The signal GtkList::unselect-child will be -emitted. - - -@list: the list widget. -@child: the child to unselect. - - - - -Searches the children of @list for the index of @child. - - -@list: the list widget. -@child: the child to look for. -@Returns: the index of the child, -1 if not found. - - - - -Set the list selection mode. The selection mode can be any value in -#GtkSelectionMode: - - -#GTK_SELECTION_SINGLE - -Zero or one element may be selected. - - - - -#GTK_SELECTION_BROWSE - -Exactly one element is always selected (this can be false after you have -changed the selection mode). - - - - -#GTK_SELECTION_MULTIPLE - -Any number of elements may be selected. Clicks toggle the state of an -item. - - - - -#GTK_SELECTION_EXTENDED - -Any number of elements may be selected. Click-drag selects a range of -elements; the Ctrl key may be used to enlarge the selection, and -Shift key to select between the focus and the child pointed to. - - - - - -@list: the list widget. -@mode: the new selection mode. - - - - -Extends the selection by moving the anchor according to @scroll_type. Only -in #GTK_SELECTION_EXTENDED. - - -@list: the list widget. -@scroll_type: the direction and length. -@position: the position if @scroll_type is #GTK_SCROLL_JUMP. -@auto_start_selection: if #TRUE, gtk_list_start_selection is automatically -carried out before extending the selection. - - - - -Starts a selection (or part of selection) at the focused child. Only in -#GTK_SELECTION_EXTENDED mode. - - -@list: the list widget. - - - - -Ends the selection. Used with #gtk_list_extend_selection and -#gtk_list_start_selection. Only in #GTK_SELECTION_EXTENDED. - - -@list: - - - - -Selects all children of @list. A signal will be emitted for each -newly selected child. - - -@list: the list widget. - - - - -Unselects all children of @list. A signal will be emitted for each -newly unselected child. - - -@list: the list widget. - - - - -Scrolls @list horizontaly. This supposes that the list is packed into a -scrolled window or something similar, and adjustments are well -set. Step and page increment are those from the horizontal adjustment -of @list. Backward means to the left, and forward to the -right. Out of bounds values are truncated. -@scroll_type may be any valid #GtkScrollType. If @scroll_type is -#GTK_SCROLL_NONE, nothing is done. If it's #GTK_SCROLL_JUMP, the list -scrolls to the ratio @position: 0 is full left, 1 is full right. - - -@list: the list widget. -@scroll_type: the scrolling type. -@position: the position if @scroll_type is #GTK_SCROLL_JUMP - - - - -Scrolls @list vertically. This supposes that the list is packed into a -scrolled window or something similar, and adjustments are well -set. Step and page increment are those from the vertical adjustment -of @list. Backward means up, and forward down. Out of bounds values are -truncated. -@scroll_type may be any valid #GtkScrollType. If @scroll_type is -#GTK_SCROLL_NONE, nothing is done. If it's #GTK_SCROLL_JUMP, the list -scrolls to the ratio @position: 0 is top, 1 is bottom. - - -@list: the list widget. -@scroll_type: the scrolling type. -@position: the position if @scroll_type is #GTK_SCROLL_JUMP - - - - -Toggles between adding to the selection and beginning a new selection. Only -in #GTK_SELECTION_EXTENDED. Useful with #gtk_list_extend_selection. - - -@list: the list widget. - - - - -Toggles the focus row. If the focus row is selected, it's -unselected. If the focus row is unselected, it's selected. If the -selection mode of @list is #GTK_SELECTION_BROWSE, this has no effect, -as the selection is always at the focus row. - - -@list: the list widget. - - - - -Toggles the child @item of list. If the selection mode of @list is -#GTK_SELECTION_BROWSE, the item is selected, and the others are -unselected. - - -@list: the list widget. -@item: the child to toggle. - - - - -Restores the selection in the last state, only if selection mode is -#GTK_SELECTION_EXTENDED. If this function is called twice, the selection is -cleared. This function sometimes gives stranges "last states". - - -@list: the list widget. - - - - -Stops the drag selection mode and ungrabs the pointer. This has no -effect if a drag selection is not active. - - -@list: the list widget. - - - - -The selection of the widget has just changed. - - -@list: the object which received the signal. - - - -The child @widget has just been selected. - - -@list: the object which received the signal. -@widget: the newly selected child. - - - -The child @widget has just been unselected. - - -@list: the object which received the signal. -@widget: the newly unselected child. - diff --git a/docs/reference/gtk/tmpl/gtklistitem.sgml b/docs/reference/gtk/tmpl/gtklistitem.sgml deleted file mode 100644 index 696726c07a..0000000000 --- a/docs/reference/gtk/tmpl/gtklistitem.sgml +++ /dev/null @@ -1,145 +0,0 @@ - -GtkListItem - - -an item in a #GtkList. - - - -The #GtkListItem widget is used for each item in a #GtkList. - - - - - - - - -#GtkList -the parent list widget. - - - - - - - - -The #GtkListItem struct contains private data only, and should -only be accessed using the functions below. - - - - - -Creates a new #GtkListitem. - - -@Returns: a new #GtkListItem. - - - - -Creates a new #GtkListItem with a child label containing the given string. - - -@label: the string to use for the child label. -@Returns: a new #GtkListItem with a child #GtkLabel with the text set to -@label. - - - - -Selects the item, by emitting the item's "select" signal. -Depending on the selection mode of the list, this may cause other items to -be deselected. - - -@list_item: a #GtkListItem. - - - - -Deselects the item, by emitting the item's "deselect" signal. - - -@list_item: a #GtkListItem. - - - - - - - -@listitem: the object which received the signal. - - - - - - -@listitem: the object which received the signal. - - - - - - -@listitem: the object which received the signal. - - - - - - -@listitem: the object which received the signal. - - - - - - -@listitem: the object which received the signal. - - - - - - -@listitem: the object which received the signal. - - - - - - -@listitem: the object which received the signal. - - - - - - -@listitem: the object which received the signal. -@scroll_type: -@position: -@auto_start_selection: - - - - - - -@listitem: the object which received the signal. -@scroll_type: -@position: - - - - - - -@listitem: the object which received the signal. -@scroll_type: -@position: - diff --git a/docs/reference/gtk/tmpl/gtkmain.sgml b/docs/reference/gtk/tmpl/gtkmain.sgml deleted file mode 100644 index 542ffb6a09..0000000000 --- a/docs/reference/gtk/tmpl/gtkmain.sgml +++ /dev/null @@ -1,647 +0,0 @@ - -General - - -Mainloop and event handling - - - -GTK uses an event oriented programming model. While conventional C programs -have control over the program flow all the time this does not apply to -applications written using GTK. Instead you set up some objects and -register some functions (callbacks) to be called whenever -some event occurs and give control to the GTK mainloop (e.g. by calling -gtk_main). - - - - Typical <function>main</function> function for a GTK application - -int -main (int argc, char **argv) -{ - /* Initialize i18n support */ - gtk_set_locale (); - - /* Initialize the widget set */ - gtk_init (&argc, &argv); - - /* Create the main window */ - mainwin = gtk_window_new (GTK_WINDOW_TOPLEVEL); - - /* Set up our GUI elements */ - ... - - /* Show the application window */ - gtk_widget_showall (mainwin); - - /* Let the user interact with our application */ - gtk_main (); - - /* The user lost interest */ - gtk_exit (0); -} - - - - - - - - - -Sets the current locale according to the program environment. This is the -same as calling the libc function setlocale(LC_ALL, "") but also takes -care of the locale specific setup of the windowing system used by GDK. - - - -You should call this function before gtk_init to -support internationalization of your GTK+ applications. - - -@Returns: A string corresponding to the locale set. - - - - -Call this function before using any other GTK functions in your GUI -applications. It will initialize everything needed to operate the toolkit and -parses some standard command line options. argc and -argv are adjusted accordingly so your own code will -never see those standard arguments. - - - - -This function will terminate your program if it was unable to initialize -the GUI for some reason. If you want your program to fall back to a -textual interface you want to call gtk_init_check -instead. - - - -@argc: Address of the argc parameter of your -main function. Changed if any arguments were -handled. -@argv: Address of the argv parameter of -main. Any parameters understood by -gtk_init are stripped before return. - - - - -This function does the same work as gtk_init with only -a single change: It does not terminate the program if the GUI can't be -initialized. Instead it returns %FALSE on failure. - - -This way the application can fall back to some other means of communication -with the user - for example a curses or command line interface. - - -@argc: A reference to the argc of the main - function. -@argv: A reference to the argv of the main - function. -@Returns: %TRUE if the GUI has been successful initialized, -%FALSE otherwise. - - - - -Terminate the program and return the given exit code to the caller. -This function will shut down the GUI and free all resources allocated -for GTK. - - -@error_code: Return value to pass to the caller. This is dependend on the -target system but at least on Unix systems %0 means -success. - - - - -Check if any events are pending. This can be used to update the GUI -and invoke timeouts etc. while doing some time intensive computation. - - - - Updating the GUI during a long computation - - /* computation going on */ -... - while (gtk_events_pending ()) - gtk_main_iteration (); -... - /* computation continued */ - - - -@Returns: %TRUE if any events are pending, %FALSE otherwise. - - - - -Runs the main loop until gtk_main_quit() is called. You can nest calls to -gtk_main. In that case gtk_main_quit() will make the innerst invocation -of the main loop return. - - - - - - -Ask for the current nesting level of the main loop. This can be useful -when calling gtk_quit_add. - - -@Returns: the nesting level of the current invocation of the main loop. - - - - -Makes the innermost invocation of the main loop return when it regains -control. - - - - - - -Runs a single iteration of the mainloop. If no events are waiting to be -processed GTK+ will block until the next event is noticed. If you don't -want to block look at gtk_main_iteration_do or check if any events are -pending with gtk_events_pending first. - - -@Returns: %TRUE if gtk_main_quit has been called for the innermost mainloop. - - - - -Run a single iteration of the mainloop. If no events are available either -return or block dependend on the value of @blocking. - - -@blocking: %TRUE if you want GTK+ to block if no events are pending. -@Returns: %TRUE if gtk_main_quit has been called for the innermost mainloop. - - - - -Process a single GDK event. This is public only to allow filtering of events -between GDK and GTK. You will not usually need to call this function directly. - - -While you should not call this function directly, you might want to know -how exactly events are handled. So here is what this function does with -the event: - - - - - Compress enter/leave notify events. If the event passed build an - enter/leave pair together with the next event (peeked from Gdk) - both events are thrown away. This is to avoid a backlog of (de-)highlighting - widgets crossed by the pointer. - - - Find the widget which got the event. If the widget can't be determined - the event is thrown away unless it belongs to a INCR transaction. In that - case it is passed to gtk_selection_incr_event. - - - Then the event is passed on a stack so you can query the currently handled - event with gtk_get_current_event. - - - The event is sent to a widget. If a grab is active all events for - widgets that are not in the contained in the grab widget are sent to the - latter with a few exceptions: - - - - Deletion and destruction events are still sent to the event widget for - obvious reasons. - - - Events which directly relate to the visual representation of the event - widget. - - - Leave events are delivered to the event widget if there was an enter - event delivered to it before without the paired leave event. - - - Drag events are not redirected because it is unclear what the semantics - of that would be. - - - - Another point of interest might be that all keypresses are first passed - through the key snooper functions if there are any. Read the description - of gtk_key_snooper_install() if you need this feature. - - - After finishing the delivery the event is popped from the event stack. - - - -@event: An event to process (normally) passed by Gdk. - - - - -Each GTK+ module must have a function gtk_module_init with this prototype. -This function is called after loading the module with the argc and argv -cleaned from any arguments that GTK+ handles itself. - - -@argc: Pointer to the number of arguments remaining after gtk_init. -@argv: Points to the argument vector. - - - - -All this function does it to return TRUE. This can be useful for example -if you want to inhibit the deletion of a window. Of course you should -not do this as the user expects a reaction from clicking the close -icon of the window... - - - - A persistent window - -##include <gtk/gtk.h> - -int -main (int argc, char **argv) -{ - GtkWidget *win, *but; - - gtk_init( &argc, &argv ); - - win = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_signal_connect (GTK_OBJECT(win), "delete-event", - (GtkSignalFunc) gtk_true, NULL); - gtk_signal_connect (GTK_OBJECT(win), "destroy", - (GtkSignalFunc) gtk_main_quit, NULL); - - but = gtk_button_new_with_label ("Close yourself. I mean it!"); - gtk_signal_connect_object ( - GTK_OBJECT (but), "clicked", - (GtkSignalFunc) gtk_object_destroy, (gpointer) win ); - gtk_container_add (GTK_CONTAINER (win), but); - - gtk_widget_show_all (win); - gtk_main (); - return 0; -} - - - -@Returns: %TRUE - - - - -Analogical to gtk_true this function does nothing -but always returns %FALSE. - - -@Returns: %FALSE - - - - -Makes %widget the current grabbed widget. This means that interaction with -other widgets in the same application is blocked and mouse as well as -keyboard events are delivered to this %widget. - - -@widget: The widget that grabs keyboard and pointer events. - - - - -Queries the current grab. - - -@Returns: The widget which currently has the grab or %NULL if no grab is active. - - - - -Remove the grab from the given widget. You have to pair calls to gtk_grab_add -and gtk_grab_remove. - - -@widget: The widget which gives up the grab. - - - - -Register a function to be called when the mainloop is started. - - -@function: Function to invoke when gtk_main is called next. -@data: Data to pass to that function. - - - - -Trigger destruction of %object in case the mainloop at level %main_level -is quit. - - -@main_level: Level of the mainloop which shall trigger the destruction. -@object: Object to be destroyed. - - - - -Registers a function to be called when an instance of the mainloop is left. - - -@main_level: Level at which termination the function shall be called. You - can pass 0 here to have the function run at the termination of the current - mainloop. -@function: The function to call. This should return 0 to be removed from the - list of quit handlers. Otherwise the function might be called again. -@data: Pointer to pass when calling %function. -@Returns: A handle for this quit handler (you need this for gtk_quit_remove()) - or 0 if you passed a NULL pointer in %function. - - - - -Registers a function to be called when an instance of the mainloop is left. -In comparison to gtk_quit_add() this function adds the possibility to -pass a marshaller and a function to be called when the quit handler is freed. - - -The former can be used to run interpreted code instead of a compiled function -while the latter can be used to free the information stored in %data (while -you can do this in %function as well)... So this function will mostly be -used by GTK+ wrappers for languages other than C. - - -@main_level: Level at which termination the function shall be called. You - can pass 0 here to have the function run at the termination of the current - mainloop. -@function: The function to call. This should return 0 to be removed from the - list of quit handlers. Otherwise the function might be called again. -@marshal: The marshaller to be used. If this is non-NULL, %function is - ignored. -@data: Pointer to pass when calling %function. -@destroy: Function to call to destruct %data. Gets %data as argument. -@Returns: A handle for this quit handler (you need this for gtk_quit_remove()) - or 0 if you passed a NULL pointer in %function. - - - - -Remove a quit handler by it's identifier. - - -@quit_handler_id: Identifier for the handler returned when installing it. - - - - -Remove a quit handler identified by it's %data field. - - -@data: The pointer passed as %data to gtk_quit_add() or gtk_quit_add_full(). - - - - -Registers a function to be called periodically. The function will be called -repeatedly after %interval milliseconds until it returns %FALSE at which -point the timeout is destroyed and will not be called again. - - -@interval: The time between calls to the function, in milliseconds - (1/1000ths of a second.) -@function: The function to call periodically. -@marshal: The marshaller to use instead of the function (if non-NULL). -@data: The data to pass to the function. -@destroy: Function to call when the timeout is destroyed or NULL. -@Returns: A unique id for the event source. - - - - -Registers a function to be called periodically. The function will be called -repeatedly after %interval milliseconds until it returns %FALSE at which -point the timeout is destroyed and will not be called again. - - -@interval: The time between calls to the function, in milliseconds - (1/1000ths of a second.) -@function: The function to call periodically. -@data: The data to pass to the function. -@Returns: A unique id for the event source. - - - - -Removes the given timeout destroying all information about it. - - -@timeout_handler_id: The identifier returned when installing the timeout. - - - - -Causes the mainloop to call the given function whenever no events with -higher priority are to be processed. The default priority is -GTK_PRIORITY_DEFAULT, which is rather low. - - -@function: The function to call. -@data: The information to pass to the function. -@Returns: a unique handle for this registration. - - - - -Like gtk_idle_add() this function allows you to have a function called -when the event loop is idle. The difference is that you can give a -priority different from GTK_PRIORITY_DEFAULT to the idle function. - - -@priority: The priority which should not be above G_PRIORITY_HIGH_IDLE. -Note that you will interfere with GTK if you use a priority above -GTK_PRIORITY_RESIZE. -@function: The function to call. -@data: Data to pass to that function. -@Returns: A unique id for the event source. - - - - - - - -@priority: -@function: -@marshal: -@data: -@destroy: -@Returns: - - - - -Removes the idle function with the given id. - - -@idle_handler_id: Identifies the idle function to remove. - - - - -Removes the idle function identified by the user data. - - -@data: remove the idle function which was registered with this user data. - - - - - - - -@source: -@condition: -@function: -@marshal: -@data: -@destroy: -@Returns: - - - - - - - -@input_handler_id: - - - - -Use this priority for redrawing related stuff. It is used internally by -GTK+ to do pending redraws. This priority is lower than %GTK_PRIORITY_RESIZE -to avoid redrawing a widget just before resizing (and therefore redrawing -it again). - - - - - - -Use this priority for resizing related stuff. It is used internally by -GTK+ to compute the sizes of widgets. This priority is higher than -%GTK_PRIORITY_REDRAW to avoid resizing a widget which was just redrawn. - - - - - - -Use this for high priority timeouts. This priority is never used inside -GTK+ so everything running at this priority will be running before anything -inside the toolkit. - -This macro is deprecated. You should use G_PRIORITY_HIGH instead. - - - - - - - -This priority is for GTK+ internal stuff. Don't use it in your applications. - - - - - - -Default priority for idle functions. - -This macro is deprecated. You should use G_PRIORITY_DEFAULT_IDLE instead. - - - - - - - -Priority for very unimportant background tasks. - -This macro is deprecated. You should use G_PRIORITY_LOW instead. - - - - - - - - - - -@snooper: -@func_data: -@Returns: - - - - - - - -@grab_widget: -@event: -@func_data: -@Returns: - - - - - - - -@snooper_handler_id: - - - - - - - -@Returns: - - - - - - - -@event: -@Returns: - - - - - - - -@widget: -@event: - - diff --git a/docs/reference/gtk/tmpl/gtkmarshal.sgml b/docs/reference/gtk/tmpl/gtkmarshal.sgml deleted file mode 100644 index 9163b99bf8..0000000000 --- a/docs/reference/gtk/tmpl/gtkmarshal.sgml +++ /dev/null @@ -1,91 +0,0 @@ - -Signal Marshallers - - -Functions to adapt C structures to native calling convention. - - - -What are Signal Marshallers? - -Marshals are functions which all have the same prototype: -they take a #GtkObject, a #GtkSignalFunc, a #gpointer, -and an array of argument values. -The functions are names gtk_marshall_RETURNTYPE__PARAMTYPE1_PARAMTYPE2.... - - -They then call a native function: the GtkObject is the first -parameter passed in. The arguments are passed in the native -calling convention: chars, shorts, ints, longs may be packed -on the stack, or tucked in registers: it doesn't matter -because the same calling convention will be generated -inside the gtkmarshal code as is expected where you define -your handlers. - - -So the function named: - -gtk_marshal_BOOL__POINTER_INT_INT_UINT(GtkObject*, GtkSignalFunc, gpointer, GtkArg*); - -will call the #GtkSignalFunc assuming it was a function with signature: - -gboolean sigfunc(gpointer,gint,gint,guint); - - - - -Writing Custom Marshals - -Marshals are primarily used as arguments to gtk_signal_new(). -Sometimes, you may find that a marshaller you need isn't available -in the standard list. Then you have to write your own. - - -If you wish to define a signal with a new type of argument list. -Suppose you want 2 pointers and 2 integers. -You would write: - -typedef int (*GtkSignal_INT__POINTER_POINTER_INT_INT)( - gpointer, gpointer, gint, gint -); - -void marshal_INT__POINTER_POINTER_INT_INT(GtkObject* object, - GtkSignalFunc func, - gpointer func_data, - GtkArg* args) -{ - GtkSignal_NONE__POINTER_POINTER_INT_INT rfunc; - gint* return_val; - return_val = GTK_RETLOC_INT(args[4]); - rfunc = (GtkSignal_INT__POINTER_POINTER_INT_INT)func; - *return_val = (*rfunc)(object, - GTK_VALUE_POINTER(args[0]), - GTK_VALUE_POINTER(args[1]), - GTK_VALUE_INT(args[2]), - GTK_VALUE_INT(args[3]), - func_data); -} - - - - - - - - - -#GtkSignal -The signal handling functions (of which marshallers are -really an implementation detail). - - - - - - - -A marshaller that returns void and takes no extra parameters. - - - - diff --git a/docs/reference/gtk/tmpl/gtkmenu.sgml b/docs/reference/gtk/tmpl/gtkmenu.sgml deleted file mode 100644 index 8e3a4a48a5..0000000000 --- a/docs/reference/gtk/tmpl/gtkmenu.sgml +++ /dev/null @@ -1,278 +0,0 @@ - -GtkMenu - - -a drop down menu widget. - - - -A #GtkMenu is a #GtkMenuShell that implements a drop down menu consisting of -a list of #GtkMenuItem objects which can be navigated and activated by the -user to perform application functions. - - - -A #GtkMenu is most commonly dropped down by activating a #GtkMenuItem in a -#GtkMenuBar or popped up by activating a #GtkMenuItem in another #GtkMenu. - - - -A #GtkMenu can also be popped up by activating a #GtkOptionMenu. -Other composite widgets such as the #GtkNotebook can pop up a #GtkMenu -as well. - - - -Applications can display a #GtkMenu as a popup menu by calling the -gtk_menu_popup() function. The example below shows how an application -can pop up a menu when the 3rd mouse button is pressed. - - - -Connecting the popup signal handler. - - /* connect our handler which will popup the menu */ - gtk_signal_connect_object(GTK_OBJECT(window), "button_press_event", - GTK_SIGNAL_FUNC (my_popup_handler), GTK_OBJECT(menu)); - - - - -Signal handler which displays a popup menu. - -static gint -my_popup_handler(GtkWidget *widget, GdkEvent *event) -{ - GtkMenu *menu; - GdkEventButton *event_button; - - g_return_val_if_fail (widget != NULL, FALSE); - g_return_val_if_fail (GTK_IS_MENU (widget), FALSE); - g_return_val_if_fail (event != NULL, FALSE); - - /* The "widget" is the menu that was supplied when - * gtk_signal_connect_object was called. - */ - menu = GTK_MENU (widget); - - if (event->type == GDK_BUTTON_PRESS) - { - event_button = (GdkEventButton *) event; - if (event_button->button == 3) - { - gtk_menu_popup (menu, NULL, NULL, NULL, NULL, - event_button->button, event_button->time); - return TRUE; - } - } - - return FALSE; -} - - - - - - - - - - -The #GtkMenu-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkMenu. - - -@Returns: a new #GtkMenu. - - - - -Adds a new #GtkMenuItem to the end of the menu's item list. - - -@menu: a #GtkMenu. -@child: The #GtkMenuItem to add. - - - - -Adds a new #GtkMenuItem to the beginning of the menu's item list. - - -@menu: a #GtkMenu. -@child: The #GtkMenuItem to add. - - - - -Adds a new #GtkMenuItem to the menu's item list at the position -indicated by @position. - - -@menu: a #GtkMenu. -@child: The #GtkMenuItem to add. -@position: The position in the item list where @child is added. -Positions are numbered from 0 to n-1. - - - - -Moves a #GtkMenuItem to a new position within the #GtkMenu. - - -@menu: a #GtkMenu. -@child: the #GtkMenuItem to move. -@position: the new position to place @child. Positions are numbered from -0 to n-1. - - - - -Displays a menu and makes it available for selection. Applications can use -this function to display context-sensitive menus, and will typically supply -NULL for the @parent_menu_shell, @parent_menu_item, @func and @data -parameters. The default menu positioning function will position the menu -at the current pointer position. - - -@menu: a #GtkMenu. -@parent_menu_shell: the menu shell containing the triggering menu item. -@parent_menu_item: the menu item whose activation triggered the popup. -@func: a user supplied function used to position the menu. -@data: user supplied data to be passed to @func. -@button: the button which was pressed to initiate the event. -@activate_time: the time at which the activation event occurred. - - - - -Set the #GtkAccelGroup which holds global accelerators for the menu. - - -@menu: a #GtkMenu. -@accel_group: the #GtkAccelGroup to be associated with the menu. - - - - -Sets the title string for the menu. The title is displayed when the menu -is shown as a tearoff menu. - - -@menu: a #GtkMenu. -@title: a string containing the title for the menu. - - - - -Removes the menu from the screen. - - -@menu: a #GtkMenu. - - - - -Repositions the menu according to its position function. - - -@menu: a #GtkMenu. - - - - -Returns the selected menu item from the menu. This is used by the -#GtkOptionMenu. - - -@menu: a #GtkMenu. -@Returns: the #GtkMenuItem that was last selected in the menu. If a -selection has not yet been made, the first menu item is selected. - - - - -Selects the specified menu item within the menu. This is used by the -#GtkOptionMenu. - - -@menu: a #GtkMenu. -@index: the index of the menu item to select. Index values are from -0 to n-1. - - - - -Changes the tearoff state of the menu. A menu is normally displayed -as drop down menu which persists as long as the menu is active. It can -also be displayed as a tearoff menu which persists until it is closed -or reattached. - - -@menu: a #GtkMenu. -@torn_off: If TRUE, menu is displayed as a tearoff menu. - - - - -Attaches the menu to the widget and provides a callback function that will -be invoked when the menu calls gtk_menu_detach() during its destruction. - - -@menu: a #GtkMenu. -@attach_widget: the #GtkWidget that the menu will be attached to. -@detacher: the user supplied callback function that will be called when -the menu calls gtk_menu_detach(). - - - - -Detaches the menu from the widget to which it had been attached. -This function will call the callback function, @detacher, provided -when the gtk_menu_attach_to_widget() function was called. - - -@menu: a #GtkMenu. - - - - -Returns the #GtkWidget that the menu is attached to. - - -@menu: a #GtkMenu. -@Returns: the #GtkWidget that the menu is attached to. - - - - -A user function supplied when calling gtk_menu_popup() which controls the -positioning of the menu when it is displayed. The function sets the @x -and @y parameters to the coordinates where the menu is to be drawn. - - -@menu: a #GtkMenu. -@x: address of the #gint representing the horizontal position where the -menu shall be drawn. This is an output parameter. -@y: address of the #gint representing the vertical position where the -menu shall be drawn. This is an output parameter. -@user_data: the data supplied by the user in the gtk_menu_popup() @data -parameter. - - - - -A user function supplied when calling gtk_menu_attach_to_widget() which -will be called when the menu is later detached from the widget. - - -@attach_widget: the #GtkWidget that the menu is being detached from. -@menu: the #GtkMenu being detached. - - diff --git a/docs/reference/gtk/tmpl/gtkmenubar.sgml b/docs/reference/gtk/tmpl/gtkmenubar.sgml deleted file mode 100644 index 8fad04298c..0000000000 --- a/docs/reference/gtk/tmpl/gtkmenubar.sgml +++ /dev/null @@ -1,73 +0,0 @@ - -GtkMenuBar - - -A subclass widget for #GtkMenuShell which holds #GtkMenuItem widgets - - - -The #GtkMenuBar is a subclass of #GtkMenuShell which contains one to many #GtkMenuItem. The result is a standard menu bar which can hold many menu items. #GtkMenuBar allows for a shadow type to be set for aesthetic purposes. The shadow types are defined in the #gtk_menu_bar_set_shadow_type function. - - - - -#GtkMenuShell, #GtkMenu, #GtkMenuItem - - - - -The #GtkMenuBar struct contains the following fields. (These fields should be considered read-only. They should never be set by an application.) - - - - - -Creates the new #GtkMenuBar - - -@Returns: the #GtkMenuBar - - - - -Adds a new #GtkMenuItem to the end of the GtkMenuBar - - -@menu_bar: a #GtkMenuBar -@child: the #GtkMenuItem to add - - - - -Adds a new #GtkMenuItem to the beginning of the GtkMenuBar - - -@menu_bar: a #GtkMenuBar -@child: the #GtkMenuItem to add - - - - -Adds a new #GtkMenuItem to the GtkMenuBar at the position defined by @position - - -@menu_bar: a #GtkMenuBar -@child: the #GtkMenuItem to add -@position: the position in the item list where the @child is added. - - - - -Sets the shadow type to use on the GtkMenuBar. The shadow types to use are: -GTK_SHADOW_NONE, GTK_SHADOW_IN, GTK_SHADOW_OUT, GTK_SHADOW_ETCHED_IN, and GTK_SHADOW_ETCHED_OUT - - -@menu_bar: a #GtkMenuBar -@type: the GtkShadowtype - - - - -Used by #GtkMenuBar to determine the shadow type. - - diff --git a/docs/reference/gtk/tmpl/gtkmenufactory.sgml b/docs/reference/gtk/tmpl/gtkmenufactory.sgml deleted file mode 100644 index 77a9754c46..0000000000 --- a/docs/reference/gtk/tmpl/gtkmenufactory.sgml +++ /dev/null @@ -1,132 +0,0 @@ - -Menu Factory - - - - - - - - - - - - - - - - - - - -@widget: -@user_data: - - - - - - - -@path: -@accelerator: -@callback: -@callback_data: -@widget: - - - - - - -@path: -@widget: - - - - - - -@path: -@type: -@accel_group: -@widget: -@subfactories: - - - - - - -@type: -@Returns: - - - - - - - -@factory: - - - - - - - -@factory: -@entries: -@nentries: - - - - - - - -@factory: -@subfactory: -@path: - - - - - - - -@factory: -@paths: -@npaths: - - - - - - - -@factory: -@entries: -@nentries: - - - - - - - -@factory: -@subfactory: -@path: - - - - - - - -@factory: -@path: -@Returns: - - diff --git a/docs/reference/gtk/tmpl/gtkmenuitem.sgml b/docs/reference/gtk/tmpl/gtkmenuitem.sgml deleted file mode 100644 index 3dd96a4cff..0000000000 --- a/docs/reference/gtk/tmpl/gtkmenuitem.sgml +++ /dev/null @@ -1,151 +0,0 @@ - -GtkMenuItem - - -the widget used for item in menus - - - -The #GtkMenuItem widget and the derived widgets are the only valid -childs for menus. Their function is to correctly handle highlighting, -alignment, events and submenus. - - -As it derives from #GtkBin it can hold any valid child widget, altough -only a few are really useful. - - - - - - -#GtkBin -for how to handle the child. - - -#GtkItem -is the abstract class for all sorts of items. - - -#GtkMenuShell -is always the parent of #GtkMenuItem. - - - - - - - - - -@item: the parent class object -@submenu: the submenu attached to this item; read only - - - -Creates a new #GtkMenuItem. - - -@Returns: the newly created #GtkMenuItem - - - - -Creates a new #GtkMenuItem whose child is a simple #GtlLabel. - - -@label: the text for the label -@Returns: the newly created #GtkMenuItem - - - - -Sets the widget submenu, or changes it. - - -@menu_item: the menu item widget -@submenu: the submenu - - - - -Removes the widget's submenu. - - -@menu_item: the menu item widget - - - - -Specifies the placement of the submenu around the menu item. The placement -is usually #GTK_LEFT_RIGHT for menu items in a popup menu and -#GTK_TOP_BOTTOM in menu bars. - - -This function is useless in usual applications. - - -@menu_item: the menu item -@placement: the submenu placement - - - - -Sets whether the menu item should show a submenu indicator, which is a right -arrow. - - -@menu_item: the menu item -@show_toggle_indicator: unused -@show_submenu_indicator: whether to show the arrow or not - - - - -Emits the "select" signal on the given item. Behaves exactly like -#gtk_item_select. - - -@menu_item: the menu item - - - - -Emits the "deselect" signal on the given item. Behaves exactly like -#gtk_item_deselect. - - -@menu_item: the menu item - - - - -Emits the "activate" signal on the given item - - -@menu_item: the menu item - - - - -Sets the menu item to be right-justified. Only useful for menu bars. - - -@menu_item: the menu item - - - - -Emitted when the item is activated. - - -@menuitem: the object which received the signal. - - - -Emitted when the item is activated, but also if the menu item has a -submenu. For normal applications, the relevant signal is "activate". - - -@menuitem: the object which received the signal. - diff --git a/docs/reference/gtk/tmpl/gtkmenushell.sgml b/docs/reference/gtk/tmpl/gtkmenushell.sgml deleted file mode 100644 index 4c00a7a7a3..0000000000 --- a/docs/reference/gtk/tmpl/gtkmenushell.sgml +++ /dev/null @@ -1,179 +0,0 @@ - -GtkMenuShell - - -a base class for menu objects. - - - -A #GtkMenuShell is the abstract base class used to derive the -#GtkMenu and #GtkMenuBar subclasses. - - - -A #GtkMenuShell is a container of #GtkMenuItem objects arranged in a -list which can be navigated, selected, and activated by the user to perform -application functions. A #GtkMenuItem can have a submenu associated with it, -allowing for nested hierarchical menus. - - - - - - - - - -The #GtkMenuShell-struct struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#GList *children; -The list of #GtkMenuItem objects contained by this #GtkMenuShell. - - - - - - - - -Adds a new #GtkMenuItem to the end of the menu shell's item list. - - -@menu_shell: a #GtkMenuShell. -@child: The #GtkMenuItem to add. - - - - -Adds a new #GtkMenuItem to the beginning of the menu shell's item list. - - -@menu_shell: a #GtkMenuShell. -@child: The #GtkMenuItem to add. - - - - -Adds a new #GtkMenuItem to the menu shell's item list at the position -indicated by @position. - - -@menu_shell: a #GtkMenuShell. -@child: The #GtkMenuItem to add. -@position: The position in the item list where @child is added. -Positions are numbered from 0 to n-1. - - - - -Deactivates the menu shell. Typically this results in the menu shell -being erased from the screen. - - -@menu_shell: a #GtkMenuShell. - - - - -Selects the menu item from the menu shell. - - -@menu_shell: a #GtkMenuShell. -@menu_item: The #GtkMenuItem to select. - - - - -Activates the menu item within the menu shell. - - -@menu_shell: a #GtkMenuShell. -@menu_item: The #GtkMenuItem to activate. -@force_deactivate: If TRUE, force the deactivation of the menu shell -after the menu item is activated. - - - - -An enumeration representing directional movements within a menu. - - - - - - -GTK_MENU_DIR_PARENT -To the parent menu shell. - - - -GTK_MENU_DIR_CHILD -To the submenu, if any, associated with the item. - - - -GTK_MENU_DIR_NEXT -To the next menu item. - - - -GTK_MENU_DIR_PREV -To the previous menu item. - - - - - -@GTK_MENU_DIR_PARENT: -@GTK_MENU_DIR_CHILD: -@GTK_MENU_DIR_NEXT: -@GTK_MENU_DIR_PREV: - - - -This signal is emitted when a menu shell is deactivated. - - -@menushell: the object which received the signal. - - - -This signal is emitted when a selection has been completed within a menu -shell. - - -@menushell: the object which received the signal. - - - -An action signal which moves the current menu item in the direction -specified by @direction. - - -@menushell: the object which received the signal. -@direction: the direction to move. - - - -An action signal that activates the current menu item within the menu -shell. - - -@menushell: the object which received the signal. -@force_hide: if TRUE, hide the menu after activating the menu item. - - - -An action signal which cancels the selection within the menu shell. -Causes the GtkMenuShell::selection-done signal to be emitted. - - -@menushell: the object which received the signal. - diff --git a/docs/reference/gtk/tmpl/gtkmisc.sgml b/docs/reference/gtk/tmpl/gtkmisc.sgml deleted file mode 100644 index 861f363324..0000000000 --- a/docs/reference/gtk/tmpl/gtkmisc.sgml +++ /dev/null @@ -1,104 +0,0 @@ - -GtkMisc - - -a base class for widgets with alignments and padding. - - - -The #GtkMisc widget is an abstract widget which is not useful itself, but -is used to derive subclasses which have alignment and padding attributes. - - -The horizontal and vertical padding attributes allows extra space to be -added around the widget. - - -The horizontal and vertical alignment attributes enable the widget to be -positioned within its allocated area. Note that if the widget is added to -a container in such a way that it expands automatically to fill its -allocated area, the alignment settings will not alter the widgets position. - - - - - - - - - -The #GtkMisc-struct struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#gfloat xalign; -the horizontal alignment, from 0 (left) to 1 (right). - - - -#gfloat yalign; -the vertical alignment, from 0 (top) to 1 (bottom). - - - -#guint16 xpad; -the amount of space to add on the left and right of the widget, -in pixels. - - - -#guint16 ypad; -the amount of space to add on the top and bottom of the widget, -in pixels. - - - - - - - -Sets the alignment of the widget. - - -@misc: a #GtkMisc. -@xalign: the horizontal alignment, from 0 (left) to 1 (right). -@yalign: the vertical alignment, from 0 (top) to 1 (bottom). - - - - -Sets the amount of space to add around the widget. - - -@misc: a #GtkMisc. -@xpad: the amount of space to add on the left and right of the widget, -in pixels. -@ypad: the amount of space to add on the top and bottom of the widget, -in pixels. - - - - -the horizontal alignment, from 0 (left) to 1 (right). - - - - -the vertical alignment, from 0 (top) to 1 (bottom). - - - - -the amount of space to add on the left and right of the widget, in pixels. - - - - -the amount of space to add on the top and bottom of the widget, in pixels. - - diff --git a/docs/reference/gtk/tmpl/gtknotebook.sgml b/docs/reference/gtk/tmpl/gtknotebook.sgml deleted file mode 100644 index bc8cb99e26..0000000000 --- a/docs/reference/gtk/tmpl/gtknotebook.sgml +++ /dev/null @@ -1,482 +0,0 @@ - -GtkNotebook - - -Set of pages with bookmarks. - - - -The #GtkNotebook widget is a #GtkContainer whose children are pages that -can be accessed through bookmarks. The pages are displayed all at the same -place. - - - - - - -#GtkContainer -For functions that apply to every #GtkContainer -(like #GtkList). - - - - - - - - - -@container: the parent class object -@cur_page: the currently displayed page -@children: a GList with the children of the notebook; belonging to -#GtkNotebookPage -@first_tab: -@focus_tab: -@menu: -@panel: -@timer: -@tab_hborder: -@tab_vborder: -@show_tabs: -@homogeneous: -@show_border: -@tab_pos: -@scrollable: -@in_child: -@click_child: -@button: -@need_timer: -@child_has_focus: -@have_visible_child: - - - -Extracts the contents of the current element of #GList @_glist_ as a -#GtkNotebookPage. - - -@_glist_: - - - - -The #GtkNotebookPage structure is used to store the pages of a notebook. It -is not an object. - - -@child: the contents of the page -@tab_label: the label shown in the bookmark -@menu_label: the label shown in the popup menu -@default_menu: -@default_tab: -@expand: -@fill: -@pack: -@requisition: -@allocation: - - - -Creates a new #GtkNotebook widget - - -@Returns: the newly created G=#GtkNotebook - - - - -Appends to @notebook a page whose content is @child, and whose bookmark is -@tab_label. - - -@notebook: the notebook widget -@child: the content of the new page -@tab_label: the bookmark for the page - - - - -Appends to @notebook a page whose content is @child, whose bookmark is -@tab_label, and whose menu label is @menu_label. - - -@notebook: the notebook widget -@child: the content of the new page -@tab_label: the bookmark of the page -@menu_label: the menu label of the page - - - - -Prepends to @notebook a page whose content is @child, whose bookmark is -@tab_label, and whose menu label is @menu_label. - - -@notebook: the notebook widget -@child: the content of the new page -@tab_label: the bookmark of the page - - - - -Appends to @notebook a page whose content is @child, whose bookmark is -@tab_label, and whose menu label is @menu_label. - - -@notebook: the notebook widget -@child: the content of the new page -@tab_label: the bookmark of the page -@menu_label: the menu label of the page - - - - -Inserts in @notebook a new page whose content is @child, and whose -bookmark is @tab_label. The page is inserted just -before the page number @position, starting with 0. If @position is out of -bounds, it is assumed to be the current number of pages. - - -@notebook: the notebook widget -@child: the content of the new page -@tab_label: the bookmark of the page -@position: the position to insert the page - - - - -Inserts in @notebook a new page whose content is @child, whose bookmark is -@tab_label, and whose menu label is @menu_label. The page is inserted just -before the page number @position, starting with 0. If @position is out of -bounds, it is assumed to be the current number of pages. - - -@notebook: the notebook widget -@child: the content of the new page -@tab_label: the bookmark of the page -@menu_label: the menu label of the page -@position: the position to insert the page - - - - -Removes the page @page_num form @notebook. Pages are numbered starting at -zero. Negative values stand for the last page; too large values are -ignored. - - -@notebook: the notebook widget -@page_num: the page number - - - - -Compatibility macro; in gtkcompat.h. - - - - - - -Returns the page number of @child in @notebook. - - -@notebook: the notebook widget -@child: the child -@Returns: the page number, or -1 if @child is not in @notebook - - - - -Switches to the page number @page_num. Negative values stand for the last -page; too large values are ignored. - - -@notebook: the notebook widget -@page_num: the page number - - - - -Switches to the next page. Nothing happens if the current page is the last -page. - - -@notebook: the notebook widget. - - - - -Switches to the previous page. Nothing happens if the current page is the -first page. - - -@notebook: the notebook widget - - - - -Moves the page @child, so that it appears in position @position. Out of -bounds @position will be clamped. - - -@notebook: the notebook widget -@child: the child to deplace -@position: the new position - - - - -Sets the position of the bookmarks. - - -@notebook: the notebook widget -@pos: the position - - - - -Sets whether to show the bookmarks or not. - - -@notebook: the notebook widget -@show_tabs: a boolean value - - - - -Sets whether to show the border of the notebook or not. Bookmarks are in the -border. - - -@notebook: the notebook widget -@show_border: a boolean value - - - - -Sets whether the bookmarks area may be scrollable or not if there are too -many bookmarks to fit in the allocated area. - - -@notebook: the notebook widget -@scrollable: a boolean value - - - - -Sets whether there should be a border around the bookmarks or not. - - -@notebook: the notebook widget -@border_width: a boolean value - - - - -Sets whether the tabs should have a horizontal border. - - -@notebook: the notebook widget -@tab_hborder: a boolean value - - - - -Sets whether the tabs should have a vertical border. - - -@notebook: the notebook widget -@tab_vborder: a boolean value - - - - -Enables the popup menu: if the user clicks with the right mouse button on -the bookmarks, a menu with all the pages will be popped up. - - -@notebook: the notebook widget - - - - -Disables the popup menu - - -@notebook: the notebook widget - - - - -Returns the page number of the current page. - - -@notebook: the notebook widget -@Returns: the page number - - - - -Returns the menu label of the page @child. NULL is returned if @child is not -in @notebook or NULL if it has the default menu label. - - -@notebook: the notebook widget -@child: the page -@Returns: the menu label - - - - -Returns the content of the page number @page_num, or NULL if @page_num is -out of bounds. - - -@notebook: the notebook widget -@page_num: the page number -@Returns: the content of the page - - - - -Returns the menu tab of the page @child. NULL is returned if @child is not -in @notebook or NULL if it has the default tab label. - - -@notebook: the notebook widget -@child: the page -@Returns: the tab label - - - - -Looks for the packing attributes of the bookmarks of @child. - - -@notebook: the notebook widget -@child: the page -@expand: a pointer to return the expand value (or NULL) -@fill: a pointer to return the fill value (or NULL) -@pack_type: a pointer to return the pack_type (or NULL) - - - - -Sets whether the tabs must have all the same size or not. - - -@notebook: the notebook widget -@homogeneous: a boolean value - - - - -Changes the menu label of @child. Nothing happens if @child is not in -@notebook. - - -@notebook: the notebook widget -@child: the page -@menu_label: the menu label, or NULL for default - - - - -Creates a new label and sets it as the menu label of @child. - - -@notebook: the notebook widget -@child: the page -@menu_text: the label text - - - - -Changes the bookmark label of @child. Nothing happens if @child is not in -@notebook. - - -@notebook: the notebook widget -@child: the page -@tab_label: the bookmark label, or NULL for default - - - - -Sets the packing parameters for the bookmark of @child. See -#GtkBoxPackStart for the exact meanings. - - -@notebook: the notebook widget -@child: the child widget -@expand: whether to expand the bookmark or not -@fill: whether the bookmark should fill the allocated area or not -@pack_type: the position of the bookmark - - - - -Creates a new label and sets it as the bookmark label of @child. - - -@notebook: the notebook widget -@child: the page -@tab_text: the label text - - - - -Emitted when the user or a function changes the current page. - - -@notebook: the object which received the signal. -@page: the new current page -@page_num: the index of the page - - - -The current page - - - - -The position of the bookmarks - - - - -Whether the bookmarks have a border or not - - - - -Whether the bookmarks have a horizontal border or not - - - - -Whether the bookmarks have a vertical border or not - - - - -Whether to show the bookmarks or not - - - - -Whether to show the border or not - - - - -Whether the bookmarks should be scrollable or not - - - - -Whether the popup menu is enabled or not - - diff --git a/docs/reference/gtk/tmpl/gtkobject.sgml b/docs/reference/gtk/tmpl/gtkobject.sgml deleted file mode 100644 index 43a2acffad..0000000000 --- a/docs/reference/gtk/tmpl/gtkobject.sgml +++ /dev/null @@ -1,916 +0,0 @@ - -GtkObject - - -The base class of the Gtk type hierarchy. - - - -Description - -GtkObject is the root of the gtk+ type hierarchy. It serves -a similar roles as java's Object class. It is used -by the type-casting system to represent the base composite type. - - -Objects have arguments that are -name/typed-value pairs. -They may be readable or writable (or both or neither). -The special handlers in every object are responsible for -setting and getting these parameters. -If the handler for a given argument must -be called before the object may be used, be sure the -#GTK_ARG_CONSTRUCT or #GTK_ARG_CONSTRUCT_ONLY flags -are set; otherwise they are set only when the user does so. - - -Object also store a simpler association table, sometimes -called the object_data. This is just an efficient mapping from -a fixed set of strings to a gpointer. This can be used as -arbitrary extra members. Notice that each new field name -allocates a new quark, so it is probably best only to use -this for fields with fixed names. - - -The primary difference between object_data and arguments is that -the object defines two functions which set and get each type of argument. -The object just has a table to store its object data in: it does not -receive notice when data changes. - - -Objects are reference counted; this means that we maintain -a count of how many references (usually in the form of a pointer) -are being held to this object. -To indicate that you reference an object, call gtk_object_ref(). -The object will not be freed until everyone calls -gtk_object_unref(). - - -In order to reduce the chances of a memory leak, gtk+ defines -"floating objects". All objects created with gtk_object_new() -start out floating with a reference count of 1. -In order to reduce that initial reference count you should gtk_object_sink() -them, but usually the parent widget you add the child to will -sink the object. - -So, because gtk_widget_set_parent() sinks the object from -gtk_container_add(), there are no memory leaks in this code: - - - button = gtk_button_new_with_label("Hi Mom!"); - gtk_container_add(GTK_CONTAINER(window), button); - /* Button may not be used anymore since we don't retain a reference - * to it. */ - - -Likewise, the following code attaches the same adjustment to two -ranges: - - - adjustment = (GtkAdjustment*) gtk_adjustment_new(0,10,0,0,0,0); - gtk_range_set_adjustment(range1, adjustment); - gtk_range_set_adjustment(range2, adjustment); - - -Note that we could put as many set_adjustments as we like: cleanup is easy -because they all retain a reference but only one sinks the initial reference -count. If it is possible for "range1" to stop retaining its reference -then we need to enclose the lines using "adjustment" with ref/unref -to guarantee the the object won't be deleted: - - - adjustment = (GtkAdjustment*) gtk_adjustment_new(0,10,0,0,0,0); - gtk_object_ref(GTK_OBJECT(adjustment)); - gtk_range_set_adjustment(range1, adjustment); - gtk_range_set_adjustment(range1, another_adjustment); - /* With the initial reference, `adjustment' would have - * been deleted as `range1' lost its reference to it. */ - gtk_range_set_adjustment(range2, adjustment); - gtk_object_unref(GTK_OBJECT(adjustment)); - - - - -Be careful with reference counting: if two objects reference eachother -then they will always have at least reference count 1, even if -there are no other pointers to them. This means that they -will never be freed. More precisely, you must be certain that -your references never can form cycles. - - -If you find yourself forming cyclic references, perhaps you -can convert some of them to weak-references. -A weak-reference is one that holds a pointer to an object, -but doesn't increase the reference count. To insure -the object is valid when the referer tries to use it, -the referer registers a callback that will be invoked -after the object has been destroyed (but before its memory is actually -deallocated). This callback must prevent the weak-reference from -being used again. - - - -Brief Glossary - - - -argument - -A typed-variable identified by ObjectType::argument_name. It may be -readable, writable, both or none. For example, -"GtkButton::label" is a read/write string-valued argument. - - - - -constructed - - - - - -destroyed - - - - - -finalization - - - - - -floating - - - - - -object data - - - - - -reference count - - - - - -weak-reference - - - - - - - - - -GtkType, GtkArg, gtk-signals. - - - - -The object itself. You should never use these members directly- -instead you the accessing macros. - - -@klass: a pointer to the GtkObjectClass (or deriver) which contains -the methods defined by this object. -@flags: the state of the object: whether it has been constructed -or destroyed, for example. -@ref_count: a reference count. It is incremented when new -pointers to this object are made, and decremented when the -pointers are deleted. When the reference count -returns to 0, the object is deleted. By default, objects -have reference count 0 when created. -@object_data: - - - -Get the type of an object. - - -@obj: the object whose type we wish to get. - - - - -Get the array of signals defined for this object. - - -@obj: the object to fetch the signals from. - - - - -Get the number of signals defined by this object. - - -@obj: the object to query. - - - - -Tells about the state of the object. - - -@GTK_DESTROYED: the GtkObject has had gtk_object_destroyed() invoked on it -and is processing the shutdown callback. -@GTK_FLOATING: whether the object is orphaned. Objects that take -strong hold of an object may gtk_object_sink() it, after obtaining -there own references, if they believe they are nearly primary -ownership of the object. -GTK_CONNECTED: refers to whether are signals are connected to this -object. -@GTK_CONSTRUCTED: refers to whether the arguments for this object are -ready. - - - -Get the #GtkObjectFlags for an object without directly -accessing its members. - - -@obj: the object whose flags are returned. - - - - -Test whether a GtkObject has had gtk_object_destroyed() invoked on it. - - -@obj: the object to examine. - - - - -When an object is created, it has an initial reference count -of 1 and is floating. Sinking the object -refers to decrementing that original reference count. - - -@obj: the object to examine. - - - - -Test whether a GtkObject has had a signal connected to it. - - -@obj: the object to examine. - - - - -Test whether a GtkObject's arguments have been prepared. - - -@obj: the object to examine. - - - - -Turn on certain object flags. (Private) - - -@obj: the object to affect. -@flag: the flags to set. - - - - -Turn off certain object flags. (Private) - - -@obj: the object to affect. -@flag: the flags to unset. - - - - -Possible flags indicating how an argument should be treated. - - -@GTK_ARG_READABLE: the argument is readable. (i.e. can be queried) -@GTK_ARG_WRITABLE: the argument is writable. (i.e. settable) -@GTK_ARG_CONSTRUCT: the argument needs construction. -@GTK_ARG_CONSTRUCT_ONLY: the argument needs construction (and will -be set once during object creation), but is otherwise cannot be -set. Hence this flag is not allowed with #GTK_ARG_WRITABLE, -and is redundant with #GTK_ARG_CONSTRUCT. -@GTK_ARG_CHILD_ARG: an argument type that applies to (and may be different for) -each child. Used by #GtkContainer. -@GTK_ARG_MASK: the bitwise-OR of all the flags. -@GTK_ARG_READWRITE: the argument is readable and writable. - - - -Define a signal-handler for a new signal on an already defined -object. - - -See the signal documentation for more general information. - - -@klass: the object class to define the signal for. -@name: the name of the signal. -@signal_flags: the default emission behavior for the signal. -See gtk_signal_new(). -@marshaller: a function that will take an array of GtkArgs -and invoke the appropriate handler with the normal calling -conventions. -@return_val: specify the return-value type for the signal -(or GTK_TYPE_NONE for no return-value). -@nparams: specify the number of parameters the signal -receives from the caller of gtk_signal_emit(). -@Varargs: list of nparams #GtkTypes to pass to the signal handlers. -@Returns: the signal id. (See #GtkSignals) - - - - -Define a signal-handler for a new signal on an already defined -object. - - -@klass: the object class to define the signal for. -@name: the name of the signal. -@signal_flags: the default emission behavior for the signal. -See gtk_signal_new(). -@marshaller: takes a GtkObject, a #GtkSignalFunc, and an array -of arguments, and invokes the function using the appropriate -calling conventions. Usually just select a function -out of gtkmarshal.h. -@return_val: specify the return-value type for the signal (possibly -#GTK_TYPE_NONE). -@nparams: specify the number of parameters the signal -receives from the caller of gtk_signal_emit(). -@params: array of #GtkTypes the signal handlers for this signal -should have in their prototype (of length nparams). -@Returns: the signal id. (See #GtkSignals) - - - - -Construct an object given its arguments, enumerated in the call to the -function. - - -@type: the type identifying this object. Returned by gtk_type_unique() -although (for a properly-written object it should be accessible through -#GTK_TYPE_FOO.) -@first_arg_name: name of the first argument to set when constructing -the object. -@Varargs: the first argument's value, followed by any number of -name/argument-value pairs, terminated with NULL. -@Returns: the new GtkObject. - - - - -Construct an object with an array of arguments. - - -@object_type: the type of the object to create. -@n_args: the number of arguments to set. -@args: an array of n_args arguments (which are name and value pairs). -@Returns: the new GtkObject. - - - - -Mark an allocated object as constructed. -This is used for situations -that require precise control of the construction process. - - -This is done when gtk_object_default_construct() is inadequate. -In #GtkCList the need arises because #GtkCList does construction work that -must happen after its derivers. This work -cannot be done in an initializer function, so an alternate -constructor is mandatory. It calls gtk_object_constructed() to -indicate it has done its job, so that no other constructor will -be invoked. - - -Normally this function is just automatically run from -gtk_object_default_construct(). - - -@object: object which has been constructed. This is usually -done automatically by gtk_object_new() and gtk_object_newv(). - - - - -This function is called to construct arguments that haven't been initialized -but have the #GTK_ARG_CONSTRUCT flag set. - - -All number arguments are set to 0. All pointers and strings -are set to NULL. - - -Normally invoked by gtk_object_new() automatically; gtk_type_new() can -be used to bypass it. - - -@object: the object to initialize. - - - - -Decrement the initial count given to the object. -Additional invocations have no effect. - - -This is designed to free the user from worrying about -dereferencing an object that they have just created. -So long as the object is sunk at some point, the reference count -will be set properly. - - -furthermore it may be sunk multiple times. -Only the first time will actually dereference. - - -The basic outline is: when you create an object it is floating. -Setting its parent causes it to be sunk, however its parent -has obtained a reference, so its reference count is one. - - -@object: the object to sink. - - - - -Increase the reference count of the object. - - -@object: the object to reference. - - - - -Decrease the reference count of an object. When its reference -count drops to 0, the object is deleted. - - -If it was not already destroyed, it will be, with gtk_object_destroy(), -then weak links are notified, then the object-data is freed -and the memory for the object itself is freed using gtk_type_free(). - - -@object: the object to dereference. - - - - -Adds a weak reference callback to an object. - - -Weak references are a mechanism to safely keep a pointer to -an object without using the reference counting -mechansim. They use a callback function to receive -notice that the object is about to be freed (aka finalized). -This happens after the destroy -callback has been run. - - -@object: object to weakly reference. -@notify: callback to invoke before the object is freed. -@data: extra data to pass to #notify. - - - - -Removes a weak reference callback to an object. - - -@object: object stop weakly referencing. -@notify: callback to search for. -@data: data to search for. - - - - -Calls the object's shutdown handler. - - -The memory for the object itself won't be deleted until -its reference count drops to 0, though. -See gtk_object_unref(). - - -@object: the object to destroy. - - - - -Gets an array of argument values from an object. - - -@object: the object to get arguments from. -@n_args: the number of arguments to query. -@args: the arguments to fill in. - - - - -This function sets multiple arguments of an object. - - -It takes an object, then a list of name/value pairs -in a list, followed by NULL. - - - - -void set_box_properties(GtkBox* box) -{ - gtk_object_set(GTK_OBJECT(box), "homogeneous", TRUE, - "spacing", 8, - NULL); -} - - - - - -@object: the object whose arguments should be set. -@first_arg_name: the name of the first argument to set. -@Varargs: the value of the first argument, followed optionally -by more name/value pairs, followed by NULL. - - - -Set an array of arguments. - - -@object: the object whose arguments should be set. -@n_args: the number of arguments to set. -@args: the desired values, as an array of #GtkArgs (which contain -the names, types, and values of the arguments). - - - - -Get all the arguments that may be used for a given type. - - -In Java, this type of mechanism is called -introspection. It is used by applications -like Glade, that have to determine what can be done to an object -at run-time. - - -@class_type: the GtkType of the ObjectClass -(returned from GTK_OBJECT_CLASS(class)->type for example). -@arg_flags: if non-NULL, obtains the #GtkArgFlags that apply to -each argument. You must g_free() this if you request it. -@n_args: the number of arguments is returned in this field. -@Returns: an array of arguments, that you must deallocate with g_free(). - - - - -Each object carries around a table of associations from -strings to pointers. This function lets you set an association. - - -If the object already had an association with that name, -the old association will be destroyed. - - -@object: object containing the associations. -@key: name of the key. -@data: data to associate with that key. - - - - -Like gtk_object_set_data() except it adds notification -for when the association is destroyed, either by -gtk_object_remove_data() or when the object is destroyed. - - -@object: object containing the associations. -@key: name of the key. -@data: data to associate with that key. -@destroy: function to call when the association is destroyed. - - - - -Remove a specified datum from the object's data associations (the object_data). -Subsequent calls to gtk_object_get_data() will return NULL. - - -If you specified a destroy handler with gtk_object_set_data_full(), -it will be invoked. - - - -@object: the object maintaining the association. -@key: name of the key for that association. - - - - -Get a named field from the object's table of associations (the object_data). - - -@object: the object maintaining the associations. -@key: name of the key for that association. -@Returns: the data if found, or NULL if no such data exists. - - - - -Remove a specified datum from the object's data associations (the object_data), -without invoking the association's destroy handler. - - -Just like gtk_object_remove_data() except that any destroy handler -will be ignored. -Therefore this only affects data set using gtk_object_set_data_full(). - - -@object: the object maintaining the association. -@key: name of the key for that association. - - - - -For convenience, every object offers a generic user data -pointer. The function set it. - - -This function is equivalent to: - - - gtk_object_set_data(object, "user_data", data); - - - - -@object: the object whose user data should be set. -@data: the new value for the user data. - - - - -Get the object's user data pointer. - - -This is intended to be a pointer for your convenience in -writing applications. - - -@object: the object. -@Returns: the user data field for object. - - - - -Add an array of signals to a #GtkObjectClass. -Usually this is called when registering a new type of object. - - -@klass: the object class to append signals to. -@signals: the signals to append. -@nsignals: the number of signals being appended. - - - - -Add a new type of argument to an object class. -Usually this is called when registering a new type of object. - - -@arg_name: fully qualify object name, for example GtkObject::user_data. -@arg_type: type of the argument. -@arg_flags: bitwise-OR of the #GtkArgFlags enum. (Whether the argument is -settable or gettable, whether it is set when the object is constructed.) -@arg_id: an internal number, passed in from here to the "set_arg" and -"get_arg" handlers of the object. - - - - -Just like gtk_object_set_data() except that it takes -a #GQuark instead of a string, so it is slightly faster. - - -Use gtk_object_data_try_key() and gtk_object_data_force_id() -to get an id from a string. - - -@object: object containing the associations. -@data_id: quark of the key. -@data: data to associate with that key. - - - - -Just like gtk_object_set_data_full() except that it takes -a #GQuark instead of a string, so it is slightly faster. - - -Use gtk_object_data_try_key() and gtk_object_data_force_id() -to get an id from a string. - - -@object: object containing the associations. -@data_id: quark of the key. -@data: data to associate with that key. -@destroy: function to call when the association is destroyed. - - - - -Just like gtk_object_get_data() except that it takes -a #GQuark instead of a string, so it is slightly faster. - - -Use gtk_object_data_try_key() and gtk_object_data_force_id() -to get an id from a string. - - -@object: object containing the associations. -@data_id: quark of the key. -@Returns: the data if found, or NULL if no such data exists. - - - - -Just like gtk_object_remove_data() except that it takes -a #GQuark instead of a string, so it is slightly faster. - - -Remove a specified datum from the object's data associations. -Subsequent calls to gtk_object_get_data() will return NULL. - - -Use gtk_object_data_try_key() and gtk_object_data_force_id() -to get an id from a string. - - -@object: object containing the associations. -@data_id: quark of the key. - - - - -Just like gtk_object_remove_no_notify() except that it takes -a #GQuark instead of a string, so it is slightly faster. - - -Use gtk_object_data_try_key() and gtk_object_data_force_id() -to get an id from a string. - - -@object: object containing the associations. -@data_id: quark of the key. - - - - -Sees whether a certain quark exists. -Returns that quark if so. - - -Although this is currently the same as g_quark_try_string(), -it might someday be different, for example, if GQuarks -and object data are converted to separate mechanisms, -so it is good to use this macro. - - - - - - -Makes a quark from a string, possibly allocating a new quark. - - -Although this is currently the same as g_quark_from_string(), -it might someday be different, for example, if GQuarks -and object data are converted to separate mechanisms, -so it is good to use this macro. - - - - - - -Private function to set an argument and argument info to an object. - - -@object: the object whose argument should be set. -@arg: the argument. -@info: infomation about this type of argument in general. - - - - -Private function to get an argument and argument info from an object. - - -@object: the object whose argument should be retrieved. -@arg: the argument, for the name on input, the rest is filled on output. -@info: a #GtkArgInfo structure to optionally fill in. - - - - -Private: Gets an array of #GtkArgs from a va_list C structure. - - -@object_type: the type of object to collect arguments for. -@arg_list_p: pointer to be filled in with a list of parsed arguments. -@info_list_p: optional pointer for a returned list #GtkArgInfos. -@first_arg_name: name of first argument. -@var_args: value of first argument, followed by more key/value pairs, -terminated by NULL. -@Returns: an error message, or NULL on success. -It is the caller's responsibility to call g_free() in the event of error. - - - - -Query information about an argument type. - - -@object_type: type of object to query about. -@arg_name: name of the argument. -@info_p: pointer to be filled in with a pointer to the GtkArgInfo. -@Returns: an error message, or NULL on success. -It is the caller's responsibility to call g_free() in the event of error. - - - - -Private: print debugging information while doing a gtk_object_ref() or -a gtk_object_unref(). - - -@object: object to reference or unreference. -@func: name of caller's function to print (used within macros). -@dummy: unused. -@line: line number (used within macros). -@do_ref: whether to reference or unreference. - - - - -Indicates that an object is being destroyed. - - -@object: the object which received the signal. - - - -A pointer for convenience when programming applications. - - - - -Setting this with a GtkType of GTK_TYPE_SIGNAL connects -the signal to the object. - - - - -Setting this with a GtkType of GTK_TYPE_SIGNAL connects -the signal to the object, so that the signal is always run -after other user handlers and the default handler. - - - - -Setting this with a GtkType of GTK_TYPE_SIGNAL connects -the signal to the object, so that the user data and objects -and swapped when the signal handler is invoked. - - -This is useful for handlers that are primarily notifying -other objects and could just invoke an already existing function -if the parameters were swapped. -See gtk_signal_connect_object() for more details. - - - - -Setting this with a GtkType of GTK_TYPE_SIGNAL connects -the signal to the object, so that the user data and objects -and swapped when the signal handler is invoked, -and so that the handler is invoked after all others. - - -See gtk_signal_connect_object_after() for more details. - - diff --git a/docs/reference/gtk/tmpl/gtkoptionmenu.sgml b/docs/reference/gtk/tmpl/gtkoptionmenu.sgml deleted file mode 100644 index 9bc5aab887..0000000000 --- a/docs/reference/gtk/tmpl/gtkoptionmenu.sgml +++ /dev/null @@ -1,71 +0,0 @@ - -GtkOptionMenu - - -a widget used to choose from a list of valid choices. - - - -A #GtkOptionMenu is a widget that allows the user to choose from a -list of valid choices. The #GtkOptionMenu displays the selected -choice. When activated the #GtkOptionMenu displays a popup #GtkMenu -which allows the user to make a new choice. - - - - - - - -The #GtkOptionMenu-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkOptionMenu. - - -@Returns: a new #GtkOptionMenu. - - - - -Returns the #GtkMenu associated with the #GtkOptionMenu. - - -@option_menu: a #GtkOptionMenu. -@Returns: the #GtkMenu associated with the #GtkOptionMenu. - - - - -Provides the #GtkMenu that is popped up to allow the user to choose -a new value. You should provide a simple menu avoiding the -use of tearoff menu items, submenus, and accelerators. - - -@option_menu: a #GtkOptionMenu. -@menu: the #GtkMenu to associate with the #GtkOptionMenu. - - - - -Removes the menu from the option menu. - - -@option_menu: a #GtkOptionMenu. - - - - -Selects the menu item specified by @index making it the newly -selected value for the option menu. - - -@option_menu: a #GtkOptionMenu. -@index: the index of the menu item to select. Index values are from -0 to n-1. - - diff --git a/docs/reference/gtk/tmpl/gtkpacker.sgml b/docs/reference/gtk/tmpl/gtkpacker.sgml deleted file mode 100644 index 3302b5d06f..0000000000 --- a/docs/reference/gtk/tmpl/gtkpacker.sgml +++ /dev/null @@ -1,219 +0,0 @@ - -GtkPacker - - - - - - - - - - - - - - - - - - - - - - - - - -@GTK_PACK_EXPAND: -@GTK_FILL_X: -@GTK_FILL_Y: - - - - - - -@GTK_SIDE_TOP: -@GTK_SIDE_BOTTOM: -@GTK_SIDE_LEFT: -@GTK_SIDE_RIGHT: - - - - - - -@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_NW: -@GTK_ANCHOR_NE: -@GTK_ANCHOR_S: -@GTK_ANCHOR_SW: -@GTK_ANCHOR_SE: -@GTK_ANCHOR_W: -@GTK_ANCHOR_E: - - - - - - -@widget: -@anchor: -@side: -@options: -@use_default: -@border_width: -@pad_x: -@pad_y: -@i_pad_x: -@i_pad_y: - - - - - - -@Returns: - - - - - - - -@packer: -@child: -@side: -@anchor: -@options: - - - - - - - -@packer: -@child: -@side: -@anchor: -@options: -@border_width: -@pad_x: -@pad_y: -@i_pad_x: -@i_pad_y: - - - - - - - - - - - - - - -@packer: -@child: -@position: - - - - - - - -@packer: -@spacing: - - - - - - - -@packer: -@border: - - - - - - - -@packer: -@pad_x: -@pad_y: - - - - - - - -@packer: -@i_pad_x: -@i_pad_y: - - - - - - - -@packer: -@child: -@side: -@anchor: -@options: -@border_width: -@pad_x: -@pad_y: -@i_pad_x: -@i_pad_y: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkpaned.sgml b/docs/reference/gtk/tmpl/gtkpaned.sgml deleted file mode 100644 index db7f80bd36..0000000000 --- a/docs/reference/gtk/tmpl/gtkpaned.sgml +++ /dev/null @@ -1,181 +0,0 @@ - -GtkPaned - - -Base class for widgets with two adjustable panes - - - -GtkPaned is the base class for widgets with two panes, -arranged either horizontally (#GtkHPaned) or -vertically (#GtkVPaned). Child widgets are -added to the panes of the widget with -gtk_paned_pack1() and gtk_paned_pack2(). The division -beween the two children is set by default from the -size requests of the children, but it can be adjusted -by the user. - - -A paned widget draws a separator between the two -child widgets and a small handle that the user -can drag to adjust the division. It does not -draw any relief around the children or around -the separator. (The space in which the separator -is called the gutter). Often, it is useful -to put each child inside a #GtkFrame with the -shadow type set to %GTK_SHADOW_IN so that the -gutter appears as a ridge. - - -Each child has two options that can be set, -@resize and @shrink. If @resize is true, then when the -#GtkPaned is resized, that child will expand -or shrink along with the paned widget. If @shrink -is true, then when that child can be made smaller -than it's requisition by the user. Setting @shrink -to FALSE allows the application to set a minimum -size. If @resize is false for both children, then -this is treated as if @resize is true for both -children. - - -The application can set the position of the slider -as if it were set by the user, by calling -gtk_paned_set_position(). - - - - Creating a paned widget with minimum sizes - -GtkWidget *hpaned = gtk_hpaned_new(); -GtkWidget *frame1 = gtk_frame_new(NULL); -GtkWidget *frame2 = gtk_frame_new(NULL); -gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_IN); -gtk_frame_set_shadow_type (GTK_FRAME (frame2), GTK_SHADOW_IN); - -gtk_widget_set_usize (hpaned, 200 + GTK_PANED (hpaned)->gutter_size, -1); - -gtk_paned_pack1 (GTK_PANED (hpaned), frame1, TRUE, FALSE); -gtk_widget_set_usize (frame1, 50, -1); - -gtk_paned_pack2 (GTK_PANED (hpaned), frame1, FALSE, FALSE); -gtk_widget_set_usize (frame1, 50, -1); - - - - - - - - - - - - -@handle_size: -@gutter_size: - - - -Add a child to the top or left pane with -default parameters. This is equivalent -to - -gtk_paned_pack1(paned, FALSE, TRUE); - - - -@paned: a paned widget -@child: the child to add - - - - -Add a child to the bottom or right pane with default -parameters. This is equivalent to - -gtk_paned_pack1(paned, FALSE, FALSE); - - - -@paned: a paned widget -@child: the child to add - - - - -Old name for gtk_paned_set_handle_size() - - - - - - -Old name for gtk_paned_set_gutter_size() - - - - - - -Internal function used by #GtkHPaned and #GtkVPaned - - -@paned: -@allocation: -@child1_req: -@child2_req: - - - - -Add a child to the top or left pane. - - -@paned: a paned widget -@child: the child to add -@resize: should this child expand when the paned widget is resized. -@shrink: can this child be made smaller than its requsition. - - - - -Add a child to the bottom or right pane. - - -@paned: a paned widget -@child: the child to add -@resize: should this child expand when the paned widget is resized. -@shrink: can this child be made smaller than its requsition. - - - - -Set the width of the gutter. (The area between the two panes). - - -@paned: a paned widget -@size: the width of the widget in pixels - - - - -Set the the handle size to @size x @size pixels. - - -@paned: a paned widget -@size: the size in pixels - - - - -Set the position of the separator, as if set by the user. -If position is negative, the remembered position is -forgotten, and the division is recomputed from the -the requisitions of the children. - - -@paned: a paned widget -@position: the new position of the separator. - - diff --git a/docs/reference/gtk/tmpl/gtkpixmap.sgml b/docs/reference/gtk/tmpl/gtkpixmap.sgml deleted file mode 100644 index 6a3fca54ad..0000000000 --- a/docs/reference/gtk/tmpl/gtkpixmap.sgml +++ /dev/null @@ -1,75 +0,0 @@ - -GtkPixmap - - -a widget displaying a graphical image or icon. - - - -The #GtkPixmap widget displays a graphical image or icon. -The icon is typically created using gdk_pixmap_colormap_create_from_xpm() -or gdk_pixmap_colormap_create_from_xpm_d(). - - -The pixels in a #GtkPixmap cannot be manipulated by the application after -creation, since under the X Window system the pixel data is stored on the -X server and so is not available to the client application. -If you want to create graphical images which can be manipulated by the -application, look at #GtkImage and #GdkRGB. - - - - - - - - - -The #GtkPixmap-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkPixmap, using the given GDK pixmap and mask. - - -@pixmap: a #GDKPixmap. -@mask: a #GDKBitmap which indicates which parts of the @pixmap should be -transparent. -@Returns: a new #GtkPixmap. - - - - -Sets the #GdkPixmap and #GdkBitmap mask. - - -@pixmap: a #GtkPixmap. -@val: a #GdkPixmap. -@mask: a #GdkBitmap, which indicates which parts of the @pixmap should be -transparent. This can be NULL, in which case none of the @pixmap is -transparent. - - - - -Gets the current #GdkPixmap and #GdkBitmap mask. - - -@pixmap: a #GtkPixmap. -@val: returns the current #GdkPixmap. -@mask: returns the current #GdkBitmap mask. - - - - - - - -@pixmap: a #GtkPixmap. -@build: set to TRUE if an extra pixmap should be automatically created to use -when the pixmap is insensitive. - - diff --git a/docs/reference/gtk/tmpl/gtkplug.sgml b/docs/reference/gtk/tmpl/gtkplug.sgml deleted file mode 100644 index 74fa49ee2f..0000000000 --- a/docs/reference/gtk/tmpl/gtkplug.sgml +++ /dev/null @@ -1,57 +0,0 @@ - -GtkPlug - - -Toplevel for embedding into other processes. - - - -Together with #GtkSocket, #GtkPlug provides the ability -to embed widgets from one process into another process -in a fashion that is transparent to the user. One -process creates a #GtkSocket widget and, passes the -XID of that widgets window to the other process, -which then creates a #GtkPlug window with that XID. -Any widgets contained in the #GtkPlug then will appear -inside the first applications window. - - - - - - - -#GtkSocket -the widget that a #GtkPlug plugs into. - - - - - - - - - - - - - -Finish the creation of a #GtkPlug widget. This function -will generally only be used by classes deriving -from #GtkPlug. - - -@plug: a #GtkPlug widget. -@socket_id: the XID of the socket's window. - - - - -Create a new plug widget inside the #GtkSocket identified -by @socket_id. - - -@socket_id: the XID of the socket's window. -@Returns: the new #GtkPlug widget. - - diff --git a/docs/reference/gtk/tmpl/gtkpreview.sgml b/docs/reference/gtk/tmpl/gtkpreview.sgml deleted file mode 100644 index 8ab4dbb3da..0000000000 --- a/docs/reference/gtk/tmpl/gtkpreview.sgml +++ /dev/null @@ -1,256 +0,0 @@ - -GtkPreview - - -a widget to display RGB or grayscale data. - - - -The #GtkPreview widget provides a simple interface -used to display images as RGB or grayscale data. - - - - - - - -#GdkRGB -the backend used by #GtkPreview. - - - - - - - -The #GtkPreview-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Contains information about global properties -of preview widgets. - -The #GtkPreviewInfo struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#GdkVisual *visual; -the visual used by all previews. - - - -#GdkColormap *cmap; -the colormap used by all previews. - - - -gdouble gamma; -the gamma correction value used by all previews (See gtk_preview_set_gamma()). - - - - - - - - -@visual: -@cmap: -@lookup: -@gamma: - - - -This union not used in GTK+. - - - - - -This function is deprecated and does nothing. - - - - - - -Create a new preview widget. - - -@type: the type data contained by the widget. -(Grayscale or RGB) -@Returns: - - - - -Set the size that the preview widget will request -in response to a "size_request" signal. The -drawing area may actually be allocated a size -larger than this depending on how it is packed -within the enclosing containers. The effect -of this is determined by whether the preview -is set to expand or not (see gtk_preview_expand()) - - -@preview: a #GtkPreview. -@width: the new width. -@height: the new height. - - - - -Takes a portion of the contents of a preview widget -and draws it onto the given drawable, @window. - - -@preview: a #GtkPreview. -@window: a window or pixmap. -@gc: The graphics context for the operation. Only the - clip mask for this GC matters. -@srcx: the x coordinate of the upper left corner in the source image. -@srcy: the y coordinate of the upper left corner in the source image. -@destx: the x coordinate of the upper left corner in the destination image. -@desty: the y coordinate of the upper left corner in the destination image. -@width: the width of the rectangular portion to draw. -@height: the height of the rectangular portion to draw. - - - - -Sets the data for a portion of a row. - - -@preview: a #GtkPreview. -@data: the new data for the portion. It should contain - @w bytes of data if the preview is of type - GTK_TYPE_GRAYSCALE, and 3*@w bytes of data - if the preview is of type GTK_TYPE_COLOR. -@x: the starting value on the row to set. -@y: the row to change. -@w: the number of pixels in the row to change. - - - - -Determines the way that the the preview widget behaves -when the size it is allocated is larger than the requested -size. If @expand is %FALSE, then the preview's window -and buffer will be no larger than the size set with -gtk_preview_size(), and the data set will be centered -in the allocation if it is larger. If @expand is %TRUE -then the window and buffer will expand with the allocation; -the application is responsible for catching -the "size_allocate" signal and providing the data -appropriate for this size. - - -@preview: a #GtkPreview. -@expand: whether the preview's window should expand or not. - - - - -Set the gamma-correction value for all preview widgets. -(This function will eventually be replaced with a -function that sets a per-preview-widget gamma value). -The resulting intensity is given by: -destination_value * pow (source_value/255, 1/gamma). -The gamma value is applied when the data is -set with gtk_preview_draw_row() so changing this -value will not affect existing data in preview -widgets. - - -@gamma: the new gamma value. - - - - -This function is deprecated and does nothing. GdkRGB -automatically picks an optimium color cube for the -display. - - -@nred_shades: ignored -@ngreen_shades: ignored -@nblue_shades: ignored -@ngray_shades: ignored - - - - -This function is deprecated -and does nothing. GdkRGB will automatically pick -a private colormap if it cannot allocate sufficient -colors. - - -@install_cmap: ignored. - - - - -This function is deprecated and does nothing. - - -@nreserved: ignored. - - - - -Set the dithering mode for the display. - - -@preview: a #GtkPreview. -@dither: the dithering mode. - - - - -Returns the visual used by preview widgets. This -function is deprecated, and you should use -gdk_rgb_get_visual() instead. - - -@Returns: the visual for previews. - - - - -Returns the colormap used by preview widgets. This -function is deprecated, and you should use -gdk_rgb_get_cmap() instead. - - -@Returns: the colormap for previews. - - - - -Return a #GtkPreviewInfo structure containing -global information about preview widgets. - - -@Returns: a #GtkPreviewInfo structure. The return - value belongs to GTK+ and must not be modified - or freed. - - - - -This function is deprecated and does nothing. It was -once used for changing the colormap and visual on the fly. - - - - diff --git a/docs/reference/gtk/tmpl/gtkprivate.sgml b/docs/reference/gtk/tmpl/gtkprivate.sgml deleted file mode 100644 index 3be551b997..0000000000 --- a/docs/reference/gtk/tmpl/gtkprivate.sgml +++ /dev/null @@ -1,120 +0,0 @@ - -Private Information - - - - - - - - - - - - - - - - - - - -@PRIVATE_GTK_USER_STYLE: -@PRIVATE_GTK_REDRAW_PENDING: -@PRIVATE_GTK_RESIZE_PENDING: -@PRIVATE_GTK_RESIZE_NEEDED: -@PRIVATE_GTK_LEAVE_PENDING: -@PRIVATE_GTK_HAS_SHAPE_MASK: -@PRIVATE_GTK_IN_REPARENT: -@PRIVATE_GTK_IS_OFFSCREEN: - - - - - - -@wid: - - - - - - - -@obj: - - - - - - - -@obj: - - - - - - - -@obj: - - - - - - - -@obj: - - - - - - - -@obj: - - - - - - - -@obj: - - - - - - - -@obj: - - - - - - - -@obj: - - - - - - - -@wid: -@flag: - - - - - - - -@wid: -@flag: - - diff --git a/docs/reference/gtk/tmpl/gtkprogress.sgml b/docs/reference/gtk/tmpl/gtkprogress.sgml deleted file mode 100644 index c883498459..0000000000 --- a/docs/reference/gtk/tmpl/gtkprogress.sgml +++ /dev/null @@ -1,204 +0,0 @@ - -GtkProgress - - -the base class for #GtkProgressBar. - - - -A #GtkProgress is the abstract base class used to derive -a #GtkProgressBar which provides a visual representation of -the progress of a long running operation. - - - - - - - - -The #GtkProgress-struct struct contains private data only. -and should be accessed using the functions below. - - - - -Controls whether progress text is shown. - - -@progress: a #GtkProgress. -@show_text: a boolean indicating whether the progress text -is shown. - - - -Controls the alignment of the text within the progress bar area. - - -@progress: a #GtkProgress. -@x_align: a number between 0.0 and 1.0 indicating the horizontal -alignment of the progress text within the #GtkProgress. -@y_align: a number between 0.0 and 1.0 indicating the vertical -alignment of the progress text within the #GtkProgress. - - - - -Sets a format string used to display text indicating the -current progress. The string can contain the following substitution characters: - - - - -%%v - the current progress value. - - - - -%%l - the lower bound for the progress value. - - - - -%%u - the upper bound for the progress value. - - - - -%%p - the current progress percentage. - - - - - -@progress: a #GtkProgress. -@format: a string used to display progress text. - - - - -Associates a #GtkAdjustment with the #GtkProgress. A #GtkAdjustment -is used to represent the upper and lower bounds and the step interval -of the underlying value for which progress is shown. - - -@progress: a #GtkProgress. -@adjustment: the #GtkAdjustment to be associated with the #GtkProgress. - - - - -Sets the current percentage completion for the #GtkProgress. - - -@progress: a #GtkProgress. -@percentage: the percentage complete which must be between 0.0 -and 1.0. - - - - -Sets the value within the #GtkProgress to an absolute value. -The value must be within the valid range of values for the -underlying #GtkAdjustment. - - -@progress: a #GtkProgress. -@value: the value indicating the current completed amount. - - - - -Returns the current progress complete value. - - -@progress: a #GtkProgress. -@Returns: the current progress complete value. - - - - -A #GtkProgress can be in one of two different modes: percentage -mode (the default) and activity mode. In activity mode, the -progress is simply indicated as activity rather than as a percentage -complete. - - -@progress: a #GtkProgress. -@activity_mode: a boolean, TRUE for activity mode. - - - - -Returns the current text associated with the #GtkProgress. This -text is the based on the underlying format string after any substitutions -are made. - - -@progress: a #GtkProgress. -@Returns: the text indicating the current progress. - - - - -Returns the text indicating the progress based on the supplied value. -The current value for the #GtkProgress remains unchanged. - - -@progress: a #GtkProgress. -@value: an absolute progress value to use when formatting the progress text. -@Returns: a string indicating the progress. - - - - -Returns the current progress as a percentage. - - -@progress: a #GtkProgress. -@Returns: a number between 0.0 and 1.0 indicating the percentage complete. - - - - -Returns the progress as a percentage calculated from the supplied -absolute progress value. - - -@progress: a #GtkProgress. -@value: an absolute progress value. -@Returns: a number between 0.0 and 1.0 indicating the percentage complete -represented by @value. - - - - -Allows the configuration of the minimum, maximum, and current values for -the #GtkProgress. - - -@progress: a #GtkProgress. -@value: the current progress value. -@min: the minimum progress value. -@max: the maximum progress value. - - - - -A boolean indicating whether activity mode is enabled. - - - - -A boolean indicating whether the progress is shown as text. - - - - -A number between 0.0 and 1.0 specifying the horizontal alignment. - - - - -A number between 0.0 and 1.0 specifying the vertical alignment. - diff --git a/docs/reference/gtk/tmpl/gtkprogressbar.sgml b/docs/reference/gtk/tmpl/gtkprogressbar.sgml deleted file mode 100644 index 8fa367b82e..0000000000 --- a/docs/reference/gtk/tmpl/gtkprogressbar.sgml +++ /dev/null @@ -1,218 +0,0 @@ - -GtkProgressBar - - -a widget which indicates progress visually. - - - -The #GtkProgressBar is typically used to display the progress of a long -running operation. It provides a visual clue that processing -is underway. The #GtkProgressBar can be used in two different -modes: percentage mode and activity mode. - - - -When an application can determine how much work needs to take place -(e.g. read a fixed number of bytes from a file) and can monitor its -progress, it can use the #GtkProgressBar in percentage mode and the user -sees a growing bar indicating the percentage of the work that has -been completed. In this mode, the application is required to call -either the gtk_progress_set_percentage() or gtk_progress_set_value() -functions periodically to update the progress bar. - - - -When an application has no accurate way of knowing the amount of work -to do, it can use the #GtkProgressBar in activity mode. In this mode -the progress bar shows activity by a block moving back and forth within -the progress area. - - - -There is quite a bit of flexibility provided to control the appearance -of the #GtkProgressBar. Functions are provided to control the -orientation of the bar, optional text which can be displayed along with -the bar, and the style in which the bar grows. - - - - - - - - - -The #GtkProgressBar-struct struct contains private data only, -and should be accessed using the functions below. - - - - - -An enumeration representing the styles for drawing the progress bar. - - - - - - -GTK_PROGRESS_CONTINUOUS -The progress bar grows in a smooth, continuous manner. - - - -GTK_PROGRESS_DISCRETE -The progress bar grows in discrete, visible blocks. - - - - - - - -An enumeration representing possible orientations and growth -directions for the visible progress bar. - - - - - - -GTK_PROGRESS_LEFT_TO_RIGHT -A horizontal progress bar growing from left to right. - - - -GTK_PROGRESS_RIGHT_TO_LEFT -A horizontal progress bar growing from right to left. - - - -GTK_PROGRESS_BOTTOM_TO_TOP -A vertical progress bar growing from bottom to top. - - - -GTK_PROGRESS_TOP_TO_BOTTOM -A vertical progress bar growing from top to bottom. - - - - - - - -Creates a new #GtkProgressBar. - - -@Returns: a #GtkProgressBar. - - - - -Creates a new #GtkProgressBar with an associated #GtkAdjustment. - - -@adjustment: a #GtkAdjustment. -@Returns: a #GtkProgressBar. - - - - -Sets the style of the #GtkProgressBar. The default style is -%GTK_PROGRESS_CONTINUOUS. - - -@pbar: a #GtkProgressBar. -@style: a #GtkProgressBarStyle value indicating the desired style. - - - - -Sets the number of blocks that the progress bar is divided into -when the style is %GTK_PROGRESS_DISCRETE. - - -@pbar: a #GtkProgressBar. -@blocks: number of individual blocks making up the bar. - - - - -Sets the step value used when the progress bar is in activity -mode. The step is the amount by which the progress is incremented -each iteration. - - -@pbar: a #GtkProgressBar. -@step: the amount which the progress is incremented in activity -mode. - - - - -Sets the number of blocks used when the progress bar is in activity -mode. Larger numbers make the visible block smaller. - - -@pbar: a #GtkProgressBar. -@blocks: number of blocks which can fit within the progress bar area. - - - - -Sets the orientation of the progress bar. This controls whether -the bar is horizontal or vertical and the direction in which it -grows. - - -@pbar: a #GtkProgressBar. -@orientation: a #GtkProgressBarOrientation value which specifies the -orientation and growth direction of the bar. - - - - -This function is deprecated. Please use gtk_progress_set_value() or -gtk_progress_set_percentage() instead. - - -@pbar: a #GtkProgressBar. -@percentage: the new percent complete value. - - - - -a #GtkAdjustment to be used with the #GtkProgressBar. - - - - -a #GtkProgressBarOrientation value which specifies the -orientation and growth direction of the bar. - - - - -a #GtkProgressBarStyle value which specifies the -visual style of the bar in percentage mode. - - - - -The increment used for each iteration in activity mode. - - - - -The number of blocks which can fit in the progress bar -area in activity mode. - - - - -The number of blocks which which make up progress bar -when it is shown in %GTK_PROGRESS_DISCRETE style. - - diff --git a/docs/reference/gtk/tmpl/gtkradiobutton.sgml b/docs/reference/gtk/tmpl/gtkradiobutton.sgml deleted file mode 100644 index 2419f64d90..0000000000 --- a/docs/reference/gtk/tmpl/gtkradiobutton.sgml +++ /dev/null @@ -1,159 +0,0 @@ - -GtkRadioButton - - -A choice from multiple check buttons. - - - -A single radio button performs the same basic function as a #GtkCheckButton, -as it's position in the object hierarchy reflects. It is only when multiple -radio buttons are grouped together that they become a different user -interface component in their own right. - -Every radio button is a member of some group of radio buttons. When one is selected, all other -radio buttons in the same group are deselected. A #GtkRadioButton is one way -of giving the user a choice from many options. - - -Radio button widgets are created with gtk_radio_button_new(), passing NULL -as the argument if this is the first radio button in a group. In subsequent -calls, the group you wish to add this button to should be passed as an -argument. Optionally, gtk_radio_button_new_with_label() can be used if you -want a text label on the radio button. - - -Alternatively, when adding widgets to an existing group of radio buttons, -use gtk_radio_button_new_from_widget() with a #GtkRadioButton that already -has a group assigned to it. The convenience function -gtk_radio_button_new_with_label_from_widget() is also provided. - - -To retrieve the group a #GtkRadioButton is assigned to, use -gtk_radio_button_group(). - - -To remove a #GtkRadioButton from one group and make it part of a new one, use gtk_radio_button_set_group(). - - - -How to create a group of two radio buttons. - - -void create_radio_buttons(void) { - - GtkWidget *window, *radio1, *radio2, *box, *entry; - window = gtk_window_new(GTK_WINDOW_TOPLEVEL); - box = gtk_vbox_new(TRUE, 2); - - /* Create a radio button with a #GtkEntry widget */ - radio1 = gtk_radio_button_new(NULL); - entry = gtk_entry_new(); - gtk_container_add(GTK_CONTAINER(radio1), entry); - - - /* Create a radio button with a label */ - radio2 = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON(radio1), - "I'm the second radio button."); - - /* Pack them into a box, then show all the widgets */ - gtk_box_pack_start (GTK_BOX (box), radio1, TRUE, TRUE, 2); - gtk_box_pack_start(GTK_BOX(box), radio2, TRUE, TRUE, 2); - gtk_container_add(GTK_CONTAINER(window), box); - gtk_widget_show_all (window); - return; -} - - - - - - - - - -#GtkOptionMenu -Another way of offering the user a single choice from -many. - - - - - - - -Contains only private data that should be read and manipulated using the -functions below. - - - - - -Creates a new #GtkRadioButton. To be of any practical value, a widget should -then be packed into the radio button. - - -@group: an existing radio button group, or NULL if you are creating a new group. -@Returns: a new radio button. - - - - -Creates a new #GtkRadioButton, adding it to the same group as @group. As -with gtk_radio_button_new(), a widget should be packed into the radio button. - - -@group: an existing #GtkRadioButton. -@Returns: a new radio button. - - - - -Creates a new #GtkRadioButton with a text label. - - -@group: an existing radio button group, or NULL if you are creating a new -group. -@label: the text label to display next to the radio button. -@Returns: a new radio button. - - - - -Creates a new #GtkRadioButton with a text label, adding it to the same group -as @group. - - -@group: an existing #GtkRadioButton. -@label: a text string to display next to the radio button. -@Returns: a new radio button. - - - - -Retrieves the group assigned to a radio button. - - -@radio_button: a #GtkRadioButton. -@Returns: a linked list containing all the radio buttons in the same group -as @radio_button. - - - - -Sets a #GtkRadioButton's group. It should be noted that this does not change -the layout of your interface in any way, so if you are changing the group, -it is likely you will need to re-arrange the user interface to reflect these -changes. - - -@radio_button: a #GtkRadioButton. -@group: an existing radio button group, such as one returned from -gtk_radio_button_group(). - - - - -Sets a new group for a radio button. - - diff --git a/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml b/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml deleted file mode 100644 index 3e9f1f6664..0000000000 --- a/docs/reference/gtk/tmpl/gtkradiomenuitem.sgml +++ /dev/null @@ -1,92 +0,0 @@ - -GtkRadioMenuItem - - -A choice from multiple check menu items. - - - -A radio menu item is a check menu item that belongs to a group. At each -instant exactly one of the radio menu items from a group is selected. - - -The correct way to create a group of radio menu items is aproximativly -this: - - - -How to create a group of radio menu items. - -GList *group = NULL; -GtkWidget *item; -gint i; - -for(i = 0; i < 5; i++) -{ - item = gtk_radio_menu_item_new_with_label (group, "This is an example"); - group = gtk_radio_menu_item_group (GTK_RADIO_MENU_ITEM (item)); - if (i == 1) - gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), TRUE); -} - - - - - - - -#GtkMenuItem -because a radio menu item is a menu item. - - -#GtkCheckItem -to know how to handle the check. - - - - - - -The structure contains only provate data that must be accessed through -the interface functions. - - - - - -Creates a new #GtkRadioMenuItem. - - -@group: the group to wich the radio menu item is to be attached -@Returns: the newly created radio menu item - - - - -Creates a new #GtkRadioMenuItem whose child is a simple #GtlLabel. - - -@group: the group to wich the radio menu item is to be attached -@label: the text for the label -@Returns: the newly created radio menu item - - - - -Returns the group to which the radio menu item belongs, as a #GList of -#GtkRadioMenuItem. The list belongs to GTK+ and should not be freed. - - -@radio_menu_item: the radio menu item -@Returns: its group - - - - -Sets the group of a radio menu item, or changes it. - - -@radio_menu_item: the radio menu item -@group: the new group - - diff --git a/docs/reference/gtk/tmpl/gtkrange.sgml b/docs/reference/gtk/tmpl/gtkrange.sgml deleted file mode 100644 index fcf22cdc60..0000000000 --- a/docs/reference/gtk/tmpl/gtkrange.sgml +++ /dev/null @@ -1,182 +0,0 @@ - -GtkRange - - - - - - - - - - - - - - - - - - - - - - - - - -@range: -@Returns: - - - - - - - -@range: -@policy: - - - - - - - -@range: -@adjustment: - - - - - - - -@range: - - - - - - - -@range: - - - - - - - -@range: - - - - - - - -@range: - - - - - - - -@range: - - - - - - - -@range: - - - - - - - -@range: -@x: -@y: -@jump_perc: -@Returns: - - - - - - - -@range: - - - - - - - -@range: - - - - - - - -@range: -@x: -@y: -@jump_perc: -@Returns: - - - - - - - -@range: -@x: -@y: -@jump_perc: -@Returns: - - - - - - - -@range: -@xdelta: -@ydelta: - - - - - - - -@range: -@xdelta: -@ydelta: - - - - - - - -@range: - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkrc.sgml b/docs/reference/gtk/tmpl/gtkrc.sgml deleted file mode 100644 index 17281a0bc5..0000000000 --- a/docs/reference/gtk/tmpl/gtkrc.sgml +++ /dev/null @@ -1,782 +0,0 @@ - -Resource Files - - -Routines for handling resource files - - - -GTK+ provides resource file mechanism for configuring -various aspects of the operation of a GTK+ program -at runtime. - - -Default files - -An application can cause GTK+ to parse a specific RC -file by calling gtk_rc_parse(). In addition to this, -certain files will be read at the end of gtk_init(). -Unless modified, the files looked for will be .gtkrc -in the users home directory, and -$localstatedir/gtk/gtkrc -($localstatedir defaults to -/usr/local/etc). - - -The set of these default files -can be retrieved with gtk_rc_get_default_files() -and modified with gtk_rc_add_default_file() and -gtk_rc_set_default_files(). - - -For each default file, in addition to the file itself, -GTK+ will look for a locale-specific file that will -be parsed in addition to the main file. For instance, -if LANG is set to ja_JP.ujis, -when loading the default file ~/.gtkrc -then GTK+ looks for ~/.gtkrc.ja_JP.ujis, -~/.gtkrc.ja_JP, and -~/.gtkrc.ja, and parses the -first one it finds. - - - -Pathnames and patterns - -A resource file defines a number of styles and key bindings and -attaches them to particular widgets. The attachment is done -by the widget, widget_class, -and class declarations. As an example -of such a statement: - -widget "mywindow.*.GtkEntry" style "my-entry-class" - -attaches the style "my-entry-class" -to all widgets whose widget class -matches the pattern -"mywindow.*.GtkEntry". - - -The patterns here are given in the standard shell glob -syntax. The "?" wildcard matches -any character, while "*" matches -zero or more of any character. The three types of -matching are against the widget path, the -class path and the class -heirarchy. Both the widget and the class paths consists of a -"." separated list of all the -parents of the widget and the widget itself from -outermost to innermost. The difference is that in -the widget path, the name assigned by -gtk_widget_set_name() is used -if present, otherwise the class name of the widget, while -for the widget path, the class name is always used. - - -So, if you have a GtkEntry named -"myentry", inside of a of a window -named "mywindow", then the -widget path is: - -"mwindow.GtkHBox.myentry" - -while the class path is: - -"GtkWindow.GtkHBox.GtkEntry" - - - -Matching against class is a little different. The pattern -match is done against all class names in the widgets -class heirarchy (not the layout heirarchy) in sequence, so the -pattern: - -class "GtkButton" style "my-style" - -will match not just GtkButton widgets, -but also GtkToggleButton and -GtkCheckButton widgets, since -those classes derive from GtkButton. - - - -Toplevel declarations - -An RC file is a text file which is composed of a sequence -of declarations. '#' characters delimit comments and -the portion of a line after a '#' is ignored when parsing -an RC file. - - - -The possible toplevel declarations are: - - - - binding name - { ... } - - Declare a binding set - - - - class pattern - [ style | binding [ : priority ]] - name - - Specify a style or binding set for a particular - branch of the inheritance heirarchy. - - - - include filename - - Parse another file at this point - - - - module_path path> - - Sets a path (a list of directories separated - by colons) that will be searched for theme engines referenced in - RC files. - - - - pixmap_path path> - - Sets a path (a list of directories separated - by colons) that will be searched for pixmaps referenced in - RC files. - - - - style name [ = - parent ] { ... } - - Declare a style - - - - widget pattern - [ style | binding [ : priority ]] - name - - Specify a style or binding set for a particular - group of widgets by matching on the widget pathname. - - - - widget_class pattern - [ style | binding [ : priority ]] - name - - Specify a style or binding set for a particular - group of widgets by matching on the class pathname. - - - - - - -Styles - -A RC style is specified by a style -declaration in a RC file, and then bound to widgets -with a widget, widget_class, -or class declaration. All styles -applying to a particular widget are composited together -with widget declarations overriding -widget_class declarations which, in -turn, override widget declarations. -Within each type of declaration, later declarations override -earlier ones. - - - -Within a style declaration, the possible -elements are: - - - - bg[state] = - color - - - Set color used for the background of most widgets. - - - - - fg[state] = - color - - - Set color used for the foreground of most widgets. - - - - - base[state] = - color - - - Set color used for the background of widgets displaying - editable text. This color is used for the background - of, among others, #GtkText, #GtkEntry, #GtkList, and #GtkClist. - - - - - text[state] = - color - - - Set color used for foreground of widgets using - base for the background color. - - - - - bg_text[state] = - color - - - Set a background pixmap to be used in place of - the bg color (or for #GtkText, - in place of the base color. - - - - - font = font - - - Set the font for a widget. - - - - - fontset = font - - - Set the fontset for a widget. Overrides any - font declarations. - - - - - - -The colors and background pixmaps are specified as a function of the -state of the widget. The states are: - - - - NORMAL - - - A color used for a widget in its normal state - - - - - ACTIVE - - - A variant of the NORMAL color used when the - widget is in the %GTK_STATE_ACTIVE state, and also for - the trough of a ScrollBar, tabs of a NoteBook - other than the current tab and similar areas. - Frequently, this should be a darker variant - of the NORMAL color. - - - - - PRELIGHT - - - A color used for widgets in the %GTK_STATE_PRELIGHT state. This - state is the used for Buttons and MenuItems - that have the mouse cursor over them, and for - their children. - - - - - SELECTED - - - A color used to highlight data selected by the user. - for instance, the selected ListItems in a List widget, and the - selection in an Editable widget. - - - - - INSENSITIVE - - - A color used for the background of widgets that have - been set insenstivie with gtk_widget_set_senstive() - - - - - - - -Colors can be specified as a string "&hash;rrrrggggbbbb", -"&hash;rrrgggbbb", "&hash;rrggbb", -or "&hash;rgb", where r -g, and b are -hex digits, or they can be specified as a triplet of floats -{ r, g, -b}. - - - -Key bindings - -Key bindings allow the user to specify actions to be -taken on particular key presses. The form of a binding -set declaration is: - - - -binding name { - bind key { - signalname (param, ...) - ... - } - ... -} - - - -key is a string consisting of a -series of modifiers followed by the name of a key. The -modifiers can be: - -<alt> -<control> -<mod1> -<mod2> -<mod3> -<mod4> -<mod5> -<release> -<shft> -<shift> - -<shft> is an alias for -<shift> and -<alt> is an alias for -<mod1>. - - - -The action that is bound to the key is a sequence -of signal names (strings) followed by parameters for -each signal. The signals must be action signals. -(See gtk_signal_new()). Each parameter can be -a float, integer, string, or unquoted string -representing an enumeration value. The types of -the parameters specified must match the types of the -parameters of the signal. - - - -Binding sets are connected to widgets in the -same manner as styles, with one addition. -A priority can be specified for each pattern, -and within each type of pattern, binding sets -override other binding sets first by priority, -and only then by order of specification. (Later -overrides earlier). The priorities that can -be specified are (highest to lowest): - -HIGHEST -RC -APPLICATION -GTK -LOWEST - -RC is the default for bindings -read from an RC file, APPLICATION -should be used for bindings an application sets -up, and GTK is used for bindings -that GTK+ creates internally. - - - - - - - - - - -The #GtkRcStyle structure is used to represent a set -of information about the appearance of a widget. -This can later be composited together with other -#GtkRcStyle structures to form a #GtkStyle. - - -@name: -@font_name: -@fontset_name: -@bg_pixmap_name: -@color_flags: -@fg: -@bg: -@text: -@base: -@engine: -@engine_data: -@ref_count: - - - -The #GtkRcFlags enumeration is used as a bitmask -to specify which fields of a #GtkRcStyle have been -set for each state. - - - %GTK_RC_FG - - - If present, the foreground color has been set for this state. - - - - %GTK_RC_BG - - - If present, the background color has been set for this state. - - - - %GTK_RC_TEXT - - - If present, the text color has been set for this state. - - - - %GTK_RC_BASE - - - If present, the base color has been set for this state. - - - - - -@GTK_RC_FG: -@GTK_RC_BG: -@GTK_RC_TEXT: -@GTK_RC_BASE: - - - -A GtkImageLoader is used to load a filename found in -a RC file. - - -@window: the window for creating image -@colormap: the colormap for this image -@mask: a pointer to the location to store the mask -@transparent_color: the transparent color for the image -@filename: filename to load -@Returns: a #GtkPixmap representing @filename - - - - -The #GtkRcTokenType enumeration represents the tokens -in the RC file. It is exposed so that theme engines -can reuse these tokens when parsing the theme-engine -specific portions of a RC file. - - -@GTK_RC_TOKEN_INVALID: -@GTK_RC_TOKEN_INCLUDE: -@GTK_RC_TOKEN_NORMAL: -@GTK_RC_TOKEN_ACTIVE: -@GTK_RC_TOKEN_PRELIGHT: -@GTK_RC_TOKEN_SELECTED: -@GTK_RC_TOKEN_INSENSITIVE: -@GTK_RC_TOKEN_FG: -@GTK_RC_TOKEN_BG: -@GTK_RC_TOKEN_BASE: -@GTK_RC_TOKEN_TEXT: -@GTK_RC_TOKEN_FONT: -@GTK_RC_TOKEN_FONTSET: -@GTK_RC_TOKEN_BG_PIXMAP: -@GTK_RC_TOKEN_PIXMAP_PATH: -@GTK_RC_TOKEN_STYLE: -@GTK_RC_TOKEN_BINDING: -@GTK_RC_TOKEN_BIND: -@GTK_RC_TOKEN_WIDGET: -@GTK_RC_TOKEN_WIDGET_CLASS: -@GTK_RC_TOKEN_CLASS: -@GTK_RC_TOKEN_LOWEST: -@GTK_RC_TOKEN_GTK: -@GTK_RC_TOKEN_APPLICATION: -@GTK_RC_TOKEN_RC: -@GTK_RC_TOKEN_HIGHEST: -@GTK_RC_TOKEN_ENGINE: -@GTK_RC_TOKEN_MODULE_PATH: -@GTK_RC_TOKEN_LAST: - - - -Finds all matching RC styles for a given widget, -composites them together, and then creates a -#GtkStyle representing the composite appearance. -(GTK+ actually keeps a cache of previously -created styles, so a new style may not be -created.) - - -@widget: a #GtkWidget -@Returns: the resulting style. The caller should -reference the result, since GTK+ will retain the -initial reference count itself for the cache -of created styles. - - - - -Add a RcStyle that will be looked up by a match against -the widget's pathname. This is equivalent to a: - -widget PATTERN style STYLE - -statement in a RC file. - - -@rc_style: the #GtkRcStyle to use for widgets matching @pattern -@pattern: the pattern - - - - -Add a RcStyle that will be looked up by a match against -the widget's class pathname. This is equivalent to a: - - -widget_class PATTERN style STYLE - -statement in a RC file. - - -@rc_style: the #GtkRcStyle to use for widgets matching @pattern -@pattern: the pattern - - - - -Add a RcStyle that will be looked up by a matching against -the class heirarchy of the widget. This is equivalent to a: - -class PATTERN style STYLE - -statement in a RC file. - - -@rc_style: the #GtkRcStyle to use for widgets deriving from @pattern -@pattern: the pattern - - - - -Parse a given resource file. - - -@filename: the filename of a file to parse. - - - - -Parse resource information directly from a string. - - -@rc_string: a string to parse. - - - - -If the modification time on any previously read file -has changed, discard all style information -and then reread all previously read RC files. - - -@Returns: %TRUE if the files were reread. - - - - -Adds a file to the list of files to be parsed at the -end of gtk_init(). - - -@filename: the pathname to the file. - - - - -Retrieves the current list of RC files that will be parsed -at the end of gtk_init() - - -@Returns: A NULL terminated array of filenames. This memory -is owned by GTK+ and must not be freed by the application. -If you want to store this information, you should make a -copy. - - - - -Sets the list of files that GTK+ will read at the -end of gtk_init() - - -@filenames: A %NULL terminated list of filenames. - - - - -Parses a color in the format expected in a RC file. - - -@scanner: a #GtkScanner -@color: a pointer to a #GtkColor structure in which to store the result -@Returns: %G_TOKEN_NONE if parsing suceeded, otherwise the token -that was expected but not found. - - - - -Parses a #GtkStateType variable from the format expected -in a RC file. - - -@scanner: a #GtkScanner (must be initialized for parsing an RC file) -@state: A pointer to a #GtkStateType variable in which to -store the result. -@Returns: %G_TOKEN_NONE if parsing suceeded, otherwise the token -that was expected but not found. - - - - -Parses a #GtkPathPriorityType variable from the format expected -in a RC file. - - -@scanner: a #GtkScanner (must be initialized for parsing an RC file) -@priority: A pointer to #GtkPathPriorityType variable in which -to store the result. -@Returns: %G_TOKEN_NONE if parsing suceeded, otherwise the token -that was expected but not found. - - - - -Looks up a file in the current module path. - - -@module_file: The name of the module to search for. -@Returns: The filename, if found. (Must be freed with g_free()), -otherwise %NULL. - - - - -Looks up a file in the current pixmap path. If the file is -not found, it outputs a warning message using g_warning() -and returns %NULL. - - -@scanner: a #GtkScanner. Used for printing out warning messages -if the file is not found. -@pixmap_file: The name of the file to search for. -@Returns: The filename, if found. (Must be freed with g_free()), -otherwise %NULL. - - - - -Returns the directory in which GTK+ will look for -theme engines. - - -@Returns: The directory. (Must be freed with g_free()) - - - - -Returns the standard directory in which themes should -be installed. (GTK+ does not actually use this directory -itself.) - - -@Returns: The directory. (Must be freed with g_free()) - - - - -Sets the function that GTK+ will use to load images - - -@loader: the #GtkImageLoader to use - - - - -Internal function. Loads an image using the current -image loader. - - -@colormap: the colormap to use for the image -@transparent_color: the transparent color for the image -@filename: the filename of the image file -@Returns: a #GtkPixmap representing @filename - - - - -Create a new #GtkRcStyle with no fields set and -a reference count of 1. - - -@Returns: the newly create #GtkRcStyle - - - - -Increment the reference count of a #GtkRcStyle. - - -@rc_style: a #GtkRcStyle - - - - -Decrement the reference count of a #GtkRcStyle and -free if the result is 0. - - -@rc_style: a #GtkRcStyle - - - - -Internal function. - - - - diff --git a/docs/reference/gtk/tmpl/gtkruler.sgml b/docs/reference/gtk/tmpl/gtkruler.sgml deleted file mode 100644 index 7f9330de31..0000000000 --- a/docs/reference/gtk/tmpl/gtkruler.sgml +++ /dev/null @@ -1,62 +0,0 @@ - -GtkRuler - - -Base class for horizontal or vertical rulers - - - -The GTKRuler widget is a base class for horizontal and vertical rulers. Rulers -are used to show the mouse pointer's location in a window. The ruler can either -be horizontal or vertical on the window. Within the ruler a small triangle -indicates the location of the mouse relative to the horixontal or vertical -ruler. See #GtkHRuler to learn how to create a new horizontal ruler. See -#GtkVRuler to learn how to create a new vertical ruler. - - - - -#GtkHRuler, #GtkVRuler - - - - -All distances are in 1/72nd's of an inch. (According to Adobe thats a point, but -points are really 1/72.27 in.) - - - - - -This should be points_per_unit. This is the size of the unit in 1/72nd's of an inch and has nothing to do with screen pixels. - - -@metric_name: -@abbrev: -@pixels_per_unit: -@ruler_scale: -@subdivide: - - - -This calls the #GTKMetricType to set the ruler to units defined. Available units -are GTK_PIXELS, GTK_INCHES, or GTK_CENTIMETERS. The default unit of measurement -is GTK_PIXELS. - - -@ruler: the gtkruler -@metric: the unit of measurement - - - - -This sets the range of the ruler using gfloat lower, gfloat upper, gfloat position, and gfloat max_size. - - -@ruler: the gtkruler -@lower: the upper limit of the ruler -@upper: the lower limit of the ruler -@position: the mark on the ruler -@max_size: the maximum size of the ruler - - diff --git a/docs/reference/gtk/tmpl/gtkscale.sgml b/docs/reference/gtk/tmpl/gtkscale.sgml deleted file mode 100644 index e34f3e25e3..0000000000 --- a/docs/reference/gtk/tmpl/gtkscale.sgml +++ /dev/null @@ -1,97 +0,0 @@ - -GtkScale - - -a base class for #GtkHScale and #GtkVScale. - - - -The #GtkScale widget is an abstract class, used only for deriving the -subclasses #GtkHScale and #GtkVScale. - - - - - - - - - -The #GtkScale-struct struct contains the following fields. -(These fields should be considered read-only. They should never be set by -an application.) - - - - - - -#guint draw_value; -non-zero if the scale's current value is displayed next to the -slider. - - - -#guint value_pos; -the position in which the textual value is displayed, selected from -#GtkPositionType. - - - - - - - - -Sets the number of decimal places that are displayed in the value. - - -@scale: a #GtkScale. -@digits: the number of decimal places to display, e.g. use 1 to display 1.0, -2 to display 1.00 etc. - - - - -Specifies whether the current value is displayed as a string next to the -slider. - - -@scale: a #GtkScale. -@draw_value: - - - - -Sets the position in which the current value is displayed. - - -@scale: a #GtkScale. -@pos: the position in which the current value is displayed. - - - - -An internal function used to get the maximum width needed to display the value -string. - - -@scale: a #GtkScale. -@Returns: the maximum width needed to display the value string. - - - - -The number of decimal places that are displayed in the value. - - - - -If the current value is displayed as a string next to the slider. - - - - -The position in which the current value is displayed. - - diff --git a/docs/reference/gtk/tmpl/gtkscrollbar.sgml b/docs/reference/gtk/tmpl/gtkscrollbar.sgml deleted file mode 100644 index 3c3834826c..0000000000 --- a/docs/reference/gtk/tmpl/gtkscrollbar.sgml +++ /dev/null @@ -1,35 +0,0 @@ - -GtkScrollbar - - -base class for #GtkHScrollbar and GtkVScrollbar. - - - -The #GtkScrollbar widget is an abstract base class for #GtkHScrollbar and -#GtkVScrollbar. It is not very useful in itself. - - - - - - - -#GtkHScrollbar -a horizontal scrollbar. - - - -#GtkVScrollbar -a vertical scrollbar. - - - - - - - -The #GtkScrollbar struct does not contain any public data. - - - diff --git a/docs/reference/gtk/tmpl/gtkscrolledwindow.sgml b/docs/reference/gtk/tmpl/gtkscrolledwindow.sgml deleted file mode 100644 index 92c6db77f4..0000000000 --- a/docs/reference/gtk/tmpl/gtkscrolledwindow.sgml +++ /dev/null @@ -1,191 +0,0 @@ - -GtkScrolledWindow - - - -Adds scrollbars to its child widget. - - - -#GtkScrolledWindow is a #GtkBin subclass: it's a container -the accepts a single child widget. #GtkScrolledWindow adds scrollbars -to the child widget. - - - -The scrolled window can work in two ways. Some widgets have native -scrolling support; these widgets have "slots" for #GtkAdjustment -objects. The scrolled window installs #GtkAdjustment objects in the -child window's slots using the set_scroll_adjustments_signal, found in -#GtkWidgetClass. (Conceptually, these widgets implement a "Scrollable" -interface; because GTK+ 1.2 lacks multiple inheritance, this interface -is hackily implemented as a signal in #GtkWidgetClass.) - - - -The second way to use the scrolled window is useful with widgets that -lack the set_scroll_adjustments_signal. The #GtkViewport widget acts as -a proxy, implementing scrollability for child widgets that lack their -own scrolling capabilities. - - - -If a widget has native scrolling abilities, it can be added to the -#GtkScrolledWindow with gtk_container_add(). If a widget does not, you -must first add the widget to a #GtkViewport, then add the GtkViewport -to the scrolled window. The convenience function -gtk_scrolled_window_add_with_viewport() does exactly this, so you can -ignore the presence of the viewport. - - - - -#GtkViewport, #GtkAdjustment, #GtkWidgetClass - - - - -There are no public fields in the #GtkScrolledWindow struct; it should -only be accessed using the functions below. - - - - - -Creates a new scrolled window. The two arguments are the scrolled -window's adjustments; these will be shared with the scrollbars and the -child widget to keep the bars in sync with the child. Usually you want -to pass NULL for the adjustments, which will cause the scrolled window -to create them for you. - - -@hadjustment: Horizontal adjustment. -@vadjustment: Vertical adjustment. -@Returns: New scrolled window. - - - - -Returns the horizontal scrollbar's adjustment, used to connect the -horizontal scrollbar to the child widget's horizontal scroll -functionality. - - -@scrolled_window: A #GtkScrolledWindow. -@Returns: The horizontal #GtkAdjustment. - - - - -Returns the vertical scrollbar's adjustment, used to connect the -vertical scrollbar to the child widget's vertical scroll -functionality. - - -@scrolled_window: A #GtkScrolledWindow. -@Returns: The vertical #GtkAdjustment. - - - - -Sets the scrollbar policy for the horizontal and vertical scrollbars. -The policy determines when the scrollbar should appear; it is a value -from the #GtkPolicyType enumeration. If %GTK_POLICY_ALWAYS, the -scrollbar is always present; if %GTK_POLICY_NEVER, the scrollbar is -never present; if %GTK_POLICY_AUTOMATIC, the scrollbar is present only -if needed (that is, if the slider part of the bar would be smaller -than the trough - the display is larger than the page size). - - -@scrolled_window: A #GtkScrolledWindow. -@hscrollbar_policy: Policy for horizontal bar. -@vscrollbar_policy: Policy for vertical bar. - - - - -Used to add children without native scrolling capabilities. This is -simply a convenience function; it is equivalent to adding the -unscrollable child to a viewport, then adding the viewport to the -scrolled window. If a child has native scrolling, use -gtk_container_add() instead of this function. - - - -The viewport scrolls the child by moving its #GdkWindow, and takes the -size of the child to be the size of its toplevel #GdkWindow. This will -be very wrong for most widgets that support native scrolling; for -example, if you add a #GtkCList with a viewport, the whole widget will -scroll, including the column headings. Thus #GtkCList supports -scrolling already, and should not be used with the #GtkViewport proxy. - - - -A widget supports scrolling natively if the -set_scroll_adjustments_signal field in #GtkWidgetClass is non-zero, -i.e. has been filled in with a valid signal identifier. - - -@scrolled_window: A #GtkScrolledWindow. -@child: Widget you want to scroll. - - - - -Sets the #GtkAdjustment for the horizontal scrollbar. - - -@scrolled_window: A #GtkScrolledWindow. -@hadjustment: Horizontal scroll adjustment. - - - - -Determines the location of the child widget with respect to the -scrollbars. The default is %GTK_CORNER_TOP_LEFT, meaning the child is -in the top left, with the scrollbars underneath and to the right. -Other values in #GtkCornerType are %GTK_CORNER_TOP_RIGHT, -%GTK_CORNER_BOTTOM_LEFT, and %GTK_CORNER_BOTTOM_RIGHT. - - -@scrolled_window: A #GtkScrolledWindow. -@window_placement: Position of the child window. - - - - -Sets the #GtkAdjustment for the vertical scrollbar. - - -@scrolled_window: A #GtkScrolledWindow. -@hadjustment: - -@vadjustment: Vertical scroll adjustment. - - - - -Horizontal adjustment. See gtk_scrolled_window_set_hadjustment(), gtk_scrolled_window_get_hadjustment(). - - - - -Vertical adjustment. See gtk_scrolled_window_set_vadjustment(), gtk_scrolled_window_get_vadjustment(). - - - - -Horizontal scrollbar policy (show scrollbar always, never, or "when appropriate"). - - - - -Vertical scrollbar policy (show scrollbar always, never, or "when appropriate"). - - - - -Position of child window with respect to scrollbars; top left, top -right, bottom left, bottom right. - - diff --git a/docs/reference/gtk/tmpl/gtkselection.sgml b/docs/reference/gtk/tmpl/gtkselection.sgml deleted file mode 100644 index a819f84cab..0000000000 --- a/docs/reference/gtk/tmpl/gtkselection.sgml +++ /dev/null @@ -1,271 +0,0 @@ - -Selections - - -Functions for handling inter-process communication via selections. - - - - -See the documentation for #GtkWidget for descriptions -of the "selection_get" and "selection_received" signals. - - - - - - - - - -A #GtkTargetEntry structure represents a single type of -data than can be supplied for by a widget for a selection -or for supplied or received during drag-and-drop. It -contains a string representing the drag type, a flags -field (used only for drag and drop - see #GtkTargetFlags), -and an application assigned integer ID. The integer -ID will later be passed as a signal parameter for signals -like "selection_get". It allows the application to identify -the target type without extensive string compares. - - -@target: -@flags: -@info: - - - -A #GtkTargetList structure is a reference counted list -of #GtkTargetPair. It is used to represent the same -information as a table of #GtkTargetEntry, but in -an efficient form. This structure should be treated as -opaque. - - -@list: -@ref_count: - - - -Internally used structure in the drag-and-drop and -selection handling code. - - -@target: -@flags: -@info: - - - -Create a new #GtkTargetList from an array of #GtkTargetEntry. - - -@targets: Pointer to an array of #GtkTargetEntry -@ntargets: number of entries in @targets. -@Returns: the new #GtkTargetList. - - - - -Increase the reference count of a #GtkTargetList by one. - - -@list: a #GtkTargetList - - - - -Decrease the reference count of a #GtkTargetList by one. -If the resulting reference count is zero, free the list. - - -@list: a #GtkTargetList - - - - -Add another target to a #GtkTargetList - - -@list: a #GtkTargetList -@target: the interned atom representing the target -@flags: the flags for this target -@info: an ID that will be passed back to the application - - - - -Add a table of #GtkTargetEntry into a target list - - -@list: a #GtkTargetList -@targets: the table of #GtkTargetEntry -@ntargets: number of targets in the table - - - - -Remove a target from a target list - - -@list: a #GtkTargetList -@target: the interned atom representing the target - - - - -Look up a given target in a #GtkTargetList - - -@list: a #GtkTargetList -@target: an interned atom representing the target to search for -@info: a pointer to the location to store application info for target -@Returns: %TRUE if the target was found, otherwise %FALSE - - - - -Claim ownership of a given selection for a particular widget, -or, if @widget is %NULL, release ownership of the selection. - - -@widget: a #GtkWidget, or %NULL. -@selection: an interned atom representing the selection to claim -@time: the time stamp for claiming the selection -@Returns: %TRUE if the operation succeeded - - - - -Add specified target to the list of supported targets for a -given widget and selection. - - -@widget: a #GtkTarget -@selection: the selection -@target: target to add. -@info: A unsigned integer which will be passed back to the application. - - - - -Add a table of targets to the list of supported targets -for a given widget and selection. - - -@widget: a #GtkWidget -@selection: the selection -@targets: a table of targets to add -@ntargets: number of entries in @targets - - - - -Request the contents of a selection. When received, -a "selection_received" signal will be generated. - - -@widget: The widget which acts as requestor -@selection: Which selection to get -@target: Form of information desired (e.g., STRING) -@time: Time of request (usually of triggering event) - In emergency, you could use GDK_CURRENT_TIME -@Returns: TRUE if requested succeeded. FALSE if we could not process - request. (e.g., there was already a request in process for - this widget). - - - - -Store new data into a GtkSelectionData object. Should -_only_ by called from a selection handler callback. -Null terminates the stored data. - - -@selection_data: -@type: the type of selection data -@format: format (number of bits in a unit) -@data: pointer to the data (will be copied) -@length: length of the data - - - - -Removes all handlers and unsets ownership of all -selections for a widget. Called when widget is being -destroyed. This function will not generally be -called by applications. - - -@widget: a #GtkWidget - - - - -Make a copy of a #GtkSelection data structure and its -data. - - -@data: a pointer to a #GtkSelectionData structure. -@Returns: a pointer to a copy of @data. - - - - -Free a #GtkSelectionData structure returned from -gtk_selection_data_copy(). - - -@data: a pointer to a #GtkSelectionData structure. - - - - -Internal function. - - -@widget: -@event: -@Returns: - - - - -Internal function. - - -@window: -@event: -@Returns: - - - - -Internal function. - - -@widget: -@event: -@Returns: - - - - -Internal function. - - -@widget: -@event: -@Returns: - - - - -Internal function. - - -@widget: -@event: -@Returns: - - diff --git a/docs/reference/gtk/tmpl/gtkseparator.sgml b/docs/reference/gtk/tmpl/gtkseparator.sgml deleted file mode 100644 index 997fd31fe2..0000000000 --- a/docs/reference/gtk/tmpl/gtkseparator.sgml +++ /dev/null @@ -1,23 +0,0 @@ - -GtkSeparator - - -a base class for #GtkHSeparator and #GtkVseparator. - - - -The #GtkSeparator widget is an abstract class, used only for deriving the -subclasses #GtkHSeparator and #GtkVSeparator. - - - - - - - - - -The #GtkSeparator-struct struct contains private data only. - - - diff --git a/docs/reference/gtk/tmpl/gtksignal.sgml b/docs/reference/gtk/tmpl/gtksignal.sgml deleted file mode 100644 index aab2ec0c46..0000000000 --- a/docs/reference/gtk/tmpl/gtksignal.sgml +++ /dev/null @@ -1,928 +0,0 @@ - -Signals - - -Object methods and callbacks. - - - -What are signals? - -Signals are a way to get notification when something happens -and to customize object behavior according to the -user's needs. -Every signal is uniquely identified by a name, -"class_name::signal_name", where signal_name might be something like -"clicked" and class_name might be "GtkButton". Note that some other class -may also define a "clicked" callback, so long as it doesn't derive from -#GtkButton. - - -When they are created, they are also assigned a unique positive integer, -the signal id (1 is the first signal id- 0 is used to flag an error). -Each is also tied to an array of types that describes -the prototype of the function pointer(s) (handlers) you may -connect to the signal. Finally, every signal has -a default handler that is given by a function pointer -in its class structure: it is run by default whenever the -signal is emitted. (It is possible that a signal will -be emitted and a user-defined handler will prevent the default handler -from being run.) - - -Signals are used by everyone, but they are only -created on a per class basis-- so you should call -call gtk_signal_new() unless you are writing -a new #GtkObject type. However, if you want to make a new signal -for an existing type, you may use gtk_object_class_user_signal_new() -to create a signal that doesn't correspond to a class's builtin -methods. - - - -How are signals used? - -There are two basic actions in the signal handling game. -If you want notification of an event, you must connect -a function pointer and a data pointer to that signal; the data pointer -will be passed as the last argument to the function (so long as you -are using the default marshalling functions). -You will receive a connection id, a unique positive integer -corresponding to that attachment. - - -Functions that want to notify the user of certain actions, -emit signals. - - - -Basic Terminology - - - -signal -A class method, e.g. GtkButton::clicked. -More precisely it is a unique class-branch/signal-name pair. -This means you may not define a signal handler for a class which -derives from GtkButton that is called clicked, -but it is okay to share signals names if they are separate in -the class tree. - - - - -default handler -The object's internal method which is invoked -when the signal is emitted. - - - - -user-defined handler -A function pointer and data connected -to a signal (for a particular object). -There are really two types: those which are connected -normally, and those which are connected by one -of the connect_after functions. The connect_after handlers -are always run after the default handler. -Many toolkits refer to these as callbacks. - - - - -emission -the whole process of emitting a signal, -including the invocation of all -the different handler types mentioned above. - - - - -signal id -The unique positive (nonzero) integer -used to identify a signal. It can be used instead of -a name to many functions for a slight performance -improvement. - - - - -connection id -The unique positive (nonzero) integer -used to identify the connection of a user-defined handler -to a signal. Notice that it is allowed to connect the -same function-pointer/user-data pair twice, so -there is no guarantee that a function-pointer/user-data -maps to a unique connection id. - - - - - - - -A brief note on how they work. - -The functions responsible for translating an array of #GtkArgs -to your C compiler's normal semantics are called Marshallers. -They are identified by -gtk_marshal_return_value__parameter_list() -for example a C function returning a gboolean and taking a gint -can be invoked by using gtk_marshal_BOOL__INT(). -Not all possibly combinations of return/params are available, -of course, so if you are writing a #GtkObject with parameters -you might have to write a marshaller. - - - - - - - - -#GtkObject -The base class for things which emit signals. - - - - - - - - - - -@struct: -@field: - - - - -This is currently a hack left in for a scheme wrapper library. -It may be removed. - - -Don't use it. - - -@object: The object which emits the signal. -@data: The user data associated with the hook. -@nparams: The number of parameters to the function. -@args: The actual values of the arguments. -@arg_types: The types of the arguments. -@return_type: The type of the return value from the function -or #GTK_TYPE_NONE for no return value. - - - - -A function which you can use to clean up when the -signal handler is destroyed. - - -For example, if your handler requires a few variables -that you made into a struct and allocated (using g_new() -or something), then you will probably want to free -it as soon as the hook is destroyed. This will -allow you to do that. (For this in particular -it is convenient to pass g_free() as a #GtkSignalDestroy -function). - - -@data: The user data associated with the hook that is being -destroyed. - - - - -A simple function pointer to get invoked when the -signal is emitted. This allows you tie a hook to the signal type, -so that it will trap all emissions of that signal, from any object. - - -You may not attach these to signals created with the -#GTK_RUN_NO_HOOKS flag. - - -@object: the object which emits the signal. -@signal_id: the unique integer identify the signal type. -@n_params: the number of parameters to the function, -not including return value. -@params: the parameters to the function. A pointer to -the return value is passed as a last element. -@data: the user data associated with the hook. -@Returns: whether it wished to be removed. If it returns -TRUE, the signal hook is disconnected (and destroyed). - - - - -This structure contains all the information about a particular -signal: its name, the type it affects, the signature of the handlers, -and its unique identifying integer. - - -@object_type: -@signal_id: -@signal_name: -@is_user_signal: -@signal_flags: -@return_val: -@nparams: -@params: - - - -These configure the signal's emission. They control -whether the signal can be emitted recursively on an object -and -whether to run the default method before or after the user-defined handlers. - - - - - -GTK_RUN_FIRST -Run the default handler before the connected user-defined -handlers. - - - - -GTK_RUN_LAST -Run the default handler after the connected -user-defined handlers. -(Handlers registered as "after" always run after the default handler though) - - - - -GTK_RUN_BOTH -Run the default handler twice, -once before the user-defined handlers, -and -once after. - - - - -GTK_RUN_NO_RECURSE -Whether to prevent a handler or hook -from reemitting the signal from within itself. -Attempts to -emit the signal while it is running will result in the signal -emission being restarted once it is done with the current processing. - -You must be -careful to avoid having two handlers endlessly reemitting signals, -gtk_signal_n_emissions() can be helpful. - - - - -GTK_RUN_ACTION -The signal is an action you can -invoke without any particular setup or cleanup. -The signal is treated no differently, but some -other code can determine if the signal is appropriate to -delegate to user control. For example, key binding sets -only allow bindings of ACTION signals to keystrokes. - - - - -GTK_RUN_NO_HOOKS -This prevents the connection of emission hooks -to the signal. - - - - - -@GTK_RUN_FIRST: -@GTK_RUN_LAST: -@GTK_RUN_BOTH: -@GTK_RUN_NO_RECURSE: -@GTK_RUN_ACTION: -@GTK_RUN_NO_HOOKS: - - - - - - - - - - -Create a new signal type. (This is usually done in the -class initializer.) - - -@name: the event name for the signal, e.g. "clicked". -@signal_flags: a combination of GTK_RUN flags -specifying detail of when the default handler is to be invoked. -You should at least specify #GTK_RUN_FIRST -or #GTK_RUN_LAST. -@object_type: the type of object this signal pertains to. -It will also pertain to derivers of this type automatically. -@function_offset: How many bytes the function pointer is in -the class structure for this type. Used to invoke a class -method generically. -@marshaller: the function to translate between an array -of GtkArgs and the native calling convention. Usually they -are identified just by the type of arguments they take: -for example, gtk_marshal_BOOL__STRING() describes a marshaller -which takes a string and returns a boolean value. -@return_val: the type of return value, or GTK_TYPE_NONE for a signal -without a return value. -@nparams: the number of parameter the handlers may take. -@Varargs: a list of GTK_TYPE_*, one for each parameter. -@Returns: the signal id. - - - - -Create a new signal type. (This is usually done in a -class initializer.) - - -This function take the types as an array, instead of a list -following the arguments. Otherwise the same as gtk_signal_new(). - - -@name: the name of the signal to create. -@signal_flags: see gtk_signal_new(). -@object_type: the type of GtkObject to associate the signal with. -@function_offset: how many bytes the function pointer is in -the class structure for this type. -@marshaller: -@return_val: the type of the return value, or GTK_TYPE_NONE if -you don't want a return value. -@nparams: the number of parameters to the user-defined handlers. -@params: an array of GtkTypes, describing the prototype to -the callbacks. -@Returns: the signal id. - - - - -Given the name of the signal and the type of object it connects -to, get the signal's identifying integer. Emitting the signal -by number is somewhat faster than using the name each time. - - -It also tries the ancestors of the given type. - - -@name: the signal's name, e.g. clicked. -@object_type: the type that the signal operates on, e.g. #GTK_TYPE_BUTTON. -@Returns: the signal's identifying number, or 0 if no signal was found. - - - - -Given the signal's identifier, find its name. - - -Two different signals may have the same name, if they have differing types. - - -@signal_id: the signal's identifying number. -@Returns: the signal name, or NULL if the signal number was invalid. - - - - -Emit a signal. This causes the default handler and user-defined -handlers to be run. - - -Here is what gtk_signal_emit() does: - - -1. Calls the default handler and the user-connected handlers. -The default handler will be called first if -GTK_RUN_FIRST is set, and last if GTK_RUN_LAST is set. - - -2. Calls all handlers connected with the "after" flag set. - - -@object: the object that emits the signal. -@signal_id: the signal identifier. -@Varargs: the parameters to the function, followed -by a pointer to the return type, if any. - - - - -Emit a signal. This causes the default handler and user-connected -handlers to be run. - - -@object: the object that emits the signal. -@name: the name of the signal. -@Varargs: the parameters to the function, followed -by a pointer to the return type, if any. - - - - -Emit a signal. This causes the default handler and user-connected -handlers to be run. This differs from gtk_signal_emit() by taking -an array of GtkArgs instead of using C's varargs mechanism. - - -@object: the object to emit the signal to. -@signal_id: the signal identifier. -@params: an array of GtkArgs, one for each parameter, -followed by one which is a pointer to the return type. - - - - -Emit a signal by name. This causes the default handler and user-connected -handlers to be run. This differs from gtk_signal_emit() by taking -an array of GtkArgs instead of using C's varargs mechanism. - - -@object: the object to emit the signal to. -@name: the name of the signal. -@params: an array of GtkArgs, one for each parameter, -followed by one which is a pointer to the return type. - - - - -Find out the recursion depth of emissions for a particular type -of signal and object. (So it will -always return 0 or 1 if #GTK_RUN_NO_RECURSE is specified) -This is a way to avoid recursion: you can see if -you are currently running in that signal handler and emit it only -if you are. - -Another way to look at it is that this number increases -by one when #gtk_signal_emit(), et al, are called, -and decreases by one when #gtk_signal_emit() returns. - - -@object: the object with the signal handler. -@signal_id: the signal id. -@Returns: the recursion depth of emissions of this signal for this -object. - - - - -Find out the recursion depth of emissions for a particular type -of signal and object. Just like gtk_signal_n_emissions() -except it will lookup the signal id for you. - - -@object: the object with the signal handler. -@name: the signal name. -@Returns: the recursion depth of emissions of this signal for this -object. - - - - -This function aborts a signal's current emission. - - -It will prevent the default method from running, -if the signal was #GTK_RUN_LAST and you connected -normally (i.e. without the "after" flag). - - -It will print a warning if used on a signal which -isn't being emitted. - - -@object: the object whose signal handlers you wish to stop. -@signal_id: the signal identifier, as returned by gtk_signal_lookup(). - - - - -This function aborts a signal's current emission. - -It is just like -gtk_signal_emit_stop() -except it will lookup the signal id for you. - - -@object: the object whose signal handlers you wish to stop. -@name: the name of the signal you wish to stop. - - - - -Attach a function pointer and user data to a signal for -a particular object. - - -The GtkSignalFunction takes a GtkObject as its first parameter. -It will be the same object as the one you're connecting -the hook to. The func_data will be passed as the last parameter -to the hook. - - -All else being equal, signal handlers are invoked in the order -connected (see gtk_signal_emit() for the other details of -which order things are called in). - - -Here is how one passes an integer as user data, -for when you just want to specify a constant int -as parameter to your function: - - - -static void button_clicked_int(GtkButton* button, gpointer func_data) -{ - g_print("button pressed: %d\n", GPOINTER_TO_INT(func_data)); -} - -/* By calling this function, you will make the g_print above - * execute, printing the number passed as `to_print'. */ -static void attach_print_signal(GtkButton* button, gint to_print) -{ - gtk_signal_connect(GTK_OBJECT(button), "clicked", - GTK_SIGNAL_FUNC(button_clicked_int), - GINT_TO_POINTER(to_print)); -} - - - -@object: the object associated with the signal, e.g. if a button -is getting pressed, this is that button. -@name: name of the signal. -@func: function pointer to attach to the signal. -@func_data: value to pass as to your function (through the marshaller). -@Returns: the connection id. - - - - -Attach a function pointer and user data to a signal -so that this handler will be called after the other handlers. - - -@object: the object associated with the signal. -@name: name of the signal. -@func: function pointer to attach to the signal. -@func_data: value to pass as to your function (through the marshaller). -@Returns: the unique identifier for this attachment: the connection id. - - - - -This function is for registering a callback that will -call another object's callback. That is, -instead of passing the object which is responsible -for the event as the first parameter of the callback, -it is switched with the user data (so the object which emits -the signal will be the last parameter, which is where the -user data usually is). - - -This is useful for passing a standard function in as a callback. -For example, if you wanted a button's press to gtk_widget_show() -some widget, you could write: - - - -gtk_signal_connect_object(button, "clicked", gtk_widget_show, window); - - - -@object: the object which emits the signal. -@name: the name of the signal. -@func: the function to callback. -@slot_object: the object to pass as the first parameter to func. -(Though it pretends to take an object, you can -really pass any gpointer as the #slot_object .) -@Returns: the connection id. - - - - -Attach a signal hook to a signal, passing in an alternate -object as the first parameter, and guaranteeing -that the default handler and all normal -handlers are called first. - - -@object: the object associated with the signal. -@name: name of the signal. -@func: function pointer to attach to the signal. -@slot_object: the object to pass as the first parameter to #func. -@Returns: the connection id. - - - - -Attach a function pointer and user data to a signal with -more control. - - -@object: the object which emits the signal. For example, a button -in the button press signal. -@name: the name of the signal. -@func: function pointer to attach to the signal. -@marshal: the function marshal, see the gtkmarshall documentation for -more details, but briefly: the marshaller is a function which takes -the #GtkObject which emits the signal, the user data, the number of the -arguments, and the array of arguments. It is responsible for -calling the function in the appropriate calling convention. -gtk_signal_default_marshaller is usually fine. -(This shows up, for example, when worrying about matching -c++ or other languages' calling conventions.) -@data: the user data associated with the function. -@destroy_func: function to call when this particular hook is -disconnected. -@object_signal: whether this is an object signal-- basically an "object -signal" is one that wants its user_data and object fields switched, -which is useful for calling functions which operate on another -object primarily. -@after: whether to invoke the user-defined handler after the signal, or to let -the signal's default behavior preside (i.e. depending on #GTK_RUN_FIRST -and #GTK_RUN_LAST). -@Returns: the connection id. - - - - -Attach a function pointer and another GtkObject to a signal. - - -This function takes an object whose "destroy" signal -should be trapped. -That way, you don't have to clean up the -signal handler when you destroy the object. -It is a little less efficient though. - - -(Instead you may call gtk_signal_disconnect_by_data(), if you want -to explicitly delete all attachments to this object. This -is perhaps not recommended since it could be confused -with an integer masquerading as a pointer (through GINT_AS_POINTER).) - - -@object: the object that emits the signal. -@signal: -@func: function pointer to attach to the signal. -@func_data: pointer to pass to func. -@alive_object: object whose death should cause the handler connection -to be destroyed. - -@name: name of the signal. - - - - -These signal connectors are for signals which refer to objects, -so they must not be called after the object is deleted. - - -Unlike gtk_signal_connect_while_alive(), -this swaps the object and user data, making it suitable for -use with functions which primarily operate on the user data. - - -This function acts just like gtk_signal_connect_object() except -it traps the "destroy" signal to prevent you from having to -clean up the handler. - - -@object: the object associated with the signal. -@signal: -@func: function pointer to attach to the signal. -@alive_object: the user data, which must be an object, whose destruction -should signal the removal of this signal. - -@name: name of the signal. - - - - -Destroy a user-defined handler connection. - - -@object: the object which the handler pertains to. -@handler_id: the connection id. - - - - -Destroy all connections for a particular object, with -the given function-pointer and user-data. - - -@object: the object which emits the signal. -@func: the function pointer to search for. -@data: the user data to search for. - - - - -Destroy all connections for a particular object, with -the given user-data. - - -@object: the object which emits the signal. -@data: the user data to search for. - - - - -Prevent an user-defined handler from being invoked. All other -signal processing will go on as normal, but this particular -handler will ignore it. - - -@object: the object which emits the signal to block. -@handler_id: the connection id. - - - - -Prevent a user-defined handler from being invoked, by reference to -the user-defined handler's function pointer and user data. (It may result in -multiple hooks being blocked, if you've called connect multiple times.) - - -@object: the object which emits the signal to block. -@func: the function pointer of the handler to block. -@data: the user data of the handler to block. - - - - -Prevent all user-defined handlers with a certain user data from being invoked. - - -@object: the object which emits the signal we want to block. -@data: the user data of the handlers to block. - - - - -Undo a block, by connection id. Note that undoing a block doesn't -necessarily make the hook callable, because if you block a -hook twice, you must unblock it twice. - - -@object: the object which emits the signal we want to unblock. -@handler_id: the emission handler identifier, as returned by -gtk_signal_connect(), etc. - - - - -Undo a block, by function pointer and data. -Note that undoing a block doesn't -necessarily make the hook callable, because if you block a -hook twice, you must unblock it twice. - - -@object: the object which emits the signal we want to unblock. -@func: the function pointer to search for. -@data: the user data to search for. - - - - -Undo block(s), to all signals for a particular object -with a particular user-data pointer - - -@object: the object which emits the signal we want to unblock. -@data: the user data to search for. - - - - -Returns a connection id corresponding to a given signal id and object. - - -One example of when you might use this is when the arguments -to the signal are difficult to compute. A class implementor -may opt to not emit the signal if no one is attached anyway, -thus saving the cost of building the arguments. - - -@object: the object to search for the desired user-defined handler. -@signal_id: the number of the signal to search for. -@may_be_blocked: whether it is acceptable to return a blocked -handler. -@Returns: the connection id, if a connection was found. 0 otherwise. - - - - -Returns a connection id corresponding to a given signal id, object, function -pointer and user data. - - -@object: the object to search for the desired handler. -@signal_id: the number of the signal to search for. -@may_be_blocked: whether it is acceptable to return a blocked -handler. -@func: the function pointer to search for. -@data: the user data to search for. -@Returns: the connection id, if a handler was found. 0 otherwise. - - - - -Returns whether a connection id is valid (and optionally not blocked). - - -@object: the object to search for the desired handler. -@handler_id: the connection id. -@may_be_blocked: whether it is acceptable to return a blocked -handler. -@Returns: TRUE if the signal exists and wasn't blocked, -unless #may_be_blocked was specified. FALSE otherwise. - - - - -Destroy all the signal handlers connected to an object. -This is done automatically when the object is destroyed. - - -This function is labeled private. - - -@object: the object whose signal handlers should be destroyed. - - - - -These set default functions to call when the user didn't -supply a function when connecting. (These are rarely -used, and probably only for language bindings) - - -By default, there are no such functions. - - -@marshal_func: the function to invoke on every handlers for which there -isn't a function pointer. May be NULL. -@destroy_func: the function to invoke when each hook is destroyed. -May be NULL. - - - - -Obtain information about a signal. - - -@signal_id: the signal type identifier. -@Returns: a pointer to a GtkSignalQuery structure -which contains all the information, or NULL. -The pointer is allocated just for you: you must g_free() it. - - - - -Add an emission hook for a type of signal, for any object. - - -@signal_id: the type of signal to hook for. -@hook_func: the function to invoke to handle the emission hook. -@data: the user data passed in to hook_func. -@Returns: the id (that you may pass as a parameter -to gtk_signal_remove_emission_hook()). - - - - -Add an emission hook for a type of signal, for any object. -(with control of what happens when the hook is -destroyed). - - -@signal_id: the type of signal add the hook for. -@hook_func: the function to invoke to handle the hook. -@data: the user data passed in to hook_func. -@destroy: a function to invoke when the hook is destroyed, -to clean up any allocation done just for this -signal handler. -@Returns: the id (that you may pass as a parameter -to gtk_signal_remove_emission_hook()). - - - - -Delete an emission hook. (see gtk_signal_add_emission_hook()) - - -@signal_id: the id of the signal type. -@hook_id: the id of the emission handler, returned by add_emission_hook(). - - diff --git a/docs/reference/gtk/tmpl/gtksocket.sgml b/docs/reference/gtk/tmpl/gtksocket.sgml deleted file mode 100644 index 6023b10441..0000000000 --- a/docs/reference/gtk/tmpl/gtksocket.sgml +++ /dev/null @@ -1,122 +0,0 @@ - -GtkSocket - - -Container for widgets from other processes. - - - -Together with #GtkPlug, #GtkSocket provides the ability -to embed widgets from one process into another process -in a fashion that is transparent to the user. One -process creates a #GtkSocket widget and, passes the -XID of that widget's window to the other process, -which then creates a #GtkPlug window with that XID. -Any widgets contained in the #GtkPlug then will appear -inside the first applications window. - - - -The XID of the socket's window is obtained by using -the GTK_WINDOW_XWINDOW() macro from the header -file <gdk/gdkx.h>. Before using this macro, -the socket must have been realized, and for hence, -have been added to its parent. - - - Obtaining the XID of a socket - -#include <gdk/gdkx.h> - -GtkWidget *socket = gtk_socket_new(); -gtk_widget_show (socket); -gtk_container_add (GTK_CONTAINER (parent), socket); - -/* The following call is only necessary if one of - * the ancestors of the socket is not yet visible. - */ -gtk_widget_realize (socket); -g_print ("The XID of the sockets window is %#x\n", - GDK_WINDOW_XWINDOW (socket->window)); - - - - - -Note that if you pass the XID of the socket to another -process that will create a plug in the socket, you -must make sure that the socket widget is not destroyed -until that plug is created. Violating this rule will -cause unpredictable consequences, the most likely -consequence being that the plug will appear as a -separate toplevel window. You can check if the plug -has been created by examining the -plug_window field of the -#GtkSocket structure. If this field is non-NULL, -then the plug has been succesfully created inside -of the socket. - - - -When GTK+ is notified that the embedded window has been -destroyed, then it will destroy the socket as well. You -should always, therefore, be prepared for your sockets -to be destroyed at any time when the main event loop -is running. - - - -A socket can also be used to swallow arbitrary -pre-existing top-level windows using gtk_socket_steal(), -though the integration when this is done will not be as close -as between a #GtkPlug and a #GtkSocket. - - - - - - -#GtkPlug -the widget that plugs into a #GtkSocket. - - - - - - - -The #GtkEditable structure contains the following field. -(This field should be considered read-only. It should -never be set by an application.) - - - - - - -#GdkWindow *plug_window; -the window embedded inside this #GtkSocket. - - - - - - - - -Create a new empty #GtkSocket. - - -@Returns: the new #GtkSocket. - - - - -Reparents a pre-existing toplevel window into a -#GtkSocket. - - -@socket: a #GtkSocket. -@wid: the XID of an existing toplevel window. - - diff --git a/docs/reference/gtk/tmpl/gtkspinbutton.sgml b/docs/reference/gtk/tmpl/gtkspinbutton.sgml deleted file mode 100644 index 6bed4c17f9..0000000000 --- a/docs/reference/gtk/tmpl/gtkspinbutton.sgml +++ /dev/null @@ -1,367 +0,0 @@ - -GtkSpinButton - - -retrieve an integer or floating-point number from the user. - - - -A #GtkSpinButton is an ideal way to allow the user to set the value of some attribute. Rather than having to directly type a number into a #GtkEntry, #GtkSpinButton allows the user to click on one of two arrows to increment or decrement the displayed value. A value can still be typed in, with the bonus that it can be checked to ensure it is in a given range. - - -The main properties of a #GtkSpinButton are through a #GtkAdjustment. See the #GtkAdjustment section for more details about an adjustment's properties. - - -#GtkSpinButton widgets are created with a call to gtk_spin_button_new(). - - -The #GtkAdjustment of a spin button can be set or retrieved with a call to gtk_spin_button_set_adjustment() or gtk_spin_button_get_adjustment(), respectively. - - -The number of digits after the decimal point of a spin button can be altered with gtk_spin_button_set_digits(). - - -To retrieve values from a spin button, use gtk_spin_button_get_value_as_float() if you require a floating point number, or gtk_spin_button_get_value_as_int() if you require an integer. - - -To set the value of a #GtkSpinButton, use gtk_spin_button_set_value(). To change the update behaviour of a spin button, use gtk_spin_button_set_update_policy(). - - -When a spin button reaches it's upper or lower limit, it can either stop spinning, or wrap around and continue spinning from the opposite limit. For example, if five is the upper limit and the lower limit is zero, upon reaching the value five, the spin button can change it's value back to zero and continue spinning upwards. -This behaviour is set with gtk_spin_button_set_wrap(). - - -A border around a spin button's arrows can be created using gtk_spin_button_set_shadow_type(). - - -A number may be entered that is invalid, given a spin button's range. An erroneous number can be corrected as soon as the spin button is 'activated' using gtk_spin_button_snap_to_ticks(), which will alter the current value to the nearest step increment. (See #GtkAdjustment for step increments). - - -Because a spin contains a #GtkEntry, alphabetic characters may be entered. These can be ignored by using gtk_spin_button_set_numeric() with a value of TRUE. Then only numeric values, '-' and a decimal point will be accepted. - - -To manually increment or decrement the spin button, use gtk_spin_button_spin(), and to force an update (refresh), use gtk_spin_button_update(). - - - -Using a GtkSpinButton to get an integer. - - -/* Provides a function to retrieve an integer value from a GtkSpinButton - * and creates a spin button to model percentage values. - */ - -gint grab_int_value (GtkSpinButton *a_spinner, gpointer user_data) { - return gtk_spin_button_get_value_as_int (a_spinner); -} - -void create_integer_spin_button(void) { - - GtkWidget *window, *spinner; - GtkAdjustment *spinner_adj; - - spinner_adj = (GtkAdjustment *) gtk_adjustment_new(50.0, 0.0, 100.0, 1.0, 5.0, 5.0); - - window = gtk_window_new(GTK_WINDOW_TOPLEVEL); - gtk_container_set_border_width (GTK_CONTAINER (window), 5); - - /* creates the spinner, with no decimal places */ - spinner = gtk_spin_button_new (spinner_adj, 1.0, 0); - gtk_container_add (GTK_CONTAINER(window), spinner); - - gtk_widget_show_all (window); - return; -} - - - - - - - -Using a GtkSpinButton to get a floating point value. - - -/* Provides a function to retrieve a floating point value from a - * GtkSpinButton, and creates a high precision spin button. - */ - -gfloat grab_int_value (GtkSpinButton *a_spinner, gpointer user_data) { - return gtk_spin_button_get_value_as_float (a_spinner); -} - -void create_floating_spin_button(void) { - - GtkWidget *window, *spinner; - GtkAdjustment *spinner_adj; - - spinner_adj = (GtkAdjustment *) gtk_adjustment_new(2.500, 0.0, 5.0, 0.001, 0.1, 0.1); - - window = gtk_window_new(GTK_WINDOW_TOPLEVEL); - gtk_container_set_border_width (GTK_CONTAINER (window), 5); - - /* creates the spinner, with three decimal places */ - spinner = gtk_spin_button_new (spinner_adj, 0.001, 3); - gtk_container_add (GTK_CONTAINER(window), spinner); - - gtk_widget_show_all (window); - return; -} - - - - - - - - - -#GtkEntry -retrieve text rather than numbers. - - - - - - -entry is the #GtkEntry part of the #GtkSpinButton widget, and can be used accordingly. All other fields contain private data and should only be modified using the functions below. - - - - - - - - - - -GTK_UPDATE_ALWAYS -When refreshing your #GtkSpinButton, the value is always displayed. - - -GTK_UPDATE_IF_VALID -When refreshing your #GtkSpinButton, the value is only displayed if it is valid within the bounds of the spin button's #GtkAdjustment. - - - - -@GTK_UPDATE_ALWAYS: -@GTK_UPDATE_IF_VALID: - - - - - - - - -GTK_SPIN_STEP_FORWARD, -GTK_SPIN_STEP_BACKWARD, -GTK_SPIN_PAGE_FORWARD, -GTK_SPIN_PAGE_BACKWARD -These values spin a #GtkSpinButton by the relevant values of the spin button's #GtkAdjustment. - - -GTK_SPIN_HOME, -GTK_SPIN_END -These set the spin button's value to the minimum or maxmimum possible values, (set by it's #GtkAdjustment), respectively. - - -GTK_SPIN_USER_DEFINED -The programmer must specify the exact amount to spin the #GtkSpinButton. - - - - -@GTK_SPIN_STEP_FORWARD: -@GTK_SPIN_STEP_BACKWARD: -@GTK_SPIN_PAGE_FORWARD: -@GTK_SPIN_PAGE_BACKWARD: -@GTK_SPIN_HOME: -@GTK_SPIN_END: -@GTK_SPIN_USER_DEFINED: - - - -Changes the properties of an existing spin button. The adjustment, climb rate, and number of decimal places are all changed accordingly, after this function call. - - -@spin_button: a #GtkSpinButton. -@adjustment: a #GtkAdjustment. -@climb_rate: the new climb rate. -@digits: the number of decimal places to display in the spin button. - - - - -Creates a new #GtkSpinButton. - - -@adjustment: the #GtkAdjustment object that this spin button should use. -@climb_rate: specifies how much the spin button changes when an arrow is clicked on. -@digits: the number of decimal places to display. -@Returns: a #GtkWidget. - - - - -Changes which #GtkAdjustment is associated with a spin button. - - -@spin_button: a #GtkSpinButton. -@adjustment: a #GtkAdjustment. - - - - -Retrieves the #GtkAdjustment used by a given spin button. - - -@spin_button: a #GtkSpinButton. -@Returns: a #GtkAdjustment. - - - - -Alters the number of decimal places that are displayed in a spin button. - - -@spin_button: a #GtkSpinButton. -@digits: the number of decimal places. - - - - -Retrieves the current value of a #GtkSpinButton. If the number has no decimal places, it is converted to a float before the function returns. - - -@spin_button: a #GtkSpinButton. -@Returns: the value of @spin_button as a #gfloat. - - - - -Retrieves the current integer value of a #GtkSpinButton. - - -@spin_button: a #GtkSpinButton. -@Returns: the value of @spin_button as a #gint. - - - - -Sets the value of a spin button. - - -@spin_button: a #GtkSpinButton. -@value: the new floating point value. - - - - -Changes the way a spin button refreshes and updates itself. See %GtkSpinButtonUpdatePolicy for more information. - - -@spin_button: a #GtkSpinButton. -@policy: the new update policy. - - - - -Sets how the spin button's #GtkEntry reacts to alphabetic characters. A value of TRUE to @numeric means that all non-numeric characters (except '-' and a decimal point) are ignored. - - -@spin_button: a #GtkSpinButton. -@numeric: whether letters should be ignored. - - - - -Performs an explicit 'spin' on a spin button. - - -@spin_button: a #GtkSpinButton. -@direction: the type of spin to perform. -@increment: the amount to spin. - - - - -Sets a spin button's value to the lower limit when it's upper limit is reached, and vice versa. - - -@spin_button: a #GtkSpinButton. -@wrap: defaults to FALSE, set to TRUE to make the spin button wrap. - - - - -Creates a border around the arrows of a #GtkSpinButton. The type of border is determined by @shadow_type. - - -@spin_button: a #GtkSpinButton -@shadow_type: the new border type. - - - - -Sets whether a number typed into a spin button should be snapped to the nearest step increment. - - -@spin_button: a #GtkButton. -@snap_to_ticks: TRUE or FALSE. - - - - -Refreshes a spin button. The behaviour of the update is determined by gtk_spin_button_set_update_policy(). - - -@spin_button: a #GtkSpinButton. - - - - -the #GtkAdjustment that defines a spin button's main properties. - - - - -the amount a spin button changes when an arrow is clicked. - - - - -the number of decimal places to display. - - - - -whether erroneous values are automatically changed to a spin button's nearest step increment. - - - - -whether non-numeric characters should be ignored. - - - - -whether a spin button should wrap upon reaching its limits. - - - - -how a spin button should be updated. - - - - -the type of border that surrounds the arrows of a spin button. - - - - -reads the current value, or sets a new value. - - diff --git a/docs/reference/gtk/tmpl/gtkstatusbar.sgml b/docs/reference/gtk/tmpl/gtkstatusbar.sgml deleted file mode 100644 index f751cd051e..0000000000 --- a/docs/reference/gtk/tmpl/gtkstatusbar.sgml +++ /dev/null @@ -1,129 +0,0 @@ - -GtkStatusbar - - -report messages of minor importance to the user. - - - -A #GtkStatusbar is usually placed along the bottom of an application's main -#GtkWindow. It may provide a regular commentary of the application's status -(as is usually the case in a web browser, for example), or may be used to -simply output a message when the status changes, (when an upload is complete -in an FTP client, for example). - - -Status bars in Gtk+ maintain a stack of messages. The message at -the top of the each bar's stack is the one that will currently be displayed. - - -Any messages added to a statusbar's stack must specify a context_id -that is used to uniquely identify the source of a message. This context_id can be -generated by gtk_statusbar_get_context_id(), given a message and the -statusbar that it will be added to. Note that messages are stored in a -stack, and when choosing which message to display, the stack structure is -adhered to, regardless of the context identifier of a message. - - -Status bars are created using gtk_statusbar_new(). - - -Messages are added to the bar's stack with gtk_statusbar_push(). - - -The message at the top of the stack can be removed using gtk_statusbar_pop(). A message can be removed from anywhere in the stack if it's message_id was recorded at the time it was added. This is done using gtk_statusbar_remove(). - - - - - - -#GtkDialog -another way of reporting information to the user. - - - - - - -Contains private data that should be modified with the functions described below. - - - - - -Holds the data for a statusbar message. text holds the actual text string. context_id is the context that this message is associated with, and message_id is this particular message's identifier. However, these fields should not be modified directly. - - -@text: -@context_id: -@message_id: - - - -Creates a new #GtkStatusbar ready for messages. - - -@Returns: the new #GtkStatusbar. - - - - -Returns a new context identifier, given a description of the actual context. - - -@statusbar: a #GtkStatusbar. -@context_description: textual description of what context the new message is -being used in. -@Returns: an integer id. - - - - -Pushes a new message onto a statusbar's stack. - - -@statusbar: a #GtkStatusbar. -@context_id: the message's context id, as returned by -gkt_statusbar_get_context_id(). -@text: the message to add to the statusbar. -@Returns: the message's new message id for use with gtk_statusbar_remove(). - - - - -Removes the message at the top of a #GtkStatusBar's stack. - - -@statusbar: a #GtkStatusBar. -@context_id: a context identifier. - - - - -Forces the removal of a message from a statusbar's stack. The exact context_id and message_id must be specified. - - -@statusbar: a #GtkStatusBar. -@context_id: a context identifier. -@message_id: a message identifier, as returned by gtk_statusbar_push(). - - - - -Is emitted whenever a new message gets pushed onto a statusbar's stack. - - -@statusbar: the object which received the signal. -@context_id: the context id of the relevant message/statusbar. -@text: the message that was pushed. - - - -Is emitted whenever a new message is popped off a statusbar's stack. - - -@statusbar: the object which received the signal. -@context_id: the context id of the relevant message/statusbar. -@text: the message that was just popped. - diff --git a/docs/reference/gtk/tmpl/gtkstyle.sgml b/docs/reference/gtk/tmpl/gtkstyle.sgml deleted file mode 100644 index 0fbac43c7b..0000000000 --- a/docs/reference/gtk/tmpl/gtkstyle.sgml +++ /dev/null @@ -1,887 +0,0 @@ - -Styles - - - - - - - - - - - - - - - - - - - - - - - - - - -@style: - - - - - - - -@klass: -@fg: -@bg: -@light: -@dark: -@mid: -@text: -@base: -@black: -@white: -@font: -@fg_gc: -@bg_gc: -@light_gc: -@dark_gc: -@mid_gc: -@text_gc: -@base_gc: -@black_gc: -@white_gc: -@bg_pixmap: -@ref_count: -@attach_count: -@depth: -@colormap: -@engine: -@engine_data: -@rc_style: -@styles: - - - - - - -@xthickness: -@ythickness: -@draw_hline: -@draw_vline: -@draw_shadow: -@draw_polygon: -@draw_arrow: -@draw_diamond: -@draw_oval: -@draw_string: -@draw_box: -@draw_flat_box: -@draw_check: -@draw_option: -@draw_cross: -@draw_ramp: -@draw_tab: -@draw_shadow_gap: -@draw_box_gap: -@draw_extension: -@draw_focus: -@draw_slider: -@draw_handle: - - - - - - -@Returns: - - - - - - - -@style: -@Returns: - - - - - - - -@style: -@window: -@Returns: - - - - - - - -@style: - - - - - - - -@style: -@Returns: - - - - - - - -@style: - - - - - - - -@style: -@window: -@state_type: - - - - - - - -@style: -@window: -@set_bg: -@state_type: -@area: -@x: -@y: -@width: -@height: - - - - - - - -@s: -@gw: -@st: -@a: -@x: -@y: -@w: -@h: - - - - - - - -@style: -@window: -@state_type: -@x1: -@x2: -@y: - - - - - - - -@style: -@window: -@state_type: -@y1: -@y2: -@x: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@points: -@npoints: -@fill: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@arrow_type: -@fill: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@x: -@y: -@string: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: -@gap_side: -@gap_x: -@gap_width: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: -@gap_side: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: -@orientation: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@arrow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: -@gap_side: -@gap_x: -@gap_width: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: -@orientation: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@arrow_type: -@fill: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: -@gap_side: -@gap_x: -@gap_width: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: -@gap_side: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: -@orientation: - - - - - - - -@style: -@window: -@state_type: -@area: -@widget: -@detail: -@x1: -@x2: -@y: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@points: -@npoints: -@fill: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@arrow_type: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: -@gap_side: -@gap_x: -@gap_width: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: -@orientation: - - - - - - - -@style: -@window: -@state_type: -@area: -@widget: -@detail: -@x: -@y: -@string: - - - - - - - -@style: -@window: -@state_type: -@shadow_type: -@area: -@widget: -@detail: -@x: -@y: -@width: -@height: - - - - - - - -@style: -@window: -@state_type: -@area: -@widget: -@detail: -@y1: -@y2: -@x: - - diff --git a/docs/reference/gtk/tmpl/gtktable.sgml b/docs/reference/gtk/tmpl/gtktable.sgml deleted file mode 100644 index 74fe50b426..0000000000 --- a/docs/reference/gtk/tmpl/gtktable.sgml +++ /dev/null @@ -1,228 +0,0 @@ - -GtkTable - - -Pack widgets in regular patterns. - - - -The GtkTable functions allow the programmer to arrange widgets in rows and -columns, making it easy to align many widgets next to each other, -horizontally and vertically. - - -Tables are created with a call to gtk_table_new(), the size of which can -later be changed with gtk_table_resize(). - - -Widgets can be added to a table using gtk_table_attach() or the more -convenient (but slightly less flexible) gtk_table_attach_defaults(). - - -To alter the space next to a specific row, use gtk_table_set_row_spacing(), -and for a column, gtk_table_set_col_spacing(). - -The gaps between all rows or columns can be changed by calling -gtk_table_set_row_spacings() or gtk_table_set_col_spacings() respectively. - - -gtk_table_set_homogeneous(), can be used to set whether all cells in the -table will resize themselves to the size of the largest widget in the table. - - - - - - -#GtkVBox -For packing widgets vertically only. - - -#GtkHBox -For packing widgets horizontally only. - - - - - - -The GtkTable structure holds the data for the actual table itself. - -children is a #GList of all the widgets the table contains. rows and columns are pointers to #GtkTableRowCol structures, which contain the default spacing and expansion details for the #GtkTable's rows and columns, respectively. - - -nrows and ncols are 16bit integers storing the number of rows and columns the table has. - - - - - -The widget field is a pointer to the widget that -this %GtkTableChild structure is keeping track of. -The left_attach, -right_attach, -top_attach, and -bottom_attach fields specify the row and column -numbers which make up the invisible rectangle that the child widget is packed into. - - -xpadding and ypadding -specify the space between this widget and the surrounding table cells. - - -@widget: -@left_attach: -@right_attach: -@top_attach: -@bottom_attach: -@xpadding: -@ypadding: -@xexpand: -@yexpand: -@xshrink: -@yshrink: -@xfill: -@yfill: - - - -These fields should be considered read-only and not be modified directly. - - -@requisition: -@allocation: -@spacing: -@need_expand: -@need_shrink: -@expand: -@shrink: -@empty: - - - -Used to create a new table widget. An initial size must be given by specifying how many rows and columns the table should have, although this can be changed later with gtk_table_resize(). - - -@rows: The number of rows the new table should have. -@columns: The number of columns the new table should have. -@homogeneous: If set to TRUE, all table cells are resized to the size of the cell -containing the largest widget. -@Returns: A pointer to the the newly created table widget. - - - - -If you need to change a table's size after it has been created, this function allows you to do so. - - -@table: The #GtkTable you wish to change the size of. -@rows: The new number of rows. -@columns: The new number of columns. - - - - -Adds a widget to a table. The number of 'cells' that a widget will occupy is -specified by @left_attach, @right_attach, @top_attach and @bottom_attach. -These each represent the leftmost, rightmost, uppermost and lowest column -and row numbers of the table. (Columns and rows are indexed from zero). - - -@table: The #GtkTable to add a new widget to. -@child: The widget to add. -@left_attach: the column number to attach the left side of a child widget to. -@right_attach: the column number to attach the right side of a child widget to. -@top_attach: the row number to attach the left side of a child widget to. -@bottom_attach: the column number to attach the right side of a child widget to. -@xoptions: Used to specify the properties of the child widget when the table is resized. -@yoptions: The same as xoptions, except this field determines behaviour of vertical resizing. -@xpadding: An integer value specifying the padding on the left and right of the widget being added to the table. -@ypadding: The amount of padding above and below the child widget. - - - - -As there are many options associated with gtk_table_attach(), this convenience function provides the programmer with a means to add children to a table with identical padding and expansion options. - - -@table: The table to add a new child widget to. -@widget: The child widget to add. -@left_attach: The column number to attach the left side of the child widget to. -@right_attach: The column number to attach the right side of the child widget to. -@top_attach: The row number to attach the top of the child widget to. -@bottom_attach: The row number to attach the bottom of the child widget to. - - - - -changes the space between a given table row and its surrounding rows. - - -@table: a #GtkTable containing the row whose properties you wish to change. -@row: row number whose spacing will be changed. -@spacing: number of pixels that the spacing should take up. - - - - -alters the amount of space between a given table column and the adjacent columns. - - -@table: a #GtkTable. -@column: the column whose spacing should be changed. -@spacing: number of pixels that the spacing should take up. - - - - -sets the space between every row in @table equal to @spacing. - - -@table: a #GtkTable. -@spacing: the number of pixels of space to place between every row in the table. - - - - -sets the space between every column in @table equal to @spacing. - - -@table: a #GtkTable. -@spacing: the number of pixels of space to place between every column in the table. - - - - -changes the homogenous property of table cells. Ie. whether all cells are an equal size or not. - - -@table: The GtkTable you wish to set the homogeneous properties of. -@homogeneous: Set to TRUE to ensure all table cells are the same size. Set -to FALSE if this is not your desired behaviour. - - - - -set or retrieve the number of rows in a table. - - - - -set or retrieve the number of columnsin a table. - - - - -set or retrieve the number of pixels of space between each row. - - - - -set or retrieve the number of pixels of space between each column. - - - - -whether each cell in the table should be the same size or not. - - diff --git a/docs/reference/gtk/tmpl/gtktearoffmenuitem.sgml b/docs/reference/gtk/tmpl/gtktearoffmenuitem.sgml deleted file mode 100644 index b155db59cc..0000000000 --- a/docs/reference/gtk/tmpl/gtktearoffmenuitem.sgml +++ /dev/null @@ -1,53 +0,0 @@ - -GtkTearoffMenuItem - - -a menu item used to tear off and reattach its menu. - - - -a #GtkTearoffMenuItem is a special #GtkMenuItem which is used to -tear off and reattach its menu. - - - -When its menu is shown normally, the #GtkTearoffMenuItem is drawn as a -dotted line indicating that the menu can be torn off. Activating it -causes its menu to be torn off and displayed in its own window -as a tearoff menu. - - - -When its menu is shown as a tearoff menu, the #GtkTearoffMenuItem is drawn -as a dotted line which has a left pointing arrow graphic indicating that -the tearoff menu can be reattached. Activating it will erase the tearoff -menu window. - - - - - - - -#GtkMenu -for further discussion of menus in GTK. - - - - - - - -The #GtkTearoffMenuItem-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkTearoffMenuItem. - - -@Returns: a new #GtkTearoffMenuItem. - - diff --git a/docs/reference/gtk/tmpl/gtktext.sgml b/docs/reference/gtk/tmpl/gtktext.sgml deleted file mode 100644 index 968a3e2864..0000000000 --- a/docs/reference/gtk/tmpl/gtktext.sgml +++ /dev/null @@ -1,239 +0,0 @@ - -GtkText - - -text widget which allows display and manipulation of arbitrary text - - - -A #GtkText widget allows one to display any given text and manipulate it -by deleting from one point to another, selecting a region, and various -other functions as outlined below. It is inherited from #GtkEditable. - - - - - - - - - -Most of the #GtkText-struct struct members should not be accessed directly. -Listed below are a few exceptions and how to use them. - - - - - - -GtkAdjustment *hadj; -Allows you to see the state of an attached horizontal #GtkScrollbar. -See #GtkAdjustment for more info. This allows easy access to the adjustments -of the #GtkText struct without having to keep track of ones that you initialize -at widget creation. - - - -GtkAdjustment *vadj; -Same as hadj except it involves the vertical #GtkScrollbar. - - - - - - - - - -Internal #GtkText data type. - - - - - - -Internal #GtkText data type. Should not be access directly. - - - -@property: -@offset: -@index: - - - -Creates a new #GtkText widget, initialized with the given pointers to -#GtkAdjustments. These pointers can be used to track the viewing position -of the #GtkText widget. Passing NULL to either or both of them will make -the #GtkText create it's own. You can set these later with the function -gtk_text_set_adjustment() - - -@hadj: horizontal adjustment. -@vadj: vertical adjustment. -@Returns: the new #GtkText widget. - - - - -Set whether the #GtkText widget can be edited by the user or not. This -still allows you the programmer to make changes with the various #GtkText -functions. - - -@text: the #GtkText widget -@editable: %TRUE makes it editable, %FALSE makes it immutable by the user - - - - -Sets whether the #GtkText widget wraps words down to the next line if it -can't be completed on the current line. - - -@text: the #GtkText widget -@word_wrap: %TRUE makes it word wrap, %FALSE disables word wrapping - - - - -Controls how #GtkText handles long lines of continuous text. If line wrap -is on, the line is broken when it reaches the extent of the #GtkText widget -viewing area and the rest is displayed on the next line. If it is not set, -the line continues regardless size of current viewing area. Similar to word -wrap but it disregards word boundaries. - - -@text: the #GtkText widget -@line_wrap: %TRUE turns line wrap on, %FALSE turns it off - - - - -Allows you to set #GtkAdjustment pointers which in turn allows you to -keep track of the viewing position of the #GtkText widget. - - -@text: the #GtkText widget -@hadj: the horizontal adjustment -@vadj: the vertical adjustment - - - - -Sets the cursor at the given point. In this case a point constitutes -the number of characters from the extreme upper left corner of the #GtkText -widget. - - -@text: the #GtkText widget -@index: the number of characters from the upper left corner - - - - -Gets the current position of the cursor as the number of characters from -the upper left corner of the #GtkText widget. - - -@text: the #GtkText widget -@Returns: the number of characters from the upper left corner - - - - -Returns the length of the all the text contained within the #GtkText widget; -disregards current point position. - - -@text: the #GtkText widget -@Returns: the length of the text - - - - -Freezes the #GtkText widget which disallows redrawing of the widget until -it is thawed. This is useful if a large number of changes are going to -made to the text within the widget, reducing the amount of flicker seen -by the user. - - -@text: the #GtkText widget - - - - -Allows the #GtkText widget to be redrawn again by GTK. - - -@text: the #GtkText widget - - - - -Inserts given text into the #GtkText widget with the given properties as -outlined below. - - -@text: the #GtkText widget -@font: the #GdkFont to use -@fore: the foreground color to insert with -@back: the background color to insert with -@chars: the actual text to be inserted -@length: the length of the text to be inserted, passing -1 makes it insert -all the text. - - - - -Deletes from the current point position backward the given number of -characters. - - -@text: the #GtkText widget -@nchars: the number of characters to delete -@Returns: %TRUE if the operation was successful, otherwise returns %FALSE - - - - -Deletes from the current point position forward the given number of -characters. - - -@text: the #GtkText widget -@nchars: the number of characters to delete -@Returns: %TRUE if the operation was successful, otherwise returns %FALSE - - - - -Returns the character at the given index within the #GtkText widget. - - -@t: the #GtkText widget -@index: the number of characters from the upper left corner - - - - -Used by the #GtkText widget to keep track of the size of it's horizontal -text. - - - - -Used by the #GtkText widget to keep track of the size of it's vertical -text. - - - - -Boolean value indicating whether line wrap is enabled or not. - - - - -Boolean value indicated whether word wrap is enabled or not. - - diff --git a/docs/reference/gtk/tmpl/gtkthemes.sgml b/docs/reference/gtk/tmpl/gtkthemes.sgml deleted file mode 100644 index 7dd4163a76..0000000000 --- a/docs/reference/gtk/tmpl/gtkthemes.sgml +++ /dev/null @@ -1,73 +0,0 @@ - -Themes - - - - - - - - - - - - - - - - - - - -@parse_rc_style: -@merge_rc_style: -@rc_style_to_style: -@duplicate_style: -@realize_style: -@unrealize_style: -@destroy_rc_style: -@destroy_style: -@set_background: - - - - - - -@name: -@Returns: - - - - - - - -@engine: - - - - - - - -@engine: - - - - - - - -@argc: -@argv: - - - - - - - -@error_code: - - diff --git a/docs/reference/gtk/tmpl/gtktipsquery.sgml b/docs/reference/gtk/tmpl/gtktipsquery.sgml deleted file mode 100644 index 7f7949a1db..0000000000 --- a/docs/reference/gtk/tmpl/gtktipsquery.sgml +++ /dev/null @@ -1,160 +0,0 @@ - -GtkTipsQuery - - -displays help about widgets in the user interface. - - - -The #GtkTipsQuery widget is a subclass of #GtkLabel which is used to display -help about widgets in a user interface. - - -A query is started with a call to gtk_tips_query_start_query(), usually -when some kind of 'Help' button is pressed. The #GtkTipsQuery then grabs all -events, stopping the user interface from functioning normally. -Then as the user moves the mouse over the widgets, the #GtkTipsQuery displays -each widget's tooltip text. - - -By connecting to the "widget-entered" or "widget-selected" signals, it is -possible to customize the #GtkTipsQuery to perform other actions when widgets -are entered or selected. For example, a help browser could be opened with -documentation on the widget selected. - - -At some point a call to gtk_tips_query_stop_query() must be made in order to -stop the query and return the interface to its normal state. -The gtk_tips_query_set_caller() function can be used to specify a widget -which the user can select to stop the query (often the same button used to -start the query). - - - - - - -#GtkTooltips -the object which handles tooltips. - - - - - - -The #GtkTipsQuery-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkTipsQuery. - - -@Returns: a new #GtkTipsQuery. - - - - -Starts a query. -The #GtkTipsQuery widget will take control of the mouse and as the mouse -moves it will display the tooltip of the widget beneath the mouse. - - -@tips_query: a #GtkTipsQuery. - - - - -Stops a query. - - -@tips_query: a #GtkTipsQuery. - - - - -Sets the widget which initiates the query, usually a button. -If the @caller is selected while the query is running, the query is -automatically stopped. - - -@tips_query: a #GtkTipsQuery. -@caller: the widget which initiates the query. - - - - -Sets the text to display when the query is not in effect, -and the text to display when the query is in effect but the widget beneath -the pointer has no tooltip. - - -@tips_query: a #GtkTipsQuery. -@label_inactive: the text to display when the query is not running. -@label_no_tip: the text to display when the query is running but the widget -beneath the pointer has no tooltip. - - - - -Emitted when the query is started. - - -@tipsquery: the object which received the signal. - - - -Emitted when the query is stopped. - - -@tipsquery: the object which received the signal. - - - -Emitted when a widget is entered by the pointer while the query is in effect. - - -@tipsquery: the object which received the signal. -@widget: the widget that was entered by the pointer. -@tip_text: the widget's tooltip. -@tip_private: the widget's private tooltip (see gtk_tooltips_set_tip()). - - - -Emitted when a widget is selected during a query. - - -@tipsquery: the object which received the signal. -@widget: the widget that was selected. -@tip_text: the widget's tooltip. -@tip_private: the widget's private tooltip (see gtk_tooltips_set_tip()). -@event: the button press or button release event. -@Returns: TRUE if the query should be stopped. - - - -TRUE if the widget-entered and widget-selected signals are emitted even when -the widget has no tooltip set. - - - - -The widget that starts the tips query, usually a button. -If it is selected while the query is in effect the query is automatically -stopped. - - - - -The text to display in the #GtkTipsQuery widget when the query is not in -effect. - - - - -The text to display in the #GtkTipsQuery widget when the query is running -and the widget that the pointer is over has no tooltip. - - diff --git a/docs/reference/gtk/tmpl/gtktogglebutton.sgml b/docs/reference/gtk/tmpl/gtktogglebutton.sgml deleted file mode 100644 index 83dd4acbb1..0000000000 --- a/docs/reference/gtk/tmpl/gtktogglebutton.sgml +++ /dev/null @@ -1,162 +0,0 @@ - -GtkToggleButton - - -create buttons which retain their state. - - - -A #GtkToggleButton is a #GtkButton which will remain 'pressed-in' when -clicked. Clicking again will cause the toggle button to return to it's -normal state. - - -A toggle button is created by calling either gtk_toggle_button_new() or -gtk_toggle_button_new_with_label(). If using the former, it is advisable to -pack a widget, (such as a #GtkLabel and/or a #GtkPixmap), into the toggle -button's container. (See #GtkButton for more information). - - -The state of a #GtkToggleButton can be set specifically using -gtk_toggle_button_set_active(), and retrieved using -gtk_toggle_button_get_active(). - - -To simply switch the state of a toggle button, use gtk_toggle_button_toggled. - - -Creating two #GtkToggleButton widgets. - - -void make_toggles(void) { - GtkWidget *dialog, *toggle1, *toggle2; - - dialog = gtk_dialog_new(); - toggle1 = gtk_toggle_button_new_with_label("Hi, i'm a toggle button."); - - /* Makes this toggle button invisible */ - gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (toggle1), TRUE); - - gtk_signal_connect (GTK_OBJECT (toggle1), "toggled", - GTK_SIGNAL_FUNC (output_state), NULL); - gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), - toggle1, FALSE, FALSE, 2); - - toggle2 = gtk_toggle_button_new_with_label("Hi, i'm another toggle button."); - gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (toggle2), FALSE); - gtk_signal_connect (GTK_OBJECT (toggle2), "toggled", - GTK_SIGNAL_FUNC (output_state), NULL); - gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), - toggle2, FALSE, FALSE, 2); - - gtk_widget_show_all (dialog); -} - - - - - - - - -#GtkButton -a more general button. - - -#GtkCheckButton -another way of presenting a toggle option. - - -#GtkCheckMenuItem -a #GtkToggleButton as a menu item. - - - - - - -The #GtkToggleButton struct contains private data only, and should be manipulated using the functions below. - - - - - -Creates a new toggle button. A widget should be packed into the button, as in gtk_button_new(). - - -@Returns: a new toggle button. - - - - -Creates a new toggle button with a text label. - - -@label: a string containing the message to be placed in the toggle button. -@Returns: a new toggle button. - - - - -Determines whether or not the toggle button is drawn on screen. The default mode is FALSE, which results in the button being displayed. To make the button invisible, set draw_indicator to TRUE. - - -@toggle_button: a #GtkToggleButton. -@draw_indicator: TRUE or FALSE. - - - - -This is a deprecated macro, and is only maintained for compatability reasons. - - - - - - -Changes the state of the toggle button. - - -@toggle_button: a #GtkToggleButton. - - - - -Queries a #GtkToggleButton and returns it's current state. Returns TRUE if -the toggle button is pressed in and FALSE if it is raised. - - -@toggle_button: a #GtkToggleButton. -@Returns: a #gboolean value. - - - - -Sets the status of the toggle button. Set to TRUE if you want the -GtkToggleButton to be 'pressed in', and FALSE to raise it. -This action causes the toggled signal to be emitted. - - -@toggle_button: a #GtkToggleButton. -@is_active: TRUE or FALSE. - - - - -Should be connected if you wish to perform an action whenever the -#GtkToggleButton's state is changed. - - -@togglebutton: the object which received the signal. - - - -Sets whether the toggle button should be pressed in or not. - - - - -A value of TRUE causes the toggle button to be invisible. FALSE displays it -again. - - diff --git a/docs/reference/gtk/tmpl/gtktoolbar.sgml b/docs/reference/gtk/tmpl/gtktoolbar.sgml deleted file mode 100644 index 3ed9166ad8..0000000000 --- a/docs/reference/gtk/tmpl/gtktoolbar.sgml +++ /dev/null @@ -1,321 +0,0 @@ - -GtkToolbar - - -create bars of buttons and other widgets. - - - -A toolbar is created with a call to gtk_toolbar_new(). - - -Buttons with text and/or images are added with gtk_toolbar_append_item(), gtk_toolbar_prepend_item(), and gtk_toolbar_insert_item(). - - -Any of #GtkToggleButton, #GtkRadioButton, or an arbitrary widget can be added to the toolbar with gtk_toolbar_append_element(), gtk_toolbar_prepend_element(), and gtk_toolbar_insert_element(). - - -Widgets can be visibily grouped by adding gaps between widgets using gtk_toolbar_append_space(), gtk_toolbar_prepend_space, and gtk_toolbar_insert_space(). - - - - - - -#GtkToolTips -Change the properties of a #GtkToolbar's #GtkTooltips. - - -#GtkTipsQuery -Make use of the private tips of toolbar elements. - - - - - - -num_children is an integer specifying how many toolbar items the #GtkToolbar contains. children is a #GList of the child widgets of the toolbar. - - -orientation - - - - - -is used to set the type of new elements that are added to a #GtkToolbar. - - -SPACE is just a space in the style of the toolbar's GtkToolbarSpaceStyle. BUTTON denotes a #GtkButton. TOGGLEBUTTON denotes a #GtkToggleButton, RADIOBUTTON denotes a #GtkRadioButton, and WIDGET denotes a standard #GtkWidget. - - -@GTK_TOOLBAR_CHILD_SPACE: -@GTK_TOOLBAR_CHILD_BUTTON: -@GTK_TOOLBAR_CHILD_TOGGLEBUTTON: -@GTK_TOOLBAR_CHILD_RADIOBUTTON: -@GTK_TOOLBAR_CHILD_WIDGET: - - - - - - -@GTK_TOOLBAR_SPACE_EMPTY: -@GTK_TOOLBAR_SPACE_LINE: - - - - - - -@type: -@widget: -@icon: -@label: - - - -creates a new toolbar. - - -@orientation: a #GtkOrientation. It determines whether the toolbar appears horizontally or vertically. -@style: a #GtkToolbarStyle. It determines if the toolbar will contain buttons with just labels, just images, or both. -@Returns: the newly created toolbar. - - - - -adds a new button to the beginning (left or top edges) of the given toolbar. - - -@toolbar: a #GtkToolbar. -@text: give your toolbar button a label. -@tooltip_text: a string that appears when the user holds the mouse over this item. -@tooltip_private_text: use with #GtkTipsQuery. -@icon: a #GtkWidget that should be used as the button's icon. -@callback: the function to be executed when the button is pressed. -@user_data: a pointer to any data you wish to be passed to the callback. -@Returns: the new toolbar item as a #GtkWidget. - - - - -adds a new button to the beginning of the given toolbar. - - -@toolbar: a #GtkToolbar. -@text: give your toolbar button a label. -@tooltip_text: a string that appears when the user holds the mouse over this item. -@tooltip_private_text: use with #GtkTipsQuery. -@icon: a #GtkWidget that should be used as the button's icon. -@callback: the function to be executed when the button is pressed. -@user_data: a pointer to any data you wish to be passed to the callback. -@Returns: the new toolbar item as a #GtkWidget. - - - - -inserts a new item into the toolbar. You must specify the position in the toolbar where it will be inserted. - - -@toolbar: a #GtkToolbar. -@text: give your toolbar button a label. -@tooltip_text: a string that appears when the user holds the mouse over this item. -@tooltip_private_text: use with #GtkTipsQuery. -@icon: a #GtkWidget that should be used as the button's icon. -@callback: the function to be executed when the button is pressed. -@user_data: a pointer to any data you wish to be passed to the callback. -@position: the number of widgets to insert this item after. -@Returns: the new toolbar item as a #GtkWidget. - - - - -adds a new space to the end of the toolbar. - - -@toolbar: a #GtkToolbar. - - - - -adds a new space to the beginning of the toolbar. - - -@toolbar: a #GtkToolbar. - - - - -inserts a new space in the toolbar at the specified position. - - -@toolbar: a #GtkToolbar -@position: the number of widgets after which a space should be inserted. - - - - -adds a new element to the end of a toolbar. - - -@toolbar: a #GtkToolbar. -@type: a value of type #GtkToolbarChildType that determines what @widget will be. -@widget: a #GtkWidget to add to the toolbar. (FIXME: double check this). -@text: the element's label. -@tooltip_text: the element's tooltip. -@tooltip_private_text: used for context-sensitive help about this toolbar element. -@icon: a #GtkWidget that provides pictorial representation of the element's function. -@callback: the function to be executed when the button is pressed. -@user_data: any data you wish to pass to the callback. -@Returns: the new toolbar element as a #GtkWidget. - - - - -adds a new element to the beginning of a toolbar. - - -@toolbar: a #GtkToolbar. -@type: a value of type #GtkToolbarChildType that determines what @widget will be. -@widget: a #GtkWidget to add to the toolbar. (FIXME: double check this). -@text: the element's label. -@tooltip_text: the element's tooltip. -@tooltip_private_text: used for context-sensitive help about this toolbar element. -@icon: a #GtkWidget that provides pictorial representation of the element's function. -@callback: the function to be executed when the button is pressed. -@user_data: any data you wish to pass to the callback. -@Returns: the new toolbar element as a #GtkWidget. - - - - - - - -@toolbar: a #GtkToolbar. -@type: a value of type #GtkToolbarChildType that determines what @widget will be. -@widget: a #GtkWidget to add to the toolbar. (FIXME: double check this). -@text: the element's label. -@tooltip_text: the element's tooltip. -@tooltip_private_text: used for context-sensitive help about this toolbar element. -@icon: a #GtkWidget that provides pictorial representation of the element's function. -@callback: the function to be executed when the button is pressed. -@user_data: any data you wish to pass to the callback. -@position: the number of widgets to insert this element after. -@Returns: the new toolbar element as a #GtkWidget. - - - - - - - -@toolbar: -@widget: -@tooltip_text: -@tooltip_private_text: - - - - - - - -@toolbar: -@widget: -@tooltip_text: -@tooltip_private_text: - - - - - - - -@toolbar: -@widget: -@tooltip_text: -@tooltip_private_text: -@position: - - - - -sets whether a toolbar should appear horizontally or vertically. - - -@toolbar: a #GtkToolbar. -@orientation: a new #GtkOrientation. - - - - -alters the view of @toolbar to display either icons only, text only, or both. - - -@toolbar: a #GtkToolbar. -@style: the new style for @toolbar. - - - - -should be used to set the number of pixels each item of space takes up in a toolbar. - - -@toolbar: a #GtkToolbar. -@space_size: the new number of pixels that spaces should consume. - - - - -sets whether a 'space' in the toolbar appears as a line or just plain empty space. - - -@toolbar: a #GtkToolbar. -@space_style: the new style for the toolbar's spaces. - - - - -sets if the tooltips of a toolbar should be active or not. - - -@toolbar: a #GtkToolbar. -@enable: set to 0 to disable the tooltips, or 1 to enable them. - - - - - - - -@toolbar: -@relief: - - - - - - - -@toolbar: -@Returns: - - - - -should be used if you wish to perform an action when the orientation of a toolbar is changed. - - -@toolbar: the object which received the signal. -@orientation: the new #GtkOrientation of the toolbar. - - - -should be used if you wish to perform an action when ever the style of a toolbar is adjusted. For example, this would be a useful signal to connect to if you want to display more items on the toolbar when it is in icon-only mode; each item takes less space on the bar. - - -@toolbar: the object which received the signal. -@style: the new #GtkToolbarStyle of @toolbar. - diff --git a/docs/reference/gtk/tmpl/gtktooltips.sgml b/docs/reference/gtk/tmpl/gtktooltips.sgml deleted file mode 100644 index b6349b70b5..0000000000 --- a/docs/reference/gtk/tmpl/gtktooltips.sgml +++ /dev/null @@ -1,176 +0,0 @@ - -GtkTooltips - - -Add tips to your widgets. - - - -Tooltips are the messages that appear next to a widget when the mouse pointer is held over it for a short amount of time. They are especially helpful for adding more verbose descriptions of things such as buttons in a toolbar. - - -An individual tooltip belongs to a group of tooltips. A group is created with a call to gtk_tooltips_new(). Every tooltip in the group can then be turned off with a call to gtk_tooltips_disable() and enabled with gtk_tooltips_enable(). - - -The length of time the user must keep the mouse over a widget before the tip is shown, can be altered with gtk_tooltips_set_delay(). This is set on a 'per group of tooltips' basis. - - -To assign a tip to a particular #GtkWidget, gtk_tooltips_set_tip() is used. - - - -Tooltips can only be set on widgets which have their own X window. -To check if a widget has its own window use 'GTK_WIDGET_NO_WINDOW (widget)'. -To add a tooltip to a widget that doesn't have its own window, place the -widget inside a #GtkEventBox and add a tooltip to that instead. - - - -The default appearance of all tooltips in a program is determined by the current gtk theme that the user has selected. - - -Information about the tooltip (if any) associated with an arbitrary widget can be retrieved using gtk_tooltips_data_get(). - - - -Adding tooltips to buttons. - - GtkWidget *load_button, *save_button, *hbox; - GtkTooltips *button_bar_tips; - - button_bar_tips = gtk_tooltips_new(); - - /* Create the buttons and pack them into a #GtkHBox */ - hbox = gtk_hbox_new(TRUE, 2); - - load_button = gtk_button_new_with_label("Load a file"); - gtk_box_pack_start(GTK_BOX (hbox), load_button, TRUE, TRUE, 2); - gtk_widget_show(load_button); - - save_button = gtk_button_new_with_label("Save a file"); - gtk_box_pack_start(GTK_BOX (hbox), save_button, TRUE, TRUE, 2); - gtk_widget_show(save_button); - gtk_widget_show(hbox); - - /* Add the tips */ - gtk_tooltips_set_tip(GTK_TOOLTIPS (button_bar_tips), load_button, - "Load a new document into this window", - "Requests the filename of a document. - This will then be loaded into the current - window, replacing the contents of whatever - is already loaded."); - gtk_tooltips_set_tip(GTK_TOOLTIPS (button_bar_tips), save_button, - "Saves the current document to a file", - "If you have saved the document previously, - then the new version will be saved over the - old one. Otherwise, you will be prompted for - a filename."); - - - - - - - -#GtkToolbar -Create groups of widgets with their own tooltips. - - -#GtkTipsQuery -Query tooltips to create context-sensitive help. - - - - - -Holds information about a group of tooltips. Fields should be changed using the functions provided, rather than directly accessing the struct's members. - - - - - -tooltips is the #GtkTooltips group that this tooltip belongs to. widget is the #GtkWidget that this tooltip data is associated with. tip_text is a string containing the tooltip message itself. - -tip_private is a string that is not shown as the default tooltip. Instead, this message may be more informative and go towards forming a context-sensitive help system for your application. (FIXME: how to actually "switch on" private tips?) - - -@tooltips: -@widget: -@tip_text: -@tip_private: -@font: -@width: -@row: - - - -Creates an empty group of tooltips. This function initialises a #GtkTooltips structure. Without at least one such structure, you can not add tips to your application. - - -@Returns: a new #GtkTooltips group for you to use. - - - - -Allows the user to see your tooltips as they navigate your application. - - -@tooltips: a #GtkTooltips. - - - - -Causes all tooltips in @tooltips to become inactive. Any widgets that have tips associated with that group will no longer display their tips until they are enabled again with gtk_tooltips_enable(). - - -@tooltips: a #GtkTooltips. - - - - -Sets the time between the user moving the mouse over a widget and the widget's tooltip appearing. - - -@tooltips: a #GtkTooltips. -@delay: an integer value representing seconds (FIXME: double-check this). - - - - -Adds a tooltip containing the message @tip_text to the specified #GtkWidget. - - -@tooltips: a #GtkTooltips. -@widget: the #GtkWidget you wish to associate the tip with. -@tip_text: a string containing the tip itself. -@tip_private: a string of any further information that may be useful if the user gets stuck. - - - - -This function is unimplemented because tooltip colors are instead -determined by the theme. - - -@tooltips: a #GtkTooltip -@background: a #GdkColor that your tooltip text will be shown in. -@foreground: a #GdkColor that your tooltip backgrounds will be shown in. - - - - -Retrieves any #GtkTooltipsData previously associated with the given widget. - - -@widget: a #GtkWidget. -@Returns: a #GtkTooltipsData struct, or NULL if the widget has no tooltip. - - - - -Soon as I play with this, I'll report what it does. - - -@tooltips: - - diff --git a/docs/reference/gtk/tmpl/gtktree.sgml b/docs/reference/gtk/tmpl/gtktree.sgml deleted file mode 100644 index b42794aec5..0000000000 --- a/docs/reference/gtk/tmpl/gtktree.sgml +++ /dev/null @@ -1,296 +0,0 @@ - -GtkTree - - -A treelist widget. - - - -The #GtkTree widget is a container that shows users a list of items, in a tree format complete with branches and leafnodes. Branches can be expanded to show their child items, or collapsed to hide them. - - - - -#GtkTreeList for the items to put into a #GtkTree. - - -#GtkScrolledWindow for details on how to scroll around a #GtkTree. - - - - - -struct _GtkTree -{ - GtkContainer container; - GList *children; - GtkTree* root_tree; /* owner of selection list */ - GtkWidget* tree_owner; - GList *selection; - guint level; - guint indent_value; - guint current_indent; - guint selection_mode : 2; - guint view_mode : 1; - guint view_line : 1; -}; - - - - - - -A macro that returns a boolean value which indicates if @obj is a root tree or not. - - -@obj: A pointer to the #GtkTree. @obj will accept any pointer, but if the pointer does not point to a #GtkTree, the results are undefined. - - - - -A macro that returns the root tree of @obj. - - -If @obj is already a root tree, @obj is cast to #GtkTree and returned. - - -@obj: A pointer to the #GtkTree. @obj will accept any pointer, but if the pointer does not point to a #GtkTree, the results are undefined. - - - - -A macro that returns a GList that contains the selection of the root tree of @obj. - - -@obj: A pointer to the #GtkTree. @obj will accept any pointer, but it the pointer does not point to a #GtkTree, the results are undefined. - - - - - - - -@GTK_TREE_VIEW_LINE: -@GTK_TREE_VIEW_ITEM: - - - -Creates a new #GtkTree. - - -@Returns: A pointer to the newly allocated widget. - - - - -Adds the #GtkTreeItem in @tree_item to the end of the items in @tree. - - -@tree: A pointer to a #GtkTree. -@tree_item: A pointer to the #GtkWidget that is to be appended to the tree. - - - - -Adds the #GtkTreeItem in @tree_item to the start of the items in @tree. - - -@tree: A pointer to a #GtkTree. -@tree_item: A pointer to the #GtkWidget that is to be prepended to the tree. - - - - -Adds the #GtkTreeItem in @tree_item to the list of items in @tree at the position indicated by @position. - - -@tree: A pointer to a #GtkTree. -@tree_item: A pointer to the #GtkWidget that is to be added to the tree. -@position: A #gint that indicates the position in the tree, that the tree_item is to be added at. - - - - -Removes a list of items from the #GtkTree in @tree. - - -If only one item is to be removed from the #GtkTree, gtk_container_remove() can be used instead. - - -Removing an item from a #GtkTree dereferences the item, and thus usually destroys the item and any subtrees it may contain. If the item is not to be destroyed, use gtk_object_ref() before removing it. - - -@tree: A pointer to a #GtkTree. -@items: A pointer to a #GList that contains the items to be removed. - - - - -Removes the items at positions between @start and @end from the #GtkTree @tree. - - -Removing an item from a #GtkTree dereferences the item, and thus usually destroys the item and any subtrees it may contain. If the item is not to be destroyed, use gtk_object_ref() before removing it. - - -@tree: A pointer to a #GtkTree. -@start: A gint. -@end: A gint. - - - - -Emits the #select_item signal for the child at position @item, and thus selects it (unless it is unselected in a signal handler). - - -@tree: A pointer to a #GtkTree. -@item: A gint. - - - - -Emits the #unselect_item for the child at position @item, and thus unselects it. - - -@tree: A pointer to a #GtkTree. -@item: A gint. - - - - -Emits the #select_item signal for the child @tree_item, and thus selects it (unless it is unselected in a signal handler). - - -@tree: A pointer to a #GtkTree. -@tree_item: A pointer to the #GtkWidget that is to be selected. - - - - -Emits the #unselect_item signal for the child @tree_item, and thus unselects it. - - -@tree: A pointer to a #GtkTree. -@tree_item: A pointer to the #GtkWidget that is to be selected. - - - - -Returns the position of @child in the #GtkTree @tree. - - -If @child is not a child of @tree, then -1 is returned. - - -@tree: A pointer to a #GtkTree. -@child: A pointer to a #GtkWidget. -@Returns: A gint. - - - - -Sets the selection mode for the #GtkTree @tree. - - -@mode can be one of - - - - -%GTK_SELECTION_SINGLE for when only one item can be selected at a time. - - - - -%GTK_SELECTION_BROWSE for when one item must be selected. - - - - -%GTK_SELECTION_MULTIPLE for when many items can be selected at once. - - - - -%GTK_SELECTION_EXTENDED Reserved for later use. - - - - -The selection mode is only defined for a root tree, as the root tree "owns" the selection. - - -The default mode is %GTK_SELECTION_SINGLE. - - -@tree: A pointer to a #GtkTree. -@mode: A #GtkSelectionMode. - - - - -Sets the 'viewmode' for the #GtkTree in @tree. The 'viewmode' defines how the tree looks when an item is selected. - - -@mode can be one of: - - - - -%GTK_TREE_VIEW_LINE : When an item is selected the entire #GtkTreeItem is highlighted. - - - - -%GTK_TREE_VIEW_ITEM : When an item is selected only the selected item's child widget is highlighted. - - - - -The default mode is %GTK_TREE_VIEW_LINE. - - -@tree: A pointer to a #GtkTree. -@mode: A #GtkTreeViewMode. - - - - -Sets whether or not the connecting lines between branches and children are drawn. - - -@tree: A pointer to a #GtkTree. -@flag: A guint, indicating %TRUE, or %FALSE. - - - - -Removes the item @child from the #GtkTree @tree. - - -@tree: A pointer to a #GtkTree. -@child: A pointer to the #GtkWidget that is to be removed from the tree. - - - - -This signal is emitted by the root tree whenever the selection changes. - - -@tree: the object which received the signal. - - - -This signal is emitted by @tree whenever @widget is about to be selected. - - -@tree: the object which received the signal. -@widget: The child that is about to be selected. - - - -This signal is emitted by @tree whenever @widget is about to be unselected. - - -@tree: the object which received the signal. -@widget: The child that is about to be unselected. - diff --git a/docs/reference/gtk/tmpl/gtktreeitem.sgml b/docs/reference/gtk/tmpl/gtktreeitem.sgml deleted file mode 100644 index 8c39ed77fa..0000000000 --- a/docs/reference/gtk/tmpl/gtktreeitem.sgml +++ /dev/null @@ -1,110 +0,0 @@ - -GtkTreeItem - - - - - - - - - - - - - - - - - - - - - - - - - -@obj: - - - - - - - -@Returns: - - - - - - - -@label: -@Returns: - - - - - - - -@tree_item: -@subtree: - - - - - - - -@tree_item: - - - - - - - -@tree_item: - - - - - - - -@tree_item: - - - - - - - -@tree_item: - - - - - - - -@tree_item: - - - - - - - -@treeitem: the object which received the signal. - - - - - - -@treeitem: the object which received the signal. - diff --git a/docs/reference/gtk/tmpl/gtktypeutils.sgml b/docs/reference/gtk/tmpl/gtktypeutils.sgml deleted file mode 100644 index 792223a84f..0000000000 --- a/docs/reference/gtk/tmpl/gtktypeutils.sgml +++ /dev/null @@ -1,869 +0,0 @@ - -Types - - -Handle run-time type creation. - - - -Gtk's type system is extensible. Because of that, types have to be -managed at runtime. - - - - - - - - - -@GtkType is unique integer identifying the type. The guts of the -information about the type is held in a private struct named -GtkTypeNode. - - - - - -@GtkFundamentalType is an enumerated type which lists all the possible -fundamental types (e.g. char, uchar, int, long, float, etc). - - -@GTK_TYPE_INVALID: -@GTK_TYPE_NONE: -@GTK_TYPE_CHAR: -@GTK_TYPE_UCHAR: -@GTK_TYPE_BOOL: -@GTK_TYPE_INT: -@GTK_TYPE_UINT: -@GTK_TYPE_LONG: -@GTK_TYPE_ULONG: -@GTK_TYPE_FLOAT: -@GTK_TYPE_DOUBLE: -@GTK_TYPE_STRING: -@GTK_TYPE_ENUM: -@GTK_TYPE_FLAGS: -@GTK_TYPE_BOXED: -@GTK_TYPE_POINTER: -@GTK_TYPE_SIGNAL: -@GTK_TYPE_ARGS: -@GTK_TYPE_CALLBACK: -@GTK_TYPE_C_CALLBACK: -@GTK_TYPE_FOREIGN: -@GTK_TYPE_OBJECT: - - - -No idea. - - - - - - -The first "flat" (no struct) enumerated type value. - - - - - - -The last "flat" (no struct) enumerated type value. - - - - - - -The first structured enumerated type value. - - - - - - -The last structured enumerated type value. - - - - - - -The highest-numbered structured or flat enumerated type value. - - - - - - -The highest maximum fundamental enumerated type value. - - - - - - -Use in place of offsetof(), which is used if it exists. - - -@struct: The type of the structure. -@field: The field within the structure. - - - - -Cast the object in @tobj into @cast. If GTK_NO_CHECK_CASTS is -defined, just cast it. Otherwise, check to see if we can cast @tobj -into a @cast. - - -@tobj: a pointer to a GtkObject. -@cast_type: a Gtk type. -@cast: a C type - - - - -Cast the object in @tobj into @cast. If GTK_NO_CHECK_CASTS is -defined, just cast it. Otherwise, check to see if we can cast @tobj -into a @cast. - - -@tclass: a pointer to a GtkClassInitFunc -@cast_type: a Gtk type. -@cast: a C type - - - - -Determines whether @type_object is a type of @otype. - - -@type_object: A GtkTypeObject object. -@otype: - - - - -Determines whether @type_class is a type of @otype. - - -@type_class: A GtkTypeClass class. -@otype: - - - - -Hide the name of gtk_identifier_get_type - - - - - - -Get the type of GtkIdentifier. - - -@Returns: GtkType -- the enumerated type of something. - - - - -Combine a fundemantal type and a sequence number to create a gtk type. - - -@parent_t: -@seqno: - - - - -Convert a gtk type into a fundamental type - - -@type: - - - - -Convert a gtk type into its sequence number - - -@type: - - - - -Just a macroized cast into a GtkSignalFunc - - -@f: - - - - -Define a function pointer. - - -@klass: a gpointer - - - - -Define a function pointer. - - -@object: a gpointer -@klass: a gpointer - - - - -Define a function pointer. - - - - - - -Define a function pointer. - - -@data: gpointer -@Returns: gint - - - - -Define a function pointer. - - -@data: gpointer - - - - -Define a function pointer. - - -@object: GtkObject* -@data: gpointer -@n_args: guint -@args: GtkArg* - - - - -Define a function pointer. - - -@object: GtkObject* -@func: GtkSignalFunc -@func_data: gpointer -@args: GtkArg* - - - - -Define a function pointer. Deprecated. - - -@object: -@arg: -@arg_id: - - - - -Define a function pointer. Deprecated. - - -@object: -@arg: -@arg_id: - - - - -A GtkTypeObject defines the minimum structure requirements -for type instances. Type instances returned from gtk_type_new () -and initialized through a GtkObjectInitFunc need to directly inherit -from this structure or at least copy its fields one by one. - - -@klass: - - - -This is a structure that we use to pass in typed values (and names). - - -@type: -@name: - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_CHAR - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_UCHAR - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_BOOL - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_INT - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_UINT - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_LONG - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_ULONG - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_FLOAT - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_DOUBLE - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_STRING - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_ENUM - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_FLAGS - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_BOXED - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_POINTER - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_OBJECT - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_SIGNAL - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_ARGS - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_CALLBACK - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_CALLBACK - - -@a: - - - - -Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_FOREIGN - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_CHAR - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_UCHAR - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_BOOL - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_INT - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_UINT - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_LONG - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_ULONG - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_FLOAT - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_DOUBLE - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_STRING - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_ENUM - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_FLAGS - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_BOXED - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_POINTER - - -@a: - - - - -If the GtkArg contains a pointer to the value, this macro will be a pointer to a GTK_TYPE_OBJECT - - -@a: - - - - -Holds information about the type. @gtk_type_name returns the name. -@object_size is somehow set to the number of bytes that an instance of -the object will occupy. @class_init_func holds the type's -initialization function. @object_init_func holds the initialization -function for an instance of the object. @reserved_1 is used for -GtkEnumValue to hold the enumerated values. - - -@type_name: -@object_size: -@class_size: -@class_init_func: -@object_init_func: -@reserved_1: -@reserved_2: -@base_class_init_func: - - - -A structure used to return values from @gtk_type_query. - - -@type: -@type_name: -@object_size: -@class_size: - - - -The base structure for a Gtk Type. Every type inherits this as a base structure. - - - - - -A structure which contains a single enum value, and its name, and it's -nickname. - - -@value: -@value_name: -@value_nick: - - - -Initialize the data structures associated with gtk types. - - - - - - -Create a new, unique type. - - -@parent_type: if zero, a fundamental type is created. -@type_info: must not be null, and @type_info->type_name must also not be null. -@Returns: the new GtkType. - - - - -Set the mem_chunk size so it will hold @n_chunks of the objects of that @type. - - -@type: There must be an unlocked TypeNode associated with this type otherwise nothing happens. -@n_chunks: - - - - - - -@type: a GtkType -@Returns: a pointer to the name of a type, or NULL if it has none. - - - - -Get the internal representation of a type given its name. - - -@name: the name of a gtk type -@Returns: a GtkType - - - - - - - -@type: a GtkType -@Returns: the GtkType of the parent - - - - -Return a gpointer pointing to the class of @type or NULL if there was -any trouble identifying @type. Initialize the class if necessary. - - -@type: a GtkType -@Returns: gpointer to the klass. - - - - -Return the class of the parent. Initialize the class if necessary. -Return NULL if anything goes wrong. - - -@type: GtkType -@Returns: gpointer to the klass. - - - - -Return the pointer to the type's children's types. - - -@type: GtkType -@Returns: pointer to a GList - - - - -Create a new object of a given type, and return a gpointer to it. -Returns NULL if you give it an invalid type. It allocates the object -out of the type's memory chunk if there is a memory chunk. The object -has all the proper initializers called. - - -@type: GtkType -@Returns: gpointer to a GtkTypeObject - - - - -Given the type of an object and a pointer to it, the object is freed. - - -@type: GtkType -@mem: gpointer to the object - - - - -Print the types @type inherits from. - - -@type: GtkType - - - - -Given a @type, describe all of its children, and their children. Only -show the size if @show_size is true. - - -@type: GtkType -@show_size: gboolean - - - - -Look in the type hierarchy to see if @type has @is_a_type among its -ancestors. Do so with a simple lookup, not a loop. - - -@type: GtkType -@is_a_type: GtkType -@Returns: - - - - -Given a pointer to a GtkTypeObject @type_object, and a GtkType @cast_type, -make sure that it's okay to cast @type_object into a @cast_type. - - -@type_object: GtkTypeObject* -@cast_type: GtkType -@Returns: the same GtkTypeObject* as @type_object - - - - -Given a GtkTypeClass pointer @klass, and a GtkType @cast_type, make -sure that it's okay to cast something of that @klass into a @cast_type. - - -@klass: GtkTypeClass* -@cast_type: GtkType -@Returns: Always return @klass. - - - - -Register a new set of enum @values and give them the name in -@type_name. - - -@type_name: must not be null. -@values: GtkEnumValue* -@Returns: - - - - -Register a new set of flags @values and give them the name in -@type_name. - - -@type_name: must not be null. -@values: GtkFlagValue* -@Returns: - - - - -If @enum_type has values, then return a pointer to all of them. - - -@enum_type: GtkType -@Returns: GtkEnumValue* - - - - -If @flags_type has values, then return a pointer to all of them. - - -@flags_type: -@Returns: GtkFlagValue* - - - - -Return a pointer to one of @enum_type's GtkEnumValues's whose name (or nickname) matches @value_name. - - -@enum_type: GtkType -@value_name: -@Returns: GtkEnumValue* - - - - -Return a pointer to one of @flag_type's GtkFlagValue's whose name (or nickname) matches @value_name. - - -@flag_type: GtkType -@value_name: -@Returns: GtkFlagValue* - - - - -Set the varargs type for a fundamental type @foreign_type. - - -@foreign_type: Must be a GtkType with a sequence number of zero. Must not be a -fundamental type. -@varargs_type: Must be a GtkType which is either structured or flag, or NONE. - - - - -Get the varargs type associated with @foreign_type - - -@foreign_type: GtkType -@Returns: GtkType - - - - -Given a type, return various interesting parameters of the type. - - -@type: GtkType -@Returns: GtkTypeQuery* - - diff --git a/docs/reference/gtk/tmpl/gtkvbbox.sgml b/docs/reference/gtk/tmpl/gtkvbbox.sgml deleted file mode 100644 index 1468ae50cb..0000000000 --- a/docs/reference/gtk/tmpl/gtkvbbox.sgml +++ /dev/null @@ -1,96 +0,0 @@ - -GtkVButtonBox - - -a container for arranging buttons vertically. - - - -A button box should be used to provide a consistent layout of buttons -throughout your application. There is one default layout and a default -spacing value that are persistant across all #VButtonBox widgets. - - -The layout/spacing can then be altered by the programmer, or if desired, by -the user to alter the 'feel' of a program to a small degree. - - -A #VButtonBox is created with gtk_vbutton_box_new(). Buttons are packed into -a button box the same way as any other box, using gtk_box_pack_start() or -gtk_box_pack_end(). - - -The default spacing between buttons can be set with -gtk_vbutton_box_set_spacing_default() and queried with -gtk_vbutton_box_get_spacing_default(). - - -The arrangement and layout of the buttons can be changed using -gtk_vbutton_box_set_layout_default() and queried with -gtk_vbutton_box_get_layout_default(). - - - - - - -#GtkBox -Used to pack widgets into button boxes. - -#GtkButtonBox -Provides functions for controlling button boxes. - - -#GtkHButtonBox -Pack buttons horizontally. - - - - - - - - - -@button_box: the #GtkButtonBox that this class is derived from. - - - -Creates a new vertical button box. - - -@Returns: a new button box #GtkWidget. - - - - -Retrieves the current default spacing for vertical button boxes. This is the number of pixels -to be placed between the buttons when they are arranged. - - -@Returns: the default number of pixels between buttons. - - - - -Changes the default spacing that is placed between widgets in an -vertical button box. - - -@spacing: an integer value. - - - - -Retrieves the current layout used to arrange buttons in button box widgets. - - -@Returns: the current #GtkButtonBoxStyle. - - - - -Sets a new layout mode that will be used by all button boxes. - - -@layout: a new #GtkButtonBoxStyle. diff --git a/docs/reference/gtk/tmpl/gtkvbox.sgml b/docs/reference/gtk/tmpl/gtkvbox.sgml deleted file mode 100644 index 5883016710..0000000000 --- a/docs/reference/gtk/tmpl/gtkvbox.sgml +++ /dev/null @@ -1,46 +0,0 @@ - -GtkVBox - - -vertical container box - - - -GtkVBox is a container that organizes child widgets into a single column. - - - -Use the #GtkBox packing interface to determine the arrangement, -spacing, height, and alignment of GtkVBox children. - - - -All children are allocated the same width. - - - - - - - -#GtkHBox -a sister class that organizes widgets into a row. - - - - - - - - - - - -Creates a new GtkVBox. - - -@homogeneous: %TRUE if all children are to be given equal space allotments. -@spacing: the number of pixels to place by default between children. -@Returns: a new GtkVBox. - - diff --git a/docs/reference/gtk/tmpl/gtkviewport.sgml b/docs/reference/gtk/tmpl/gtkviewport.sgml deleted file mode 100644 index 6ce665c5fe..0000000000 --- a/docs/reference/gtk/tmpl/gtkviewport.sgml +++ /dev/null @@ -1,92 +0,0 @@ - -GtkViewport - - - - - - - - - - - - - - - - - - - - - - - - - -@hadjustment: -@vadjustment: -@Returns: - - - - - - - -@viewport: -@Returns: - - - - - - - -@viewport: -@Returns: - - - - - - - -@viewport: -@adjustment: - - - - - - - -@viewport: -@adjustment: - - - - - - - -@viewport: -@type: - - - - - - - - - - - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkvpaned.sgml b/docs/reference/gtk/tmpl/gtkvpaned.sgml deleted file mode 100644 index edcff3251e..0000000000 --- a/docs/reference/gtk/tmpl/gtkvpaned.sgml +++ /dev/null @@ -1,32 +0,0 @@ - -GtkVPaned - - -A container with two panes arranged vertically. - - - -The VPaned widget is a container widget with two -children arranged vertically. The division between -the two panes is adjustable by the user by dragging -a handle. See #GtkPaned for details. - - - - - - - - - - - - - - -Create a new #GtkVPaned - - -@Returns: the new #GtkVPaned - - diff --git a/docs/reference/gtk/tmpl/gtkvruler.sgml b/docs/reference/gtk/tmpl/gtkvruler.sgml deleted file mode 100644 index aad5d12e25..0000000000 --- a/docs/reference/gtk/tmpl/gtkvruler.sgml +++ /dev/null @@ -1,36 +0,0 @@ - -GtkVRuler - - -A vertical ruler. - - - -The VRuler widget is a widget arranged vertically creating a ruler that is -utilized around other widgets such as a text widget. The ruler is used to show -the location of the mouse on the window and to show the size of the window in -specified units. The available units of measurement are GTK_PIXELS, GTK_INCHES -and GTK_CENTIMETERS. GTK_PIXELS is the default. -rulers. - - - - - - - - - -The #GtkVRuler struct contains private data and should be accessed -using the functions below. - - - - - -Creates a new vertical ruler - - -@Returns: the new GTKVRuler. - - diff --git a/docs/reference/gtk/tmpl/gtkvscale.sgml b/docs/reference/gtk/tmpl/gtkvscale.sgml deleted file mode 100644 index 81a6ffa294..0000000000 --- a/docs/reference/gtk/tmpl/gtkvscale.sgml +++ /dev/null @@ -1,44 +0,0 @@ - -GtkVScale - - -a vertical slider widget for selecting a value from a range. - - - -The #GtkVScale widget is used to allow the user to select a value using -a vertical slider. -A #GtkAdjustment is used to set the initial value, the lower -and upper bounds, and the step and page increments. - - -The position to show the current value, and the number of decimal places -shown can be set using the parent #GtkScale class's functions. - - - - - - - - - -The #GtkVScale-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkVScale. - - -@adjustment: the #GtkAdjustment which sets the range of the scale. -@Returns: a new #GtkVScale. - - - - -the #GtkAdjustment which sets the range of the scale. - - diff --git a/docs/reference/gtk/tmpl/gtkvscrollbar.sgml b/docs/reference/gtk/tmpl/gtkvscrollbar.sgml deleted file mode 100644 index 758fd43349..0000000000 --- a/docs/reference/gtk/tmpl/gtkvscrollbar.sgml +++ /dev/null @@ -1,40 +0,0 @@ - -GtkVScrollbar - - -A vertical scrollbar - - - -The VScrollbar widget is a widget arranged vertically creating a scroll bar. See -#GtkScrollbar for details on scrollbars. #GtkAdjustment pointers may be added to -handle the adjustment of the scrollbars or it may be left NULL in which case one -will be created you. See #GtkAdjustment for details. - - - - - - - - - -The #GtkVScrollbar struct contains private data and should be accessed -using the functions below. - - - - - -Creates a new vertical scrollbar. - - -@adjustment: -@Returns: the new GTKVScrollbar - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkvseparator.sgml b/docs/reference/gtk/tmpl/gtkvseparator.sgml deleted file mode 100644 index dd4606d37e..0000000000 --- a/docs/reference/gtk/tmpl/gtkvseparator.sgml +++ /dev/null @@ -1,38 +0,0 @@ - -GtkVSeparator - - -a vertical separator. - - - -The #GtkVSeparator widget is a vertical separator, used to group the -widgets within a window. It displays a vertical line with a shadow to -make it appear sunken into the interface. - - - - - - -#GtkHSeparator -a horizontal separator. - - - - - - -The #GtkVSeparator-struct struct contains private data only, and -should be accessed using the functions below. - - - - - -Creates a new #GtkVSeparator. - - -@Returns: a new #GtkVSeparator. - - diff --git a/docs/reference/gtk/tmpl/gtkwidget.sgml b/docs/reference/gtk/tmpl/gtkwidget.sgml deleted file mode 100644 index 515a535e50..0000000000 --- a/docs/reference/gtk/tmpl/gtkwidget.sgml +++ /dev/null @@ -1,1711 +0,0 @@ - -GtkWidget - - - - - - - - - - - - - - - - - - - - - - - - - -@GTK_TOPLEVEL: -@GTK_NO_WINDOW: -@GTK_REALIZED: -@GTK_MAPPED: -@GTK_VISIBLE: -@GTK_SENSITIVE: -@GTK_PARENT_SENSITIVE: -@GTK_CAN_FOCUS: -@GTK_HAS_FOCUS: -@GTK_CAN_DEFAULT: -@GTK_HAS_DEFAULT: -@GTK_HAS_GRAB: -@GTK_RC_STYLE: -@GTK_COMPOSITE_CHILD: -@GTK_NO_REPARENT: -@GTK_APP_PAINTABLE: -@GTK_RECEIVES_DEFAULT: - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: - - - - - - - -@wid: -@flag: - - - - - - - -@wid: -@flag: - - - - - - - -@widget: -@data: - - - - - - - -@width: -@height: - - - - - - -@x: -@y: -@width: -@height: - - - - - - -@selection: -@target: -@type: -@format: -@data: -@length: - - - - - - -@x: -@y: -@width: -@height: - - - - - - -@offset_x: -@offset_y: -@shape_mask: - - - - - - -@type: -@first_arg_name: -@Varargs: -@Returns: - - - - - - - -@type: -@nargs: -@args: -@Returns: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: -@widget_pointer: - - - - - - - -@widget: -@arg: - - - - - - - -@widget: -@nargs: -@args: - - - - - - - -@widget: -@first_arg_name: -@Varargs: - - - - - - - -@widget: -@nargs: -@args: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: -@area: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: -@requisition: - - - - - - - -@widget: -@requisition: - - - - - - - -@widget: -@allocation: - - - - - - - -@widget: -@accel_signal: -@accel_group: -@accel_key: -@accel_mods: -@accel_flags: - - - - - - - -@widget: -@accel_group: -@accel_key: -@accel_mods: - - - - - - - -@widget: -@accel_signal: -@visible_only: - - - - - - - -@widget: -@accel_group: -@accel_key: -@accel_mods: -@Returns: - - - - - - - -@widget: -@event: -@Returns: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: -@new_parent: - - - - - - - -@widget: -@x: -@y: - - - - - - - -@widget: -@area: -@intersection: -@Returns: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: -@name: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: -@state: - - - - - - - -@widget: -@sensitive: - - - - - - - -@widget: -@parent: - - - - - - - -@widget: -@parent_window: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: -@x: -@y: - - - - - - - -@widget: -@width: -@height: - - - - - - - -@widget: -@events: - - - - - - - -@widget: -@events: - - - - - - - -@widget: -@mode: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: -@widget_type: -@Returns: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: -@colormap: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: -@visual: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: -@x: -@y: - - - - - - - -@widget: -@ancestor: -@Returns: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: -@style: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: - - - - - - - -@widget: - - - - - - - -@style: - - - - - - - -@cmap: - - - - - - - -@visual: - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@style: - - - - - - - -@colormap: - - - - - - - -@visual: - - - - - - - -@Returns: - - - - - - - -@Returns: - - - - - - - -@Returns: - - - - - - - -@widget: -@shape_mask: -@offset_x: -@offset_y: - - - - - - - -@widget: -@path_length: -@path: -@path_reversed: - - - - - - - -@widget: -@path_length: -@path: -@path_reversed: - - - - - - - -@widget: -@Returns: - - - - - - - -@widget: - - - - - - - -@widget: -@style: - - - - - - - - - - - - - - - - - - - - - -@widget: - - - - - - - -@widget: -@x: -@y: -@width: -@height: - - - - - - - -@widget: -@x: -@y: -@width: -@height: - - - - - - - -@widget: - - - - - - - -@widget: -@app_paintable: - - - - - - - -@widget: -@name: - - - - - - - -@widget: -@hadjustment: -@vadjustment: -@Returns: - - - - - - - -@widget: - - - - - - - -@widget: the object which received the signal. - - - - - - -@widget: the object which received the signal. - - - - - - -@widget: the object which received the signal. - - - - - - -@widget: the object which received the signal. - - - - - - -@widget: the object which received the signal. - - - - - - -@widget: the object which received the signal. - - - - - - -@widget: the object which received the signal. -@area: - - - - - - -@widget: the object which received the signal. - - - - - - -@widget: the object which received the signal. - - - - - - -@widget: the object which received the signal. -@requisition: - - - - - - -@widget: the object which received the signal. -@allocation: - - - - - - -@widget: the object which received the signal. -@state: - - - - - - -@widget: the object which received the signal. -@old_parent: - - - - - - -@widget: the object which received the signal. -@previous_style: - - - - - - -@widget: the object which received the signal. -@accel_signal_id: -@accel_group: -@accel_key: -@accel_mods: -@accel_flags: - - - - - - -@widget: the object which received the signal. -@accel_group: -@accel_key: -@accel_mods: - - - - - - -@widget: the object which received the signal. - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@data: -@info: -@time: - - - - - - -@widget: the object which received the signal. -@data: -@time: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@drag_context: - - - - - - -@widget: the object which received the signal. -@drag_context: - - - - - - -@widget: the object which received the signal. -@drag_context: - - - - - - -@widget: the object which received the signal. -@drag_context: -@time: - - - - - - -@widget: the object which received the signal. -@drag_context: -@x: -@y: -@time: -@Returns: - - - - - - -@widget: the object which received the signal. -@drag_context: -@x: -@y: -@time: -@Returns: - - - - - - -@widget: the object which received the signal. -@drag_context: -@data: -@info: -@time: - - - - - - -@widget: the object which received the signal. -@drag_context: -@x: -@y: -@data: -@info: -@time: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@event: -@Returns: - - - - - - -@widget: the object which received the signal. -@message: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/reference/gtk/tmpl/gtkwindow.sgml b/docs/reference/gtk/tmpl/gtkwindow.sgml deleted file mode 100644 index 3ec1f78c3a..0000000000 --- a/docs/reference/gtk/tmpl/gtkwindow.sgml +++ /dev/null @@ -1,300 +0,0 @@ - -GtkWindow - - - - - - - - - - - - - - - - - - - - - - - - - -@type: -@Returns: - - - - - - - -@window: -@title: - - - - - - - -@window: -@wmclass_name: -@wmclass_class: - - - - - - - -@window: -@focus: - - - - - - - -@window: -@defaultw: - - - - -Changes how a toplevel window deals with its size request and user resize -attempts. There are really only two reasonable ways to call this function: - - - -gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE) -means that the window is user-resizable. - - - - -gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, TRUE) -means that the window's size is program-controlled, and should simply match -the current size request of the window's children. - - - -The first policy is the default, that is, by default windows are designed to -be resized by users. - - - -The basic ugly truth of this function is that it should be simply: - - void gtk_window_set_user_resizeable(GtkWidget* window, gboolean setting); - -So, pretend it is like that, and only use the two policies mentioned above. -GTK+ 1.4 may replace gtk_window_set_policy() with a nicer function like -gtk_window_set_user_resizeable(). - - - -If set to TRUE, the @allow_grow parameter allows the user to expand the window -beyond the size request of its child widgets. If @allow_grow is TRUE, be sure to -check that your child widgets work properly as the window is resized. - - - -A toplevel window will always change size to ensure its child widgets receive -their requested size. This means that if you add child widgets, the toplevel -window will expand to contain them. However, normally the toplevel will not -shrink to fit the size request of its children if it's too large; the -@auto_shrink parameter causes the window to shrink when child widgets have too -much space. @auto_shrink is normally used with the second of the two window -policies mentioned above. That is, set @auto_shrink to TRUE if you want the -window to have a fixed, always-optimal size determined by your program. - - - -Note that @auto_shrink doesn't do anything if @allow_shrink and @allow_grow are -both set to FALSE. - - - -Neither of the two suggested window policies set the @allow_shrink paramter to -TRUE. If @allow_shrink is TRUE, the user can shrink the window so that its -children do not receive their full size request; this is basically a bad thing, -because most widgets will look wrong if this happens. Furthermore GTK+ has a -tendency to re-expand the window if size is recalculated for any reason. The -upshot is that @allow_shrink should always be set to FALSE. - - - -Sometimes when you think you want to use @allow_shrink, the real problem is that -some specific child widget is requesting too much space, so the user can't -shrink the window sufficiently. Perhaps you are calling gtk_widget_set_usize() -on a child widget, and forcing its size request to be too large. Instead of -setting the child's usize, consider using gtk_window_set_default_size() so that -the child gets a larger allocation than it requests. - - -@window: the window -@allow_shrink: whether the user can shrink the window below its size request -@allow_grow: whether the user can grow the window larger than its size request -@auto_shrink: whether the window automatically snaps back to its size request if -it's larger - - - - - - - -@window: -@accel_group: - - - - - - - -@window: -@accel_group: - - - - - - - - - - - - - - -@window: -@Returns: - - - - - - - -@window: -@Returns: - - - - - - - -@window: -@modal: - - - - - - - -@window: -@xid: - - - - - - - -@window: -@xid: - - - - - - - -@window: -@width: -@height: - - - - - - - -@window: -@geometry_widget: -@geometry: -@geom_mask: - - - - - - - -@window: -@position: - - - - - - - -@window: -@parent: - - - - - - - -@window: the object which received the signal. -@widget: - - - -The type of the window. - - - - -The title of the window. - - - - -If the window shrinks automatically when widgets within it shrink. - - - - -If the window can be resized to a smaller size by the user. - - - - -If the window can be resized to a larger size by the user. - - - - -If the window is modal, i.e. it grabs all GTK+ events. - - - - -The position of the window. - - diff --git a/gtk/gtkprogress.c b/gtk/gtkprogress.c index 44ed4f4e89..4d31ce8943 100644 --- a/gtk/gtkprogress.c +++ b/gtk/gtkprogress.c @@ -198,6 +198,7 @@ gtk_progress_init (GtkProgress *progress) progress->y_align = 0.5; progress->show_text = FALSE; progress->activity_mode = FALSE; + progress->use_text_format = TRUE; } static void @@ -357,6 +358,13 @@ gtk_progress_build_string (GtkProgress *progress, gchar fmt[10]; src = progress->format; + + /* This is the new supported version of this function */ + if (!progress->use_text_format) + return g_strdup (src); + + /* And here's all the deprecated goo. */ + dest = buf; while (src && *src) @@ -624,6 +632,11 @@ gtk_progress_set_format_string (GtkProgress *progress, g_return_if_fail (progress != NULL); g_return_if_fail (GTK_IS_PROGRESS (progress)); + /* Turn on format, in case someone called + * gtk_progress_bar_set_text() and turned it off. + */ + progress->use_text_format = TRUE; + if (format) { if (progress->format) diff --git a/gtk/gtkprogress.h b/gtk/gtkprogress.h index 5bf18f0ec1..11ab48d9b0 100644 --- a/gtk/gtkprogress.h +++ b/gtk/gtkprogress.h @@ -62,6 +62,7 @@ struct _GtkProgress guint show_text : 1; guint activity_mode : 1; + guint use_text_format : 1; }; struct _GtkProgressClass @@ -73,6 +74,9 @@ struct _GtkProgressClass void (* act_mode_enter) (GtkProgress *progress); }; +/* This entire interface is deprecated. Use GtkProgressBar + * directly. + */ GtkType gtk_progress_get_type (void); void gtk_progress_set_show_text (GtkProgress *progress, diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c index a6cdade7d0..ae35304c23 100644 --- a/gtk/gtkprogressbar.c +++ b/gtk/gtkprogressbar.c @@ -52,7 +52,9 @@ enum { ARG_BAR_STYLE, ARG_ACTIVITY_STEP, ARG_ACTIVITY_BLOCKS, - ARG_DISCRETE_BLOCKS + ARG_DISCRETE_BLOCKS, + ARG_FRACTION, + ARG_PULSE_STEP }; static void gtk_progress_bar_class_init (GtkProgressBarClass *klass); @@ -130,7 +132,15 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class) GTK_TYPE_UINT, GTK_ARG_READWRITE, ARG_DISCRETE_BLOCKS); - + gtk_object_add_arg_type ("GtkProgressBar::fraction", + GTK_TYPE_FLOAT, + GTK_ARG_READWRITE, + ARG_FRACTION); + gtk_object_add_arg_type ("GtkProgressBar::pulse_step", + GTK_TYPE_FLOAT, + GTK_ARG_READWRITE, + ARG_FRACTION); + object_class->set_arg = gtk_progress_bar_set_arg; object_class->get_arg = gtk_progress_bar_get_arg; @@ -148,6 +158,7 @@ gtk_progress_bar_init (GtkProgressBar *pbar) pbar->blocks = 10; pbar->in_block = -1; pbar->orientation = GTK_PROGRESS_LEFT_TO_RIGHT; + pbar->pulse_fraction = 0.1; pbar->activity_pos = 0; pbar->activity_dir = 1; pbar->activity_step = 3; @@ -183,6 +194,12 @@ gtk_progress_bar_set_arg (GtkObject *object, case ARG_DISCRETE_BLOCKS: gtk_progress_bar_set_discrete_blocks (pbar, GTK_VALUE_UINT (*arg)); break; + case ARG_FRACTION: + gtk_progress_bar_set_fraction (pbar, GTK_VALUE_FLOAT (*arg)); + break; + case ARG_PULSE_STEP: + gtk_progress_bar_set_pulse_step (pbar, GTK_VALUE_FLOAT (*arg)); + break; default: break; } @@ -217,6 +234,12 @@ gtk_progress_bar_get_arg (GtkObject *object, case ARG_DISCRETE_BLOCKS: GTK_VALUE_UINT (*arg) = pbar->blocks; break; + case ARG_FRACTION: + GTK_VALUE_FLOAT (*arg) = gtk_progress_get_current_percentage (GTK_PROGRESS (pbar)); + break; + case ARG_PULSE_STEP: + GTK_VALUE_FLOAT (*arg) = pbar->pulse_fraction; + break; default: arg->type = GTK_TYPE_INVALID; break; @@ -266,12 +289,16 @@ gtk_progress_bar_real_update (GtkProgress *progress) if (GTK_PROGRESS (pbar)->activity_mode) { guint size; - + /* advance the block */ if (pbar->orientation == GTK_PROGRESS_LEFT_TO_RIGHT || pbar->orientation == GTK_PROGRESS_RIGHT_TO_LEFT) { + /* Update our activity step. */ + + pbar->activity_step = widget->allocation.width * pbar->pulse_fraction; + size = MAX (2, widget->allocation.width / pbar->activity_blocks); if (pbar->activity_dir == 0) @@ -298,6 +325,10 @@ gtk_progress_bar_real_update (GtkProgress *progress) } else { + /* Update our activity step. */ + + pbar->activity_step = widget->allocation.height * pbar->pulse_fraction; + size = MAX (2, widget->allocation.height / pbar->activity_blocks); if (pbar->activity_dir == 0) @@ -748,6 +779,68 @@ gtk_progress_bar_paint (GtkProgress *progress) /*******************************************************************/ +void +gtk_progress_bar_set_fraction (GtkProgressBar *pbar, + gfloat fraction) +{ + g_return_if_fail (pbar != NULL); + g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar)); + + /* If we know the percentage, we don't want activity mode. */ + gtk_progress_set_activity_mode (GTK_PROGRESS (pbar), FALSE); + + /* We use the deprecated GtkProgress interface internally. + * Once everything's been deprecated for a good long time, + * we can clean up all this code. + */ + gtk_progress_set_percentage (GTK_PROGRESS (pbar), fraction); +} + +void +gtk_progress_bar_pulse (GtkProgressBar *pbar) +{ + g_return_if_fail (pbar != NULL); + g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar)); + + /* If we don't know the percentage, we must want activity mode. */ + gtk_progress_set_activity_mode (GTK_PROGRESS (pbar), TRUE); + + /* Sigh. */ + gtk_progress_bar_real_update (GTK_PROGRESS (pbar)); +} + +void +gtk_progress_bar_set_text (GtkProgressBar *pbar, + const gchar *text) +{ + g_return_if_fail (pbar != NULL); + g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar)); + + /* We don't support formats in this interface */ + GTK_PROGRESS (pbar)->use_text_format = FALSE; + + if (text && *text) + { + gtk_progress_set_show_text (GTK_PROGRESS (pbar), TRUE); + gtk_progress_set_format_string (GTK_PROGRESS (pbar), text); + } + else + { + gtk_progress_set_show_text (GTK_PROGRESS (pbar), FALSE); + gtk_progress_set_format_string (GTK_PROGRESS (pbar), ""); + } +} + +void +gtk_progress_bar_set_pulse_step (GtkProgressBar *pbar, + gfloat fraction) +{ + g_return_if_fail (pbar != NULL); + g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar)); + + pbar->pulse_fraction = fraction; +} + void gtk_progress_bar_update (GtkProgressBar *pbar, gfloat percentage) @@ -755,10 +848,9 @@ gtk_progress_bar_update (GtkProgressBar *pbar, g_return_if_fail (pbar != NULL); g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar)); - /*********************************************************************** - * Use of gtk_progress_bar_update() is deprecated ! * - * Use gtk_progress_set_value or gtk_progress_set_percentage instead. * - ***********************************************************************/ + /* Use of gtk_progress_bar_update() is deprecated ! + * Use gtk_progress_bar_set_percentage () + */ gtk_progress_set_percentage (GTK_PROGRESS (pbar), percentage); } diff --git a/gtk/gtkprogressbar.h b/gtk/gtkprogressbar.h index 7db79df174..0296be1954 100644 --- a/gtk/gtkprogressbar.h +++ b/gtk/gtkprogressbar.h @@ -75,6 +75,9 @@ struct _GtkProgressBar gint activity_pos; guint activity_step; guint activity_blocks; + + gfloat pulse_fraction; + guint activity_dir : 1; }; @@ -86,21 +89,62 @@ struct _GtkProgressBarClass GtkType gtk_progress_bar_get_type (void); GtkWidget* gtk_progress_bar_new (void); + +/* + * GtkProgress/GtkProgressBar had serious problems in GTK 1.2. + * + * - Only 3 or 4 functions are really needed for 95% of progress + * interfaces; GtkProgress[Bar] had about 25 functions, and + * didn't even include these 3 or 4. + * - In activity mode, the API involves setting the adjustment + * to any random value, just to have the side effect of + * calling the progress bar update function - the adjustment + * is totally ignored in activity mode + * - You set the activity step as a pixel value, which means to + * set the activity step you basically need to connect to + * size_allocate + * - There are ctree_set_expander_style()-functions, to randomly + * change look-and-feel for no good reason + * - The split between GtkProgress and GtkProgressBar makes no sense + * to me whatsoever. + * + * This was a big wart on GTK and made people waste lots of time, + * both learning and using the interface. + * + * So, I have added what I feel is the correct API, and marked all the + * rest deprecated. However, the changes are 100% backward-compatible and + * should break no existing code. + * + * The following 5 functions are the new programming interface. + */ +void gtk_progress_bar_pulse (GtkProgressBar *pbar); +void gtk_progress_bar_set_text (GtkProgressBar *pbar, + const gchar *text); +void gtk_progress_bar_set_fraction (GtkProgressBar *pbar, + gfloat fraction); + +void gtk_progress_bar_set_pulse_step (GtkProgressBar *pbar, + gfloat fraction); +void gtk_progress_bar_set_orientation (GtkProgressBar *pbar, + GtkProgressBarOrientation orientation); + +/* Everything below here is deprecated */ GtkWidget* gtk_progress_bar_new_with_adjustment (GtkAdjustment *adjustment); void gtk_progress_bar_set_bar_style (GtkProgressBar *pbar, GtkProgressBarStyle style); void gtk_progress_bar_set_discrete_blocks (GtkProgressBar *pbar, guint blocks); +/* set_activity_step() is not only deprecated, it doesn't even work. + * (Of course, it wasn't usable anyway, you had to set it from a size_allocate + * handler or something) + */ void gtk_progress_bar_set_activity_step (GtkProgressBar *pbar, guint step); void gtk_progress_bar_set_activity_blocks (GtkProgressBar *pbar, guint blocks); -void gtk_progress_bar_set_orientation (GtkProgressBar *pbar, - GtkProgressBarOrientation orientation); void gtk_progress_bar_update (GtkProgressBar *pbar, gfloat percentage); - #ifdef __cplusplus } #endif /* __cplusplus */ diff --git a/modules/engines/pixbuf/.cvsignore b/modules/engines/pixbuf/.cvsignore deleted file mode 100644 index 020d528ee0..0000000000 --- a/modules/engines/pixbuf/.cvsignore +++ /dev/null @@ -1,6 +0,0 @@ -Makefile.in -Makefile -.deps -.libs -*.lo -*.la \ No newline at end of file diff --git a/modules/engines/pixbuf/ChangeLog b/modules/engines/pixbuf/ChangeLog deleted file mode 100644 index 7ac15fc565..0000000000 --- a/modules/engines/pixbuf/ChangeLog +++ /dev/null @@ -1,107 +0,0 @@ -Mon Mar 6 11:44:58 2000 Owen Taylor - - * docs/gap-geometry.fig: Moved into docs/ subdir - - * Makefile.am configure.in autogen.sh src/Makefile.am: - automakify - - * src/pixbuf.h src/pixbuf-render.c src/pixbuf-draw.c - src/pixbuf-main.c: Move sources into subdir and - rename. - -Mon Mar 6 11:02:07 2000 Owen Taylor - - * pixmap_theme_pixbuf.c: Handle drawing transparency without a - mask correctly. - - * pixmap_theme_main.c pixmap_theme_draw.c: Remove duplicate - includes. - -Sun Feb 6 21:34:30 2000 Owen Taylor - - * Started ChangeLog for pixbuf engine, check sources - into CVS. - -========== ChangeLog for pixmap engine =================== - -1999-11-22 Martin Baulig - - * pixmap_theme_main.c (theme_duplicate_style): Really copy the - `src_data->img_list', not just the pointer that points to it. - -Tue Oct 5 15:13:29 1999 Owen Taylor - - * pixmap_theme_draw.c (apply_theme_image): Don't set - background pixmap on pixmaps. - -1999-02-14 Raja R Harinath - - * Theme/gtk/Makefile.am.in (Makefile.am): Handle the case when - files are deleted. - -Thu Feb 11 21:16:53 1999 Owen Taylor - - * pixmap_theme_main.c (theme_data_unref): Free the - theme data structure as well as the contents. - -1999-02-03 Raja R Harinath - - * Theme/gtk/Makefile.am.in: New file. Theme/gtk/Makefile.am is - generated from this file when new *.png files are added. - -1999-01-23 Miguel de Icaza - - * pixmap_theme_main.c (theme_init): Turn on pixmap cache. - -Mon Jan 18 13:37:23 1999 Owen Taylor - - * Theme/gtk/gtkrc: Give buttons a gray background - color so they look a little less funny when initially - drawing. - -Wed Jan 13 18:58:25 1999 Owen Taylor - - * pixmap_theme_draw.c: Fixed pervasive mis-bracketing - that was causing drawing if the drawn region and - clipping region did NOT intersect, and a couple - of errors in computing source and destination - regions. - -1998-11-09 Federico Mena Quintero - - * pixmap_theme_draw.c: #include - -1998-11-07 Raja R Harinath - - * Theme/gtk/Makefile.am (theme_DATA): - Update to new directory contents. - * configure.in: Remove. - -Fri Nov 6 17:26:12 1998 Owen Taylor - - * pixmap_theme_main.c: Removed some debugging - printf's. - - * Theme/gtk/notebook1.c Theme/gtk/menubar.png: new - bigger pixmaps to reduce pixelation. - - * Theme/gtk/gtkrc: Reorganized to use several styles - instead of one huge style. Change clist backgrounds - to be prettier. - -Thu Nov 5 10:23:46 1998 Owen Taylor - - * pixmap_theme_draw.c (draw_shadow_gap): Fixed hard-coded - gap_side of '0'. - -Mon Nov 2 14:46:02 1998 Owen Taylor - - * pixmap_theme_draw.c (apply_theme_image_shadow_gap): Removed - several hundred lines of duplicated code with a bit of - reoriganization. - -Wed Oct 28 16:18:04 1998 Owen Taylor - - * pixmap_theme_main.c (theme_symbols): Removed lots - and lots of white space. - diff --git a/modules/engines/pixbuf/Makefile.am b/modules/engines/pixbuf/Makefile.am deleted file mode 100644 index 379aaed3ea..0000000000 --- a/modules/engines/pixbuf/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -INCLUDES = $(GTK_CFLAGS) - -enginedir = $(libdir)/gtk/themes/engines - -engine_LTLIBRARIES = libpixmap.la - -libpixmap_la_SOURCES = \ - pixbuf-draw.c \ - pixbuf-main.c \ - pixbuf-render.c \ - pixbuf.h - -libpixmap_la_LDFLAGS = -module -avoid-version -libpixmap_la_LIBADD = diff --git a/modules/engines/pixbuf/README b/modules/engines/pixbuf/README deleted file mode 100644 index 6b48ec67ca..0000000000 --- a/modules/engines/pixbuf/README +++ /dev/null @@ -1,17 +0,0 @@ -The code in this directory is a GTK+ theme engine based on the earlier -pixmap theme engine. - -The config files are meant to be compatible, but instead of rendering -using Imlib, it renders using GdkPixbuf. This makes the memory -management much more understandable, and also allows us to use -GdkPixbuf's high quality scaling. - -Most of the code was reworked/rewritten in the process to make it more -understandable and maintainable. - -There are lots of bugs here, a considersable number of bugs. But it's -cleaned up a great deal from the older pixmap engine. Please don't -make it uglier again. - -Owen Taylor -6 February 2000 \ No newline at end of file diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c deleted file mode 100644 index d2276ef8e5..0000000000 --- a/modules/engines/pixbuf/pixbuf-draw.c +++ /dev/null @@ -1,1037 +0,0 @@ -/* GTK+ Pixbuf Engine - * Copyright (C) 1998-2000 Red Hat, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Written by Owen Taylor , based on code by - * Carsten Haitzler - */ - -#include "pixbuf.h" -#include - -static ThemeImage * -match_theme_image(GtkStyle *style, - ThemeMatchData *match_data) -{ - GList *tmp_list; - - tmp_list = ((ThemeData *)style->engine_data)->img_list; - - while (tmp_list) - { - guint flags; - ThemeImage *image = tmp_list->data; - tmp_list = tmp_list->next; - - if (match_data->function != image->match_data.function) - continue; - - flags = match_data->flags & image->match_data.flags; - - if (flags != image->match_data.flags) /* Required components not present */ - continue; - - if ((flags & THEME_MATCH_STATE) && - match_data->state != image->match_data.state) - continue; - - if ((flags & THEME_MATCH_SHADOW) && - match_data->shadow != image->match_data.shadow) - continue; - - if ((flags & THEME_MATCH_ARROW_DIRECTION) && - match_data->arrow_direction != image->match_data.arrow_direction) - continue; - - if ((flags & THEME_MATCH_ORIENTATION) && - match_data->orientation != image->match_data.orientation) - continue; - - if ((flags & THEME_MATCH_GAP_SIDE) && - match_data->gap_side != image->match_data.gap_side) - continue; - - if (image->match_data.detail && - (!image->match_data.detail || - strcmp (match_data->detail, image->match_data.detail) != 0)) - continue; - - return image; - } - - return NULL; -} - -static void -draw_simple_image(GtkStyle *style, - GdkWindow *window, - GdkRectangle *area, - GtkWidget *widget, - ThemeMatchData *match_data, - gboolean draw_center, - gboolean allow_setbg, - gint x, - gint y, - gint width, - gint height) -{ - ThemeImage *image; - gboolean setbg = FALSE; - - if ((width == -1) && (height == -1)) - { - gdk_window_get_size(window, &width, &height); - if (allow_setbg) - setbg = TRUE; - } - else if (width == -1) - gdk_window_get_size(window, &width, NULL); - else if (height == -1) - gdk_window_get_size(window, NULL, &height); - - if (!(match_data->flags & THEME_MATCH_ORIENTATION)) - { - match_data->flags |= THEME_MATCH_ORIENTATION; - - if (height > width) - match_data->orientation = GTK_ORIENTATION_VERTICAL; - else - match_data->orientation = GTK_ORIENTATION_HORIZONTAL; - } - - image = match_theme_image(style, match_data); - if (image) - { - if (image->background) - { - GdkBitmap *mask = NULL; - - if (image->background->stretch && setbg && - gdk_window_get_type (window) != GDK_WINDOW_PIXMAP) - { - GdkPixbuf *pixbuf = theme_pixbuf_get_pixbuf (image->background); - if (pixbuf && pixbuf->art_pixbuf->has_alpha) - mask = gdk_pixmap_new (window, width, height, 1); - } - - theme_pixbuf_render (image->background, - window, mask, area, - draw_center ? COMPONENT_ALL : COMPONENT_ALL | COMPONENT_CENTER, - FALSE, - x, y, width, height); - - if (mask) - { - gdk_window_shape_combine_mask (window, mask, 0, 0); - gdk_pixmap_unref (mask); - } - } - - if (image->overlay && draw_center) - theme_pixbuf_render (image->overlay, - window, NULL, area, COMPONENT_ALL, - TRUE, - x, y, width, height); - } -} - -static void -draw_gap_image(GtkStyle *style, - GdkWindow *window, - GdkRectangle *area, - GtkWidget *widget, - ThemeMatchData *match_data, - gboolean draw_center, - gint x, - gint y, - gint width, - gint height, - GtkPositionType gap_side, - gint gap_x, - gint gap_width) -{ - ThemeImage *image; - gboolean setbg = FALSE; - - if ((width == -1) && (height == -1)) - { - gdk_window_get_size(window, &width, &height); - setbg = TRUE; - } - else if (width == -1) - gdk_window_get_size(window, &width, NULL); - else if (height == -1) - gdk_window_get_size(window, NULL, &height); - - if (!(match_data->flags & THEME_MATCH_ORIENTATION)) - { - match_data->flags |= THEME_MATCH_ORIENTATION; - - if (height > width) - match_data->orientation = GTK_ORIENTATION_VERTICAL; - else - match_data->orientation = GTK_ORIENTATION_HORIZONTAL; - } - - match_data->flags |= THEME_MATCH_GAP_SIDE; - match_data->gap_side = gap_side; - - image = match_theme_image(style, match_data); - if (image) - { - gint thickness; - GdkRectangle r1, r2, r3; - GdkPixbuf *pixbuf = NULL; - guint components = COMPONENT_ALL; - - if (!draw_center) - components |= COMPONENT_CENTER; - - if (image->gap_start) - pixbuf = theme_pixbuf_get_pixbuf (image->gap_start); - - switch (gap_side) - { - case GTK_POS_TOP: - if (pixbuf) - thickness = pixbuf->art_pixbuf->height; - else - thickness = style->klass->ythickness; - - if (!draw_center) - components |= COMPONENT_NORTH_WEST | COMPONENT_NORTH | COMPONENT_NORTH_EAST; - - r1.x = x; - r1.y = y; - r1.width = gap_x; - r1.height = thickness; - r2.x = x + gap_x; - r2.y = y; - r2.width = gap_width; - r2.height = thickness; - r3.x = x + gap_x + gap_width; - r3.y = y; - r3.width = width - (gap_x + gap_width); - r3.height = thickness; - break; - - case GTK_POS_BOTTOM: - if (pixbuf) - thickness = pixbuf->art_pixbuf->height; - else - thickness = style->klass->ythickness; - - if (!draw_center) - components |= COMPONENT_SOUTH_WEST | COMPONENT_SOUTH | COMPONENT_SOUTH_EAST; - - r1.x = x; - r1.y = y + height - thickness; - r1.width = gap_x; - r1.height = thickness; - r2.x = x + gap_x; - r2.y = y + height - thickness; - r2.width = gap_width; - r2.height = thickness; - r3.x = x + gap_x + gap_width; - r3.y = y + height - thickness; - r3.width = width - (gap_x + gap_width); - r3.height = thickness; - break; - - case GTK_POS_LEFT: - if (pixbuf) - thickness = pixbuf->art_pixbuf->width; - else - thickness = style->klass->xthickness; - - if (!draw_center) - components |= COMPONENT_NORTH_WEST | COMPONENT_WEST | COMPONENT_SOUTH_WEST; - - r1.x = x; - r1.y = y; - r1.width = thickness; - r1.height = gap_x; - r2.x = x; - r2.y = y + gap_x; - r2.width = thickness; - r2.height = gap_width; - r3.x = x; - r3.y = y + gap_x + gap_width; - r3.width = thickness; - r3.height = height - (gap_x + gap_width); - break; - - case GTK_POS_RIGHT: - if (pixbuf) - thickness = pixbuf->art_pixbuf->width; - else - thickness = style->klass->xthickness; - - if (!draw_center) - components |= COMPONENT_NORTH_EAST | COMPONENT_EAST | COMPONENT_SOUTH_EAST; - - r1.x = x + width - thickness; - r1.y = y; - r1.width = thickness; - r1.height = gap_x; - r2.x = x + width - thickness; - r2.y = y + gap_x; - r2.width = thickness; - r2.height = gap_width; - r3.x = x + width - thickness; - r3.y = y + gap_x + gap_width; - r3.width = thickness; - r3.height = height - (gap_x + gap_width); - break; - } - - if (image->background) - theme_pixbuf_render (image->background, - window, NULL, area, components, FALSE, - x, y, width, height); - if (image->gap_start) - theme_pixbuf_render (image->gap_start, - window, NULL, area, COMPONENT_ALL, FALSE, - r1.x, r1.y, r1.width, r1.height); - if (image->gap) - theme_pixbuf_render (image->gap, - window, NULL, area, COMPONENT_ALL, FALSE, - r2.x, r2.y, r2.width, r2.height); - if (image->gap_end) - theme_pixbuf_render (image->gap_end, - window, NULL, area, COMPONENT_ALL, FALSE, - r3.x, r3.y, r3.width, r3.height); - } -} - -static void -draw_hline(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x1, - gint x2, - gint y) -{ - ThemeImage *image; - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_HLINE; - match_data.detail = detail; - match_data.flags = THEME_MATCH_ORIENTATION | THEME_MATCH_STATE; - match_data.state = state; - match_data.orientation = GTK_ORIENTATION_HORIZONTAL; - - image = match_theme_image(style, &match_data); - if (image) - { - if (image->background) - theme_pixbuf_render (image->background, - window, NULL, area, COMPONENT_ALL, FALSE, - x1, y, (x2 - x1) + 1, 2); - } -} - -static void -draw_vline(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint y1, - gint y2, - gint x) -{ - ThemeImage *image; - ThemeMatchData match_data; - - g_return_if_fail (style != NULL); - g_return_if_fail (window != NULL); - - match_data.function = TOKEN_D_VLINE; - match_data.detail = detail; - match_data.flags = THEME_MATCH_ORIENTATION | THEME_MATCH_STATE; - match_data.state = state; - match_data.orientation = GTK_ORIENTATION_VERTICAL; - - image = match_theme_image(style, &match_data); - if (image) - { - if (image->background) - theme_pixbuf_render (image->background, - window, NULL, area, COMPONENT_ALL, FALSE, - x, y1, 2, (y2 - y1) + 1); - } -} - -static void -draw_shadow(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_SHADOW; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.shadow = shadow; - match_data.state = state; - - draw_simple_image (style, window, area, widget, &match_data, FALSE, FALSE, - x, y, width, height); -} - -static void -draw_polygon(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - GdkPoint * points, - gint npoints, - gint fill) -{ -#ifndef M_PI -#define M_PI 3.14159265358979323846 -#endif /* M_PI */ -#ifndef M_PI_4 -#define M_PI_4 0.78539816339744830962 -#endif /* M_PI_4 */ - - static const gdouble pi_over_4 = M_PI_4; - static const gdouble pi_3_over_4 = M_PI_4 * 3; - - GdkGC *gc3; - GdkGC *gc4; - gdouble angle; - gint i; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - g_return_if_fail(points != NULL); - - switch (shadow) - { - case GTK_SHADOW_IN: - gc3 = style->light_gc[state]; - gc4 = style->black_gc; - break; - case GTK_SHADOW_OUT: - gc3 = style->black_gc; - gc4 = style->light_gc[state]; - break; - default: - return; - } - - if (area) - { - gdk_gc_set_clip_rectangle(gc3, area); - gdk_gc_set_clip_rectangle(gc4, area); - } - if (fill) - gdk_draw_polygon(window, style->bg_gc[state], TRUE, points, npoints); - - npoints--; - - for (i = 0; i < npoints; i++) - { - if ((points[i].x == points[i + 1].x) && - (points[i].y == points[i + 1].y)) - angle = 0; - else - angle = atan2(points[i + 1].y - points[i].y, - points[i + 1].x - points[i].x); - - if ((angle > -pi_3_over_4) && (angle < pi_over_4)) - gdk_draw_line(window, gc3, - points[i].x, points[i].y, - points[i + 1].x, points[i + 1].y); - else - gdk_draw_line(window, gc4, - points[i].x, points[i].y, - points[i + 1].x, points[i + 1].y); - } - if (area) - { - gdk_gc_set_clip_rectangle(gc3, NULL); - gdk_gc_set_clip_rectangle(gc4, NULL); - } -} - -static void -draw_arrow(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - GtkArrowType arrow_direction, - gint fill, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_ARROW; - match_data.detail = detail; - match_data.flags = (THEME_MATCH_SHADOW | - THEME_MATCH_STATE | - THEME_MATCH_ARROW_DIRECTION); - match_data.shadow = shadow; - match_data.state = state; - match_data.arrow_direction = arrow_direction; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_diamond(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_DIAMOND; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.shadow = shadow; - match_data.state = state; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_oval(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_OVAL; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.shadow = shadow; - match_data.state = state; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_string(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - const gchar * string) -{ - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - if (state == GTK_STATE_INSENSITIVE) - { - if (area) - { - gdk_gc_set_clip_rectangle(style->white_gc, area); - gdk_gc_set_clip_rectangle(style->fg_gc[state], area); - } - - gdk_draw_string(window, style->font, style->fg_gc[state], x, y, string); - - if (area) - { - gdk_gc_set_clip_rectangle(style->white_gc, NULL); - gdk_gc_set_clip_rectangle(style->fg_gc[state], NULL); - } - } - else - { - gdk_gc_set_clip_rectangle(style->fg_gc[state], area); - gdk_draw_string(window, style->font, style->fg_gc[state], x, y, string); - gdk_gc_set_clip_rectangle(style->fg_gc[state], NULL); - } -} - -static void -draw_box(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_BOX; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.shadow = shadow; - match_data.state = state; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_flat_box(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_FLAT_BOX; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.shadow = shadow; - match_data.state = state; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_check(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_CHECK; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.shadow = shadow; - match_data.state = state; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_option(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_OPTION; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.shadow = shadow; - match_data.state = state; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_cross(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_CROSS; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.shadow = shadow; - match_data.state = state; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_ramp(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - GtkArrowType arrow_direction, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_RAMP; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.shadow = shadow; - match_data.state = state; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_tab(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_TAB; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.shadow = shadow; - match_data.state = state; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_shadow_gap(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height, - GtkPositionType gap_side, - gint gap_x, - gint gap_width) -{ - ThemeMatchData match_data; - - match_data.function = TOKEN_D_SHADOW_GAP; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.flags = (THEME_MATCH_SHADOW | - THEME_MATCH_STATE | - THEME_MATCH_ORIENTATION); - match_data.shadow = shadow; - match_data.state = state; - - draw_gap_image (style, window, area, widget, &match_data, FALSE, - x, y, width, height, gap_side, gap_x, gap_width); -} - -static void -draw_box_gap(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height, - GtkPositionType gap_side, - gint gap_x, - gint gap_width) -{ - ThemeMatchData match_data; - - match_data.function = TOKEN_D_BOX_GAP; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE; - match_data.flags = (THEME_MATCH_SHADOW | - THEME_MATCH_STATE | - THEME_MATCH_ORIENTATION); - match_data.shadow = shadow; - match_data.state = state; - - draw_gap_image (style, window, area, widget, &match_data, TRUE, - x, y, width, height, gap_side, gap_x, gap_width); -} - -static void -draw_extension(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height, - GtkPositionType gap_side) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - /* Why? */ - if (width >=0) - width++; - if (height >=0) - height++; - - match_data.function = TOKEN_D_EXTENSION; - match_data.detail = detail; - match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE | THEME_MATCH_GAP_SIDE; - match_data.shadow = shadow; - match_data.state = state; - match_data.gap_side = gap_side; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -static void -draw_focus(GtkStyle * style, - GdkWindow * window, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - /* Why? */ - if (width >=0) - width++; - if (height >=0) - height++; - - match_data.function = TOKEN_D_FOCUS; - match_data.detail = detail; - match_data.flags = 0; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, FALSE, - x, y, width, height); -} - -static void -draw_slider(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height, - GtkOrientation orientation) -{ - ThemeMatchData match_data; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - match_data.function = TOKEN_D_SLIDER; - match_data.detail = detail; - match_data.flags = (THEME_MATCH_SHADOW | - THEME_MATCH_STATE | - THEME_MATCH_ORIENTATION); - match_data.shadow = shadow; - match_data.state = state; - match_data.orientation = orientation; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height);} - - -static void -draw_handle(GtkStyle * style, - GdkWindow * window, - GtkStateType state, - GtkShadowType shadow, - GdkRectangle * area, - GtkWidget * widget, - gchar * detail, - gint x, - gint y, - gint width, - gint height, - GtkOrientation orientation) -{ - ThemeMatchData match_data; - - g_return_if_fail (style != NULL); - g_return_if_fail (window != NULL); - - match_data.function = TOKEN_D_HANDLE; - match_data.detail = detail; - match_data.flags = (THEME_MATCH_SHADOW | - THEME_MATCH_STATE | - THEME_MATCH_ORIENTATION); - match_data.shadow = shadow; - match_data.state = state; - match_data.orientation = orientation; - - draw_simple_image (style, window, area, widget, &match_data, TRUE, TRUE, - x, y, width, height); -} - -GtkStyleClass pixmap_default_class = -{ - 2, - 2, - draw_hline, - draw_vline, - draw_shadow, - draw_polygon, - draw_arrow, - draw_diamond, - draw_oval, - draw_string, - draw_box, - draw_flat_box, - draw_check, - draw_option, - draw_cross, - draw_ramp, - draw_tab, - draw_shadow_gap, - draw_box_gap, - draw_extension, - draw_focus, - draw_slider, - draw_handle -}; - diff --git a/modules/engines/pixbuf/pixbuf-main.c b/modules/engines/pixbuf/pixbuf-main.c deleted file mode 100644 index c0998d37e5..0000000000 --- a/modules/engines/pixbuf/pixbuf-main.c +++ /dev/null @@ -1,877 +0,0 @@ -/* GTK+ Pixbuf Engine - * Copyright (C) 1998-2000 Red Hat, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Written by Owen Taylor , based on code by - * Carsten Haitzler - */ - -#include "pixbuf.h" -#include - -/* Theme functions to export */ -void theme_init(GtkThemeEngine * engine); -void theme_exit(void); - -static struct - { - gchar *name; - guint token; - } -theme_symbols[] = -{ - { "image", TOKEN_IMAGE }, - { "function", TOKEN_FUNCTION }, - { "file", TOKEN_FILE }, - { "stretch", TOKEN_STRETCH }, - { "recolorable", TOKEN_RECOLORABLE }, - { "border", TOKEN_BORDER }, - { "detail", TOKEN_DETAIL }, - { "state", TOKEN_STATE }, - { "shadow", TOKEN_SHADOW }, - { "gap_side", TOKEN_GAP_SIDE }, - { "gap_file", TOKEN_GAP_FILE }, - { "gap_border", TOKEN_GAP_BORDER }, - { "gap_start_file", TOKEN_GAP_START_FILE }, - { "gap_start_border", TOKEN_GAP_START_BORDER }, - { "gap_end_file", TOKEN_GAP_END_FILE }, - { "gap_end_border", TOKEN_GAP_END_BORDER }, - { "overlay_file", TOKEN_OVERLAY_FILE }, - { "overlay_border", TOKEN_OVERLAY_BORDER }, - { "overlay_stretch", TOKEN_OVERLAY_STRETCH }, - { "arrow_direction", TOKEN_ARROW_DIRECTION }, - { "orientation", TOKEN_ORIENTATION }, - - { "HLINE", TOKEN_D_HLINE }, - { "VLINE", TOKEN_D_VLINE }, - { "SHADOW", TOKEN_D_SHADOW }, - { "POLYGON", TOKEN_D_POLYGON }, - { "ARROW", TOKEN_D_ARROW }, - { "DIAMOND", TOKEN_D_DIAMOND }, - { "OVAL", TOKEN_D_OVAL }, - { "STRING", TOKEN_D_STRING }, - { "BOX", TOKEN_D_BOX }, - { "FLAT_BOX", TOKEN_D_FLAT_BOX }, - { "CHECK", TOKEN_D_CHECK }, - { "OPTION", TOKEN_D_OPTION }, - { "CROSS", TOKEN_D_CROSS }, - { "RAMP", TOKEN_D_RAMP }, - { "TAB", TOKEN_D_TAB }, - { "SHADOW_GAP", TOKEN_D_SHADOW_GAP }, - { "BOX_GAP", TOKEN_D_BOX_GAP }, - { "EXTENSION", TOKEN_D_EXTENSION }, - { "FOCUS", TOKEN_D_FOCUS }, - { "SLIDER", TOKEN_D_SLIDER }, - { "ENTRY", TOKEN_D_ENTRY }, - { "HANDLE", TOKEN_D_HANDLE }, - - { "TRUE", TOKEN_TRUE }, - { "FALSE", TOKEN_FALSE }, - - { "TOP", TOKEN_TOP }, - { "UP", TOKEN_UP }, - { "BOTTOM", TOKEN_BOTTOM }, - { "DOWN", TOKEN_DOWN }, - { "LEFT", TOKEN_LEFT }, - { "RIGHT", TOKEN_RIGHT }, - - { "NORMAL", TOKEN_NORMAL }, - { "ACTIVE", TOKEN_ACTIVE }, - { "PRELIGHT", TOKEN_PRELIGHT }, - { "SELECTED", TOKEN_SELECTED }, - { "INSENSITIVE", TOKEN_INSENSITIVE }, - - { "NONE", TOKEN_NONE }, - { "IN", TOKEN_IN }, - { "OUT", TOKEN_OUT }, - { "ETCHED_IN", TOKEN_ETCHED_IN }, - { "ETCHED_OUT", TOKEN_ETCHED_OUT }, - { "HORIZONTAL", TOKEN_HORIZONTAL }, - { "VERTICAL", TOKEN_VERTICAL }, -}; - -static guint n_theme_symbols = sizeof(theme_symbols) / sizeof(theme_symbols[0]); - -static guint -theme_parse_file(GScanner *scanner, - ThemePixbuf **theme_pb) -{ - guint token; - gchar *pixmap; - - /* Skip 'blah_file' */ - token = g_scanner_get_next_token(scanner); - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_STRING) - return G_TOKEN_STRING; - - if (!*theme_pb) - *theme_pb = theme_pixbuf_new (); - - pixmap = gtk_rc_find_pixmap_in_path(scanner, scanner->value.v_string); - if (pixmap) - { - theme_pixbuf_set_filename (*theme_pb, pixmap); - g_free (pixmap); - } - - return G_TOKEN_NONE; -} - -static guint -theme_parse_border (GScanner *scanner, - ThemePixbuf **theme_pb) -{ - guint token; - gint left, right, top, bottom; - - /* Skip 'blah_border' */ - token = g_scanner_get_next_token(scanner); - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_LEFT_CURLY) - return G_TOKEN_LEFT_CURLY; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_INT) - return G_TOKEN_INT; - left = scanner->value.v_int; - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_COMMA) - return G_TOKEN_COMMA; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_INT) - return G_TOKEN_INT; - right = scanner->value.v_int; - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_COMMA) - return G_TOKEN_COMMA; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_INT) - return G_TOKEN_INT; - top = scanner->value.v_int; - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_COMMA) - return G_TOKEN_COMMA; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_INT) - return G_TOKEN_INT; - bottom = scanner->value.v_int; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_RIGHT_CURLY) - return G_TOKEN_RIGHT_CURLY; - - if (!*theme_pb) - *theme_pb = theme_pixbuf_new (); - - theme_pixbuf_set_border (*theme_pb, left, right, top, bottom); - - return G_TOKEN_NONE; -} - -static guint -theme_parse_stretch(GScanner *scanner, - ThemePixbuf **theme_pb) -{ - guint token; - gboolean stretch; - - /* Skip 'blah_stretch' */ - token = g_scanner_get_next_token(scanner); - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - if (token == TOKEN_TRUE) - stretch = TRUE; - else if (token == TOKEN_FALSE) - stretch = FALSE; - else - return TOKEN_TRUE; - - if (!*theme_pb) - *theme_pb = theme_pixbuf_new (); - - theme_pixbuf_set_stretch (*theme_pb, stretch); - - return G_TOKEN_NONE; -} - -static guint -theme_parse_recolorable(GScanner * scanner, - ThemeImage * data) -{ - guint token; - - token = g_scanner_get_next_token(scanner); - if (token != TOKEN_RECOLORABLE) - return TOKEN_RECOLORABLE; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - if (token == TOKEN_TRUE) - data->recolorable = 1; - else if (token == TOKEN_FALSE) - data->recolorable = 0; - else - return TOKEN_TRUE; - - return G_TOKEN_NONE; -} - -static guint -theme_parse_function(GScanner * scanner, - ThemeImage *data) -{ - guint token; - - token = g_scanner_get_next_token(scanner); - if (token != TOKEN_FUNCTION) - return TOKEN_FUNCTION; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - if ((token >= TOKEN_D_HLINE) && (token <= TOKEN_D_HANDLE)) - data->match_data.function = token; - - return G_TOKEN_NONE; -} - -static guint -theme_parse_detail(GScanner * scanner, - ThemeImage * data) -{ - guint token; - - token = g_scanner_get_next_token(scanner); - if (token != TOKEN_DETAIL) - return TOKEN_DETAIL; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_STRING) - return G_TOKEN_STRING; - - if (data->match_data.detail) - g_free (data->match_data.detail); - - data->match_data.detail = g_strdup(scanner->value.v_string); - - return G_TOKEN_NONE; -} - -static guint -theme_parse_state(GScanner * scanner, - ThemeImage * data) -{ - guint token; - - token = g_scanner_get_next_token(scanner); - if (token != TOKEN_STATE) - return TOKEN_STATE; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - if (token == TOKEN_NORMAL) - data->match_data.state = GTK_STATE_NORMAL; - else if (token == TOKEN_ACTIVE) - data->match_data.state = GTK_STATE_ACTIVE; - else if (token == TOKEN_PRELIGHT) - data->match_data.state = GTK_STATE_PRELIGHT; - else if (token == TOKEN_SELECTED) - data->match_data.state = GTK_STATE_SELECTED; - else if (token == TOKEN_INSENSITIVE) - data->match_data.state = GTK_STATE_INSENSITIVE; - else - return TOKEN_NORMAL; - - data->match_data.flags |= THEME_MATCH_STATE; - - return G_TOKEN_NONE; -} - -static guint -theme_parse_shadow(GScanner * scanner, - ThemeImage * data) -{ - guint token; - - token = g_scanner_get_next_token(scanner); - if (token != TOKEN_SHADOW) - return TOKEN_SHADOW; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - if (token == TOKEN_NONE) - data->match_data.shadow = GTK_SHADOW_NONE; - else if (token == TOKEN_IN) - data->match_data.shadow = GTK_SHADOW_IN; - else if (token == TOKEN_OUT) - data->match_data.shadow = GTK_SHADOW_OUT; - else if (token == TOKEN_ETCHED_IN) - data->match_data.shadow = GTK_SHADOW_ETCHED_IN; - else if (token == TOKEN_ETCHED_OUT) - data->match_data.shadow = GTK_SHADOW_ETCHED_OUT; - else - return TOKEN_NONE; - - data->match_data.flags |= THEME_MATCH_SHADOW; - - return G_TOKEN_NONE; -} - -static guint -theme_parse_arrow_direction(GScanner * scanner, - ThemeImage * data) -{ - guint token; - - token = g_scanner_get_next_token(scanner); - if (token != TOKEN_ARROW_DIRECTION) - return TOKEN_ARROW_DIRECTION; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - if (token == TOKEN_UP) - data->match_data.arrow_direction = GTK_ARROW_UP; - else if (token == TOKEN_DOWN) - data->match_data.arrow_direction = GTK_ARROW_DOWN; - else if (token == TOKEN_LEFT) - data->match_data.arrow_direction = GTK_ARROW_LEFT; - else if (token == TOKEN_RIGHT) - data->match_data.arrow_direction = GTK_ARROW_RIGHT; - else - return TOKEN_UP; - - data->match_data.flags |= THEME_MATCH_ARROW_DIRECTION; - - return G_TOKEN_NONE; -} - -static guint -theme_parse_gap_side(GScanner * scanner, - ThemeImage * data) -{ - guint token; - - token = g_scanner_get_next_token(scanner); - if (token != TOKEN_GAP_SIDE) - return TOKEN_GAP_SIDE; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - - if (token == TOKEN_TOP) - data->match_data.gap_side = GTK_POS_TOP; - else if (token == TOKEN_BOTTOM) - data->match_data.gap_side = GTK_POS_BOTTOM; - else if (token == TOKEN_LEFT) - data->match_data.gap_side = GTK_POS_LEFT; - else if (token == TOKEN_RIGHT) - data->match_data.gap_side = GTK_POS_RIGHT; - else - return TOKEN_TOP; - - data->match_data.flags |= THEME_MATCH_GAP_SIDE; - - return G_TOKEN_NONE; -} - -static guint -theme_parse_orientation(GScanner * scanner, - ThemeImage * data) -{ - guint token; - - token = g_scanner_get_next_token(scanner); - if (token != TOKEN_ORIENTATION) - return TOKEN_ORIENTATION; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_EQUAL_SIGN) - return G_TOKEN_EQUAL_SIGN; - - token = g_scanner_get_next_token(scanner); - - if (token == TOKEN_HORIZONTAL) - data->match_data.orientation = GTK_ORIENTATION_HORIZONTAL; - else if (token == TOKEN_VERTICAL) - data->match_data.orientation = GTK_ORIENTATION_VERTICAL; - else - return TOKEN_HORIZONTAL; - - data->match_data.flags |= THEME_MATCH_ORIENTATION; - - return G_TOKEN_NONE; -} - -static void -theme_image_ref (ThemeImage *data) -{ - data->refcount++; -} - -static void -theme_image_unref (ThemeImage *data) -{ - data->refcount--; - if (data->refcount == 0) - { - if (data->match_data.detail) - g_free (data->match_data.detail); - if (data->background) - theme_pixbuf_destroy (data->background); - if (data->overlay) - theme_pixbuf_destroy (data->overlay); - if (data->gap_start) - theme_pixbuf_destroy (data->gap_start); - if (data->gap) - theme_pixbuf_destroy (data->gap); - if (data->gap_end) - theme_pixbuf_destroy (data->gap_end); - g_free (data); - } -} - -static void -theme_data_ref (ThemeData *theme_data) -{ - theme_data->refcount++; -} - -static void -theme_data_unref (ThemeData *theme_data) -{ - theme_data->refcount--; - if (theme_data->refcount == 0) - { - g_list_foreach (theme_data->img_list, (GFunc) theme_image_unref, NULL); - g_list_free (theme_data->img_list); - g_free (theme_data); - } -} - -static guint -theme_parse_image(GScanner *scanner, - ThemeData *theme_data, - ThemeImage **data_return) -{ - guint token; - ThemeImage *data; - - data = NULL; - token = g_scanner_get_next_token(scanner); - if (token != TOKEN_IMAGE) - return TOKEN_IMAGE; - - token = g_scanner_get_next_token(scanner); - if (token != G_TOKEN_LEFT_CURLY) - return G_TOKEN_LEFT_CURLY; - - data = g_malloc(sizeof(ThemeImage)); - - data->refcount = 1; - - data->background = NULL; - data->overlay = NULL; - data->gap_start = NULL; - data->gap = NULL; - data->gap_end = NULL; - - data->recolorable = FALSE; - - data->match_data.function = 0; - data->match_data.detail = NULL; - data->match_data.flags = 0; - - token = g_scanner_peek_next_token(scanner); - while (token != G_TOKEN_RIGHT_CURLY) - { - switch (token) - { - case TOKEN_FUNCTION: - token = theme_parse_function(scanner, data); - break; - case TOKEN_RECOLORABLE: - token = theme_parse_recolorable(scanner, data); - break; - case TOKEN_DETAIL: - token = theme_parse_detail(scanner, data); - break; - case TOKEN_STATE: - token = theme_parse_state(scanner, data); - break; - case TOKEN_SHADOW: - token = theme_parse_shadow(scanner, data); - break; - case TOKEN_GAP_SIDE: - token = theme_parse_gap_side(scanner, data); - break; - case TOKEN_ARROW_DIRECTION: - token = theme_parse_arrow_direction(scanner, data); - break; - case TOKEN_ORIENTATION: - token = theme_parse_orientation(scanner, data); - break; - case TOKEN_FILE: - token = theme_parse_file(scanner, &data->background); - break; - case TOKEN_BORDER: - token = theme_parse_border(scanner, &data->background); - break; - case TOKEN_STRETCH: - token = theme_parse_stretch(scanner, &data->background); - break; - case TOKEN_GAP_FILE: - token = theme_parse_file(scanner, &data->gap); - break; - case TOKEN_GAP_BORDER: - token = theme_parse_border(scanner, &data->gap); - break; - case TOKEN_GAP_START_FILE: - token = theme_parse_file(scanner, &data->gap_start); - break; - case TOKEN_GAP_START_BORDER: - token = theme_parse_border(scanner, &data->gap_start); - break; - case TOKEN_GAP_END_FILE: - token = theme_parse_file(scanner, &data->gap_end); - break; - case TOKEN_GAP_END_BORDER: - token = theme_parse_border(scanner, &data->gap_end); - break; - case TOKEN_OVERLAY_FILE: - token = theme_parse_file(scanner, &data->overlay); - break; - case TOKEN_OVERLAY_BORDER: - token = theme_parse_border(scanner, &data->overlay); - break; - case TOKEN_OVERLAY_STRETCH: - token = theme_parse_stretch(scanner, &data->overlay); - break; - default: - g_scanner_get_next_token(scanner); - token = G_TOKEN_RIGHT_CURLY; - break; - } - if (token != G_TOKEN_NONE) - { - /* error - cleanup for exit */ - theme_image_unref (data); - *data_return = NULL; - return token; - } - token = g_scanner_peek_next_token(scanner); - } - - token = g_scanner_get_next_token(scanner); - - if (token != G_TOKEN_RIGHT_CURLY) - { - /* error - cleanup for exit */ - theme_image_unref (data); - *data_return = NULL; - return G_TOKEN_RIGHT_CURLY; - } - - /* everything is fine now - insert yer cruft */ - *data_return = data; - return G_TOKEN_NONE; -} - -static guint -theme_parse_rc_style(GScanner * scanner, - GtkRcStyle * rc_style) -{ - static GQuark scope_id = 0; - ThemeData *theme_data; - guint old_scope; - guint token; - gint i; - ThemeImage *img; - - /* Set up a new scope in this scanner. */ - - if (!scope_id) - scope_id = g_quark_from_string("theme_engine"); - - /* If we bail out due to errors, we *don't* reset the scope, so the - * error messaging code can make sense of our tokens. - */ - old_scope = g_scanner_set_scope(scanner, scope_id); - - /* Now check if we already added our symbols to this scope - * (in some previous call to theme_parse_rc_style for the - * same scanner. - */ - - if (!g_scanner_lookup_symbol(scanner, theme_symbols[0].name)) - { - g_scanner_freeze_symbol_table(scanner); - for (i = 0; i < n_theme_symbols; i++) - g_scanner_scope_add_symbol(scanner, scope_id, - theme_symbols[i].name, - GINT_TO_POINTER(theme_symbols[i].token)); - g_scanner_thaw_symbol_table(scanner); - } - - /* We're ready to go, now parse the top level */ - - theme_data = g_new(ThemeData, 1); - theme_data->img_list = NULL; - theme_data->refcount = 1; - - token = g_scanner_peek_next_token(scanner); - while (token != G_TOKEN_RIGHT_CURLY) - { - switch (token) - { - case TOKEN_IMAGE: - img = NULL; - token = theme_parse_image(scanner, theme_data, &img); - break; - default: - g_scanner_get_next_token(scanner); - token = G_TOKEN_RIGHT_CURLY; - break; - } - - if (token != G_TOKEN_NONE) - { - g_list_foreach (theme_data->img_list, (GFunc)theme_image_unref, NULL); - g_list_free (theme_data->img_list); - g_free (theme_data); - return token; - } - else - { - theme_data->img_list = g_list_append(theme_data->img_list, img); - } - token = g_scanner_peek_next_token(scanner); - } - - g_scanner_get_next_token(scanner); - - rc_style->engine_data = theme_data; - g_scanner_set_scope(scanner, old_scope); - - return G_TOKEN_NONE; -} - -static void -theme_merge_rc_style(GtkRcStyle * dest, - GtkRcStyle * src) -{ - ThemeData *src_data = src->engine_data; - ThemeData *dest_data = dest->engine_data; - GList *tmp_list1, *tmp_list2; - - if (!dest_data) - { - dest_data = g_new(ThemeData, 1); - dest_data->img_list = NULL; - dest_data->refcount = 1; - dest->engine_data = dest_data; - } - - if (src_data->img_list) - { - /* Copy src image list and append to dest image list */ - - tmp_list2 = g_list_last (dest_data->img_list); - tmp_list1 = src_data->img_list; - - while (tmp_list1) - { - if (tmp_list2) - { - tmp_list2->next = g_list_alloc(); - tmp_list2->next->data = tmp_list1->data; - tmp_list2->next->prev = tmp_list2; - - tmp_list2 = tmp_list2->next; - } - else - { - dest_data->img_list = g_list_append (NULL, tmp_list1->data); - tmp_list2 = dest_data->img_list; - } - - theme_data_ref (tmp_list1->data); - tmp_list1 = tmp_list1->next; - } - } -} - -static void -theme_rc_style_to_style(GtkStyle * style, - GtkRcStyle * rc_style) -{ - ThemeData *data = rc_style->engine_data; - - style->klass = &pixmap_default_class; - style->engine_data = data; - theme_data_ref (data); -} - -static void -theme_duplicate_style(GtkStyle * dest, - GtkStyle * src) -{ - ThemeData *src_data = src->engine_data; - ThemeData *dest_data; - - dest_data = g_new(ThemeData, 1); - dest_data->img_list = g_list_copy (src_data->img_list); - g_list_foreach (dest_data->img_list, (GFunc)theme_image_ref, NULL); - - dest->klass = &pixmap_default_class; - dest->engine_data = dest_data; - theme_data_ref (dest_data); -} - -static void -theme_realize_style(GtkStyle * style) -{ -} - -static void -theme_unrealize_style(GtkStyle * style) -{ -} - -static void -theme_destroy_rc_style(GtkRcStyle * rc_style) -{ - theme_data_unref (rc_style->engine_data); -} - -static void -theme_destroy_style(GtkStyle * style) -{ - theme_data_unref (style->engine_data); -} - -static void -theme_set_background(GtkStyle * style, - GdkWindow * window, - GtkStateType state_type) -{ - GdkPixmap *pixmap; - gint parent_relative; - - g_return_if_fail(style != NULL); - g_return_if_fail(window != NULL); - - if (style->bg_pixmap[state_type]) - { - if (style->bg_pixmap[state_type] == (GdkPixmap *) GDK_PARENT_RELATIVE) - { - pixmap = NULL; - parent_relative = TRUE; - } - else - { - pixmap = style->bg_pixmap[state_type]; - parent_relative = FALSE; - } - - gdk_window_set_back_pixmap(window, pixmap, parent_relative); - } - else - gdk_window_set_background(window, &style->bg[state_type]); -} - -void -theme_init(GtkThemeEngine * engine) -{ - engine->parse_rc_style = theme_parse_rc_style; - engine->merge_rc_style = theme_merge_rc_style; - engine->rc_style_to_style = theme_rc_style_to_style; - engine->duplicate_style = theme_duplicate_style; - engine->realize_style = theme_realize_style; - engine->unrealize_style = theme_unrealize_style; - engine->destroy_rc_style = theme_destroy_rc_style; - engine->destroy_style = theme_destroy_style; - engine->set_background = theme_set_background; - - gdk_rgb_init(); - - /* - * We enable the caches unconditionally (the -1 is used - * to inform gnome-libs to ignore its setting for the - * cache - */ -#if 0 - gtk_widget_push_visual(gdk_imlib_get_visual()); - gtk_widget_push_colormap(gdk_imlib_get_colormap()); -#endif /* 0 */ -} - -void -theme_exit(void) -{ -} - -/* The following function will be called by GTK+ when the module - * is loaded and checks to see if we are compatible with the - * version of GTK+ that loads us. - */ -G_MODULE_EXPORT const gchar* g_module_check_init (GModule *module); -const gchar* -g_module_check_init (GModule *module) -{ - return gtk_check_version (GTK_MAJOR_VERSION, - GTK_MINOR_VERSION, - GTK_MICRO_VERSION - GTK_INTERFACE_AGE); -} diff --git a/modules/engines/pixbuf/pixbuf-render.c b/modules/engines/pixbuf/pixbuf-render.c deleted file mode 100644 index d3550456e0..0000000000 --- a/modules/engines/pixbuf/pixbuf-render.c +++ /dev/null @@ -1,345 +0,0 @@ -/* GTK+ Pixbuf Engine - * Copyright (C) 1998-2000 Red Hat, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Written by Owen Taylor , based on code by - * Carsten Haitzler - */ - -#include "pixbuf.h" -#include - -GCache *pixbuf_cache = NULL; - -static void -pixbuf_render (GdkPixbuf *src, - GdkWindow *window, - GdkBitmap *mask, - GdkRectangle *clip_rect, - gint src_x, - gint src_y, - gint src_width, - gint src_height, - gint dest_x, - gint dest_y, - gint dest_width, - gint dest_height) -{ - GdkPixbuf *tmp_pixbuf; - GdkRectangle rect; - int x_offset, y_offset; - - if (dest_width <= 0 || dest_height <= 0) - return; - - rect.x = dest_x; - rect.y = dest_y; - rect.width = dest_width; - rect.height = dest_height; - - /* FIXME: we need the full mask, not a partial mask; the following is, however, - * horribly expensive - */ - if (!mask && clip_rect && !gdk_rectangle_intersect (clip_rect, &rect, &rect)) - return; - - if (dest_width != src->art_pixbuf->width || - dest_height != src->art_pixbuf->height) - { - ArtPixBuf *partial_src_art; - GdkPixbuf *partial_src_gdk; - - if (src->art_pixbuf->n_channels == 3) - { - partial_src_art = - art_pixbuf_new_const_rgb (src->art_pixbuf->pixels + src_y * src->art_pixbuf->rowstride + src_x * src->art_pixbuf->n_channels, - src_width, - src_height, - src->art_pixbuf->rowstride); - } - else - { - partial_src_art = - art_pixbuf_new_const_rgba (src->art_pixbuf->pixels + src_y * src->art_pixbuf->rowstride + src_x * src->art_pixbuf->n_channels, - src_width, - src_height, - src->art_pixbuf->rowstride); - } - - partial_src_gdk = gdk_pixbuf_new_from_art_pixbuf (partial_src_art); - tmp_pixbuf = gdk_pixbuf_new (ART_PIX_RGB, src->art_pixbuf->has_alpha, 8, rect.width, rect.height); - - gdk_pixbuf_scale (partial_src_gdk, tmp_pixbuf, 0, 0, rect.width, rect.height, - dest_x - rect.x, dest_y - rect.y, - (double)dest_width / src_width, (double)dest_height / src_height, - ART_FILTER_BILINEAR); - - gdk_pixbuf_unref (partial_src_gdk); - - x_offset = 0; - y_offset = 0; - } - else - { - tmp_pixbuf = src; - gdk_pixbuf_ref (tmp_pixbuf); - - x_offset = src_x + rect.x - dest_x; - y_offset = src_y + rect.y - dest_y; - } - - if (mask) - { - GdkGC *tmp_gc; - - gdk_pixbuf_render_threshold_alpha (tmp_pixbuf, mask, - x_offset, y_offset, - rect.x, rect.y, - rect.width, rect.height, - 128); - - tmp_gc = gdk_gc_new (window); - gdk_pixbuf_render_to_drawable (tmp_pixbuf, window, tmp_gc, - x_offset, y_offset, - rect.x, rect.y, - rect.width, rect.height, - GDK_RGB_DITHER_NORMAL, - 0, 0); - gdk_gc_unref (tmp_gc); - } - else - gdk_pixbuf_render_to_drawable_alpha (tmp_pixbuf, window, - x_offset, y_offset, - rect.x, rect.y, - rect.width, rect.height, - GDK_PIXBUF_ALPHA_BILEVEL, 128, - GDK_RGB_DITHER_NORMAL, - 0, 0); - gdk_pixbuf_unref (tmp_pixbuf); -} - -ThemePixbuf * -theme_pixbuf_new (void) -{ - ThemePixbuf *result = g_new (ThemePixbuf, 1); - result->filename = NULL; - result->pixbuf = NULL; - - result->stretch = TRUE; - result->border_left = 0; - result->border_right = 0; - result->border_bottom = 0; - result->border_top = 0; - - return result; -} - -void -theme_pixbuf_destroy (ThemePixbuf *theme_pb) -{ - if (theme_pb->pixbuf) - g_cache_remove (pixbuf_cache, theme_pb->pixbuf); -} - -void -theme_pixbuf_set_filename (ThemePixbuf *theme_pb, - const char *filename) -{ - if (theme_pb->pixbuf) - { - g_cache_remove (pixbuf_cache, theme_pb->pixbuf); - theme_pb->pixbuf = NULL; - } - - if (theme_pb->filename) - g_free (theme_pb->filename); - - theme_pb->filename = g_strdup (filename); -} - -void -theme_pixbuf_set_border (ThemePixbuf *theme_pb, - gint left, - gint right, - gint top, - gint bottom) -{ - theme_pb->border_left = left; - theme_pb->border_right = right; - theme_pb->border_top = top; - theme_pb->border_bottom = bottom; -} - -void -theme_pixbuf_set_stretch (ThemePixbuf *theme_pb, - gboolean stretch) -{ - theme_pb->stretch = stretch; -} - -GdkPixbuf * -pixbuf_cache_value_new (gchar *filename) -{ - GdkPixbuf *result = gdk_pixbuf_new_from_file (filename); - if (!result) - g_warning("Pixbuf theme: Cannot load pixmap file %s\n", filename); - - return result; -} - -GdkPixbuf * -theme_pixbuf_get_pixbuf (ThemePixbuf *theme_pb) -{ - if (!theme_pb->pixbuf) - { - if (!pixbuf_cache) - pixbuf_cache = g_cache_new ((GCacheNewFunc)pixbuf_cache_value_new, - (GCacheDestroyFunc)gdk_pixbuf_unref, - (GCacheDupFunc)g_strdup, - (GCacheDestroyFunc)g_free, - g_str_hash, g_direct_hash, g_str_equal); - - theme_pb->pixbuf = g_cache_insert (pixbuf_cache, theme_pb->filename); - } - - return theme_pb->pixbuf; -} - -void -theme_pixbuf_render (ThemePixbuf *theme_pb, - GdkWindow *window, - GdkBitmap *mask, - GdkRectangle *clip_rect, - guint component_mask, - gboolean center, - gint x, - gint y, - gint width, - gint height) -{ - GdkPixbuf *pixbuf = theme_pixbuf_get_pixbuf (theme_pb); - gint src_x[4], src_y[4], dest_x[4], dest_y[4]; - - if (!pixbuf) - return; - - if (theme_pb->stretch) - { - src_x[0] = 0; - src_x[1] = theme_pb->border_left; - src_x[2] = pixbuf->art_pixbuf->width - theme_pb->border_right; - src_x[3] = pixbuf->art_pixbuf->width; - - src_y[0] = 0; - src_y[1] = theme_pb->border_top; - src_y[2] = pixbuf->art_pixbuf->height - theme_pb->border_bottom; - src_y[3] = pixbuf->art_pixbuf->height; - - dest_x[0] = x; - dest_x[1] = x + theme_pb->border_left; - dest_x[2] = x + width - theme_pb->border_right; - dest_x[3] = x + width; - - dest_y[0] = y; - dest_y[1] = y + theme_pb->border_top; - dest_y[2] = y + height - theme_pb->border_bottom; - dest_y[3] = y + height; - - if (component_mask & COMPONENT_ALL) - component_mask = (COMPONENT_ALL - 1) & ~component_mask; - -#define RENDER_COMPONENT(X1,X2,Y1,Y2) \ - pixbuf_render (pixbuf, window, mask, clip_rect, \ - src_x[X1], src_y[Y1], \ - src_x[X2] - src_x[X1], src_y[Y2] - src_y[Y1], \ - dest_x[X1], dest_y[Y1], \ - dest_x[X2] - dest_x[X1], dest_y[Y2] - dest_y[Y1]); - - if (component_mask & COMPONENT_NORTH_WEST) - RENDER_COMPONENT (0, 1, 0, 1); - - if (component_mask & COMPONENT_NORTH) - RENDER_COMPONENT (1, 2, 0, 1); - - if (component_mask & COMPONENT_NORTH_EAST) - RENDER_COMPONENT (2, 3, 0, 1); - - if (component_mask & COMPONENT_WEST) - RENDER_COMPONENT (0, 1, 1, 2); - - if (component_mask & COMPONENT_CENTER) - RENDER_COMPONENT (1, 2, 1, 2); - - if (component_mask & COMPONENT_EAST) - RENDER_COMPONENT (2, 3, 1, 2); - - if (component_mask & COMPONENT_SOUTH_WEST) - RENDER_COMPONENT (0, 1, 2, 3); - - if (component_mask & COMPONENT_SOUTH) - RENDER_COMPONENT (1, 2, 2, 3); - - if (component_mask & COMPONENT_SOUTH_EAST) - RENDER_COMPONENT (2, 3, 2, 3); - } - else - { - if (center) - { - x += (width - pixbuf->art_pixbuf->width) / 2; - y += (height - pixbuf->art_pixbuf->height) / 2; - - pixbuf_render (pixbuf, window, NULL, clip_rect, - 0, 0, - pixbuf->art_pixbuf->width, pixbuf->art_pixbuf->height, - x, y, - pixbuf->art_pixbuf->width, pixbuf->art_pixbuf->height); - } - else - { - GdkPixmap *tmp_pixmap; - GdkGC *tmp_gc; - GdkGCValues gc_values; - - tmp_pixmap = gdk_pixmap_new (window, - pixbuf->art_pixbuf->width, - pixbuf->art_pixbuf->height, - -1); - tmp_gc = gdk_gc_new (tmp_pixmap); - gdk_pixbuf_render_to_drawable (pixbuf, tmp_pixmap, tmp_gc, - 0, 0, - 0, 0, - pixbuf->art_pixbuf->width, pixbuf->art_pixbuf->height, - GDK_RGB_DITHER_NORMAL, - 0, 0); - gdk_gc_unref (tmp_gc); - - gc_values.fill = GDK_TILED; - gc_values.tile = tmp_pixmap; - tmp_gc = gdk_gc_new_with_values (window, - &gc_values, GDK_GC_FILL | GDK_GC_TILE); - if (clip_rect) - gdk_draw_rectangle (window, tmp_gc, TRUE, - clip_rect->x, clip_rect->y, clip_rect->width, clip_rect->height); - else - gdk_draw_rectangle (window, tmp_gc, TRUE, x, y, width, height); - - gdk_gc_unref (tmp_gc); - gdk_pixmap_unref (tmp_pixmap); - } - } -} diff --git a/modules/engines/pixbuf/pixbuf.h b/modules/engines/pixbuf/pixbuf.h deleted file mode 100644 index b6e92030f4..0000000000 --- a/modules/engines/pixbuf/pixbuf.h +++ /dev/null @@ -1,194 +0,0 @@ -/* GTK+ Pixbuf Engine - * Copyright (C) 1998-2000 Red Hat, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Written by Owen Taylor , based on code by - * Carsten Haitzler - */ - -#include -#include - -/* internals */ - -typedef struct _ThemeData ThemeData; -typedef struct _ThemeImage ThemeImage; -typedef struct _ThemeMatchData ThemeMatchData; -typedef struct _ThemePixbuf ThemePixbuf; - -enum -{ - TOKEN_IMAGE = G_TOKEN_LAST + 1, - TOKEN_FUNCTION, - TOKEN_FILE, - TOKEN_STRETCH, - TOKEN_RECOLORABLE, - TOKEN_BORDER, - TOKEN_DETAIL, - TOKEN_STATE, - TOKEN_SHADOW, - TOKEN_GAP_SIDE, - TOKEN_GAP_FILE, - TOKEN_GAP_BORDER, - TOKEN_GAP_START_FILE, - TOKEN_GAP_START_BORDER, - TOKEN_GAP_END_FILE, - TOKEN_GAP_END_BORDER, - TOKEN_OVERLAY_FILE, - TOKEN_OVERLAY_BORDER, - TOKEN_OVERLAY_STRETCH, - TOKEN_ARROW_DIRECTION, - TOKEN_D_HLINE, - TOKEN_D_VLINE, - TOKEN_D_SHADOW, - TOKEN_D_POLYGON, - TOKEN_D_ARROW, - TOKEN_D_DIAMOND, - TOKEN_D_OVAL, - TOKEN_D_STRING, - TOKEN_D_BOX, - TOKEN_D_FLAT_BOX, - TOKEN_D_CHECK, - TOKEN_D_OPTION, - TOKEN_D_CROSS, - TOKEN_D_RAMP, - TOKEN_D_TAB, - TOKEN_D_SHADOW_GAP, - TOKEN_D_BOX_GAP, - TOKEN_D_EXTENSION, - TOKEN_D_FOCUS, - TOKEN_D_SLIDER, - TOKEN_D_ENTRY, - TOKEN_D_HANDLE, - TOKEN_TRUE, - TOKEN_FALSE, - TOKEN_TOP, - TOKEN_UP, - TOKEN_BOTTOM, - TOKEN_DOWN, - TOKEN_LEFT, - TOKEN_RIGHT, - TOKEN_NORMAL, - TOKEN_ACTIVE, - TOKEN_PRELIGHT, - TOKEN_SELECTED, - TOKEN_INSENSITIVE, - TOKEN_NONE, - TOKEN_IN, - TOKEN_OUT, - TOKEN_ETCHED_IN, - TOKEN_ETCHED_OUT, - TOKEN_ORIENTATION, - TOKEN_HORIZONTAL, - TOKEN_VERTICAL, -}; - -typedef enum -{ - COMPONENT_NORTH_WEST = 1 << 0, - COMPONENT_NORTH = 1 << 1, - COMPONENT_NORTH_EAST = 1 << 2, - COMPONENT_WEST = 1 << 3, - COMPONENT_CENTER = 1 << 4, - COMPONENT_EAST = 1 << 5, - COMPONENT_SOUTH_EAST = 1 << 6, - COMPONENT_SOUTH = 1 << 7, - COMPONENT_SOUTH_WEST = 1 << 8, - COMPONENT_ALL = 1 << 9 -} ThemePixbufComponent; - -typedef enum { - THEME_MATCH_GAP_SIDE = 1 << 0, - THEME_MATCH_ORIENTATION = 1 << 1, - THEME_MATCH_STATE = 1 << 2, - THEME_MATCH_SHADOW = 1 << 3, - THEME_MATCH_ARROW_DIRECTION = 1 << 4 -} ThemeMatchFlags; - -struct _ThemeData -{ - guint refcount; - GList *img_list; -}; - -struct _ThemePixbuf -{ - gchar *filename; - GdkPixbuf *pixbuf; - gboolean stretch; - gint border_left; - gint border_right; - gint border_bottom; - gint border_top; -}; - -struct _ThemeMatchData -{ - guint function; /* Mandatory */ - gchar *detail; - - ThemeMatchFlags flags; - - GtkPositionType gap_side; - GtkOrientation orientation; - GtkStateType state; - GtkShadowType shadow; - GtkArrowType arrow_direction; -}; - -struct _ThemeImage -{ - guint refcount; - - ThemePixbuf *background; - ThemePixbuf *overlay; - ThemePixbuf *gap_start; - ThemePixbuf *gap; - ThemePixbuf *gap_end; - - gchar recolorable; - - ThemeMatchData match_data; -}; - - -ThemePixbuf *theme_pixbuf_new (void); -void theme_pixbuf_destroy (ThemePixbuf *theme_pb); -void theme_pixbuf_set_filename (ThemePixbuf *theme_pb, - const char *filename); -GdkPixbuf * theme_pixbuf_get_pixbuf (ThemePixbuf *theme_pb); -void theme_pixbuf_set_border (ThemePixbuf *theme_pb, - gint left, - gint right, - gint top, - gint bottom); -void theme_pixbuf_set_stretch (ThemePixbuf *theme_pb, - gboolean stretch); -void theme_pixbuf_render (ThemePixbuf *theme_pb, - GdkWindow *window, - GdkBitmap *mask, - GdkRectangle *clip_rect, - guint component_mask, - gboolean center, - gint dest_x, - gint dest_y, - gint dest_width, - gint dest_height); - - - -extern GtkStyleClass pixmap_default_class;