|
| PrintContext (PrintContext &&src) noexcept |
|
PrintContext & | operator= (PrintContext &&src) noexcept |
|
| ~PrintContext () noexcept override |
|
GtkPrintContext * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GtkPrintContext * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GtkPrintContext * | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
Cairo::RefPtr< Cairo::Context > | get_cairo_context () |
| Obtains the cairo context that is associated with the Gtk::PrintContext .
|
|
Cairo::RefPtr< const Cairo::Context > | get_cairo_context () const |
| Obtains the cairo context that is associated with the Gtk::PrintContext .
|
|
Glib::RefPtr< PageSetup > | get_page_setup () |
| Obtains the Gtk::PageSetup that determines the page dimensions of the Gtk::PrintContext .
|
|
Glib::RefPtr< const PageSetup > | get_page_setup () const |
| Obtains the Gtk::PageSetup that determines the page dimensions of the Gtk::PrintContext .
|
|
double | get_width () const |
| Obtains the width of the Gtk::PrintContext , in pixels.
|
|
double | get_height () const |
| Obtains the height of the Gtk::PrintContext , in pixels.
|
|
double | get_dpi_x () const |
| Obtains the horizontal resolution of the Gtk::PrintContext , in dots per inch.
|
|
double | get_dpi_y () const |
| Obtains the vertical resolution of the Gtk::PrintContext , in dots per inch.
|
|
bool | get_hard_margins (double & top, double &bottom, double &left, double &right) const |
| Obtains the hardware printer margins of the Gtk::PrintContext , in units.
|
|
Glib::RefPtr< Pango::FontMap > | get_pango_fontmap () |
| Returns a Pango::FontMap that is suitable for use with the Gtk::PrintContext .
|
|
Glib::RefPtr< const Pango::FontMap > | get_pango_fontmap () const |
| Returns a Pango::FontMap that is suitable for use with the Gtk::PrintContext .
|
|
Glib::RefPtr< Pango::Context > | create_pango_context () |
| Creates a new Pango::Context that can be used with the Gtk::PrintContext .
|
|
Glib::RefPtr< Pango::Layout > | create_pango_layout () |
| Creates a new Pango::Layout that is suitable for use with the Gtk::PrintContext .
|
|
void | set_cairo_context (const Cairo::RefPtr< Cairo::Context > &cr, double dpi_x, double dpi_y) |
| Sets a new cairo context on a print context.
|
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data_with_c_callback (const Quark &key, void *data, GDestroyNotify notify) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
PropertyType | get_property (const Glib::ustring &property_name) const |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () noexcept |
|
| trackable (const trackable &src) noexcept |
|
| trackable (trackable &&src) noexcept |
|
| ~trackable () |
|
void | add_destroy_notify_callback (notifiable *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) noexcept |
|
void | remove_destroy_notify_callback (notifiable *data) const |
|
A PrintContext encapsulates context information that is required when drawing pages for printing, such as the cairo context and important parameters like page size and resolution.
It also lets you easily create Pango::Layout and Pango::Context objects that match the font metrics of the cairo surface.
PrintContext objects gets passed to the begin-print, end-print, request-page-setup and draw-page signals on the PrintOperation.