159 wxPoint tmp_startvisu;
173 FitThisSizeToPaper( pageSizeIU );
174 fitRect = GetLogicalPaperRect();
176 int xoffset = ( fitRect.width - pageSizeIU.x ) / 2;
177 int yoffset = ( fitRect.height - pageSizeIU.y ) / 2;
179 OffsetLogicalOrigin( xoffset, yoffset );
201 BITMAP_BASE* bitmap = static_cast<DS_DATA_ITEM_BITMAP*>( dataItem )->m_ImageBitmap;
void GRResetPenAndBrush(wxDC *DC)
Handle the graphic items list to draw/plot the frame and title block.
void SetVirtualPageNumber(int aPageNumber)
PL_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
const PAGE_INFO & GetPageSettings() const override
std::vector< DS_DATA_ITEM * > & GetItems()
void DisplayDrawingSheet()
Build and update the list of WS_DRAW_ITEM_xxx showing the frame layout.
Store page-layout-specific render settings.
This class handle bitmap images in KiCad.
wxPoint m_StartVisu
Coordinates in drawing units of the current view position (upper left corner of device)
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
void GRForceBlackPen(bool flagforce)
Handles how to draw a screen (a board, a schematic ...)
void SetLayerColor(int aLayer, const COLOR4D &aColor)
Change the color used to draw a layer.
drawingsheet frame and titleblock
void PrintDrawingSheet(const RENDER_SETTINGS *aSettings, BASE_SCREEN *aScreen, double aMils2Iu, const wxString &aFilename, const wxString &aSheetLayer=wxEmptyString)
Prints the drawing-sheet (frame and title block).
void SetPixelSizeIu(double aPixSize)
PL_EDITOR_FRAME * m_parent
Drawing sheet structure type definitions.
wxPoint m_DrawOrg
offsets for drawing the circuit on the screen
virtual COLOR4D GetDrawBgColor() const
void SetDefaultPenWidth(int aWidth)
void SetPrintDC(wxDC *aDC)
virtual BASE_SCREEN * GetScreen() const
Return a pointer to a BASE_SCREEN or one of its derivatives.
virtual void SetDrawBgColor(const COLOR4D &aColor)
A color representation with 4 components: red, green, blue, alpha.