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
3d0753c9
Commit
3d0753c9
authored
Sep 17, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added get functions for high contrast mode fields.
parent
ab21124b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
painter.h
include/painter.h
+30
-0
No files found.
include/painter.h
View file @
3d0753c9
...
...
@@ -80,6 +80,16 @@ public:
m_activeLayers
.
erase
(
aLayerId
);
}
/**
* Function GetActiveLayers()
* Returns the set of currently active layers.
* @return The set of currently active layers.
*/
const
std
::
set
<
unsigned
int
>
GetActiveLayers
()
{
return
m_activeLayers
;
}
/**
* Function ClearActiveLayers
* Clears the list of active layers.
...
...
@@ -89,6 +99,16 @@ public:
m_activeLayers
.
clear
();
}
/**
* Function IsActiveLayer
* Returns information whether the queried layer is marked as active.
* @return True if the queried layer is marked as active.
*/
inline
bool
IsActiveLayer
(
int
aLayerId
)
const
{
return
(
m_activeLayers
.
count
(
aLayerId
)
>
0
);
}
/**
* Function SetHighlight
* Turns on/off highlighting - it may be done for the active layer or the specified net.
...
...
@@ -114,6 +134,16 @@ public:
m_hiContrastEnabled
=
aEnabled
;
}
/**
* Function GetHighContrast
* Returns information about high contrast display mode.
* @return True if the high contrast mode is on, false otherwise.
*/
inline
bool
GetHighContrast
()
const
{
return
m_hiContrastEnabled
;
}
/**
* Function GetColor
* Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer
...
...
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