Small cleanups.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29729 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-03-26 14:07:33 +00:00
parent df8b89cbf7
commit af20d1a13e
+6 -5
View File
@@ -65,14 +65,14 @@ class BackgroundImage {
// Unlike other windows, the Desktop window can have different backgrounds // Unlike other windows, the Desktop window can have different backgrounds
// for each workspace // for each workspace
public: public:
enum Mode { enum Mode {
kAtOffset, kAtOffset,
kCentered, // only works on Desktop kCentered, // only works on Desktop
kScaledToFit, // only works on Desktop kScaledToFit, // only works on Desktop
kTiled kTiled
}; };
class BackgroundImageInfo { class BackgroundImageInfo {
// element of the per-workspace list // element of the per-workspace list
public: public:
@@ -87,7 +87,8 @@ public:
bool fTextWidgetOutline; bool fTextWidgetOutline;
}; };
static BackgroundImage *GetBackgroundImage(const BNode *, bool isDesktop); static BackgroundImage *GetBackgroundImage(const BNode *node,
bool isDesktop);
// create a BackgroundImage object by reading it from a node // create a BackgroundImage object by reading it from a node
virtual ~BackgroundImage(); virtual ~BackgroundImage();
@@ -98,7 +99,7 @@ public:
void WorkspaceActivated(BView *view, int32 workspace, bool state); void WorkspaceActivated(BView *view, int32 workspace, bool state);
// respond to a workspace change // respond to a workspace change
void ScreenChanged(BRect , color_space); void ScreenChanged(BRect rect, color_space space);
// respond to a screen size change // respond to a screen size change
static BackgroundImage *Refresh(BackgroundImage *oldBackgroundImage, static BackgroundImage *Refresh(BackgroundImage *oldBackgroundImage,
const BNode *fromNode, bool desktop, BPoseView *poseView); const BNode *fromNode, bool desktop, BPoseView *poseView);
@@ -118,7 +119,7 @@ private:
BNode fDefinedByNode; BNode fDefinedByNode;
BView *fView; BView *fView;
BackgroundImageInfo *fShowingBitmap; BackgroundImageInfo *fShowingBitmap;
BObjectList<BackgroundImageInfo> fBitmapForWorkspaceList; BObjectList<BackgroundImageInfo> fBitmapForWorkspaceList;
}; };