選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

100 行
5.0 KiB

  1. /* GtkToolPalette -- A tool palette with categories and DnD support
  2. * Copyright (C) 2008 Openismus GmbH
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 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. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. *
  18. * Authors:
  19. * Mathias Hasselmann
  20. */
  21. #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
  22. #error "Only <gtk/gtk.h> can be included directly."
  23. #endif
  24. #ifndef __GTK_TOOL_ITEM_GROUP_H__
  25. #define __GTK_TOOL_ITEM_GROUP_H__
  26. #include <gtk/gtkcontainer.h>
  27. #include <gtk/gtktoolitem.h>
  28. G_BEGIN_DECLS
  29. #define GTK_TYPE_TOOL_ITEM_GROUP (gtk_tool_item_group_get_type ())
  30. #define GTK_TOOL_ITEM_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GTK_TYPE_TOOL_ITEM_GROUP, GtkToolItemGroup))
  31. #define GTK_TOOL_ITEM_GROUP_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST (cls, GTK_TYPE_TOOL_ITEM_GROUP, GtkToolItemGroupClass))
  32. #define GTK_IS_TOOL_ITEM_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GTK_TYPE_TOOL_ITEM_GROUP))
  33. #define GTK_IS_TOOL_ITEM_GROUP_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE (obj, GTK_TYPE_TOOL_ITEM_GROUP))
  34. #define GTK_TOOL_ITEM_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOOL_ITEM_GROUP, GtkToolItemGroupClass))
  35. typedef struct _GtkToolItemGroup GtkToolItemGroup;
  36. typedef struct _GtkToolItemGroupClass GtkToolItemGroupClass;
  37. typedef struct _GtkToolItemGroupPrivate GtkToolItemGroupPrivate;
  38. /**
  39. * GtkToolItemGroup:
  40. *
  41. * This should not be accessed directly. Use the accessor functions below.
  42. */
  43. struct _GtkToolItemGroup
  44. {
  45. GtkContainer parent_instance;
  46. GtkToolItemGroupPrivate *priv;
  47. };
  48. struct _GtkToolItemGroupClass
  49. {
  50. GtkContainerClass parent_class;
  51. };
  52. GType gtk_tool_item_group_get_type (void) G_GNUC_CONST;
  53. GtkWidget* gtk_tool_item_group_new (const gchar *label);
  54. void gtk_tool_item_group_set_label (GtkToolItemGroup *group,
  55. const gchar *label);
  56. void gtk_tool_item_group_set_label_widget (GtkToolItemGroup *group,
  57. GtkWidget *label_widget);
  58. void gtk_tool_item_group_set_collapsed (GtkToolItemGroup *group,
  59. gboolean collapsed);
  60. void gtk_tool_item_group_set_ellipsize (GtkToolItemGroup *group,
  61. PangoEllipsizeMode ellipsize);
  62. void gtk_tool_item_group_set_header_relief (GtkToolItemGroup *group,
  63. GtkReliefStyle style);
  64. G_CONST_RETURN gchar* gtk_tool_item_group_get_label (GtkToolItemGroup *group);
  65. GtkWidget *gtk_tool_item_group_get_label_widget (GtkToolItemGroup *group);
  66. gboolean gtk_tool_item_group_get_collapsed (GtkToolItemGroup *group);
  67. PangoEllipsizeMode gtk_tool_item_group_get_ellipsize (GtkToolItemGroup *group);
  68. GtkReliefStyle gtk_tool_item_group_get_header_relief (GtkToolItemGroup *group);
  69. void gtk_tool_item_group_insert (GtkToolItemGroup *group,
  70. GtkToolItem *item,
  71. gint position);
  72. void gtk_tool_item_group_set_item_position (GtkToolItemGroup *group,
  73. GtkToolItem *item,
  74. gint position);
  75. gint gtk_tool_item_group_get_item_position (GtkToolItemGroup *group,
  76. GtkToolItem *item);
  77. guint gtk_tool_item_group_get_n_items (GtkToolItemGroup *group);
  78. GtkToolItem* gtk_tool_item_group_get_nth_item (GtkToolItemGroup *group,
  79. guint index);
  80. GtkToolItem* gtk_tool_item_group_get_drop_item (GtkToolItemGroup *group,
  81. gint x,
  82. gint y);
  83. G_END_DECLS
  84. #endif /* __GTK_TOOL_ITEM_GROUP_H__ */