Lines Matching refs:widget
208 struct widget *widget; member
284 struct widget *confined_widget;
291 struct widget { struct
330 struct widget *widget; argument
360 struct widget *focus_widget;
361 struct widget *grab;
413 struct widget *widget; member
414 struct widget *child;
425 struct widget *widget; member
437 struct widget *parent;
438 struct widget *widget; member
1393 struct widget *widget = surface->widget; in surface_flush() local
1413 widget->viewport_dest_width, in surface_flush()
1414 widget->viewport_dest_height); in surface_flush()
1615 static struct widget *
1616 widget_find_widget(struct widget *widget, int32_t x, int32_t y) in widget_find_widget() argument
1618 struct widget *child, *target; in widget_find_widget()
1622 wl_list_for_each(child, &widget->child_list, link) { in widget_find_widget()
1628 alloc_x = widget->allocation.x; in widget_find_widget()
1629 alloc_y = widget->allocation.y; in widget_find_widget()
1630 width = widget->allocation.width; in widget_find_widget()
1631 height = widget->allocation.height; in widget_find_widget()
1633 if (widget->viewport_dest_width != -1 && in widget_find_widget()
1634 widget->viewport_dest_height != -1) { in widget_find_widget()
1635 scale = widget->viewport_dest_width / (double) width; in widget_find_widget()
1637 width = widget->viewport_dest_width; in widget_find_widget()
1639 scale = widget->viewport_dest_height / (double) height; in widget_find_widget()
1641 height = widget->viewport_dest_height; in widget_find_widget()
1646 return widget; in widget_find_widget()
1652 static struct widget *
1656 struct widget *widget; in window_find_widget() local
1659 widget = widget_find_widget(surface->widget, x, y); in window_find_widget()
1660 if (widget) in window_find_widget()
1661 return widget; in window_find_widget()
1667 static struct widget *
1670 struct widget *widget; in widget_create() local
1672 widget = xzalloc(sizeof *widget); in widget_create()
1673 widget->window = window; in widget_create()
1674 widget->surface = surface; in widget_create()
1675 widget->user_data = data; in widget_create()
1676 widget->allocation = surface->allocation; in widget_create()
1677 wl_list_init(&widget->child_list); in widget_create()
1678 widget->opaque = 0; in widget_create()
1679 widget->tooltip = NULL; in widget_create()
1680 widget->tooltip_count = 0; in widget_create()
1681 widget->default_cursor = CURSOR_LEFT_PTR; in widget_create()
1682 widget->use_cairo = 1; in widget_create()
1683 widget->viewport_dest_width = -1; in widget_create()
1684 widget->viewport_dest_height = -1; in widget_create()
1686 return widget; in widget_create()
1689 struct widget *
1692 struct widget *widget; in window_add_widget() local
1694 widget = widget_create(window, window->main_surface, data); in window_add_widget()
1695 wl_list_init(&widget->link); in window_add_widget()
1696 window->main_surface->widget = widget; in window_add_widget()
1698 return widget; in window_add_widget()
1701 struct widget *
1702 widget_add_widget(struct widget *parent, void *data) in widget_add_widget()
1704 struct widget *widget; in widget_add_widget() local
1706 widget = widget_create(parent->window, parent->surface, data); in widget_add_widget()
1707 wl_list_insert(parent->child_list.prev, &widget->link); in widget_add_widget()
1709 return widget; in widget_add_widget()
1713 widget_destroy(struct widget *widget) in widget_destroy() argument
1715 struct display *display = widget->window->display; in widget_destroy()
1716 struct surface *surface = widget->surface; in widget_destroy()
1720 if (surface->widget == widget && surface->subsurface) in widget_destroy()
1721 surface_destroy(widget->surface); in widget_destroy()
1723 if (widget->tooltip) in widget_destroy()
1724 widget_destroy_tooltip(widget); in widget_destroy()
1727 if (input->focus_widget == widget) in widget_destroy()
1731 wl_list_remove(&widget->link); in widget_destroy()
1732 free(widget); in widget_destroy()
1736 widget_set_default_cursor(struct widget *widget, int cursor) in widget_set_default_cursor() argument
1738 widget->default_cursor = cursor; in widget_set_default_cursor()
1742 widget_get_allocation(struct widget *widget, struct rectangle *allocation) in widget_get_allocation() argument
1744 *allocation = widget->allocation; in widget_get_allocation()
1748 widget_set_size(struct widget *widget, int32_t width, int32_t height) in widget_set_size() argument
1750 widget->allocation.width = width; in widget_set_size()
1751 widget->allocation.height = height; in widget_set_size()
1755 widget_set_allocation(struct widget *widget, in widget_set_allocation() argument
1758 widget->allocation.x = x; in widget_set_allocation()
1759 widget->allocation.y = y; in widget_set_allocation()
1760 widget_set_size(widget, width, height); in widget_set_allocation()
1764 widget_set_transparent(struct widget *widget, int transparent) in widget_set_transparent() argument
1766 widget->opaque = !transparent; in widget_set_transparent()
1770 widget_get_user_data(struct widget *widget) in widget_get_user_data() argument
1772 return widget->user_data; in widget_get_user_data()
1776 widget_get_cairo_surface(struct widget *widget) in widget_get_cairo_surface() argument
1778 struct surface *surface = widget->surface; in widget_get_cairo_surface()
1779 struct window *window = widget->window; in widget_get_cairo_surface()
1781 assert(widget->use_cairo); in widget_get_cairo_surface()
1794 widget_cairo_update_transform(struct widget *widget, cairo_t *cr) in widget_cairo_update_transform() argument
1796 struct surface *surface = widget->surface; in widget_cairo_update_transform()
1873 widget_cairo_create(struct widget *widget) in widget_cairo_create() argument
1875 struct surface *surface = widget->surface; in widget_cairo_create()
1879 cairo_surface = widget_get_cairo_surface(widget); in widget_cairo_create()
1882 widget_cairo_update_transform(widget, cr); in widget_cairo_create()
1890 widget_get_wl_surface(struct widget *widget) in widget_get_wl_surface() argument
1892 return widget->surface->surface; in widget_get_wl_surface()
1896 widget_get_wl_subsurface(struct widget *widget) in widget_get_wl_subsurface() argument
1898 return widget->surface->subsurface; in widget_get_wl_subsurface()
1902 widget_get_last_time(struct widget *widget) in widget_get_last_time() argument
1904 return widget->surface->last_time; in widget_get_last_time()
1908 widget_input_region_add(struct widget *widget, const struct rectangle *rect) in widget_input_region_add() argument
1910 struct wl_compositor *comp = widget->window->display->compositor; in widget_input_region_add()
1911 struct surface *surface = widget->surface; in widget_input_region_add()
1923 widget_set_resize_handler(struct widget *widget, in widget_set_resize_handler() argument
1926 widget->resize_handler = handler; in widget_set_resize_handler()
1930 widget_set_redraw_handler(struct widget *widget, in widget_set_redraw_handler() argument
1933 widget->redraw_handler = handler; in widget_set_redraw_handler()
1937 widget_set_enter_handler(struct widget *widget, widget_enter_handler_t handler) in widget_set_enter_handler() argument
1939 widget->enter_handler = handler; in widget_set_enter_handler()
1943 widget_set_leave_handler(struct widget *widget, widget_leave_handler_t handler) in widget_set_leave_handler() argument
1945 widget->leave_handler = handler; in widget_set_leave_handler()
1949 widget_set_motion_handler(struct widget *widget, in widget_set_motion_handler() argument
1952 widget->motion_handler = handler; in widget_set_motion_handler()
1956 widget_set_button_handler(struct widget *widget, in widget_set_button_handler() argument
1959 widget->button_handler = handler; in widget_set_button_handler()
1963 widget_set_touch_up_handler(struct widget *widget, in widget_set_touch_up_handler() argument
1966 widget->touch_up_handler = handler; in widget_set_touch_up_handler()
1970 widget_set_touch_down_handler(struct widget *widget, in widget_set_touch_down_handler() argument
1973 widget->touch_down_handler = handler; in widget_set_touch_down_handler()
1977 widget_set_touch_motion_handler(struct widget *widget, in widget_set_touch_motion_handler() argument
1980 widget->touch_motion_handler = handler; in widget_set_touch_motion_handler()
1984 widget_set_touch_frame_handler(struct widget *widget, in widget_set_touch_frame_handler() argument
1987 widget->touch_frame_handler = handler; in widget_set_touch_frame_handler()
1991 widget_set_touch_cancel_handler(struct widget *widget, in widget_set_touch_cancel_handler() argument
1994 widget->touch_cancel_handler = handler; in widget_set_touch_cancel_handler()
1998 widget_set_axis_handler(struct widget *widget, in widget_set_axis_handler() argument
2001 widget->axis_handler = handler; in widget_set_axis_handler()
2005 widget_set_pointer_frame_handler(struct widget *widget, in widget_set_pointer_frame_handler() argument
2008 widget->pointer_frame_handler = handler; in widget_set_pointer_frame_handler()
2012 widget_set_axis_handlers(struct widget *widget, in widget_set_axis_handlers() argument
2018 widget->axis_handler = axis_handler; in widget_set_axis_handlers()
2019 widget->axis_source_handler = axis_source_handler; in widget_set_axis_handlers()
2020 widget->axis_stop_handler = axis_stop_handler; in widget_set_axis_handlers()
2021 widget->axis_discrete_handler = axis_discrete_handler; in widget_set_axis_handlers()
2028 widget_schedule_redraw(struct widget *widget) in widget_schedule_redraw() argument
2030 DBG_OBJ(widget->surface->surface, "widget %p\n", widget); in widget_schedule_redraw()
2031 widget->surface->redraw_needed = 1; in widget_schedule_redraw()
2032 window_schedule_redraw_task(widget->window); in widget_schedule_redraw()
2036 widget_set_use_cairo(struct widget *widget, in widget_set_use_cairo() argument
2039 widget->use_cairo = use_cairo; in widget_set_use_cairo()
2043 widget_set_viewport_destination(struct widget *widget, int width, int height) in widget_set_viewport_destination() argument
2045 struct window *window = widget->window; in widget_set_viewport_destination()
2047 struct surface *surface = widget->surface; in widget_set_viewport_destination()
2057 widget->viewport_dest_width = -1; in widget_set_viewport_destination()
2058 widget->viewport_dest_height = -1; in widget_set_viewport_destination()
2069 widget->viewport_dest_width = width; in widget_set_viewport_destination()
2070 widget->viewport_dest_height = height; in widget_set_viewport_destination()
2080 cairo_surface = widget_get_cairo_surface(window->main_surface->widget); in window_get_surface()
2092 tooltip_redraw_handler(struct widget *widget, void *data) in tooltip_redraw_handler() argument
2099 cr = widget_cairo_create(widget); in tooltip_redraw_handler()
2100 cairo_translate(cr, widget->allocation.x, widget->allocation.y); in tooltip_redraw_handler()
2105 width = widget->allocation.width; in tooltip_redraw_handler()
2106 height = widget->allocation.height; in tooltip_redraw_handler()
2141 struct widget *parent = tooltip->parent; in window_create_tooltip()
2147 if (tooltip->widget) in window_create_tooltip()
2150 tooltip->widget = window_add_subsurface(parent->window, tooltip, SUBSURFACE_DESYNCHRONIZED); in window_create_tooltip()
2153 widget_set_redraw_handler(tooltip->widget, tooltip_redraw_handler); in window_create_tooltip()
2154 widget_set_allocation(tooltip->widget, in window_create_tooltip()
2162 widget_destroy_tooltip(struct widget *parent) in widget_destroy_tooltip()
2170 if (tooltip->widget) { in widget_destroy_tooltip()
2171 widget_destroy(tooltip->widget); in widget_destroy_tooltip()
2172 tooltip->widget = NULL; in widget_destroy_tooltip()
2199 widget_set_tooltip(struct widget *parent, char *entry, float x, float y) in widget_set_tooltip()
2222 tooltip->widget = NULL; in widget_set_tooltip()
2234 frame_resize_handler(struct widget *widget, in frame_resize_handler() argument
2238 struct widget *child = frame->child; in frame_resize_handler()
2243 if (widget->window->fullscreen) { in frame_resize_handler()
2261 if (widget->window->fullscreen) { in frame_resize_handler()
2273 widget_set_allocation(widget, 0, 0, width, height); in frame_resize_handler()
2275 widget->surface->input_region = in frame_resize_handler()
2276 wl_compositor_create_region(widget->window->display->compositor); in frame_resize_handler()
2277 if (!widget->window->fullscreen) { in frame_resize_handler()
2280 wl_region_add(widget->surface->input_region, in frame_resize_handler()
2283 wl_region_add(widget->surface->input_region, 0, 0, width, height); in frame_resize_handler()
2286 widget_set_allocation(widget, 0, 0, width, height); in frame_resize_handler()
2289 if (!widget->window->fullscreen) { in frame_resize_handler()
2293 wl_region_add(widget->surface->opaque_region, in frame_resize_handler()
2297 wl_region_add(widget->surface->opaque_region, in frame_resize_handler()
2303 widget_schedule_redraw(widget); in frame_resize_handler()
2307 frame_redraw_handler(struct widget *widget, void *data) in frame_redraw_handler() argument
2311 struct window *window = widget->window; in frame_redraw_handler()
2316 cr = widget_cairo_create(widget); in frame_redraw_handler()
2327 struct window *window = frame->widget->window; in frame_get_pointer_image_for_location()
2396 frame_enter_handler(struct widget *widget, in frame_enter_handler() argument
2404 widget_schedule_redraw(frame->widget); in frame_enter_handler()
2410 frame_motion_handler(struct widget *widget, in frame_motion_handler() argument
2419 widget_schedule_redraw(frame->widget); in frame_motion_handler()
2425 frame_leave_handler(struct widget *widget, in frame_leave_handler() argument
2432 widget_schedule_redraw(frame->widget); in frame_leave_handler()
2439 struct window *window = frame->widget->window; in frame_handle_status()
2444 widget_schedule_redraw(frame->widget); in frame_handle_status()
2489 frame_button_handler(struct widget *widget, in frame_button_handler() argument
2523 frame_touch_down_handler(struct widget *widget, struct input *input, in frame_touch_down_handler() argument
2550 frame_touch_up_handler(struct widget *widget, in frame_touch_up_handler() argument
2565 struct widget *
2585 frame->widget = window_add_widget(window, frame); in window_frame_create()
2586 frame->child = widget_add_widget(frame->widget, data); in window_frame_create()
2588 widget_set_redraw_handler(frame->widget, frame_redraw_handler); in window_frame_create()
2589 widget_set_resize_handler(frame->widget, frame_resize_handler); in window_frame_create()
2590 widget_set_enter_handler(frame->widget, frame_enter_handler); in window_frame_create()
2591 widget_set_leave_handler(frame->widget, frame_leave_handler); in window_frame_create()
2592 widget_set_motion_handler(frame->widget, frame_motion_handler); in window_frame_create()
2593 widget_set_button_handler(frame->widget, frame_button_handler); in window_frame_create()
2594 widget_set_touch_down_handler(frame->widget, frame_touch_down_handler); in window_frame_create()
2595 widget_set_touch_up_handler(frame->widget, frame_touch_up_handler); in window_frame_create()
2603 window_frame_set_child_size(struct widget *widget, int child_width, in window_frame_set_child_size() argument
2606 struct display *display = widget->window->display; in window_frame_set_child_size()
2610 int margin = widget->window->maximized ? 0 : t->margin; in window_frame_set_child_size()
2612 if (!widget->window->fullscreen) { in window_frame_set_child_size()
2624 window_schedule_resize(widget->window, width, height); in window_frame_set_child_size()
2633 widget_destroy(frame->widget); in window_frame_destroy()
2638 input_set_focus_widget(struct input *input, struct widget *focus, in input_set_focus_widget()
2641 struct widget *old, *widget; in input_set_focus_widget() local
2649 widget = old; in input_set_focus_widget()
2651 widget = input->grab; in input_set_focus_widget()
2652 if (widget->leave_handler) in input_set_focus_widget()
2653 widget->leave_handler(old, input, widget->user_data); in input_set_focus_widget()
2658 widget = focus; in input_set_focus_widget()
2660 widget = input->grab; in input_set_focus_widget()
2662 if (widget->enter_handler) in input_set_focus_widget()
2663 cursor = widget->enter_handler(focus, input, x, y, in input_set_focus_widget()
2664 widget->user_data); in input_set_focus_widget()
2666 cursor = widget->default_cursor; in input_set_focus_widget()
2698 input_grab(struct input *input, struct widget *widget, uint32_t button) in input_grab() argument
2700 input->grab = widget; in input_grab()
2703 input_set_focus_widget(input, widget, input->sx, input->sy); in input_grab()
2709 struct widget *widget; in input_ungrab() local
2713 widget = window_find_widget(input->pointer_focus, in input_ungrab()
2715 input_set_focus_widget(input, widget, input->sx, input->sy); in input_ungrab()
2758 struct widget *widget; in pointer_handle_enter() local
2780 widget = window_find_widget(window, sx, sy); in pointer_handle_enter()
2781 input_set_focus_widget(input, widget, sx, sy); in pointer_handle_enter()
2800 struct widget *widget; in pointer_handle_motion() local
2823 widget = window_find_widget(window, sx, sy); in pointer_handle_motion()
2824 input_set_focus_widget(input, widget, sx, sy); in pointer_handle_motion()
2828 widget = input->grab; in pointer_handle_motion()
2830 widget = input->focus_widget; in pointer_handle_motion()
2831 if (widget) { in pointer_handle_motion()
2832 if (widget->motion_handler) in pointer_handle_motion()
2833 cursor = widget->motion_handler(input->focus_widget, in pointer_handle_motion()
2835 widget->user_data); in pointer_handle_motion()
2837 cursor = widget->default_cursor; in pointer_handle_motion()
2849 struct widget *widget; in pointer_handle_button() local
2857 widget = input->grab; in pointer_handle_button()
2858 if (widget && widget->button_handler) in pointer_handle_button()
2859 (*widget->button_handler)(widget, in pointer_handle_button()
2874 struct widget *widget; in pointer_handle_axis() local
2876 widget = input->focus_widget; in pointer_handle_axis()
2878 widget = input->grab; in pointer_handle_axis()
2879 if (widget && widget->axis_handler) in pointer_handle_axis()
2880 (*widget->axis_handler)(widget, in pointer_handle_axis()
2883 widget->user_data); in pointer_handle_axis()
2890 struct widget *widget; in pointer_handle_frame() local
2892 widget = input->focus_widget; in pointer_handle_frame()
2894 widget = input->grab; in pointer_handle_frame()
2895 if (widget && widget->pointer_frame_handler) in pointer_handle_frame()
2896 (*widget->pointer_frame_handler)(widget, in pointer_handle_frame()
2898 widget->user_data); in pointer_handle_frame()
2906 struct widget *widget; in pointer_handle_axis_source() local
2908 widget = input->focus_widget; in pointer_handle_axis_source()
2910 widget = input->grab; in pointer_handle_axis_source()
2911 if (widget && widget->axis_source_handler) in pointer_handle_axis_source()
2912 (*widget->axis_source_handler)(widget, in pointer_handle_axis_source()
2915 widget->user_data); in pointer_handle_axis_source()
2923 struct widget *widget; in pointer_handle_axis_stop() local
2925 widget = input->focus_widget; in pointer_handle_axis_stop()
2927 widget = input->grab; in pointer_handle_axis_stop()
2928 if (widget && widget->axis_stop_handler) in pointer_handle_axis_stop()
2929 (*widget->axis_stop_handler)(widget, in pointer_handle_axis_stop()
2932 widget->user_data); in pointer_handle_axis_stop()
2940 struct widget *widget; in pointer_handle_axis_discrete() local
2942 widget = input->focus_widget; in pointer_handle_axis_discrete()
2944 widget = input->grab; in pointer_handle_axis_discrete()
2945 if (widget && widget->axis_discrete_handler) in pointer_handle_axis_discrete()
2946 (*widget->axis_discrete_handler)(widget, in pointer_handle_axis_discrete()
2950 widget->user_data); in pointer_handle_axis_discrete()
3296 struct widget *widget; in touch_handle_down() local
3319 widget = input->grab; in touch_handle_down()
3321 widget = window_find_widget(input->touch_focus, in touch_handle_down()
3324 if (widget) { in touch_handle_down()
3328 tp->widget = widget; in touch_handle_down()
3333 if (widget->touch_down_handler) in touch_handle_down()
3334 (*widget->touch_down_handler)(widget, input, in touch_handle_down()
3337 widget->user_data); in touch_handle_down()
3358 if (tp->widget->touch_up_handler) in touch_handle_up()
3359 (*tp->widget->touch_up_handler)(tp->widget, input, serial, in touch_handle_up()
3361 tp->widget->user_data); in touch_handle_up()
3392 if (tp->widget->touch_motion_handler) in touch_handle_motion()
3393 (*tp->widget->touch_motion_handler)(tp->widget, input, time, in touch_handle_motion()
3395 tp->widget->user_data); in touch_handle_motion()
3414 if (tp->widget->touch_frame_handler) in touch_handle_frame()
3415 (*tp->widget->touch_frame_handler)(tp->widget, input, in touch_handle_frame()
3416 tp->widget->user_data); in touch_handle_frame()
3434 if (tp->widget->touch_cancel_handler) in touch_handle_cancel()
3435 (*tp->widget->touch_cancel_handler)(tp->widget, input, in touch_handle_cancel()
3436 tp->widget->user_data); in touch_handle_cancel()
3564 struct widget *
4136 struct widget *widget = surface->widget; in surface_resize() local
4137 struct wl_compositor *compositor = widget->window->display->compositor; in surface_resize()
4149 if (widget->resize_handler) in surface_resize()
4150 widget->resize_handler(widget, in surface_resize()
4151 widget->allocation.width, in surface_resize()
4152 widget->allocation.height, in surface_resize()
4153 widget->user_data); in surface_resize()
4156 (surface->allocation.x != widget->allocation.x || in surface_resize()
4157 surface->allocation.y != widget->allocation.y)) { in surface_resize()
4159 widget->allocation.x, in surface_resize()
4160 widget->allocation.y); in surface_resize()
4162 if (surface->allocation.width != widget->allocation.width || in surface_resize()
4163 surface->allocation.height != widget->allocation.height) { in surface_resize()
4164 window_schedule_redraw(widget->window); in surface_resize()
4166 surface->allocation = widget->allocation; in surface_resize()
4168 if (widget->opaque) in surface_resize()
4170 widget->allocation.width, in surface_resize()
4171 widget->allocation.height); in surface_resize()
4179 widget_set_allocation(window->main_surface->widget, in window_do_resize()
4206 struct widget *widget = window->confined_widget; in window_do_resize() local
4210 widget->allocation.x, in window_do_resize()
4211 widget->allocation.y, in window_do_resize()
4212 widget->allocation.width, in window_do_resize()
4213 widget->allocation.height); in window_do_resize()
4290 widget_schedule_resize(struct widget *widget, int32_t width, int32_t height) in widget_schedule_resize() argument
4292 window_schedule_resize(widget->window, width, height); in widget_schedule_resize()
4500 widget_destroy(menu->widget); in menu_destroy()
4514 widget_redraw(struct widget *widget) in widget_redraw() argument
4516 struct widget *child; in widget_redraw()
4518 if (widget->redraw_handler) in widget_redraw()
4519 widget->redraw_handler(widget, widget->user_data); in widget_redraw()
4520 wl_list_for_each(child, &widget->child_list, link) in widget_redraw()
4565 if (surface->widget->use_cairo && in surface_redraw()
4566 !widget_get_cairo_surface(surface->widget)) { in surface_redraw()
4577 widget_redraw(surface->widget); in surface_redraw()
4815 widget_schedule_redraw(window->frame->widget); in window_set_title()
4976 widget_set_locked_pointer_cursor_hint(struct widget *widget, in widget_set_locked_pointer_cursor_hint() argument
4979 struct window *window = widget->window; in widget_set_locked_pointer_cursor_hint()
5117 struct widget *widget, in window_confine_pointer_to_widget() argument
5122 if (widget) { in window_confine_pointer_to_widget()
5125 &widget->allocation, in window_confine_pointer_to_widget()
5127 window->confined_widget = widget; in window_confine_pointer_to_widget()
5326 widget_schedule_redraw(menu->widget); in menu_set_item()
5331 menu_motion_handler(struct widget *widget, in menu_motion_handler() argument
5337 if (widget == menu->widget) in menu_motion_handler()
5344 menu_enter_handler(struct widget *widget, in menu_enter_handler() argument
5349 if (widget == menu->widget) in menu_enter_handler()
5356 menu_leave_handler(struct widget *widget, struct input *input, void *data) in menu_leave_handler() argument
5360 if (widget == menu->widget) in menu_leave_handler()
5365 menu_button_handler(struct widget *widget, in menu_button_handler() argument
5386 menu_touch_up_handler(struct widget *widget, in menu_touch_up_handler() argument
5400 menu_redraw_handler(struct widget *widget, void *data) in menu_redraw_handler() argument
5406 cr = widget_cairo_create(widget); in menu_redraw_handler()
5453 struct menu *menu = window->main_surface->widget->user_data; in xdg_popup_handle_popup_done()
5485 menu->widget = window_add_widget(menu->window, menu); in create_menu()
5499 widget_set_redraw_handler(menu->widget, menu_redraw_handler); in create_menu()
5500 widget_set_enter_handler(menu->widget, menu_enter_handler); in create_menu()
5501 widget_set_leave_handler(menu->widget, menu_leave_handler); in create_menu()
5502 widget_set_motion_handler(menu->widget, menu_motion_handler); in create_menu()
5503 widget_set_button_handler(menu->widget, menu_button_handler); in create_menu()
5504 widget_set_touch_up_handler(menu->widget, menu_touch_up_handler); in create_menu()
5506 input_grab(input, menu->widget, 0); in create_menu()
5604 struct widget *
5608 struct widget *widget; in window_add_subsurface() local
5615 widget = widget_create(window, surface, data); in window_add_subsurface()
5616 wl_list_init(&widget->link); in window_add_subsurface()
5617 surface->widget = widget; in window_add_subsurface()
5639 return widget; in window_add_subsurface()
6449 widget_get_cairo_surface(window->main_surface->widget); in display_acquire_window_surface()