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
ad6c5336
Commit
ad6c5336
authored
Apr 28, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* changed Region into SkinRegion to prepare the X11 port
parent
f38481fd
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
47 additions
and
47 deletions
+47
-47
modules/gui/skins/controls/generic.cpp
modules/gui/skins/controls/generic.cpp
+4
-4
modules/gui/skins/controls/generic.h
modules/gui/skins/controls/generic.h
+3
-3
modules/gui/skins/controls/playlist.cpp
modules/gui/skins/controls/playlist.cpp
+3
-3
modules/gui/skins/controls/playlist.h
modules/gui/skins/controls/playlist.h
+3
-3
modules/gui/skins/controls/slider.cpp
modules/gui/skins/controls/slider.cpp
+2
-2
modules/gui/skins/controls/slider.h
modules/gui/skins/controls/slider.h
+3
-3
modules/gui/skins/controls/text.cpp
modules/gui/skins/controls/text.cpp
+3
-3
modules/gui/skins/controls/text.h
modules/gui/skins/controls/text.h
+3
-3
modules/gui/skins/gtk2/gtk2_graphics.cpp
modules/gui/skins/gtk2/gtk2_graphics.cpp
+2
-2
modules/gui/skins/gtk2/gtk2_graphics.h
modules/gui/skins/gtk2/gtk2_graphics.h
+4
-4
modules/gui/skins/src/graphics.cpp
modules/gui/skins/src/graphics.cpp
+4
-4
modules/gui/skins/src/graphics.h
modules/gui/skins/src/graphics.h
+7
-7
modules/gui/skins/win32/win32_graphics.cpp
modules/gui/skins/win32/win32_graphics.cpp
+2
-2
modules/gui/skins/win32/win32_graphics.h
modules/gui/skins/win32/win32_graphics.h
+4
-4
No files found.
modules/gui/skins/controls/generic.cpp
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* generic.cpp: Generic control, parent of the others
* generic.cpp: Generic control, parent of the others
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: generic.cpp,v 1.
5 2003/04/23 10:29:52
asmax Exp $
* $Id: generic.cpp,v 1.
6 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -196,15 +196,15 @@ void GenericControl::MoveRelative( int xOff, int yOff )
...
@@ -196,15 +196,15 @@ void GenericControl::MoveRelative( int xOff, int yOff )
Top
+=
yOff
;
Top
+=
yOff
;
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
Region
*
GenericControl
::
CreateRegionFromBmp
(
Bitmap
*
bmp
,
int
MoveX
,
int
MoveY
)
Skin
Region
*
GenericControl
::
CreateRegionFromBmp
(
Bitmap
*
bmp
,
int
MoveX
,
int
MoveY
)
{
{
// Initialization
// Initialization
Region
*
Buffer
;
Skin
Region
*
Buffer
;
int
w
,
h
;
int
w
,
h
;
int
x
=
0
,
y
=
0
,
x_first
=
0
;
int
x
=
0
,
y
=
0
,
x_first
=
0
;
bmp
->
GetSize
(
w
,
h
);
bmp
->
GetSize
(
w
,
h
);
Buffer
=
(
Region
*
)
new
OSRegion
;
Buffer
=
(
Skin
Region
*
)
new
OSRegion
;
// Parse bitmap
// Parse bitmap
for
(
y
=
0
;
y
<
h
;
y
++
)
for
(
y
=
0
;
y
<
h
;
y
++
)
...
...
modules/gui/skins/controls/generic.h
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* generic.h: Generic control, parent of the others
* generic.h: Generic control, parent of the others
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: generic.h,v 1.
3 2003/04/21 21:51:16
asmax Exp $
* $Id: generic.h,v 1.
4 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -36,7 +36,7 @@ struct intf_thread_t;
...
@@ -36,7 +36,7 @@ struct intf_thread_t;
class
SkinWindow
;
class
SkinWindow
;
class
Bitmap
;
class
Bitmap
;
class
Graphics
;
class
Graphics
;
class
Region
;
class
Skin
Region
;
class
Event
;
class
Event
;
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
@@ -86,7 +86,7 @@ class GenericControl // This is the generic control class
...
@@ -86,7 +86,7 @@ class GenericControl // This is the generic control class
int
y2
,
int
w2
,
int
h2
,
int
&
x
,
int
&
y
,
int
&
w
,
int
&
h
);
int
y2
,
int
w2
,
int
h2
,
int
&
x
,
int
&
y
,
int
&
w
,
int
&
h
);
// Create a region from a bitmap with transcolor as empty region
// Create a region from a bitmap with transcolor as empty region
Region
*
CreateRegionFromBmp
(
Bitmap
*
bmp
,
int
MoveX
,
int
MoveY
);
Skin
Region
*
CreateRegionFromBmp
(
Bitmap
*
bmp
,
int
MoveX
,
int
MoveY
);
int
Left
;
// Left offset of the control
int
Left
;
// Left offset of the control
int
Top
;
// Top offset of the control
int
Top
;
// Top offset of the control
int
Width
;
// Width of the control
int
Width
;
// Width of the control
...
...
modules/gui/skins/controls/playlist.cpp
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* playlist.cpp: Playlist control
* playlist.cpp: Playlist control
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: playlist.cpp,v 1.
9 2003/04/21 22:12:37
asmax Exp $
* $Id: playlist.cpp,v 1.
10 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -154,7 +154,7 @@ void ControlPlayList::Init()
...
@@ -154,7 +154,7 @@ void ControlPlayList::Init()
TextWidth
-=
TextLeft
;
TextWidth
-=
TextLeft
;
// Set Text Clipping Region
// Set Text Clipping Region
TextClipRgn
=
(
Region
*
)
new
OSRegion
;
TextClipRgn
=
(
Skin
Region
*
)
new
OSRegion
;
for
(
i
=
0
;
i
<
Line
;
i
++
)
for
(
i
=
0
;
i
<
Line
;
i
++
)
{
{
for
(
j
=
0
;
j
<
CaseHeight
;
j
++
)
for
(
j
=
0
;
j
<
CaseHeight
;
j
++
)
...
@@ -279,7 +279,7 @@ void ControlPlayList::Draw( int x, int y, int w, int h, Graphics *dest )
...
@@ -279,7 +279,7 @@ void ControlPlayList::Draw( int x, int y, int w, int h, Graphics *dest )
xI
,
yI
,
wI
,
hI
)
)
xI
,
yI
,
wI
,
hI
)
)
{
{
// Change clipping region
// Change clipping region
Region
*
destClipRgn
=
(
Region
*
)
new
OSRegion
(
0
,
0
,
w
,
h
);
SkinRegion
*
destClipRgn
=
(
Skin
Region
*
)
new
OSRegion
(
0
,
0
,
w
,
h
);
TextClipRgn
->
Move
(
TextLeft
-
x
,
TextTop
-
y
);
TextClipRgn
->
Move
(
TextLeft
-
x
,
TextTop
-
y
);
dest
->
SetClipRegion
(
TextClipRgn
);
dest
->
SetClipRegion
(
TextClipRgn
);
...
...
modules/gui/skins/controls/playlist.h
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* playlist.h: Playlist control
* playlist.h: Playlist control
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: playlist.h,v 1.
4 2003/04/21 22:12:37
asmax Exp $
* $Id: playlist.h,v 1.
5 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -37,7 +37,7 @@ class Graphics;
...
@@ -37,7 +37,7 @@ class Graphics;
class
SkinWindow
;
class
SkinWindow
;
class
SkinFont
;
class
SkinFont
;
class
Bezier
;
class
Bezier
;
class
Region
;
class
Skin
Region
;
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#define MAX_PLAYLIST_SIZE 7
#define MAX_PLAYLIST_SIZE 7
...
@@ -78,7 +78,7 @@ class ControlPlayList : public GenericControl
...
@@ -78,7 +78,7 @@ class ControlPlayList : public GenericControl
int
TextHeight
;
int
TextHeight
;
int
TextWidth
;
int
TextWidth
;
Bezier
*
TextCurve
;
Bezier
*
TextCurve
;
Region
*
TextClipRgn
;
Skin
Region
*
TextClipRgn
;
int
NumOfItems
;
int
NumOfItems
;
int
SelectColor
;
int
SelectColor
;
...
...
modules/gui/skins/controls/slider.cpp
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* slider.cpp: Slider control
* slider.cpp: Slider control
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: slider.cpp,v 1.
8 2003/04/22 17:56:4
4 asmax Exp $
* $Id: slider.cpp,v 1.
9 2003/04/28 12:25:3
4 asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -121,7 +121,7 @@ void ControlSlider::Init()
...
@@ -121,7 +121,7 @@ void ControlSlider::Init()
delete
Curve
;
delete
Curve
;
// Create Hit Region
// Create Hit Region
HitRgn
=
(
Region
*
)
new
OSRegion
;
HitRgn
=
(
Skin
Region
*
)
new
OSRegion
;
// Create slider hit region and move cursor inside control
// Create slider hit region and move cursor inside control
for
(
i
=
0
;
i
<=
MaxValue
;
i
++
)
for
(
i
=
0
;
i
<=
MaxValue
;
i
++
)
...
...
modules/gui/skins/controls/slider.h
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* slider.h: Slider control
* slider.h: Slider control
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: slider.h,v 1.
4 2003/04/21 21:51:16
asmax Exp $
* $Id: slider.h,v 1.
5 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -36,7 +36,7 @@ class Event;
...
@@ -36,7 +36,7 @@ class Event;
class
Graphics
;
class
Graphics
;
class
SkinWindow
;
class
SkinWindow
;
class
Bezier
;
class
Bezier
;
class
Region
;
class
Skin
Region
;
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class
ControlSlider
:
public
GenericControl
class
ControlSlider
:
public
GenericControl
...
@@ -55,7 +55,7 @@ class ControlSlider : public GenericControl
...
@@ -55,7 +55,7 @@ class ControlSlider : public GenericControl
int
CHeight
;
// Height of cursor
int
CHeight
;
// Height of cursor
int
*
CursorX
;
// Array of x coordinates of slider points
int
*
CursorX
;
// Array of x coordinates of slider points
int
*
CursorY
;
// Array of y coordinates of slider points
int
*
CursorY
;
// Array of y coordinates of slider points
Region
*
HitRgn
;
// Active region for mouse events
Skin
Region
*
HitRgn
;
// Active region for mouse events
int
LastRefreshTime
;
int
LastRefreshTime
;
// Slider properties
// Slider properties
...
...
modules/gui/skins/controls/text.cpp
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* text.cpp: Text control
* text.cpp: Text control
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: text.cpp,v 1.
7 2003/04/21 21:51:16
asmax Exp $
* $Id: text.cpp,v 1.
8 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -231,7 +231,7 @@ void ControlText::SetSize()
...
@@ -231,7 +231,7 @@ void ControlText::SetSize()
if
(
TextClipRgn
!=
NULL
)
if
(
TextClipRgn
!=
NULL
)
delete
TextClipRgn
;
delete
TextClipRgn
;
TextClipRgn
=
(
Region
*
)
new
OSRegion
(
Left
,
Top
,
Width
,
Height
);
TextClipRgn
=
(
Skin
Region
*
)
new
OSRegion
(
Left
,
Top
,
Width
,
Height
);
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
@@ -300,7 +300,7 @@ void ControlText::Draw( int x, int y, int w, int h, Graphics *dest )
...
@@ -300,7 +300,7 @@ void ControlText::Draw( int x, int y, int w, int h, Graphics *dest )
}
}
// Reset clipping region to old region
// Reset clipping region to old region
Region
*
destClipRgn
=
(
Region
*
)
new
OSRegion
(
0
,
0
,
w
,
h
);
SkinRegion
*
destClipRgn
=
(
Skin
Region
*
)
new
OSRegion
(
0
,
0
,
w
,
h
);
dest
->
SetClipRegion
(
destClipRgn
);
dest
->
SetClipRegion
(
destClipRgn
);
delete
destClipRgn
;
delete
destClipRgn
;
TextClipRgn
->
Move
(
x
,
y
);
TextClipRgn
->
Move
(
x
,
y
);
...
...
modules/gui/skins/controls/text.h
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* text.h: Text control
* text.h: Text control
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: text.h,v 1.
4 2003/04/21 22:12:37
asmax Exp $
* $Id: text.h,v 1.
5 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -36,7 +36,7 @@ class Event;
...
@@ -36,7 +36,7 @@ class Event;
class
BitmapBank
;
class
BitmapBank
;
class
Graphics
;
class
Graphics
;
class
SkinWindow
;
class
SkinWindow
;
class
Region
;
class
Skin
Region
;
class
SkinFont
;
class
SkinFont
;
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
@@ -66,7 +66,7 @@ class ControlText : public GenericControl
...
@@ -66,7 +66,7 @@ class ControlText : public GenericControl
string
FontName
;
string
FontName
;
list
<
string
>
DisplayList
;
list
<
string
>
DisplayList
;
list
<
string
>::
const_iterator
Display
;
list
<
string
>::
const_iterator
Display
;
Region
*
TextClipRgn
;
Skin
Region
*
TextClipRgn
;
// Internal methods
// Internal methods
void
SetSize
();
void
SetSize
();
...
...
modules/gui/skins/gtk2/gtk2_graphics.cpp
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_graphics.cpp: GTK2 implementation of the Graphics and Region classes
* gtk2_graphics.cpp: GTK2 implementation of the Graphics and Region classes
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_graphics.cpp,v 1.1
6 2003/04/28 12:00:13
asmax Exp $
* $Id: gtk2_graphics.cpp,v 1.1
7 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -79,7 +79,7 @@ void GTK2Graphics::DrawRect( int x, int y, int w, int h, int color )
...
@@ -79,7 +79,7 @@ void GTK2Graphics::DrawRect( int x, int y, int w, int h, int color )
gdk_draw_rectangle
(
Image
,
Gc
,
TRUE
,
x
,
y
,
w
,
h
);
gdk_draw_rectangle
(
Image
,
Gc
,
TRUE
,
x
,
y
,
w
,
h
);
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void
GTK2Graphics
::
SetClipRegion
(
Region
*
rgn
)
void
GTK2Graphics
::
SetClipRegion
(
Skin
Region
*
rgn
)
{
{
gdk_gc_set_clip_region
(
Gc
,
(
(
GTK2Region
*
)
rgn
)
->
GetHandle
()
);
gdk_gc_set_clip_region
(
Gc
,
(
(
GTK2Region
*
)
rgn
)
->
GetHandle
()
);
}
}
...
...
modules/gui/skins/gtk2/gtk2_graphics.h
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk2_graphics.h: GTK2 implementation of the Graphics and Region classes
* gtk2_graphics.h: GTK2 implementation of the Graphics and Region classes
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_graphics.h,v 1.
5 2003/04/21 21:51:16
asmax Exp $
* $Id: gtk2_graphics.h,v 1.
6 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include <gdk/gdk.h>
#include <gdk/gdk.h>
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class
Region
;
class
Skin
Region
;
class
SkinWindow
;
class
SkinWindow
;
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
@@ -54,7 +54,7 @@ class GTK2Graphics : public Graphics
...
@@ -54,7 +54,7 @@ class GTK2Graphics : public Graphics
virtual
void
DrawRect
(
int
x
,
int
y
,
int
w
,
int
h
,
int
color
);
virtual
void
DrawRect
(
int
x
,
int
y
,
int
w
,
int
h
,
int
color
);
// Clipping methods
// Clipping methods
virtual
void
SetClipRegion
(
Region
*
rgn
);
virtual
void
SetClipRegion
(
Skin
Region
*
rgn
);
virtual
void
ResetClipRegion
();
virtual
void
ResetClipRegion
();
// Specific GTK2 methods
// Specific GTK2 methods
...
@@ -62,7 +62,7 @@ class GTK2Graphics : public Graphics
...
@@ -62,7 +62,7 @@ class GTK2Graphics : public Graphics
GdkGC
*
GetGC
()
{
return
Gc
;
};
GdkGC
*
GetGC
()
{
return
Gc
;
};
};
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class
GTK2Region
:
public
Region
class
GTK2Region
:
public
Skin
Region
{
{
private:
private:
GdkRegion
*
Rgn
;
GdkRegion
*
Rgn
;
...
...
modules/gui/skins/src/graphics.cpp
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* graphics.cpp: Graphics class
* graphics.cpp: Graphics class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: graphics.cpp,v 1.
1 2003/03/18 02:21:47 ipkiss
Exp $
* $Id: graphics.cpp,v 1.
2 2003/04/28 12:25:34 asmax
Exp $
*
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -47,15 +47,15 @@ Graphics::~Graphics()
...
@@ -47,15 +47,15 @@ Graphics::~Graphics()
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// REGION
// REGION
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
Region
::
Region
()
SkinRegion
::
Skin
Region
()
{
{
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
Region
::
Region
(
int
x
,
int
y
,
int
w
,
int
h
)
SkinRegion
::
Skin
Region
(
int
x
,
int
y
,
int
w
,
int
h
)
{
{
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
Region
::~
Region
()
SkinRegion
::~
Skin
Region
()
{
{
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
modules/gui/skins/src/graphics.h
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* graphics.h: Graphics and Region classes
* graphics.h: Graphics and Region classes
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: graphics.h,v 1.
2 2003/04/19 02:34:47 karibu
Exp $
* $Id: graphics.h,v 1.
3 2003/04/28 12:25:34 asmax
Exp $
*
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#define VLC_SKIN_GRAPHICS
#define VLC_SKIN_GRAPHICS
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class
Region
;
class
Skin
Region
;
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class
Graphics
class
Graphics
...
@@ -50,20 +50,20 @@ class Graphics
...
@@ -50,20 +50,20 @@ class Graphics
virtual
void
DrawRect
(
int
x
,
int
y
,
int
w
,
int
h
,
int
color
)
=
0
;
virtual
void
DrawRect
(
int
x
,
int
y
,
int
w
,
int
h
,
int
color
)
=
0
;
// Clipping methods
// Clipping methods
virtual
void
SetClipRegion
(
Region
*
rgn
)
=
0
;
virtual
void
SetClipRegion
(
Skin
Region
*
rgn
)
=
0
;
virtual
void
ResetClipRegion
()
=
0
;
virtual
void
ResetClipRegion
()
=
0
;
};
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class
Region
class
Skin
Region
{
{
private:
private:
public:
public:
// Constructor
// Constructor
Region
();
Skin
Region
();
Region
(
int
x
,
int
y
,
int
w
,
int
h
);
Skin
Region
(
int
x
,
int
y
,
int
w
,
int
h
);
// Destructor
// Destructor
virtual
~
Region
();
virtual
~
Skin
Region
();
// Modify region
// Modify region
virtual
void
Move
(
int
x
,
int
y
)
=
0
;
virtual
void
Move
(
int
x
,
int
y
)
=
0
;
virtual
void
AddPoint
(
int
x
,
int
y
)
=
0
;
virtual
void
AddPoint
(
int
x
,
int
y
)
=
0
;
...
...
modules/gui/skins/win32/win32_graphics.cpp
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* win32_graphics.cpp: Win32 implementation of the Graphics and Region classes
* win32_graphics.cpp: Win32 implementation of the Graphics and Region classes
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: win32_graphics.cpp,v 1.
5 2003/04/21 21:51:16
asmax Exp $
* $Id: win32_graphics.cpp,v 1.
6 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -82,7 +82,7 @@ void Win32Graphics::DrawRect( int x, int y, int w, int h, int color )
...
@@ -82,7 +82,7 @@ void Win32Graphics::DrawRect( int x, int y, int w, int h, int color )
delete
r
;
delete
r
;
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
void
Win32Graphics
::
SetClipRegion
(
Region
*
rgn
)
void
Win32Graphics
::
SetClipRegion
(
Skin
Region
*
rgn
)
{
{
SelectClipRgn
(
Image
,
(
(
Win32Region
*
)
rgn
)
->
GetHandle
()
);
SelectClipRgn
(
Image
,
(
(
Win32Region
*
)
rgn
)
->
GetHandle
()
);
}
}
...
...
modules/gui/skins/win32/win32_graphics.h
View file @
ad6c5336
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* win32_graphics.h: Win32 implementation of the Graphics and Region classes
* win32_graphics.h: Win32 implementation of the Graphics and Region classes
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: win32_graphics.h,v 1.
4 2003/04/21 21:51:16
asmax Exp $
* $Id: win32_graphics.h,v 1.
5 2003/04/28 12:25:34
asmax Exp $
*
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#define VLC_SKIN_WIN32_GRAPHICS
#define VLC_SKIN_WIN32_GRAPHICS
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class
Region
;
class
Skin
Region
;
class
SkinWindow
;
class
SkinWindow
;
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
@@ -51,14 +51,14 @@ class Win32Graphics : public Graphics
...
@@ -51,14 +51,14 @@ class Win32Graphics : public Graphics
virtual
void
DrawRect
(
int
x
,
int
y
,
int
w
,
int
h
,
int
color
);
virtual
void
DrawRect
(
int
x
,
int
y
,
int
w
,
int
h
,
int
color
);
// Clipping methods
// Clipping methods
virtual
void
SetClipRegion
(
Region
*
rgn
);
virtual
void
SetClipRegion
(
Skin
Region
*
rgn
);
virtual
void
ResetClipRegion
();
virtual
void
ResetClipRegion
();
// Specific win32 methods
// Specific win32 methods
HDC
GetImageHandle
()
{
return
Image
;
};
HDC
GetImageHandle
()
{
return
Image
;
};
};
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class
Win32Region
:
public
Region
class
Win32Region
:
public
Skin
Region
{
{
private:
private:
HRGN
Rgn
;
HRGN
Rgn
;
...
...
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