154 const wxString& aFullSheetName,
const wxString& aFileName,
155 const TITLE_BLOCK& aTitleBlock,
int aSheetCount,
const wxString& aPageNumber,
156 double aScalar,
const PROJECT* aProject,
157 const wxString& aSheetLayer = wxEmptyString,
bool aIsFirstPage =
true );
159 #endif // WS_PAINTER_H Store page-layout-specific render settings.
A rectangle with thick segment showing the page limits and a marker showing the coordinate origin.
void SetNormalColor(const COLOR4D &aColor)
void PrintPageLayout(const RENDER_SETTINGS *aSettings, const PAGE_INFO &aPageInfo, const wxString &aFullSheetName, const wxString &aFileName, const TITLE_BLOCK &aTitleBlock, int aSheetCount, const wxString &aPageNumber, double aScalar, const PROJECT *aProject, const wxString &aSheetLayer=wxEmptyString, bool aIsFirstPage=true)
Print the border and title block.
double GetBrightness() const
Returns the brightness value of the color ranged from 0.0 to 1.0.
Container for project specific data.
WS_RENDER_SETTINGS m_renderSettings
The Cairo implementation of the graphics abstraction layer.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
bool IsBackgroundDark() const override
void SetPageBorderColor(const COLOR4D &aColor)
Non filled rectangle with thick segment.
void LoadColors(const COLOR_SETTINGS *aSettings) override
An abstract base class for deriving all objects that can be added to a VIEW.
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Contains all the knowledge about how to draw graphical object onto any particular output device.
const COLOR4D & GetCursorColor() override
Return current cursor color settings.
void DrawBorder(const PAGE_INFO *aPageInfo, int aScaleFactor) const
Describe the page size and margins of a paper page on which to eventually print or plot.
void SetBackgroundColor(const COLOR4D &aColor) override
Set the background color.
void draw(const WS_DRAW_ITEM_LINE *aItem, int aLayer) const
Methods for drawing worksheet items.
COLOR4D m_brightenedColor
virtual void ApplySettings(const RENDER_SETTINGS *aSettings) override
Loads colors and display modes settings that are going to be used when drawing items.
COLOR4D m_backgroundColor
const COLOR4D & GetBackgroundColor() override
Return current background color settings.
Handle the component boundary box.
const COLOR4D & GetGridColor() override
Return current grid color settings.
void SetSelectedColor(const COLOR4D &aColor)
virtual COLOR4D GetColor(const VIEW_ITEM *aItem, int aLayer) const override
Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using curr...
Color settings are a bit different than most of the settings objects in that there can be more than o...
void SetBrightenedColor(const COLOR4D &aColor)
COLOR4D m_pageBorderColor
virtual bool Draw(const VIEW_ITEM *, int) override
Takes an instance of VIEW_ITEM and passes it to a function that knows how to draw the item.
virtual RENDER_SETTINGS * GetSettings() override
Abstract interface for drawing on a 2D-surface.
A color representation with 4 components: red, green, blue, alpha.