3 * \file xforms_resize.h
4 * Copyright 2000-2002 the LyX Team
5 * Read the file COPYING
7 * \author Angus Leeming, a.leeming@ic.ac.uk
10 #ifndef XFORMS_RESIZE_H
11 #define XFORMS_RESIZE_H
17 #include FORMS_H_LOCATION
19 /** Returns 1 if the form does not contain a tabfolder.
20 If it does contain a tabfolder, then by how much should the form be
21 scaled to render the tabs (buttons) visible.
23 This routine works for two levels of nested tabfolders.
25 double scale_to_fit_tabs(FL_FORM * form);
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 the tabfolder,
31 void scale_form(FL_FORM * form, double scale_factor);
33 #endif // XFORMS_RESIZE_H