]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xforms_resize.h
Nothing but a changed email address (trying to factor my tree in in small steps)
[lyx.git] / src / frontends / xforms / xforms_resize.h
1 // -*- C++ -*-
2 /**
3  * \file xforms_resize.h
4  * Copyright 2000-2002 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Angus Leeming <leeming@lyx.org>
8  */
9
10 #ifndef XFORMS_RESIZE_H
11 #define XFORMS_RESIZE_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "forms_fwd.h"
18
19 /** If the form contains a tabfolder, then by how much should the form be
20     scaled (enlarged only) to render the tabs (buttons) visible?
21
22     Returns 1 if the form does not contain a tabfolder.
23
24     This routine works for two levels of nested tabfolders. (I.e., is sufficient
25     for our current needs.)
26  */
27 double scale_to_fit_tabs(FL_FORM * form);
28
29 /** A wrapper for fl_scale_form(form, scale, 1) that scales the parent form
30     horizontally, but also scales the leaves (FL_FORMs) of any nested
31     tabfolder, should one exist.
32  */
33 void scale_form(FL_FORM * form, double scale_factor);
34
35 #endif // XFORMS_RESIZE_H