/src/wrappers/gtk/library/gtk_cell_renderer_pixbuf.e

http://github.com/tybor/Liberty · Specman e · 128 lines · 33 code · 36 blank · 59 comment · 2 complexity · 729ed6aa7f5bf7d2dee14581d3a1d5c0 MD5 · raw file

  1. indexing
  2. description: "GtkCellRendererPixbuf renders a pixbuf in a cell."
  3. copyright: "[
  4. Copyright (C) 2006 eiffel-libraries team, GTK+ team
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public License
  7. as published by the Free Software Foundation; either version 2.1 of
  8. the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful, but
  10. 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. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. 02110-1301 USA
  17. ]"
  18. class GTK_CELL_RENDERER_PIXBUF
  19. -- A GTK_CELL_RENDERER_PIXBUF can be used to render an image in a
  20. -- cell. It allows to render either a given GDK_PIXBUF (set via the
  21. -- pixbuf property) or a stock icon (set via the stock-id
  22. -- property).
  23. -- To support the tree view, GTK_CELL_RENDERER_PIXBUF also supports
  24. -- rendering two alternative pixbufs, when the is-expander property
  25. -- is TRUE. If the is-expanded property is TRUE and the
  26. -- pixbuf-expander-open property is set to a pixbuf, it renders
  27. -- that pixbuf, if the is-expanded property is FALSE and the
  28. -- pixbuf-expander-closed property is set to a pixbuf, it renders
  29. -- that one.
  30. inherit GTK_CELL_RENDERER
  31. insert GTK_CELL_RENDERER_PIXBUF_EXTERNALS
  32. creation make, from_external_pointer
  33. feature -- size
  34. struct_size: INTEGER is
  35. external "C inline use <gtk/gtk.h>"
  36. alias "sizeof(GtkCellRendererPixbuf)"
  37. end
  38. feature {} -- Creation
  39. make is
  40. -- Creates a new GtkCellRendererPixbuf. Adjust rendering
  41. -- parameters using object properties. Object properties can
  42. -- be set globally (with `set_property' and its typed variants). Also, with
  43. -- GtkTreeViewColumn, you can bind a property to a value in a
  44. -- GtkTreeModel. For example, you can bind the "pixbuf"
  45. -- property on the cell renderer to a pixbuf value in the
  46. -- model, thus rendering a different image in each row of the
  47. -- GtkTreeView.
  48. do
  49. from_external_pointer (gtk_cell_renderer_pixbuf_new)
  50. end
  51. feature -- Properties
  52. -- "follow-state" gboolean : Read / Write
  53. -- "icon-name" gchararray : Read / Write
  54. -- "pixbuf" GdkPixbuf : Read / Write
  55. -- "pixbuf-expander-closed" GdkPixbuf : Read / Write
  56. -- "pixbuf-expander-open" GdkPixbuf : Read / Write
  57. -- "stock-detail" gchararray : Read / Write
  58. -- "stock-id" gchararray : Read / Write
  59. -- "stock-size" guint : Read / Write
  60. -- Property Details
  61. -- The "follow-state" property
  62. -- "follow-state" gboolean : Read / Write
  63. -- Specifies whether the rendered pixbuf should be colorized according to the GtkCellRendererState.
  64. -- Default value: FALSE
  65. -- Since 2.8
  66. -- The "icon-name" property
  67. -- "icon-name" gchararray : Read / Write
  68. -- The name of the themed icon to display. This property only has an effect if not overridden by "stock_id" or "pixbuf" properties.
  69. -- Default value: NULL
  70. -- Since 2.8
  71. -- The "pixbuf" property
  72. -- "pixbuf" GdkPixbuf : Read / Write
  73. -- The pixbuf to render.
  74. -- The "pixbuf-expander-closed" property
  75. -- "pixbuf-expander-closed" GdkPixbuf : Read / Write
  76. -- Pixbuf for closed expander.
  77. -- The "pixbuf-expander-open" property
  78. -- "pixbuf-expander-open" GdkPixbuf : Read / Write
  79. -- Pixbuf for open expander.
  80. -- The "stock-detail" property
  81. -- "stock-detail" gchararray : Read / Write
  82. -- Render detail to pass to the theme engine.
  83. -- Default value: NULL
  84. -- The "stock-id" property
  85. -- "stock-id" gchararray : Read / Write
  86. -- The stock ID of the stock icon to render.
  87. -- Default value: NULL
  88. -- The "stock-size" property
  89. -- "stock-size" guint : Read / Write
  90. -- The GtkIconSize value that specifies the size of the rendered icon.
  91. -- Default value: 1
  92. end