inlined a few methods in header file, otherwise app_server would not build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13271 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -144,27 +144,6 @@ Desktop::InitMode()
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
inline Screen *
|
|
||||||
Desktop::ScreenAt(int32 index) const
|
|
||||||
{
|
|
||||||
return static_cast<Screen *>(fScreenList.ItemAt(index));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
inline int32
|
|
||||||
Desktop::ScreenCount(void) const
|
|
||||||
{
|
|
||||||
return fScreenList.CountItems();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
inline Screen *
|
|
||||||
Desktop::ActiveScreen(void) const
|
|
||||||
{
|
|
||||||
return fActiveScreen;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
Desktop::SetActiveRootLayerByIndex(int32 listIndex)
|
Desktop::SetActiveRootLayerByIndex(int32 listIndex)
|
||||||
{
|
{
|
||||||
@@ -185,53 +164,6 @@ Desktop::SetActiveRootLayer(RootLayer *rootLayer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
RootLayer *
|
|
||||||
Desktop::ActiveRootLayer(void) const
|
|
||||||
{
|
|
||||||
return fActiveRootLayer;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
inline int32
|
|
||||||
Desktop::ActiveRootLayerIndex(void) const
|
|
||||||
{
|
|
||||||
int32 rootLayerCount = CountRootLayers();
|
|
||||||
|
|
||||||
for (int32 i = 0; i < rootLayerCount; i++) {
|
|
||||||
if (fActiveRootLayer == (RootLayer *)fRootLayerList.ItemAt(i))
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
inline RootLayer *
|
|
||||||
Desktop::RootLayerAt(int32 index)
|
|
||||||
{
|
|
||||||
return static_cast<RootLayer *>(fRootLayerList.ItemAt(index));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
inline int32
|
|
||||||
Desktop::CountRootLayers() const
|
|
||||||
{
|
|
||||||
return fRootLayerList.CountItems();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
inline DisplayDriver *
|
|
||||||
Desktop::GetDisplayDriver() const
|
|
||||||
{
|
|
||||||
return ScreenAt(0)->GetDisplayDriver();
|
|
||||||
}
|
|
||||||
|
|
||||||
inline HWInterface *
|
|
||||||
Desktop::GetHWInterface() const
|
|
||||||
{
|
|
||||||
return ScreenAt(0)->GetHWInterface();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Methods for layer(WinBorder) manipulation.
|
// Methods for layer(WinBorder) manipulation.
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|||||||
+31
-11
@@ -15,6 +15,7 @@
|
|||||||
#include <List.h>
|
#include <List.h>
|
||||||
#include <Locker.h>
|
#include <Locker.h>
|
||||||
#include <Menu.h>
|
#include <Menu.h>
|
||||||
|
#include <ServerScreen.h>
|
||||||
|
|
||||||
class BMessage;
|
class BMessage;
|
||||||
class BPortLink;
|
class BPortLink;
|
||||||
@@ -22,7 +23,6 @@ class DisplayDriver;
|
|||||||
class HWInterface;
|
class HWInterface;
|
||||||
class Layer;
|
class Layer;
|
||||||
class RootLayer;
|
class RootLayer;
|
||||||
class Screen;
|
|
||||||
class WinBorder;
|
class WinBorder;
|
||||||
|
|
||||||
class Desktop {
|
class Desktop {
|
||||||
@@ -37,19 +37,39 @@ class Desktop {
|
|||||||
void InitMode();
|
void InitMode();
|
||||||
|
|
||||||
// Methods for multiple monitors.
|
// Methods for multiple monitors.
|
||||||
Screen* ScreenAt(int32 index) const;
|
inline Screen* ScreenAt(int32 index) const
|
||||||
int32 ScreenCount() const;
|
{ return static_cast<Screen *>(fScreenList.ItemAt(index)); }
|
||||||
Screen* ActiveScreen() const;
|
inline int32 ScreenCount() const
|
||||||
|
{ return fScreenList.CountItems(); }
|
||||||
|
inline Screen* ActiveScreen() const
|
||||||
|
{ return fActiveScreen; }
|
||||||
|
|
||||||
void SetActiveRootLayerByIndex(int32 index);
|
void SetActiveRootLayerByIndex(int32 index);
|
||||||
void SetActiveRootLayer(RootLayer* layer);
|
void SetActiveRootLayer(RootLayer* layer);
|
||||||
RootLayer* RootLayerAt(int32 index);
|
inline RootLayer* RootLayerAt(int32 index)
|
||||||
RootLayer* ActiveRootLayer() const;
|
{ return static_cast<RootLayer *>(fRootLayerList.ItemAt(index)); }
|
||||||
int32 ActiveRootLayerIndex() const;
|
RootLayer* ActiveRootLayer() const
|
||||||
int32 CountRootLayers() const;
|
{ return fActiveRootLayer;}
|
||||||
|
int32 ActiveRootLayerIndex() const
|
||||||
|
{
|
||||||
|
int32 rootLayerCount = CountRootLayers();
|
||||||
|
|
||||||
|
for (int32 i = 0; i < rootLayerCount; i++) {
|
||||||
|
if (fActiveRootLayer == (RootLayer *)fRootLayerList.ItemAt(i))
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline int32 CountRootLayers() const
|
||||||
|
{ return fRootLayerList.CountItems(); }
|
||||||
|
|
||||||
|
|
||||||
|
inline DisplayDriver* GetDisplayDriver() const
|
||||||
|
{ return ScreenAt(0)->GetDisplayDriver(); }
|
||||||
|
inline HWInterface* GetHWInterface() const
|
||||||
|
{ return ScreenAt(0)->GetHWInterface(); }
|
||||||
|
|
||||||
DisplayDriver* GetDisplayDriver() const;
|
|
||||||
HWInterface* GetHWInterface() const;
|
|
||||||
|
|
||||||
// Methods for layer(WinBorder) manipulation.
|
// Methods for layer(WinBorder) manipulation.
|
||||||
void AddWinBorder(WinBorder *winBorder);
|
void AddWinBorder(WinBorder *winBorder);
|
||||||
|
|||||||
Reference in New Issue
Block a user