]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xforms_resize.h
Really dull and boring header shit
[lyx.git] / src / frontends / xforms / xforms_resize.h
1 // -*- C++ -*-
2 /**
3  * \file xforms_resize.h
4  * Read the file COPYING
5  *
6  * \author Angus Leeming 
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef XFORMS_RESIZE_H
12 #define XFORMS_RESIZE_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "forms_fwd.h"
19
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?
22
23     Returns 1 if the form does not contain a tabfolder.
24
25     This routine works for two levels of nested tabfolders. (I.e., is sufficient
26     for our current needs.)
27  */
28 double scale_to_fit_tabs(FL_FORM * form);
29
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.
33  */
34 void scale_form(FL_FORM * form, double scale_factor);
35
36 #endif // XFORMS_RESIZE_H