Lines Matching defs:bounds
38 grub_video_rect_t bounds;
86 grub_gui_set_viewport (&self->bounds, &vpsave);
95 w = grub_fixed_sfs_multiply (self->bounds.width, comp->wfrac) + comp->w;
96 h = grub_fixed_sfs_multiply (self->bounds.height, comp->hfrac) + comp->h;
97 x = grub_fixed_sfs_multiply (self->bounds.width, comp->xfrac) + comp->x;
98 y = grub_fixed_sfs_multiply (self->bounds.height, comp->yfrac) + comp->y;
117 if (x >= (signed) self->bounds.width)
118 x = self->bounds.width - 32;
119 if (y >= (signed) self->bounds.height)
120 y = self->bounds.height - 32;
127 if (x + w >= (signed) self->bounds.width)
128 w = self->bounds.width - x;
129 if (y + h >= (signed) self->bounds.height)
130 h = self->bounds.height - y;
160 canvas_set_bounds (void *vself, const grub_video_rect_t *bounds)
163 self->bounds = *bounds;
167 canvas_get_bounds (void *vself, grub_video_rect_t *bounds)
170 *bounds = self->bounds;