* Shuffled methods around to match their location in the header.
* Made ScreenChanged() private, and renamed it to _ScreenChanged(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32565 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+1251
-1254
File diff suppressed because it is too large
Load Diff
+65
-62
@@ -74,6 +74,31 @@ public:
|
|||||||
void BroadcastToAllApps(int32 code);
|
void BroadcastToAllApps(int32 code);
|
||||||
void BroadcastToAllWindows(int32 code);
|
void BroadcastToAllWindows(int32 code);
|
||||||
|
|
||||||
|
// Locking
|
||||||
|
#if USE_MULTI_LOCKER
|
||||||
|
bool LockSingleWindow()
|
||||||
|
{ return fWindowLock.ReadLock(); }
|
||||||
|
void UnlockSingleWindow()
|
||||||
|
{ fWindowLock.ReadUnlock(); }
|
||||||
|
|
||||||
|
bool LockAllWindows()
|
||||||
|
{ return fWindowLock.WriteLock(); }
|
||||||
|
void UnlockAllWindows()
|
||||||
|
{ fWindowLock.WriteUnlock(); }
|
||||||
|
|
||||||
|
MultiLocker WindowLocker() { return fWindowLock; }
|
||||||
|
#else // USE_MULTI_LOCKER
|
||||||
|
bool LockSingleWindow()
|
||||||
|
{ return fWindowLock.Lock(); }
|
||||||
|
void UnlockSingleWindow()
|
||||||
|
{ fWindowLock.Unlock(); }
|
||||||
|
|
||||||
|
bool LockAllWindows()
|
||||||
|
{ return fWindowLock.Lock(); }
|
||||||
|
void UnlockAllWindows()
|
||||||
|
{ fWindowLock.Unlock(); }
|
||||||
|
#endif // USE_MULTI_LOCKER
|
||||||
|
|
||||||
// Mouse and cursor methods
|
// Mouse and cursor methods
|
||||||
|
|
||||||
void SetCursor(ServerCursor* cursor);
|
void SetCursor(ServerCursor* cursor);
|
||||||
@@ -105,8 +130,6 @@ public:
|
|||||||
BRect& frame);
|
BRect& frame);
|
||||||
void RevertScreenModes(uint32 workspaces);
|
void RevertScreenModes(uint32 workspaces);
|
||||||
|
|
||||||
void ScreenChanged(Screen* screen);
|
|
||||||
|
|
||||||
const ::VirtualScreen& VirtualScreen() const
|
const ::VirtualScreen& VirtualScreen() const
|
||||||
{ return fVirtualScreen; }
|
{ return fVirtualScreen; }
|
||||||
DrawingEngine* GetDrawingEngine() const
|
DrawingEngine* GetDrawingEngine() const
|
||||||
@@ -130,6 +153,11 @@ public:
|
|||||||
status_t SetWorkspacesLayout(int32 columns, int32 rows);
|
status_t SetWorkspacesLayout(int32 columns, int32 rows);
|
||||||
BRect WorkspaceFrame(int32 index) const;
|
BRect WorkspaceFrame(int32 index) const;
|
||||||
|
|
||||||
|
void StoreWorkspaceConfiguration(int32 index);
|
||||||
|
|
||||||
|
void AddWorkspacesView(WorkspacesView* view);
|
||||||
|
void RemoveWorkspacesView(WorkspacesView* view);
|
||||||
|
|
||||||
// Window methods
|
// Window methods
|
||||||
|
|
||||||
void ActivateWindow(Window* window);
|
void ActivateWindow(Window* window);
|
||||||
@@ -181,50 +209,22 @@ public:
|
|||||||
int32 viewToken);
|
int32 viewToken);
|
||||||
int32 ViewUnderMouse(const Window* window);
|
int32 ViewUnderMouse(const Window* window);
|
||||||
|
|
||||||
void SetFocusWindow(Window* window = NULL);
|
|
||||||
EventTarget* KeyboardEventTarget();
|
EventTarget* KeyboardEventTarget();
|
||||||
|
|
||||||
|
void SetFocusWindow(Window* window = NULL);
|
||||||
void SetFocusLocked(const Window* window);
|
void SetFocusLocked(const Window* window);
|
||||||
|
|
||||||
Window* FindWindowByClientToken(int32 token,
|
Window* FindWindowByClientToken(int32 token,
|
||||||
team_id teamID);
|
team_id teamID);
|
||||||
EventTarget* FindTarget(BMessenger& messenger);
|
EventTarget* FindTarget(BMessenger& messenger);
|
||||||
|
|
||||||
#if USE_MULTI_LOCKER
|
|
||||||
bool LockSingleWindow()
|
|
||||||
{ return fWindowLock.ReadLock(); }
|
|
||||||
void UnlockSingleWindow()
|
|
||||||
{ fWindowLock.ReadUnlock(); }
|
|
||||||
|
|
||||||
bool LockAllWindows()
|
|
||||||
{ return fWindowLock.WriteLock(); }
|
|
||||||
void UnlockAllWindows()
|
|
||||||
{ fWindowLock.WriteUnlock(); }
|
|
||||||
|
|
||||||
MultiLocker WindowLocker() { return fWindowLock; }
|
|
||||||
#else // USE_MULTI_LOCKER
|
|
||||||
bool LockSingleWindow()
|
|
||||||
{ return fWindowLock.Lock(); }
|
|
||||||
void UnlockSingleWindow()
|
|
||||||
{ fWindowLock.Unlock(); }
|
|
||||||
|
|
||||||
bool LockAllWindows()
|
|
||||||
{ return fWindowLock.Lock(); }
|
|
||||||
void UnlockAllWindows()
|
|
||||||
{ fWindowLock.Unlock(); }
|
|
||||||
#endif // USE_MULTI_LOCKER
|
|
||||||
|
|
||||||
void MarkDirty(BRegion& region);
|
void MarkDirty(BRegion& region);
|
||||||
void Redraw();
|
void Redraw();
|
||||||
|
void RedrawBackground();
|
||||||
|
|
||||||
BRegion& BackgroundRegion()
|
BRegion& BackgroundRegion()
|
||||||
{ return fBackgroundRegion; }
|
{ return fBackgroundRegion; }
|
||||||
|
|
||||||
void RedrawBackground();
|
|
||||||
void StoreWorkspaceConfiguration(int32 index);
|
|
||||||
|
|
||||||
void AddWorkspacesView(WorkspacesView* view);
|
|
||||||
void RemoveWorkspacesView(WorkspacesView* view);
|
|
||||||
|
|
||||||
void MinimizeApplication(team_id team);
|
void MinimizeApplication(team_id team);
|
||||||
void BringApplicationToFront(team_id team);
|
void BringApplicationToFront(team_id team);
|
||||||
void WindowAction(int32 windowToken, int32 action);
|
void WindowAction(int32 windowToken, int32 action);
|
||||||
@@ -240,30 +240,13 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void _LaunchInputServer();
|
void _LaunchInputServer();
|
||||||
void _SetCurrentWorkspaceConfiguration();
|
void _GetLooperName(char* name, size_t size);
|
||||||
void _SetWorkspace(int32 index);
|
void _PrepareQuit();
|
||||||
void _ShowWindow(Window* window,
|
void _DispatchMessage(int32 code,
|
||||||
bool affectsOtherWindows = true);
|
BPrivate::LinkReceiver &link);
|
||||||
void _HideWindow(Window* window);
|
|
||||||
|
|
||||||
void _UpdateSubsetWorkspaces(Window* window,
|
WindowList& _CurrentWindows();
|
||||||
int32 previousIndex = -1,
|
WindowList& _Windows(int32 index);
|
||||||
int32 newIndex = -1);
|
|
||||||
void _ChangeWindowWorkspaces(Window* window,
|
|
||||||
uint32 oldWorkspaces, uint32 newWorkspaces);
|
|
||||||
void _BringWindowsToFront(WindowList& windows,
|
|
||||||
int32 list, bool wereVisible);
|
|
||||||
Window* _LastFocusSubsetWindow(Window* window);
|
|
||||||
status_t _ActivateApp(team_id team);
|
|
||||||
void _SendFakeMouseMoved(Window* window = NULL);
|
|
||||||
|
|
||||||
void _RebuildClippingForAllWindows(
|
|
||||||
BRegion& stillAvailableOnScreen);
|
|
||||||
void _TriggerWindowRedrawing(
|
|
||||||
BRegion& newDirtyRegion);
|
|
||||||
void _SetBackground(BRegion& background);
|
|
||||||
void _RebuildAndRedrawAfterWindowChange(
|
|
||||||
Window* window, BRegion& dirty);
|
|
||||||
|
|
||||||
void _UpdateFloating(int32 previousWorkspace = -1,
|
void _UpdateFloating(int32 previousWorkspace = -1,
|
||||||
int32 nextWorkspace = -1,
|
int32 nextWorkspace = -1,
|
||||||
@@ -276,13 +259,33 @@ private:
|
|||||||
void _WindowChanged(Window* window);
|
void _WindowChanged(Window* window);
|
||||||
void _WindowRemoved(Window* window);
|
void _WindowRemoved(Window* window);
|
||||||
|
|
||||||
void _GetLooperName(char* name, size_t size);
|
void _ShowWindow(Window* window,
|
||||||
void _PrepareQuit();
|
bool affectsOtherWindows = true);
|
||||||
void _DispatchMessage(int32 code,
|
void _HideWindow(Window* window);
|
||||||
BPrivate::LinkReceiver &link);
|
|
||||||
|
|
||||||
WindowList& _CurrentWindows();
|
void _UpdateSubsetWorkspaces(Window* window,
|
||||||
WindowList& _Windows(int32 index);
|
int32 previousIndex = -1,
|
||||||
|
int32 newIndex = -1);
|
||||||
|
void _ChangeWindowWorkspaces(Window* window,
|
||||||
|
uint32 oldWorkspaces, uint32 newWorkspaces);
|
||||||
|
void _BringWindowsToFront(WindowList& windows,
|
||||||
|
int32 list, bool wereVisible);
|
||||||
|
Window* _LastFocusSubsetWindow(Window* window);
|
||||||
|
void _SendFakeMouseMoved(Window* window = NULL);
|
||||||
|
|
||||||
|
void _RebuildClippingForAllWindows(
|
||||||
|
BRegion& stillAvailableOnScreen);
|
||||||
|
void _TriggerWindowRedrawing(
|
||||||
|
BRegion& newDirtyRegion);
|
||||||
|
void _SetBackground(BRegion& background);
|
||||||
|
void _RebuildAndRedrawAfterWindowChange(
|
||||||
|
Window* window, BRegion& dirty);
|
||||||
|
|
||||||
|
status_t _ActivateApp(team_id team);
|
||||||
|
|
||||||
|
void _ScreenChanged(Screen* screen);
|
||||||
|
void _SetCurrentWorkspaceConfiguration();
|
||||||
|
void _SetWorkspace(int32 index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class DesktopSettings;
|
friend class DesktopSettings;
|
||||||
|
|||||||
Reference in New Issue
Block a user