Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c87aa25e
Commit
c87aa25e
authored
Apr 17, 2003
by
Emmanuel Puig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Added clip region to graphics
* Added functionnality to region
parent
f3545179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/gui/skins/gtk2/gtk2_graphics.cpp
modules/gui/skins/gtk2/gtk2_graphics.cpp
+4
-4
No files found.
modules/gui/skins/gtk2/gtk2_graphics.cpp
View file @
c87aa25e
...
...
@@ -2,7 +2,7 @@
* gtk2_graphics.cpp: GTK2 implementation of the Graphics and Region classes
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_graphics.cpp,v 1.
9 2003/04/16 21:40:07 ipkiss
Exp $
* $Id: gtk2_graphics.cpp,v 1.
10 2003/04/17 16:11:46 karibu
Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -101,7 +101,7 @@ void GTK2Graphics::DrawRect( int x, int y, int w, int h, int color )
//---------------------------------------------------------------------------
void
GTK2Graphics
::
SetClipRegion
(
Region
*
rgn
)
{
/* SelectClipRgn( Image, ( (GTK2Region *)rgn )->GetHandle() );*/
gdk_gc_set_clip_region
(
Gc
,
(
(
GTK2Region
*
)
rgn
)
->
GetHandle
()
);
}
//---------------------------------------------------------------------------
...
...
@@ -133,7 +133,7 @@ GTK2Region::~GTK2Region()
//---------------------------------------------------------------------------
void
GTK2Region
::
AddPoint
(
int
x
,
int
y
)
{
/* AddRectangle( x, y, x + 1, y + 1 );*/
AddRectangle
(
x
,
y
,
1
,
1
);
}
//---------------------------------------------------------------------------
void
GTK2Region
::
AddRectangle
(
int
x
,
int
y
,
int
w
,
int
h
)
...
...
@@ -158,7 +158,7 @@ void GTK2Region::AddElipse( int x, int y, int w, int h )
//---------------------------------------------------------------------------
void
GTK2Region
::
Move
(
int
x
,
int
y
)
{
/* OffsetRgn( Rgn, x, y );*/
gdk_region_offset
(
Rgn
,
x
,
y
);
}
//---------------------------------------------------------------------------
bool
GTK2Region
::
Hit
(
int
x
,
int
y
)
...
...
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