Lines Matching defs:box
1 /* widget_box.c - Pixmap-stylized box widget. */
137 "failed to scale bitmap for styled box pixmap #%d", i);
276 /* Create a new box. If PIXMAPS_PREFIX and PIXMAPS_SUFFIX are both non-null,
280 loaded, and the box has zero-width borders and is drawn transparent. */
286 grub_gfxmenu_box_t box;
288 box = (grub_gfxmenu_box_t) grub_malloc (sizeof (*box));
289 if (! box)
292 box->content_width = 0;
293 box->content_height = 0;
294 box->raw_pixmaps =
297 box->scaled_pixmaps =
304 box->raw_pixmaps[i] = 0;
306 box->scaled_pixmaps[i] = 0;
328 grub_video_bitmap_load (&box->raw_pixmaps[i], path);
336 box->draw = draw;
337 box->set_content_size = set_content_size;
338 box->get_border_width = get_border_width;
340 box->get_left_pad = get_left_pad;
341 box->get_top_pad = get_top_pad;
342 box->get_right_pad = get_right_pad;
343 box->get_bottom_pad = get_bottom_pad;
344 box->destroy = destroy;
345 return box;
348 destroy (box);