X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkprintcontext.h;h=aecd8a92b888ee3fec6f278727d848d3a6609ee2;hb=1865b9a1116d166c9abc5c75f5d01270574007c5;hp=debeed6ae59ccbe1b4ba3f73da979ad55a54c833;hpb=57223c9a056bfff1635ddd1e67f660cd5a61e9ff;p=~andy%2Fgtk diff --git a/gtk/gtkprintcontext.h b/gtk/gtkprintcontext.h index debeed6ae..aecd8a92b 100644 --- a/gtk/gtkprintcontext.h +++ b/gtk/gtkprintcontext.h @@ -13,22 +13,21 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ -#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif - #ifndef __GTK_PRINT_CONTEXT_H__ #define __GTK_PRINT_CONTEXT_H__ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + #include -#include #include + G_BEGIN_DECLS typedef struct _GtkPrintContext GtkPrintContext; @@ -48,6 +47,11 @@ gdouble gtk_print_context_get_width (GtkPrintContext *context); gdouble gtk_print_context_get_height (GtkPrintContext *context); gdouble gtk_print_context_get_dpi_x (GtkPrintContext *context); gdouble gtk_print_context_get_dpi_y (GtkPrintContext *context); +gboolean gtk_print_context_get_hard_margins (GtkPrintContext *context, + gdouble *top, + gdouble *bottom, + gdouble *left, + gdouble *right); /* Fonts */ PangoFontMap *gtk_print_context_get_pango_fontmap (GtkPrintContext *context);