Home
last modified time | relevance | path

Searched refs:tree (Results 1 – 23 of 23) sorted by relevance

/GUIX-v6.2.1/common/src/
Dgx_tree_view_create.c80 UINT _gx_tree_view_create(GX_TREE_VIEW *tree, GX_CONST GX_CHAR *name, GX_WIDGET *parent, in _gx_tree_view_create() argument
85 _gx_window_create((GX_WINDOW *)tree, name, GX_NULL, style, tree_menu_id, size); in _gx_tree_view_create()
88 tree -> gx_widget_type = GX_TYPE_TREE_VIEW; in _gx_tree_view_create()
89tree -> gx_widget_event_process_function = (UINT (*)(GX_WIDGET *, GX_EVENT *))_gx_tree_view_event_… in _gx_tree_view_create()
90 tree -> gx_widget_draw_function = (VOID (*)(GX_WIDGET *))_gx_tree_view_draw; in _gx_tree_view_create()
91tree -> gx_window_scroll_info_get = (VOID (*)(struct GX_WINDOW_STRUCT *, ULONG, GX_SCROLL_INFO *))… in _gx_tree_view_create()
92 tree -> gx_tree_view_collapse_pixelmap_id = 0; in _gx_tree_view_create()
93 tree -> gx_tree_view_expand_pixelmap_id = 0; in _gx_tree_view_create()
94 tree -> gx_tree_view_root_line_color = GX_COLOR_ID_SHADOW; in _gx_tree_view_create()
95 tree -> gx_tree_view_indentation = 22; in _gx_tree_view_create()
[all …]
Dgx_tree_view_scroll.c81 UINT _gx_tree_view_scroll(GX_TREE_VIEW *tree, GX_VALUE x_scroll, GX_VALUE y_scroll) in _gx_tree_view_scroll() argument
87 block = tree -> gx_window_client; in _gx_tree_view_scroll()
89 if (!(tree -> gx_widget_style & GX_STYLE_TRANSPARENT) && in _gx_tree_view_scroll()
90 (tree -> gx_widget_style & GX_STYLE_BORDER_THIN)) in _gx_tree_view_scroll()
94 _gx_system_dirty_partial_add((GX_WIDGET *)tree, &block); in _gx_tree_view_scroll()
96 block = tree -> gx_window_client; in _gx_tree_view_scroll()
98 _gx_system_dirty_partial_add((GX_WIDGET *)tree, &block); in _gx_tree_view_scroll()
100 block = tree -> gx_window_client; in _gx_tree_view_scroll()
106 tree -> gx_tree_view_x_shift = (GX_VALUE)(tree -> gx_tree_view_x_shift + x_scroll); in _gx_tree_view_scroll()
107 tree -> gx_tree_view_y_shift = (GX_VALUE)(tree -> gx_tree_view_y_shift + y_scroll); in _gx_tree_view_scroll()
[all …]
Dgx_tree_view_selected_set.c73 static UINT _gx_tree_view_selected_visible(GX_TREE_VIEW *tree) in _gx_tree_view_selected_visible() argument
76 GX_WIDGET *selected = tree -> gx_tree_view_selected; in _gx_tree_view_selected_visible()
80 while (parent != (GX_WIDGET *)tree) in _gx_tree_view_selected_visible()
94 _gx_tree_view_position(tree); in _gx_tree_view_selected_visible()
144 UINT _gx_tree_view_selected_set(GX_TREE_VIEW *tree, GX_WIDGET *selected) in _gx_tree_view_selected_set() argument
146 if (tree -> gx_tree_view_selected == selected) in _gx_tree_view_selected_set()
151 if (tree -> gx_tree_view_selected) in _gx_tree_view_selected_set()
153 tree -> gx_tree_view_selected -> gx_widget_style &= ~GX_STYLE_DRAW_SELECTED; in _gx_tree_view_selected_set()
154 _gx_system_dirty_mark(tree -> gx_tree_view_selected); in _gx_tree_view_selected_set()
159 tree -> gx_tree_view_selected = selected; in _gx_tree_view_selected_set()
[all …]
Dgx_tree_view_event_process.c76 static GX_BOOL _tree_view_selected_detect(GX_TREE_VIEW *tree, GX_MENU *test_menu) in _tree_view_selected_detect() argument
82 if (!tree -> gx_tree_view_selected) in _tree_view_selected_detect()
90 if (child == tree -> gx_tree_view_selected) in _tree_view_selected_detect()
98 found = _tree_view_selected_detect(tree, (GX_MENU *)child); in _tree_view_selected_detect()
285 static UINT _gx_tree_view_root_icon_rect_get(GX_TREE_VIEW *tree, GX_WIDGET *item, GX_RECTANGLE *roo… in _gx_tree_view_root_icon_rect_get() argument
289 _gx_widget_pixelmap_get((GX_WIDGET *)tree, tree -> gx_tree_view_expand_pixelmap_id, &map); in _gx_tree_view_root_icon_rect_get()
293 …x_rectangle_left = (GX_VALUE)(item -> gx_widget_size.gx_rectangle_left - (tree -> gx_tree_view_ind… in _gx_tree_view_root_icon_rect_get()
365 static VOID _gx_tree_menu_pen_down_event_process(GX_TREE_VIEW *tree, GX_EVENT *event_ptr) in _gx_tree_menu_pen_down_event_process() argument
367 GX_WIDGET *widget = (GX_WIDGET *)tree; in _gx_tree_menu_pen_down_event_process()
376 _gx_tree_view_item_find((GX_WIDGET *)tree, point -> gx_point_y, &child); in _gx_tree_menu_pen_down_event_process()
[all …]
Dgx_tree_view_position.c84 UINT _gx_tree_view_position(GX_TREE_VIEW *tree) in _gx_tree_view_position() argument
96 client = &tree -> gx_window_client; in _gx_tree_view_position()
98 …ectangle_left = (GX_VALUE)(client -> gx_rectangle_left + tree -> gx_tree_view_indentation + tree -… in _gx_tree_view_position()
99 bottom = (GX_VALUE)(client -> gx_rectangle_top - 1 + tree -> gx_tree_view_y_shift); in _gx_tree_view_position()
101 child = _gx_widget_first_client_child_get((GX_WIDGET *)tree); in _gx_tree_view_position()
122 _gx_menu_position((GX_MENU *)child, tree -> gx_tree_view_indentation); in _gx_tree_view_position()
159tree -> gx_tree_view_tree_width = (GX_VALUE)(max_right - (client -> gx_rectangle_left + tree -> gx… in _gx_tree_view_position()
160tree -> gx_tree_view_tree_height = (GX_VALUE)(bottom - (client -> gx_rectangle_top + tree -> gx_tr… in _gx_tree_view_position()
162 _gx_window_scrollbar_find((GX_WINDOW *)tree, (USHORT)GX_TYPE_HORIZONTAL_SCROLL, &scroll); in _gx_tree_view_position()
171 if (tree -> gx_tree_view_tree_width <= width) in _gx_tree_view_position()
[all …]
Dgx_tree_view_scroll_info_get.c74 UINT _gx_tree_view_scroll_info_get(GX_TREE_VIEW *tree, ULONG type, GX_SCROLL_INFO *info) in _gx_tree_view_scroll_info_get() argument
80 client = &tree -> gx_window_client; in _gx_tree_view_scroll_info_get()
85 … info -> gx_scroll_maximum = info -> gx_scroll_minimum + tree -> gx_tree_view_tree_height - 1; in _gx_tree_view_scroll_info_get()
88 if (tree -> gx_tree_view_tree_height < info -> gx_scroll_visible) in _gx_tree_view_scroll_info_get()
93 shift = tree -> gx_tree_view_y_shift; in _gx_tree_view_scroll_info_get()
107 if (shift != tree -> gx_tree_view_y_shift) in _gx_tree_view_scroll_info_get()
109 _gx_tree_view_scroll(tree, 0, (GX_VALUE)(shift - tree->gx_tree_view_y_shift)); in _gx_tree_view_scroll_info_get()
117 info -> gx_scroll_maximum = info -> gx_scroll_minimum + tree -> gx_tree_view_tree_width - 1; in _gx_tree_view_scroll_info_get()
120 if (tree -> gx_tree_view_tree_width < info -> gx_scroll_visible) in _gx_tree_view_scroll_info_get()
125 shift = tree -> gx_tree_view_x_shift; in _gx_tree_view_scroll_info_get()
[all …]
Dgx_tree_view_indentation_set.c72 UINT _gx_tree_view_indentation_set(GX_TREE_VIEW *tree, GX_VALUE indentation) in _gx_tree_view_indentation_set() argument
74 tree -> gx_tree_view_indentation = indentation; in _gx_tree_view_indentation_set()
76 if (tree -> gx_widget_status & GX_STATUS_VISIBLE) in _gx_tree_view_indentation_set()
79 _gx_tree_view_position(tree); in _gx_tree_view_indentation_set()
81 _gx_system_dirty_mark((GX_WIDGET *)tree); in _gx_tree_view_indentation_set()
Dgx_tree_view_root_pixelmap_set.c74 UINT _gx_tree_view_root_pixelmap_set(GX_TREE_VIEW *tree, GX_RESOURCE_ID expand_map_id, GX_RESOURCE… in _gx_tree_view_root_pixelmap_set() argument
76 tree -> gx_tree_view_expand_pixelmap_id = expand_map_id; in _gx_tree_view_root_pixelmap_set()
77 tree -> gx_tree_view_collapse_pixelmap_id = collapse_map_id; in _gx_tree_view_root_pixelmap_set()
79 if (tree -> gx_widget_status & GX_STATUS_VISIBLE) in _gx_tree_view_root_pixelmap_set()
81 _gx_system_dirty_mark((GX_WIDGET *)tree); in _gx_tree_view_root_pixelmap_set()
Dgx_tree_view_root_line_color_set.c72 UINT _gx_tree_view_root_line_color_set(GX_TREE_VIEW *tree, GX_RESOURCE_ID color_id) in _gx_tree_view_root_line_color_set() argument
74 tree -> gx_tree_view_root_line_color = color_id; in _gx_tree_view_root_line_color_set()
76 if (tree -> gx_widget_status & GX_STATUS_VISIBLE) in _gx_tree_view_root_line_color_set()
78 _gx_system_dirty_mark((GX_WIDGET *)tree); in _gx_tree_view_root_line_color_set()
Dgxe_tree_view_position.c74 UINT _gxe_tree_view_position(GX_TREE_VIEW *tree) in _gxe_tree_view_position() argument
82 if (!tree) in _gxe_tree_view_position()
88 if (tree -> gx_widget_type == 0) in _gxe_tree_view_position()
94 status = _gx_tree_view_position(tree); in _gxe_tree_view_position()
Dgxe_tree_view_selected_get.c73 UINT _gxe_tree_view_selected_get(GX_TREE_VIEW *tree, GX_WIDGET **selected) in _gxe_tree_view_selected_get() argument
78 if ((!tree) || (!selected)) in _gxe_tree_view_selected_get()
84 if (tree -> gx_widget_type == 0) in _gxe_tree_view_selected_get()
90 status = _gx_tree_view_selected_get(tree, selected); in _gxe_tree_view_selected_get()
Dgxe_tree_view_indentation_set.c76 UINT _gxe_tree_view_indentation_set(GX_TREE_VIEW *tree, GX_VALUE indentation) in _gxe_tree_view_indentation_set() argument
84 if (!tree) in _gxe_tree_view_indentation_set()
90 if (tree -> gx_widget_type == 0) in _gxe_tree_view_indentation_set()
96 status = _gx_tree_view_indentation_set(tree, indentation); in _gxe_tree_view_indentation_set()
Dgxe_tree_view_root_line_color_set.c76 UINT _gxe_tree_view_root_line_color_set(GX_TREE_VIEW *tree, GX_RESOURCE_ID color) in _gxe_tree_view_root_line_color_set() argument
84 if (!tree) in _gxe_tree_view_root_line_color_set()
90 if (tree -> gx_widget_type == 0) in _gxe_tree_view_root_line_color_set()
96 status = _gx_tree_view_root_line_color_set(tree, color); in _gxe_tree_view_root_line_color_set()
Dgxe_tree_view_event_process.c76 UINT _gxe_tree_view_event_process(GX_TREE_VIEW *tree, GX_EVENT *event_ptr) in _gxe_tree_view_event_process() argument
84 if ((!tree) || (!event_ptr)) in _gxe_tree_view_event_process()
90 if (tree -> gx_widget_type == 0) in _gxe_tree_view_event_process()
96 status = _gx_tree_view_event_process(tree, event_ptr); in _gxe_tree_view_event_process()
Dgxe_tree_view_selected_set.c76 UINT _gxe_tree_view_selected_set(GX_TREE_VIEW *tree, GX_WIDGET *selected) in _gxe_tree_view_selected_set() argument
84 if ((!tree) || (!selected)) in _gxe_tree_view_selected_set()
90 if (tree -> gx_widget_type == 0) in _gxe_tree_view_selected_set()
96 status = _gx_tree_view_selected_set(tree, selected); in _gxe_tree_view_selected_set()
Dgxe_tree_view_root_pixelmap_set.c79 UINT _gxe_tree_view_root_pixelmap_set(GX_TREE_VIEW *tree, GX_RESOURCE_ID expand_map_id, GX_RESOURC… in _gxe_tree_view_root_pixelmap_set() argument
87 if (!tree) in _gxe_tree_view_root_pixelmap_set()
93 if (tree -> gx_widget_type == 0) in _gxe_tree_view_root_pixelmap_set()
99 status = _gx_tree_view_root_pixelmap_set(tree, expand_map_id, collapse_map_id); in _gxe_tree_view_root_pixelmap_set()
Dgx_tree_view_draw.c85 static VOID _gx_tree_view_root_draw_helper(GX_TREE_VIEW *tree, GX_WIDGET *start, GX_WIDGET *owner) in _gx_tree_view_root_draw_helper() argument
101 _gx_context_pixelmap_get(tree -> gx_tree_view_collapse_pixelmap_id, &collapse_map); in _gx_tree_view_root_draw_helper()
102 _gx_context_pixelmap_get(tree -> gx_tree_view_expand_pixelmap_id, &expand_map); in _gx_tree_view_root_draw_helper()
122 …xpos = (GX_VALUE)(child -> gx_widget_size.gx_rectangle_left - (tree -> gx_tree_view_indentation >>… in _gx_tree_view_root_draw_helper()
153 if (tree -> gx_widget_style & GX_STYLE_TREE_VIEW_SHOW_ROOT_LINES) in _gx_tree_view_root_draw_helper()
167 …xpos = (GX_VALUE)(child -> gx_widget_size.gx_rectangle_left - (tree -> gx_tree_view_indentation >>… in _gx_tree_view_root_draw_helper()
265 static VOID _gx_tree_view_root_draw(GX_TREE_VIEW *tree) in _gx_tree_view_root_draw() argument
270 GX_WIDGET *parent = (GX_WIDGET *)tree; in _gx_tree_view_root_draw()
307 _gx_tree_view_root_draw_helper(tree, child, owner); in _gx_tree_view_root_draw()
371 VOID _gx_tree_view_draw(GX_TREE_VIEW *tree) in _gx_tree_view_draw() argument
[all …]
Dgxe_tree_view_create.c81 UINT _gxe_tree_view_create(GX_TREE_VIEW *tree, GX_CONST GX_CHAR *name, GX_WIDGET *parent, in _gxe_tree_view_create() argument
90 if ((!tree) || (!size)) in _gxe_tree_view_create()
96 if (tree -> gx_widget_type != 0) in _gxe_tree_view_create()
114 status = _gx_tree_view_create(tree, name, parent, style, tree_id, size); in _gxe_tree_view_create()
Dgx_tree_view_selected_get.c72 UINT _gx_tree_view_selected_get(GX_TREE_VIEW *tree, GX_WIDGET **selected) in _gx_tree_view_selected_get() argument
74 *selected = tree -> gx_tree_view_selected; in _gx_tree_view_selected_get()
/GUIX-v6.2.1/common/inc/
Dgx_tree_view.h56 UINT _gx_tree_view_create(GX_TREE_VIEW *tree, GX_CONST GX_CHAR *name, GX_WIDGET *parent,
58 VOID _gx_tree_view_draw(GX_TREE_VIEW *tree);
59 UINT _gx_tree_view_event_process(GX_TREE_VIEW *tree, GX_EVENT *event_ptr);
60 UINT _gx_tree_view_indentation_set(GX_TREE_VIEW *tree, GX_VALUE indentation);
61 UINT _gx_tree_view_position(GX_TREE_VIEW *tree);
62 UINT _gx_tree_view_root_line_color_set(GX_TREE_VIEW *tree, GX_RESOURCE_ID color);
63 UINT _gx_tree_view_root_pixelmap_set(GX_TREE_VIEW *tree, GX_RESOURCE_ID expand_map_id, GX_RESOURCE_…
64 UINT _gx_tree_view_scroll(GX_TREE_VIEW *tree, GX_VALUE x_scroll, GX_VALUE y_scroll);
65 UINT _gx_tree_view_scroll_info_get(GX_TREE_VIEW *tree, ULONG type, GX_SCROLL_INFO *return_scroll_in…
66 UINT _gx_tree_view_selected_get(GX_TREE_VIEW *tree, GX_WIDGET **selected);
[all …]
Dgx_api.h4294 UINT _gx_tree_view_create(GX_TREE_VIEW *tree, GX_CONST GX_CHAR *name, GX_WIDGET *parent,
4296 VOID _gx_tree_view_draw(GX_TREE_VIEW *tree);
4297 UINT _gx_tree_view_event_process(GX_TREE_VIEW *tree, GX_EVENT *event_ptr);
4298 UINT _gx_tree_view_indentation_set(GX_TREE_VIEW *tree, GX_VALUE indentation);
4299 UINT _gx_tree_view_position(GX_TREE_VIEW *tree);
4300 UINT _gx_tree_view_root_line_color_set(GX_TREE_VIEW *tree, GX_RESOURCE_ID color);
4301 UINT _gx_tree_view_root_pixelmap_set(GX_TREE_VIEW *tree, GX_RESOURCE_ID expand_map_id, GX_RESOURCE_…
4302 UINT _gx_tree_view_selected_get(GX_TREE_VIEW *tree, GX_WIDGET **selected);
4303 UINT _gx_tree_view_selected_set(GX_TREE_VIEW *tree, GX_WIDGET *selected);
5767 UINT _gxe_tree_view_create(GX_TREE_VIEW *tree, GX_CONST GX_CHAR *name, GX_WIDGET *parent,
[all …]
/GUIX-v6.2.1/
DREADME.md121 …While the typical usage pattern is to include GUIX into your device code source tree to be built &…
/GUIX-v6.2.1/samples/demo_guix_widget_types/
Dguix_widget_types_specifications.c1018 GX_TREE_VIEW *tree = (GX_TREE_VIEW *) control_block; in gx_studio_tree_view_create() local
1020 status = gx_tree_view_create(tree, info->widget_name, parent, in gx_studio_tree_view_create()
1026 gx_tree_view_root_pixelmap_set(tree, props->expand_map_id, props->collapse_map_id); in gx_studio_tree_view_create()
1028 gx_tree_view_indentation_set(tree, props->indentation); in gx_studio_tree_view_create()
1029 gx_tree_view_root_line_color_set(tree, props->root_line_color_id); in gx_studio_tree_view_create()