/src/wrappers/gtk/library/gtk_cell_renderer_accel.e
Specman e | 170 lines | 41 code | 17 blank | 112 comment | 2 complexity | 9f61b08a9ed5f4e618e4e1fd87964915 MD5 | raw file
1indexing 2 description: "GtkCellRendererAccel -- Renders a keyboard accelerator in a cell." 3 copyright: "[ 4 Copyright (C) 2007 Paolo Redaelli, GTK+ team 5 6 This library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Lesser General Public License 8 as published by the Free Software Foundation; either version 2.1 of 9 the License, or (at your option) any later version. 10 11 This library is distributed in the hopeOA that it will be useful, but 12 WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Lesser General Public License for more details. 15 16 You should have received a copy of the GNU Lesser General Public 17 License along with this library; if not, write to the Free Software 18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 02110-1301 USA 20 ]" 21 22 wrapped_version: "2.10.6" 23 24class GTK_CELL_RENDERER_ACCEL 25 -- GtkCellRendererAccel displays a keyboard accelerator (i.e. a key 26 -- combination like <Control>-a). If the cell renderer is editable, 27 -- the accelerator can be changed by simply typing the new 28 -- combination. 29 30 -- The GtkCellRendererAccel cell renderer was added in GTK+ 2.10. 31 32inherit 33 GTK_CELL_RENDERER_TEXT 34 redefine make, struct_size end 35 36insert GTK_CELL_RENDERER_ACCEL_MODE 37 38creation make, from_external_pointer 39 40feature {} -- Creation 41 make is 42 -- Creates a new GtkCellRendererAccel. 43 do 44 from_external_pointer(gtk_cell_renderer_accel_new) 45 end 46 47feature -- Properties 48 -- "accel-key" guint : Read / Write 49 -- "accel-mode" GtkCellRendererAccelMode : Read / Write 50 -- "accel-mods" GdkModifierType : Read / Write 51 -- "keycode" guint : Read / Write 52 53 --Property Details 54 -- 55 -- The "accel-key" property 56 -- 57 -- "accel-key" guint : Read / Write 58 -- 59 -- The keyval of the accelerator. 60 -- 61 -- Allowed values: <= G_MAXINT 62 -- 63 -- Default value: 0 64 -- 65 -- Since 2.10 66 -- 67 -- -------------------------------------------------------------------------- 68 -- 69 -- The "accel-mode" property 70 -- 71 -- "accel-mode" GtkCellRendererAccelMode : Read / Write 72 -- 73 -- Determines if the edited accelerators are GTK+ accelerators. If they are, 74 -- consumed modifiers are suppressed, only accelerators accepted by GTK+ are 75 -- allowed, and the accelerators are rendered in the same way as they are in 76 -- menus. 77 -- 78 -- Default value: GTK_CELL_RENDERER_ACCEL_MODE_GTK 79 -- 80 -- Since 2.10 81 -- 82 -- -------------------------------------------------------------------------- 83 -- 84 -- The "accel-mods" property 85 -- 86 -- "accel-mods" GdkModifierType : Read / Write 87 -- 88 -- The modifier mask of the accelerator. 89 -- 90 -- Since 2.10 91 -- 92 -- -------------------------------------------------------------------------- 93 -- 94 -- The "keycode" property 95 -- 96 -- "keycode" guint : Read / Write 97 -- 98 -- The hardware keycode of the accelerator. Note that the hardware keycode is 99 -- only relevant if the key does not have a keyval. Normally, the keyboard 100 -- configuration should assign keyvals to all keys. 101 -- 102 -- Allowed values: <= G_MAXINT 103 -- 104 -- Default value: 0 105 -- 106 -- Since 2.10 107 108feature -- Signals 109 110 -- "accel-cleared" 111 -- void user_function (GtkCellRendererAccel *accel, 112 -- gchar *path_string, 113 -- gpointer user_data) : Run last 114 -- "accel-edited" 115 -- void user_function (GtkCellRendererAccel *accel, 116 -- gchar *path_string, 117 -- guint accel_key, 118 -- GdkModifierType accel_mods, 119 -- guint hardware_keycode, 120 -- gpointer user_data) : Run last 121 --Signal Details 122 -- 123 -- The "accel-cleared" signal 124 -- 125 -- void user_function (GtkCellRendererAccel *accel, 126 -- gchar *path_string, 127 -- gpointer user_data) : Run last 128 -- 129 -- Gets emitted when the user has removed the accelerator. 130 -- 131 -- accel : the object reveiving the signal 132 -- path_string : the path identifying the row of the edited cell 133 -- user_data : user data set when the signal handler was connected. 134 -- 135 -- Since 2.10 136 -- 137 -- -------------------------------------------------------------------------- 138 -- 139 -- The "accel-edited" signal 140 -- 141 -- void user_function (GtkCellRendererAccel *accel, 142 -- gchar *path_string, 143 -- guint accel_key, 144 -- GdkModifierType accel_mods, 145 -- guint hardware_keycode, 146 -- gpointer user_data) : Run last 147 -- 148 -- Gets emitted when the user has selected a new accelerator. 149 -- 150 -- accel : the object reveiving the signal 151 -- path_string : the path identifying the row of the edited cell 152 -- accel_key : the new accelerator keyval 153 -- accel_mods : the new acclerator modifier mask 154 -- hardware_keycode : the keycode of the new accelerator 155 -- user_data : user data set when the signal handler was connected. 156 -- 157 -- Since 2.10 158 159feature {} -- External calls 160 gtk_cell_renderer_accel_new: POINTER is 161 external "C use <gtk/gtk.h>" 162 end 163 164feature -- size 165 struct_size: INTEGER is 166 external "C inline use <gtk/gtk.h>" 167 alias "sizeof(GtkCellRendererAccel)" 168 end 169end -- class GTK_CELL_RENDERER_ACCEL 170