README.patch_xinput_airbrush removed because GTK+-2.0 will manage the
2001-05-14 Michael Natterer <mitch@gimp.org> * README.patch_xinput_airbrush * patch_xinput_airbrush: removed because GTK+-2.0 will manage the number of valuators dynamically. * app/Makefile.am: some more thinking about subdirectories. * app/boundary.c * app/pixel_processor.c * app/pixel_region.c: removed #include's, code cleanup. * libgimpwidgets/Makefile.am: install gimpbutton.h * devel-docs/libgimp/tmpl/gimpadaptivesupersample.sgml * devel-docs/libgimp/tmpl/gimpbilinear.sgml: removed ... * devel-docs/libgimpcolor/tmpl/gimpadaptivesupersample.sgml * devel-docs/libgimpcolor/tmpl/gimpbilinear.sgml: ... and added here. * devel-docs/libgimp/libgimp-decl.txt * devel-docs/libgimp/libgimp-sections.txt * devel-docs/libgimp/libgimp.hierarchy * devel-docs/libgimp/tmpl/gimpenums.sgml * devel-docs/libgimpcolor/libgimpcolor-decl.txt * devel-docs/libgimpcolor/libgimpcolor-docs.sgml * devel-docs/libgimpcolor/libgimpcolor-sections.txt * devel-docs/libgimpcolor/libgimpcolor.hierarchy * devel-docs/libgimpcolor/tmpl/gimpcolortypes.sgml: regenerated.
This commit is contained in:

committed by
Michael Natterer

