Lines Matching refs:obj

32     DIALOG_CALLBACK obj;
45 get_line(MY_OBJ * obj)
47 FILE *fp = obj->obj.input;
48 int col = -(obj->hscroll);
57 - ((col + obj->hscroll) % dialog_state.tab_len);
60 obj->line[col] = ' ';
65 obj->line[col] = (char) ch;
75 obj->line[col] = '\0';
77 return obj->line;
84 print_line(MY_OBJ * obj, WINDOW *win, int row, int width)
87 char *line = get_line(obj);
109 last_lines(MY_OBJ * obj, int target)
111 FILE *fp = obj->obj.input;
171 print_page(MY_OBJ * obj, int height, int width)
176 print_line(obj, obj->text, i, width);
178 (void) wnoutrefresh(obj->text);
182 print_last_page(MY_OBJ * obj)
184 int high = getmaxy(obj->obj.win) - (2 * MARGIN + (obj->obj.bg_task ? 1 : 3));
185 int wide = getmaxx(obj->text);
187 last_lines(obj, high);
188 print_page(obj, high, wide);
192 repaint_text(MY_OBJ * obj)
194 FILE *fp = obj->obj.input;
197 getyx(obj->obj.win, cur_y, cur_x);
198 obj->old_hscroll = obj->hscroll;
200 print_last_page(obj);
201 obj->last_pos = ftell(fp);
203 (void) wmove(obj->obj.win, cur_y, cur_x); /* Restore cursor position */
204 wrefresh(obj->obj.win);
210 MY_OBJ *obj = (MY_OBJ *) cb;
211 FILE *fp = obj->obj.input;
215 && sb.st_size != obj->last_pos) {
216 repaint_text(obj);
225 MY_OBJ *obj = (MY_OBJ *) cb;
228 if (!fkey && dlg_char_to_button(ch, obj->buttons) == 0) {
240 obj->hscroll = 0;
243 if (obj->hscroll > 0) {
244 obj->hscroll -= 1;
248 if (obj->hscroll < MAX_LEN)
249 obj->hscroll += 1;
255 if ((obj->hscroll != obj->old_hscroll))
256 repaint_text(obj);
310 MY_OBJ *obj;
355 obj = dlg_calloc(MY_OBJ, 1);
356 assert_ptr(obj, "dialog_tailbox");
358 obj->obj.input = fd;
359 obj->obj.win = dialog;
360 obj->obj.handle_getc = handle_my_getc;
361 obj->obj.handle_input = bg_task ? handle_input : 0;
362 obj->obj.keep_bg = bg_task && dialog_vars.cant_kill;
363 obj->obj.bg_task = bg_task;
364 obj->text = text;
365 obj->buttons = buttons;
366 dlg_add_callback(&(obj->obj));
373 repaint_text(obj);
397 while (handle_my_getc(&(obj->obj), ch, fkey, &result));