/src/wrappers/gtk/library/gtk_cell_renderer_accel.e

http://github.com/tybor/Liberty · Specman e · 170 lines · 41 code · 17 blank · 112 comment · 2 complexity · 9f61b08a9ed5f4e618e4e1fd87964915 MD5 · raw file

  1. indexing
  2. description: "GtkCellRendererAccel -- Renders a keyboard accelerator in a cell."
  3. copyright: "[
  4. Copyright (C) 2007 Paolo Redaelli, 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 hopeOA 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. wrapped_version: "2.10.6"
  19. class GTK_CELL_RENDERER_ACCEL
  20. -- GtkCellRendererAccel displays a keyboard accelerator (i.e. a key
  21. -- combination like <Control>-a). If the cell renderer is editable,
  22. -- the accelerator can be changed by simply typing the new
  23. -- combination.
  24. -- The GtkCellRendererAccel cell renderer was added in GTK+ 2.10.
  25. inherit
  26. GTK_CELL_RENDERER_TEXT
  27. redefine make, struct_size end
  28. insert GTK_CELL_RENDERER_ACCEL_MODE
  29. creation make, from_external_pointer
  30. feature {} -- Creation
  31. make is
  32. -- Creates a new GtkCellRendererAccel.
  33. do
  34. from_external_pointer(gtk_cell_renderer_accel_new)
  35. end
  36. feature -- Properties
  37. -- "accel-key" guint : Read / Write
  38. -- "accel-mode" GtkCellRendererAccelMode : Read / Write
  39. -- "accel-mods" GdkModifierType : Read / Write
  40. -- "keycode" guint : Read / Write
  41. --Property Details
  42. --
  43. -- The "accel-key" property
  44. --
  45. -- "accel-key" guint : Read / Write
  46. --
  47. -- The keyval of the accelerator.
  48. --
  49. -- Allowed values: <= G_MAXINT
  50. --
  51. -- Default value: 0
  52. --
  53. -- Since 2.10
  54. --
  55. -- --------------------------------------------------------------------------
  56. --
  57. -- The "accel-mode" property
  58. --
  59. -- "accel-mode" GtkCellRendererAccelMode : Read / Write
  60. --
  61. -- Determines if the edited accelerators are GTK+ accelerators. If they are,
  62. -- consumed modifiers are suppressed, only accelerators accepted by GTK+ are
  63. -- allowed, and the accelerators are rendered in the same way as they are in
  64. -- menus.
  65. --
  66. -- Default value: GTK_CELL_RENDERER_ACCEL_MODE_GTK
  67. --
  68. -- Since 2.10
  69. --
  70. -- --------------------------------------------------------------------------
  71. --
  72. -- The "accel-mods" property
  73. --
  74. -- "accel-mods" GdkModifierType : Read / Write
  75. --
  76. -- The modifier mask of the accelerator.
  77. --
  78. -- Since 2.10
  79. --
  80. -- --------------------------------------------------------------------------
  81. --
  82. -- The "keycode" property
  83. --
  84. -- "keycode" guint : Read / Write
  85. --
  86. -- The hardware keycode of the accelerator. Note that the hardware keycode is
  87. -- only relevant if the key does not have a keyval. Normally, the keyboard
  88. -- configuration should assign keyvals to all keys.
  89. --
  90. -- Allowed values: <= G_MAXINT
  91. --
  92. -- Default value: 0
  93. --
  94. -- Since 2.10
  95. feature -- Signals
  96. -- "accel-cleared"
  97. -- void user_function (GtkCellRendererAccel *accel,
  98. -- gchar *path_string,
  99. -- gpointer user_data) : Run last
  100. -- "accel-edited"
  101. -- void user_function (GtkCellRendererAccel *accel,
  102. -- gchar *path_string,
  103. -- guint accel_key,
  104. -- GdkModifierType accel_mods,
  105. -- guint hardware_keycode,
  106. -- gpointer user_data) : Run last
  107. --Signal Details
  108. --
  109. -- The "accel-cleared" signal
  110. --
  111. -- void user_function (GtkCellRendererAccel *accel,
  112. -- gchar *path_string,
  113. -- gpointer user_data) : Run last
  114. --
  115. -- Gets emitted when the user has removed the accelerator.
  116. --
  117. -- accel : the object reveiving the signal
  118. -- path_string : the path identifying the row of the edited cell
  119. -- user_data : user data set when the signal handler was connected.
  120. --
  121. -- Since 2.10
  122. --
  123. -- --------------------------------------------------------------------------
  124. --
  125. -- The "accel-edited" signal
  126. --
  127. -- void user_function (GtkCellRendererAccel *accel,
  128. -- gchar *path_string,
  129. -- guint accel_key,
  130. -- GdkModifierType accel_mods,
  131. -- guint hardware_keycode,
  132. -- gpointer user_data) : Run last
  133. --
  134. -- Gets emitted when the user has selected a new accelerator.
  135. --
  136. -- accel : the object reveiving the signal
  137. -- path_string : the path identifying the row of the edited cell
  138. -- accel_key : the new accelerator keyval
  139. -- accel_mods : the new acclerator modifier mask
  140. -- hardware_keycode : the keycode of the new accelerator
  141. -- user_data : user data set when the signal handler was connected.
  142. --
  143. -- Since 2.10
  144. feature {} -- External calls
  145. gtk_cell_renderer_accel_new: POINTER is
  146. external "C use <gtk/gtk.h>"
  147. end
  148. feature -- size
  149. struct_size: INTEGER is
  150. external "C inline use <gtk/gtk.h>"
  151. alias "sizeof(GtkCellRendererAccel)"
  152. end
  153. end -- class GTK_CELL_RENDERER_ACCEL