Lines Matching refs:tree
76 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()
381 _gx_tree_view_root_icon_rect_get(tree, child, &root_rect); in _gx_tree_menu_pen_down_event_process()
389 if (_tree_view_selected_detect(tree, (GX_MENU *)child)) in _gx_tree_menu_pen_down_event_process()
391 _gx_tree_view_selected_set(tree, child); in _gx_tree_menu_pen_down_event_process()
399 _gx_tree_view_position(tree); in _gx_tree_menu_pen_down_event_process()
401 root_rect = tree -> gx_window_client; in _gx_tree_menu_pen_down_event_process()
402 if (!(tree -> gx_widget_style & GX_STYLE_TREE_VIEW_SHOW_ROOT_LINES)) in _gx_tree_menu_pen_down_event_process()
407 _gx_system_dirty_partial_add((GX_WIDGET *)tree, &root_rect); in _gx_tree_menu_pen_down_event_process()
422 child = _gx_system_top_widget_find((GX_WIDGET *)tree, *point, GX_STATUS_SELECTABLE); in _gx_tree_menu_pen_down_event_process()
429 _gx_tree_view_selected_set(tree, child); in _gx_tree_menu_pen_down_event_process()
481 UINT _gx_tree_view_event_process(GX_TREE_VIEW *tree, GX_EVENT *event_ptr) in _gx_tree_view_event_process() argument
486 _gx_window_event_process((GX_WINDOW *)tree, event_ptr); in _gx_tree_view_event_process()
487 … if (tree -> gx_widget_parent && (tree -> gx_widget_parent -> gx_widget_type != GX_TYPE_MENU_LIST)) in _gx_tree_view_event_process()
489 _gx_tree_view_position(tree); in _gx_tree_view_event_process()
494 _gx_tree_menu_pen_down_event_process(tree, event_ptr); in _gx_tree_view_event_process()
498 …_gx_tree_view_scroll(tree, 0, (GX_VALUE)(event_ptr -> gx_event_payload.gx_event_intdata[1] - event… in _gx_tree_view_event_process()
502 …_gx_tree_view_scroll(tree, (GX_VALUE)(event_ptr -> gx_event_payload.gx_event_intdata[1] - event_pt… in _gx_tree_view_event_process()
506 return _gx_window_event_process((GX_WINDOW *)tree, event_ptr); in _gx_tree_view_event_process()