parent
9691c46bfe
commit
9059fd20f4
30
ChangeLog
30
ChangeLog
@ -1,3 +1,33 @@
|
||||
2001-05-14 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* README.patch_xinput_airbrush
|
||||
* patch_xinput_airbrush: removed because GTK+-2.0 will manage the
|
||||
number of valuators dynamically.
|
||||
|
||||
* app/Makefile.am: some more thinking about subdirectories.
|
||||
|
||||
* app/boundary.c
|
||||
* app/pixel_processor.c
|
||||
* app/pixel_region.c: removed #include's, code cleanup.
|
||||
|
||||
* libgimpwidgets/Makefile.am: install gimpbutton.h
|
||||
|
||||
* devel-docs/libgimp/tmpl/gimpadaptivesupersample.sgml
|
||||
* devel-docs/libgimp/tmpl/gimpbilinear.sgml: removed ...
|
||||
|
||||
* devel-docs/libgimpcolor/tmpl/gimpadaptivesupersample.sgml
|
||||
* devel-docs/libgimpcolor/tmpl/gimpbilinear.sgml: ... and added here.
|
||||
|
||||
* devel-docs/libgimp/libgimp-decl.txt
|
||||
* devel-docs/libgimp/libgimp-sections.txt
|
||||
* devel-docs/libgimp/libgimp.hierarchy
|
||||
* devel-docs/libgimp/tmpl/gimpenums.sgml
|
||||
* devel-docs/libgimpcolor/libgimpcolor-decl.txt
|
||||
* devel-docs/libgimpcolor/libgimpcolor-docs.sgml
|
||||
* devel-docs/libgimpcolor/libgimpcolor-sections.txt
|
||||
* devel-docs/libgimpcolor/libgimpcolor.hierarchy
|
||||
* devel-docs/libgimpcolor/tmpl/gimpcolortypes.sgml: regenerated.
|
||||
|
||||
2001-05-14 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/Makefile.am
|
||||
|
@ -1,74 +0,0 @@
|
||||
This patch enables support of the sixth valuator present in the xf86Wacom
|
||||
driver. The driver with support of six valuators are included in XFree86
|
||||
3.3.4 and newer.
|
||||
|
||||
The purpose of this patch is to enable the airbrush wheel on the Wacom Intous
|
||||
airbrush device. The wheel is used in the upcoming new airbrush tool in Gimp
|
||||
to regulate the virtual altitude of your airbrush.
|
||||
|
||||
The patch is tested with Gtk+-1.2.4 (not the CVS version) and should apply
|
||||
without problems. The patch is totally unsupported in both Gtk and GIMP.
|
||||
|
||||
A good advice it to install a the patched version of Gtk+ and Gimp in a special
|
||||
directory because of the binary incompatible (See notes below).
|
||||
|
||||
Here is how to make it work,
|
||||
|
||||
cd gtk+-1.2.4
|
||||
pacth -p0 ../patch_xinput_airbrush
|
||||
./configure --prefix=/opt/gimp --with-xinput=xfree
|
||||
make
|
||||
make install
|
||||
cd ../gimp
|
||||
export LD_LIBRARY_PATH=/opt/gimp/lib:$LD_LIBRARY_PATH
|
||||
export PATH=/opt/gimp/bin:$PATH
|
||||
./configure --prefix=/opt/gimp --enable-gimpdir=.gimpairbrush
|
||||
make
|
||||
make install
|
||||
|
||||
Now make a special gimp startup script that you install in a directory
|
||||
that is in your path.
|
||||
|
||||
Here is an example
|
||||
|
||||
#!/bin/sh
|
||||
PREFIX=/opt/gimp
|
||||
LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
|
||||
exec $PREFIX/bin/gimp "$@"
|
||||
|
||||
OBSERVE that the patch makes Gtk+ binary and source incompatible, i.e you can't
|
||||
run your old compiled Gtk+ apps (which includes GNOME apps) with Gtk+ patched
|
||||
with this patch.
|
||||
|
||||
This is because the gdk_input_window_get_pointer is changed and now has nine
|
||||
parameters instead of eight. The added parameter is gdouble *wheel see below,
|
||||
|
||||
void gdk_input_window_get_pointer (GdkWindow *window,
|
||||
guint32 deviceid,
|
||||
gdouble *x,
|
||||
gdouble *y,
|
||||
gdouble *pressure,
|
||||
gdouble *xtilt,
|
||||
gdouble *ytilt,
|
||||
gdouble *wheel,
|
||||
GdkModifierType *mask);
|
||||
|
||||
gtkfeatures.h has a new define to enable you to check for the presence of this
|
||||
patch in your program. You can e.g use it as below
|
||||
|
||||
#ifdef GTK_HAVE_SIX_VALUATORS
|
||||
|
||||
gdk_input_window_get_pointer (event->window, event->deviceid,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
#else /* !GTK_HAVE_SIX_VALUATORS */
|
||||
|
||||
gdk_input_window_get_pointer (event->window, event->deviceid,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
#endif /* GTK_HAVE_SIX_VALUATORS */
|
||||
|
||||
Happy Gimping
|
||||
|
||||
Olof S Kylander
|
||||
|
@ -45,8 +45,6 @@ gimp_SOURCES = \
|
||||
ops_buttons.h \
|
||||
qmask.c \
|
||||
qmask.h \
|
||||
resize.c \
|
||||
resize.h \
|
||||
resolution_calibrate.c \
|
||||
resolution_calibrate.h \
|
||||
undo_history.c \
|
||||
@ -82,6 +80,8 @@ gimp_SOURCES = \
|
||||
image_map.h \
|
||||
module_db.c \
|
||||
module_db.h \
|
||||
resize.c \
|
||||
resize.h \
|
||||
user_install.c \
|
||||
user_install.h \
|
||||
##
|
||||
@ -92,6 +92,8 @@ gimp_SOURCES = \
|
||||
floating_sel.c \
|
||||
floating_sel.h \
|
||||
fsdither.h \
|
||||
gimphistogram.c \
|
||||
gimphistogram.h \
|
||||
gimppreviewcache.h \
|
||||
gimppreviewcache.c \
|
||||
parasitelist.c \
|
||||
@ -105,8 +107,7 @@ gimp_SOURCES = \
|
||||
boundary.h \
|
||||
brush_scale.c \
|
||||
brush_scale.h \
|
||||
gimphistogram.c \
|
||||
gimphistogram.h \
|
||||
gimpcheck.h \
|
||||
gimplut.c \
|
||||
gimplut.h \
|
||||
lut_funcs.c \
|
||||
|
@ -24,9 +24,8 @@
|
||||
|
||||
#include "apptypes.h"
|
||||
|
||||
#include "appenv.h"
|
||||
#include "errors.h"
|
||||
#include "boundary.h"
|
||||
#include "errors.h"
|
||||
#include "pixel_region.h"
|
||||
#include "tile.h"
|
||||
#include "tile_manager.h"
|
||||
@ -211,7 +210,7 @@ find_empty_segs (PixelRegion *maskPR,
|
||||
|
||||
last = val;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*num_empty = l_num_empty;
|
||||
|
||||
@ -237,7 +236,7 @@ make_seg (gint x1,
|
||||
max_segs += MAX_SEGS_INC;
|
||||
|
||||
tmp_segs = (BoundSeg *) g_realloc ((void *) tmp_segs,
|
||||
sizeof (BoundSeg) * max_segs);
|
||||
sizeof (BoundSeg) * max_segs);
|
||||
|
||||
if (!tmp_segs)
|
||||
gimp_fatal_error ("make_seg(): Unable to reallocate segments array for mask boundary.");
|
||||
|
@ -33,7 +33,6 @@
|
||||
|
||||
#include "pixel_processor.h"
|
||||
#include "pixel_region.h"
|
||||
#include "gimprc.h"
|
||||
|
||||
#ifdef ENABLE_MP
|
||||
#include "tile.h"
|
||||
|
@ -25,18 +25,11 @@
|
||||
|
||||
#include "apptypes.h"
|
||||
|
||||
#include "gimpprogress.h"
|
||||
#include "gimprc.h"
|
||||
#include "pixel_region.h"
|
||||
#include "tile_manager.h"
|
||||
#include "tile.h"
|
||||
|
||||
|
||||
/*********************/
|
||||
/* Local Variables */
|
||||
|
||||
|
||||
|
||||
/*********************/
|
||||
/* Local Functions */
|
||||
|
||||
@ -119,13 +112,13 @@ pixel_region_get_row (PixelRegion *PR,
|
||||
{
|
||||
Tile *tile;
|
||||
guchar *tile_data;
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
gint npixels;
|
||||
gint tilebpp;
|
||||
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
gint npixels;
|
||||
gint tilebpp;
|
||||
|
||||
end = x + w;
|
||||
|
||||
pixel_region_get_async (PR, x, y, end, y);
|
||||
@ -171,8 +164,8 @@ pixel_region_set_row (PixelRegion *PR,
|
||||
{
|
||||
Tile *tile;
|
||||
guchar *tile_data;
|
||||
gint end;
|
||||
gint npixels;
|
||||
gint end;
|
||||
gint npixels;
|
||||
|
||||
end = x + w;
|
||||
|
||||
@ -208,11 +201,11 @@ pixel_region_get_col (PixelRegion *PR,
|
||||
{
|
||||
Tile *tile;
|
||||
guchar *tile_data;
|
||||
gint tilebpp;
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
gint tilebpp;
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
|
||||
end = y + h;
|
||||
|
||||
@ -250,13 +243,13 @@ pixel_region_set_col (PixelRegion *PR,
|
||||
gint h,
|
||||
guchar *data)
|
||||
{
|
||||
Tile *tile;
|
||||
Tile *tile;
|
||||
guchar *tile_data;
|
||||
gint tilebpp;
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
gint tilebpp;
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
|
||||
end = y + h;
|
||||
|
||||
@ -298,13 +291,13 @@ gpointer
|
||||
pixel_regions_register (gint num_regions,
|
||||
...)
|
||||
{
|
||||
PixelRegion *PR;
|
||||
PixelRegionHolder *PRH;
|
||||
PixelRegion *PR;
|
||||
PixelRegionHolder *PRH;
|
||||
PixelRegionIterator *PRI;
|
||||
gboolean found;
|
||||
va_list ap;
|
||||
gboolean found;
|
||||
va_list ap;
|
||||
|
||||
PRI = (PixelRegionIterator *) g_malloc (sizeof (PixelRegionIterator));
|
||||
PRI = g_new (PixelRegionIterator, 1);
|
||||
PRI->pixel_regions = NULL;
|
||||
PRI->process_count = 0;
|
||||
PRI->dirty_tiles = 1;
|
||||
@ -318,7 +311,7 @@ pixel_regions_register (gint num_regions,
|
||||
while (num_regions --)
|
||||
{
|
||||
PR = va_arg (ap, PixelRegion *);
|
||||
PRH = (PixelRegionHolder *) g_malloc (sizeof (PixelRegionHolder));
|
||||
PRH = g_new (PixelRegionHolder, 1);
|
||||
PRH->PR = PR;
|
||||
|
||||
if (PR != NULL)
|
||||
@ -353,8 +346,8 @@ pixel_regions_register (gint num_regions,
|
||||
gpointer
|
||||
pixel_regions_process (gpointer PRI_ptr)
|
||||
{
|
||||
GSList *list;
|
||||
PixelRegionHolder *PRH;
|
||||
GSList *list;
|
||||
PixelRegionHolder *PRH;
|
||||
PixelRegionIterator *PRI;
|
||||
|
||||
PRI = (PixelRegionIterator *) PRI_ptr;
|
||||
@ -399,7 +392,7 @@ pixel_regions_process (gpointer PRI_ptr)
|
||||
void
|
||||
pixel_regions_process_stop (gpointer PRI_ptr)
|
||||
{
|
||||
GSList *list;
|
||||
GSList *list;
|
||||
PixelRegionHolder *PRH;
|
||||
PixelRegionIterator *PRI;
|
||||
|
||||
@ -446,10 +439,10 @@ pixel_regions_process_stop (gpointer PRI_ptr)
|
||||
static gint
|
||||
get_portion_height (PixelRegionIterator *PRI)
|
||||
{
|
||||
GSList *list;
|
||||
GSList *list;
|
||||
PixelRegionHolder *PRH;
|
||||
gint min_height = G_MAXINT;
|
||||
gint height;
|
||||
gint min_height = G_MAXINT;
|
||||
gint height;
|
||||
|
||||
/* Find the minimum height to the next vertical tile
|
||||
* (in the case of a tile manager) or to the end of the
|
||||
@ -488,10 +481,10 @@ get_portion_height (PixelRegionIterator *PRI)
|
||||
static gint
|
||||
get_portion_width (PixelRegionIterator *PRI)
|
||||
{
|
||||
GSList *list;
|
||||
GSList *list;
|
||||
PixelRegionHolder *PRH;
|
||||
gint min_width = G_MAXINT;
|
||||
gint width;
|
||||
gint min_width = G_MAXINT;
|
||||
gint width;
|
||||
|
||||
/* Find the minimum width to the next vertical tile
|
||||
* (in the case of a tile manager) or to the end of
|
||||
@ -531,7 +524,7 @@ static gpointer
|
||||
pixel_regions_configure (PixelRegionIterator *PRI)
|
||||
{
|
||||
PixelRegionHolder *PRH;
|
||||
GSList *list;
|
||||
GSList *list;
|
||||
|
||||
/* Determine the portion width and height */
|
||||
PRI->portion_width = get_portion_width (PRI);
|
||||
|
@ -24,9 +24,8 @@
|
||||
|
||||
#include "apptypes.h"
|
||||
|
||||
#include "appenv.h"
|
||||
#include "errors.h"
|
||||
#include "boundary.h"
|
||||
#include "errors.h"
|
||||
#include "pixel_region.h"
|
||||
#include "tile.h"
|
||||
#include "tile_manager.h"
|
||||
@ -211,7 +210,7 @@ find_empty_segs (PixelRegion *maskPR,
|
||||
|
||||
last = val;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*num_empty = l_num_empty;
|
||||
|
||||
@ -237,7 +236,7 @@ make_seg (gint x1,
|
||||
max_segs += MAX_SEGS_INC;
|
||||
|
||||
tmp_segs = (BoundSeg *) g_realloc ((void *) tmp_segs,
|
||||
sizeof (BoundSeg) * max_segs);
|
||||
sizeof (BoundSeg) * max_segs);
|
||||
|
||||
if (!tmp_segs)
|
||||
gimp_fatal_error ("make_seg(): Unable to reallocate segments array for mask boundary.");
|
||||
|
@ -33,7 +33,6 @@
|
||||
|
||||
#include "pixel_processor.h"
|
||||
#include "pixel_region.h"
|
||||
#include "gimprc.h"
|
||||
|
||||
#ifdef ENABLE_MP
|
||||
#include "tile.h"
|
||||
|
@ -25,18 +25,11 @@
|
||||
|
||||
#include "apptypes.h"
|
||||
|
||||
#include "gimpprogress.h"
|
||||
#include "gimprc.h"
|
||||
#include "pixel_region.h"
|
||||
#include "tile_manager.h"
|
||||
#include "tile.h"
|
||||
|
||||
|
||||
/*********************/
|
||||
/* Local Variables */
|
||||
|
||||
|
||||
|
||||
/*********************/
|
||||
/* Local Functions */
|
||||
|
||||
@ -119,13 +112,13 @@ pixel_region_get_row (PixelRegion *PR,
|
||||
{
|
||||
Tile *tile;
|
||||
guchar *tile_data;
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
gint npixels;
|
||||
gint tilebpp;
|
||||
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
gint npixels;
|
||||
gint tilebpp;
|
||||
|
||||
end = x + w;
|
||||
|
||||
pixel_region_get_async (PR, x, y, end, y);
|
||||
@ -171,8 +164,8 @@ pixel_region_set_row (PixelRegion *PR,
|
||||
{
|
||||
Tile *tile;
|
||||
guchar *tile_data;
|
||||
gint end;
|
||||
gint npixels;
|
||||
gint end;
|
||||
gint npixels;
|
||||
|
||||
end = x + w;
|
||||
|
||||
@ -208,11 +201,11 @@ pixel_region_get_col (PixelRegion *PR,
|
||||
{
|
||||
Tile *tile;
|
||||
guchar *tile_data;
|
||||
gint tilebpp;
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
gint tilebpp;
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
|
||||
end = y + h;
|
||||
|
||||
@ -250,13 +243,13 @@ pixel_region_set_col (PixelRegion *PR,
|
||||
gint h,
|
||||
guchar *data)
|
||||
{
|
||||
Tile *tile;
|
||||
Tile *tile;
|
||||
guchar *tile_data;
|
||||
gint tilebpp;
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
gint tilebpp;
|
||||
gint inc;
|
||||
gint end;
|
||||
gint boundary;
|
||||
gint b;
|
||||
|
||||
end = y + h;
|
||||
|
||||
@ -298,13 +291,13 @@ gpointer
|
||||
pixel_regions_register (gint num_regions,
|
||||
...)
|
||||
{
|
||||
PixelRegion *PR;
|
||||
PixelRegionHolder *PRH;
|
||||
PixelRegion *PR;
|
||||
PixelRegionHolder *PRH;
|
||||
PixelRegionIterator *PRI;
|
||||
gboolean found;
|
||||
va_list ap;
|
||||
gboolean found;
|
||||
va_list ap;
|
||||
|
||||
PRI = (PixelRegionIterator *) g_malloc (sizeof (PixelRegionIterator));
|
||||
PRI = g_new (PixelRegionIterator, 1);
|
||||
PRI->pixel_regions = NULL;
|
||||
PRI->process_count = 0;
|
||||
PRI->dirty_tiles = 1;
|
||||
@ -318,7 +311,7 @@ pixel_regions_register (gint num_regions,
|
||||
while (num_regions --)
|
||||
{
|
||||
PR = va_arg (ap, PixelRegion *);
|
||||
PRH = (PixelRegionHolder *) g_malloc (sizeof (PixelRegionHolder));
|
||||
PRH = g_new (PixelRegionHolder, 1);
|
||||
PRH->PR = PR;
|
||||
|
||||
if (PR != NULL)
|
||||
@ -353,8 +346,8 @@ pixel_regions_register (gint num_regions,
|
||||
gpointer
|
||||
pixel_regions_process (gpointer PRI_ptr)
|
||||
{
|
||||
GSList *list;
|
||||
PixelRegionHolder *PRH;
|
||||
GSList *list;
|
||||
PixelRegionHolder *PRH;
|
||||
PixelRegionIterator *PRI;
|
||||
|
||||
PRI = (PixelRegionIterator *) PRI_ptr;
|
||||
@ -399,7 +392,7 @@ pixel_regions_process (gpointer PRI_ptr)
|
||||
void
|
||||
pixel_regions_process_stop (gpointer PRI_ptr)
|
||||
{
|
||||
GSList *list;
|
||||
GSList *list;
|
||||
PixelRegionHolder *PRH;
|
||||
PixelRegionIterator *PRI;
|
||||
|
||||
@ -446,10 +439,10 @@ pixel_regions_process_stop (gpointer PRI_ptr)
|
||||
static gint
|
||||
get_portion_height (PixelRegionIterator *PRI)
|
||||
{
|
||||
GSList *list;
|
||||
GSList *list;
|
||||
PixelRegionHolder *PRH;
|
||||
gint min_height = G_MAXINT;
|
||||
gint height;
|
||||
gint min_height = G_MAXINT;
|
||||
gint height;
|
||||
|
||||
/* Find the minimum height to the next vertical tile
|
||||
* (in the case of a tile manager) or to the end of the
|
||||
@ -488,10 +481,10 @@ get_portion_height (PixelRegionIterator *PRI)
|
||||
static gint
|
||||
get_portion_width (PixelRegionIterator *PRI)
|
||||
{
|
||||
GSList *list;
|
||||
GSList *list;
|
||||
PixelRegionHolder *PRH;
|
||||
gint min_width = G_MAXINT;
|
||||
gint width;
|
||||
gint min_width = G_MAXINT;
|
||||
gint width;
|
||||
|
||||
/* Find the minimum width to the next vertical tile
|
||||
* (in the case of a tile manager) or to the end of
|
||||
@ -531,7 +524,7 @@ static gpointer
|
||||
pixel_regions_configure (PixelRegionIterator *PRI)
|
||||
{
|
||||
PixelRegionHolder *PRH;
|
||||
GSList *list;
|
||||
GSList *list;
|
||||
|
||||
/* Determine the portion width and height */
|
||||
PRI->portion_width = get_portion_width (PRI);
|
||||
|
@ -966,8 +966,7 @@ typedef enum
|
||||
GIMP_BLUE_CHANNEL,
|
||||
GIMP_GRAY_CHANNEL,
|
||||
GIMP_INDEXED_CHANNEL,
|
||||
GIMP_ALPHA_CHANNEL,
|
||||
GIMP_AUXILLARY_CHANNEL
|
||||
GIMP_ALPHA_CHANNEL
|
||||
} GimpChannelType;
|
||||
</ENUM>
|
||||
<ENUM>
|
||||
@ -3491,62 +3490,3 @@ GIOChannel *channel,gdouble *data,gint count
|
||||
<RETURNS>gboolean </RETURNS>
|
||||
GIOChannel *channel,gchar **data,gint count
|
||||
</FUNCTION>
|
||||
<USER_FUNCTION>
|
||||
<NAME>GimpRenderFunc</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
GimpRGB *color,
|
||||
gpointer data
|
||||
</USER_FUNCTION>
|
||||
<USER_FUNCTION>
|
||||
<NAME>GimpPutPixelFunc</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint x,
|
||||
gint y,
|
||||
GimpRGB *color,
|
||||
gpointer data
|
||||
</USER_FUNCTION>
|
||||
<USER_FUNCTION>
|
||||
<NAME>GimpProgressFunc</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint min,
|
||||
gint max,
|
||||
gint current,
|
||||
gpointer data
|
||||
</USER_FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_adaptive_supersample_area</NAME>
|
||||
<RETURNS>gulong </RETURNS>
|
||||
gint x1,gint y1,gint x2,gint y2,gint max_depth,gdouble threshold,GimpRenderFunc render_func,gpointer render_data,GimpPutPixelFunc put_pixel_func,gpointer put_pixel_data,GimpProgressFunc progress_func,gpointer progress_data
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
gdouble x,gdouble y,gdouble *values
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear_8</NAME>
|
||||
<RETURNS>guchar </RETURNS>
|
||||
gdouble x,gdouble y,guchar *values
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear_16</NAME>
|
||||
<RETURNS>guint16 </RETURNS>
|
||||
gdouble x,gdouble y,guint16 *values
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear_32</NAME>
|
||||
<RETURNS>guint32 </RETURNS>
|
||||
gdouble x,gdouble y,guint32 *values
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear_rgb</NAME>
|
||||
<RETURNS>GimpRGB </RETURNS>
|
||||
gdouble x,gdouble y,GimpRGB *values
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear_rgba</NAME>
|
||||
<RETURNS>GimpRGB </RETURNS>
|
||||
gdouble x,gdouble y,GimpRGB *values
|
||||
</FUNCTION>
|
||||
|
@ -777,21 +777,3 @@ gimp_unit_get_plural
|
||||
gimp_strescape
|
||||
gimp_strcompress
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>gimpadaptivesupersample</FILE>
|
||||
GimpRenderFunc
|
||||
GimpPutPixelFunc
|
||||
GimpProgressFunc
|
||||
gimp_adaptive_supersample_area
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>gimpbilinear</FILE>
|
||||
gimp_bilinear
|
||||
gimp_bilinear_8
|
||||
gimp_bilinear_16
|
||||
gimp_bilinear_32
|
||||
gimp_bilinear_rgb
|
||||
gimp_bilinear_rgba
|
||||
</SECTION>
|
||||
|
@ -1 +1,21 @@
|
||||
GtkObject
|
||||
GtkWidget
|
||||
GtkRange
|
||||
GtkScrollbar
|
||||
GtkVScrollbar
|
||||
GtkHScrollbar
|
||||
GtkScale
|
||||
GtkHScale
|
||||
GtkVScale
|
||||
GtkContainer
|
||||
GtkBin
|
||||
GtkButton
|
||||
GtkToggleButton
|
||||
GtkCheckButton
|
||||
GtkRadioButton
|
||||
GtkScrolledWindow
|
||||
GtkPaned
|
||||
GtkVPaned
|
||||
GtkHPaned
|
||||
GtkData
|
||||
GtkAdjustment
|
||||
|
@ -86,7 +86,6 @@ Enums and definitions.
|
||||
@GIMP_GRAY_CHANNEL:
|
||||
@GIMP_INDEXED_CHANNEL:
|
||||
@GIMP_ALPHA_CHANNEL:
|
||||
@GIMP_AUXILLARY_CHANNEL:
|
||||
|
||||
<!-- ##### ENUM GimpCloneType ##### -->
|
||||
<para>
|
||||
|
@ -1,113 +1,3 @@
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hsv</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
const GimpRGB *rgb,GimpHSV *hsv
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hsl</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
const GimpRGB *rgb,gdouble *hue,gdouble *saturation,gdouble *lightness
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_to_rgb</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
const GimpHSV *hsv,GimpRGB *rgb
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsl_to_rgb</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gdouble hue,gdouble saturation,gdouble lightness,GimpRGB *rgb
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hwb</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
const GimpRGB *rgb,gdouble *hue,gdouble *whiteness,gdouble *blackness
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hwb_to_rgb</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gdouble hue,gdouble whiteness,gdouble blackness,GimpRGB *rgb
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hsv_int</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint *red ,gint *green ,gint *blue
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_to_rgb_int</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint *hue ,gint *saturation ,gint *value
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hls_int</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint *red ,gint *green ,gint *blue
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_l_int</NAME>
|
||||
<RETURNS>gint </RETURNS>
|
||||
gint red,gint green,gint blue
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hls_to_rgb_int</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint *hue ,gint *lightness ,gint *saturation
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hsv_double</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gdouble *red ,gdouble *green ,gdouble *blue
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_to_rgb_double</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gdouble *hue ,gdouble *saturation,gdouble *value
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hsv4</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
guchar *hsv,gdouble *red,gdouble *green,gdouble *blue
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_to_rgb4</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
guchar *rgb,gdouble hue,gdouble saturation,gdouble value
|
||||
</FUNCTION>
|
||||
<STRUCT>
|
||||
<NAME>GimpRGB</NAME>
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpRGB</NAME>
|
||||
struct GimpRGB
|
||||
{
|
||||
gdouble r, g, b, a;
|
||||
};
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpHSV</NAME>
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpHSV</NAME>
|
||||
struct GimpHSV
|
||||
{
|
||||
gdouble h, s, v, a;
|
||||
};
|
||||
</STRUCT>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_set</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpHSV *hsv,gdouble h,gdouble s,gdouble v
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_clamp</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpHSV *hsv
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsva_set</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpHSV *hsva,gdouble h,gdouble s,gdouble v,gdouble a
|
||||
</FUNCTION>
|
||||
<ENUM>
|
||||
<NAME>GimpRGBCompositeMode</NAME>
|
||||
typedef enum
|
||||
@ -245,3 +135,172 @@ const GimpRGB *rgba1,const GimpRGB *rgba2
|
||||
(g) * INTENSITY_GREEN + \
|
||||
(b) * INTENSITY_BLUE + 0.001)
|
||||
</MACRO>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_set</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpHSV *hsv,gdouble h,gdouble s,gdouble v
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_clamp</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpHSV *hsv
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsva_set</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
GimpHSV *hsva,gdouble h,gdouble s,gdouble v,gdouble a
|
||||
</FUNCTION>
|
||||
<STRUCT>
|
||||
<NAME>GimpRGB</NAME>
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpRGB</NAME>
|
||||
struct GimpRGB
|
||||
{
|
||||
gdouble r, g, b, a;
|
||||
};
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpHSV</NAME>
|
||||
</STRUCT>
|
||||
<STRUCT>
|
||||
<NAME>GimpHSV</NAME>
|
||||
struct GimpHSV
|
||||
{
|
||||
gdouble h, s, v, a;
|
||||
};
|
||||
</STRUCT>
|
||||
<USER_FUNCTION>
|
||||
<NAME>GimpRenderFunc</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
GimpRGB *color,
|
||||
gpointer data
|
||||
</USER_FUNCTION>
|
||||
<USER_FUNCTION>
|
||||
<NAME>GimpPutPixelFunc</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint x,
|
||||
gint y,
|
||||
GimpRGB *color,
|
||||
gpointer data
|
||||
</USER_FUNCTION>
|
||||
<USER_FUNCTION>
|
||||
<NAME>GimpProgressFunc</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint min,
|
||||
gint max,
|
||||
gint current,
|
||||
gpointer data
|
||||
</USER_FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hsv</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
const GimpRGB *rgb,GimpHSV *hsv
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hsl</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
const GimpRGB *rgb,gdouble *hue,gdouble *saturation,gdouble *lightness
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_to_rgb</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
const GimpHSV *hsv,GimpRGB *rgb
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsl_to_rgb</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gdouble hue,gdouble saturation,gdouble lightness,GimpRGB *rgb
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hwb</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
const GimpRGB *rgb,gdouble *hue,gdouble *whiteness,gdouble *blackness
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hwb_to_rgb</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gdouble hue,gdouble whiteness,gdouble blackness,GimpRGB *rgb
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hsv_int</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint *red ,gint *green ,gint *blue
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_to_rgb_int</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint *hue ,gint *saturation ,gint *value
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hls_int</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint *red ,gint *green ,gint *blue
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_l_int</NAME>
|
||||
<RETURNS>gint </RETURNS>
|
||||
gint red,gint green,gint blue
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hls_to_rgb_int</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gint *hue ,gint *lightness ,gint *saturation
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hsv_double</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gdouble *red ,gdouble *green ,gdouble *blue
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_to_rgb_double</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
gdouble *hue ,gdouble *saturation,gdouble *value
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_rgb_to_hsv4</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
guchar *hsv,gdouble *red,gdouble *green,gdouble *blue
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_hsv_to_rgb4</NAME>
|
||||
<RETURNS>void </RETURNS>
|
||||
guchar *rgb,gdouble hue,gdouble saturation,gdouble value
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_adaptive_supersample_area</NAME>
|
||||
<RETURNS>gulong </RETURNS>
|
||||
gint x1,gint y1,gint x2,gint y2,gint max_depth,gdouble threshold,GimpRenderFunc render_func,gpointer render_data,GimpPutPixelFunc put_pixel_func,gpointer put_pixel_data,GimpProgressFunc progress_func,gpointer progress_data
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear</NAME>
|
||||
<RETURNS>gdouble </RETURNS>
|
||||
gdouble x,gdouble y,gdouble *values
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear_8</NAME>
|
||||
<RETURNS>guchar </RETURNS>
|
||||
gdouble x,gdouble y,guchar *values
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear_16</NAME>
|
||||
<RETURNS>guint16 </RETURNS>
|
||||
gdouble x,gdouble y,guint16 *values
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear_32</NAME>
|
||||
<RETURNS>guint32 </RETURNS>
|
||||
gdouble x,gdouble y,guint32 *values
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear_rgb</NAME>
|
||||
<RETURNS>GimpRGB </RETURNS>
|
||||
gdouble x,gdouble y,GimpRGB *values
|
||||
</FUNCTION>
|
||||
<FUNCTION>
|
||||
<NAME>gimp_bilinear_rgba</NAME>
|
||||
<RETURNS>GimpRGB </RETURNS>
|
||||
gdouble x,gdouble y,GimpRGB *values
|
||||
</FUNCTION>
|
||||
|
@ -3,6 +3,8 @@
|
||||
<!entity libgimpcolor-gimpcolorspace SYSTEM "sgml/gimpcolorspace.sgml">
|
||||
<!entity libgimpcolor-gimprgb SYSTEM "sgml/gimprgb.sgml">
|
||||
<!entity libgimpcolor-gimphsv SYSTEM "sgml/gimphsv.sgml">
|
||||
<!entity libgimpcolor-gimpadaptivesupersample SYSTEM "sgml/gimpadaptivesupersample.sgml">
|
||||
<!entity libgimpcolor-gimpbilinear SYSTEM "sgml/gimpbilinear.sgml">
|
||||
]>
|
||||
<book id="index">
|
||||
<bookinfo>
|
||||
@ -15,5 +17,7 @@
|
||||
&libgimpcolor-gimpcolorspace;
|
||||
&libgimpcolor-gimprgb;
|
||||
&libgimpcolor-gimphsv;
|
||||
&libgimpcolor-gimpadaptivesupersample;
|
||||
&libgimpcolor-gimpbilinear;
|
||||
</chapter>
|
||||
</book>
|
||||
|
@ -25,6 +25,9 @@ gimp_hsv_to_rgb4
|
||||
<FILE>gimpcolortypes</FILE>
|
||||
GimpRGB
|
||||
GimpHSV
|
||||
GimpRenderFunc
|
||||
GimpPutPixelFunc
|
||||
GimpProgressFunc
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
@ -65,3 +68,17 @@ INTENSITY_BLUE
|
||||
INTENSITY
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>gimpadaptivesupersample</FILE>
|
||||
gimp_adaptive_supersample_area
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>gimpbilinear</FILE>
|
||||
gimp_bilinear
|
||||
gimp_bilinear_8
|
||||
gimp_bilinear_16
|
||||
gimp_bilinear_32
|
||||
gimp_bilinear_rgb
|
||||
gimp_bilinear_rgba
|
||||
</SECTION>
|
||||
|
@ -1 +1,21 @@
|
||||
GtkObject
|
||||
GtkWidget
|
||||
GtkRange
|
||||
GtkScrollbar
|
||||
GtkVScrollbar
|
||||
GtkHScrollbar
|
||||
GtkScale
|
||||
GtkHScale
|
||||
GtkVScale
|
||||
GtkContainer
|
||||
GtkBin
|
||||
GtkButton
|
||||
GtkToggleButton
|
||||
GtkCheckButton
|
||||
GtkRadioButton
|
||||
GtkScrolledWindow
|
||||
GtkPaned
|
||||
GtkVPaned
|
||||
GtkHPaned
|
||||
GtkData
|
||||
GtkAdjustment
|
||||
|
@ -14,39 +14,6 @@ gimpadaptivesupersample
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### USER_FUNCTION GimpRenderFunc ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@x:
|
||||
@y:
|
||||
@color:
|
||||
@data:
|
||||
|
||||
|
||||
<!-- ##### USER_FUNCTION GimpPutPixelFunc ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@x:
|
||||
@y:
|
||||
@color:
|
||||
@data:
|
||||
|
||||
|
||||
<!-- ##### USER_FUNCTION GimpProgressFunc ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@min:
|
||||
@max:
|
||||
@current:
|
||||
@data:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gimp_adaptive_supersample_area ##### -->
|
||||
<para>
|
||||
|
@ -34,3 +34,36 @@ gimpcolortypes
|
||||
@v:
|
||||
@a:
|
||||
|
||||
<!-- ##### USER_FUNCTION GimpRenderFunc ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@x:
|
||||
@y:
|
||||
@color:
|
||||
@data:
|
||||
|
||||
|
||||
<!-- ##### USER_FUNCTION GimpPutPixelFunc ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@x:
|
||||
@y:
|
||||
@color:
|
||||
@data:
|
||||
|
||||
|
||||
<!-- ##### USER_FUNCTION GimpProgressFunc ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@min:
|
||||
@max:
|
||||
@current:
|
||||
@data:
|
||||
|
||||
|
||||
|
@ -58,6 +58,7 @@ libgimpwidgets_1_3_la_SOURCES = \
|
||||
libgimpwidgetsinclude_HEADERS = \
|
||||
gimpwidgets.h \
|
||||
gimpwidgetstypes.h \
|
||||
gimpbutton.h \
|
||||
gimpchainbutton.h \
|
||||
gimpcolorarea.h \
|
||||
gimpcolorbutton.h \
|
||||
|
@ -1,347 +0,0 @@
|
||||
--- gdk/gdk.h Wed Feb 24 11:14:55 1999
|
||||
+++ gdk/gdk.h Tue Jul 6 17:45:19 1999
|
||||
@@ -840,6 +840,7 @@
|
||||
gdouble *pressure,
|
||||
gdouble *xtilt,
|
||||
gdouble *ytilt,
|
||||
+ gdouble *wheel,
|
||||
GdkModifierType *mask);
|
||||
|
||||
GdkTimeCoord *gdk_input_motion_events (GdkWindow *window,
|
||||
--- gdk/gdkinput.c Wed Feb 24 11:14:55 1999
|
||||
+++ gdk/gdkinput.c Tue Jul 6 18:09:49 1999
|
||||
@@ -153,6 +153,7 @@
|
||||
coords[i].pressure = 0.5;
|
||||
coords[i].xtilt = 0.0;
|
||||
coords[i].ytilt = 0.0;
|
||||
+ coords[i].wheel = 0.5;
|
||||
}
|
||||
|
||||
XFree (xcoords);
|
||||
@@ -345,9 +346,10 @@
|
||||
gdouble *pressure,
|
||||
gdouble *xtilt,
|
||||
gdouble *ytilt,
|
||||
+ gdouble *wheel,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
if (gdk_input_vtable.get_pointer)
|
||||
gdk_input_vtable.get_pointer (window, deviceid, x, y, pressure,
|
||||
- xtilt, ytilt, mask);
|
||||
+ xtilt, ytilt, wheel, mask);
|
||||
}
|
||||
--- gdk/gdkinput.h Wed Feb 24 11:14:56 1999
|
||||
+++ gdk/gdkinput.h Tue Jul 6 17:57:32 1999
|
||||
@@ -56,6 +56,7 @@
|
||||
gdouble *pressure,
|
||||
gdouble *xtilt,
|
||||
gdouble *ytilt,
|
||||
+ gdouble *wheel,
|
||||
GdkModifierType *mask);
|
||||
gint (*grab_pointer) (GdkWindow * window,
|
||||
gint owner_events,
|
||||
--- gdk/gdkinputcommon.h Wed Feb 24 11:14:56 1999
|
||||
+++ gdk/gdkinputcommon.h Tue Jul 6 18:22:13 1999
|
||||
@@ -45,7 +45,8 @@
|
||||
gint *axis_data,
|
||||
gdouble *x, gdouble *y,
|
||||
gdouble *pressure,
|
||||
- gdouble *xtilt, gdouble *ytilt);
|
||||
+ gdouble *xtilt, gdouble *ytilt,
|
||||
+ gdouble *wheel);
|
||||
static guint gdk_input_translate_state(guint state, guint device_state);
|
||||
static gint gdk_input_common_init(gint include_core);
|
||||
static gint gdk_input_common_other_event (GdkEvent *event,
|
||||
@@ -65,6 +66,7 @@
|
||||
gdouble *pressure,
|
||||
gdouble *xtilt,
|
||||
gdouble *ytilt,
|
||||
+ gdouble *wheel,
|
||||
GdkModifierType *mask);
|
||||
|
||||
#define GDK_MAX_DEVICE_CLASSES 13
|
||||
@@ -237,6 +239,8 @@
|
||||
gdkdev->info.axes[j++] = GDK_AXIS_XTILT;
|
||||
if (j<xvi->num_axes)
|
||||
gdkdev->info.axes[j++] = GDK_AXIS_YTILT;
|
||||
+ if (j<xvi->num_axes)
|
||||
+ gdkdev->info.axes[j++] = GDK_AXIS_WHEEL;
|
||||
|
||||
/* set up reverse lookup on axis use */
|
||||
for (j=GDK_AXIS_IGNORE;j<GDK_AXIS_LAST;j++)
|
||||
@@ -470,11 +474,11 @@
|
||||
GdkInputWindow *input_window,
|
||||
gint *axis_data,
|
||||
gdouble *x, gdouble *y, gdouble *pressure,
|
||||
- gdouble *xtilt, gdouble *ytilt)
|
||||
+ gdouble *xtilt, gdouble *ytilt, gdouble *wheel)
|
||||
{
|
||||
GdkWindowPrivate *win_priv;
|
||||
|
||||
- int x_axis, y_axis, pressure_axis, xtilt_axis, ytilt_axis;
|
||||
+ int x_axis, y_axis, pressure_axis, xtilt_axis, ytilt_axis, wheel_axis;
|
||||
|
||||
double device_width, device_height;
|
||||
double x_offset, y_offset, x_scale, y_scale;
|
||||
@@ -486,6 +490,7 @@
|
||||
pressure_axis = gdkdev->axis_for_use[GDK_AXIS_PRESSURE];
|
||||
xtilt_axis = gdkdev->axis_for_use[GDK_AXIS_XTILT];
|
||||
ytilt_axis = gdkdev->axis_for_use[GDK_AXIS_YTILT];
|
||||
+ wheel_axis = gdkdev->axis_for_use[GDK_AXIS_WHEEL];
|
||||
|
||||
device_width = gdkdev->axes[x_axis].max_value -
|
||||
gdkdev->axes[x_axis].min_value;
|
||||
@@ -568,6 +573,16 @@
|
||||
else
|
||||
*ytilt = 0;
|
||||
}
|
||||
+ if (wheel)
|
||||
+ {
|
||||
+ if (wheel_axis != -1)
|
||||
+ *wheel = ((double)axis_data[wheel_axis]
|
||||
+ - gdkdev->axes[wheel_axis].min_value)
|
||||
+ / (gdkdev->axes[wheel_axis].max_value
|
||||
+ - gdkdev->axes[wheel_axis].min_value);
|
||||
+ else
|
||||
+ *wheel = 0.5;
|
||||
+ }
|
||||
}
|
||||
|
||||
/* combine the state of the core device and the device state
|
||||
@@ -611,7 +626,8 @@
|
||||
&event->button.x,&event->button.y,
|
||||
&event->button.pressure,
|
||||
&event->button.xtilt,
|
||||
- &event->button.ytilt);
|
||||
+ &event->button.ytilt,
|
||||
+ &event->button.wheel);
|
||||
event->button.state = gdk_input_translate_state(xdbe->state,xdbe->device_state);
|
||||
event->button.button = xdbe->button;
|
||||
|
||||
@@ -694,7 +710,8 @@
|
||||
&event->motion.x,&event->motion.y,
|
||||
&event->motion.pressure,
|
||||
&event->motion.xtilt,
|
||||
- &event->motion.ytilt);
|
||||
+ &event->motion.ytilt,
|
||||
+ &event->motion.wheel);
|
||||
|
||||
event->motion.type = GDK_MOTION_NOTIFY;
|
||||
event->motion.window = input_window->window;
|
||||
@@ -809,7 +826,8 @@
|
||||
device_coords[i].data,
|
||||
&coords[i].x, &coords[i].y,
|
||||
&coords[i].pressure,
|
||||
- &coords[i].xtilt, &coords[i].ytilt);
|
||||
+ &coords[i].xtilt, &coords[i].ytilt,
|
||||
+ &coords[i].wheel);
|
||||
}
|
||||
XFreeDeviceMotionEvents (device_coords);
|
||||
|
||||
@@ -827,6 +845,7 @@
|
||||
gdouble *pressure,
|
||||
gdouble *xtilt,
|
||||
gdouble *ytilt,
|
||||
+ gdouble *wheel,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkDevicePrivate *gdkdev;
|
||||
@@ -846,6 +865,7 @@
|
||||
if (pressure) *pressure = 0.5;
|
||||
if (xtilt) *xtilt = 0;
|
||||
if (ytilt) *ytilt = 0;
|
||||
+ if (wheel) *wheel = 0.5;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -868,8 +888,10 @@
|
||||
case ValuatorClass:
|
||||
gdk_input_translate_coordinates (gdkdev, input_window,
|
||||
((XValuatorState *)input_class)->valuators,
|
||||
- x, y, pressure,
|
||||
- xtilt, ytilt);
|
||||
+ x, y,
|
||||
+ pressure,
|
||||
+ xtilt, ytilt,
|
||||
+ wheel);
|
||||
|
||||
|
||||
break;
|
||||
--- gdk/gdkinputgxi.h Wed Feb 24 11:14:56 1999
|
||||
+++ gdk/gdkinputgxi.h Tue Jul 6 18:03:42 1999
|
||||
@@ -64,6 +64,7 @@
|
||||
gdouble *pressure,
|
||||
gdouble *xtilt,
|
||||
gdouble *ytilt,
|
||||
+ gdouble *wheel,
|
||||
GdkModifierType *mask);
|
||||
static gint gdk_input_gxi_grab_pointer (GdkWindow * window,
|
||||
gint owner_events,
|
||||
@@ -554,6 +555,7 @@
|
||||
gdouble *pressure,
|
||||
gdouble *xtilt,
|
||||
gdouble *ytilt,
|
||||
+ gdouble *wheel,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkDevicePrivate *gdkdev;
|
||||
@@ -563,10 +565,10 @@
|
||||
|
||||
if (gdkdev == gdk_input_core_pointer)
|
||||
gdk_input_common_get_pointer (window, GDK_CORE_POINTER, x, y,
|
||||
- pressure, xtilt, ytilt, mask);
|
||||
+ pressure, xtilt, ytilt, wheel, mask);
|
||||
else
|
||||
gdk_input_common_get_pointer (window, deviceid, x, y,
|
||||
- pressure, xtilt, ytilt, mask);
|
||||
+ pressure, xtilt, ytilt, wheel, mask);
|
||||
}
|
||||
|
||||
static GdkTimeCoord *
|
||||
--- gdk/gdkinputnone.h Wed Feb 24 11:14:56 1999
|
||||
+++ gdk/gdkinputnone.h Tue Jul 6 18:02:14 1999
|
||||
@@ -33,6 +33,7 @@
|
||||
gdouble *pressure,
|
||||
gdouble *xtilt,
|
||||
gdouble *ytilt,
|
||||
+ gdouble *wheel,
|
||||
GdkModifierType *mask);
|
||||
|
||||
void
|
||||
@@ -65,6 +66,7 @@
|
||||
gdouble *pressure,
|
||||
gdouble *xtilt,
|
||||
gdouble *ytilt,
|
||||
+ gdouble *wheel,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
gint x_int, y_int;
|
||||
@@ -76,6 +78,7 @@
|
||||
if (pressure) *pressure = 0.5;
|
||||
if (xtilt) *xtilt = 0;
|
||||
if (ytilt) *ytilt = 0;
|
||||
+ if (wheel) *wheel = 0.5;
|
||||
}
|
||||
|
||||
#endif /* XINPUT_NONE */
|
||||
--- gdk/gdktypes.h Wed Feb 24 11:14:56 1999
|
||||
+++ gdk/gdktypes.h Tue Jul 6 18:11:37 1999
|
||||
@@ -577,6 +577,7 @@
|
||||
GDK_AXIS_PRESSURE,
|
||||
GDK_AXIS_XTILT,
|
||||
GDK_AXIS_YTILT,
|
||||
+ GDK_AXIS_WHEEL,
|
||||
GDK_AXIS_LAST
|
||||
} GdkAxisUse;
|
||||
|
||||
@@ -1001,6 +1002,7 @@
|
||||
gdouble pressure;
|
||||
gdouble xtilt;
|
||||
gdouble ytilt;
|
||||
+ gdouble wheel;
|
||||
};
|
||||
|
||||
/* Structure that holds information about a drag in progress.
|
||||
@@ -1073,6 +1075,7 @@
|
||||
gdouble pressure;
|
||||
gdouble xtilt;
|
||||
gdouble ytilt;
|
||||
+ gdouble wheel;
|
||||
guint state;
|
||||
gint16 is_hint;
|
||||
GdkInputSource source;
|
||||
@@ -1091,6 +1094,7 @@
|
||||
gdouble pressure;
|
||||
gdouble xtilt;
|
||||
gdouble ytilt;
|
||||
+ gdouble wheel;
|
||||
guint state;
|
||||
guint button;
|
||||
GdkInputSource source;
|
||||
--- gtk/gtkinputdialog.c Wed Feb 24 11:15:09 1999
|
||||
+++ gtk/gtkinputdialog.c Tue Jul 6 18:37:59 1999
|
||||
@@ -70,10 +70,10 @@
|
||||
|
||||
|
||||
#define AXIS_LIST_WIDTH 160
|
||||
-#define AXIS_LIST_HEIGHT 175
|
||||
+#define AXIS_LIST_HEIGHT 195
|
||||
|
||||
#define KEYS_LIST_WIDTH 200
|
||||
-#define KEYS_LIST_HEIGHT 175
|
||||
+#define KEYS_LIST_HEIGHT 195
|
||||
|
||||
/* Forward declarations */
|
||||
|
||||
@@ -501,7 +501,8 @@
|
||||
N_("Y"),
|
||||
N_("Pressure"),
|
||||
N_("X Tilt"),
|
||||
- N_("Y Tilt")
|
||||
+ N_("Y Tilt"),
|
||||
+ N_("Wheel")
|
||||
};
|
||||
|
||||
int i,j;
|
||||
--- gtk/testinput.c Wed Feb 24 11:15:18 1999
|
||||
+++ gtk/testinput.c Tue Jul 6 19:13:50 1999
|
||||
@@ -236,7 +236,7 @@
|
||||
{
|
||||
if (event->is_hint)
|
||||
gdk_input_window_get_pointer (event->window, event->deviceid,
|
||||
- NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
draw_brush (widget, event->source, event->x, event->y,
|
||||
event->pressure);
|
||||
}
|
||||
@@ -245,7 +245,7 @@
|
||||
{
|
||||
gdk_input_window_get_pointer (event->window, event->deviceid,
|
||||
&event->x, &event->y,
|
||||
- NULL, NULL, NULL, NULL);
|
||||
+ NULL, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
update_cursor (widget, event->x, event->y);
|
||||
--- gtk/gtkfeatures.h Sat Sep 4 11:13:32 1999
|
||||
+++ gtk/gtkfeatures.h Sat Sep 4 11:35:21 1999
|
||||
@@ -115,6 +115,13 @@
|
||||
*/
|
||||
#define GTK_HAVE_FEATURES_1_1_14 1-1-14
|
||||
|
||||
+/* Gtk+ patched to enable the
|
||||
+ * sixth valuator present in
|
||||
+ * the new xf86Wacom driver.
|
||||
+ */
|
||||
+
|
||||
+#define GTK_HAVE_SIX_VALUATORS 1
|
||||
+
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
--- ../../gtk+-1.2.4/gdk/gdkevents.c Mon Aug 23 21:40:31 1999
|
||||
+++ gdk/gdkevents.c Sat Sep 4 11:44:28 1999
|
||||
@@ -1213,6 +1213,7 @@
|
||||
event->button.pressure = 0.5;
|
||||
event->button.xtilt = 0;
|
||||
event->button.ytilt = 0;
|
||||
+ event->button.wheel = 0.5;
|
||||
event->button.state = (GdkModifierType) xevent->xbutton.state;
|
||||
event->button.button = xevent->xbutton.button;
|
||||
event->button.source = GDK_SOURCE_MOUSE;
|
||||
@@ -1283,6 +1284,7 @@
|
||||
event->button.pressure = 0.5;
|
||||
event->button.xtilt = 0;
|
||||
event->button.ytilt = 0;
|
||||
+ event->button.wheel = 0.5;
|
||||
event->button.state = (GdkModifierType) xevent->xbutton.state;
|
||||
event->button.button = xevent->xbutton.button;
|
||||
event->button.source = GDK_SOURCE_MOUSE;
|
||||
@@ -1317,6 +1319,7 @@
|
||||
event->motion.pressure = 0.5;
|
||||
event->motion.xtilt = 0;
|
||||
event->motion.ytilt = 0;
|
||||
+ event->button.wheel = 0.5;
|
||||
event->motion.state = (GdkModifierType) xevent->xmotion.state;
|
||||
event->motion.is_hint = xevent->xmotion.is_hint;
|
||||
event->motion.source = GDK_SOURCE_MOUSE;
|
Reference in New Issue
Block a user