3 * \file xforms_resize.h
4 * Read the file COPYING
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
11 #ifndef XFORMS_RESIZE_H
12 #define XFORMS_RESIZE_H
18 #include "forms_fwd.h"
20 /** If the form contains a tabfolder, then by how much should the form be
21 scaled (enlarged only) to render the tabs (buttons) visible?
23 Returns 1 if the form does not contain a tabfolder.
25 This routine works for two levels of nested tabfolders. (I.e., is sufficient
26 for our current needs.)
28 double scale_to_fit_tabs(FL_FORM * form);
30 /** A wrapper for fl_scale_form(form, scale, 1) that scales the parent form
31 horizontally, but also scales the leaves (FL_FORMs) of any nested
32 tabfolder, should one exist.
34 void scale_form(FL_FORM * form, double scale_factor);
36 #endif // XFORMS_RESIZE_H