Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
b0357ce9
Commit
b0357ce9
authored
Sep 09, 2013
by
tomasz.wlostowski@cern.ch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCB_PAINTER: added public GetLayerColor() method
parent
b0694e03
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
pcb_painter.cpp
pcbnew/pcb_painter.cpp
+4
-0
pcb_painter.h
pcbnew/pcb_painter.h
+2
-0
No files found.
pcbnew/pcb_painter.cpp
View file @
b0357ce9
...
...
@@ -193,6 +193,10 @@ const COLOR4D& PCB_PAINTER::GetColor( const VIEW_ITEM* aItem, int aLayer )
return
m_pcbSettings
->
m_layerColors
[
aLayer
];
}
const
COLOR4D
&
PCB_RENDER_SETTINGS
::
GetLayerColor
(
int
aLayer
)
const
{
return
m_layerColors
[
aLayer
];
}
bool
PCB_PAINTER
::
Draw
(
const
VIEW_ITEM
*
aItem
,
int
aLayer
)
{
...
...
pcbnew/pcb_painter.h
View file @
b0357ce9
...
...
@@ -85,6 +85,8 @@ public:
*/
void
LoadDisplayOptions
(
const
DISPLAY_OPTIONS
&
aOptions
);
const
COLOR4D
&
GetLayerColor
(
int
aLayer
)
const
;
protected
:
/// @copydoc RENDER_SETTINGS::Update()
void
update
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment