Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
65e0358c
Commit
65e0358c
authored
Feb 25, 2007
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixed build of skins2 interface on MacOS X (renamed Rect into SkinsRect
to avoid a conflict with Carbon API)
parent
e7bb450d
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
116 additions
and
83 deletions
+116
-83
configure.ac
configure.ac
+8
-1
modules/gui/skins2/macosx/macosx_factory.cpp
modules/gui/skins2/macosx/macosx_factory.cpp
+4
-4
modules/gui/skins2/macosx/macosx_factory.hpp
modules/gui/skins2/macosx/macosx_factory.hpp
+2
-2
modules/gui/skins2/macosx/macosx_graphics.cpp
modules/gui/skins2/macosx/macosx_graphics.cpp
+14
-2
modules/gui/skins2/macosx/macosx_graphics.hpp
modules/gui/skins2/macosx/macosx_graphics.hpp
+3
-1
modules/gui/skins2/macosx/macosx_loop.cpp
modules/gui/skins2/macosx/macosx_loop.cpp
+32
-40
modules/gui/skins2/macosx/macosx_loop.hpp
modules/gui/skins2/macosx/macosx_loop.hpp
+4
-3
modules/gui/skins2/macosx/macosx_timer.cpp
modules/gui/skins2/macosx/macosx_timer.cpp
+3
-2
modules/gui/skins2/macosx/macosx_timer.hpp
modules/gui/skins2/macosx/macosx_timer.hpp
+4
-3
modules/gui/skins2/macosx/macosx_window.cpp
modules/gui/skins2/macosx/macosx_window.cpp
+18
-7
modules/gui/skins2/macosx/macosx_window.hpp
modules/gui/skins2/macosx/macosx_window.hpp
+6
-0
modules/gui/skins2/src/generic_layout.cpp
modules/gui/skins2/src/generic_layout.cpp
+1
-1
modules/gui/skins2/src/generic_layout.hpp
modules/gui/skins2/src/generic_layout.hpp
+1
-1
modules/gui/skins2/src/os_factory.hpp
modules/gui/skins2/src/os_factory.hpp
+1
-1
modules/gui/skins2/src/window_manager.cpp
modules/gui/skins2/src/window_manager.cpp
+5
-5
modules/gui/skins2/src/window_manager.hpp
modules/gui/skins2/src/window_manager.hpp
+1
-1
modules/gui/skins2/utils/position.cpp
modules/gui/skins2/utils/position.cpp
+1
-1
modules/gui/skins2/utils/position.hpp
modules/gui/skins2/utils/position.hpp
+2
-2
modules/gui/skins2/win32/win32_factory.cpp
modules/gui/skins2/win32/win32_factory.cpp
+2
-2
modules/gui/skins2/win32/win32_factory.hpp
modules/gui/skins2/win32/win32_factory.hpp
+1
-1
modules/gui/skins2/x11/x11_factory.cpp
modules/gui/skins2/x11/x11_factory.cpp
+2
-2
modules/gui/skins2/x11/x11_factory.hpp
modules/gui/skins2/x11/x11_factory.hpp
+1
-1
No files found.
configure.ac
View file @
65e0358c
...
...
@@ -4620,13 +4620,20 @@ if test "${enable_skins2}" = "yes" ||
VLC_ADD_CXXFLAGS([skins2],[-O2 -fno-rtti])
VLC_ADD_LDFLAGS([skins2],[-loleaut32 -lwinspool -lwinmm -lshell32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -lcomdlg32 -lole32 -luuid -lcomctl32])
else if test "${skins2_missing_lib}" = "no" && (test "${SYS}" = "darwin"); then
VLC_ADD_PLUGINS([skins2])
ALIASES="${ALIASES} svlc"
VLC_ADD_CPPFLAGS([skins2],[-Imodules/gui/skins2 -DMACOSX_SKINS])
VLC_ADD_CXXFLAGS([skins2],[-O2 -fno-rtti])
VLC_ADD_LDFLAGS([skins2],[-framework Carbon])
else if test "${skins2_missing_lib}" = "no"; then
VLC_ADD_PLUGINS([skins2])
ALIASES="${ALIASES} svlc"
VLC_ADD_CPPFLAGS([skins2],[-Imodules/gui/skins2 ${X_CFLAGS} -DX11_SKINS])
VLC_ADD_CXXFLAGS([skins2],[-O2 -fno-rtti])
VLC_ADD_LDFLAGS([skins2],[${X_LIBS} ${X_PRE_LIBS} -lXext -lX11])
fi fi
fi fi
fi
fi
...
...
modules/gui/skins2/macosx/macosx_factory.cpp
View file @
65e0358c
...
...
@@ -99,9 +99,9 @@ void MacOSXFactory::removeFromTaskBar()
// TODO
}
OSTimer
*
MacOSXFactory
::
createOSTimer
(
const
Callback
&
rCallback
)
OSTimer
*
MacOSXFactory
::
createOSTimer
(
CmdGeneric
&
rCmd
)
{
return
new
MacOSXTimer
(
getIntf
(),
rC
allback
);
return
new
MacOSXTimer
(
getIntf
(),
rC
md
);
}
...
...
@@ -139,10 +139,10 @@ int MacOSXFactory::getScreenHeight() const
}
Rect
MacOSXFactory
::
getWorkArea
()
const
Skins
Rect
MacOSXFactory
::
getWorkArea
()
const
{
// XXX
return
Rect
(
0
,
0
,
getScreenWidth
(),
getScreenHeight
()
);
return
Skins
Rect
(
0
,
0
,
getScreenWidth
(),
getScreenHeight
()
);
}
...
...
modules/gui/skins2/macosx/macosx_factory.hpp
View file @
65e0358c
...
...
@@ -47,7 +47,7 @@ class MacOSXFactory: public OSFactory
virtual
void
destroyOSLoop
();
/// Instantiate an OSTimer with the given callback
virtual
OSTimer
*
createOSTimer
(
const
Callback
&
rCallback
);
virtual
OSTimer
*
createOSTimer
(
CmdGeneric
&
rCmd
);
/// Minimize all the windows
virtual
void
minimize
();
...
...
@@ -90,7 +90,7 @@ class MacOSXFactory: public OSFactory
virtual
int
getScreenHeight
()
const
;
/// Get the work area (screen area without taskbars)
virtual
Rect
getWorkArea
()
const
;
virtual
Skins
Rect
getWorkArea
()
const
;
/// Get the position of the mouse
virtual
void
getMousePos
(
int
&
rXPos
,
int
&
rYPos
)
const
;
...
...
modules/gui/skins2/macosx/macosx_graphics.cpp
View file @
65e0358c
...
...
@@ -24,6 +24,7 @@
#ifdef MACOSX_SKINS
#include "macosx_graphics.hpp"
#include "macosx_window.hpp"
MacOSXGraphics
::
MacOSXGraphics
(
intf_thread_t
*
pIntf
,
int
width
,
int
height
)
:
...
...
@@ -55,7 +56,7 @@ void MacOSXGraphics::drawGraphics( const OSGraphics &rGraphics, int xSrc,
void
MacOSXGraphics
::
drawBitmap
(
const
GenericBitmap
&
rBitmap
,
int
xSrc
,
int
ySrc
,
int
xDest
,
int
yDest
,
int
width
,
int
height
)
int
height
,
bool
blend
)
{
// TODO
}
...
...
@@ -84,7 +85,18 @@ void MacOSXGraphics::applyMaskToWindow( OSWindow &rWindow )
void
MacOSXGraphics
::
copyToWindow
(
OSWindow
&
rWindow
,
int
xSrc
,
int
ySrc
,
int
width
,
int
height
,
int
xDest
,
int
yDest
)
{
// TODO
// Get the graphics context
WindowRef
win
=
((
MacOSXWindow
&
)
rWindow
).
getWindowRef
();
SetPortWindowPort
(
win
);
GrafPtr
port
=
GetWindowPort
(
win
);
CGContextRef
gc
;
QDBeginCGContext
(
port
,
&
gc
);
// CGContextSetRGBFillColor( gc, 1, 0, 0, 1 );
// CGContextFillRect( gc, CGRectMake( 0, 0, 50, 50 ));
// Release the graphics context
QDEndCGContext
(
port
,
&
gc
);
}
...
...
modules/gui/skins2/macosx/macosx_graphics.hpp
View file @
65e0358c
...
...
@@ -25,6 +25,7 @@
#define MACOSX_GRAPHICS_HPP
#include "../src/os_graphics.hpp"
#include <Carbon/Carbon.h>
class
GenericWindow
;
class
GenericBitmap
;
...
...
@@ -48,7 +49,8 @@ class MacOSXGraphics: public OSGraphics
/// Render a bitmap on this graphics
virtual
void
drawBitmap
(
const
GenericBitmap
&
rBitmap
,
int
xSrc
=
0
,
int
ySrc
=
0
,
int
xDest
=
0
,
int
yDest
=
0
,
int
width
=
-
1
,
int
height
=
-
1
);
int
width
=
-
1
,
int
height
=
-
1
,
bool
blend
=
false
);
/// Draw a filled rectangle on the grahics (color is #RRGGBB)
virtual
void
fillRect
(
int
left
,
int
top
,
int
width
,
int
height
,
...
...
modules/gui/skins2/macosx/macosx_loop.cpp
View file @
65e0358c
...
...
@@ -23,8 +23,29 @@
#ifdef MACOSX_SKINS
#include <Carbon/Carbon.h>
#include "macosx_loop.hpp"
#include "macosx_window.hpp"
#include "../src/generic_window.hpp"
#include "../events/evt_refresh.hpp"
static
pascal
OSStatus
WinEventHandler
(
EventHandlerCallRef
handler
,
EventRef
event
,
void
*
data
)
{
GenericWindow
*
pWin
=
(
GenericWindow
*
)
data
;
intf_thread_t
*
pIntf
=
pWin
->
getIntf
();
//fprintf(stderr, "event\n" );
UInt32
evclass
=
GetEventClass
(
event
);
UInt32
evkind
=
GetEventKind
(
event
);
switch
(
evclass
)
{
case
kEventClassWindow
:
EvtRefresh
evt
(
pIntf
,
0
,
0
,
-
1
,
-
1
);
pWin
->
processEvent
(
evt
);
break
;
}
}
MacOSXLoop
::
MacOSXLoop
(
intf_thread_t
*
pIntf
)
:
...
...
@@ -64,41 +85,7 @@ void MacOSXLoop::run()
// Main event loop
while
(
!
m_exit
)
{
EventRef
pEvent
;
OSStatus
err
=
ReceiveNextEvent
(
0
,
NULL
,
kEventDurationForever
,
true
,
&
pEvent
);
if
(
err
!=
noErr
)
{
// Get the event type
UInt32
evClass
=
GetEventClass
(
pEvent
);
switch
(
evClass
)
{
case
kEventClassMouse
:
{
break
;
}
case
kEventClassKeyboard
:
{
break
;
}
case
kEventClassWindow
:
{
handleWindowEvent
(
pEvent
);
break
;
}
default:
{
EventTargetRef
pTarget
;
pTarget
=
GetEventDispatcherTarget
();
SendEventToEventTarget
(
pEvent
,
pTarget
);
ReleaseEvent
(
pEvent
);
}
}
}
sleep
(
1
);
}
}
...
...
@@ -109,11 +96,16 @@ void MacOSXLoop::exit()
}
void
MacOSXLoop
::
handleWindowEvent
(
EventRef
pEvent
)
void
MacOSXLoop
::
registerWindow
(
GenericWindow
&
rGenWin
,
WindowRef
win
)
{
UInt32
evKind
=
GetEventKind
(
pEvent
);
// Create the event handler
EventTypeSpec
evList
[]
=
{
{
kEventClassWindow
,
kEventWindowUpdate
},
{
kEventClassMouse
,
kEventMouseMoved
}
};
EventHandlerUPP
handler
=
NewEventHandlerUPP
(
WinEventHandler
);
InstallWindowEventHandler
(
win
,
handler
,
GetEventTypeCount
(
evList
),
evList
,
&
rGenWin
,
NULL
);
}
#endif
modules/gui/skins2/macosx/macosx_loop.hpp
View file @
65e0358c
...
...
@@ -25,6 +25,7 @@
#define MACOSX_LOOP_HPP
#include "../src/os_loop.hpp"
#include <Carbon/Carbon.h>
class
MacOSXDisplay
;
class
GenericWindow
;
...
...
@@ -45,15 +46,15 @@ class MacOSXLoop: public OSLoop
/// Exit the main loop
virtual
void
exit
();
// Handle a window event
void
registerWindow
(
GenericWindow
&
rGenWin
,
WindowRef
win
);
private:
// Private because it's a singleton
MacOSXLoop
(
intf_thread_t
*
pIntf
);
virtual
~
MacOSXLoop
();
// Flag set to exit the loop
bool
m_exit
;
// Handle a window event
void
handleWindowEvent
(
EventRef
pEvent
);
};
#endif
modules/gui/skins2/macosx/macosx_timer.cpp
View file @
65e0358c
...
...
@@ -24,10 +24,11 @@
#ifdef MACOSX_SKINS
#include "macosx_timer.hpp"
#include "../commands/cmd_generic.hpp"
MacOSXTimer
::
MacOSXTimer
(
intf_thread_t
*
pIntf
,
const
Callback
&
rCallback
)
:
OSTimer
(
pIntf
),
m_
callback
(
rCallback
)
MacOSXTimer
::
MacOSXTimer
(
intf_thread_t
*
pIntf
,
CmdGeneric
&
rCmd
)
:
OSTimer
(
pIntf
),
m_
rCommand
(
rCmd
)
{
// TODO
}
...
...
modules/gui/skins2/macosx/macosx_timer.hpp
View file @
65e0358c
...
...
@@ -28,13 +28,14 @@
// Forward declaration
class
MacOSXTimerLoop
;
class
CmdGeneric
;
// MacOSX specific timer
class
MacOSXTimer
:
public
OSTimer
{
public:
MacOSXTimer
(
intf_thread_t
*
pIntf
,
const
Callback
&
rCallback
);
MacOSXTimer
(
intf_thread_t
*
pIntf
,
CmdGeneric
&
rCmd
);
virtual
~
MacOSXTimer
();
/// (Re)start the timer with the given delay (in ms). If oneShot is
...
...
@@ -45,8 +46,8 @@ class MacOSXTimer: public OSTimer
virtual
void
stop
();
private:
/// C
allback
to execute
C
allback
m_callback
;
/// C
ommand
to execute
C
mdGeneric
&
m_rCommand
;
};
...
...
modules/gui/skins2/macosx/macosx_window.cpp
View file @
65e0358c
...
...
@@ -24,6 +24,8 @@
#ifdef MACOSX_SKINS
#include "macosx_window.hpp"
#include "macosx_loop.hpp"
#include "../src/os_factory.hpp"
MacOSXWindow
::
MacOSXWindow
(
intf_thread_t
*
pIntf
,
GenericWindow
&
rWindow
,
...
...
@@ -31,43 +33,52 @@ MacOSXWindow::MacOSXWindow( intf_thread_t *pIntf, GenericWindow &rWindow,
MacOSXWindow
*
pParentWindow
)
:
OSWindow
(
pIntf
),
m_pParent
(
pParentWindow
),
m_dragDrop
(
dragDrop
)
{
// TODO
// Create the window
Rect
rect
;
SetRect
(
&
rect
,
0
,
0
,
0
,
0
);
CreateNewWindow
(
kDocumentWindowClass
,
kWindowNoShadowAttribute
|
kWindowNoTitleBarAttribute
,
&
rect
,
&
m_win
);
// Create the event handler for this window
OSFactory
*
pOSFactory
=
OSFactory
::
instance
(
getIntf
()
);
((
MacOSXLoop
*
)
pOSFactory
->
getOSLoop
())
->
registerWindow
(
rWindow
,
m_win
);
}
MacOSXWindow
::~
MacOSXWindow
()
{
// TODO
DisposeWindow
(
m_win
);
}
void
MacOSXWindow
::
show
(
int
left
,
int
top
)
const
{
// TODO
ShowWindow
(
m_win
);
}
void
MacOSXWindow
::
hide
()
const
{
// TODO
HideWindow
(
m_win
);
}
void
MacOSXWindow
::
moveResize
(
int
left
,
int
top
,
int
width
,
int
height
)
const
{
// TODO
MoveWindow
(
m_win
,
left
,
top
,
false
);
SizeWindow
(
m_win
,
width
,
height
,
true
);
}
void
MacOSXWindow
::
raise
()
const
{
// TODO
SelectWindow
(
m_win
);
}
void
MacOSXWindow
::
setOpacity
(
uint8_t
value
)
const
{
// TODO
SetWindowAlpha
(
m_win
,
(
float
)
value
/
255.0
);
}
...
...
modules/gui/skins2/macosx/macosx_window.hpp
View file @
65e0358c
...
...
@@ -25,6 +25,7 @@
#define MACOSX_WINDOW_HPP
#include "../src/os_window.hpp"
#include <Carbon/Carbon.h>
class
MacOSXDisplay
;
class
MacOSXDragDrop
;
...
...
@@ -59,11 +60,16 @@ class MacOSXWindow: public OSWindow
/// Toggle the window on top
virtual
void
toggleOnTop
(
bool
onTop
)
const
;
/// Get the Carbon window handle
WindowRef
getWindowRef
()
const
{
return
m_win
;
};
private:
/// Parent window
MacOSXWindow
*
m_pParent
;
/// Indicates whether the window handles drag&drop events
bool
m_dragDrop
;
/// Carbon Window object
WindowRef
m_win
;
};
...
...
modules/gui/skins2/src/generic_layout.cpp
View file @
65e0358c
...
...
@@ -165,7 +165,7 @@ void GenericLayout::onControlUpdate( const CtrlGeneric &rCtrl,
void
GenericLayout
::
resize
(
int
width
,
int
height
)
{
// Update the window size
m_rect
=
Rect
(
0
,
0
,
width
,
height
);
m_rect
=
Skins
Rect
(
0
,
0
,
width
,
height
);
// Recreate a new image
if
(
m_pImage
)
...
...
modules/gui/skins2/src/generic_layout.hpp
View file @
65e0358c
...
...
@@ -149,7 +149,7 @@ class GenericLayout: public SkinObject
/// Parent window of the layout
TopWindow
*
m_pWindow
;
/// Layout size
Rect
m_rect
;
Skins
Rect
m_rect
;
int
m_minWidth
,
m_maxWidth
;
int
m_minHeight
,
m_maxHeight
;
/// Image of the layout
...
...
modules/gui/skins2/src/os_factory.hpp
View file @
65e0358c
...
...
@@ -121,7 +121,7 @@ class OSFactory: public SkinObject
virtual
int
getScreenHeight
()
const
=
0
;
/// Get the work area (screen area without taskbars)
virtual
Rect
getWorkArea
()
const
=
0
;
virtual
Skins
Rect
getWorkArea
()
const
=
0
;
/// Get the position of the mouse
virtual
void
getMousePos
(
int
&
rXPos
,
int
&
rYPos
)
const
=
0
;
...
...
modules/gui/skins2/src/window_manager.cpp
View file @
65e0358c
...
...
@@ -320,11 +320,11 @@ void WindowManager::resize( GenericLayout &rLayout,
void
WindowManager
::
maximize
(
TopWindow
&
rWindow
)
{
// Save the current position/size of the window, to be able to restore it
m_maximizeRect
=
Rect
(
rWindow
.
getLeft
(),
rWindow
.
getTop
(),
rWindow
.
getLeft
()
+
rWindow
.
getWidth
(),
rWindow
.
getTop
()
+
rWindow
.
getHeight
()
);
m_maximizeRect
=
Skins
Rect
(
rWindow
.
getLeft
(),
rWindow
.
getTop
(),
rWindow
.
getLeft
()
+
rWindow
.
getWidth
(),
rWindow
.
getTop
()
+
rWindow
.
getHeight
()
);
Rect
workArea
=
OSFactory
::
instance
(
getIntf
()
)
->
getWorkArea
();
Skins
Rect
workArea
=
OSFactory
::
instance
(
getIntf
()
)
->
getWorkArea
();
// Move the window
startMove
(
rWindow
);
move
(
rWindow
,
workArea
.
getLeft
(),
workArea
.
getTop
()
);
...
...
@@ -486,7 +486,7 @@ void WindowManager::checkAnchors( TopWindow *pWindow,
AncList_t
::
const_iterator
itAncMov
,
itAncSta
;
// Check magnetism with screen edges first (actually it is the work area)
Rect
workArea
=
OSFactory
::
instance
(
getIntf
()
)
->
getWorkArea
();
Skins
Rect
workArea
=
OSFactory
::
instance
(
getIntf
()
)
->
getWorkArea
();
// Iterate through the moving windows
for
(
itMov
=
m_movingWindows
.
begin
();
itMov
!=
m_movingWindows
.
end
();
itMov
++
)
...
...
modules/gui/skins2/src/window_manager.hpp
View file @
65e0358c
...
...
@@ -209,7 +209,7 @@ class WindowManager: public SkinObject
/// Direction of the current resizing
Direction_t
m_direction
;
/// Rect of the last maximized window
Rect
m_maximizeRect
;
Skins
Rect
m_maximizeRect
;
/// Tooltip
Tooltip
*
m_pTooltip
;
/// Active popup, if any
...
...
modules/gui/skins2/utils/position.cpp
View file @
65e0358c
...
...
@@ -28,7 +28,7 @@
const
string
VarBox
::
m_type
=
"box"
;
Rect
::
Rect
(
int
left
,
int
top
,
int
right
,
int
bottom
)
:
SkinsRect
::
Skins
Rect
(
int
left
,
int
top
,
int
right
,
int
bottom
)
:
m_left
(
left
),
m_top
(
top
),
m_right
(
right
),
m_bottom
(
bottom
)
{
}
...
...
modules/gui/skins2/utils/position.hpp
View file @
65e0358c
...
...
@@ -52,10 +52,10 @@ class GenericRect: public Box
/// Characterization of a rectangle
class
Rect
:
public
GenericRect
class
Skins
Rect
:
public
GenericRect
{
public:
Rect
(
int
left
,
int
top
,
int
right
,
int
bottom
);
Skins
Rect
(
int
left
,
int
top
,
int
right
,
int
bottom
);
virtual
int
getLeft
()
const
{
return
m_left
;
}
virtual
int
getTop
()
const
{
return
m_top
;
}
...
...
modules/gui/skins2/win32/win32_factory.cpp
View file @
65e0358c
...
...
@@ -365,12 +365,12 @@ int Win32Factory::getScreenHeight() const
}
Rect
Win32Factory
::
getWorkArea
()
const
Skins
Rect
Win32Factory
::
getWorkArea
()
const
{
RECT
r
;
SystemParametersInfo
(
SPI_GETWORKAREA
,
0
,
&
r
,
0
);
// Fill a Rect object
Rect
r
ect
(
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
SkinsRect
SkinsR
ect
(
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
return
rect
;
}
...
...
modules/gui/skins2/win32/win32_factory.hpp
View file @
65e0358c
...
...
@@ -98,7 +98,7 @@ class Win32Factory: public OSFactory
virtual
int
getScreenHeight
()
const
;
/// Get the work area (screen area without taskbars)
virtual
Rect
getWorkArea
()
const
;
virtual
Skins
Rect
getWorkArea
()
const
;
/// Get the position of the mouse
virtual
void
getMousePos
(
int
&
rXPos
,
int
&
rYPos
)
const
;
...
...
modules/gui/skins2/x11/x11_factory.cpp
View file @
65e0358c
...
...
@@ -170,10 +170,10 @@ int X11Factory::getScreenHeight() const
}
Rect
X11Factory
::
getWorkArea
()
const
Skins
Rect
X11Factory
::
getWorkArea
()
const
{
// XXX
return
Rect
(
0
,
0
,
getScreenWidth
(),
getScreenHeight
()
);
return
Skins
Rect
(
0
,
0
,
getScreenWidth
(),
getScreenHeight
()
);
}
...
...
modules/gui/skins2/x11/x11_factory.hpp
View file @
65e0358c
...
...
@@ -103,7 +103,7 @@ class X11Factory: public OSFactory
virtual
int
getScreenHeight
()
const
;
/// Get the work area (screen area without taskbars)
virtual
Rect
getWorkArea
()
const
;
virtual
Skins
Rect
getWorkArea
()
const
;
/// Get the position of the mouse
virtual
void
getMousePos
(
int
&
rXPos
,
int
&
rYPos
)
const
;
...
...
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