Lines Matching defs:slice
213 * This method slices off the topmost 2D slice from the parent area, and stores
214 * it in the 'slice' parameter. The 'parent' parameter will get modified to
216 * fit in a 2D slice, its tcm pointer is set to NULL to mark that it is no
220 * @param slice Pointer to the slice area that will get modified
222 static inline void tcm_slice(struct tcm_area *parent, struct tcm_area *slice)
224 *slice = *parent;
226 /* check if we need to slice */
227 if (slice->tcm && !slice->is2d &&
228 slice->p0.y != slice->p1.y &&
229 (slice->p0.x || (slice->p1.x != slice->tcm->width - 1))) {
230 /* set end point of slice (start always remains) */
231 slice->p1.x = slice->tcm->width - 1;
232 slice->p1.y = (slice->p0.x) ? slice->p0.y : slice->p1.y - 1;
235 parent->p0.y = slice->p1.y + 1;
237 /* mark this as the last slice */
319 * contain each slice.