]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xforms_resize.h
Yet more dialog tweaking from Rob.
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "forms_fwd.h"
20
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?
23
24     Returns 1 if the form does not contain a tabfolder.
25
26     This routine works for two levels of nested tabfolders. (I.e., is sufficient
27     for our current needs.)
28  */
29 double scale_to_fit_tabs(FL_FORM * form);
30
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.
34  */
35 void scale_form(FL_FORM * form, double scale_factor);
36
37 #endif // XFORMS_RESIZE_H