home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / gdyntext / message_window.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-30  |  2.0 KB  |  66 lines

  1. /*
  2.  * GIMP Dynamic Text -- This is a plug-in for The GIMP 1.0
  3.  * Copyright (C) 1998,1999,2000 Marco Lamberto <lm@geocities.com>
  4.  * Web page: http://www.geocities.com/Tokyo/1474/gimp/
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * (at your option) any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19.  *
  20.  * $Id: message_window.h,v 1.2 2000/07/30 13:13:32 neo Exp $
  21.  */
  22.  
  23. #ifndef _MESSAGE_WINDOW_H_
  24. #define _MESSAGE_WINDOW_H_
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif /* __cplusplus */
  29.  
  30. #define MESSAGE_WINDOW(obj)                    GTK_CHECK_CAST(obj, message_window_get_type(), MessageWindow)
  31. #define MESSAGE_WINDOW_CLASS(klass)    GTK_CHECK_CLASS_CAST(klass, message_window_get_type(), MessageWindowClass)
  32. #define IS_MESSAGE_WINDOW(obj)            GTK_CHECK_TYPE(obj, message_window_get_type())
  33.  
  34.  
  35. typedef struct _MessageWindow                MessageWindow;
  36. typedef struct _MessageWindowClass    MessageWindowClass;
  37.  
  38. struct _MessageWindow
  39. {
  40.     GtkWindow window;
  41.  
  42.     GtkWidget *text;
  43.   GtkWidget *dismiss_button;
  44.  
  45.     guint contains_messages : 1;
  46. };
  47.  
  48. struct _MessageWindowClass
  49. {
  50.     GtkWindowClass parent_class;
  51. };
  52.  
  53.  
  54. guint                message_window_get_type    (void);
  55. GtkWidget*    message_window_new            (const gchar *title);
  56. void                message_window_clear        (MessageWindow *mw);
  57. void                message_window_append        (MessageWindow *mw, const gchar *msg);
  58.  
  59. #ifdef __cplusplus
  60. }
  61. #endif /* __cplusplus */
  62.  
  63. #endif /* _MESSAGE_WINDOW_H_ */
  64.  
  65. /* vim: set ts=2 sw=2 tw=79 ai nowrap: */
  66.