X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkprintcontext.h;h=aecd8a92b888ee3fec6f278727d848d3a6609ee2;hb=3c04597306a918317cb96d6c267fc73a798c04e4;hp=5c69b9aa52220bfdd84cf890b8229d19e17ef1eb;hpb=d0c713bfee6d532442d097a32415dd340dd66056;p=~andy%2Fgtk diff --git a/gtk/gtkprintcontext.h b/gtk/gtkprintcontext.h index 5c69b9aa5..aecd8a92b 100644 --- a/gtk/gtkprintcontext.h +++ b/gtk/gtkprintcontext.h @@ -13,23 +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__ -#include + +#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; @@ -49,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);