KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::GAL_PRINT Class Referenceabstract

Wrapper around GAL to provide information needed for printing. More...

#include <gal_print.h>

Inheritance diagram for KIGFX::GAL_PRINT:
KIGFX::CAIRO_PRINT_GAL

Public Member Functions

virtual ~GAL_PRINT ()
 
virtual GALGetGAL ()=0
 
virtual PRINT_CONTEXTGetPrintCtx () const =0
 
virtual void SetNativePaperSize (const VECTOR2D &aSize, bool aRotateIfLandscape)=0
 
virtual void SetSheetSize (const VECTOR2D &aSize)=0
 

Static Public Member Functions

static std::unique_ptr< GAL_PRINTCreate (GAL_DISPLAY_OPTIONS &aOptions, wxDC *aDC)
 

Detailed Description

Wrapper around GAL to provide information needed for printing.

Definition at line 43 of file gal_print.h.

Constructor & Destructor Documentation

◆ ~GAL_PRINT()

virtual KIGFX::GAL_PRINT::~GAL_PRINT ( )
inlinevirtual

Definition at line 48 of file gal_print.h.

Member Function Documentation

◆ Create()

std::unique_ptr< GAL_PRINT > GAL_PRINT::Create ( GAL_DISPLAY_OPTIONS aOptions,
wxDC *  aDC 
)
static

Definition at line 209 of file cairo_print.cpp.

Referenced by BOARD_PRINTOUT::DrawPage(), and SCH_PRINTOUT::PrintPage().

◆ GetGAL()

virtual GAL * KIGFX::GAL_PRINT::GetGAL ( )
pure virtual

Implemented in KIGFX::CAIRO_PRINT_GAL.

◆ GetPrintCtx()

virtual PRINT_CONTEXT * KIGFX::GAL_PRINT::GetPrintCtx ( ) const
pure virtual

Implemented in KIGFX::CAIRO_PRINT_GAL.

◆ SetNativePaperSize()

virtual void KIGFX::GAL_PRINT::SetNativePaperSize ( const VECTOR2D aSize,
bool  aRotateIfLandscape 
)
pure virtual
Parameters
aSizeis the printing sheet size expressed in inches.
aRotateIfLandscapetrue if the platform requires 90 degrees rotation in order to print in landscape format.

Implemented in KIGFX::CAIRO_PRINT_GAL.

◆ SetSheetSize()

virtual void KIGFX::GAL_PRINT::SetSheetSize ( const VECTOR2D aSize)
pure virtual
Parameters
aSizeis the schematics sheet size expressed in inches.

Implemented in KIGFX::CAIRO_PRINT_GAL.


The documentation for this class was generated from the following files: