2008-07-01 22:57:50 +00:00
|
|
|
|
/* GTK - The GIMP Toolkit
|
1997-11-24 22:37:52 +00:00
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
2000-07-26 11:33:08 +00:00
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
1997-11-24 22:37:52 +00:00
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
1998-06-15 21:27:17 +00:00
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2000-07-26 11:33:08 +00:00
|
|
|
|
* Lesser General Public License for more details.
|
1997-11-24 22:37:52 +00:00
|
|
|
|
*
|
2000-07-26 11:33:08 +00:00
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
1997-11-24 22:37:52 +00:00
|
|
|
|
*/
|
1999-02-24 07:37:18 +00:00
|
|
|
|
|
|
|
|
|
/*
|
2000-07-26 11:33:08 +00:00
|
|
|
|
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
1999-02-24 07:37:18 +00:00
|
|
|
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
|
|
|
* files for a list of changes. These files are distributed with
|
2008-04-18 15:34:50 +00:00
|
|
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
1999-02-24 07:37:18 +00:00
|
|
|
|
*/
|
|
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
|
#ifndef __GTK_ENUMS_H__
|
|
|
|
|
#define __GTK_ENUMS_H__
|
|
|
|
|
|
2009-10-21 18:30:04 +00:00
|
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2008-05-28 15:07:04 +00:00
|
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-11-18 02:07:37 +00:00
|
|
|
|
#include <glib-object.h>
|
urg, removed implementation of gtk_marshal_VOID__INT_INT_INT_INT. if
Wed Oct 25 20:47:41 2000 Tim Janik <timj@gtk.org>
* gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
couldn't they at least give it a non-standard name?
* gtk/gtktextlayout.c: arg! yet another implementation of
gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
* gtk/gtktextbuffer.c: gotcha! captured a vagabonding
gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
home. now i know this _is_ a conspiracy.
* gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
::state-changed.
* gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
(gtk_accel_group_create_add): marshaller signature fixups.
* gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
* gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
anymore.
Tue Oct 24 23:59:21 2000 Tim Janik <timj@gtk.org>
* docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
due to the signal system changes, it wouldn't build currently. to
be fixed soon.
* docs/Changes-2.0.txt: GtkSignal/GSignal updates.
* gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
so it needs gtk_marshal_VOID__ENUM() instead of
gtk_marshal_NONE__UINT().
* gdk/gdk*.c: adapted type registration functions.
* gtk/gtkbindings.c:
* gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
gone.
* gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
* gtk/gtkobject.c:
(gtk_object_destroy):
(gtk_object_shutdown): fixed recursion guards. basically we have to
catch the case where any of GObject.shutdown() or gtk_object_destroy()
is called during ::destroy, and avoid recursion there.
* gtk/gtktypeutils.c:
* gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
boxed_copy/boxed_free. this needs a more general solution based on a
publically installed code-generator utility.
* gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
glib's gobject has support for that now.
define GtkSignalMarshaller in terms of GSignalCMarshaller.
Mon Oct 23 09:36:42 2000 Tim Janik <timj@gtk.org>
* gtk/gtksignal.[hc]:
* gtk/gtkmarshal.[hc]:
* gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
care of that.
* *.c: marshaller name fixups.
* gtk/gtkmarshal.list: added a comment briefing the format.
Sun Oct 22 23:14:39 2000 Tim Janik <timj@gtk.org>
* gtk/gtksignal.[hc]: nuked old implementation. we mostly have
compatibility macros here now. more specifically, most of
the API is preserved (yes, _most_, nonwithstanding the
following exceptions listed, the API is stil lHUGE ;)
things that got removed completely:
GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
gtk_signal_remove_emission_hook().
non-functional functions variants:
gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
the GtkCallbackMarshal argument to gtk_signal_connect_full() is
not supported anymore.
(gtk_signal_compat_matched): new internal function to aid
implementation of the compatibility macros, it provides
functionality to block/unblock/disconnect handlers based
on func/data.
* gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
* *.c: adaptions to new type registration API signatures.
Fri Oct 20 15:26:33 2000 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
2000-10-25 22:34:14 +00:00
|
|
|
|
|
2011-01-12 22:06:27 +00:00
|
|
|
|
|
|
|
|
|
/**
|
2014-01-23 23:48:46 +00:00
|
|
|
|
* SECTION:gtkenums
|
2020-09-12 16:01:04 +00:00
|
|
|
|
* @Short_description: Public enumerated types used throughout GTK
|
2011-01-12 22:06:27 +00:00
|
|
|
|
* @Title: Standard Enumerations
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2005-02-11 07:15:11 +00:00
|
|
|
|
G_BEGIN_DECLS
|
2001-04-29 03:08:32 +00:00
|
|
|
|
|
Add margin and alignment properties to GtkWidget
h-align = START,END,CENTER,FILL
v-align = START,END,CENTER,FILL
margin-left,right,top,bottom
margin
These should obsolete all such similar properties on
layout containers, GtkMisc, GtkAlignment, GtkContainer::border-width
Margin is outside the size request.
If margin were not outside the set_size_request() it would not work the
same way as container-supplied (child property) padding.
Conceptually set_size_request() forces the value from the subclass
(the original unadjusted request) and then we go on to adjust
the request further by adding the margin.
2010-09-05 16:21:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkAlign:
|
|
|
|
|
* @GTK_ALIGN_FILL: stretch to fill all space if possible, center if
|
2010-10-01 17:05:12 +00:00
|
|
|
|
* no meaningful way to stretch
|
Add margin and alignment properties to GtkWidget
h-align = START,END,CENTER,FILL
v-align = START,END,CENTER,FILL
margin-left,right,top,bottom
margin
These should obsolete all such similar properties on
layout containers, GtkMisc, GtkAlignment, GtkContainer::border-width
Margin is outside the size request.
If margin were not outside the set_size_request() it would not work the
same way as container-supplied (child property) padding.
Conceptually set_size_request() forces the value from the subclass
(the original unadjusted request) and then we go on to adjust
the request further by adding the margin.
2010-09-05 16:21:27 +00:00
|
|
|
|
* @GTK_ALIGN_START: snap to left or top side, leaving space on right
|
2010-10-01 17:05:12 +00:00
|
|
|
|
* or bottom
|
Add margin and alignment properties to GtkWidget
h-align = START,END,CENTER,FILL
v-align = START,END,CENTER,FILL
margin-left,right,top,bottom
margin
These should obsolete all such similar properties on
layout containers, GtkMisc, GtkAlignment, GtkContainer::border-width
Margin is outside the size request.
If margin were not outside the set_size_request() it would not work the
same way as container-supplied (child property) padding.
Conceptually set_size_request() forces the value from the subclass
(the original unadjusted request) and then we go on to adjust
the request further by adding the margin.
2010-09-05 16:21:27 +00:00
|
|
|
|
* @GTK_ALIGN_END: snap to right or bottom side, leaving space on left
|
2010-10-01 17:05:12 +00:00
|
|
|
|
* or top
|
Add margin and alignment properties to GtkWidget
h-align = START,END,CENTER,FILL
v-align = START,END,CENTER,FILL
margin-left,right,top,bottom
margin
These should obsolete all such similar properties on
layout containers, GtkMisc, GtkAlignment, GtkContainer::border-width
Margin is outside the size request.
If margin were not outside the set_size_request() it would not work the
same way as container-supplied (child property) padding.
Conceptually set_size_request() forces the value from the subclass
(the original unadjusted request) and then we go on to adjust
the request further by adding the margin.
2010-09-05 16:21:27 +00:00
|
|
|
|
* @GTK_ALIGN_CENTER: center natural width of widget inside the
|
2010-10-01 17:05:12 +00:00
|
|
|
|
* allocation
|
2020-03-12 19:36:09 +00:00
|
|
|
|
* @GTK_ALIGN_BASELINE: align the widget according to the baseline. See
|
|
|
|
|
* #GtkWidget
|
Add margin and alignment properties to GtkWidget
h-align = START,END,CENTER,FILL
v-align = START,END,CENTER,FILL
margin-left,right,top,bottom
margin
These should obsolete all such similar properties on
layout containers, GtkMisc, GtkAlignment, GtkContainer::border-width
Margin is outside the size request.
If margin were not outside the set_size_request() it would not work the
same way as container-supplied (child property) padding.
Conceptually set_size_request() forces the value from the subclass
(the original unadjusted request) and then we go on to adjust
the request further by adding the margin.
2010-09-05 16:21:27 +00:00
|
|
|
|
*
|
|
|
|
|
* Controls how a widget deals with extra space in a single (x or y)
|
|
|
|
|
* dimension.
|
|
|
|
|
*
|
2014-02-05 18:07:34 +00:00
|
|
|
|
* Alignment only matters if the widget receives a “too large” allocation,
|
2020-08-05 01:17:49 +00:00
|
|
|
|
* for example if you packed the widget with the #GtkWidget:hexpand
|
|
|
|
|
* property inside a #GtkBox, then the widget might get extra space.
|
|
|
|
|
* If you have for example a 16x16 icon inside a 32x32 space, the icon
|
Add margin and alignment properties to GtkWidget
h-align = START,END,CENTER,FILL
v-align = START,END,CENTER,FILL
margin-left,right,top,bottom
margin
These should obsolete all such similar properties on
layout containers, GtkMisc, GtkAlignment, GtkContainer::border-width
Margin is outside the size request.
If margin were not outside the set_size_request() it would not work the
same way as container-supplied (child property) padding.
Conceptually set_size_request() forces the value from the subclass
(the original unadjusted request) and then we go on to adjust
the request further by adding the margin.
2010-09-05 16:21:27 +00:00
|
|
|
|
* could be scaled and stretched, it could be centered, or it could be
|
|
|
|
|
* positioned to one side of the space.
|
2011-03-30 06:25:12 +00:00
|
|
|
|
*
|
|
|
|
|
* Note that in horizontal context @GTK_ALIGN_START and @GTK_ALIGN_END
|
|
|
|
|
* are interpreted relative to text direction.
|
2013-03-05 14:06:12 +00:00
|
|
|
|
*
|
2020-03-12 19:36:09 +00:00
|
|
|
|
* @GTK_ALIGN_BASELINE support is optional for containers and widgets, and
|
|
|
|
|
* it is only supported for vertical alignment. When it's not supported by
|
2013-03-05 14:06:12 +00:00
|
|
|
|
* a child or a container it is treated as @GTK_ALIGN_FILL.
|
Add margin and alignment properties to GtkWidget
h-align = START,END,CENTER,FILL
v-align = START,END,CENTER,FILL
margin-left,right,top,bottom
margin
These should obsolete all such similar properties on
layout containers, GtkMisc, GtkAlignment, GtkContainer::border-width
Margin is outside the size request.
If margin were not outside the set_size_request() it would not work the
same way as container-supplied (child property) padding.
Conceptually set_size_request() forces the value from the subclass
(the original unadjusted request) and then we go on to adjust
the request further by adding the margin.
2010-09-05 16:21:27 +00:00
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_ALIGN_FILL,
|
|
|
|
|
GTK_ALIGN_START,
|
|
|
|
|
GTK_ALIGN_END,
|
2013-03-05 14:06:12 +00:00
|
|
|
|
GTK_ALIGN_CENTER,
|
|
|
|
|
GTK_ALIGN_BASELINE
|
Add margin and alignment properties to GtkWidget
h-align = START,END,CENTER,FILL
v-align = START,END,CENTER,FILL
margin-left,right,top,bottom
margin
These should obsolete all such similar properties on
layout containers, GtkMisc, GtkAlignment, GtkContainer::border-width
Margin is outside the size request.
If margin were not outside the set_size_request() it would not work the
same way as container-supplied (child property) padding.
Conceptually set_size_request() forces the value from the subclass
(the original unadjusted request) and then we go on to adjust
the request further by adding the margin.
2010-09-05 16:21:27 +00:00
|
|
|
|
} GtkAlign;
|
|
|
|
|
|
2011-01-12 22:06:27 +00:00
|
|
|
|
/**
|
2012-04-13 00:07:28 +00:00
|
|
|
|
* GtkArrowType:
|
2011-01-12 22:06:27 +00:00
|
|
|
|
* @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.
|
2018-06-25 23:21:08 +00:00
|
|
|
|
* @GTK_ARROW_NONE: No arrow.
|
2011-01-12 22:06:27 +00:00
|
|
|
|
*
|
2014-05-20 10:19:56 +00:00
|
|
|
|
* Used to indicate the direction in which an arrow should point.
|
2011-01-12 22:06:27 +00:00
|
|
|
|
*/
|
1997-11-24 22:37:52 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
1998-06-15 21:27:17 +00:00
|
|
|
|
GTK_ARROW_UP,
|
|
|
|
|
GTK_ARROW_DOWN,
|
|
|
|
|
GTK_ARROW_LEFT,
|
2006-05-28 12:37:21 +00:00
|
|
|
|
GTK_ARROW_RIGHT,
|
|
|
|
|
GTK_ARROW_NONE
|
1998-06-15 21:27:17 +00:00
|
|
|
|
} GtkArrowType;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
2013-03-05 14:20:20 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkBaselinePosition:
|
|
|
|
|
* @GTK_BASELINE_POSITION_TOP: Align the baseline at the top
|
|
|
|
|
* @GTK_BASELINE_POSITION_CENTER: Center the baseline
|
|
|
|
|
* @GTK_BASELINE_POSITION_BOTTOM: Align the baseline at the bottom
|
|
|
|
|
*
|
|
|
|
|
* Whenever a container has some form of natural row it may align
|
|
|
|
|
* children in that row along a common typographical baseline. If
|
2020-05-28 08:00:03 +00:00
|
|
|
|
* the amount of vertical space in the row is taller than the total
|
2013-03-05 14:20:20 +00:00
|
|
|
|
* requested height of the baseline-aligned children then it can use a
|
|
|
|
|
* #GtkBaselinePosition to select where to put the baseline inside the
|
2020-05-28 08:00:03 +00:00
|
|
|
|
* extra available space.
|
2013-03-05 14:20:20 +00:00
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_BASELINE_POSITION_TOP,
|
|
|
|
|
GTK_BASELINE_POSITION_CENTER,
|
|
|
|
|
GTK_BASELINE_POSITION_BOTTOM
|
|
|
|
|
} GtkBaselinePosition;
|
|
|
|
|
|
2014-01-21 16:31:21 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkDeleteType:
|
|
|
|
|
* @GTK_DELETE_CHARS: Delete characters.
|
|
|
|
|
* @GTK_DELETE_WORD_ENDS: Delete only the portion of the word to the
|
2014-02-07 18:37:09 +00:00
|
|
|
|
* left/right of cursor if we’re in the middle of a word.
|
2014-01-21 16:31:21 +00:00
|
|
|
|
* @GTK_DELETE_WORDS: Delete words.
|
|
|
|
|
* @GTK_DELETE_DISPLAY_LINES: Delete display-lines. Display-lines
|
2020-05-28 08:00:03 +00:00
|
|
|
|
* refers to the visible lines, with respect to the current line
|
2014-01-21 16:31:21 +00:00
|
|
|
|
* breaks. As opposed to paragraphs, which are defined by line
|
|
|
|
|
* breaks in the input.
|
|
|
|
|
* @GTK_DELETE_DISPLAY_LINE_ENDS: Delete only the portion of the
|
|
|
|
|
* display-line to the left/right of cursor.
|
|
|
|
|
* @GTK_DELETE_PARAGRAPH_ENDS: Delete to the end of the
|
|
|
|
|
* paragraph. Like C-k in Emacs (or its reverse).
|
|
|
|
|
* @GTK_DELETE_PARAGRAPHS: Delete entire line. Like C-k in pico.
|
|
|
|
|
* @GTK_DELETE_WHITESPACE: Delete only whitespace. Like M-\ in Emacs.
|
|
|
|
|
*
|
|
|
|
|
* See also: #GtkEntry::delete-from-cursor.
|
|
|
|
|
*/
|
2008-04-18 15:34:50 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
Remove g_convert (moved to glib) and now useless utf_to_latin1()
Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktexttypes.[ch]: Remove g_convert (moved to
glib) and now useless utf_to_latin1() latin1_to_utf()
* gtk/gtktextview.[ch]: Change ::move_insert and
::delete_text action signals to ::move and ::delete;
create the signals with the right enumeration type,
not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
C-v bindings, change Home, End to move to beginning/end
of line, Add C-Home C-End to move to beginning/end
of buffer. Change ::cut_text to ::cut_clipboard, etc;
combine ::scroll_text into ::move; use new GtkSelectionData
functions to simplify DND text handling.
* gtk/gtkenums.h gtk/gtktextview.h: Move movement,
deletion enumerations here, rename enumeration values to
be consistently plural.
* gtk/gtktextbuffer.c: Use new clipboard interfaces
for cut/copy/paste and primary selection.
* gtk/gtktextbuffer.[ch]: Remove excess time and
'interactive' arguments from cut/copy/paste;
rename cut to cut_clipboard, etc; remove
gtk_text_buffer_get_clipboard_contents().
* gtk/gtktextlayout.[ch]: Add
gtk_text_layout_move_iter_to_line_end() to move the iter to
line ends.
* gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
Functions to set or get a UTF-8 string on the selection
data.
* gtk/gtkclipboard.[ch]: New, simplified selection handling
interfaces.
* gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
created widgets - one of these is useless if we don't.
* gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
a public function clear all targets registered for the
widget.
* gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
Never call gtk_widget_realize() - that was just asking
for bizarre side-effects.
* gtk/gtkselection.c (gtk_selection_owner_set): Call
gdk_selection_owner_set even if the widget is the
same so that we reliably update the timestamp on
the server.
* gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
gdk_x11_get_server_time() function.
* gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
Add some tricky filtering on serial numbers for
selection clear events to fix up long-standard
race condition FIXME's in gtkselection.c.
* gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
routines to convert from utf8 to compound text or
STRING and from a text property to UTF-8.
* gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
a convenience function gdk_get_current_event_time().
* gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
and free selection_data->data properly
2000-09-14 16:41:20 +00:00
|
|
|
|
GTK_DELETE_CHARS,
|
2014-02-12 21:09:09 +00:00
|
|
|
|
GTK_DELETE_WORD_ENDS,
|
Remove g_convert (moved to glib) and now useless utf_to_latin1()
Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktexttypes.[ch]: Remove g_convert (moved to
glib) and now useless utf_to_latin1() latin1_to_utf()
* gtk/gtktextview.[ch]: Change ::move_insert and
::delete_text action signals to ::move and ::delete;
create the signals with the right enumeration type,
not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
C-v bindings, change Home, End to move to beginning/end
of line, Add C-Home C-End to move to beginning/end
of buffer. Change ::cut_text to ::cut_clipboard, etc;
combine ::scroll_text into ::move; use new GtkSelectionData
functions to simplify DND text handling.
* gtk/gtkenums.h gtk/gtktextview.h: Move movement,
deletion enumerations here, rename enumeration values to
be consistently plural.
* gtk/gtktextbuffer.c: Use new clipboard interfaces
for cut/copy/paste and primary selection.
* gtk/gtktextbuffer.[ch]: Remove excess time and
'interactive' arguments from cut/copy/paste;
rename cut to cut_clipboard, etc; remove
gtk_text_buffer_get_clipboard_contents().
* gtk/gtktextlayout.[ch]: Add
gtk_text_layout_move_iter_to_line_end() to move the iter to
line ends.
* gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
Functions to set or get a UTF-8 string on the selection
data.
* gtk/gtkclipboard.[ch]: New, simplified selection handling
interfaces.
* gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
created widgets - one of these is useless if we don't.
* gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
a public function clear all targets registered for the
widget.
* gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
Never call gtk_widget_realize() - that was just asking
for bizarre side-effects.
* gtk/gtkselection.c (gtk_selection_owner_set): Call
gdk_selection_owner_set even if the widget is the
same so that we reliably update the timestamp on
the server.
* gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
gdk_x11_get_server_time() function.
* gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
Add some tricky filtering on serial numbers for
selection clear events to fix up long-standard
race condition FIXME's in gtkselection.c.
* gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
routines to convert from utf8 to compound text or
STRING and from a text property to UTF-8.
* gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
a convenience function gdk_get_current_event_time().
* gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
and free selection_data->data properly
2000-09-14 16:41:20 +00:00
|
|
|
|
GTK_DELETE_WORDS,
|
|
|
|
|
GTK_DELETE_DISPLAY_LINES,
|
|
|
|
|
GTK_DELETE_DISPLAY_LINE_ENDS,
|
2014-02-12 21:09:09 +00:00
|
|
|
|
GTK_DELETE_PARAGRAPH_ENDS,
|
|
|
|
|
GTK_DELETE_PARAGRAPHS,
|
|
|
|
|
GTK_DELETE_WHITESPACE
|
Remove g_convert (moved to glib) and now useless utf_to_latin1()
Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktexttypes.[ch]: Remove g_convert (moved to
glib) and now useless utf_to_latin1() latin1_to_utf()
* gtk/gtktextview.[ch]: Change ::move_insert and
::delete_text action signals to ::move and ::delete;
create the signals with the right enumeration type,
not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
C-v bindings, change Home, End to move to beginning/end
of line, Add C-Home C-End to move to beginning/end
of buffer. Change ::cut_text to ::cut_clipboard, etc;
combine ::scroll_text into ::move; use new GtkSelectionData
functions to simplify DND text handling.
* gtk/gtkenums.h gtk/gtktextview.h: Move movement,
deletion enumerations here, rename enumeration values to
be consistently plural.
* gtk/gtktextbuffer.c: Use new clipboard interfaces
for cut/copy/paste and primary selection.
* gtk/gtktextbuffer.[ch]: Remove excess time and
'interactive' arguments from cut/copy/paste;
rename cut to cut_clipboard, etc; remove
gtk_text_buffer_get_clipboard_contents().
* gtk/gtktextlayout.[ch]: Add
gtk_text_layout_move_iter_to_line_end() to move the iter to
line ends.
* gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
Functions to set or get a UTF-8 string on the selection
data.
* gtk/gtkclipboard.[ch]: New, simplified selection handling
interfaces.
* gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
created widgets - one of these is useless if we don't.
* gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
a public function clear all targets registered for the
widget.
* gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
Never call gtk_widget_realize() - that was just asking
for bizarre side-effects.
* gtk/gtkselection.c (gtk_selection_owner_set): Call
gdk_selection_owner_set even if the widget is the
same so that we reliably update the timestamp on
the server.
* gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
gdk_x11_get_server_time() function.
* gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
Add some tricky filtering on serial numbers for
selection clear events to fix up long-standard
race condition FIXME's in gtkselection.c.
* gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
routines to convert from utf8 to compound text or
STRING and from a text property to UTF-8.
* gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
a convenience function gdk_get_current_event_time().
* gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
and free selection_data->data properly
2000-09-14 16:41:20 +00:00
|
|
|
|
} GtkDeleteType;
|
|
|
|
|
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
|
/* Focus movement types */
|
2014-01-21 16:31:21 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkDirectionType:
|
|
|
|
|
* @GTK_DIR_TAB_FORWARD: Move forward.
|
|
|
|
|
* @GTK_DIR_TAB_BACKWARD: Move backward.
|
|
|
|
|
* @GTK_DIR_UP: Move up.
|
|
|
|
|
* @GTK_DIR_DOWN: Move down.
|
|
|
|
|
* @GTK_DIR_LEFT: Move left.
|
|
|
|
|
* @GTK_DIR_RIGHT: Move right.
|
|
|
|
|
*
|
|
|
|
|
* Focus movement types.
|
|
|
|
|
*/
|
1997-11-24 22:37:52 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
1998-06-15 21:27:17 +00:00
|
|
|
|
GTK_DIR_TAB_FORWARD,
|
|
|
|
|
GTK_DIR_TAB_BACKWARD,
|
|
|
|
|
GTK_DIR_UP,
|
|
|
|
|
GTK_DIR_DOWN,
|
|
|
|
|
GTK_DIR_LEFT,
|
|
|
|
|
GTK_DIR_RIGHT
|
|
|
|
|
} GtkDirectionType;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
2014-01-21 17:26:55 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkIconSize:
|
2017-11-15 02:14:47 +00:00
|
|
|
|
* @GTK_ICON_SIZE_INHERIT: Keep the size of the parent element
|
|
|
|
|
* @GTK_ICON_SIZE_NORMAL: Size similar to text size
|
|
|
|
|
* @GTK_ICON_SIZE_LARGE: Large size, for example in an icon view
|
|
|
|
|
*
|
|
|
|
|
* Built-in icon sizes.
|
|
|
|
|
*
|
|
|
|
|
* Icon sizes default to being inherited. Where they cannot be
|
|
|
|
|
* inherited, text size is the default.
|
2017-12-26 13:39:29 +00:00
|
|
|
|
*
|
|
|
|
|
* All widgets which use GtkIconSize set the normal-icons or large-icons
|
|
|
|
|
* style classes correspondingly, and let themes determine the actual size
|
|
|
|
|
* to be used with the -gtk-icon-size CSS property.
|
2014-01-21 17:26:55 +00:00
|
|
|
|
*/
|
2001-03-12 18:46:53 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2017-11-15 02:14:47 +00:00
|
|
|
|
GTK_ICON_SIZE_INHERIT,
|
|
|
|
|
GTK_ICON_SIZE_NORMAL,
|
|
|
|
|
GTK_ICON_SIZE_LARGE
|
2001-03-12 18:46:53 +00:00
|
|
|
|
} GtkIconSize;
|
|
|
|
|
|
2010-05-21 00:19:14 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkSensitivityType:
|
|
|
|
|
* @GTK_SENSITIVITY_AUTO: The arrow is made insensitive if the
|
|
|
|
|
* thumb is at the end
|
|
|
|
|
* @GTK_SENSITIVITY_ON: The arrow is always sensitive
|
|
|
|
|
* @GTK_SENSITIVITY_OFF: The arrow is always insensitive
|
|
|
|
|
*
|
2020-09-12 16:01:04 +00:00
|
|
|
|
* Determines how GTK handles the sensitivity of stepper arrows
|
2010-05-21 00:19:14 +00:00
|
|
|
|
* at the end of range widgets.
|
|
|
|
|
*/
|
2005-11-11 12:48:29 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_SENSITIVITY_AUTO,
|
|
|
|
|
GTK_SENSITIVITY_ON,
|
|
|
|
|
GTK_SENSITIVITY_OFF
|
|
|
|
|
} GtkSensitivityType;
|
|
|
|
|
|
Remove all references to offscreen flag which was no longer used.
Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Remove all references to
offscreen flag which was no longer used.
* gtk/gtkprivate.h (enum): Remove unused flags and compress.
* gtk/gtkframe.c (gtk_frame_set_label_widget): Check
for non-null label_widget->parent.
* gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
which no longer was used.
* gdk/gdkpango.c (gdk_pango_context_get_info): make static.
* gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
for null arguments.
* gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
check for destroyed windows.
Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimmulticontext.c: Add a finalize method and unref
the slave context there.
* gtk/gtkinvisible.[ch]: Make reference counting behavior
identical to GtkWindow.
Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
* Makefile.am gdk/gdkpango.c: Copy the layout render function from
pangox to here, so we can write them independent of rendering
system, using GDK primitives.
* gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
since we have a rendering-system independent implementation in
terms of draw_glyphs().
* gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
function to render a single line.
* gdk/x11/gdkpango.c: Move the guts of this file mostly
into ../gdkpango.c, which simplifies things, since we
don't have to deal with raw X gc's.
Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
get the logical attributes for a given GtkTextLine.
Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
g_locale_get_codeset() to g_get_codeset() change.
Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
* gtk/testcalendar.c (calendar_font_selection_ok): Use font
descriptions.
* gtk/gtkentry.c (gtk_entry_draw_text): Center text within
the entry.
* gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
redoing (vastly simplifying) for Pango. Still needs quite
a bit of work. (Size selection is currently poor. List of
predefined sizes is not a good idea, since all of these
sizes won't necessarily be distinct.)
Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
CODESET results for LANG=C.
Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
which takes a stringized pango font description;
ignore the older 'font' and 'fontset' declarations.
* gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
field with a GdkFont derived via gdk_font_from_description(),
for compatibility. (Should we just remove it entirely?
Probably too much compatibility breakage, but people
should be migrating to the new Pango stuff as quickly
as possible.)
Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalender.c: Roughly pango-ized. Really needs
redoing; there are some bugs in size allocation right
now, the semi-existant distinction between header / day
fonts was removed, but, with Pango, could actually
be made functional in a nice way.
* gtk/testcalender: Move calender from examples into this
directory as a test program. (We really need to restrcture
testgtk into a whole directory full of tests for every
widget or functionality group, separated into multiple .c
files.)
Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/testgtk.c (file_exists): Fix stupid typo that
was keeping RC file from being loaded.
* gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
RC file font code.
Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
Add function to load a GdkFont from a PangoFontDescription.
Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
* gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
to have any widget for the label, use a GtkLabel widget
to display the text. (Based partially on a patch from
Anders Carlson.)
(Quite a bit of code reorganization - strip 90% of the
guts out of gtkaspectframe and add a single virtual
func to GtkFrameClass - compute_child_allocation.)
Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
(Removed clist->row_center_offset field because caching
it wasn't saving time or code, added private function
_gtk_clist_create_cell_layout()).
Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkaccellabel.c: Pangoized.
* gtk/[hv]ruler.c: Pangoized
Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_init):
Use gtk_clist_set_column_auto_resize() to remove need
need for manual column width computations.
Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
ensuring Pango correctness, and considerably simplifying the
code.
* gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
* gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
getting of numbers of lines.
* gtk/gtklabel.c (gtk_label_size_request): Set the requisition
to the actual requested width of the lable, not to the wrap
width we set.
* gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
* gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
* gtk/gtktextview.c: Fix structure inheritance.
* gtk/gtkprogressbar.c: Pangoize.
Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
in a function.
* gtk/gtktextlayout.c (find_display_line_above): Fixed
bug with computing line tops.
* gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
and y_offset coordinates to do what we need now. (The offset between
buffer and layout coordinates has been reintroduced, but is a
bit different than before.)
* gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
handle the adjustments ourselves, and scroll as necessary using
the new gdk_window_scroll().
The advantage of this is that when we are incrementally revalidating,
we are essentially rearranging things around the visible portion
of the screen. With the old setup, the visible portion of the
screen was moved around in the layout, so scrolling and redrawing
to track that caused jumping of the display. Since we now
control the scrolling ourselves, we can suppress this and
only redraw when things actually change.
Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
the region not just redisplay it after-all, since we store the
cursors in the LineDisplay. (Ugly interactions here between
GtkLayout and GtkTextBTree here.)
* gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
Added function to scroll contents of a window while keeping the
window constant. Works by XCopyArea or guffaw-scrolling depending
on the details of how the window is set up. (guffaw-scrolling
still needs to be filled in.)
Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
move the debugging that was tied to a global variable
to that.
* gtk/gtkmarshal.list: Add NONE:INT,INT,INT
* gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
validated flag, in line data instead of setting height/width to
-1. This allows us to perform operations with partially invalid
buffer (using the old size for invalid lines) and thus to do
incremental vaidation. Keep height/width aggregates up to date
when deleting text and rebalancing the tree.
* gtk/gtktextbtree.[ch]: Add functions validate a line
(gtk_text_btree_validate_line), and to validate up
to a number of pixels (gtk_text_btree_validate).
* gtk/gtktextlayout.[ch]: Add an ::invalidated signal
that indicates that something is changed and a revalidation
pass is needed. Change ::need_repaint to ::changed, and
make it take old and new yranges instead of a rectangle.
* gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
the line_data_destroy() function from
gtk_text_btree_add_view() to a virtual function in
GtkTextLayout
* gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
since we are handling partial repaints in a different fashion
now.
* gtk/gtktextbtree.[ch]: Only repaint the changed portion
of the selection instead of queueing a repaint on the
entire widget.
* gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
get_selection_bounds() down to btree, make the function
in buffer a wrapper around the btree function.
* gtk/gtktextlayout.[ch]: Add functions to check if the
layout is valid and to recompute either a range of pixels
aroudn a line or a certain total number of pixels.
* gtk/gtktextlayout.[ch]: Cache a single line display;
now that we only redraw the needed portions, the hit rate
for this cache is quite high.
* gtk/gtktextview.[ch]: Keep track of the first paragraph
on the screen so that when re-laying-out the buffer, we can
keep the same place. This requires connecting to ::value_changed
on the adjustments
* gtk/gtktextview.[ch]: Add idle functions to revalidate
the buffer after we receive an ::invalidated signal.
Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
to max of allocation and layout size, not just to the
layout size.
* gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
Invalidate window so it gets redrawn properly.
* gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
to mean the entire window.
* gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
into public header.
Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
to get the name of a mark.
* gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
to find the paragraph from a y position.
Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
nodes have width/height >= 0, not > 0.
Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
Add a size_only flag, so when we only need the size, we don't create
useless appearance attributes.
* gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
duplicate setting of font description.
* gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
EXTRA_DIST. It does not work well when the file that
everything depends on is not in the tarball.
Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
* gtk/testgtk.c: Some hacks and fixes so that it basically
works when not sitting in the GTK+ build tree.
2000-05-03 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
Properly determine the ordering of the tag root and the current
line within the tree. Previous algorithm only worked if the tag
root's immediate parent was the common root of both the current
line and the tag root.
Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (set_para_values): Fix some bugs in
alignment.
* gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
the widget text directional dynamically.
* gtk/gtktextview.[ch]: Added functions to get and set default
wrap mode.
Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
in cursor location computation.
Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
vadjusment values properly when layout gets smaller.
* gtk/gtktextview.c (need_repaint_handler): Areas being
passed in are far completely inaccurate, and sometimes
too small, so, for now, just queue a redraw on the
whole visible region.
2000-04-25 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbtree.c (summary_destroy): new function to
destroy tag summary nodes
(gtk_text_line_next_could_contain_tag): this function was
totally broken if the line passed in wasn't below the tag
root. Fix it.
(gtk_text_btree_first_could_contain_tag): In the tag == NULL
"wildcard" case, we have to do a linear scan. Blah.
(gtk_text_btree_last_could_contain_tag): In tag == NULL case,
we have to do the linear scan
(tag_removed_cb): When a tag is removed from the tag table,
remove the GtkTextTagInfo node from the btree.
(gtk_text_btree_spew): Implement the spew function, for
our debugging pleasure.
Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
a problem with referring to the wrong buffer.
* gtk/gtkentry.c: Fix focus-in/focus-out confusion.
* gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
font description to gtk_style_new() - otherwise things
don't work without a .gtkrc file.
* gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
tags table if we create it ourself, too.
* gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
it was conflicting with XKB modifiers.
* gtk/gtktextview.[ch]: Add simple support for
GtkIMContext.
Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
with deletion from last commit.
Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
in the context from the current locale.
* gtk/gtkentry.c (gtk_entry_size_request): Use language from the
context, not hardcoded value.
* gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
not logical.
Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
attributes - that doesn't handle partial-glyph selection
properly. Instead use new pango_layout_line_get_x_ranges()
functionality to draw the selection.
* gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
now properly handles out-of-range coordinates.
* gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
* gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
public.
* gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
for paragraphs opposite to the base direction of the widget.
* gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
* gtk/gtktextlayout.c: Don't split segments on marks, since that
causes Arabic words to reshape as you cursor through.
* gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
cursor position when moving vertically with the arrow keys and
scrolling with page-up/page-down. (Arrow keys save only the X,
scrolling saves both X and Y.)
This means you can line-up / line-down or page-up / page-down
without losing your place, and also that moving vertically
with the cursor keys keeps the same X position, not the same
character count:
* gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
arrow keys move by display lines, not paragraphs.
Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtklayout.c: Make sure that the bin window is at least
as big as the allocation. (Should we also make sure that the
bin window is big enough to completely cover widget->window?)
* gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
function to get the onscreen rectangle.
* gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
for offsets in window coordinates.
Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
confusion.
* gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
from the widget direction.
* gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
Add a "direction" attribute.
* gtk/gtktextview.c: global s/tkxt/text_view/.
* gtk/testtext.c: Added long block of text in Arabic, to test out
the direction attributes. (Some problems with the shaping system
for arabic become obvious - like the fact the cursor splits words
into unjoined pieces.)
Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
* gtk/gtktextlayout.c: Fix up alignment.
* gtk/testtext.c: Add some tests for centering, wrapping.
Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
If we wrote GTK+-specific layout-render function this could just replace
the draw_layout() operation in the vtable.
* gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
pango_layout_get_cursor_pos() and use that function.
* gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
is a non-static symbol.
* gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
with gtk_text_btree_find_line_by_y()
* gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
renderer that handles GtkTextAppearance attributes.
* gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
- Move the values in the style that don't affect geometry into a
GtkTextAppearance structure.
- Change underline to take a PangoUnderline and "font" a string
representation of a font description
- Add a "font_desc" attribute which takes a FontDescription structure.
* gtk/gtktextlayout.[ch]:
- Get rid of the display-line list per each line. Instead, we
generate, on demand, a GtkTextLineDisplay structure which]
contains a PangoLayout * and other necesary information
(offsets, cursor locations) for displaying a paragraph.
- Get rid of the code to wrap lines, create display chunks,
etc. Instead, we just go through a paragraph and convert
it into the necessary inputs to a PangoLayout.
- Implement a new attribute type, GtkTextAttrAppearance. This
holds a GtkTextAppearance, and is used to pass colors,
stipple, etc, through from the layout to the display without
having to use lots and lots of individual attributes.
- Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
in terms of PangoLayout functions.
* gtk/gtktextview.c:
- Handle passing the necessary PangoContext to the layout
- Some fixups in painting to deal with the automatic backing store
and offsetting of GTK+-1.4
- Add a style_set handler so that the default style reacts
properly to theme changes.
* gtk/gtktext?*.[ch]: Random code-style fixes.
* gtk/testtext.c: Substitute in languages that Pango handles now for Thai
Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
in original form preparatory to Pango-ization and gdkimcontext-ization.
Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
so that we can derive from gtkimcontext in language bindings properly.
Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
Add a compose table including (almost) all the compose combinations
from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
data in the XIM implementation.
* gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
Moved functions to convert keyvalues from and to unicode here from
the win32 port and made them public.
Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontext.[ch]: Base class for new input context system
* gtk/gtkimmulticontext.[ch]: Proxy input context that allows
the real input context implementation to be loaded from modules
and switched on the fly.
* gtk/gtkcontextsimple.[ch]: Simple implementation of an input
context that just does direct keysymbol => unicode translation.
* gtk/gtkentry.[ch]: Start switching editing over to using
GtkInputContext. (No handling of preedit yet.)
Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
many substitutions. (klass should not be subsituted.)
Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
* configure.in: Add checks for Pango
* configure.in docs/Makefile.am: Add test for sgml2html
and allow 'make dist' without building html, but print out
warnings in that case. (For making snapshots)
* gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
Add Pango libraries and C flags
* gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
Add function (gdk_draw_layout) to draw a pango layout.
* gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
for getting Pango contexts for GDK.
* gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
* gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
editing.
* gtk/gtkentry.c: Hack in simple Hebrew input with direct
keysym => unicode translations. More languages can be added
here, but real input-method support is needed.
* docs/Changes-1.4.txt: Added note about entry behavior.
* gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
to set the reading direction for a widget and the global direction.
Add test which allows toggling the global direction. Two private
flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
* gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
* gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
* gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
underlining now handled by Pango.
* gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
to RCStyle and Style. (Having both this and the old font name and GdkFont
is temporary.)
* gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
convenience functions for creating contexts and layouts for widgets.
* gtk/testgtk.c: Enhance label tests with multilingual labels.
2000-06-02 03:14:07 +00:00
|
|
|
|
/* Reading directions for text */
|
2014-01-21 15:34:38 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkTextDirection:
|
|
|
|
|
* @GTK_TEXT_DIR_NONE: No direction.
|
|
|
|
|
* @GTK_TEXT_DIR_LTR: Left to right text direction.
|
|
|
|
|
* @GTK_TEXT_DIR_RTL: Right to left text direction.
|
|
|
|
|
*
|
|
|
|
|
* Reading directions for text.
|
|
|
|
|
*/
|
Remove all references to offscreen flag which was no longer used.
Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Remove all references to
offscreen flag which was no longer used.
* gtk/gtkprivate.h (enum): Remove unused flags and compress.
* gtk/gtkframe.c (gtk_frame_set_label_widget): Check
for non-null label_widget->parent.
* gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
which no longer was used.
* gdk/gdkpango.c (gdk_pango_context_get_info): make static.
* gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
for null arguments.
* gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
check for destroyed windows.
Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimmulticontext.c: Add a finalize method and unref
the slave context there.
* gtk/gtkinvisible.[ch]: Make reference counting behavior
identical to GtkWindow.
Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
* Makefile.am gdk/gdkpango.c: Copy the layout render function from
pangox to here, so we can write them independent of rendering
system, using GDK primitives.
* gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
since we have a rendering-system independent implementation in
terms of draw_glyphs().
* gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
function to render a single line.
* gdk/x11/gdkpango.c: Move the guts of this file mostly
into ../gdkpango.c, which simplifies things, since we
don't have to deal with raw X gc's.
Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
get the logical attributes for a given GtkTextLine.
Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
g_locale_get_codeset() to g_get_codeset() change.
Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
* gtk/testcalendar.c (calendar_font_selection_ok): Use font
descriptions.
* gtk/gtkentry.c (gtk_entry_draw_text): Center text within
the entry.
* gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
redoing (vastly simplifying) for Pango. Still needs quite
a bit of work. (Size selection is currently poor. List of
predefined sizes is not a good idea, since all of these
sizes won't necessarily be distinct.)
Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
CODESET results for LANG=C.
Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
which takes a stringized pango font description;
ignore the older 'font' and 'fontset' declarations.
* gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
field with a GdkFont derived via gdk_font_from_description(),
for compatibility. (Should we just remove it entirely?
Probably too much compatibility breakage, but people
should be migrating to the new Pango stuff as quickly
as possible.)
Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalender.c: Roughly pango-ized. Really needs
redoing; there are some bugs in size allocation right
now, the semi-existant distinction between header / day
fonts was removed, but, with Pango, could actually
be made functional in a nice way.
* gtk/testcalender: Move calender from examples into this
directory as a test program. (We really need to restrcture
testgtk into a whole directory full of tests for every
widget or functionality group, separated into multiple .c
files.)
Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/testgtk.c (file_exists): Fix stupid typo that
was keeping RC file from being loaded.
* gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
RC file font code.
Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
Add function to load a GdkFont from a PangoFontDescription.
Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
* gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
to have any widget for the label, use a GtkLabel widget
to display the text. (Based partially on a patch from
Anders Carlson.)
(Quite a bit of code reorganization - strip 90% of the
guts out of gtkaspectframe and add a single virtual
func to GtkFrameClass - compute_child_allocation.)
Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
(Removed clist->row_center_offset field because caching
it wasn't saving time or code, added private function
_gtk_clist_create_cell_layout()).
Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkaccellabel.c: Pangoized.
* gtk/[hv]ruler.c: Pangoized
Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_init):
Use gtk_clist_set_column_auto_resize() to remove need
need for manual column width computations.
Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
ensuring Pango correctness, and considerably simplifying the
code.
* gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
* gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
getting of numbers of lines.
* gtk/gtklabel.c (gtk_label_size_request): Set the requisition
to the actual requested width of the lable, not to the wrap
width we set.
* gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
* gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
* gtk/gtktextview.c: Fix structure inheritance.
* gtk/gtkprogressbar.c: Pangoize.
Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
in a function.
* gtk/gtktextlayout.c (find_display_line_above): Fixed
bug with computing line tops.
* gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
and y_offset coordinates to do what we need now. (The offset between
buffer and layout coordinates has been reintroduced, but is a
bit different than before.)
* gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
handle the adjustments ourselves, and scroll as necessary using
the new gdk_window_scroll().
The advantage of this is that when we are incrementally revalidating,
we are essentially rearranging things around the visible portion
of the screen. With the old setup, the visible portion of the
screen was moved around in the layout, so scrolling and redrawing
to track that caused jumping of the display. Since we now
control the scrolling ourselves, we can suppress this and
only redraw when things actually change.
Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
the region not just redisplay it after-all, since we store the
cursors in the LineDisplay. (Ugly interactions here between
GtkLayout and GtkTextBTree here.)
* gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
Added function to scroll contents of a window while keeping the
window constant. Works by XCopyArea or guffaw-scrolling depending
on the details of how the window is set up. (guffaw-scrolling
still needs to be filled in.)
Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
move the debugging that was tied to a global variable
to that.
* gtk/gtkmarshal.list: Add NONE:INT,INT,INT
* gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
validated flag, in line data instead of setting height/width to
-1. This allows us to perform operations with partially invalid
buffer (using the old size for invalid lines) and thus to do
incremental vaidation. Keep height/width aggregates up to date
when deleting text and rebalancing the tree.
* gtk/gtktextbtree.[ch]: Add functions validate a line
(gtk_text_btree_validate_line), and to validate up
to a number of pixels (gtk_text_btree_validate).
* gtk/gtktextlayout.[ch]: Add an ::invalidated signal
that indicates that something is changed and a revalidation
pass is needed. Change ::need_repaint to ::changed, and
make it take old and new yranges instead of a rectangle.
* gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
the line_data_destroy() function from
gtk_text_btree_add_view() to a virtual function in
GtkTextLayout
* gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
since we are handling partial repaints in a different fashion
now.
* gtk/gtktextbtree.[ch]: Only repaint the changed portion
of the selection instead of queueing a repaint on the
entire widget.
* gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
get_selection_bounds() down to btree, make the function
in buffer a wrapper around the btree function.
* gtk/gtktextlayout.[ch]: Add functions to check if the
layout is valid and to recompute either a range of pixels
aroudn a line or a certain total number of pixels.
* gtk/gtktextlayout.[ch]: Cache a single line display;
now that we only redraw the needed portions, the hit rate
for this cache is quite high.
* gtk/gtktextview.[ch]: Keep track of the first paragraph
on the screen so that when re-laying-out the buffer, we can
keep the same place. This requires connecting to ::value_changed
on the adjustments
* gtk/gtktextview.[ch]: Add idle functions to revalidate
the buffer after we receive an ::invalidated signal.
Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
to max of allocation and layout size, not just to the
layout size.
* gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
Invalidate window so it gets redrawn properly.
* gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
to mean the entire window.
* gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
into public header.
Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
to get the name of a mark.
* gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
to find the paragraph from a y position.
Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
nodes have width/height >= 0, not > 0.
Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
Add a size_only flag, so when we only need the size, we don't create
useless appearance attributes.
* gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
duplicate setting of font description.
* gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
EXTRA_DIST. It does not work well when the file that
everything depends on is not in the tarball.
Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
* gtk/testgtk.c: Some hacks and fixes so that it basically
works when not sitting in the GTK+ build tree.
2000-05-03 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
Properly determine the ordering of the tag root and the current
line within the tree. Previous algorithm only worked if the tag
root's immediate parent was the common root of both the current
line and the tag root.
Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (set_para_values): Fix some bugs in
alignment.
* gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
the widget text directional dynamically.
* gtk/gtktextview.[ch]: Added functions to get and set default
wrap mode.
Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
in cursor location computation.
Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
vadjusment values properly when layout gets smaller.
* gtk/gtktextview.c (need_repaint_handler): Areas being
passed in are far completely inaccurate, and sometimes
too small, so, for now, just queue a redraw on the
whole visible region.
2000-04-25 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbtree.c (summary_destroy): new function to
destroy tag summary nodes
(gtk_text_line_next_could_contain_tag): this function was
totally broken if the line passed in wasn't below the tag
root. Fix it.
(gtk_text_btree_first_could_contain_tag): In the tag == NULL
"wildcard" case, we have to do a linear scan. Blah.
(gtk_text_btree_last_could_contain_tag): In tag == NULL case,
we have to do the linear scan
(tag_removed_cb): When a tag is removed from the tag table,
remove the GtkTextTagInfo node from the btree.
(gtk_text_btree_spew): Implement the spew function, for
our debugging pleasure.
Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
a problem with referring to the wrong buffer.
* gtk/gtkentry.c: Fix focus-in/focus-out confusion.
* gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
font description to gtk_style_new() - otherwise things
don't work without a .gtkrc file.
* gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
tags table if we create it ourself, too.
* gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
it was conflicting with XKB modifiers.
* gtk/gtktextview.[ch]: Add simple support for
GtkIMContext.
Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
with deletion from last commit.
Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
in the context from the current locale.
* gtk/gtkentry.c (gtk_entry_size_request): Use language from the
context, not hardcoded value.
* gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
not logical.
Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
attributes - that doesn't handle partial-glyph selection
properly. Instead use new pango_layout_line_get_x_ranges()
functionality to draw the selection.
* gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
now properly handles out-of-range coordinates.
* gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
* gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
public.
* gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
for paragraphs opposite to the base direction of the widget.
* gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
* gtk/gtktextlayout.c: Don't split segments on marks, since that
causes Arabic words to reshape as you cursor through.
* gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
cursor position when moving vertically with the arrow keys and
scrolling with page-up/page-down. (Arrow keys save only the X,
scrolling saves both X and Y.)
This means you can line-up / line-down or page-up / page-down
without losing your place, and also that moving vertically
with the cursor keys keeps the same X position, not the same
character count:
* gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
arrow keys move by display lines, not paragraphs.
Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtklayout.c: Make sure that the bin window is at least
as big as the allocation. (Should we also make sure that the
bin window is big enough to completely cover widget->window?)
* gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
function to get the onscreen rectangle.
* gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
for offsets in window coordinates.
Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
confusion.
* gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
from the widget direction.
* gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
Add a "direction" attribute.
* gtk/gtktextview.c: global s/tkxt/text_view/.
* gtk/testtext.c: Added long block of text in Arabic, to test out
the direction attributes. (Some problems with the shaping system
for arabic become obvious - like the fact the cursor splits words
into unjoined pieces.)
Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
* gtk/gtktextlayout.c: Fix up alignment.
* gtk/testtext.c: Add some tests for centering, wrapping.
Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
If we wrote GTK+-specific layout-render function this could just replace
the draw_layout() operation in the vtable.
* gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
pango_layout_get_cursor_pos() and use that function.
* gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
is a non-static symbol.
* gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
with gtk_text_btree_find_line_by_y()
* gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
renderer that handles GtkTextAppearance attributes.
* gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
- Move the values in the style that don't affect geometry into a
GtkTextAppearance structure.
- Change underline to take a PangoUnderline and "font" a string
representation of a font description
- Add a "font_desc" attribute which takes a FontDescription structure.
* gtk/gtktextlayout.[ch]:
- Get rid of the display-line list per each line. Instead, we
generate, on demand, a GtkTextLineDisplay structure which]
contains a PangoLayout * and other necesary information
(offsets, cursor locations) for displaying a paragraph.
- Get rid of the code to wrap lines, create display chunks,
etc. Instead, we just go through a paragraph and convert
it into the necessary inputs to a PangoLayout.
- Implement a new attribute type, GtkTextAttrAppearance. This
holds a GtkTextAppearance, and is used to pass colors,
stipple, etc, through from the layout to the display without
having to use lots and lots of individual attributes.
- Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
in terms of PangoLayout functions.
* gtk/gtktextview.c:
- Handle passing the necessary PangoContext to the layout
- Some fixups in painting to deal with the automatic backing store
and offsetting of GTK+-1.4
- Add a style_set handler so that the default style reacts
properly to theme changes.
* gtk/gtktext?*.[ch]: Random code-style fixes.
* gtk/testtext.c: Substitute in languages that Pango handles now for Thai
Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
in original form preparatory to Pango-ization and gdkimcontext-ization.
Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
so that we can derive from gtkimcontext in language bindings properly.
Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
Add a compose table including (almost) all the compose combinations
from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
data in the XIM implementation.
* gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
Moved functions to convert keyvalues from and to unicode here from
the win32 port and made them public.
Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontext.[ch]: Base class for new input context system
* gtk/gtkimmulticontext.[ch]: Proxy input context that allows
the real input context implementation to be loaded from modules
and switched on the fly.
* gtk/gtkcontextsimple.[ch]: Simple implementation of an input
context that just does direct keysymbol => unicode translation.
* gtk/gtkentry.[ch]: Start switching editing over to using
GtkInputContext. (No handling of preedit yet.)
Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
many substitutions. (klass should not be subsituted.)
Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
* configure.in: Add checks for Pango
* configure.in docs/Makefile.am: Add test for sgml2html
and allow 'make dist' without building html, but print out
warnings in that case. (For making snapshots)
* gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
Add Pango libraries and C flags
* gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
Add function (gdk_draw_layout) to draw a pango layout.
* gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
for getting Pango contexts for GDK.
* gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
* gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
editing.
* gtk/gtkentry.c: Hack in simple Hebrew input with direct
keysym => unicode translations. More languages can be added
here, but real input-method support is needed.
* docs/Changes-1.4.txt: Added note about entry behavior.
* gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
to set the reading direction for a widget and the global direction.
Add test which allows toggling the global direction. Two private
flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
* gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
* gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
* gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
underlining now handled by Pango.
* gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
to RCStyle and Style. (Having both this and the old font name and GdkFont
is temporary.)
* gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
convenience functions for creating contexts and layouts for widgets.
* gtk/testgtk.c: Enhance label tests with multilingual labels.
2000-06-02 03:14:07 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_TEXT_DIR_NONE,
|
2000-06-02 17:02:16 +00:00
|
|
|
|
GTK_TEXT_DIR_LTR,
|
|
|
|
|
GTK_TEXT_DIR_RTL
|
Remove all references to offscreen flag which was no longer used.
Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Remove all references to
offscreen flag which was no longer used.
* gtk/gtkprivate.h (enum): Remove unused flags and compress.
* gtk/gtkframe.c (gtk_frame_set_label_widget): Check
for non-null label_widget->parent.
* gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
which no longer was used.
* gdk/gdkpango.c (gdk_pango_context_get_info): make static.
* gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
for null arguments.
* gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
check for destroyed windows.
Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimmulticontext.c: Add a finalize method and unref
the slave context there.
* gtk/gtkinvisible.[ch]: Make reference counting behavior
identical to GtkWindow.
Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
* Makefile.am gdk/gdkpango.c: Copy the layout render function from
pangox to here, so we can write them independent of rendering
system, using GDK primitives.
* gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
since we have a rendering-system independent implementation in
terms of draw_glyphs().
* gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
function to render a single line.
* gdk/x11/gdkpango.c: Move the guts of this file mostly
into ../gdkpango.c, which simplifies things, since we
don't have to deal with raw X gc's.
Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
get the logical attributes for a given GtkTextLine.
Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
g_locale_get_codeset() to g_get_codeset() change.
Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
* gtk/testcalendar.c (calendar_font_selection_ok): Use font
descriptions.
* gtk/gtkentry.c (gtk_entry_draw_text): Center text within
the entry.
* gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
redoing (vastly simplifying) for Pango. Still needs quite
a bit of work. (Size selection is currently poor. List of
predefined sizes is not a good idea, since all of these
sizes won't necessarily be distinct.)
Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
CODESET results for LANG=C.
Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
which takes a stringized pango font description;
ignore the older 'font' and 'fontset' declarations.
* gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
field with a GdkFont derived via gdk_font_from_description(),
for compatibility. (Should we just remove it entirely?
Probably too much compatibility breakage, but people
should be migrating to the new Pango stuff as quickly
as possible.)
Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalender.c: Roughly pango-ized. Really needs
redoing; there are some bugs in size allocation right
now, the semi-existant distinction between header / day
fonts was removed, but, with Pango, could actually
be made functional in a nice way.
* gtk/testcalender: Move calender from examples into this
directory as a test program. (We really need to restrcture
testgtk into a whole directory full of tests for every
widget or functionality group, separated into multiple .c
files.)
Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/testgtk.c (file_exists): Fix stupid typo that
was keeping RC file from being loaded.
* gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
RC file font code.
Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
Add function to load a GdkFont from a PangoFontDescription.
Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
* gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
to have any widget for the label, use a GtkLabel widget
to display the text. (Based partially on a patch from
Anders Carlson.)
(Quite a bit of code reorganization - strip 90% of the
guts out of gtkaspectframe and add a single virtual
func to GtkFrameClass - compute_child_allocation.)
Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
(Removed clist->row_center_offset field because caching
it wasn't saving time or code, added private function
_gtk_clist_create_cell_layout()).
Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkaccellabel.c: Pangoized.
* gtk/[hv]ruler.c: Pangoized
Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilesel.c (gtk_file_selection_init):
Use gtk_clist_set_column_auto_resize() to remove need
need for manual column width computations.
Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
ensuring Pango correctness, and considerably simplifying the
code.
* gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
* gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
getting of numbers of lines.
* gtk/gtklabel.c (gtk_label_size_request): Set the requisition
to the actual requested width of the lable, not to the wrap
width we set.
* gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
* gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
* gtk/gtktextview.c: Fix structure inheritance.
* gtk/gtkprogressbar.c: Pangoize.
Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
in a function.
* gtk/gtktextlayout.c (find_display_line_above): Fixed
bug with computing line tops.
* gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
and y_offset coordinates to do what we need now. (The offset between
buffer and layout coordinates has been reintroduced, but is a
bit different than before.)
* gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
handle the adjustments ourselves, and scroll as necessary using
the new gdk_window_scroll().
The advantage of this is that when we are incrementally revalidating,
we are essentially rearranging things around the visible portion
of the screen. With the old setup, the visible portion of the
screen was moved around in the layout, so scrolling and redrawing
to track that caused jumping of the display. Since we now
control the scrolling ourselves, we can suppress this and
only redraw when things actually change.
Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
the region not just redisplay it after-all, since we store the
cursors in the LineDisplay. (Ugly interactions here between
GtkLayout and GtkTextBTree here.)
* gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
Added function to scroll contents of a window while keeping the
window constant. Works by XCopyArea or guffaw-scrolling depending
on the details of how the window is set up. (guffaw-scrolling
still needs to be filled in.)
Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
move the debugging that was tied to a global variable
to that.
* gtk/gtkmarshal.list: Add NONE:INT,INT,INT
* gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
validated flag, in line data instead of setting height/width to
-1. This allows us to perform operations with partially invalid
buffer (using the old size for invalid lines) and thus to do
incremental vaidation. Keep height/width aggregates up to date
when deleting text and rebalancing the tree.
* gtk/gtktextbtree.[ch]: Add functions validate a line
(gtk_text_btree_validate_line), and to validate up
to a number of pixels (gtk_text_btree_validate).
* gtk/gtktextlayout.[ch]: Add an ::invalidated signal
that indicates that something is changed and a revalidation
pass is needed. Change ::need_repaint to ::changed, and
make it take old and new yranges instead of a rectangle.
* gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
the line_data_destroy() function from
gtk_text_btree_add_view() to a virtual function in
GtkTextLayout
* gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
since we are handling partial repaints in a different fashion
now.
* gtk/gtktextbtree.[ch]: Only repaint the changed portion
of the selection instead of queueing a repaint on the
entire widget.
* gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
get_selection_bounds() down to btree, make the function
in buffer a wrapper around the btree function.
* gtk/gtktextlayout.[ch]: Add functions to check if the
layout is valid and to recompute either a range of pixels
aroudn a line or a certain total number of pixels.
* gtk/gtktextlayout.[ch]: Cache a single line display;
now that we only redraw the needed portions, the hit rate
for this cache is quite high.
* gtk/gtktextview.[ch]: Keep track of the first paragraph
on the screen so that when re-laying-out the buffer, we can
keep the same place. This requires connecting to ::value_changed
on the adjustments
* gtk/gtktextview.[ch]: Add idle functions to revalidate
the buffer after we receive an ::invalidated signal.
Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
to max of allocation and layout size, not just to the
layout size.
* gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
Invalidate window so it gets redrawn properly.
* gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
to mean the entire window.
* gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
into public header.
Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
to get the name of a mark.
* gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
to find the paragraph from a y position.
Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
nodes have width/height >= 0, not > 0.
Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
Add a size_only flag, so when we only need the size, we don't create
useless appearance attributes.
* gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
duplicate setting of font description.
* gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
EXTRA_DIST. It does not work well when the file that
everything depends on is not in the tarball.
Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
* gtk/testgtk.c: Some hacks and fixes so that it basically
works when not sitting in the GTK+ build tree.
2000-05-03 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
Properly determine the ordering of the tag root and the current
line within the tree. Previous algorithm only worked if the tag
root's immediate parent was the common root of both the current
line and the tag root.
Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (set_para_values): Fix some bugs in
alignment.
* gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
the widget text directional dynamically.
* gtk/gtktextview.[ch]: Added functions to get and set default
wrap mode.
Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
in cursor location computation.
Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
vadjusment values properly when layout gets smaller.
* gtk/gtktextview.c (need_repaint_handler): Areas being
passed in are far completely inaccurate, and sometimes
too small, so, for now, just queue a redraw on the
whole visible region.
2000-04-25 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbtree.c (summary_destroy): new function to
destroy tag summary nodes
(gtk_text_line_next_could_contain_tag): this function was
totally broken if the line passed in wasn't below the tag
root. Fix it.
(gtk_text_btree_first_could_contain_tag): In the tag == NULL
"wildcard" case, we have to do a linear scan. Blah.
(gtk_text_btree_last_could_contain_tag): In tag == NULL case,
we have to do the linear scan
(tag_removed_cb): When a tag is removed from the tag table,
remove the GtkTextTagInfo node from the btree.
(gtk_text_btree_spew): Implement the spew function, for
our debugging pleasure.
Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
a problem with referring to the wrong buffer.
* gtk/gtkentry.c: Fix focus-in/focus-out confusion.
* gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
font description to gtk_style_new() - otherwise things
don't work without a .gtkrc file.
* gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
tags table if we create it ourself, too.
* gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
it was conflicting with XKB modifiers.
* gtk/gtktextview.[ch]: Add simple support for
GtkIMContext.
Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
with deletion from last commit.
Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
in the context from the current locale.
* gtk/gtkentry.c (gtk_entry_size_request): Use language from the
context, not hardcoded value.
* gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
not logical.
Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
attributes - that doesn't handle partial-glyph selection
properly. Instead use new pango_layout_line_get_x_ranges()
functionality to draw the selection.
* gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
now properly handles out-of-range coordinates.
* gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
* gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
public.
* gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
for paragraphs opposite to the base direction of the widget.
* gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
* gtk/gtktextlayout.c: Don't split segments on marks, since that
causes Arabic words to reshape as you cursor through.
* gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
cursor position when moving vertically with the arrow keys and
scrolling with page-up/page-down. (Arrow keys save only the X,
scrolling saves both X and Y.)
This means you can line-up / line-down or page-up / page-down
without losing your place, and also that moving vertically
with the cursor keys keeps the same X position, not the same
character count:
* gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
arrow keys move by display lines, not paragraphs.
Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtklayout.c: Make sure that the bin window is at least
as big as the allocation. (Should we also make sure that the
bin window is big enough to completely cover widget->window?)
* gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
function to get the onscreen rectangle.
* gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
for offsets in window coordinates.
Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
confusion.
* gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
from the widget direction.
* gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
Add a "direction" attribute.
* gtk/gtktextview.c: global s/tkxt/text_view/.
* gtk/testtext.c: Added long block of text in Arabic, to test out
the direction attributes. (Some problems with the shaping system
for arabic become obvious - like the fact the cursor splits words
into unjoined pieces.)
Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
* gtk/gtktextlayout.c: Fix up alignment.
* gtk/testtext.c: Add some tests for centering, wrapping.
Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
If we wrote GTK+-specific layout-render function this could just replace
the draw_layout() operation in the vtable.
* gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
pango_layout_get_cursor_pos() and use that function.
* gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
is a non-static symbol.
* gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
with gtk_text_btree_find_line_by_y()
* gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
renderer that handles GtkTextAppearance attributes.
* gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
- Move the values in the style that don't affect geometry into a
GtkTextAppearance structure.
- Change underline to take a PangoUnderline and "font" a string
representation of a font description
- Add a "font_desc" attribute which takes a FontDescription structure.
* gtk/gtktextlayout.[ch]:
- Get rid of the display-line list per each line. Instead, we
generate, on demand, a GtkTextLineDisplay structure which]
contains a PangoLayout * and other necesary information
(offsets, cursor locations) for displaying a paragraph.
- Get rid of the code to wrap lines, create display chunks,
etc. Instead, we just go through a paragraph and convert
it into the necessary inputs to a PangoLayout.
- Implement a new attribute type, GtkTextAttrAppearance. This
holds a GtkTextAppearance, and is used to pass colors,
stipple, etc, through from the layout to the display without
having to use lots and lots of individual attributes.
- Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
in terms of PangoLayout functions.
* gtk/gtktextview.c:
- Handle passing the necessary PangoContext to the layout
- Some fixups in painting to deal with the automatic backing store
and offsetting of GTK+-1.4
- Add a style_set handler so that the default style reacts
properly to theme changes.
* gtk/gtktext?*.[ch]: Random code-style fixes.
* gtk/testtext.c: Substitute in languages that Pango handles now for Thai
Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
in original form preparatory to Pango-ization and gdkimcontext-ization.
Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
so that we can derive from gtkimcontext in language bindings properly.
Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
Add a compose table including (almost) all the compose combinations
from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
data in the XIM implementation.
* gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
Moved functions to convert keyvalues from and to unicode here from
the win32 port and made them public.
Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimcontext.[ch]: Base class for new input context system
* gtk/gtkimmulticontext.[ch]: Proxy input context that allows
the real input context implementation to be loaded from modules
and switched on the fly.
* gtk/gtkcontextsimple.[ch]: Simple implementation of an input
context that just does direct keysymbol => unicode translation.
* gtk/gtkentry.[ch]: Start switching editing over to using
GtkInputContext. (No handling of preedit yet.)
Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
many substitutions. (klass should not be subsituted.)
Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
* configure.in: Add checks for Pango
* configure.in docs/Makefile.am: Add test for sgml2html
and allow 'make dist' without building html, but print out
warnings in that case. (For making snapshots)
* gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
Add Pango libraries and C flags
* gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
Add function (gdk_draw_layout) to draw a pango layout.
* gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
for getting Pango contexts for GDK.
* gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
* gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
editing.
* gtk/gtkentry.c: Hack in simple Hebrew input with direct
keysym => unicode translations. More languages can be added
here, but real input-method support is needed.
* docs/Changes-1.4.txt: Added note about entry behavior.
* gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
to set the reading direction for a widget and the global direction.
Add test which allows toggling the global direction. Two private
flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
* gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
* gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
* gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
underlining now handled by Pango.
* gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
to RCStyle and Style. (Having both this and the old font name and GdkFont
is temporary.)
* gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
convenience functions for creating contexts and layouts for widgets.
* gtk/testgtk.c: Enhance label tests with multilingual labels.
2000-06-02 03:14:07 +00:00
|
|
|
|
} GtkTextDirection;
|
|
|
|
|
|
2011-01-12 22:06:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkJustification:
|
|
|
|
|
* @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.
|
|
|
|
|
*
|
2020-08-05 01:17:49 +00:00
|
|
|
|
* Used for justifying the text inside a #GtkLabel widget.
|
2011-01-12 22:06:27 +00:00
|
|
|
|
*/
|
1997-11-24 22:37:52 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
1998-06-15 21:27:17 +00:00
|
|
|
|
GTK_JUSTIFY_LEFT,
|
|
|
|
|
GTK_JUSTIFY_RIGHT,
|
|
|
|
|
GTK_JUSTIFY_CENTER,
|
|
|
|
|
GTK_JUSTIFY_FILL
|
|
|
|
|
} GtkJustification;
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
|
|
2011-01-14 21:40:13 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkMenuDirectionType:
|
|
|
|
|
* @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
|
|
|
|
|
*
|
|
|
|
|
* An enumeration representing directional movements within a menu.
|
|
|
|
|
*/
|
Added gdk_text/string_extents() - too calculate all the metrics at once of
Tue Jul 21 12:42:01 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkfont.c: Added gdk_text/string_extents() -
too calculate all the metrics at once of a string, including
things which weren't calculated before.
* gtk/Makefile.am gtk/gtk.h gtk/gtktearoffmenu.[ch]: New
MenuItem type, that when put as the first thing in a
menu, makes the menu tearoff. Currently drawn as a
dashed line.
* gtk/gtkmenuitem.h gtk/gtkcheckmenuitem.c: Added a flag
"hide_on_activate" to the MenuItem class structure to allow
check and radio buttons to be changed with <Space> without
hiding the menu.
* gtk/gtkaccellabel.[ch]: Added new capabilities to set
a underline_group and underline_mods for the label -
accelerators added in the underline group matching
underline_mods will be displayed as an underline character.
This doesn't work - Save As needs to be underlined
as Save _As.
* gtk/gtkitemfactory.c:
- Create a AccelGroup for each MenuShell we create.
- If an '&' appears before a character 'c' in the path,
then make 'c' an accelerator in the menu's accel group,
and if the menuitem is menubar <alt>C an accelerator
in the itemfactory's accel group.
* gtk/gtklabel.[ch]: Add support for a pattern arg -
which is a string. If an '_' appears in this string,
the corresponding position in the label is underlined.
Add gtk_label_parse_uline() convenience function which
takes a string with embedded underlines, sets the
pattern and label, and returns the accelerator keyval.
* gtk/gtkmenu.[ch]: Make menus no longer a toplevel widget.
Instead, they create a GtkWindow and add themselves
to that. (When torn off, another new feature, they
create another GtkWindow to hold the torn off menu)
New function gtk_menu_set_tearoff_state()
* gtk/gtkenums.h gtk/gtkmenushell.[ch] gtk/gtkenums.h:
Added action signals for keyboard navigation of menus.
* gtk/gtkmenushell.c: Key press handler which activates
bindings for navigation, and accelerators, for handling
underline accelerators. Exported functions to select
and activate menu items in a menushell.
* gtk/testgtk.c: Added a new "Item Factory" test which
tests GtkItemFactory and the new keyboard navigation
of menus.
1998-08-12 16:49:13 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_MENU_DIR_PARENT,
|
|
|
|
|
GTK_MENU_DIR_CHILD,
|
|
|
|
|
GTK_MENU_DIR_NEXT,
|
|
|
|
|
GTK_MENU_DIR_PREV
|
|
|
|
|
} GtkMenuDirectionType;
|
|
|
|
|
|
2009-12-18 04:00:56 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkMessageType:
|
|
|
|
|
* @GTK_MESSAGE_INFO: Informational message
|
2013-03-04 22:47:21 +00:00
|
|
|
|
* @GTK_MESSAGE_WARNING: Non-fatal warning message
|
2009-12-18 04:00:56 +00:00
|
|
|
|
* @GTK_MESSAGE_QUESTION: Question requiring a choice
|
|
|
|
|
* @GTK_MESSAGE_ERROR: Fatal error message
|
2015-04-17 15:10:58 +00:00
|
|
|
|
* @GTK_MESSAGE_OTHER: None of the above
|
2009-12-18 04:00:56 +00:00
|
|
|
|
*
|
|
|
|
|
* The type of message being displayed in the dialog.
|
|
|
|
|
*/
|
2009-06-05 18:56:08 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_MESSAGE_INFO,
|
|
|
|
|
GTK_MESSAGE_WARNING,
|
|
|
|
|
GTK_MESSAGE_QUESTION,
|
|
|
|
|
GTK_MESSAGE_ERROR,
|
|
|
|
|
GTK_MESSAGE_OTHER
|
|
|
|
|
} GtkMessageType;
|
|
|
|
|
|
2010-05-25 13:42:09 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkMovementStep:
|
|
|
|
|
* @GTK_MOVEMENT_LOGICAL_POSITIONS: Move forward or back by graphemes
|
|
|
|
|
* @GTK_MOVEMENT_VISUAL_POSITIONS: Move left or right by graphemes
|
|
|
|
|
* @GTK_MOVEMENT_WORDS: Move forward or back by words
|
|
|
|
|
* @GTK_MOVEMENT_DISPLAY_LINES: Move up or down lines (wrapped lines)
|
|
|
|
|
* @GTK_MOVEMENT_DISPLAY_LINE_ENDS: Move to either end of a line
|
|
|
|
|
* @GTK_MOVEMENT_PARAGRAPHS: Move up or down paragraphs (newline-ended lines)
|
|
|
|
|
* @GTK_MOVEMENT_PARAGRAPH_ENDS: Move to either end of a paragraph
|
|
|
|
|
* @GTK_MOVEMENT_PAGES: Move by pages
|
|
|
|
|
* @GTK_MOVEMENT_BUFFER_ENDS: Move to ends of the buffer
|
|
|
|
|
* @GTK_MOVEMENT_HORIZONTAL_PAGES: Move horizontally by pages
|
|
|
|
|
*/
|
2008-04-18 15:34:50 +00:00
|
|
|
|
typedef enum
|
2003-07-18 18:52:03 +00:00
|
|
|
|
{
|
2010-05-25 13:42:09 +00:00
|
|
|
|
GTK_MOVEMENT_LOGICAL_POSITIONS,
|
|
|
|
|
GTK_MOVEMENT_VISUAL_POSITIONS,
|
|
|
|
|
GTK_MOVEMENT_WORDS,
|
|
|
|
|
GTK_MOVEMENT_DISPLAY_LINES,
|
|
|
|
|
GTK_MOVEMENT_DISPLAY_LINE_ENDS,
|
|
|
|
|
GTK_MOVEMENT_PARAGRAPHS,
|
|
|
|
|
GTK_MOVEMENT_PARAGRAPH_ENDS,
|
|
|
|
|
GTK_MOVEMENT_PAGES,
|
|
|
|
|
GTK_MOVEMENT_BUFFER_ENDS,
|
|
|
|
|
GTK_MOVEMENT_HORIZONTAL_PAGES
|
Remove g_convert (moved to glib) and now useless utf_to_latin1()
Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtktexttypes.[ch]: Remove g_convert (moved to
glib) and now useless utf_to_latin1() latin1_to_utf()
* gtk/gtktextview.[ch]: Change ::move_insert and
::delete_text action signals to ::move and ::delete;
create the signals with the right enumeration type,
not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
C-v bindings, change Home, End to move to beginning/end
of line, Add C-Home C-End to move to beginning/end
of buffer. Change ::cut_text to ::cut_clipboard, etc;
combine ::scroll_text into ::move; use new GtkSelectionData
functions to simplify DND text handling.
* gtk/gtkenums.h gtk/gtktextview.h: Move movement,
deletion enumerations here, rename enumeration values to
be consistently plural.
* gtk/gtktextbuffer.c: Use new clipboard interfaces
for cut/copy/paste and primary selection.
* gtk/gtktextbuffer.[ch]: Remove excess time and
'interactive' arguments from cut/copy/paste;
rename cut to cut_clipboard, etc; remove
gtk_text_buffer_get_clipboard_contents().
* gtk/gtktextlayout.[ch]: Add
gtk_text_layout_move_iter_to_line_end() to move the iter to
line ends.
* gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
Functions to set or get a UTF-8 string on the selection
data.
* gtk/gtkclipboard.[ch]: New, simplified selection handling
interfaces.
* gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
created widgets - one of these is useless if we don't.
* gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
a public function clear all targets registered for the
widget.
* gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
Never call gtk_widget_realize() - that was just asking
for bizarre side-effects.
* gtk/gtkselection.c (gtk_selection_owner_set): Call
gdk_selection_owner_set even if the widget is the
same so that we reliably update the timestamp on
the server.
* gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
gdk_x11_get_server_time() function.
* gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
Add some tricky filtering on serial numbers for
selection clear events to fix up long-standard
race condition FIXME's in gtkselection.c.
* gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
routines to convert from utf8 to compound text or
STRING and from a text property to UTF-8.
* gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
a convenience function gdk_get_current_event_time().
* gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
and free selection_data->data properly
2000-09-14 16:41:20 +00:00
|
|
|
|
} GtkMovementStep;
|
|
|
|
|
|
2014-01-21 17:06:24 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkScrollStep:
|
|
|
|
|
* @GTK_SCROLL_STEPS: Scroll in steps.
|
|
|
|
|
* @GTK_SCROLL_PAGES: Scroll by pages.
|
|
|
|
|
* @GTK_SCROLL_ENDS: Scroll to ends.
|
|
|
|
|
* @GTK_SCROLL_HORIZONTAL_STEPS: Scroll in horizontal steps.
|
|
|
|
|
* @GTK_SCROLL_HORIZONTAL_PAGES: Scroll by horizontal pages.
|
|
|
|
|
* @GTK_SCROLL_HORIZONTAL_ENDS: Scroll to the horizontal ends.
|
|
|
|
|
*/
|
2008-04-18 15:34:50 +00:00
|
|
|
|
typedef enum
|
2003-07-18 18:52:03 +00:00
|
|
|
|
{
|
|
|
|
|
GTK_SCROLL_STEPS,
|
|
|
|
|
GTK_SCROLL_PAGES,
|
|
|
|
|
GTK_SCROLL_ENDS,
|
|
|
|
|
GTK_SCROLL_HORIZONTAL_STEPS,
|
|
|
|
|
GTK_SCROLL_HORIZONTAL_PAGES,
|
|
|
|
|
GTK_SCROLL_HORIZONTAL_ENDS
|
|
|
|
|
} GtkScrollStep;
|
|
|
|
|
|
2011-01-12 22:06:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkOrientation:
|
2014-05-26 09:58:18 +00:00
|
|
|
|
* @GTK_ORIENTATION_HORIZONTAL: The element is in horizontal orientation.
|
|
|
|
|
* @GTK_ORIENTATION_VERTICAL: The element is in vertical orientation.
|
2011-01-12 22:06:27 +00:00
|
|
|
|
*
|
2014-05-26 09:58:18 +00:00
|
|
|
|
* Represents the orientation of widgets and other objects which can be switched
|
2020-02-03 04:42:34 +00:00
|
|
|
|
* between horizontal and vertical orientation on the fly, like #GtkBox or
|
2014-05-26 09:58:18 +00:00
|
|
|
|
* #GtkGesturePan.
|
2011-01-12 22:06:27 +00:00
|
|
|
|
*/
|
1997-11-24 22:37:52 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
1998-06-15 21:27:17 +00:00
|
|
|
|
GTK_ORIENTATION_HORIZONTAL,
|
|
|
|
|
GTK_ORIENTATION_VERTICAL
|
|
|
|
|
} GtkOrientation;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
2019-02-08 17:02:40 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkOverflow:
|
|
|
|
|
* @GTK_OVERFLOW_VISIBLE: No change is applied. Content is drawn at the specified
|
|
|
|
|
* position.
|
|
|
|
|
* @GTK_OVERFLOW_HIDDEN: Content is clipped to the bounds of the area. Content
|
|
|
|
|
* outside the area is not drawn and cannot be interacted with.
|
|
|
|
|
*
|
|
|
|
|
* Defines how content overflowing a given area should be handled, such as
|
|
|
|
|
* with gtk_widget_set_overflow(). This property is modeled after the CSS overflow
|
|
|
|
|
* property, but implements it only partially.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_OVERFLOW_VISIBLE,
|
|
|
|
|
GTK_OVERFLOW_HIDDEN
|
|
|
|
|
} GtkOverflow;
|
|
|
|
|
|
2011-01-12 22:06:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPackType:
|
|
|
|
|
* @GTK_PACK_START: The child is packed into the start of the box
|
|
|
|
|
* @GTK_PACK_END: The child is packed into the end of the box
|
|
|
|
|
*
|
2019-02-04 17:44:55 +00:00
|
|
|
|
* Represents the packing location #GtkBox children
|
2011-01-12 22:06:27 +00:00
|
|
|
|
*/
|
1997-11-24 22:37:52 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
1998-06-15 21:27:17 +00:00
|
|
|
|
GTK_PACK_START,
|
|
|
|
|
GTK_PACK_END
|
|
|
|
|
} GtkPackType;
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
|
|
2011-01-12 22:06:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPositionType:
|
|
|
|
|
* @GTK_POS_LEFT: The feature is at the left edge.
|
|
|
|
|
* @GTK_POS_RIGHT: The feature is at the right edge.
|
|
|
|
|
* @GTK_POS_TOP: The feature is at the top edge.
|
|
|
|
|
* @GTK_POS_BOTTOM: The feature is at the bottom edge.
|
|
|
|
|
*
|
2020-08-05 01:17:49 +00:00
|
|
|
|
* Describes which edge of a widget a certain feature is positioned at, e.g.
|
|
|
|
|
* the tabs of a #GtkNotebook, or the label of a #GtkScale.
|
2011-01-12 22:06:27 +00:00
|
|
|
|
*/
|
1997-11-24 22:37:52 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
1998-06-15 21:27:17 +00:00
|
|
|
|
GTK_POS_LEFT,
|
|
|
|
|
GTK_POS_RIGHT,
|
|
|
|
|
GTK_POS_TOP,
|
|
|
|
|
GTK_POS_BOTTOM
|
|
|
|
|
} GtkPositionType;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
2014-01-21 17:06:24 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkScrollType:
|
|
|
|
|
* @GTK_SCROLL_NONE: No scrolling.
|
|
|
|
|
* @GTK_SCROLL_JUMP: Jump to new location.
|
|
|
|
|
* @GTK_SCROLL_STEP_BACKWARD: Step backward.
|
|
|
|
|
* @GTK_SCROLL_STEP_FORWARD: Step forward.
|
|
|
|
|
* @GTK_SCROLL_PAGE_BACKWARD: Page backward.
|
|
|
|
|
* @GTK_SCROLL_PAGE_FORWARD: Page forward.
|
|
|
|
|
* @GTK_SCROLL_STEP_UP: Step up.
|
|
|
|
|
* @GTK_SCROLL_STEP_DOWN: Step down.
|
|
|
|
|
* @GTK_SCROLL_PAGE_UP: Page up.
|
|
|
|
|
* @GTK_SCROLL_PAGE_DOWN: Page down.
|
|
|
|
|
* @GTK_SCROLL_STEP_LEFT: Step to the left.
|
|
|
|
|
* @GTK_SCROLL_STEP_RIGHT: Step to the right.
|
|
|
|
|
* @GTK_SCROLL_PAGE_LEFT: Page to the left.
|
|
|
|
|
* @GTK_SCROLL_PAGE_RIGHT: Page to the right.
|
|
|
|
|
* @GTK_SCROLL_START: Scroll to start.
|
|
|
|
|
* @GTK_SCROLL_END: Scroll to end.
|
|
|
|
|
*
|
|
|
|
|
* Scrolling types.
|
|
|
|
|
*/
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
1998-06-15 21:27:17 +00:00
|
|
|
|
GTK_SCROLL_NONE,
|
make this special-case hscale/vscale details, so we can use it for
2001-06-03 Havoc Pennington <hp@pobox.com>
* gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
hscale/vscale details, so we can use it for scrollbar as well.
* tests/testgtk.c (reformat_value): honor digits from GtkScale
* gtk/gtkenums.h (GtkTroughType): Remove this enum
(GtkScrollType): add START and END from GtkTroughType
* gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
its x/y arguments
* gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
Notable changes in the process:
- stepper_size style property is the height for vertical
ranges, width for horizontal; the other dimension matches
the trough size
- add ability to do NeXT-style steppers (and several other styles
that don't make any sense)
- added min_slider_length, fixed_slider_length properties to
GtkScrollbar
- cleaned some private (or at least useless) functions out of
gtkscale.h
- moved bindings to GtkScale from subclasses, even arrow keys,
since blind users don't know scale orientation.
- change move_slider action signal to use new GtkScrollType,
remove GtkTroughType argument
- digits rounds the values a range will input to the given
number of decimals, but will not try to force adjustment
values set by other controllers. That is, we no longer
modify adjustment->value inside a value_changed handler.
- added getters for GtkScale setters
- middle-click begins a slider drag
2001-06-04 02:31:12 +00:00
|
|
|
|
GTK_SCROLL_JUMP,
|
1998-06-15 21:27:17 +00:00
|
|
|
|
GTK_SCROLL_STEP_BACKWARD,
|
|
|
|
|
GTK_SCROLL_STEP_FORWARD,
|
|
|
|
|
GTK_SCROLL_PAGE_BACKWARD,
|
|
|
|
|
GTK_SCROLL_PAGE_FORWARD,
|
2001-02-19 20:06:37 +00:00
|
|
|
|
GTK_SCROLL_STEP_UP,
|
|
|
|
|
GTK_SCROLL_STEP_DOWN,
|
|
|
|
|
GTK_SCROLL_PAGE_UP,
|
|
|
|
|
GTK_SCROLL_PAGE_DOWN,
|
|
|
|
|
GTK_SCROLL_STEP_LEFT,
|
|
|
|
|
GTK_SCROLL_STEP_RIGHT,
|
|
|
|
|
GTK_SCROLL_PAGE_LEFT,
|
make this special-case hscale/vscale details, so we can use it for
2001-06-03 Havoc Pennington <hp@pobox.com>
* gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
hscale/vscale details, so we can use it for scrollbar as well.
* tests/testgtk.c (reformat_value): honor digits from GtkScale
* gtk/gtkenums.h (GtkTroughType): Remove this enum
(GtkScrollType): add START and END from GtkTroughType
* gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
its x/y arguments
* gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
Notable changes in the process:
- stepper_size style property is the height for vertical
ranges, width for horizontal; the other dimension matches
the trough size
- add ability to do NeXT-style steppers (and several other styles
that don't make any sense)
- added min_slider_length, fixed_slider_length properties to
GtkScrollbar
- cleaned some private (or at least useless) functions out of
gtkscale.h
- moved bindings to GtkScale from subclasses, even arrow keys,
since blind users don't know scale orientation.
- change move_slider action signal to use new GtkScrollType,
remove GtkTroughType argument
- digits rounds the values a range will input to the given
number of decimals, but will not try to force adjustment
values set by other controllers. That is, we no longer
modify adjustment->value inside a value_changed handler.
- added getters for GtkScale setters
- middle-click begins a slider drag
2001-06-04 02:31:12 +00:00
|
|
|
|
GTK_SCROLL_PAGE_RIGHT,
|
|
|
|
|
GTK_SCROLL_START,
|
|
|
|
|
GTK_SCROLL_END
|
1998-06-15 21:27:17 +00:00
|
|
|
|
} GtkScrollType;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
2011-01-12 22:06:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkSelectionMode:
|
|
|
|
|
* @GTK_SELECTION_NONE: No selection is possible.
|
|
|
|
|
* @GTK_SELECTION_SINGLE: Zero or one element may be selected.
|
2011-09-05 03:46:51 +00:00
|
|
|
|
* @GTK_SELECTION_BROWSE: Exactly one element is selected.
|
|
|
|
|
* In some circumstances, such as initially or during a search
|
2014-02-07 18:01:26 +00:00
|
|
|
|
* operation, it’s possible for no element to be selected with
|
2011-09-05 03:46:51 +00:00
|
|
|
|
* %GTK_SELECTION_BROWSE. What is really enforced is that the user
|
2014-02-07 18:32:47 +00:00
|
|
|
|
* can’t deselect a currently selected element except by selecting
|
2011-09-05 03:46:51 +00:00
|
|
|
|
* another element.
|
2011-01-12 22:06:27 +00:00
|
|
|
|
* @GTK_SELECTION_MULTIPLE: Any number of elements may be selected.
|
2011-09-05 03:46:51 +00:00
|
|
|
|
* The Ctrl key may be used to enlarge the selection, and Shift
|
|
|
|
|
* key to select between the focus and the child pointed to.
|
|
|
|
|
* Some widgets may also allow Click-drag to select a range of elements.
|
2011-01-12 22:06:27 +00:00
|
|
|
|
*
|
|
|
|
|
* Used to control what selections users are allowed to make.
|
|
|
|
|
*/
|
1997-11-27 19:21:42 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2011-01-12 22:06:27 +00:00
|
|
|
|
GTK_SELECTION_NONE,
|
1998-06-15 21:27:17 +00:00
|
|
|
|
GTK_SELECTION_SINGLE,
|
|
|
|
|
GTK_SELECTION_BROWSE,
|
2010-08-29 02:42:59 +00:00
|
|
|
|
GTK_SELECTION_MULTIPLE
|
1998-06-15 21:27:17 +00:00
|
|
|
|
} GtkSelectionMode;
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
1998-06-07 06:48:56 +00:00
|
|
|
|
/* Widget states */
|
2010-11-12 20:46:55 +00:00
|
|
|
|
|
2011-01-14 22:49:48 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkWrapMode:
|
|
|
|
|
* @GTK_WRAP_NONE: do not wrap lines; just make the text area wider
|
|
|
|
|
* @GTK_WRAP_CHAR: wrap text, breaking lines anywhere the cursor can
|
|
|
|
|
* appear (between characters, usually - if you want to be technical,
|
|
|
|
|
* between graphemes, see pango_get_log_attrs())
|
|
|
|
|
* @GTK_WRAP_WORD: wrap text, breaking lines in between words
|
|
|
|
|
* @GTK_WRAP_WORD_CHAR: wrap text, breaking lines in between words, or if
|
|
|
|
|
* that is not enough, also between graphemes
|
|
|
|
|
*
|
|
|
|
|
* Describes a type of line wrapping.
|
|
|
|
|
*/
|
2001-04-18 19:56:48 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_WRAP_NONE,
|
|
|
|
|
GTK_WRAP_CHAR,
|
2003-04-07 18:19:46 +00:00
|
|
|
|
GTK_WRAP_WORD,
|
|
|
|
|
GTK_WRAP_WORD_CHAR
|
2001-04-18 19:56:48 +00:00
|
|
|
|
} GtkWrapMode;
|
|
|
|
|
|
2011-01-12 22:06:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkSortType:
|
|
|
|
|
* @GTK_SORT_ASCENDING: Sorting is in ascending order.
|
|
|
|
|
* @GTK_SORT_DESCENDING: Sorting is in descending order.
|
|
|
|
|
*
|
|
|
|
|
* Determines the direction of a sort.
|
|
|
|
|
*/
|
1998-08-05 20:02:32 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_SORT_ASCENDING,
|
|
|
|
|
GTK_SORT_DESCENDING
|
|
|
|
|
} GtkSortType;
|
|
|
|
|
|
2014-01-21 16:42:49 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPrintPages:
|
|
|
|
|
* @GTK_PRINT_PAGES_ALL: All pages.
|
|
|
|
|
* @GTK_PRINT_PAGES_CURRENT: Current page.
|
|
|
|
|
* @GTK_PRINT_PAGES_RANGES: Range of pages.
|
|
|
|
|
* @GTK_PRINT_PAGES_SELECTION: Selected pages.
|
|
|
|
|
*
|
|
|
|
|
* See also gtk_print_job_set_pages()
|
|
|
|
|
*/
|
2008-04-18 15:34:50 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2006-04-21 15:09:32 +00:00
|
|
|
|
GTK_PRINT_PAGES_ALL,
|
|
|
|
|
GTK_PRINT_PAGES_CURRENT,
|
2009-06-08 13:37:32 +00:00
|
|
|
|
GTK_PRINT_PAGES_RANGES,
|
|
|
|
|
GTK_PRINT_PAGES_SELECTION
|
2006-04-21 15:09:32 +00:00
|
|
|
|
} GtkPrintPages;
|
|
|
|
|
|
2014-01-21 16:42:49 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPageSet:
|
|
|
|
|
* @GTK_PAGE_SET_ALL: All pages.
|
|
|
|
|
* @GTK_PAGE_SET_EVEN: Even pages.
|
|
|
|
|
* @GTK_PAGE_SET_ODD: Odd pages.
|
|
|
|
|
*
|
|
|
|
|
* See also gtk_print_job_set_page_set().
|
|
|
|
|
*/
|
2008-04-18 15:34:50 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2006-04-21 15:09:32 +00:00
|
|
|
|
GTK_PAGE_SET_ALL,
|
|
|
|
|
GTK_PAGE_SET_EVEN,
|
|
|
|
|
GTK_PAGE_SET_ODD
|
|
|
|
|
} GtkPageSet;
|
|
|
|
|
|
2011-04-17 23:00:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkNumberUpLayout:
|
2014-02-03 22:19:27 +00:00
|
|
|
|
* @GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM: ![](layout-lrtb.png)
|
|
|
|
|
* @GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP: ![](layout-lrbt.png)
|
|
|
|
|
* @GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM: ![](layout-rltb.png)
|
|
|
|
|
* @GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP: ![](layout-rlbt.png)
|
|
|
|
|
* @GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT: ![](layout-tblr.png)
|
|
|
|
|
* @GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT: ![](layout-tbrl.png)
|
|
|
|
|
* @GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT: ![](layout-btlr.png)
|
|
|
|
|
* @GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT: ![](layout-btrl.png)
|
2011-04-17 23:00:27 +00:00
|
|
|
|
*
|
|
|
|
|
* Used to determine the layout of pages on a sheet when printing
|
|
|
|
|
* multiple pages per sheet.
|
|
|
|
|
*/
|
2008-08-21 10:25:27 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2008-09-04 14:14:11 +00:00
|
|
|
|
GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM, /*< nick=lrtb >*/
|
|
|
|
|
GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP, /*< nick=lrbt >*/
|
|
|
|
|
GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM, /*< nick=rltb >*/
|
|
|
|
|
GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP, /*< nick=rlbt >*/
|
|
|
|
|
GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT, /*< nick=tblr >*/
|
|
|
|
|
GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT, /*< nick=tbrl >*/
|
|
|
|
|
GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT, /*< nick=btlr >*/
|
|
|
|
|
GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT /*< nick=btrl >*/
|
2008-08-21 10:25:27 +00:00
|
|
|
|
} GtkNumberUpLayout;
|
|
|
|
|
|
2019-12-12 04:16:31 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkOrdering:
|
|
|
|
|
* @GTK_ORDERING_SMALLER: the first value is smaller than the second
|
|
|
|
|
* @GTK_ORDERING_EQUAL: the two values are equal
|
|
|
|
|
* @GTK_ORDERING_LARGER: the first value is larger than the second
|
|
|
|
|
*
|
|
|
|
|
* Describes the way two values can be compared.
|
|
|
|
|
*
|
|
|
|
|
* These values can be used with a #GCompareFunc. However, a
|
|
|
|
|
* #GCompareFunc is allowed to return any integer values.
|
|
|
|
|
* For converting such a value to a #GtkOrdering, use
|
|
|
|
|
* gtk_ordering_from_cmpfunc().
|
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_ORDERING_SMALLER = -1,
|
|
|
|
|
GTK_ORDERING_EQUAL = 0,
|
|
|
|
|
GTK_ORDERING_LARGER = 1
|
|
|
|
|
} GtkOrdering;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* gtk_ordering_from_cmpfunc:
|
|
|
|
|
* @cmpfunc_result: Result of a comparison function
|
|
|
|
|
*
|
|
|
|
|
* Converts the result of a #GCompareFunc like strcmp() to a #GtkOrdering.
|
|
|
|
|
*
|
|
|
|
|
* Returns: the corresponding #GtkOrdering
|
|
|
|
|
**/
|
|
|
|
|
static inline GtkOrdering
|
|
|
|
|
gtk_ordering_from_cmpfunc (int cmpfunc_result)
|
|
|
|
|
{
|
|
|
|
|
return (GtkOrdering) ((cmpfunc_result > 0) - (cmpfunc_result < 0));
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-21 17:36:29 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPageOrientation:
|
|
|
|
|
* @GTK_PAGE_ORIENTATION_PORTRAIT: Portrait mode.
|
|
|
|
|
* @GTK_PAGE_ORIENTATION_LANDSCAPE: Landscape mode.
|
|
|
|
|
* @GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT: Reverse portrait mode.
|
|
|
|
|
* @GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE: Reverse landscape mode.
|
|
|
|
|
*
|
|
|
|
|
* See also gtk_print_settings_set_orientation().
|
|
|
|
|
*/
|
2008-04-18 15:34:50 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2006-04-21 15:09:32 +00:00
|
|
|
|
GTK_PAGE_ORIENTATION_PORTRAIT,
|
|
|
|
|
GTK_PAGE_ORIENTATION_LANDSCAPE,
|
|
|
|
|
GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT,
|
|
|
|
|
GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE
|
|
|
|
|
} GtkPageOrientation;
|
|
|
|
|
|
2014-01-21 17:36:29 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPrintQuality:
|
|
|
|
|
* @GTK_PRINT_QUALITY_LOW: Low quality.
|
|
|
|
|
* @GTK_PRINT_QUALITY_NORMAL: Normal quality.
|
|
|
|
|
* @GTK_PRINT_QUALITY_HIGH: High quality.
|
|
|
|
|
* @GTK_PRINT_QUALITY_DRAFT: Draft quality.
|
|
|
|
|
*
|
|
|
|
|
* See also gtk_print_settings_set_quality().
|
|
|
|
|
*/
|
2008-04-18 15:34:50 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2006-04-21 15:09:32 +00:00
|
|
|
|
GTK_PRINT_QUALITY_LOW,
|
|
|
|
|
GTK_PRINT_QUALITY_NORMAL,
|
|
|
|
|
GTK_PRINT_QUALITY_HIGH,
|
|
|
|
|
GTK_PRINT_QUALITY_DRAFT
|
|
|
|
|
} GtkPrintQuality;
|
|
|
|
|
|
2014-01-21 17:36:29 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPrintDuplex:
|
|
|
|
|
* @GTK_PRINT_DUPLEX_SIMPLEX: No duplex.
|
|
|
|
|
* @GTK_PRINT_DUPLEX_HORIZONTAL: Horizontal duplex.
|
|
|
|
|
* @GTK_PRINT_DUPLEX_VERTICAL: Vertical duplex.
|
|
|
|
|
*
|
|
|
|
|
* See also gtk_print_settings_set_duplex().
|
|
|
|
|
*/
|
2008-04-18 15:34:50 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2006-04-21 15:09:32 +00:00
|
|
|
|
GTK_PRINT_DUPLEX_SIMPLEX,
|
|
|
|
|
GTK_PRINT_DUPLEX_HORIZONTAL,
|
|
|
|
|
GTK_PRINT_DUPLEX_VERTICAL
|
|
|
|
|
} GtkPrintDuplex;
|
|
|
|
|
|
|
|
|
|
|
2014-01-21 17:36:29 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkUnit:
|
|
|
|
|
* @GTK_UNIT_NONE: No units.
|
|
|
|
|
* @GTK_UNIT_POINTS: Dimensions in points.
|
|
|
|
|
* @GTK_UNIT_INCH: Dimensions in inches.
|
|
|
|
|
* @GTK_UNIT_MM: Dimensions in millimeters
|
|
|
|
|
*
|
|
|
|
|
* See also gtk_print_settings_set_paper_width().
|
|
|
|
|
*/
|
2008-04-18 15:34:50 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2012-02-20 13:24:33 +00:00
|
|
|
|
GTK_UNIT_NONE,
|
2006-04-21 15:09:32 +00:00
|
|
|
|
GTK_UNIT_POINTS,
|
|
|
|
|
GTK_UNIT_INCH,
|
|
|
|
|
GTK_UNIT_MM
|
|
|
|
|
} GtkUnit;
|
|
|
|
|
|
2012-02-20 13:24:33 +00:00
|
|
|
|
#define GTK_UNIT_PIXEL GTK_UNIT_NONE
|
|
|
|
|
|
2010-11-06 02:04:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkTreeViewGridLines:
|
|
|
|
|
* @GTK_TREE_VIEW_GRID_LINES_NONE: No grid lines.
|
|
|
|
|
* @GTK_TREE_VIEW_GRID_LINES_HORIZONTAL: Horizontal grid lines.
|
|
|
|
|
* @GTK_TREE_VIEW_GRID_LINES_VERTICAL: Vertical grid lines.
|
|
|
|
|
* @GTK_TREE_VIEW_GRID_LINES_BOTH: Horizontal and vertical grid lines.
|
|
|
|
|
*
|
|
|
|
|
* Used to indicate which grid lines to draw in a tree view.
|
|
|
|
|
*/
|
2008-04-18 15:34:50 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell).
2006-06-12 Kristian Rietveld <kris@imendio.com>
Introduce grid and tree lines in GtkTreeView. (#106406,
Martyn Russell).
* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
* gtk/gtkenums.h: add GtkTreeViewGridLines.
* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
(gtk_tree_view_get_grid_lines),
(gtk_tree_view_set_enable_tree_lines),
(gtk_tree_view_get_enable_tree_lines): new API,
(gtk_tree_view_class_init): new properties,
(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
(gtk_tree_view_bin_expose): implement.
* gtk/gtk.symbols: update.
2006-06-12 18:17:35 +00:00
|
|
|
|
GTK_TREE_VIEW_GRID_LINES_NONE,
|
|
|
|
|
GTK_TREE_VIEW_GRID_LINES_HORIZONTAL,
|
|
|
|
|
GTK_TREE_VIEW_GRID_LINES_VERTICAL,
|
|
|
|
|
GTK_TREE_VIEW_GRID_LINES_BOTH
|
|
|
|
|
} GtkTreeViewGridLines;
|
|
|
|
|
|
2012-11-02 12:39:19 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkSizeGroupMode:
|
|
|
|
|
* @GTK_SIZE_GROUP_NONE: group has no effect
|
|
|
|
|
* @GTK_SIZE_GROUP_HORIZONTAL: group affects horizontal requisition
|
|
|
|
|
* @GTK_SIZE_GROUP_VERTICAL: group affects vertical requisition
|
|
|
|
|
* @GTK_SIZE_GROUP_BOTH: group affects both horizontal and vertical requisition
|
|
|
|
|
*
|
|
|
|
|
* The mode of the size group determines the directions in which the size
|
|
|
|
|
* group affects the requested sizes of its component widgets.
|
|
|
|
|
**/
|
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_SIZE_GROUP_NONE,
|
|
|
|
|
GTK_SIZE_GROUP_HORIZONTAL,
|
|
|
|
|
GTK_SIZE_GROUP_VERTICAL,
|
|
|
|
|
GTK_SIZE_GROUP_BOTH
|
|
|
|
|
} GtkSizeGroupMode;
|
|
|
|
|
|
2010-06-18 04:11:26 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkSizeRequestMode:
|
|
|
|
|
* @GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH: Prefer height-for-width geometry management
|
|
|
|
|
* @GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT: Prefer width-for-height geometry management
|
2014-02-07 18:32:47 +00:00
|
|
|
|
* @GTK_SIZE_REQUEST_CONSTANT_SIZE: Don’t trade height-for-width or width-for-height
|
2010-06-18 04:11:26 +00:00
|
|
|
|
*
|
|
|
|
|
* Specifies a preference for height-for-width or
|
|
|
|
|
* width-for-height geometry management.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH = 0,
|
2011-03-05 08:49:49 +00:00
|
|
|
|
GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT,
|
|
|
|
|
GTK_SIZE_REQUEST_CONSTANT_SIZE
|
2010-06-18 04:11:26 +00:00
|
|
|
|
} GtkSizeRequestMode;
|
|
|
|
|
|
2010-10-26 00:59:02 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkScrollablePolicy:
|
|
|
|
|
* @GTK_SCROLL_MINIMUM: Scrollable adjustments are based on the minimum size
|
|
|
|
|
* @GTK_SCROLL_NATURAL: Scrollable adjustments are based on the natural size
|
|
|
|
|
*
|
|
|
|
|
* Defines the policy to be used in a scrollable widget when updating
|
|
|
|
|
* the scrolled window adjustments in a given orientation.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_SCROLL_MINIMUM = 0,
|
|
|
|
|
GTK_SCROLL_NATURAL
|
|
|
|
|
} GtkScrollablePolicy;
|
|
|
|
|
|
2010-10-19 08:59:46 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkStateFlags:
|
2018-02-05 19:13:20 +00:00
|
|
|
|
* @GTK_STATE_FLAG_NORMAL: State during normal operation
|
|
|
|
|
* @GTK_STATE_FLAG_ACTIVE: Widget is active
|
|
|
|
|
* @GTK_STATE_FLAG_PRELIGHT: Widget has a mouse pointer over it
|
|
|
|
|
* @GTK_STATE_FLAG_SELECTED: Widget is selected
|
|
|
|
|
* @GTK_STATE_FLAG_INSENSITIVE: Widget is insensitive
|
|
|
|
|
* @GTK_STATE_FLAG_INCONSISTENT: Widget is inconsistent
|
|
|
|
|
* @GTK_STATE_FLAG_FOCUSED: Widget has the keyboard focus
|
|
|
|
|
* @GTK_STATE_FLAG_BACKDROP: Widget is in a background toplevel window
|
|
|
|
|
* @GTK_STATE_FLAG_DIR_LTR: Widget is in left-to-right text direction
|
|
|
|
|
* @GTK_STATE_FLAG_DIR_RTL: Widget is in right-to-left text direction
|
|
|
|
|
* @GTK_STATE_FLAG_LINK: Widget is a link
|
|
|
|
|
* @GTK_STATE_FLAG_VISITED: The location the widget points to has already been visited
|
|
|
|
|
* @GTK_STATE_FLAG_CHECKED: Widget is checked
|
|
|
|
|
* @GTK_STATE_FLAG_DROP_ACTIVE: Widget is highlighted as a drop target for DND
|
|
|
|
|
* @GTK_STATE_FLAG_FOCUS_VISIBLE: Widget has the visible focus
|
2020-04-16 05:36:13 +00:00
|
|
|
|
* @GTK_STATE_FLAG_FOCUS_WITHIN: Widget contains the keyboard focus
|
2010-10-19 08:59:46 +00:00
|
|
|
|
*
|
2012-12-18 15:42:04 +00:00
|
|
|
|
* Describes a widget state. Widget states are used to match the widget
|
|
|
|
|
* against CSS pseudo-classes. Note that GTK extends the regular CSS
|
|
|
|
|
* classes and sometimes uses different names.
|
2010-10-19 08:59:46 +00:00
|
|
|
|
*/
|
2010-03-09 23:52:57 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2017-08-29 02:22:08 +00:00
|
|
|
|
GTK_STATE_FLAG_NORMAL = 0,
|
|
|
|
|
GTK_STATE_FLAG_ACTIVE = 1 << 0,
|
|
|
|
|
GTK_STATE_FLAG_PRELIGHT = 1 << 1,
|
|
|
|
|
GTK_STATE_FLAG_SELECTED = 1 << 2,
|
|
|
|
|
GTK_STATE_FLAG_INSENSITIVE = 1 << 3,
|
|
|
|
|
GTK_STATE_FLAG_INCONSISTENT = 1 << 4,
|
|
|
|
|
GTK_STATE_FLAG_FOCUSED = 1 << 5,
|
|
|
|
|
GTK_STATE_FLAG_BACKDROP = 1 << 6,
|
|
|
|
|
GTK_STATE_FLAG_DIR_LTR = 1 << 7,
|
|
|
|
|
GTK_STATE_FLAG_DIR_RTL = 1 << 8,
|
|
|
|
|
GTK_STATE_FLAG_LINK = 1 << 9,
|
|
|
|
|
GTK_STATE_FLAG_VISITED = 1 << 10,
|
|
|
|
|
GTK_STATE_FLAG_CHECKED = 1 << 11,
|
|
|
|
|
GTK_STATE_FLAG_DROP_ACTIVE = 1 << 12,
|
2020-04-16 05:36:13 +00:00
|
|
|
|
GTK_STATE_FLAG_FOCUS_VISIBLE = 1 << 13,
|
|
|
|
|
GTK_STATE_FLAG_FOCUS_WITHIN = 1 << 14
|
2010-03-09 23:52:57 +00:00
|
|
|
|
} GtkStateFlags;
|
|
|
|
|
|
2010-11-22 02:49:08 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkBorderStyle:
|
|
|
|
|
* @GTK_BORDER_STYLE_NONE: No visible border
|
2020-01-29 09:34:28 +00:00
|
|
|
|
* @GTK_BORDER_STYLE_HIDDEN: Same as @GTK_BORDER_STYLE_NONE
|
2012-01-07 15:48:42 +00:00
|
|
|
|
* @GTK_BORDER_STYLE_SOLID: A single line segment
|
|
|
|
|
* @GTK_BORDER_STYLE_INSET: Looks as if the content is sunken into the canvas
|
|
|
|
|
* @GTK_BORDER_STYLE_OUTSET: Looks as if the content is coming out of the canvas
|
|
|
|
|
* @GTK_BORDER_STYLE_DOTTED: A series of round dots
|
|
|
|
|
* @GTK_BORDER_STYLE_DASHED: A series of square-ended dashes
|
2013-03-04 22:47:21 +00:00
|
|
|
|
* @GTK_BORDER_STYLE_DOUBLE: Two parallel lines with some space between them
|
2012-01-07 15:48:42 +00:00
|
|
|
|
* @GTK_BORDER_STYLE_GROOVE: Looks as if it were carved in the canvas
|
|
|
|
|
* @GTK_BORDER_STYLE_RIDGE: Looks as if it were coming out of the canvas
|
2010-11-22 02:49:08 +00:00
|
|
|
|
*
|
|
|
|
|
* Describes how the border of a UI element should be rendered.
|
|
|
|
|
*/
|
2010-10-22 08:38:21 +00:00
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_BORDER_STYLE_NONE,
|
2020-01-29 09:34:28 +00:00
|
|
|
|
GTK_BORDER_STYLE_HIDDEN,
|
2010-10-22 08:38:21 +00:00
|
|
|
|
GTK_BORDER_STYLE_SOLID,
|
|
|
|
|
GTK_BORDER_STYLE_INSET,
|
2012-01-07 15:48:42 +00:00
|
|
|
|
GTK_BORDER_STYLE_OUTSET,
|
|
|
|
|
GTK_BORDER_STYLE_DOTTED,
|
|
|
|
|
GTK_BORDER_STYLE_DASHED,
|
|
|
|
|
GTK_BORDER_STYLE_DOUBLE,
|
|
|
|
|
GTK_BORDER_STYLE_GROOVE,
|
|
|
|
|
GTK_BORDER_STYLE_RIDGE
|
2010-10-22 08:38:21 +00:00
|
|
|
|
} GtkBorderStyle;
|
2010-03-09 23:52:57 +00:00
|
|
|
|
|
2012-05-29 21:00:33 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkLevelBarMode:
|
|
|
|
|
* @GTK_LEVEL_BAR_MODE_CONTINUOUS: the bar has a continuous mode
|
|
|
|
|
* @GTK_LEVEL_BAR_MODE_DISCRETE: the bar has a discrete mode
|
|
|
|
|
*
|
|
|
|
|
* Describes how #GtkLevelBar contents should be rendered.
|
|
|
|
|
* Note that this enumeration could be extended with additional modes
|
|
|
|
|
* in the future.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_LEVEL_BAR_MODE_CONTINUOUS,
|
|
|
|
|
GTK_LEVEL_BAR_MODE_DISCRETE
|
|
|
|
|
} GtkLevelBarMode;
|
|
|
|
|
|
2005-02-11 07:15:11 +00:00
|
|
|
|
G_END_DECLS
|
1997-11-24 22:37:52 +00:00
|
|
|
|
|
2012-05-29 14:19:49 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkInputPurpose:
|
|
|
|
|
* @GTK_INPUT_PURPOSE_FREE_FORM: Allow any character
|
|
|
|
|
* @GTK_INPUT_PURPOSE_ALPHA: Allow only alphabetic characters
|
|
|
|
|
* @GTK_INPUT_PURPOSE_DIGITS: Allow only digits
|
|
|
|
|
* @GTK_INPUT_PURPOSE_NUMBER: Edited field expects numbers
|
|
|
|
|
* @GTK_INPUT_PURPOSE_PHONE: Edited field expects phone number
|
|
|
|
|
* @GTK_INPUT_PURPOSE_URL: Edited field expects URL
|
|
|
|
|
* @GTK_INPUT_PURPOSE_EMAIL: Edited field expects email address
|
|
|
|
|
* @GTK_INPUT_PURPOSE_NAME: Edited field expects the name of a person
|
|
|
|
|
* @GTK_INPUT_PURPOSE_PASSWORD: Like @GTK_INPUT_PURPOSE_FREE_FORM, but characters are hidden
|
|
|
|
|
* @GTK_INPUT_PURPOSE_PIN: Like @GTK_INPUT_PURPOSE_DIGITS, but characters are hidden
|
2019-12-12 14:37:51 +00:00
|
|
|
|
* @GTK_INPUT_PURPOSE_TERMINAL: Allow any character, in addition to control codes
|
2012-05-29 14:19:49 +00:00
|
|
|
|
*
|
|
|
|
|
* Describes primary purpose of the input widget. This information is
|
|
|
|
|
* useful for on-screen keyboards and similar input methods to decide
|
|
|
|
|
* which keys should be presented to the user.
|
|
|
|
|
*
|
|
|
|
|
* Note that the purpose is not meant to impose a totally strict rule
|
|
|
|
|
* about allowed characters, and does not replace input validation.
|
|
|
|
|
* It is fine for an on-screen keyboard to let the user override the
|
|
|
|
|
* character set restriction that is expressed by the purpose. The
|
|
|
|
|
* application is expected to validate the entry contents, even if
|
|
|
|
|
* it specified a purpose.
|
|
|
|
|
*
|
|
|
|
|
* The difference between @GTK_INPUT_PURPOSE_DIGITS and
|
|
|
|
|
* @GTK_INPUT_PURPOSE_NUMBER is that the former accepts only digits
|
|
|
|
|
* while the latter also some punctuation (like commas or points, plus,
|
2014-02-07 19:03:49 +00:00
|
|
|
|
* minus) and “e” or “E” as in 3.14E+000.
|
2012-05-29 14:19:49 +00:00
|
|
|
|
*
|
|
|
|
|
* This enumeration may be extended in the future; input methods should
|
2014-02-07 19:03:49 +00:00
|
|
|
|
* interpret unknown values as “free form”.
|
2012-05-29 14:19:49 +00:00
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_INPUT_PURPOSE_FREE_FORM,
|
|
|
|
|
GTK_INPUT_PURPOSE_ALPHA,
|
|
|
|
|
GTK_INPUT_PURPOSE_DIGITS,
|
|
|
|
|
GTK_INPUT_PURPOSE_NUMBER,
|
|
|
|
|
GTK_INPUT_PURPOSE_PHONE,
|
|
|
|
|
GTK_INPUT_PURPOSE_URL,
|
|
|
|
|
GTK_INPUT_PURPOSE_EMAIL,
|
|
|
|
|
GTK_INPUT_PURPOSE_NAME,
|
|
|
|
|
GTK_INPUT_PURPOSE_PASSWORD,
|
2019-12-12 14:37:51 +00:00
|
|
|
|
GTK_INPUT_PURPOSE_PIN,
|
|
|
|
|
GTK_INPUT_PURPOSE_TERMINAL,
|
2012-05-29 14:19:49 +00:00
|
|
|
|
} GtkInputPurpose;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GtkInputHints:
|
2012-09-24 03:37:46 +00:00
|
|
|
|
* @GTK_INPUT_HINT_NONE: No special behaviour suggested
|
2012-05-29 14:19:49 +00:00
|
|
|
|
* @GTK_INPUT_HINT_SPELLCHECK: Suggest checking for typos
|
|
|
|
|
* @GTK_INPUT_HINT_NO_SPELLCHECK: Suggest not checking for typos
|
|
|
|
|
* @GTK_INPUT_HINT_WORD_COMPLETION: Suggest word completion
|
|
|
|
|
* @GTK_INPUT_HINT_LOWERCASE: Suggest to convert all text to lowercase
|
|
|
|
|
* @GTK_INPUT_HINT_UPPERCASE_CHARS: Suggest to capitalize all text
|
|
|
|
|
* @GTK_INPUT_HINT_UPPERCASE_WORDS: Suggest to capitalize the first
|
|
|
|
|
* character of each word
|
|
|
|
|
* @GTK_INPUT_HINT_UPPERCASE_SENTENCES: Suggest to capitalize the
|
|
|
|
|
* first word of each sentence
|
2012-08-24 18:41:43 +00:00
|
|
|
|
* @GTK_INPUT_HINT_INHIBIT_OSK: Suggest to not show an onscreen keyboard
|
|
|
|
|
* (e.g for a calculator that already has all the keys).
|
2018-06-25 23:21:08 +00:00
|
|
|
|
* @GTK_INPUT_HINT_VERTICAL_WRITING: The text is vertical
|
|
|
|
|
* @GTK_INPUT_HINT_EMOJI: Suggest offering Emoji support
|
|
|
|
|
* @GTK_INPUT_HINT_NO_EMOJI: Suggest not offering Emoji support
|
2020-10-01 21:14:58 +00:00
|
|
|
|
* @GTK_INPUT_HINT_PRIVATE: Request that the input method should not
|
|
|
|
|
* update personalized data (like typing history)
|
2012-05-29 14:19:49 +00:00
|
|
|
|
*
|
|
|
|
|
* Describes hints that might be taken into account by input methods
|
|
|
|
|
* or applications. Note that input methods may already tailor their
|
|
|
|
|
* behaviour according to the #GtkInputPurpose of the entry.
|
|
|
|
|
*
|
|
|
|
|
* Some common sense is expected when using these flags - mixing
|
|
|
|
|
* @GTK_INPUT_HINT_LOWERCASE with any of the uppercase hints makes no sense.
|
|
|
|
|
*
|
|
|
|
|
* This enumeration may be extended in the future; input methods should
|
|
|
|
|
* ignore unknown values.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_INPUT_HINT_NONE = 0,
|
|
|
|
|
GTK_INPUT_HINT_SPELLCHECK = 1 << 0,
|
|
|
|
|
GTK_INPUT_HINT_NO_SPELLCHECK = 1 << 1,
|
|
|
|
|
GTK_INPUT_HINT_WORD_COMPLETION = 1 << 2,
|
|
|
|
|
GTK_INPUT_HINT_LOWERCASE = 1 << 3,
|
|
|
|
|
GTK_INPUT_HINT_UPPERCASE_CHARS = 1 << 4,
|
|
|
|
|
GTK_INPUT_HINT_UPPERCASE_WORDS = 1 << 5,
|
2012-08-24 18:41:43 +00:00
|
|
|
|
GTK_INPUT_HINT_UPPERCASE_SENTENCES = 1 << 6,
|
2015-05-10 05:30:38 +00:00
|
|
|
|
GTK_INPUT_HINT_INHIBIT_OSK = 1 << 7,
|
2017-09-02 12:42:18 +00:00
|
|
|
|
GTK_INPUT_HINT_VERTICAL_WRITING = 1 << 8,
|
|
|
|
|
GTK_INPUT_HINT_EMOJI = 1 << 9,
|
2020-10-01 21:14:58 +00:00
|
|
|
|
GTK_INPUT_HINT_NO_EMOJI = 1 << 10,
|
|
|
|
|
GTK_INPUT_HINT_PRIVATE = 1 << 11,
|
2012-05-29 14:19:49 +00:00
|
|
|
|
} GtkInputHints;
|
2010-10-22 16:46:33 +00:00
|
|
|
|
|
2014-04-08 19:27:08 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPropagationPhase:
|
2020-08-05 01:17:49 +00:00
|
|
|
|
* @GTK_PHASE_NONE: Events are not delivered.
|
2014-04-08 19:27:08 +00:00
|
|
|
|
* @GTK_PHASE_CAPTURE: Events are delivered in the capture phase. The
|
|
|
|
|
* capture phase happens before the bubble phase, runs from the toplevel down
|
|
|
|
|
* to the event widget. This option should only be used on containers that
|
|
|
|
|
* might possibly handle events before their children do.
|
|
|
|
|
* @GTK_PHASE_BUBBLE: Events are delivered in the bubble phase. The bubble
|
2014-05-10 18:50:23 +00:00
|
|
|
|
* phase happens after the capture phase, and before the default handlers
|
|
|
|
|
* are run. This phase runs from the event widget, up to the toplevel.
|
|
|
|
|
* @GTK_PHASE_TARGET: Events are delivered in the default widget event handlers,
|
|
|
|
|
* note that widget implementations must chain up on button, motion, touch and
|
|
|
|
|
* grab broken handlers for controllers in this phase to be run.
|
2014-04-08 19:27:08 +00:00
|
|
|
|
*
|
|
|
|
|
* Describes the stage at which events are fed into a #GtkEventController.
|
|
|
|
|
*/
|
2014-02-26 11:50:31 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
2014-03-24 12:19:53 +00:00
|
|
|
|
GTK_PHASE_NONE,
|
2014-02-26 11:50:31 +00:00
|
|
|
|
GTK_PHASE_CAPTURE,
|
2014-05-10 18:50:23 +00:00
|
|
|
|
GTK_PHASE_BUBBLE,
|
|
|
|
|
GTK_PHASE_TARGET
|
2014-02-26 11:50:31 +00:00
|
|
|
|
} GtkPropagationPhase;
|
|
|
|
|
|
2019-04-29 02:19:44 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPropagationLimit:
|
|
|
|
|
* @GTK_LIMIT_NONE: Events are handled regardless of what their
|
|
|
|
|
* target is.
|
|
|
|
|
* @GTK_LIMIT_SAME_NATIVE: Events are only handled if their target
|
|
|
|
|
* is in the same #GtkNative as the event controllers widget. Note
|
|
|
|
|
* that some event types have two targets (origin and destination).
|
|
|
|
|
*
|
|
|
|
|
* Describes limits of a #GtkEventController for handling events
|
|
|
|
|
* targeting other widgets.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_LIMIT_NONE,
|
|
|
|
|
GTK_LIMIT_SAME_NATIVE
|
|
|
|
|
} GtkPropagationLimit;
|
|
|
|
|
|
2014-04-09 16:27:11 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkEventSequenceState:
|
|
|
|
|
* @GTK_EVENT_SEQUENCE_NONE: The sequence is handled, but not grabbed.
|
|
|
|
|
* @GTK_EVENT_SEQUENCE_CLAIMED: The sequence is handled and grabbed.
|
|
|
|
|
* @GTK_EVENT_SEQUENCE_DENIED: The sequence is denied.
|
|
|
|
|
*
|
|
|
|
|
* Describes the state of a #GdkEventSequence in a #GtkGesture.
|
|
|
|
|
*/
|
2013-01-17 19:59:07 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_EVENT_SEQUENCE_NONE,
|
|
|
|
|
GTK_EVENT_SEQUENCE_CLAIMED,
|
|
|
|
|
GTK_EVENT_SEQUENCE_DENIED
|
|
|
|
|
} GtkEventSequenceState;
|
|
|
|
|
|
2014-04-09 16:27:11 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPanDirection:
|
|
|
|
|
* @GTK_PAN_DIRECTION_LEFT: panned towards the left
|
|
|
|
|
* @GTK_PAN_DIRECTION_RIGHT: panned towards the right
|
|
|
|
|
* @GTK_PAN_DIRECTION_UP: panned upwards
|
|
|
|
|
* @GTK_PAN_DIRECTION_DOWN: panned downwards
|
|
|
|
|
*
|
|
|
|
|
* Describes the panning direction of a #GtkGesturePan
|
|
|
|
|
*/
|
2014-04-08 19:21:56 +00:00
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_PAN_DIRECTION_LEFT,
|
|
|
|
|
GTK_PAN_DIRECTION_RIGHT,
|
|
|
|
|
GTK_PAN_DIRECTION_UP,
|
|
|
|
|
GTK_PAN_DIRECTION_DOWN
|
|
|
|
|
} GtkPanDirection;
|
|
|
|
|
|
2018-08-13 14:02:27 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkShortcutScope:
|
|
|
|
|
* @GTK_SHORTCUT_SCOPE_LOCAL: Shortcuts are handled inside
|
|
|
|
|
* the widget the controller belongs to.
|
|
|
|
|
* @GTK_SHORTCUT_SCOPE_MANAGED: Shortcuts are handled by
|
|
|
|
|
* the first ancestor that is a #GtkShortcutManager
|
|
|
|
|
* @GTK_SHORTCUT_SCOPE_GLOBAL: Shortcuts are handled by
|
|
|
|
|
* the root widget.
|
|
|
|
|
*
|
|
|
|
|
* Describes where #GtkShortcuts added to a
|
|
|
|
|
* #GtkShortcutController get handled.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_SHORTCUT_SCOPE_LOCAL,
|
|
|
|
|
GTK_SHORTCUT_SCOPE_MANAGED,
|
|
|
|
|
GTK_SHORTCUT_SCOPE_GLOBAL
|
|
|
|
|
} GtkShortcutScope;
|
|
|
|
|
|
2015-12-01 19:56:56 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPopoverConstraint:
|
|
|
|
|
* @GTK_POPOVER_CONSTRAINT_NONE: Don't constrain the popover position
|
|
|
|
|
* beyond what is imposed by the implementation
|
|
|
|
|
* @GTK_POPOVER_CONSTRAINT_WINDOW: Constrain the popover to the boundaries
|
|
|
|
|
* of the window that it is attached to
|
|
|
|
|
*
|
|
|
|
|
* Describes constraints to positioning of popovers. More values
|
|
|
|
|
* may be added to this enumeration in the future.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
GTK_POPOVER_CONSTRAINT_NONE,
|
|
|
|
|
GTK_POPOVER_CONSTRAINT_WINDOW
|
|
|
|
|
} GtkPopoverConstraint;
|
|
|
|
|
|
|
|
|
|
|
2018-01-08 19:37:45 +00:00
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_PLACES_OPEN_NORMAL = 1 << 0,
|
|
|
|
|
GTK_PLACES_OPEN_NEW_TAB = 1 << 1,
|
|
|
|
|
GTK_PLACES_OPEN_NEW_WINDOW = 1 << 2
|
|
|
|
|
} GtkPlacesOpenFlags;
|
|
|
|
|
|
2019-04-07 17:27:58 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkPickFlags:
|
2019-04-07 21:36:40 +00:00
|
|
|
|
* @GTK_PICK_DEFAULT: The default behavior, include widgets that are receiving events
|
|
|
|
|
* @GTK_PICK_INSENSITIVE: Include widgets that are insensitive
|
2020-05-11 16:47:20 +00:00
|
|
|
|
* @GTK_PICK_NON_TARGETABLE: Include widgets that are marked as non-targetable. See #GtkWidget:can-target
|
2019-04-07 17:27:58 +00:00
|
|
|
|
*
|
|
|
|
|
* Flags that influence the behavior of gtk_widget_pick()
|
|
|
|
|
*/
|
2019-04-07 17:19:09 +00:00
|
|
|
|
typedef enum {
|
2019-04-07 21:36:40 +00:00
|
|
|
|
GTK_PICK_DEFAULT = 0,
|
|
|
|
|
GTK_PICK_INSENSITIVE = 1 << 0,
|
|
|
|
|
GTK_PICK_NON_TARGETABLE = 1 << 1
|
2019-04-07 17:19:09 +00:00
|
|
|
|
} GtkPickFlags;
|
|
|
|
|
|
2019-04-09 13:05:48 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkConstraintRelation:
|
|
|
|
|
* @GTK_CONSTRAINT_RELATION_EQ: Equal
|
|
|
|
|
* @GTK_CONSTRAINT_RELATION_LE: Less than, or equal
|
|
|
|
|
* @GTK_CONSTRAINT_RELATION_GE: Greater than, or equal
|
|
|
|
|
*
|
|
|
|
|
* The relation between two terms of a constraint.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_CONSTRAINT_RELATION_LE = -1,
|
|
|
|
|
GTK_CONSTRAINT_RELATION_EQ = 0,
|
|
|
|
|
GTK_CONSTRAINT_RELATION_GE = 1
|
|
|
|
|
} GtkConstraintRelation;
|
|
|
|
|
|
2019-04-09 14:33:52 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkConstraintStrength:
|
|
|
|
|
* @GTK_CONSTRAINT_STRENGTH_REQUIRED: The constraint is required towards solving the layout
|
|
|
|
|
* @GTK_CONSTRAINT_STRENGTH_STRONG: A strong constraint
|
|
|
|
|
* @GTK_CONSTRAINT_STRENGTH_MEDIUM: A medium constraint
|
|
|
|
|
* @GTK_CONSTRAINT_STRENGTH_WEAK: A weak constraint
|
|
|
|
|
*
|
|
|
|
|
* The strength of a constraint, expressed as a symbolic constant.
|
|
|
|
|
*
|
|
|
|
|
* The strength of a #GtkConstraint can be expressed with any positive
|
|
|
|
|
* integer; the values of this enumeration can be used for readability.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
2019-07-01 11:39:24 +00:00
|
|
|
|
GTK_CONSTRAINT_STRENGTH_REQUIRED = 1001001000,
|
|
|
|
|
GTK_CONSTRAINT_STRENGTH_STRONG = 1000000000,
|
|
|
|
|
GTK_CONSTRAINT_STRENGTH_MEDIUM = 1000,
|
|
|
|
|
GTK_CONSTRAINT_STRENGTH_WEAK = 1
|
2019-04-09 14:33:52 +00:00
|
|
|
|
} GtkConstraintStrength;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GtkConstraintAttribute:
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_NONE: No attribute, used for constant
|
|
|
|
|
* relations
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_LEFT: The left edge of a widget, regardless of
|
|
|
|
|
* text direction
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_RIGHT: The right edge of a widget, regardless
|
|
|
|
|
* of text direction
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_TOP: The top edge of a widget
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_BOTTOM: The bottom edge of a widget
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_START: The leading edge of a widget, depending
|
|
|
|
|
* on text direction; equivalent to %GTK_CONSTRAINT_ATTRIBUTE_LEFT for LTR
|
|
|
|
|
* languages, and %GTK_CONSTRAINT_ATTRIBUTE_RIGHT for RTL ones
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_END: The trailing edge of a widget, depending
|
|
|
|
|
* on text direction; equivalent to %GTK_CONSTRAINT_ATTRIBUTE_RIGHT for LTR
|
|
|
|
|
* languages, and %GTK_CONSTRAINT_ATTRIBUTE_LEFT for RTL ones
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_WIDTH: The width of a widget
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_HEIGHT: The height of a widget
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_CENTER_X: The center of a widget, on the
|
|
|
|
|
* horizontal axis
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_CENTER_Y: The center of a widget, on the
|
|
|
|
|
* vertical axis
|
|
|
|
|
* @GTK_CONSTRAINT_ATTRIBUTE_BASELINE: The baseline of a widget
|
|
|
|
|
*
|
|
|
|
|
* The widget attributes that can be used when creating a #GtkConstraint.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_NONE,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_LEFT,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_RIGHT,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_TOP,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_BOTTOM,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_START,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_END,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_WIDTH,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_HEIGHT,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_CENTER_X,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_CENTER_Y,
|
|
|
|
|
GTK_CONSTRAINT_ATTRIBUTE_BASELINE
|
|
|
|
|
} GtkConstraintAttribute;
|
|
|
|
|
|
2019-06-30 23:47:44 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkConstraintVflParserError:
|
|
|
|
|
* @GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_SYMBOL: Invalid or unknown symbol
|
|
|
|
|
* @GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_ATTRIBUTE: Invalid or unknown attribute
|
|
|
|
|
* @GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_VIEW: Invalid or unknown view
|
|
|
|
|
* @GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_METRIC: Invalid or unknown metric
|
|
|
|
|
* @GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_PRIORITY: Invalid or unknown priority
|
|
|
|
|
* @GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_RELATION: Invalid or unknown relation
|
|
|
|
|
*
|
|
|
|
|
* Domain for VFL parsing errors.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_SYMBOL,
|
|
|
|
|
GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_ATTRIBUTE,
|
|
|
|
|
GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_VIEW,
|
|
|
|
|
GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_METRIC,
|
|
|
|
|
GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_PRIORITY,
|
|
|
|
|
GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_RELATION
|
|
|
|
|
} GtkConstraintVflParserError;
|
|
|
|
|
|
2020-04-21 16:05:45 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkSystemSetting:
|
|
|
|
|
* @GTK_SYSTEM_SETTING_DPI: the #GtkSettings:gtk-xft-dpi setting has changed
|
|
|
|
|
* @GTK_SYSTEM_SETTING_FONT_NAME: The #GtkSettings:gtk-font-name setting has changed
|
|
|
|
|
* @GTK_SYSTEM_SETTING_FONT_CONFIG: The font configuration has changed in a way that
|
|
|
|
|
* requires text to be redrawn. This can be any of the
|
|
|
|
|
* #GtkSettings:gtk-xft-antialias, #GtkSettings:gtk-xft-hinting,
|
|
|
|
|
* #GtkSettings:gtk-xft-hintstyle, #GtkSettings:gtk-xft-rgba or
|
|
|
|
|
* #GtkSettings:gtk-fontconfig-timestamp settings
|
|
|
|
|
* @GTK_SYSTEM_SETTING_DISPLAY: The display has changed
|
|
|
|
|
* @GTK_SYSTEM_SETTING_ICON_THEME: The icon theme has changed in a way that requires
|
|
|
|
|
* icons to be looked up again
|
|
|
|
|
*
|
|
|
|
|
* Values that can be passed to the GtkWidgetClass.system_setting_changed
|
|
|
|
|
* vfunc to indicate that a system setting has changed and widgets may
|
|
|
|
|
* need to drop caches, or react otherwise.
|
|
|
|
|
*
|
|
|
|
|
* Most of the values correspond to #GtkSettings properties.
|
|
|
|
|
*
|
|
|
|
|
* More values may be added over time.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_SYSTEM_SETTING_DPI,
|
|
|
|
|
GTK_SYSTEM_SETTING_FONT_NAME,
|
|
|
|
|
GTK_SYSTEM_SETTING_FONT_CONFIG,
|
|
|
|
|
GTK_SYSTEM_SETTING_DISPLAY,
|
|
|
|
|
GTK_SYSTEM_SETTING_ICON_THEME
|
|
|
|
|
} GtkSystemSetting;
|
|
|
|
|
|
2020-06-16 16:04:05 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkAccessibleRole:
|
2020-07-15 18:08:37 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_ALERT: An element with important, and usually
|
|
|
|
|
* time-sensitive, information
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_ALERT_DIALOG: A type of dialog that contains an
|
|
|
|
|
* alert message
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_BANNER: Unused
|
2020-07-15 18:08:37 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_BUTTON: An input element that allows for
|
|
|
|
|
* user-triggered actions when clicked or pressed
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_CAPTION: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_CELL: Unused
|
2020-07-15 18:08:37 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_CHECKBOX: A checkable input element that has
|
|
|
|
|
* three possible values: `true`, `false`, or `mixed`
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_COLUMN_HEADER: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_COMBO_BOX: An input that controls another element,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
* such as a list or a grid, that can dynamically pop up to help the user
|
|
|
|
|
* set the value of the input
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_COMMAND: An abstract widget that performs an
|
|
|
|
|
* action, but does not receive input
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_COMPOSITE: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_DIALOG: A dialog is a window that is designed to interrupt
|
|
|
|
|
* the current processing of an application in order to prompt the user to enter
|
|
|
|
|
* information or require a response.
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_DOCUMENT: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_FEED: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_FORM: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_GENERIC: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_GRID: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_GRID_CELL: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_GROUP: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_HEADING: Unused
|
2020-07-28 19:44:12 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_IMG: An image.
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_INPUT: Unused
|
2020-07-28 20:53:19 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_LABEL: A visible name or caption for a user interface component.
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_LANDMARK: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_LEGEND: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_LINK: Unused
|
2020-07-29 02:07:44 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_LIST: Unused
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_LIST_BOX: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_LIST_ITEM: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_LOG: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_MAIN: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_MARQUEE: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_MATH: Unused
|
2020-07-30 02:10:56 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_METER: An element that represents a value within a known range.
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_MENU: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_MENU_BAR: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_MENU_ITEM: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_MENU_ITEM_CHECKBOX: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_MENU_ITEM_RADIO: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_NAVIGATION: Unused
|
2020-07-29 02:07:44 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_NONE: Unused
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_NOTE: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_OPTION: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_PRESENTATION: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_PROGRESS_BAR: An element that displays the progress
|
|
|
|
|
* status for tasks that take a long time.
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_RADIO: A checkable input in a group of radio roles,
|
|
|
|
|
* only one of which can be checked at a time.
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_RADIO_GROUP: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_RANGE: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_REGION: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_ROW: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_ROW_GROUP: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_ROW_HEADER: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_SCROLLBAR: A graphical object that controls the scrolling
|
|
|
|
|
* of content within a viewing area, regardless of whether the content is fully
|
|
|
|
|
* displayed within the viewing area.
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_SEARCH: Unused
|
2020-07-28 22:15:01 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_SEARCH_BOX: A type of textbox intended for specifying
|
|
|
|
|
* search criteria.
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_SECTION: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_SECTION_HEAD: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_SELECT: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_SEPARATOR: A divider that separates and distinguishes
|
|
|
|
|
* sections of content or groups of menuitems.
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_SLIDER: A user input where the user selects a value
|
|
|
|
|
* from within a given range.
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_SPIN_BUTTON: A form of range that expects the user to
|
|
|
|
|
* select from among discrete choices.
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_STATUS: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_STRUCTURE: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_SWITCH: A type of checkbox that represents on/off values,
|
|
|
|
|
* as opposed to checked/unchecked values.
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TAB: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TABLE: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TAB_LIST: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TAB_PANEL: Unused
|
2020-07-28 20:11:45 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TEXT_BOX: A type of input that allows free-form text
|
|
|
|
|
* as its value.
|
2020-07-27 01:18:50 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TIME: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TIMER: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TOOLBAR: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TOOLTIP: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TREE: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TREE_GRID: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_TREE_ITEM: Unused
|
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_WIDGET: An interactive component of a graphical user
|
|
|
|
|
* interface. This is the role that GTK uses by default for widgets.
|
2020-07-27 22:25:37 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_ROLE_WINDOW: An application window.
|
2020-06-16 16:04:05 +00:00
|
|
|
|
*
|
|
|
|
|
* The accessible role for a #GtkAccessible implementation.
|
2020-07-15 18:08:37 +00:00
|
|
|
|
*
|
|
|
|
|
* Abstract roles are only used as part of the ontology; application
|
|
|
|
|
* developers must not use abstract roles in their code.
|
2020-06-16 16:04:05 +00:00
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_ALERT,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_ALERT_DIALOG,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_BANNER,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_BUTTON,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_CAPTION,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_CELL,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_CHECKBOX,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_COLUMN_HEADER,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_COMBO_BOX,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_COMMAND,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_COMPOSITE,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_DIALOG,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_DOCUMENT,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_FEED,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_FORM,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_GENERIC,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_GRID,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_GRID_CELL,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_GROUP,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_HEADING,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_IMG,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_INPUT,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_LABEL,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_LANDMARK,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_LEGEND,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_LINK,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_LIST,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_LIST_BOX,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_LIST_ITEM,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_LOG,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_MAIN,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_MARQUEE,
|
2020-07-29 02:07:44 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_MATH,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_METER,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_MENU,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_MENU_BAR,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_MENU_ITEM,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_MENU_ITEM_CHECKBOX,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_MENU_ITEM_RADIO,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_NAVIGATION,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_NONE,
|
2020-07-29 02:07:44 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_NOTE,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_OPTION,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_PRESENTATION,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_PROGRESS_BAR,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_RADIO,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_RADIO_GROUP,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_RANGE,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_REGION,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_ROW,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_ROW_GROUP,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_ROW_HEADER,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_SCROLLBAR,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_SEARCH,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_SEARCH_BOX,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_SECTION,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_SECTION_HEAD,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_SELECT,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_SEPARATOR,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_SLIDER,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_SPIN_BUTTON,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_STATUS,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_STRUCTURE,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_SWITCH,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_TAB,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_TABLE,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_TAB_LIST,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_TAB_PANEL,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_TEXT_BOX,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_TIME,
|
2020-06-16 16:04:05 +00:00
|
|
|
|
GTK_ACCESSIBLE_ROLE_TIMER,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_TOOLBAR,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_TOOLTIP,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_TREE,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_TREE_GRID,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_TREE_ITEM,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_WIDGET,
|
|
|
|
|
GTK_ACCESSIBLE_ROLE_WINDOW
|
|
|
|
|
} GtkAccessibleRole;
|
|
|
|
|
|
2020-07-08 15:34:32 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkAccessibleState:
|
2020-07-27 02:13:41 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_STATE_BUSY: A “busy” state. This state has boolean values
|
2020-07-15 12:20:38 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_STATE_CHECKED: A “checked” state; indicates the current
|
2020-07-27 02:13:41 +00:00
|
|
|
|
* state of a #GtkCheckButton. Value type: #GtkAccessibleTristate
|
2020-07-08 15:34:32 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_STATE_DISABLED: A “disabled” state; corresponds to the
|
2020-07-15 12:20:38 +00:00
|
|
|
|
* #GtkWidget:sensitive property on #GtkWidget. It indicates a UI element
|
2020-07-27 02:13:41 +00:00
|
|
|
|
* that is perceivable, but not editable or operable. Value type: boolean
|
2020-07-08 15:34:32 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_STATE_EXPANDED: An “expanded” state; corresponds to the
|
2020-07-27 02:13:41 +00:00
|
|
|
|
* #GtkExpander:expanded property on #GtkExpander. Value type: boolean
|
|
|
|
|
* or undefined
|
2020-07-08 15:34:32 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_STATE_HIDDEN: A “hidden” state; corresponds to the
|
2020-07-15 12:20:38 +00:00
|
|
|
|
* #GtkWidget:visible property on #GtkWidget. You can use this state
|
|
|
|
|
* explicitly on UI elements that should not be exposed to an assistive
|
2020-07-27 02:13:41 +00:00
|
|
|
|
* technology. Value type: boolean
|
|
|
|
|
* See also: %GTK_ACCESSIBLE_STATE_DISABLED
|
2020-07-08 15:34:32 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_STATE_INVALID: An “invalid” state; set when a widget
|
2020-07-27 02:13:41 +00:00
|
|
|
|
* is showing an error. Value type: #GtkAccessibleInvalidState
|
2020-07-15 12:20:38 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_STATE_PRESSED: A “pressed” state; indicates the current
|
2020-07-27 02:13:41 +00:00
|
|
|
|
* state of a #GtkToggleButton. Value type: #GtkAccessibleTristate
|
|
|
|
|
* enumeration
|
2020-07-08 15:34:32 +00:00
|
|
|
|
* @GTK_ACCESSIBLE_STATE_SELECTED: A “selected” state; set when a widget
|
2020-07-27 02:13:41 +00:00
|
|
|
|
* is selected. Value type: boolean or undefined
|
2020-07-08 15:34:32 +00:00
|
|
|
|
*
|
2020-07-27 02:13:41 +00:00
|
|
|
|
* The possible accessible states of a #GtkAccessible.
|
2020-07-08 15:34:32 +00:00
|
|
|
|
*/
|
|
|
|
|
typedef enum {
|
2020-07-15 12:20:38 +00:00
|
|
|
|
GTK_ACCESSIBLE_STATE_BUSY,
|
2020-07-08 15:34:32 +00:00
|
|
|
|
GTK_ACCESSIBLE_STATE_CHECKED,
|
|
|
|
|
GTK_ACCESSIBLE_STATE_DISABLED,
|
|
|
|
|
GTK_ACCESSIBLE_STATE_EXPANDED,
|
|
|
|
|
GTK_ACCESSIBLE_STATE_HIDDEN,
|
|
|
|
|
GTK_ACCESSIBLE_STATE_INVALID,
|
|
|
|
|
GTK_ACCESSIBLE_STATE_PRESSED,
|
|
|
|
|
GTK_ACCESSIBLE_STATE_SELECTED
|
|
|
|
|
} GtkAccessibleState;
|
|
|
|
|
|
2020-07-27 10:46:07 +00:00
|
|
|
|
/**
|
|
|
|
|
* GTK_ACCESSIBLE_VALUE_UNDEFINED:
|
|
|
|
|
*
|
|
|
|
|
* An undefined value. The accessible attribute is either unset, or its
|
|
|
|
|
* value is undefined.
|
|
|
|
|
*/
|
2020-07-15 18:08:37 +00:00
|
|
|
|
#define GTK_ACCESSIBLE_VALUE_UNDEFINED (-1)
|
|
|
|
|
|
2020-07-27 02:13:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkAccessibleProperty:
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_AUTOCOMPLETE: Indicates whether inputting text
|
|
|
|
|
* could trigger display of one or more predictions of the user's intended
|
|
|
|
|
* value for a combobox, searchbox, or textbox and specifies how predictions
|
|
|
|
|
* would be presented if they were made. Value type: #GtkAccessibleAutocomplete
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_DESCRIPTION: Defines a string value that describes
|
|
|
|
|
* or annotates the current element. Value type: string
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_HAS_POPUP: Indicates the availability and type of
|
|
|
|
|
* interactive popup element, such as menu or dialog, that can be triggered
|
|
|
|
|
* by an element.
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_KEY_SHORTCUTS: Indicates keyboard shortcuts that an
|
|
|
|
|
* author has implemented to activate or give focus to an element. Value type:
|
|
|
|
|
* string
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_LABEL: Defines a string value that labels the current
|
|
|
|
|
* element. Value type: string
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_LEVEL: Defines the hierarchical level of an element
|
|
|
|
|
* within a structure. Value type: integer
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_MODAL: Indicates whether an element is modal when
|
|
|
|
|
* displayed. Value type: boolean
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_MULTI_LINE: Indicates whether a text box accepts
|
|
|
|
|
* multiple lines of input or only a single line. Value type: boolean
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_MULTI_SELECTABLE: Indicates that the user may select
|
|
|
|
|
* more than one item from the current selectable descendants. Value type:
|
|
|
|
|
* boolean
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_ORIENTATION: Indicates whether the element's
|
|
|
|
|
* orientation is horizontal, vertical, or unknown/ambiguous. Value type:
|
|
|
|
|
* #GtkOrientation
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_PLACEHOLDER: Defines a short hint (a word or short
|
|
|
|
|
* phrase) intended to aid the user with data entry when the control has no
|
|
|
|
|
* value. A hint could be a sample value or a brief description of the expected
|
|
|
|
|
* format. Value type: string
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_READ_ONLY: Indicates that the element is not editable,
|
|
|
|
|
* but is otherwise operable. Value type: boolean
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_REQUIRED: Indicates that user input is required on
|
|
|
|
|
* the element before a form may be submitted. Value type: boolean
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_ROLE_DESCRIPTION: Defines a human-readable,
|
|
|
|
|
* author-localized description for the role of an element. Value type: string
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_SORT: Indicates if items in a table or grid are
|
|
|
|
|
* sorted in ascending or descending order. Possible property values are in
|
|
|
|
|
* the #GtkAccessibleSort enumeration. Value type: #GtkAccessibleSort
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_VALUE_MAX: Defines the maximum allowed value for a
|
|
|
|
|
* range widget. Value type: double
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_VALUE_MIN: Defines the minimum allowed value for a
|
|
|
|
|
* range widget. Value type: double
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_VALUE_NOW: Defines the current value for a range widget.
|
|
|
|
|
* Value type: double
|
|
|
|
|
* @GTK_ACCESSIBLE_PROPERTY_VALUE_TEXT: Defines the human readable text alternative
|
|
|
|
|
* of aria-valuenow for a range widget. Value type: string
|
|
|
|
|
*
|
|
|
|
|
* The possible accessible properties of a #GtkAccessible.
|
|
|
|
|
*/
|
2020-07-08 15:34:32 +00:00
|
|
|
|
typedef enum {
|
2020-07-13 14:22:24 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_AUTOCOMPLETE,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_DESCRIPTION,
|
2020-07-08 15:34:32 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_HAS_POPUP,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_KEY_SHORTCUTS,
|
2020-07-08 15:34:32 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_LABEL,
|
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_LEVEL,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_MODAL,
|
2020-07-08 15:34:32 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_MULTI_LINE,
|
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_MULTI_SELECTABLE,
|
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_ORIENTATION,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_PLACEHOLDER,
|
2020-07-08 15:34:32 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_READ_ONLY,
|
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_REQUIRED,
|
2020-07-15 18:08:37 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_ROLE_DESCRIPTION,
|
2020-07-08 15:34:32 +00:00
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_SORT,
|
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_VALUE_MAX,
|
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_VALUE_MIN,
|
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_VALUE_NOW,
|
|
|
|
|
GTK_ACCESSIBLE_PROPERTY_VALUE_TEXT
|
|
|
|
|
} GtkAccessibleProperty;
|
|
|
|
|
|
2020-07-27 02:13:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkAccessibleRelation:
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_ACTIVE_DESCENDANT: Identifies the currently active
|
|
|
|
|
* element when focus is on a composite widget, combobox, textbox, group,
|
|
|
|
|
* or application. Value type: reference
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_COL_COUNT: Defines the total number of columns
|
|
|
|
|
* in a table, grid, or treegrid. Value type: integer
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_COL_INDEX: Defines an element's column index or
|
|
|
|
|
* position with respect to the total number of columns within a table,
|
|
|
|
|
* grid, or treegrid. Value type: integer
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_COL_INDEX_TEXT: Defines a human readable text
|
|
|
|
|
* alternative of @GTK_ACCESSIBLE_RELATION_COL_INDEX. Value type: string
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_COL_SPAN: Defines the number of columns spanned
|
|
|
|
|
* by a cell or gridcell within a table, grid, or treegrid. Value type: integer
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_CONTROLS: Identifies the element (or elements) whose
|
|
|
|
|
* contents or presence are controlled by the current element. Value type: reference
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_DESCRIBED_BY: Identifies the element (or elements)
|
|
|
|
|
* that describes the object. Value type: reference
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_DETAILS: Identifies the element (or elements) that
|
|
|
|
|
* provide additional information related to the object. Value type: reference
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE: Identifies the element that provides
|
|
|
|
|
* an error message for an object. Value type: reference
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_FLOW_TO: Identifies the next element (or elements)
|
|
|
|
|
* in an alternate reading order of content which, at the user's discretion,
|
|
|
|
|
* allows assistive technology to override the general default of reading in
|
|
|
|
|
* document source order. Value type: reference
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_LABELLED_BY: Identifies the element (or elements)
|
|
|
|
|
* that labels the current element. Value type: reference
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_OWNS: Identifies an element (or elements) in order
|
|
|
|
|
* to define a visual, functional, or contextual parent/child relationship
|
|
|
|
|
* between elements where the widget hierarchy cannot be used to represent
|
|
|
|
|
* the relationship. Value type: reference
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_POS_IN_SET: Defines an element's number or position
|
|
|
|
|
* in the current set of listitems or treeitems. Value type: integer
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_ROW_COUNT: Defines the total number of rows in a table,
|
|
|
|
|
* grid, or treegrid. Value type: integer
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_ROW_INDEX: Defines an element's row index or position
|
|
|
|
|
* with respect to the total number of rows within a table, grid, or treegrid.
|
|
|
|
|
* Value type: integer
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_ROW_INDEX_TEXT: Defines a human readable text
|
|
|
|
|
* alternative of aria-rowindex. Value type: string
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_ROW_SPAN: Defines the number of rows spanned by a
|
|
|
|
|
* cell or gridcell within a table, grid, or treegrid. Value type: integer
|
|
|
|
|
* @GTK_ACCESSIBLE_RELATION_SET_SIZE: Defines the number of items in the current
|
|
|
|
|
* set of listitems or treeitems. Value type: integer
|
|
|
|
|
*
|
|
|
|
|
* The possible accessible relations of a #GtkAccessible.
|
|
|
|
|
* Accessible relations can be references to other widgets,
|
|
|
|
|
* integers or strings.
|
|
|
|
|
*/
|
2020-07-15 18:08:37 +00:00
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_ACTIVE_DESCENDANT,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_COL_COUNT,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_COL_INDEX,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_COL_INDEX_TEXT,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_COL_SPAN,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_CONTROLS,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_DESCRIBED_BY,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_DETAILS,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_FLOW_TO,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_LABELLED_BY,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_OWNS,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_POS_IN_SET,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_ROW_COUNT,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_ROW_INDEX,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_ROW_INDEX_TEXT,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_ROW_SPAN,
|
|
|
|
|
GTK_ACCESSIBLE_RELATION_SET_SIZE
|
|
|
|
|
} GtkAccessibleRelation;
|
|
|
|
|
|
2020-07-27 02:13:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkAccessibleTristate:
|
|
|
|
|
* @GTK_ACCESSIBLE_TRISTATE_FALSE: The state is `false`
|
|
|
|
|
* @GTK_ACCESSIBLE_TRISTATE_TRUE: The state is `true`
|
|
|
|
|
* @GTK_ACCESSIBLE_TRISTATE_MIXED: The state is `mixed`
|
|
|
|
|
*
|
|
|
|
|
* The possible values for the %GTK_ACCESSIBLE_STATE_PRESSED
|
|
|
|
|
* accessible state.
|
|
|
|
|
*
|
|
|
|
|
* Note that the %GTK_ACCESSIBLE_TRISTATE_FALSE and
|
|
|
|
|
* %GTK_ACCESSIBLE_TRISTATE_TRUE have the same values
|
|
|
|
|
* as %FALSE and %TRUE.
|
|
|
|
|
*/
|
2020-07-16 17:08:22 +00:00
|
|
|
|
typedef enum {
|
|
|
|
|
GTK_ACCESSIBLE_TRISTATE_FALSE,
|
|
|
|
|
GTK_ACCESSIBLE_TRISTATE_TRUE,
|
|
|
|
|
GTK_ACCESSIBLE_TRISTATE_MIXED
|
|
|
|
|
} GtkAccessibleTristate;
|
2020-07-15 18:08:37 +00:00
|
|
|
|
|
2020-07-27 02:13:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkAccessibleInvalidState:
|
|
|
|
|
* @GTK_ACCESSIBLE_INVALID_FALSE: There are no detected errors in the value
|
|
|
|
|
* @GTK_ACCESSIBLE_INVALID_TRUE: The value entered by the user has failed validation
|
|
|
|
|
* @GTK_ACCESSIBLE_INVALID_GRAMMAR: A grammatical error was detected
|
|
|
|
|
* @GTK_ACCESSIBLE_INVALID_SPELLING: A spelling error was detected
|
|
|
|
|
*
|
|
|
|
|
* The possible values for the %GTK_ACCESSIBLE_STATE_INVALID
|
|
|
|
|
* accessible state.
|
|
|
|
|
*
|
|
|
|
|
* Note that the %GTK_ACCESSIBLE_INVALID_FALSE and
|
|
|
|
|
* %GTK_ACCESSIBLE_INVALID_TRUE have the same values
|
|
|
|
|
* as %FALSE and %TRUE.
|
|
|
|
|
*/
|
2020-07-15 18:08:37 +00:00
|
|
|
|
typedef enum { /*< prefix=GTK_ACCESSIBLE_INVALID >*/
|
|
|
|
|
GTK_ACCESSIBLE_INVALID_FALSE,
|
|
|
|
|
GTK_ACCESSIBLE_INVALID_TRUE,
|
|
|
|
|
GTK_ACCESSIBLE_INVALID_GRAMMAR,
|
|
|
|
|
GTK_ACCESSIBLE_INVALID_SPELLING,
|
|
|
|
|
} GtkAccessibleInvalidState;
|
|
|
|
|
|
2020-07-27 02:13:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkAccessibleAutocomplete:
|
|
|
|
|
* @GTK_ACCESSIBLE_AUTOCOMPLETE_NONE: Automatic suggestions are not displayed.
|
|
|
|
|
* @GTK_ACCESSIBLE_AUTOCOMPLETE_INLINE: When a user is providing input, text
|
|
|
|
|
* suggesting one way to complete the provided input may be dynamically
|
|
|
|
|
* inserted after the caret.
|
|
|
|
|
* @GTK_ACCESSIBLE_AUTOCOMPLETE_LIST: When a user is providing input, an element
|
|
|
|
|
* containing a collection of values that could complete the provided input
|
|
|
|
|
* may be displayed.
|
|
|
|
|
* @GTK_ACCESSIBLE_AUTOCOMPLETE_BOTH: When a user is providing input, an element
|
|
|
|
|
* containing a collection of values that could complete the provided input
|
|
|
|
|
* may be displayed. If displayed, one value in the collection is automatically
|
|
|
|
|
* selected, and the text needed to complete the automatically selected value
|
|
|
|
|
* appears after the caret in the input.
|
|
|
|
|
*
|
|
|
|
|
* The possible values for the %GTK_ACCESSIBLE_PROPERTY_AUTOCOMPLETE
|
|
|
|
|
* accessible property.
|
|
|
|
|
*/
|
2020-07-15 18:08:37 +00:00
|
|
|
|
typedef enum { /*< prefix=GTK_ACCESSIBLE_AUTOCOMPLETE >*/
|
|
|
|
|
GTK_ACCESSIBLE_AUTOCOMPLETE_NONE,
|
|
|
|
|
GTK_ACCESSIBLE_AUTOCOMPLETE_INLINE,
|
|
|
|
|
GTK_ACCESSIBLE_AUTOCOMPLETE_LIST,
|
|
|
|
|
GTK_ACCESSIBLE_AUTOCOMPLETE_BOTH
|
|
|
|
|
} GtkAccessibleAutocomplete;
|
|
|
|
|
|
2020-07-27 02:13:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* GtkAccessibleSort:
|
|
|
|
|
* @GTK_ACCESSIBLE_SORT_NONE: There is no defined sort applied to the column.
|
|
|
|
|
* @GTK_ACCESSIBLE_SORT_ASCENDING: Items are sorted in ascending order by this column.
|
|
|
|
|
* @GTK_ACCESSIBLE_SORT_DESCENDING: Items are sorted in descending order by this column.
|
|
|
|
|
* @GTK_ACCESSIBLE_SORT_OTHER: A sort algorithm other than ascending or
|
|
|
|
|
* descending has been applied.
|
|
|
|
|
*
|
|
|
|
|
* The possible values for the %GTK_ACCESSIBLE_PROPERTY_SORT
|
|
|
|
|
* accessible property.
|
|
|
|
|
*/
|
2020-07-15 18:08:37 +00:00
|
|
|
|
typedef enum { /*< prefix=GTK_ACCESSIBLE_SORT >*/
|
|
|
|
|
GTK_ACCESSIBLE_SORT_NONE,
|
|
|
|
|
GTK_ACCESSIBLE_SORT_ASCENDING,
|
|
|
|
|
GTK_ACCESSIBLE_SORT_DESCENDING,
|
|
|
|
|
GTK_ACCESSIBLE_SORT_OTHER
|
|
|
|
|
} GtkAccessibleSort;
|
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
|
#endif /* __GTK_ENUMS_H__ */
|