Home | History | Annotate | Download | only in include

Lines Matching defs:form

46 #  include <form.h>
296 // Return the index of the field in the field array of a form
297 // or -1 if the field is not associated to a form
329 void _nc_xx_frm_init(FORM *);
330 void _nc_xx_frm_term(FORM *);
331 void _nc_xx_fld_init(FORM *);
332 void _nc_xx_fld_term(FORM *);
337 // The class representing a form, wrapping the lowlevel FORM struct
343 FORM* form; // the lowlevel structure
348 bool b_framed; // has the form a border?
349 bool b_autoDelete; // Delete fields when deleting form?
351 NCursesFormField** my_fields; // The array of fields for this form
353 // This structure is used for the form's user data field to link the
354 // FORM* to the C++ object and to provide extra space for a user pointer.
358 const FORM* m_owner;
361 // Get the backward pointer to the C++ object from a FORM
362 static inline NCursesForm* getHook(const FORM *f) {
368 friend void _nc_xx_frm_init(FORM *);
369 friend void _nc_xx_frm_term(FORM *);
370 friend void _nc_xx_fld_init(FORM *);
371 friend void _nc_xx_fld_term(FORM *);
379 UserHook* uptr = reinterpret_cast<UserHook*>(::form_userptr (form));
380 assert (uptr != 0 && uptr->m_back==this && uptr->m_owner==form);
385 UserHook* uptr = reinterpret_cast<UserHook*>(::form_userptr (form));
386 assert (uptr != 0 && uptr->m_back==this && uptr->m_owner==form);
409 form (STATIC_CAST(FORM*)(0)),
419 // Create form for the default panel.
424 form(0),
434 // Create a form in a panel with the given position and size.
443 form(0),
464 form(rhs.form),
475 // Set the default attributes for the form
478 // Retrieve current field of the form.
480 return my_fields[::field_index(::current_field(form))];
486 // Set these fields for the form
488 OnError(::set_form_fields(form,mapFields(Fields)));
491 // Remove the form from the screen
493 OnError (::unpost_form (form));
496 // Post the form to the screen if flag is true, unpost it otherwise
498 OnError (flag ? ::post_form(form) : ::unpost_form (form));
527 // Called after the form gets repositioned in its window.
528 // This is especially true if the form is posted.
531 // Called before the form gets repositioned in its window.
532 // This is especially true if the form is unposted.
541 // Calculate required window size for the form.
543 OnError(::scale_form(form,&rows,&ncols));
546 // Retrieve number of fields in the form.
548 return ::field_count(form);
551 // Make the page the current page of the form.
553 OnError(::set_form_page(form, pageNum));
558 return ::form_page(form);
563 OnError (::form_opts_on (form, opts));
568 OnError (::form_opts_off (form, opts));
573 return ::form_opts (form);
578 OnError (::set_form_opts (form, opts));
583 return ::data_ahead(form);
588 return ::data_behind(form);
593 OnError (::pos_form_cursor (form));
597 OnError (::set_current_field(form, F.field));
601 // code c into a form request code.
603 // mapping for the most common keystrokes and form requests.
608 if ( (i < 0) || (i >= ::field_count (form)) )
614 // Return the field where you left the form.
627 // user data to a field of a form. Its assumed that the user
661 // The same mechanism is used to attach user data to a form
675 if (form)
685 if (form)
699 if (form)
711 if (form)