Added FrontWinBorder(). Made FocusWinBorder() and a few other methods inline.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12075 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -804,11 +804,6 @@ WinBorder* RootLayer::WinBorderAt(const BPoint& pt) const{
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
WinBorder* RootLayer::FocusWinBorder() const
|
|
||||||
{
|
|
||||||
return ActiveWorkspace()->Focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
void RootLayer::SetScreens(Screen *screen[], int32 rows, int32 columns)
|
void RootLayer::SetScreens(Screen *screen[], int32 rows, int32 columns)
|
||||||
{
|
{
|
||||||
// NOTE: All screens *must* have the same resolution
|
// NOTE: All screens *must* have the same resolution
|
||||||
|
|||||||
+18
-18
@@ -35,9 +35,9 @@
|
|||||||
#include "FMWList.h"
|
#include "FMWList.h"
|
||||||
#include "CursorHandler.h"
|
#include "CursorHandler.h"
|
||||||
#include "CursorManager.h"
|
#include "CursorManager.h"
|
||||||
|
#include "Workspace.h"
|
||||||
|
|
||||||
class RGBColor;
|
class RGBColor;
|
||||||
class Workspace;
|
|
||||||
class Screen;
|
class Screen;
|
||||||
class WinBorder;
|
class WinBorder;
|
||||||
class Desktop;
|
class Desktop;
|
||||||
@@ -55,37 +55,38 @@ class BPortLink;
|
|||||||
class RootLayer : public Layer
|
class RootLayer : public Layer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RootLayer(const char *name, int32 workspaceCount, Desktop *desktop,
|
RootLayer(const char *name, int32 workspaceCount,
|
||||||
DisplayDriver *driver);
|
Desktop *desktop, DisplayDriver *driver);
|
||||||
virtual ~RootLayer(void);
|
virtual ~RootLayer(void);
|
||||||
|
|
||||||
virtual void MoveBy(float x, float y);
|
virtual void MoveBy(float x, float y);
|
||||||
virtual void ResizeBy(float x, float y);
|
virtual void ResizeBy(float x, float y);
|
||||||
|
|
||||||
// For the active workspaces
|
// For the active workspaces
|
||||||
virtual Layer *VirtualTopChild(void) const;
|
virtual Layer* VirtualTopChild(void) const;
|
||||||
virtual Layer *VirtualLowerSibling(void) const;
|
virtual Layer* VirtualLowerSibling(void) const;
|
||||||
virtual Layer *VirtualUpperSibling(void) const;
|
virtual Layer* VirtualUpperSibling(void) const;
|
||||||
virtual Layer *VirtualBottomChild(void) const;
|
virtual Layer* VirtualBottomChild(void) const;
|
||||||
|
|
||||||
void HideWinBorder(WinBorder* winBorder);
|
void HideWinBorder(WinBorder* winBorder);
|
||||||
void ShowWinBorder(WinBorder* winBorder);
|
void ShowWinBorder(WinBorder* winBorder);
|
||||||
void SetWinBorderWorskpaces(WinBorder *winBorder, uint32 newWksIndex);
|
void SetWinBorderWorskpaces(WinBorder *winBorder, uint32 newWksIndex);
|
||||||
WinBorder* WinBorderAt(const BPoint& pt) const;
|
WinBorder* WinBorderAt(const BPoint& pt) const;
|
||||||
WinBorder* FocusWinBorder() const;
|
inline WinBorder* FocusWinBorder() const { return fWorkspace[fActiveWksIndex]->Focus(); }
|
||||||
|
inline WinBorder* FrontWinBorder() const { return fWorkspace[fActiveWksIndex]->Front(); }
|
||||||
|
|
||||||
void SetWorkspaceCount(int32 wksCount);
|
inline void SetWorkspaceCount(int32 wksCount);
|
||||||
int32 WorkspaceCount() const { return fWsCount; }
|
inline int32 WorkspaceCount() const { return fWsCount; }
|
||||||
Workspace* WorkspaceAt(int32 index) const { return fWorkspace[index]; }
|
inline Workspace* WorkspaceAt(int32 index) const { return fWorkspace[index]; }
|
||||||
Workspace* ActiveWorkspace() const { return fWorkspace[fActiveWksIndex]; }
|
inline Workspace* ActiveWorkspace() const { return fWorkspace[fActiveWksIndex]; }
|
||||||
int32 ActiveWorkspaceIndex() const { return fActiveWksIndex; }
|
inline int32 ActiveWorkspaceIndex() const { return fActiveWksIndex; }
|
||||||
void SetActiveWorkspace(int32 index);
|
void SetActiveWorkspace(int32 index);
|
||||||
|
|
||||||
void ReadWorkspaceData(const char *path);
|
void ReadWorkspaceData(const char *path);
|
||||||
void SaveWorkspaceData(const char *path);
|
void SaveWorkspaceData(const char *path);
|
||||||
|
|
||||||
void SetScreens(Screen *screen[], int32 rows, int32 columns);
|
void SetScreens(Screen *screen[], int32 rows, int32 columns);
|
||||||
Screen **Screens(void);
|
Screen** Screens(void);
|
||||||
bool SetScreenResolution(int32 width, int32 height, uint32 colorspace);
|
bool SetScreenResolution(int32 width, int32 height, uint32 colorspace);
|
||||||
int32 ScreenRows(void) const { return fRows; }
|
int32 ScreenRows(void) const { return fRows; }
|
||||||
int32 ScreenColumns(void) const { return fColumns; }
|
int32 ScreenColumns(void) const { return fColumns; }
|
||||||
@@ -93,13 +94,11 @@ public:
|
|||||||
void SetBGColor(const RGBColor &col);
|
void SetBGColor(const RGBColor &col);
|
||||||
RGBColor BGColor(void) const;
|
RGBColor BGColor(void) const;
|
||||||
|
|
||||||
int32 Buttons(void) { return fButtons; }
|
inline int32 Buttons(void) { return fButtons; }
|
||||||
virtual bool HasClient(void) { return false; }
|
virtual bool HasClient(void) { return false; }
|
||||||
|
|
||||||
void AddWinBorderToWorkspaces(WinBorder *winBorder, uint32 wks);
|
|
||||||
|
|
||||||
void SetDragMessage(BMessage *msg);
|
void SetDragMessage(BMessage *msg);
|
||||||
BMessage *DragMessage(void) const;
|
BMessage* DragMessage(void) const;
|
||||||
|
|
||||||
static int32 WorkingThread(void *data);
|
static int32 WorkingThread(void *data);
|
||||||
|
|
||||||
@@ -123,6 +122,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
friend class Desktop;
|
friend class Desktop;
|
||||||
|
|
||||||
// these are meant for Desktop class only!
|
// these are meant for Desktop class only!
|
||||||
void AddWinBorder(WinBorder* winBorder);
|
void AddWinBorder(WinBorder* winBorder);
|
||||||
void RemoveWinBorder(WinBorder* winBorder);
|
void RemoveWinBorder(WinBorder* winBorder);
|
||||||
|
|||||||
Reference in New Issue
Block a user