Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
7ce614bd
Commit
7ce614bd
authored
Apr 03, 2004
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2: when the user click on a window, raise onl this window.
This avoids a flickering when 2 windows are overlapping.
parent
1200a79d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
modules/gui/skins2/src/generic_window.cpp
modules/gui/skins2/src/generic_window.cpp
+2
-2
modules/gui/skins2/src/generic_window.hpp
modules/gui/skins2/src/generic_window.hpp
+3
-3
modules/gui/skins2/src/top_window.cpp
modules/gui/skins2/src/top_window.cpp
+2
-2
modules/gui/skins2/src/window_manager.hpp
modules/gui/skins2/src/window_manager.hpp
+5
-2
No files found.
modules/gui/skins2/src/generic_window.cpp
View file @
7ce614bd
...
...
@@ -72,13 +72,13 @@ void GenericWindow::processEvent( EvtRefresh &rEvtRefresh )
}
void
GenericWindow
::
show
()
void
GenericWindow
::
show
()
const
{
m_varVisible
.
set
(
true
);
}
void
GenericWindow
::
hide
()
void
GenericWindow
::
hide
()
const
{
m_varVisible
.
set
(
false
);
}
...
...
modules/gui/skins2/src/generic_window.hpp
View file @
7ce614bd
...
...
@@ -84,10 +84,10 @@ class GenericWindow: public SkinObject, public Observer<VarBool>
/// only by the window manager or by inheritant classes.
//@{
/// Show the window
virtual
void
show
();
virtual
void
show
()
const
;
/// Hide the window
virtual
void
hide
();
virtual
void
hide
()
const
;
/// Move the window
virtual
void
move
(
int
left
,
int
top
);
...
...
@@ -114,7 +114,7 @@ class GenericWindow: public SkinObject, public Observer<VarBool>
/// OS specific implementation
OSWindow
*
m_pOsWindow
;
/// Variable for the visibility of the window
VarBoolImpl
m_varVisible
;
mutable
VarBoolImpl
m_varVisible
;
/// Method called when the observed variable is modified
virtual
void
onUpdate
(
Subject
<
VarBool
>
&
rVariable
);
...
...
modules/gui/skins2/src/top_window.cpp
View file @
7ce614bd
...
...
@@ -130,8 +130,8 @@ void TopWindow::processEvent( EvtMouse &rEvtMouse )
// Change the focused control
if
(
rEvtMouse
.
getAction
()
==
EvtMouse
::
kDown
)
{
// Raise
all the windows
m_rWindowManager
.
raise
All
(
*
this
);
// Raise
the window
m_rWindowManager
.
raise
(
*
this
);
if
(
pNewHitControl
&&
pNewHitControl
->
isFocusable
()
)
{
...
...
modules/gui/skins2/src/window_manager.hpp
View file @
7ce614bd
...
...
@@ -76,11 +76,14 @@ class WindowManager: public SkinObject
/// Hide all the registered windows
void
hideAll
()
const
;
/// Raise the given window
void
raise
(
TopWindow
&
rWindow
)
const
{
rWindow
.
raise
();
}
/// Show the given window
void
show
(
TopWindow
&
rWindow
)
{
rWindow
.
show
();
}
void
show
(
TopWindow
&
rWindow
)
const
{
rWindow
.
show
();
}
/// Hide the given window
void
hide
(
TopWindow
&
rWindow
)
{
rWindow
.
hide
();
}
void
hide
(
TopWindow
&
rWindow
)
const
{
rWindow
.
hide
();
}
/// Toggle all the windows on top
void
toggleOnTop
();
...
...
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