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_fwd.h"
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?
22 Returns 1 if the form does not contain a tabfolder.
24 This routine works for two levels of nested tabfolders. (I.e., is sufficient
25 for our current needs.)
27 double scale_to_fit_tabs(FL_FORM * form);
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.
33 void scale_form(FL_FORM * form, double scale_factor);
35 #endif // XFORMS_RESIZE_H