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
dea79320
Commit
dea79320
authored
Sep 18, 2013
by
tomasz.wlostowski@cern.ch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VIEW: added GetTopLayer() method
parent
23298886
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
view.cpp
common/view/view.cpp
+8
-0
view.h
include/view/view.h
+2
-0
No files found.
common/view/view.cpp
View file @
dea79320
...
...
@@ -452,6 +452,14 @@ void VIEW::ChangeLayerDepth( int aLayer, int aDepth )
m_layers
[
aLayer
].
items
->
Query
(
r
,
visitor
);
}
int
VIEW
::
GetTopLayer
(
)
const
{
if
(
m_topLayers
.
size
()
==
0
)
return
0
;
return
*
m_topLayers
.
begin
();
}
void
VIEW
::
SetTopLayer
(
int
aLayer
,
bool
aEnabled
)
{
...
...
include/view/view.h
View file @
dea79320
...
...
@@ -362,6 +362,8 @@ public:
*/
void
EnableTopLayer
(
bool
aEnable
);
int
GetTopLayer
()
const
;
/**
* Function ClearTopLayers()
* Removes all layers from the on-the-top set (they are no longer displayed over the rest of
...
...
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