]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkprintcontext.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtkprintcontext.h
index debeed6ae59ccbe1b4ba3f73da979ad55a54c833..aecd8a92b888ee3fec6f278727d848d3a6609ee2 100644 (file)
  * 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 <http://www.gnu.org/licenses/>.
  */
 
-#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> 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 <gtk/gtk.h> can be included directly."
+#endif
+
 #include <pango/pango.h>
-#include <gtk/gtkenums.h>
 #include <gtk/gtkpagesetup.h>
 
+
 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);