2 * Copyright (c) 2012 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 /*This file is generated by auto_codes.py.*/
20 #ifndef __AUTO_METADATA_H__
21 #define __AUTO_METADATA_H__
24 typedef struct _Input_mode_configure_width {
28 int use_virtual_window;
31 }Input_mode_configure_width;
33 typedef struct _Layout_width {
40 int use_magnifier_window;
41 int extract_background;
46 int use_sw_background;
55 int key_background_image;
59 int modifier_decorator;
62 typedef struct _Key_coordinate_record_width {
76 int magnifier_offset_x;
77 int magnifier_offset_y;
83 int use_long_key_magnifier;
101 int autopopup_key_labels;
102 int autopopup_key_values;
103 int autopopup_key_events;
104 int dont_close_popup;
107 int modifier_decorator;
110 }Key_coordinate_record_width;
112 typedef struct _Label_properties_record_width {
123 int shadow_direction;
125 }Label_properties_record_width;
127 typedef struct _Default_configure_width {
130 int image_file_base_path;
131 int target_screen_width;
132 int target_screen_height;
133 int auto_detect_landscape;
134 int use_magnifier_window;
137 int on_error_noti_send;
138 int use_word_deletion;
140 int touch_offset_level;
142 int default_sub_layout;
143 int use_actual_dim_window;
145 }Default_configure_width;
147 typedef struct _Magnifier_configure_width {
153 int bg_shift_image_path;
154 int bg_shift_lock_image_path;
155 int bg_long_key_image_path;
156 int use_actual_window;
160 int show_shift_label;
161 }Magnifier_configure_width;
163 typedef struct _Autopopup_configure_width {
169 int button_image_path;
175 int decoration_image_path;
182 }Autopopup_configure_width;
184 typedef struct _Modifier_decoration_width {
185 int extract_background;
188 }Modifier_decoration_width;
190 typedef struct _Nine_patch_width {
199 void set_input_mode_configure_width(T& md_helper,
200 Input_mode_configure_width & record_width) {
201 md_helper.set_current_metadata_record("input_mode_configure");
202 memset(&record_width, 0x00, sizeof(Input_mode_configure_width));
204 record_width.name = md_helper.get_width("name");
205 record_width.layout_portrait = md_helper.get_width("layout_portrait");
206 record_width.layout_landscape = md_helper.get_width("layout_landscape");
207 record_width.use_virtual_window = md_helper.get_width("use_virtual_window");
208 record_width.use_dim_window = md_helper.get_width("use_dim_window");
209 record_width.timeout = md_helper.get_width("timeout");
213 void set_layout_width(T& md_helper,
214 Layout_width & record_width) {
215 md_helper.set_current_metadata_record("layout");
216 memset(&record_width, 0x00, sizeof(Layout_width));
218 record_width.name = md_helper.get_width("name");
219 record_width.display_mode = md_helper.get_width("display_mode");
220 record_width.style = md_helper.get_width("style");
221 record_width.width = md_helper.get_width("width");
222 record_width.height = md_helper.get_width("height");
223 record_width.use_sw_button = md_helper.get_width("use_sw_button");
224 record_width.use_magnifier_window = md_helper.get_width("use_magnifier_window");
225 record_width.extract_background = md_helper.get_width("extract_background");
226 record_width.key_width = md_helper.get_width("key_width");
227 record_width.key_height = md_helper.get_width("key_height");
228 record_width.key_spacing = md_helper.get_width("key_spacing");
229 record_width.row_spacing = md_helper.get_width("row_spacing");
230 record_width.use_sw_background = md_helper.get_width("use_sw_background");
231 record_width.bg_color = md_helper.get_width("bg_color");
232 record_width.bg_line_width = md_helper.get_width("bg_line_width");
233 record_width.bg_line_color = md_helper.get_width("bg_line_color");
234 record_width.add_grab_left = md_helper.get_width("add_grab_left");
235 record_width.add_grab_right = md_helper.get_width("add_grab_right");
236 record_width.add_grab_top = md_helper.get_width("add_grab_top");
237 record_width.add_grab_bottom = md_helper.get_width("add_grab_bottom");
238 record_width.image_path = md_helper.get_width("image_path");
239 record_width.key_background_image = md_helper.get_width("key_background_image");
240 record_width.sound_style = md_helper.get_width("sound_style");
241 record_width.vibe_style = md_helper.get_width("vibe_style");
242 record_width.label_type = md_helper.get_width("label_type");
243 record_width.modifier_decorator = md_helper.get_width("modifier_decorator");
247 void set_key_coordinate_record_width(T& md_helper,
248 Key_coordinate_record_width & record_width) {
249 md_helper.set_current_metadata_record("key_coordinate_record");
250 memset(&record_width, 0x00, sizeof(Key_coordinate_record_width));
252 record_width.x = md_helper.get_width("x");
253 record_width.y = md_helper.get_width("y");
254 record_width.width = md_helper.get_width("width");
255 record_width.height = md_helper.get_width("height");
256 record_width.add_hit_left = md_helper.get_width("add_hit_left");
257 record_width.add_hit_right = md_helper.get_width("add_hit_right");
258 record_width.add_hit_top = md_helper.get_width("add_hit_top");
259 record_width.add_hit_bottom = md_helper.get_width("add_hit_bottom");
260 record_width.popup_relative_x = md_helper.get_width("popup_relative_x");
261 record_width.popup_relative_y = md_helper.get_width("popup_relative_y");
262 record_width.extract_offset_x = md_helper.get_width("extract_offset_x");
263 record_width.extract_offset_y = md_helper.get_width("extract_offset_y");
264 record_width.sub_layout = md_helper.get_width("sub_layout");
265 record_width.magnifier_offset_x = md_helper.get_width("magnifier_offset_x");
266 record_width.magnifier_offset_y = md_helper.get_width("magnifier_offset_y");
267 record_width.custom_id = md_helper.get_width("custom_id");
268 record_width.button_type = md_helper.get_width("button_type");
269 record_width.key_type = md_helper.get_width("key_type");
270 record_width.popup_type = md_helper.get_width("popup_type");
271 record_width.use_magnifier = md_helper.get_width("use_magnifier");
272 record_width.use_long_key_magnifier = md_helper.get_width("use_long_key_magnifier");
273 record_width.popup_input_mode = md_helper.get_width("popup_input_mode");
274 record_width.sound_style = md_helper.get_width("sound_style");
275 record_width.vibe_style = md_helper.get_width("vibe_style");
276 record_width.is_side_button = md_helper.get_width("is_side_button");
277 record_width.label_count = md_helper.get_width("label_count");
278 record_width.label = md_helper.get_width("label");
279 record_width.label_type = md_helper.get_width("label_type");
280 record_width.image_label_path = md_helper.get_width("image_label_path");
281 record_width.image_label_type = md_helper.get_width("image_label_type");
282 record_width.bg_image_path = md_helper.get_width("bg_image_path");
283 record_width.key_value_count = md_helper.get_width("key_value_count");
284 record_width.key_value = md_helper.get_width("key_value");
285 record_width.key_event = md_helper.get_width("key_event");
286 record_width.long_key_type = md_helper.get_width("long_key_type");
287 record_width.long_key_value = md_helper.get_width("long_key_value");
288 record_width.long_key_event = md_helper.get_width("long_key_event");
289 record_width.use_repeat_key = md_helper.get_width("use_repeat_key");
290 record_width.autopopup_key_labels = md_helper.get_width("autopopup_key_labels");
291 record_width.autopopup_key_values = md_helper.get_width("autopopup_key_values");
292 record_width.autopopup_key_events = md_helper.get_width("autopopup_key_events");
293 record_width.dont_close_popup = md_helper.get_width("dont_close_popup");
294 record_width.extra_option = md_helper.get_width("extra_option");
295 record_width.multitouch_type = md_helper.get_width("multitouch_type");
296 record_width.modifier_decorator = md_helper.get_width("modifier_decorator");
297 record_width.magnifier_label = md_helper.get_width("magnifier_label");
298 record_width.hint_string = md_helper.get_width("hint_string");
302 void set_label_properties_record_width(T& md_helper,
303 Label_properties_record_width & record_width) {
304 md_helper.set_current_metadata_record("label_properties_record");
305 memset(&record_width, 0x00, sizeof(Label_properties_record_width));
307 record_width.label_type = md_helper.get_width("label_type");
308 record_width.font_name = md_helper.get_width("font_name");
309 record_width.font_size = md_helper.get_width("font_size");
310 record_width.font_color = md_helper.get_width("font_color");
311 record_width.alignment = md_helper.get_width("alignment");
312 record_width.padding_x = md_helper.get_width("padding_x");
313 record_width.padding_y = md_helper.get_width("padding_y");
314 record_width.inner_width = md_helper.get_width("inner_width");
315 record_width.inner_height = md_helper.get_width("inner_height");
316 record_width.shadow_distance = md_helper.get_width("shadow_distance");
317 record_width.shadow_direction = md_helper.get_width("shadow_direction");
318 record_width.shadow_color = md_helper.get_width("shadow_color");
322 void set_default_configure_width(T& md_helper,
323 Default_configure_width & record_width) {
324 md_helper.set_current_metadata_record("default_configure");
325 memset(&record_width, 0x00, sizeof(Default_configure_width));
327 record_width.display_mode = md_helper.get_width("display_mode");
328 record_width.input_mode = md_helper.get_width("input_mode");
329 record_width.image_file_base_path = md_helper.get_width("image_file_base_path");
330 record_width.target_screen_width = md_helper.get_width("target_screen_width");
331 record_width.target_screen_height = md_helper.get_width("target_screen_height");
332 record_width.auto_detect_landscape = md_helper.get_width("auto_detect_landscape");
333 record_width.use_magnifier_window = md_helper.get_width("use_magnifier_window");
334 record_width.use_auto_popup = md_helper.get_width("use_auto_popup");
335 record_width.use_zoom_window = md_helper.get_width("use_zoom_window");
336 record_width.on_error_noti_send = md_helper.get_width("on_error_noti_send");
337 record_width.use_word_deletion = md_helper.get_width("use_word_deletion");
338 record_width.sw_button_style = md_helper.get_width("sw_button_style");
339 record_width.touch_offset_level = md_helper.get_width("touch_offset_level");
340 record_width.touch_offset = md_helper.get_width("touch_offset");
341 record_width.default_sub_layout = md_helper.get_width("default_sub_layout");
342 record_width.use_actual_dim_window = md_helper.get_width("use_actual_dim_window");
343 record_width.dim_color = md_helper.get_width("dim_color");
347 void set_magnifier_configure_width(T& md_helper,
348 Magnifier_configure_width & record_width) {
349 md_helper.set_current_metadata_record("magnifier_configure");
350 memset(&record_width, 0x00, sizeof(Magnifier_configure_width));
352 record_width.style = md_helper.get_width("style");
353 record_width.width = md_helper.get_width("width");
354 record_width.height = md_helper.get_width("height");
355 record_width.label_area_rect = md_helper.get_width("label_area_rect");
356 record_width.bg_image_path = md_helper.get_width("bg_image_path");
357 record_width.bg_shift_image_path = md_helper.get_width("bg_shift_image_path");
358 record_width.bg_shift_lock_image_path = md_helper.get_width("bg_shift_lock_image_path");
359 record_width.bg_long_key_image_path = md_helper.get_width("bg_long_key_image_path");
360 record_width.use_actual_window = md_helper.get_width("use_actual_window");
361 record_width.label_type = md_helper.get_width("label_type");
362 record_width.padding_x = md_helper.get_width("padding_x");
363 record_width.padding_y = md_helper.get_width("padding_y");
364 record_width.show_shift_label = md_helper.get_width("show_shift_label");
368 void set_autopopup_configure_width(T& md_helper,
369 Autopopup_configure_width & record_width) {
370 md_helper.set_current_metadata_record("autopopup_configure");
371 memset(&record_width, 0x00, sizeof(Autopopup_configure_width));
373 record_width.bg_image_path = md_helper.get_width("bg_image_path");
374 record_width.bg_color = md_helper.get_width("bg_color");
375 record_width.bg_line_width = md_helper.get_width("bg_line_width");
376 record_width.bg_line_color = md_helper.get_width("bg_line_color");
377 record_width.bg_padding = md_helper.get_width("bg_padding");
378 record_width.button_image_path = md_helper.get_width("button_image_path");
379 record_width.sw_button_style = md_helper.get_width("sw_button_style");
380 record_width.button_width = md_helper.get_width("button_width");
381 record_width.button_height = md_helper.get_width("button_height");
382 record_width.button_spacing = md_helper.get_width("button_spacing");
383 record_width.label_type = md_helper.get_width("label_type");
384 record_width.decoration_image_path = md_helper.get_width("decoration_image_path");
385 record_width.decoration_size = md_helper.get_width("decoration_size");
386 record_width.max_column = md_helper.get_width("max_column");
387 record_width.add_grab_left = md_helper.get_width("add_grab_left");
388 record_width.add_grab_right = md_helper.get_width("add_grab_right");
389 record_width.add_grab_top = md_helper.get_width("add_grab_top");
390 record_width.add_grab_bottom = md_helper.get_width("add_grab_bottom");
394 void set_modifier_decoration_width(T& md_helper,
395 Modifier_decoration_width & record_width) {
396 md_helper.set_current_metadata_record("modifier_decoration");
397 memset(&record_width, 0x00, sizeof(Modifier_decoration_width));
399 record_width.extract_background = md_helper.get_width("extract_background");
400 record_width.name = md_helper.get_width("name");
401 record_width.bg_image_path = md_helper.get_width("bg_image_path");
405 void set_nine_patch_width(T& md_helper,
406 Nine_patch_width & record_width) {
407 md_helper.set_current_metadata_record("nine_patch");
408 memset(&record_width, 0x00, sizeof(Nine_patch_width));
410 record_width.image_path = md_helper.get_width("image_path");
411 record_width.left = md_helper.get_width("left");
412 record_width.right = md_helper.get_width("right");
413 record_width.top = md_helper.get_width("top");
414 record_width.bottom = md_helper.get_width("bottom");
418 #endif //End __AUTO_METADATA_H__