]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xforms_resize.h
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / frontends / xforms / xforms_resize.h
1 // -*- C++ -*-
2 /**
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.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef XFORMS_RESIZE_H
13 #define XFORMS_RESIZE_H
14
15 #include "forms_fwd.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 /** Ascertains the scaling factor needed to ensure that all labels fit
21     within their button.
22
23     Tabfolders are searched also by recursively calling this function.
24  */
25 double get_scale_to_fit(FL_FORM * form);
26
27 /** A wrapper for fl_scale_form(form, scale, 1) that scales the parent form
28     horizontally, but also scales the leaves (FL_FORMs) of any nested
29     tabfolder, should one exist.
30
31     Tabfolders are scaled also by recursively calling this function.
32  */
33 void scale_form_horizontally(FL_FORM * form, double factor);
34
35 } // namespace frontend
36 } // namespace lyx
37
38 #endif // XFORMS_RESIZE_H