#include <gtkmm/printoperationpreview.h>
◆ PrintOperationPreview() [1/2]
Gtk::PrintOperationPreview::PrintOperationPreview |
( |
| ) |
|
|
protected |
You should derive from this class to use it.
◆ PrintOperationPreview() [2/2]
◆ ~PrintOperationPreview()
Gtk::PrintOperationPreview::~PrintOperationPreview |
( |
| ) |
|
|
overridenoexcept |
◆ add_interface()
static void Gtk::PrintOperationPreview::add_interface |
( |
GType |
gtype_implementer | ) |
|
|
static |
◆ end_preview()
void Gtk::PrintOperationPreview::end_preview |
( |
| ) |
|
Ends a preview.
This function must be called to finish a custom print preview.
◆ end_preview_vfunc()
virtual void Gtk::PrintOperationPreview::end_preview_vfunc |
( |
| ) |
|
|
protectedvirtual |
◆ get_type()
static GType Gtk::PrintOperationPreview::get_type |
( |
| ) |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
◆ gobj() [1/2]
Provides access to the underlying C GObject.
◆ gobj() [2/2]
Provides access to the underlying C GObject.
◆ is_selected()
bool Gtk::PrintOperationPreview::is_selected |
( |
int |
page_nr | ) |
const |
Returns whether the given page is included in the set of pages that have been selected for printing.
- Parameters
-
- Returns
true
if the page has been selected for printing.
◆ is_selected_vfunc()
virtual bool Gtk::PrintOperationPreview::is_selected_vfunc |
( |
int |
page_nr | ) |
const |
|
protectedvirtual |
◆ on_got_page_size()
◆ on_ready()
◆ operator=()
◆ render_page()
void Gtk::PrintOperationPreview::render_page |
( |
int |
page_nr | ) |
|
Renders a page to the preview.
This is using the print context that was passed to the Gtk::PrintOperation::signal_preview() handler together with preview.
A custom print preview should use this function to render the currently selected page.
Note that this function requires a suitable cairo context to be associated with the print context.
- Parameters
-
page_nr | The page to render. |
◆ render_page_vfunc()
virtual void Gtk::PrintOperationPreview::render_page_vfunc |
( |
int |
page_nr | ) |
|
|
protectedvirtual |
◆ signal_got_page_size()
◆ signal_ready()
- Slot Prototype:
void on_my_ready(const Glib::RefPtr<PrintContext>& context)
Flags: Run Last
The signal_ready() signal gets emitted once per preview operation, before the first page is rendered.
A handler for this signal can be used for setup tasks.
- Parameters
-
◆ wrap()
A Glib::wrap() method for this object.
- Parameters
-
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns
- A C++ instance that wraps this C instance.