Lines Matching defs:first
11 * + 'first' is controlled by [xy]view widget command
14 * + 'last' depends on first, total, and widget size.
21 * 'first' and schedules a redisplay.
23 * the LayoutProc), call TtkScrolled(h,first,last,total) to
65 scrollPtr->first = 0;
90 Tcl_PrintDouble(interp, (double)s->first / s->total, arg1+1);
136 void TtkScrolled(ScrollHandle h, int first, int last, int total)
143 first = 0;
149 first -= (last - total);
150 if (first < 0) first = 0;
154 if (s->first != first || s->last != last || s->total != total
157 s->first = first;
191 int newFirst = s->first;
195 result[0] = Tcl_NewDoubleObj((double)s->first / s->total);
214 newFirst = s->first + count;
217 int perPage = s->last - s->first; /* @@@ */
218 newFirst = s->first + count * perPage;
235 if (newFirst > s->first && s->last >= s->total) /* don't scroll past end */
236 newFirst = s->first;
240 if (newFirst != s->first) {
241 s->first = newFirst;