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
e0a50df3
Commit
e0a50df3
authored
Aug 15, 2006
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2/controls/*: forward the onResize() method to the decorated controls
parent
7ea9e5cc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
modules/gui/skins2/controls/ctrl_move.cpp
modules/gui/skins2/controls/ctrl_move.cpp
+6
-0
modules/gui/skins2/controls/ctrl_move.hpp
modules/gui/skins2/controls/ctrl_move.hpp
+4
-1
modules/gui/skins2/controls/ctrl_resize.cpp
modules/gui/skins2/controls/ctrl_resize.cpp
+6
-0
modules/gui/skins2/controls/ctrl_resize.hpp
modules/gui/skins2/controls/ctrl_resize.hpp
+3
-0
No files found.
modules/gui/skins2/controls/ctrl_move.cpp
View file @
e0a50df3
...
@@ -86,6 +86,12 @@ const Position *CtrlMove::getPosition() const
...
@@ -86,6 +86,12 @@ const Position *CtrlMove::getPosition() const
}
}
void
CtrlMove
::
onResize
()
{
m_rCtrl
.
onResize
();
}
void
CtrlMove
::
handleEvent
(
EvtGeneric
&
rEvent
)
void
CtrlMove
::
handleEvent
(
EvtGeneric
&
rEvent
)
{
{
m_pEvt
=
&
rEvent
;
m_pEvt
=
&
rEvent
;
...
...
modules/gui/skins2/controls/ctrl_move.hpp
View file @
e0a50df3
...
@@ -58,7 +58,10 @@ class CtrlMove: public CtrlFlat
...
@@ -58,7 +58,10 @@ class CtrlMove: public CtrlFlat
/// Get the position of the decorated control in the layout, if any
/// Get the position of the decorated control in the layout, if any
virtual
const
Position
*
getPosition
()
const
;
virtual
const
Position
*
getPosition
()
const
;
/// Get the type of control (custom RTTI)
/// Method called when the control is resized
virtual
void
onResize
();
/// Get the type of control (custom RTTI)
virtual
string
getType
()
const
{
return
m_rCtrl
.
getType
();
}
virtual
string
getType
()
const
{
return
m_rCtrl
.
getType
();
}
private:
private:
...
...
modules/gui/skins2/controls/ctrl_resize.cpp
View file @
e0a50df3
...
@@ -95,6 +95,12 @@ const Position *CtrlResize::getPosition() const
...
@@ -95,6 +95,12 @@ const Position *CtrlResize::getPosition() const
}
}
void
CtrlResize
::
onResize
()
{
m_rCtrl
.
onResize
();
}
void
CtrlResize
::
handleEvent
(
EvtGeneric
&
rEvent
)
void
CtrlResize
::
handleEvent
(
EvtGeneric
&
rEvent
)
{
{
m_pEvt
=
&
rEvent
;
m_pEvt
=
&
rEvent
;
...
...
modules/gui/skins2/controls/ctrl_resize.hpp
View file @
e0a50df3
...
@@ -59,6 +59,9 @@ class CtrlResize: public CtrlFlat
...
@@ -59,6 +59,9 @@ class CtrlResize: public CtrlFlat
/// Get the position of the decorated control in the layout, if any
/// Get the position of the decorated control in the layout, if any
virtual
const
Position
*
getPosition
()
const
;
virtual
const
Position
*
getPosition
()
const
;
/// Method called when the control is resized
virtual
void
onResize
();
/// Get the type of control (custom RTTI)
/// Get the type of control (custom RTTI)
virtual
string
getType
()
const
{
return
m_rCtrl
.
getType
();
}
virtual
string
getType
()
const
{
return
m_rCtrl
.
getType
();
}
...
...
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