summaryrefslogtreecommitdiff
path: root/include/worksheet.h
diff options
context:
space:
mode:
authorsaurabhb172020-02-26 16:14:17 +0530
committerGitHub2020-02-26 16:14:17 +0530
commit003d02608917e7a69d1a98438837e94ccf68352a (patch)
tree1392c90227aeea231c1d86371131e04c40382918 /include/worksheet.h
parent886d9cb772e81d2e5262284bc3082664f084337f (diff)
parente255d0622297488c1c52755be670733418c994cf (diff)
downloadKiCad-eSim-003d02608917e7a69d1a98438837e94ccf68352a.tar.gz
KiCad-eSim-003d02608917e7a69d1a98438837e94ccf68352a.tar.bz2
KiCad-eSim-003d02608917e7a69d1a98438837e94ccf68352a.zip
Merge pull request #3 from saurabhb17/master
secondary files
Diffstat (limited to 'include/worksheet.h')
-rw-r--r--include/worksheet.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/include/worksheet.h b/include/worksheet.h
new file mode 100644
index 0000000..d4bed64
--- /dev/null
+++ b/include/worksheet.h
@@ -0,0 +1,49 @@
+/***************/
+/* worksheet.h */
+/***************/
+
+// For page and paper size, values are in 1/1000 inch
+
+#ifndef WORKSHEET_H_
+#define WORKSHEET_H_
+
+#include <colors.h> // EDA_COLOR_T definition
+#include <class_page_info.h>
+
+// Forward declarations:
+class EDA_DRAW_PANEL;
+class EDA_RECT;
+class TITLE_BLOCK;
+
+/**
+ * Function DrawPageLayout is a core function to draw the page layout with
+ * the frame and the basic inscriptions.
+ * @param aDC The device context.
+ * @param aClipBox = the clipping rect, or NULL if no clipping.
+ * @param aPageInfo for margins and page size (in mils).
+ * @param aFullSheetName The sheetpath (full sheet name), for basic inscriptions.
+ * @param aFileName The file name, for basic inscriptions.
+ * @param aTitleBlock The sheet title block, for basic inscriptions.
+ * @param aSheetCount The number of sheets (for basic inscriptions).
+ * @param aSheetNumber The sheet number (for basic inscriptions).
+ * @param aPenWidth the pen size The line width for drawing.
+ * @param aScalar the scale factor to convert from mils to internal units.
+ * @param aColor The color for drawing.
+ * @param aAltColor The color for items which need to be "hightlighted".
+ *
+ * Parameters used in aPageInfo
+ * - the size of the page layout.
+ * - the LTmargin The left top margin of the page layout.
+ * - the RBmargin The right bottom margin of the page layout.
+ */
+void DrawPageLayout( wxDC* aDC, EDA_RECT* aClipBox,
+ const PAGE_INFO& aPageInfo,
+ const wxString &aFullSheetName,
+ const wxString& aFileName,
+ TITLE_BLOCK& aTitleBlock,
+ int aSheetCount, int aSheetNumber,
+ int aPenWidth, double aScalar,
+ EDA_COLOR_T aColor, EDA_COLOR_T aAltColor );
+
+
+#endif // WORKSHEET_H_