3 * \file xforms_resize.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
12 #ifndef XFORMS_RESIZE_H
13 #define XFORMS_RESIZE_H
19 #include "forms_fwd.h"
21 /** If the form contains a tabfolder, then by how much should the form be
22 scaled (enlarged only) to render the tabs (buttons) visible?
24 Returns 1 if the form does not contain a tabfolder.
26 This routine works for two levels of nested tabfolders. (I.e., is sufficient
27 for our current needs.)
29 double scale_to_fit_tabs(FL_FORM * form);
31 /** A wrapper for fl_scale_form(form, scale, 1) that scales the parent form
32 horizontally, but also scales the leaves (FL_FORMs) of any nested
33 tabfolder, should one exist.
35 void scale_form(FL_FORM * form, double scale_factor);
37 #endif // XFORMS_RESIZE_H