home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / rcm / rcm_callback.h < prev    next >
Encoding:
Text File  |  2000-01-11  |  5.1 KB  |  135 lines

  1. /*
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * This is a plug-in for the GIMP.
  5.  *
  6.  * Colormap-Rotation plug-in. Exchanges two color ranges.
  7.  *
  8.  * Copyright (C) 1999 Sven Anders (anderss@fmi.uni-passau.de)
  9.  *                    Based on code from Pavel Grinfeld (pavel@ml.com)
  10.  *
  11.  *
  12.  * This program is free software; you can redistribute it and/or modify
  13.  * it under the terms of the GNU General Public License as published by
  14.  * the Free Software Foundation; either version 2 of the License, or
  15.  * (at your option) any later version.
  16.  *
  17.  * This program is distributed in the hope that it will be useful,
  18.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20.  * GNU General Public License for more details.
  21.  *
  22.  * You should have received a copy of the GNU General Public License
  23.  * along with this program; if not, write to the Free Software
  24.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  25.  */
  26.  
  27. /*---------------------------------------------------------------------------
  28.  * Change log:
  29.  * 
  30.  * Version 2.0, 04 April 1999.
  31.  *  Nearly complete rewrite, made plug-in stable.
  32.  *  (Works with GIMP 1.1 and GTK+ 1.2)
  33.  *
  34.  * Version 1.0, 27 March 1997.
  35.  *  Initial (unstable) release by Pavel Grinfeld
  36.  *
  37.  *---------------------------------------------------------------------------*/
  38.  
  39. /*---------------------------------------------------------------------------*/
  40. /* Misc functions */
  41. /*---------------------------------------------------------------------------*/
  42.  
  43. float rcm_units_factor(gint units);
  44.  
  45. gchar *rcm_units_string(gint units);
  46.  
  47. void rcm_set_pixmap(GtkWidget **widget, GtkWidget *parent, 
  48.             GtkWidget *label_box, char **pixmap_data);
  49.  
  50. /*---------------------------------------------------------------------------*/
  51. /* Ok Button */
  52. /*---------------------------------------------------------------------------*/
  53.  
  54. void rcm_ok_callback(GtkWidget *widget, gpointer data);
  55.  
  56. /*---------------------------------------------------------------------------*/
  57. /* Circle buttons */
  58. /*---------------------------------------------------------------------------*/
  59.  
  60. void rcm_360_degrees(GtkWidget *button, RcmCircle *circle);
  61.  
  62. void rcm_cw_ccw(GtkWidget *button, RcmCircle *circle);
  63.  
  64. void rcm_a_to_b(GtkWidget *button, RcmCircle *circle);
  65.  
  66. /*---------------------------------------------------------------------------*/
  67. /* Misc: units buttons */
  68. /*---------------------------------------------------------------------------*/
  69.  
  70. void rcm_switch_to_degrees(GtkWidget *button, gpointer *value);
  71.  
  72. void rcm_switch_to_radians(GtkWidget *button, gpointer *value);
  73.  
  74. void rcm_switch_to_radians_over_PI(GtkWidget *button, gpointer *value);
  75.  
  76. /*---------------------------------------------------------------------------*/
  77. /* Misc: Gray: mode buttons */
  78. /*---------------------------------------------------------------------------*/
  79.  
  80. void rcm_switch_to_gray_to(GtkWidget *button, gpointer *value);
  81.  
  82. void rcm_switch_to_gray_from(GtkWidget *button, gpointer *value);
  83.  
  84. /*---------------------------------------------------------------------------*/
  85. /* Misc: Preview buttons */
  86. /*---------------------------------------------------------------------------*/
  87.  
  88. void rcm_preview_as_you_drag(GtkWidget *button, gpointer *value);
  89.  
  90. void rcm_selection_in_context(GtkWidget *button, gpointer *value);
  91.  
  92. void rcm_selection(GtkWidget *button, gpointer *value);
  93.  
  94. void rcm_entire_image(GtkWidget *button, gpointer *value);
  95.  
  96. /*---------------------------------------------------------------------------*/
  97. /* Circle events */
  98. /*---------------------------------------------------------------------------*/
  99.  
  100. gint rcm_expose_event(GtkWidget *widget, GdkEvent *event, RcmCircle *circle);
  101.  
  102. gint rcm_button_press_event(GtkWidget *widget, GdkEvent *event, RcmCircle *circle);
  103.  
  104. gint rcm_release_event(GtkWidget *widget, GdkEvent *event, RcmCircle *circle);
  105.  
  106. gint rcm_motion_notify_event(GtkWidget *widget, GdkEvent *event, RcmCircle *circle);
  107.  
  108. /*---------------------------------------------------------------------------*/
  109. /* Gray circle events */
  110. /*---------------------------------------------------------------------------*/
  111.  
  112. gint rcm_gray_expose_event(GtkWidget *widget, GdkEvent *event, RcmGray *circle);
  113.  
  114. gint rcm_gray_button_press_event(GtkWidget *widget, GdkEvent *event, RcmGray *circle);
  115.  
  116. gint rcm_gray_release_event(GtkWidget *widget, GdkEvent *event, RcmGray *circle);
  117.  
  118. gint rcm_gray_motion_notify_event(GtkWidget *widget, GdkEvent *event, RcmGray *circle);
  119.  
  120. /*---------------------------------------------------------------------------*/
  121. /* Spinbuttons */
  122. /*---------------------------------------------------------------------------*/
  123.  
  124. void rcm_set_alpha(GtkWidget *entry, gpointer data);
  125.  
  126. void rcm_set_beta(GtkWidget *entry, gpointer data);
  127.  
  128. void rcm_set_hue(GtkWidget *entry, gpointer data);
  129.  
  130. void rcm_set_satur(GtkWidget *entry, gpointer data);
  131.  
  132. void rcm_set_gray_sat(GtkWidget *entry, gpointer data);
  133.  
  134. /*---------------------------------------------------------------------------*/
  135.