public double GetPageWidth(Gtk.Unit unit) { double raw_ret = gtk_page_setup_get_page_width(Handle, (int)unit); double ret = raw_ret; return(ret); }
public double GetPageHeight(Gtk.Unit unit) { double raw_ret = gtk_page_setup_get_page_height(Handle, (int)unit); double ret = raw_ret; return(ret); }
public double GetLeftMargin(Gtk.Unit unit) { double raw_ret = gtk_page_setup_get_left_margin(Handle, (int)unit); double ret = raw_ret; return(ret); }
public double GetBottomMargin(Gtk.Unit unit) { double raw_ret = gtk_page_setup_get_bottom_margin(Handle, (int)unit); double ret = raw_ret; return(ret); }
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); }
public void SetPaperWidth(double width, Gtk.Unit unit) { gtk_print_settings_set_paper_width(Handle, width, (int)unit); }
public void SetPaperHeight(double height, Gtk.Unit unit) { gtk_print_settings_set_paper_height(Handle, height, (int)unit); }
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); }
public void SetSize(double width, double height, Gtk.Unit unit) { gtk_paper_size_set_size(Handle, width, height, (int)unit); }
public void SetTopMargin(double margin, Gtk.Unit unit) { gtk_page_setup_set_top_margin(Handle, margin, (int)unit); }
public void SetRightMargin(double margin, Gtk.Unit unit) { gtk_page_setup_set_right_margin(Handle, margin, (int)unit); }
public void SetBottomMargin(double margin, Gtk.Unit unit) { gtk_page_setup_set_bottom_margin(Handle, margin, (int)unit); }
public void SetTopMargin(double margin, Gtk.Unit unit) { gtk_source_print_compositor_set_top_margin(Handle, margin, (int)unit); }
public void SetBottomMargin(double margin, Gtk.Unit unit) { gtk_source_print_compositor_set_bottom_margin(Handle, margin, (int)unit); }