Lines Matching defs:area

10685             /* add waste area */
11761 float y_crossing, step, sign, area;
11765 /* flip scanline vertically; signed area is the same */
11782 /* area of the rectangle covered from y0..y_crossing */
11783 area = sign * (y_crossing-y0);
11784 /* area of the triangle (x_top,y0), (x+1,y0), (x+1,y_crossing) */
11785 scanline[x1] += area * (1.0f-((float)((float)x_top - (float)x1)+(float)(x1+1-x1))/2.0f);
11789 scanline[x] += area + step/2;
11790 area += step;
11794 scanline[x2] += area + sign * (1.0f-((float)(x2-x2)+((float)x_bottom-(float)x2))/2.0f) * (y1-y_crossing);
22876 struct nk_rect area;
22892 /* visible text area calculation */
22893 area.x = bounds.x + style->padding.x + style->border;
22894 area.y = bounds.y + style->padding.y + style->border;
22895 area.w = bounds.w - (2.0f * style->padding.x + 2 * style->border);
22896 area.h = bounds.h - (2.0f * style->padding.y + 2 * style->border);
22898 area.w = NK_MAX(0, area.w - style->scrollbar_size.x);
22899 row_height = (flags & NK_EDIT_MULTILINE)? font->height + style->row_padding: area.h;
22903 nk_unify(&clip, &old_clip, area.x, area.y, area.x + area.w, area.y + area.h);
22938 const float mouse_x = (in->mouse.pos.x - area.x) + edit->scrollbar.x;
22939 const float mouse_y = (in->mouse.pos.y - area.y) + edit->scrollbar.y;
22942 is_hovered = (char)nk_input_is_mouse_hovering_rect(in, area);
23053 area.w = NK_MAX(0, area.w - style->cursor_size);
23179 const float scroll_increment = area.w * 0.25f;
23182 if (cursor_pos.x >= edit->scrollbar.x + area.w)
23190 if (cursor_pos.y >= edit->scrollbar.y + area.h)
23205 scroll = area;
23261 nk_edit_draw_text(out, style, area.x - edit->scrollbar.x,
23262 area.y - edit->scrollbar.y, 0, begin, l, row_height, font,
23270 nk_edit_draw_text(out, style, area.x - edit->scrollbar.x,
23271 area.y - edit->scrollbar.y, 0, begin, (int)(select_begin_ptr - begin),
23282 area.x - edit->scrollbar.x,
23283 area.y + selection_offset_start.y - edit->scrollbar.y,
23297 area.x - edit->scrollbar.x,
23298 area.y + selection_offset_end.y - edit->scrollbar.y,
23314 cursor.x = area.x + cursor_pos.x - edit->scrollbar.x;
23315 cursor.y = area.y + cursor_pos.y + row_height/2.0f - cursor.h/2.0f;
23328 label.x = area.x + cursor_pos.x - edit->scrollbar.x;
23329 label.y = area.y + cursor_pos.y - edit->scrollbar.y;
23362 nk_edit_draw_text(out, style, area.x - edit->scrollbar.x,
23363 area.y - edit->scrollbar.y, 0, begin, l, row_height, font,