• Home
  • Raw
  • Download

Lines Matching refs:box

49 struct box {  struct
67 set_my_viewport(struct box *box) in set_my_viewport() argument
73 if (box->mode == MODE_NO_VIEWPORT) in set_my_viewport()
88 switch (box->mode){ in set_my_viewport()
100 wp_viewport_set_source(box->viewport, src_x, src_y, in set_my_viewport()
104 wp_viewport_set_destination(box->viewport, in set_my_viewport()
108 wp_viewport_set_source(box->viewport, src_x, src_y, in set_my_viewport()
110 wp_viewport_set_destination(box->viewport, in set_my_viewport()
122 struct box *box = data; in resize_handler() local
125 widget_set_size(box->widget, box->width, box->height); in resize_handler()
131 struct box *box = data; in redraw_handler() local
135 surface = window_get_surface(box->window); in redraw_handler()
187 struct box *box = data; in global_handler() local
190 box->viewporter = display_bind(display, name, in global_handler()
193 box->viewport = wp_viewporter_get_viewport(box->viewporter, in global_handler()
194 widget_get_wl_surface(box->widget)); in global_handler()
196 set_my_viewport(box); in global_handler()
205 struct box *box = data; in button_handler() local
211 window_move(box->window, input, in button_handler()
212 display_get_serial(box->display)); in button_handler()
221 struct box *box = data; in touch_down_handler() local
222 window_move(box->window, input, in touch_down_handler()
223 display_get_serial(box->display)); in touch_down_handler()
268 struct box box; in main() local
273 box.mode = MODE_SRC_DST; in main()
277 box.mode = MODE_SRC_ONLY; in main()
279 box.mode = MODE_DST_ONLY; in main()
281 box.mode = MODE_SRC_DST; in main()
283 box.mode = MODE_NO_VIEWPORT; in main()
300 box.width = BUFFER_WIDTH / BUFFER_SCALE; in main()
301 box.height = BUFFER_HEIGHT / BUFFER_SCALE; in main()
302 box.display = d; in main()
303 box.window = window_create(d); in main()
304 box.widget = window_add_widget(box.window, &box); in main()
305 window_set_title(box.window, "Scaler Test Box"); in main()
306 window_set_buffer_scale(box.window, BUFFER_SCALE); in main()
308 widget_set_resize_handler(box.widget, resize_handler); in main()
309 widget_set_redraw_handler(box.widget, redraw_handler); in main()
310 widget_set_button_handler(box.widget, button_handler); in main()
311 widget_set_default_cursor(box.widget, CURSOR_HAND1); in main()
312 widget_set_touch_down_handler(box.widget, touch_down_handler); in main()
314 window_schedule_resize(box.window, box.width, box.height); in main()
316 display_set_user_data(box.display, &box); in main()
317 display_set_global_handler(box.display, global_handler); in main()
321 widget_destroy(box.widget); in main()
322 window_destroy(box.window); in main()