2021-04-03 01:05:26 +00:00
|
|
|
/*******************************************************************************/
|
|
|
|
/* This file is auto-generated by Azure RTOS GUIX Studio. Do not edit this */
|
|
|
|
/* file by hand. Modifications to this file should only be made by running */
|
|
|
|
/* the Azure RTOS GUIX Studio application and re-generating the application */
|
|
|
|
/* specification file(s). For more information please refer to the Azure RTOS */
|
|
|
|
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
|
|
|
/* */
|
2023-12-26 09:47:22 +08:00
|
|
|
/* GUIX Studio Revision 6.3.0.1 */
|
|
|
|
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:07 */
|
2021-04-03 01:05:26 +00:00
|
|
|
/*******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#define GUIX_STUDIO_GENERATED_FILE
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "demo_guix_transitions_resources.h"
|
|
|
|
#include "demo_guix_transitions_specifications.h"
|
|
|
|
|
|
|
|
static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
|
|
|
|
PHOTO_3_CONTROL_BLOCK photo_3;
|
|
|
|
PHOTO_2_CONTROL_BLOCK photo_2;
|
|
|
|
PHOTO_1_CONTROL_BLOCK photo_1;
|
|
|
|
SETTINGS_WIN_CONTROL_BLOCK settings_win;
|
|
|
|
BACKGROUND_WIN_CONTROL_BLOCK background_win;
|
|
|
|
ABOUT_WIN_CONTROL_BLOCK about_win;
|
|
|
|
GX_DISPLAY display_1_control_block;
|
|
|
|
GX_WINDOW_ROOT display_1_root_window;
|
|
|
|
GX_CANVAS display_1_canvas_control_block;
|
|
|
|
ULONG display_1_canvas_memory[153600];
|
|
|
|
|
|
|
|
extern GX_CONST GX_THEME *display_1_theme_table[];
|
|
|
|
extern GX_CONST GX_STRING *display_1_language_table[];
|
|
|
|
|
|
|
|
GX_STUDIO_DISPLAY_INFO demo_guix_transitions_display_table[1] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"display_1",
|
|
|
|
"display_1_canvas",
|
|
|
|
display_1_theme_table,
|
|
|
|
display_1_language_table,
|
|
|
|
DISPLAY_1_THEME_TABLE_SIZE,
|
|
|
|
DISPLAY_1_LANGUAGE_TABLE_SIZE,
|
|
|
|
DISPLAY_1_STRING_TABLE_SIZE,
|
|
|
|
640, /* x resolution */
|
|
|
|
480, /* y resolution */
|
|
|
|
&display_1_control_block,
|
|
|
|
&display_1_canvas_control_block,
|
|
|
|
&display_1_root_window,
|
|
|
|
display_1_canvas_memory, /* canvas memory area */
|
|
|
|
614400, /* canvas memory size in bytes */
|
2021-07-28 07:25:38 +00:00
|
|
|
GX_SCREEN_ROTATION_NONE /* rotation angle */
|
2021-04-03 01:05:26 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
|
|
|
{
|
|
|
|
GX_WIDGET *parent = GX_NULL;
|
|
|
|
GX_WIDGET *target = GX_NULL;
|
|
|
|
INT search_depth;
|
|
|
|
GX_STUDIO_WIDGET *widget_define;
|
|
|
|
|
|
|
|
if (action->flags & GX_ACTION_FLAG_DYNAMIC_TARGET)
|
|
|
|
{
|
|
|
|
/* dynamically create the target widget */
|
|
|
|
widget_define = (GX_STUDIO_WIDGET *) action->target;
|
|
|
|
if(action->flags & GX_ACTION_FLAG_DYNAMIC_PARENT)
|
|
|
|
{
|
|
|
|
gx_window_root_find(current, (GX_WINDOW_ROOT **)&parent);
|
|
|
|
search_depth = GX_SEARCH_DEPTH_INFINITE;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
parent = (GX_WIDGET *)action->parent;
|
|
|
|
search_depth = 1;
|
|
|
|
}
|
|
|
|
gx_widget_find(parent, widget_define->widget_id, search_depth, &target);
|
|
|
|
if (target == GX_NULL)
|
|
|
|
{
|
|
|
|
target = gx_studio_widget_create(GX_NULL, widget_define, GX_NULL);
|
|
|
|
}
|
|
|
|
if (target)
|
|
|
|
{
|
|
|
|
target->gx_widget_status |= GX_STATUS_STUDIO_CREATED;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
target = (GX_WIDGET *) action->target;
|
|
|
|
}
|
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
|
|
|
static GX_WIDGET *gx_studio_action_target_find(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
|
|
|
{
|
|
|
|
GX_WIDGET *parent = GX_NULL;
|
|
|
|
GX_WIDGET *target = GX_NULL;
|
|
|
|
GX_STUDIO_WIDGET *widget_define;
|
|
|
|
|
|
|
|
if (action->flags & GX_ACTION_FLAG_DYNAMIC_TARGET)
|
|
|
|
{
|
|
|
|
/* Find the dynamically created target */
|
|
|
|
widget_define = (GX_STUDIO_WIDGET *) action->target;
|
|
|
|
if(action->flags & GX_ACTION_FLAG_DYNAMIC_PARENT)
|
|
|
|
{
|
|
|
|
gx_window_root_find(current, (GX_WINDOW_ROOT **)&parent);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
parent = (GX_WIDGET *)action->parent;
|
|
|
|
}
|
|
|
|
gx_widget_find(parent, widget_define->widget_id, GX_SEARCH_DEPTH_INFINITE, &target);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
target = (GX_WIDGET *) action->target;
|
|
|
|
}
|
|
|
|
return target;
|
|
|
|
}
|
|
|
|
|
|
|
|
static GX_WIDGET *gx_studio_action_parent_find(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
|
|
|
{
|
|
|
|
GX_WIDGET *parent = GX_NULL;
|
|
|
|
GX_STUDIO_WIDGET *widget_define;
|
|
|
|
|
|
|
|
if (action->flags & GX_ACTION_FLAG_DYNAMIC_PARENT)
|
|
|
|
{
|
|
|
|
/* Find the dynamically created target */
|
|
|
|
widget_define = (GX_STUDIO_WIDGET *)action->parent;
|
|
|
|
gx_window_root_find(current, (GX_WINDOW_ROOT **)&parent);
|
|
|
|
gx_widget_find(parent, widget_define->widget_id, GX_SEARCH_DEPTH_INFINITE, &parent);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
parent = (GX_WIDGET *)action->parent;
|
|
|
|
}
|
|
|
|
return parent;
|
|
|
|
}
|
|
|
|
|
|
|
|
static VOID gx_studio_animation_execute(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
|
|
|
{
|
|
|
|
GX_ANIMATION *animation;
|
|
|
|
GX_ANIMATION_INFO animation_info;
|
|
|
|
GX_WIDGET *parent = GX_NULL;
|
|
|
|
GX_WIDGET *target = GX_NULL;
|
|
|
|
gx_system_animation_get(&animation);
|
|
|
|
if (animation)
|
|
|
|
{
|
|
|
|
animation_info = *action->animation;
|
|
|
|
|
|
|
|
if((action->flags & GX_ACTION_FLAG_POP_TARGET) ||
|
|
|
|
(action->flags & GX_ACTION_FLAG_POP_PARENT))
|
|
|
|
{
|
|
|
|
gx_system_screen_stack_get((GX_WIDGET **)&parent, &target);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(action->flags & GX_ACTION_FLAG_POP_TARGET)
|
|
|
|
{
|
|
|
|
animation_info.gx_animation_target = target;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(action->flags & GX_ACTION_FLAG_POP_PARENT)
|
|
|
|
{
|
|
|
|
animation_info.gx_animation_parent = (GX_WIDGET *)parent;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((!animation_info.gx_animation_target) &&
|
|
|
|
(action->flags & GX_ACTION_FLAG_DYNAMIC_TARGET))
|
|
|
|
{
|
|
|
|
target = gx_studio_action_target_get(current, action);
|
|
|
|
animation_info.gx_animation_target = target;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!animation_info.gx_animation_parent)
|
|
|
|
{
|
|
|
|
animation_info.gx_animation_parent = gx_studio_action_parent_find(current, action);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (animation_info.gx_animation_target &&
|
|
|
|
animation_info.gx_animation_parent)
|
|
|
|
{
|
|
|
|
gx_animation_start(animation, &animation_info);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CONST GX_STUDIO_EVENT_PROCESS *record)
|
|
|
|
{
|
|
|
|
UINT status = GX_SUCCESS;
|
|
|
|
GX_CONST GX_STUDIO_ACTION *action;
|
|
|
|
GX_CONST GX_WIDGET *parent = GX_NULL;
|
|
|
|
GX_WIDGET *target = GX_NULL;
|
|
|
|
GX_CONST GX_STUDIO_EVENT_ENTRY *entry = record->event_table;
|
|
|
|
|
|
|
|
while(entry->event_type)
|
|
|
|
{
|
|
|
|
if (entry->event_type == event_ptr->gx_event_type)
|
|
|
|
{
|
|
|
|
if((entry->event_type == GX_EVENT_ANIMATION_COMPLETE) &&
|
|
|
|
(entry->event_sender != event_ptr->gx_event_sender))
|
|
|
|
{
|
|
|
|
entry++;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
action = entry->action_list;
|
|
|
|
|
|
|
|
while(action->opcode)
|
|
|
|
{
|
|
|
|
switch(action->opcode)
|
|
|
|
{
|
|
|
|
case GX_ACTION_TYPE_ATTACH:
|
|
|
|
if((action->flags & GX_ACTION_FLAG_POP_TARGET) ||
|
|
|
|
(action->flags & GX_ACTION_FLAG_POP_PARENT))
|
|
|
|
{
|
|
|
|
gx_system_screen_stack_get((GX_WIDGET **)&parent, &target);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!(action->flags & GX_ACTION_FLAG_POP_PARENT))
|
|
|
|
{
|
|
|
|
parent = action->parent;
|
|
|
|
}
|
|
|
|
if(!(action->flags & GX_ACTION_FLAG_POP_TARGET))
|
|
|
|
{
|
|
|
|
target = gx_studio_action_target_get(widget, action);
|
|
|
|
}
|
|
|
|
if (parent && target)
|
|
|
|
{
|
|
|
|
gx_widget_attach(parent, target);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GX_ACTION_TYPE_DETACH:
|
|
|
|
target = gx_studio_action_target_find(widget, action);
|
|
|
|
if (target)
|
|
|
|
{
|
|
|
|
gx_widget_detach(target);
|
|
|
|
if (target->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
|
|
|
{
|
2023-12-05 10:25:19 +08:00
|
|
|
if (widget == target)
|
|
|
|
{
|
|
|
|
widget = GX_NULL;
|
|
|
|
}
|
|
|
|
|
2021-04-03 01:05:26 +00:00
|
|
|
gx_widget_delete(target);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GX_ACTION_TYPE_TOGGLE:
|
|
|
|
if(action->flags & GX_ACTION_FLAG_POP_TARGET)
|
|
|
|
{
|
|
|
|
gx_system_screen_stack_get(GX_NULL, &target);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
target = gx_studio_action_target_get(widget, action);
|
|
|
|
}
|
2023-12-26 09:47:22 +08:00
|
|
|
parent = widget->gx_widget_parent;
|
|
|
|
if (parent)
|
|
|
|
{
|
|
|
|
gx_widget_detach(widget);
|
|
|
|
gx_widget_attach(parent, target);
|
|
|
|
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
|
|
|
{
|
|
|
|
gx_widget_delete(widget);
|
|
|
|
widget = GX_NULL;
|
|
|
|
}
|
|
|
|
}
|
2021-04-03 01:05:26 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case GX_ACTION_TYPE_SHOW:
|
|
|
|
target = gx_studio_action_target_get(widget, action);
|
|
|
|
if(target)
|
|
|
|
{
|
|
|
|
gx_widget_show(target);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GX_ACTION_TYPE_HIDE:
|
|
|
|
target = gx_studio_action_target_find(widget, action);
|
|
|
|
if(target)
|
|
|
|
{
|
|
|
|
gx_widget_hide(target);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GX_ACTION_TYPE_ANIMATION:
|
|
|
|
gx_studio_animation_execute(widget, action);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GX_ACTION_TYPE_WINDOW_EXECUTE:
|
|
|
|
if((action->flags & GX_ACTION_FLAG_POP_TARGET) ||
|
|
|
|
(action->flags & GX_ACTION_FLAG_POP_PARENT))
|
|
|
|
{
|
|
|
|
gx_system_screen_stack_get((GX_WIDGET **)&parent, &target);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!(action->flags & GX_ACTION_FLAG_POP_PARENT))
|
|
|
|
{
|
|
|
|
parent = widget->gx_widget_parent;
|
|
|
|
}
|
|
|
|
if(!(action->flags & GX_ACTION_FLAG_POP_TARGET))
|
|
|
|
{
|
|
|
|
target = gx_studio_action_target_get(widget, action);
|
|
|
|
}
|
|
|
|
if (parent && target)
|
|
|
|
{
|
|
|
|
gx_widget_attach(parent, target);
|
|
|
|
gx_window_execute((GX_WINDOW *) target, GX_NULL);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GX_ACTION_TYPE_WINDOW_EXECUTE_STOP:
|
|
|
|
return event_ptr->gx_event_sender;
|
|
|
|
|
|
|
|
case GX_ACTION_TYPE_SCREEN_STACK_PUSH:
|
|
|
|
target = gx_studio_action_target_get(widget, action);
|
|
|
|
if(target)
|
|
|
|
{
|
|
|
|
gx_system_screen_stack_push(target);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GX_ACTION_TYPE_SCREEN_STACK_POP:
|
|
|
|
gx_system_screen_stack_pop();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GX_ACTION_TYPE_SCREEN_STACK_RESET:
|
|
|
|
gx_system_screen_stack_reset();
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
action++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
entry++;
|
|
|
|
}
|
|
|
|
|
2023-12-26 09:47:22 +08:00
|
|
|
if (widget && record->chain_event_handler)
|
2021-04-03 01:05:26 +00:00
|
|
|
{
|
|
|
|
status = record->chain_event_handler(widget, event_ptr);
|
|
|
|
}
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
|
|
|
|
{
|
|
|
|
UINT status;
|
|
|
|
GX_CHECKBOX *button = (GX_CHECKBOX *) control_block;
|
|
|
|
GX_TEXT_BUTTON *text_button = (GX_TEXT_BUTTON *) button;
|
|
|
|
GX_CHECKBOX_PROPERTIES *props = (GX_CHECKBOX_PROPERTIES *) info->properties;
|
|
|
|
status = gx_checkbox_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
|
|
|
|
if (status == GX_SUCCESS)
|
|
|
|
{
|
|
|
|
gx_text_button_font_set(text_button, props->font_id);
|
|
|
|
#if defined(GUIX_5_4_0_COMPATIBILITY)
|
|
|
|
gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id);
|
|
|
|
#else
|
|
|
|
gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if (props->unchecked_pixelmap_id ||
|
|
|
|
props->checked_pixelmap_id ||
|
|
|
|
props->unchecked_disabled_pixelmap_id ||
|
|
|
|
props->checked_disabled_pixelmap_id)
|
|
|
|
{
|
|
|
|
gx_checkbox_pixelmap_set(button,
|
|
|
|
props->unchecked_pixelmap_id,
|
|
|
|
props->checked_pixelmap_id,
|
|
|
|
props->unchecked_disabled_pixelmap_id,
|
|
|
|
props->checked_disabled_pixelmap_id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
|
|
|
|
{
|
|
|
|
UINT status;
|
|
|
|
GX_PIXELMAP_BUTTON *button = (GX_PIXELMAP_BUTTON *) control_block;
|
|
|
|
GX_PIXELMAP_BUTTON_PROPERTIES *props = (GX_PIXELMAP_BUTTON_PROPERTIES *) info->properties;
|
|
|
|
status = gx_pixelmap_button_create(button, info->widget_name, parent,
|
|
|
|
props->normal_pixelmap_id,
|
|
|
|
props->selected_pixelmap_id,
|
|
|
|
props->disabled_pixelmap_id,
|
|
|
|
info->style, info->widget_id, &info->size);
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
|
|
|
|
{
|
|
|
|
UINT status;
|
|
|
|
GX_ICON *icon = (GX_ICON *) control_block;
|
|
|
|
GX_ICON_PROPERTIES *props = (GX_ICON_PROPERTIES *) info->properties;
|
|
|
|
status = gx_icon_create(icon, info->widget_name, parent, props->normal_pixelmap_id, info->style, info->widget_id, info->size.gx_rectangle_left, info->size.gx_rectangle_top);
|
|
|
|
if (props->selected_pixelmap_id)
|
|
|
|
{
|
|
|
|
gx_icon_pixelmap_set(icon, props->normal_pixelmap_id, props->selected_pixelmap_id);
|
|
|
|
}
|
2022-04-20 05:09:15 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
gx_widget_resize((GX_WIDGET *)icon, (GX_RECTANGLE *)&info->size);
|
|
|
|
}
|
2021-04-03 01:05:26 +00:00
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
|
|
|
|
{
|
|
|
|
UINT status;
|
|
|
|
GX_PROMPT *prompt = (GX_PROMPT *) control_block;
|
|
|
|
GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties;
|
|
|
|
status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
|
|
|
|
if (status == GX_SUCCESS)
|
|
|
|
{
|
|
|
|
gx_prompt_font_set(prompt, props->font_id);
|
|
|
|
#if defined(GUIX_5_4_0_COMPATIBILITY)
|
|
|
|
gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
|
|
|
|
#else
|
|
|
|
gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
|
|
|
|
{
|
|
|
|
UINT status;
|
|
|
|
GX_WINDOW *window = (GX_WINDOW *) control_block;
|
|
|
|
GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties;
|
|
|
|
status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size);
|
|
|
|
if (status == GX_SUCCESS)
|
|
|
|
{
|
|
|
|
if (props->wallpaper_id)
|
|
|
|
{
|
|
|
|
gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
GX_WINDOW_PROPERTIES photo_3_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_PHOTO_C /* wallpaper pixelmap id */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET photo_3_define =
|
|
|
|
{
|
|
|
|
"photo_3",
|
|
|
|
GX_TYPE_WINDOW, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(PHOTO_3_CONTROL_BLOCK), /* control block size */
|
|
|
|
GX_COLOR_ID_CHILD_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_BACKGROUND_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_BACKGROUND_FILL, /* disabled color id */
|
|
|
|
gx_studio_window_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{114, 119, 533, 390}, /* widget size */
|
|
|
|
GX_NULL, /* next widget */
|
|
|
|
GX_NULL, /* child widget */
|
|
|
|
0, /* control block */
|
|
|
|
(void *) &photo_3_properties /* extended properties */
|
|
|
|
};
|
|
|
|
GX_WINDOW_PROPERTIES photo_2_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_PHOTO_B /* wallpaper pixelmap id */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET photo_2_define =
|
|
|
|
{
|
|
|
|
"photo_2",
|
|
|
|
GX_TYPE_WINDOW, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(PHOTO_2_CONTROL_BLOCK), /* control block size */
|
|
|
|
GX_COLOR_ID_CHILD_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_BACKGROUND_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_BACKGROUND_FILL, /* disabled color id */
|
|
|
|
gx_studio_window_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{114, 119, 533, 390}, /* widget size */
|
|
|
|
GX_NULL, /* next widget */
|
|
|
|
GX_NULL, /* child widget */
|
|
|
|
0, /* control block */
|
|
|
|
(void *) &photo_2_properties /* extended properties */
|
|
|
|
};
|
|
|
|
GX_WINDOW_PROPERTIES photo_1_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_PHOTO_1 /* wallpaper pixelmap id */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET photo_1_define =
|
|
|
|
{
|
|
|
|
"photo_1",
|
|
|
|
GX_TYPE_WINDOW, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(PHOTO_1_CONTROL_BLOCK), /* control block size */
|
|
|
|
GX_COLOR_ID_CHILD_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_BACKGROUND_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_BACKGROUND_FILL, /* disabled color id */
|
|
|
|
gx_studio_window_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{114, 119, 533, 390}, /* widget size */
|
|
|
|
GX_NULL, /* next widget */
|
|
|
|
GX_NULL, /* child widget */
|
|
|
|
0, /* control block */
|
|
|
|
(void *) &photo_1_properties /* extended properties */
|
|
|
|
};
|
|
|
|
GX_WINDOW_PROPERTIES settings_win_properties =
|
|
|
|
{
|
|
|
|
0 /* wallpaper pixelmap id */
|
|
|
|
};
|
|
|
|
GX_PIXELMAP_BUTTON_PROPERTIES settings_win_close_button_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_BUTTON_SMALL, /* normal pixelmap id */
|
|
|
|
GX_PIXELMAP_ID_BUTTON_SMALL_ACTIVE, /* selected pixelmap id */
|
|
|
|
0 /* disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_ICON_PROPERTIES settings_win_icon_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_ICON_CLOSE, /* normal pixelmap id */
|
|
|
|
0 /* selected pixelmap id */
|
|
|
|
};
|
|
|
|
GX_ICON_PROPERTIES settings_win_icon_2_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_ICON_CLOSE, /* normal pixelmap id */
|
|
|
|
0 /* selected pixelmap id */
|
|
|
|
};
|
|
|
|
GX_PROMPT_PROPERTIES settings_win_prompt_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_43, /* string id */
|
|
|
|
GX_FONT_ID_MIDSIZE, /* font id */
|
|
|
|
GX_COLOR_ID_TEXT, /* normal text color */
|
|
|
|
GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_DISABLED_TEXT /* disabled text color */
|
|
|
|
};
|
|
|
|
GX_CHECKBOX_PROPERTIES settings_win_checkbox_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_45, /* string id */
|
|
|
|
GX_FONT_ID_BUTTON, /* font id */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* normal text color */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_DISABLED_TEXT, /* disabled text color */
|
|
|
|
0, /* unchecked pixelmap id */
|
|
|
|
0, /* checked pixelmap id */
|
|
|
|
0, /* unchecked disabled pixelmap id */
|
|
|
|
0 /* checked disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_CHECKBOX_PROPERTIES settings_win_checkbox_1_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_46, /* string id */
|
|
|
|
GX_FONT_ID_BUTTON, /* font id */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* normal text color */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_DISABLED_TEXT, /* disabled text color */
|
|
|
|
0, /* unchecked pixelmap id */
|
|
|
|
0, /* checked pixelmap id */
|
|
|
|
0, /* unchecked disabled pixelmap id */
|
|
|
|
0 /* checked disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_CHECKBOX_PROPERTIES settings_win_checkbox_2_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_47, /* string id */
|
|
|
|
GX_FONT_ID_BUTTON, /* font id */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* normal text color */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_DISABLED_TEXT, /* disabled text color */
|
|
|
|
0, /* unchecked pixelmap id */
|
|
|
|
0, /* checked pixelmap id */
|
|
|
|
0, /* unchecked disabled pixelmap id */
|
|
|
|
0 /* checked disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_CHECKBOX_PROPERTIES settings_win_checkbox_3_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_48, /* string id */
|
|
|
|
GX_FONT_ID_BUTTON, /* font id */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* normal text color */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_DISABLED_TEXT, /* disabled text color */
|
|
|
|
0, /* unchecked pixelmap id */
|
|
|
|
0, /* checked pixelmap id */
|
|
|
|
0, /* unchecked disabled pixelmap id */
|
|
|
|
0 /* checked disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_CHECKBOX_PROPERTIES settings_win_checkbox_4_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_49, /* string id */
|
|
|
|
GX_FONT_ID_BUTTON, /* font id */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* normal text color */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_DISABLED_TEXT, /* disabled text color */
|
|
|
|
0, /* unchecked pixelmap id */
|
|
|
|
0, /* checked pixelmap id */
|
|
|
|
0, /* unchecked disabled pixelmap id */
|
|
|
|
0 /* checked disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_CHECKBOX_PROPERTIES settings_win_checkbox_5_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_50, /* string id */
|
|
|
|
GX_FONT_ID_BUTTON, /* font id */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* normal text color */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_DISABLED_TEXT, /* disabled text color */
|
|
|
|
0, /* unchecked pixelmap id */
|
|
|
|
0, /* checked pixelmap id */
|
|
|
|
0, /* unchecked disabled pixelmap id */
|
|
|
|
0 /* checked disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_CHECKBOX_PROPERTIES settings_win_checkbox_6_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_51, /* string id */
|
|
|
|
GX_FONT_ID_BUTTON, /* font id */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* normal text color */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_DISABLED_TEXT, /* disabled text color */
|
|
|
|
0, /* unchecked pixelmap id */
|
|
|
|
0, /* checked pixelmap id */
|
|
|
|
0, /* unchecked disabled pixelmap id */
|
|
|
|
0 /* checked disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_CHECKBOX_PROPERTIES settings_win_checkbox_7_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_52, /* string id */
|
|
|
|
GX_FONT_ID_BUTTON, /* font id */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* normal text color */
|
|
|
|
GX_COLOR_ID_BTN_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_DISABLED_TEXT, /* disabled text color */
|
|
|
|
0, /* unchecked pixelmap id */
|
|
|
|
0, /* checked pixelmap id */
|
|
|
|
0, /* unchecked disabled pixelmap id */
|
|
|
|
0 /* checked disabled pixelmap id */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_icon_2_define =
|
|
|
|
{
|
|
|
|
"icon_2",
|
|
|
|
GX_TYPE_ICON, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_ICON), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_icon_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{491, 133, 507, 150}, /* widget size */
|
|
|
|
GX_NULL, /* no next widget */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_icon_2), /* control block */
|
|
|
|
(void *) &settings_win_icon_2_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_icon_define =
|
|
|
|
{
|
|
|
|
"icon",
|
|
|
|
GX_TYPE_ICON, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
|
|
|
|
0, /* status flags */
|
|
|
|
sizeof(GX_ICON), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
|
|
|
|
gx_studio_icon_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{437, 229, 453, 246}, /* widget size */
|
|
|
|
&settings_win_icon_2_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_icon), /* control block */
|
|
|
|
(void *) &settings_win_icon_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_checkbox_7_define =
|
|
|
|
{
|
|
|
|
"checkbox_7",
|
|
|
|
GX_TYPE_CHECKBOX, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_CHECKBOX), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_checkbox_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{378, 314, 491, 337}, /* widget size */
|
|
|
|
GX_NULL, /* no next widget */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_checkbox_7), /* control block */
|
|
|
|
(void *) &settings_win_checkbox_7_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_checkbox_6_define =
|
|
|
|
{
|
|
|
|
"checkbox_6",
|
|
|
|
GX_TYPE_CHECKBOX, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_CHECKBOX), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_checkbox_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{378, 277, 491, 300}, /* widget size */
|
|
|
|
&settings_win_checkbox_7_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_checkbox_6), /* control block */
|
|
|
|
(void *) &settings_win_checkbox_6_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_checkbox_5_define =
|
|
|
|
{
|
|
|
|
"checkbox_5",
|
|
|
|
GX_TYPE_CHECKBOX, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_CHECKBOX), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_checkbox_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{378, 240, 491, 263}, /* widget size */
|
|
|
|
&settings_win_checkbox_6_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_checkbox_5), /* control block */
|
|
|
|
(void *) &settings_win_checkbox_5_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_checkbox_4_define =
|
|
|
|
{
|
|
|
|
"checkbox_4",
|
|
|
|
GX_TYPE_CHECKBOX, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_CHECKBOX), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_checkbox_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{378, 203, 491, 226}, /* widget size */
|
|
|
|
&settings_win_checkbox_5_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_checkbox_4), /* control block */
|
|
|
|
(void *) &settings_win_checkbox_4_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_checkbox_3_define =
|
|
|
|
{
|
|
|
|
"checkbox_3",
|
|
|
|
GX_TYPE_CHECKBOX, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_CHECKBOX), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_checkbox_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{146, 314, 259, 337}, /* widget size */
|
|
|
|
&settings_win_checkbox_4_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_checkbox_3), /* control block */
|
|
|
|
(void *) &settings_win_checkbox_3_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_checkbox_2_define =
|
|
|
|
{
|
|
|
|
"checkbox_2",
|
|
|
|
GX_TYPE_CHECKBOX, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_CHECKBOX), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_checkbox_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{146, 277, 259, 300}, /* widget size */
|
|
|
|
&settings_win_checkbox_3_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_checkbox_2), /* control block */
|
|
|
|
(void *) &settings_win_checkbox_2_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_checkbox_1_define =
|
|
|
|
{
|
|
|
|
"checkbox_1",
|
|
|
|
GX_TYPE_CHECKBOX, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_CHECKBOX), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_checkbox_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{146, 240, 259, 263}, /* widget size */
|
|
|
|
&settings_win_checkbox_2_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_checkbox_1), /* control block */
|
|
|
|
(void *) &settings_win_checkbox_1_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_checkbox_define =
|
|
|
|
{
|
|
|
|
"checkbox",
|
|
|
|
GX_TYPE_CHECKBOX, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_CHECKBOX), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_checkbox_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{146, 203, 259, 226}, /* widget size */
|
|
|
|
&settings_win_checkbox_1_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_checkbox), /* control block */
|
|
|
|
(void *) &settings_win_checkbox_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_prompt_define =
|
|
|
|
{
|
|
|
|
"prompt",
|
|
|
|
GX_TYPE_PROMPT, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_PROMPT), /* control block size */
|
|
|
|
GX_COLOR_ID_BLACK, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_prompt_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{206, 130, 427, 158}, /* widget size */
|
|
|
|
&settings_win_checkbox_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_prompt), /* control block */
|
|
|
|
(void *) &settings_win_prompt_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_close_button_define =
|
|
|
|
{
|
|
|
|
"close_button",
|
|
|
|
GX_TYPE_PIXELMAP_BUTTON, /* widget type */
|
|
|
|
IDB_CLOSE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_PIXELMAP_BUTTON), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* disabled color id */
|
|
|
|
gx_studio_pixelmap_button_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{475, 124, 527, 171}, /* widget size */
|
|
|
|
&settings_win_prompt_define, /* next widget definition */
|
|
|
|
&settings_win_icon_define, /* child widget definition */
|
|
|
|
offsetof(SETTINGS_WIN_CONTROL_BLOCK, settings_win_close_button), /* control block */
|
|
|
|
(void *) &settings_win_close_button_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET settings_win_define =
|
|
|
|
{
|
|
|
|
"settings_win",
|
|
|
|
GX_TYPE_WINDOW, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(SETTINGS_WIN_CONTROL_BLOCK), /* control block size */
|
|
|
|
GX_COLOR_ID_CHILD_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_BACKGROUND_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_BACKGROUND_FILL, /* disabled color id */
|
|
|
|
gx_studio_window_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
(UINT (*)(GX_WIDGET *, GX_EVENT *)) settings_win_event_process, /* event function override */
|
|
|
|
{111, 117, 530, 388}, /* widget size */
|
|
|
|
GX_NULL, /* next widget */
|
|
|
|
&settings_win_close_button_define, /* child widget */
|
|
|
|
0, /* control block */
|
|
|
|
(void *) &settings_win_properties /* extended properties */
|
|
|
|
};
|
|
|
|
GX_WINDOW_PROPERTIES background_win_properties =
|
|
|
|
{
|
|
|
|
0 /* wallpaper pixelmap id */
|
|
|
|
};
|
|
|
|
GX_ICON_PROPERTIES background_win_logo_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_MS_AZURE_LOGO_SMALL, /* normal pixelmap id */
|
|
|
|
0 /* selected pixelmap id */
|
|
|
|
};
|
|
|
|
GX_PIXELMAP_BUTTON_PROPERTIES background_win_info_button_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_BUTTON_SMALL, /* normal pixelmap id */
|
|
|
|
GX_PIXELMAP_ID_BUTTON_SMALL_ACTIVE, /* selected pixelmap id */
|
|
|
|
0 /* disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_ICON_PROPERTIES background_win_icon_7_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_ICON_INFO, /* normal pixelmap id */
|
|
|
|
0 /* selected pixelmap id */
|
|
|
|
};
|
|
|
|
GX_PIXELMAP_BUTTON_PROPERTIES background_win_settings_button_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_BUTTON_SMALL, /* normal pixelmap id */
|
|
|
|
GX_PIXELMAP_ID_BUTTON_SMALL_ACTIVE, /* selected pixelmap id */
|
|
|
|
0 /* disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_ICON_PROPERTIES background_win_icon_8_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_ICON_COG, /* normal pixelmap id */
|
|
|
|
0 /* selected pixelmap id */
|
|
|
|
};
|
|
|
|
GX_WINDOW_PROPERTIES background_win_child_frame_properties =
|
|
|
|
{
|
|
|
|
0 /* wallpaper pixelmap id */
|
|
|
|
};
|
|
|
|
GX_PROMPT_PROPERTIES background_win_prompt_1_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_53, /* string id */
|
|
|
|
GX_FONT_ID_PROMPT, /* font id */
|
|
|
|
GX_COLOR_ID_WHITE, /* normal text color */
|
|
|
|
GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_WHITE /* disabled text color */
|
|
|
|
};
|
|
|
|
GX_PROMPT_PROPERTIES background_win_prompt_properties =
|
|
|
|
{
|
|
|
|
GX_STRING_ID_STRING_54, /* string id */
|
|
|
|
GX_FONT_ID_PROMPT, /* font id */
|
|
|
|
GX_COLOR_ID_WHITE, /* normal text color */
|
|
|
|
GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
|
|
|
|
GX_COLOR_ID_WHITE /* disabled text color */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET background_win_icon_7_define =
|
|
|
|
{
|
|
|
|
"icon_7",
|
|
|
|
GX_TYPE_ICON, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
|
|
|
|
0, /* status flags */
|
|
|
|
sizeof(GX_ICON), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
|
|
|
|
gx_studio_icon_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{577, 32, 598, 55}, /* widget size */
|
|
|
|
GX_NULL, /* no next widget */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(BACKGROUND_WIN_CONTROL_BLOCK, background_win_icon_7), /* control block */
|
|
|
|
(void *) &background_win_icon_7_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET background_win_icon_8_define =
|
|
|
|
{
|
|
|
|
"icon_8",
|
|
|
|
GX_TYPE_ICON, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
|
|
|
|
0, /* status flags */
|
|
|
|
sizeof(GX_ICON), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
|
|
|
|
gx_studio_icon_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{515, 28, 542, 55}, /* widget size */
|
|
|
|
GX_NULL, /* no next widget */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(BACKGROUND_WIN_CONTROL_BLOCK, background_win_icon_8), /* control block */
|
|
|
|
(void *) &background_win_icon_8_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET background_win_prompt_define =
|
|
|
|
{
|
|
|
|
"prompt",
|
|
|
|
GX_TYPE_PROMPT, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */
|
|
|
|
0, /* status flags */
|
|
|
|
sizeof(GX_PROMPT), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_prompt_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{489, 414, 533, 437}, /* widget size */
|
|
|
|
GX_NULL, /* no next widget */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(BACKGROUND_WIN_CONTROL_BLOCK, background_win_prompt), /* control block */
|
|
|
|
(void *) &background_win_prompt_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET background_win_prompt_1_define =
|
|
|
|
{
|
|
|
|
"prompt_1",
|
|
|
|
GX_TYPE_PROMPT, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */
|
|
|
|
0, /* status flags */
|
|
|
|
sizeof(GX_PROMPT), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_prompt_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{113, 414, 157, 437}, /* widget size */
|
|
|
|
&background_win_prompt_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(BACKGROUND_WIN_CONTROL_BLOCK, background_win_prompt_1), /* control block */
|
|
|
|
(void *) &background_win_prompt_1_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET background_win_child_frame_define =
|
|
|
|
{
|
|
|
|
"child_frame",
|
|
|
|
GX_TYPE_WINDOW, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_WINDOW), /* control block size */
|
|
|
|
GX_COLOR_ID_WINDOW_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_WINDOW_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_window_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{113, 130, 534, 403}, /* widget size */
|
|
|
|
&background_win_prompt_1_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(BACKGROUND_WIN_CONTROL_BLOCK, background_win_child_frame), /* control block */
|
|
|
|
(void *) &background_win_child_frame_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET background_win_settings_button_define =
|
|
|
|
{
|
|
|
|
"settings_button",
|
|
|
|
GX_TYPE_PIXELMAP_BUTTON, /* widget type */
|
|
|
|
IDB_SETTINGS, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_PIXELMAP_BUTTON), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* disabled color id */
|
|
|
|
gx_studio_pixelmap_button_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{505, 23, 557, 70}, /* widget size */
|
|
|
|
&background_win_child_frame_define, /* next widget definition */
|
|
|
|
&background_win_icon_8_define, /* child widget definition */
|
|
|
|
offsetof(BACKGROUND_WIN_CONTROL_BLOCK, background_win_settings_button), /* control block */
|
|
|
|
(void *) &background_win_settings_button_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET background_win_info_button_define =
|
|
|
|
{
|
|
|
|
"info_button",
|
|
|
|
GX_TYPE_PIXELMAP_BUTTON, /* widget type */
|
|
|
|
IDB_INFO, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_PIXELMAP_BUTTON), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* disabled color id */
|
|
|
|
gx_studio_pixelmap_button_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{565, 24, 617, 71}, /* widget size */
|
|
|
|
&background_win_settings_button_define, /* next widget definition */
|
|
|
|
&background_win_icon_7_define, /* child widget definition */
|
|
|
|
offsetof(BACKGROUND_WIN_CONTROL_BLOCK, background_win_info_button), /* control block */
|
|
|
|
(void *) &background_win_info_button_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET background_win_logo_define =
|
|
|
|
{
|
|
|
|
"logo",
|
|
|
|
GX_TYPE_ICON, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
|
|
|
|
0, /* status flags */
|
|
|
|
sizeof(GX_ICON), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
|
|
|
|
gx_studio_icon_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{9, 9, 197, 38}, /* widget size */
|
|
|
|
&background_win_info_button_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(BACKGROUND_WIN_CONTROL_BLOCK, background_win_logo), /* control block */
|
|
|
|
(void *) &background_win_logo_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_ANIMATION_INFO background_win_animation_1 = {
|
|
|
|
(GX_WIDGET *) &about_win,
|
|
|
|
(GX_WIDGET *) &display_1_root_window,
|
|
|
|
GX_NULL,
|
|
|
|
GX_ANIMATION_TRANSLATE|GX_ANIMATION_EXPO_EASE_IN, ANIMATION_ABOUT_FADE_IN, 0, 1,
|
|
|
|
{115, 132}, {115, 132}, 20, 255, 20
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GX_ANIMATION_INFO background_win_animation_2 = {
|
|
|
|
(GX_WIDGET *) &background_win,
|
|
|
|
(GX_WIDGET *) &display_1_root_window,
|
|
|
|
GX_NULL,
|
|
|
|
GX_ANIMATION_TRANSLATE|GX_ANIMATION_DETACH|GX_ANIMATION_EXPO_EASE_OUT, 0, 0, 1,
|
|
|
|
{0, 0}, {0, 0}, 255, 20, 20
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GX_STUDIO_ACTION background_win__idb_info_gx_event_clicked_actions[3] = {
|
|
|
|
{GX_ACTION_TYPE_ANIMATION, 0, &display_1_root_window, &about_win, &background_win_animation_1},
|
|
|
|
{GX_ACTION_TYPE_ANIMATION, 0, &display_1_root_window, &background_win, &background_win_animation_2},
|
|
|
|
{0, 0, GX_NULL, GX_NULL, GX_NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static GX_STUDIO_EVENT_ENTRY gx_studio_background_win_event_table[] = {
|
|
|
|
{GX_SIGNAL(IDB_INFO, GX_EVENT_CLICKED), 0, background_win__idb_info_gx_event_clicked_actions},
|
|
|
|
{0, 0, GX_NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_STUDIO_EVENT_PROCESS background_win_event_chain = {gx_studio_background_win_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))BackgroundWinEventProcess};
|
|
|
|
static UINT gx_studio_background_win_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
|
|
|
|
{
|
|
|
|
return (gx_studio_auto_event_handler(target, event_ptr, &background_win_event_chain));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET background_win_define =
|
|
|
|
{
|
|
|
|
"background_win",
|
|
|
|
GX_TYPE_WINDOW, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(BACKGROUND_WIN_CONTROL_BLOCK), /* control block size */
|
|
|
|
GX_COLOR_ID_BLACK, /* normal color id */
|
|
|
|
GX_COLOR_ID_BLACK, /* selected color id */
|
|
|
|
GX_COLOR_ID_BLACK, /* disabled color id */
|
|
|
|
gx_studio_window_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
(UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_background_win_event_process, /* event function override */
|
|
|
|
{0, 0, 639, 479}, /* widget size */
|
|
|
|
GX_NULL, /* next widget */
|
|
|
|
&background_win_logo_define, /* child widget */
|
|
|
|
0, /* control block */
|
|
|
|
(void *) &background_win_properties /* extended properties */
|
|
|
|
};
|
|
|
|
GX_WINDOW_PROPERTIES about_win_properties =
|
|
|
|
{
|
|
|
|
0 /* wallpaper pixelmap id */
|
|
|
|
};
|
|
|
|
GX_PIXELMAP_BUTTON_PROPERTIES about_win_close_button_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_BUTTON_SMALL, /* normal pixelmap id */
|
|
|
|
GX_PIXELMAP_ID_BUTTON_SMALL_ACTIVE, /* selected pixelmap id */
|
|
|
|
0 /* disabled pixelmap id */
|
|
|
|
};
|
|
|
|
GX_ICON_PROPERTIES about_win_icon_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_ICON_CLOSE, /* normal pixelmap id */
|
|
|
|
0 /* selected pixelmap id */
|
|
|
|
};
|
|
|
|
GX_ICON_PROPERTIES about_win_icon_2_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_ICON_CLOSE, /* normal pixelmap id */
|
|
|
|
0 /* selected pixelmap id */
|
|
|
|
};
|
|
|
|
GX_ICON_PROPERTIES about_win_icon_4_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_GUIX_LOGO_LARGE, /* normal pixelmap id */
|
|
|
|
0 /* selected pixelmap id */
|
|
|
|
};
|
|
|
|
GX_ICON_PROPERTIES about_win_icon_1_properties =
|
|
|
|
{
|
|
|
|
GX_PIXELMAP_ID_X_LARGE, /* normal pixelmap id */
|
|
|
|
0 /* selected pixelmap id */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET about_win_icon_2_define =
|
|
|
|
{
|
|
|
|
"icon_2",
|
|
|
|
GX_TYPE_ICON, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_ICON), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_icon_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{494, 147, 510, 164}, /* widget size */
|
|
|
|
GX_NULL, /* no next widget */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(ABOUT_WIN_CONTROL_BLOCK, about_win_icon_2), /* control block */
|
|
|
|
(void *) &about_win_icon_2_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET about_win_icon_define =
|
|
|
|
{
|
|
|
|
"icon",
|
|
|
|
GX_TYPE_ICON, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
|
|
|
|
0, /* status flags */
|
|
|
|
sizeof(GX_ICON), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
|
|
|
|
gx_studio_icon_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{440, 243, 456, 260}, /* widget size */
|
|
|
|
&about_win_icon_2_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(ABOUT_WIN_CONTROL_BLOCK, about_win_icon), /* control block */
|
|
|
|
(void *) &about_win_icon_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET about_win_icon_1_define =
|
|
|
|
{
|
|
|
|
"icon_1",
|
|
|
|
GX_TYPE_ICON, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_ICON), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
|
|
|
|
gx_studio_icon_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{119, 144, 350, 383}, /* widget size */
|
|
|
|
GX_NULL, /* no next widget */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(ABOUT_WIN_CONTROL_BLOCK, about_win_icon_1), /* control block */
|
|
|
|
(void *) &about_win_icon_1_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET about_win_icon_4_define =
|
|
|
|
{
|
|
|
|
"icon_4",
|
|
|
|
GX_TYPE_ICON, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_ICON), /* control block size */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* normal color id */
|
|
|
|
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
|
|
|
|
GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
|
|
|
|
gx_studio_icon_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{265, 224, 531, 285}, /* widget size */
|
|
|
|
&about_win_icon_1_define, /* next widget definition */
|
|
|
|
GX_NULL, /* no child widgets */
|
|
|
|
offsetof(ABOUT_WIN_CONTROL_BLOCK, about_win_icon_4), /* control block */
|
|
|
|
(void *) &about_win_icon_4_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET about_win_close_button_define =
|
|
|
|
{
|
|
|
|
"close_button",
|
|
|
|
GX_TYPE_PIXELMAP_BUTTON, /* widget type */
|
|
|
|
IDB_CLOSE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(GX_PIXELMAP_BUTTON), /* control block size */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* normal color id */
|
|
|
|
GX_COLOR_ID_BTN_UPPER, /* selected color id */
|
|
|
|
GX_COLOR_ID_BTN_LOWER, /* disabled color id */
|
|
|
|
gx_studio_pixelmap_button_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
GX_NULL, /* event function override */
|
|
|
|
{478, 138, 530, 185}, /* widget size */
|
|
|
|
&about_win_icon_4_define, /* next widget definition */
|
|
|
|
&about_win_icon_define, /* child widget definition */
|
|
|
|
offsetof(ABOUT_WIN_CONTROL_BLOCK, about_win_close_button), /* control block */
|
|
|
|
(void *) &about_win_close_button_properties /* extended properties */
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_ANIMATION_INFO about_win_animation_1 = {
|
|
|
|
(GX_WIDGET *) &background_win,
|
|
|
|
(GX_WIDGET *) &display_1_root_window,
|
|
|
|
GX_NULL,
|
|
|
|
GX_ANIMATION_TRANSLATE|GX_ANIMATION_EXPO_EASE_OUT, 0, 0, 1,
|
|
|
|
{0, 0}, {0, 0}, 20, 255, 20
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GX_ANIMATION_INFO about_win_animation_2 = {
|
|
|
|
(GX_WIDGET *) &about_win,
|
|
|
|
(GX_WIDGET *) &display_1_root_window,
|
|
|
|
GX_NULL,
|
|
|
|
GX_ANIMATION_TRANSLATE|GX_ANIMATION_DETACH|GX_ANIMATION_CUBIC_EASE_IN, ANIMATION_ABOUT_FADE_OUT, 0, 1,
|
|
|
|
{115, 132}, {115, 132}, 255, 20, 20
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GX_STUDIO_ACTION about_win__idb_close_gx_event_clicked_actions[3] = {
|
|
|
|
{GX_ACTION_TYPE_ANIMATION, 0, &display_1_root_window, &background_win, &about_win_animation_1},
|
|
|
|
{GX_ACTION_TYPE_ANIMATION, 0, &display_1_root_window, &about_win, &about_win_animation_2},
|
|
|
|
{0, 0, GX_NULL, GX_NULL, GX_NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static GX_STUDIO_EVENT_ENTRY gx_studio_about_win_event_table[] = {
|
|
|
|
{GX_SIGNAL(IDB_CLOSE, GX_EVENT_CLICKED), 0, about_win__idb_close_gx_event_clicked_actions},
|
|
|
|
{0, 0, GX_NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
GX_STUDIO_EVENT_PROCESS about_win_event_chain = {gx_studio_about_win_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
|
|
|
|
static UINT gx_studio_about_win_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
|
|
|
|
{
|
|
|
|
return (gx_studio_auto_event_handler(target, event_ptr, &about_win_event_chain));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GX_CONST GX_STUDIO_WIDGET about_win_define =
|
|
|
|
{
|
|
|
|
"about_win",
|
|
|
|
GX_TYPE_WINDOW, /* widget type */
|
|
|
|
GX_ID_NONE, /* widget id */
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
0, /* user data */
|
|
|
|
#endif
|
|
|
|
GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT, /* style flags */
|
|
|
|
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
|
|
|
|
sizeof(ABOUT_WIN_CONTROL_BLOCK), /* control block size */
|
|
|
|
GX_COLOR_ID_BLACK, /* normal color id */
|
|
|
|
GX_COLOR_ID_BLACK, /* selected color id */
|
|
|
|
GX_COLOR_ID_BLACK, /* disabled color id */
|
|
|
|
gx_studio_window_create, /* create function */
|
|
|
|
GX_NULL, /* drawing function override */
|
|
|
|
(UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_about_win_event_process, /* event function override */
|
|
|
|
{114, 131, 533, 402}, /* widget size */
|
|
|
|
GX_NULL, /* next widget */
|
|
|
|
&about_win_close_button_define, /* child widget */
|
|
|
|
0, /* control block */
|
|
|
|
(void *) &about_win_properties /* extended properties */
|
|
|
|
};
|
|
|
|
GX_CONST GX_STUDIO_WIDGET_ENTRY demo_guix_transitions_widget_table[] =
|
|
|
|
{
|
|
|
|
{ &photo_3_define, (GX_WIDGET *) &photo_3 },
|
|
|
|
{ &photo_2_define, (GX_WIDGET *) &photo_2 },
|
|
|
|
{ &photo_1_define, (GX_WIDGET *) &photo_1 },
|
|
|
|
{ &settings_win_define, (GX_WIDGET *) &settings_win },
|
|
|
|
{ &background_win_define, (GX_WIDGET *) &background_win },
|
|
|
|
{ &about_win_define, (GX_WIDGET *) &about_win },
|
|
|
|
{GX_NULL, GX_NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
|
|
|
|
{
|
|
|
|
UINT status = GX_SUCCESS;
|
|
|
|
GX_WIDGET *widget = GX_NULL;
|
|
|
|
GX_VALUE list_count = 0;
|
|
|
|
GX_VALUE list_total_count = 0;
|
|
|
|
|
|
|
|
if(parent && (parent->gx_widget_type == GX_TYPE_MENU))
|
|
|
|
{
|
|
|
|
list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count;
|
|
|
|
}
|
|
|
|
|
|
|
|
while(definition && status == GX_SUCCESS)
|
|
|
|
{
|
|
|
|
if (definition->create_function)
|
|
|
|
{
|
|
|
|
if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
|
|
|
|
{
|
|
|
|
status = gx_widget_allocate(&widget, definition->control_block_size);
|
|
|
|
if (status != GX_SUCCESS)
|
|
|
|
{
|
|
|
|
return GX_NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (control == GX_NULL)
|
|
|
|
{
|
|
|
|
return GX_NULL;
|
|
|
|
}
|
|
|
|
widget = (GX_WIDGET *) (control + definition->control_block_offset);
|
|
|
|
}
|
|
|
|
|
|
|
|
status = definition->create_function(definition, widget, parent);
|
|
|
|
|
|
|
|
if(list_count < list_total_count)
|
|
|
|
{
|
|
|
|
gx_menu_insert((GX_MENU *)parent, widget);
|
|
|
|
((GX_MENU *)parent)->gx_menu_list_total_count--;
|
|
|
|
list_count++;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (status == GX_SUCCESS)
|
|
|
|
{
|
|
|
|
if (definition->widget_type != GX_TYPE_TEMPLATE)
|
|
|
|
{
|
|
|
|
#if defined(GUIX_5_4_0_COMPATIBILITY)
|
|
|
|
gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id);
|
|
|
|
#else
|
|
|
|
gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS))
|
|
|
|
{
|
|
|
|
gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (definition->draw_function)
|
|
|
|
{
|
|
|
|
gx_widget_draw_set(widget, definition->draw_function);
|
|
|
|
}
|
|
|
|
if (definition->event_function)
|
|
|
|
{
|
|
|
|
gx_widget_event_process_set(widget, definition->event_function);
|
|
|
|
}
|
|
|
|
|
|
|
|
#if defined(GX_WIDGET_USER_DATA)
|
|
|
|
widget->gx_widget_user_data = definition->user_data;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if (definition->child_widget)
|
|
|
|
{
|
|
|
|
gx_studio_nested_widget_create(control, definition->child_widget, widget);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
definition = definition->next_widget;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return widget;
|
|
|
|
}
|
|
|
|
|
|
|
|
GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
|
|
|
|
{
|
|
|
|
GX_WIDGET *widget;
|
|
|
|
widget = gx_studio_nested_widget_create(control, definition, GX_NULL);
|
|
|
|
|
|
|
|
if (parent && widget)
|
|
|
|
{
|
|
|
|
gx_widget_attach(parent, widget);
|
|
|
|
}
|
|
|
|
return widget;
|
|
|
|
}
|
|
|
|
|
|
|
|
UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget)
|
|
|
|
{
|
|
|
|
UINT status = GX_FAILURE;
|
|
|
|
GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = demo_guix_transitions_widget_table;
|
|
|
|
GX_WIDGET *widget = GX_NULL;
|
|
|
|
|
|
|
|
while(entry->widget_information)
|
|
|
|
{
|
|
|
|
if (!strcmp(name, entry->widget_information->widget_name))
|
|
|
|
{
|
|
|
|
widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent);
|
|
|
|
if (widget)
|
|
|
|
{
|
|
|
|
status = GX_SUCCESS;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
entry++;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (new_widget)
|
|
|
|
{
|
|
|
|
*new_widget = widget;
|
|
|
|
}
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *),
|
|
|
|
GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root)
|
|
|
|
{
|
|
|
|
GX_CONST GX_THEME *theme_ptr;
|
|
|
|
GX_RECTANGLE size;
|
|
|
|
|
|
|
|
GX_STUDIO_DISPLAY_INFO *display_info = &demo_guix_transitions_display_table[display];
|
|
|
|
|
|
|
|
|
|
|
|
/* create the requested display */
|
|
|
|
|
|
|
|
gx_display_create(display_info->display,
|
|
|
|
display_info->name,
|
|
|
|
driver,
|
|
|
|
(GX_VALUE) display_info->x_resolution,
|
|
|
|
(GX_VALUE) display_info->y_resolution);
|
|
|
|
|
|
|
|
|
|
|
|
/* install the request theme */
|
|
|
|
|
|
|
|
if(display_info->theme_table)
|
|
|
|
{
|
|
|
|
theme_ptr = display_info->theme_table[theme];
|
|
|
|
if(theme_ptr)
|
|
|
|
{
|
|
|
|
gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size);
|
|
|
|
|
|
|
|
/* install the color palette if required */
|
|
|
|
if (display_info->display->gx_display_driver_palette_set &&
|
|
|
|
theme_ptr->theme_palette != NULL)
|
|
|
|
{
|
|
|
|
display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size);
|
|
|
|
}
|
|
|
|
|
|
|
|
gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size);
|
|
|
|
gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size);
|
|
|
|
gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance);
|
|
|
|
gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-13 06:50:21 +00:00
|
|
|
/* Install the language table. */
|
|
|
|
|
|
|
|
if(display_info->language_table)
|
|
|
|
{
|
|
|
|
gx_display_language_table_set_ext(display_info->display, display_info->language_table, (GX_UBYTE) display_info->language_table_size, display_info->string_table_size);
|
|
|
|
gx_display_active_language_set(display_info->display, language);
|
|
|
|
}
|
|
|
|
|
2021-04-03 01:05:26 +00:00
|
|
|
/* Set screen rotation angle. */
|
|
|
|
|
|
|
|
display_info->display->gx_display_rotation_angle = display_info->rotation_angle;
|
|
|
|
|
|
|
|
/* create the canvas for this display */
|
|
|
|
|
|
|
|
gx_canvas_create(display_info->canvas,
|
|
|
|
display_info->canvas_name,
|
|
|
|
display_info->display,
|
|
|
|
GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE,
|
|
|
|
display_info->x_resolution,
|
|
|
|
display_info->y_resolution,
|
|
|
|
display_info->canvas_memory,
|
|
|
|
display_info->canvas_memory_size);
|
|
|
|
|
|
|
|
/* Create the root window for this canvas */
|
|
|
|
|
|
|
|
gx_utility_rectangle_define(&size,
|
|
|
|
0, 0,
|
|
|
|
(GX_VALUE) (display_info->x_resolution - 1),
|
|
|
|
(GX_VALUE) (display_info->y_resolution - 1));
|
|
|
|
|
|
|
|
gx_window_root_create(display_info->root_window,
|
|
|
|
display_info->name,
|
|
|
|
display_info->canvas, GX_STYLE_NONE, 0, &size);
|
|
|
|
if (return_root)
|
|
|
|
{
|
|
|
|
*return_root = display_info->root_window;
|
|
|
|
}
|
|
|
|
return GX_SUCCESS;
|
|
|
|
}
|
|
|
|
#undef GUIX_STUDIO_GENERATED_FILE
|