コード例 #1
0
        public double GetPageWidth(Gtk.Unit unit)
        {
            double raw_ret = gtk_page_setup_get_page_width(Handle, (int)unit);
            double ret     = raw_ret;

            return(ret);
        }
コード例 #2
0
        public double GetPageHeight(Gtk.Unit unit)
        {
            double raw_ret = gtk_page_setup_get_page_height(Handle, (int)unit);
            double ret     = raw_ret;

            return(ret);
        }
コード例 #3
0
        public double GetLeftMargin(Gtk.Unit unit)
        {
            double raw_ret = gtk_page_setup_get_left_margin(Handle, (int)unit);
            double ret     = raw_ret;

            return(ret);
        }
コード例 #4
0
        public double GetBottomMargin(Gtk.Unit unit)
        {
            double raw_ret = gtk_page_setup_get_bottom_margin(Handle, (int)unit);
            double ret     = raw_ret;

            return(ret);
        }
コード例 #5
0
        public double GetLength(string key, Gtk.Unit unit)
        {
            IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup(key);
            double raw_ret    = gtk_print_settings_get_length(Handle, native_key, (int)unit);
            double ret        = raw_ret;

            GLib.Marshaller.Free(native_key);
            return(ret);
        }
コード例 #6
0
 public void SetPaperWidth(double width, Gtk.Unit unit)
 {
     gtk_print_settings_set_paper_width(Handle, width, (int)unit);
 }
コード例 #7
0
 public void SetPaperHeight(double height, Gtk.Unit unit)
 {
     gtk_print_settings_set_paper_height(Handle, height, (int)unit);
 }
コード例 #8
0
        public PaperSize(string name, string display_name, double width, double height, Gtk.Unit unit)
        {
            IntPtr native_name         = GLib.Marshaller.StringToPtrGStrdup(name);
            IntPtr native_display_name = GLib.Marshaller.StringToPtrGStrdup(display_name);

            Raw = gtk_paper_size_new_custom(native_name, native_display_name, width, height, (int)unit);
            GLib.Marshaller.Free(native_name);
            GLib.Marshaller.Free(native_display_name);
        }
コード例 #9
0
 public void SetSize(double width, double height, Gtk.Unit unit)
 {
     gtk_paper_size_set_size(Handle, width, height, (int)unit);
 }
コード例 #10
0
 public void SetTopMargin(double margin, Gtk.Unit unit)
 {
     gtk_page_setup_set_top_margin(Handle, margin, (int)unit);
 }
コード例 #11
0
 public void SetRightMargin(double margin, Gtk.Unit unit)
 {
     gtk_page_setup_set_right_margin(Handle, margin, (int)unit);
 }
コード例 #12
0
 public void SetBottomMargin(double margin, Gtk.Unit unit)
 {
     gtk_page_setup_set_bottom_margin(Handle, margin, (int)unit);
 }
コード例 #13
0
 public void SetTopMargin(double margin, Gtk.Unit unit)
 {
     gtk_source_print_compositor_set_top_margin(Handle, margin, (int)unit);
 }
コード例 #14
0
 public void SetBottomMargin(double margin, Gtk.Unit unit)
 {
     gtk_source_print_compositor_set_bottom_margin(Handle, margin, (int)unit);
 }