Generated reference › API — ICoreEssentials/UI/Backends/Gtk4/Printing
kind: generated#api#icoreessentials-ui-backends-gtk4-printing

API — ICoreEssentials/UI/Backends/Gtk4/Printing

The public contract of 1 header(s) under ICoreEssentials/UI/Backends/Gtk4/Printing — 2 class/struct definition(s), 0 declaration(s). Each section shows the header's banner and its public (and protected-virtual) surface exactly as the file writes it.

ICoreGtk4PrintSetup.h#

ICoreEssentials/UI/Backends/Gtk4/Printing/ICoreGtk4PrintSetup.h

ICoreGtk4PageSetup#

ICoreGtk4PrintSetup.h:32 · struct · 0 declaration(s)

The page setup an ICorePrinter carries on this backend, and the in-zone seam the printer painter and the print dialog read it through.

struct ICoreGtk4PageSetup {
public:
    // The full sheet, in points, orientation already applied.
    double pageWidth = 0.0;
    double pageHeight = 0.0;

    // One margin, in points, applied to all four sides. The wrapper takes a
    // single double and the Qt seat spreads it with QMarginsF(m,m,m,m); kept
    // identical rather than generalised, because a four-sided setter has no
    // caller (§9's rule, and the AppKit seat's same note).
    double margin = 0.0;

    std::string documentName;
    std::string pdfPath;      // empty == not a PDF job
};
};

ICoreGtk4PrinterState#

ICoreGtk4PrintSetup.h:80 · struct · 0 declaration(s)

The whole of what an ICorePrinter holds on this backend, and what nativeState() hands back.

struct ICoreGtk4PrinterState {
public:
    ICoreGtk4PageSetup setup;

    // The queue the user chose, or null for "no queue chosen" -- which is what
    // a PDF job and an un-run dialog both look like.
    void* selectedPrinter = nullptr;

    // The panel's settings (copies, range, duplex, ...), or null.
    void* printSettings = nullptr;
};
};