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
16 #include "forms_fwd.h"
18 /** Ascertains the scaling factor needed to ensure that all labels fit
21 Tabfolders are searched also by recursively calling this function.
23 double get_scale_to_fit(FL_FORM * form);
25 /** A wrapper for fl_scale_form(form, scale, 1) that scales the parent form
26 horizontally, but also scales the leaves (FL_FORMs) of any nested
27 tabfolder, should one exist.
29 Tabfolders are scaled also by recursively calling this function.
31 void scale_form_horizontally(FL_FORM * form, double factor);
33 #endif // XFORMS_RESIZE_H