home *** CD-ROM | disk | FTP | other *** search
/ ftp.sunet.sepub/pictures / 2014.11.ftp.sunet.se-pictures.tar / ftp.sunet.se / pub / pictures / ACiD-artpacks / programs / unix / editors / gimp-plugins-unstable-0_99_23_tar.gz / gimp-plugins-unstable-0_99_23_tar / gimp-plugins-unstable-0.99.23 / gflare / gtkmultioptionmenu.h < prev    next >
C/C++ Source or Header  |  1998-02-20  |  2KB  |  79 lines

  1. /* GTK - The GIMP Toolkit
  2.  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Library General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.
  8.  *
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Library General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Library General Public
  15.  * License along with this library; if not, write to the Free
  16.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  */
  18.  
  19. /*
  20.   Modified 97-06-26    Eiichi Takamori <taka@ma1.seikyou.ne.jp>
  21.   GtkMultiOptionMenu, taken from GtkOptionMenu, can work with
  22.   hierarchal menus.
  23.  */
  24.  
  25. #ifndef __GTK_MULTI_OPTION_MENU_H__
  26. #define __GTK_MULTI_OPTION_MENU_H__
  27.  
  28.  
  29. #include <gdk/gdk.h>
  30. #include <gtk/gtkbutton.h>
  31.  
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif /* __cplusplus */
  36.  
  37.  
  38. #define GTK_MULTI_OPTION_MENU(obj)          GTK_CHECK_CAST (obj, gtk_multi_option_menu_get_type (), GtkMultiOptionMenu)
  39. #define GTK_MULTI_OPTION_MENU_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, gtk_multi_option_menu_get_type (), GtkMultiOptionMenuClass)
  40. #define GTK_IS_MULTI_OPTION_MENU(obj)       GTK_CHECK_TYPE (obj, gtk_multi_option_menu_get_type ())
  41.  
  42.  
  43. typedef struct _GtkMultiOptionMenu       GtkMultiOptionMenu;
  44. typedef struct _GtkMultiOptionMenuClass  GtkMultiOptionMenuClass;
  45.  
  46. struct _GtkMultiOptionMenu
  47. {
  48.   GtkButton button;
  49.  
  50.   GtkWidget *menu;
  51.   GtkWidget *menu_item;
  52.  
  53.   guint16 width;
  54.   guint16 height;
  55. };
  56.  
  57. struct _GtkMultiOptionMenuClass
  58. {
  59.   GtkButtonClass parent_class;
  60. };
  61.  
  62.  
  63. guint      gtk_multi_option_menu_get_type    (void);
  64. GtkWidget* gtk_multi_option_menu_new         (void);
  65. GtkWidget* gtk_multi_option_menu_get_menu    (GtkMultiOptionMenu *multi_option_menu);
  66. void       gtk_multi_option_menu_set_menu    (GtkMultiOptionMenu *multi_option_menu,
  67.                           GtkWidget     *menu);
  68. void       gtk_multi_option_menu_remove_menu (GtkMultiOptionMenu *multi_option_menu);
  69. void       gtk_multi_option_menu_set_history (GtkMultiOptionMenu *multi_option_menu,
  70.                           gint           index);
  71.  
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif /* __cplusplus */
  76.  
  77.  
  78. #endif /* __GTK_MULTI_OPTION_MENU_H__ */
  79.