c6f9f65dff
The problem was that the view's screen clipping was not updated if its frame did not change because of a resized parent - but that might be needed if the new parent frame reveals a new portion of that view. I added a TODO so that if there is a way to test for this case, we only need to invalidate the clipping if really needed. For now, we always do it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19695 a95241bf-73f2-0310-859d-f6bbb57e9c96
75 lines
1.7 KiB
C++
75 lines
1.7 KiB
C++
/*
|
|
* Copyright 2001-2006, Haiku.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* DarkWyrm <bpmagic@columbus.rr.com>
|
|
*/
|
|
#ifndef CURSOR_MANAGER_H
|
|
#define CURSOR_MANAGER_H
|
|
|
|
|
|
#include <List.h>
|
|
#include <Locker.h>
|
|
|
|
#include <TokenSpace.h>
|
|
|
|
#include "CursorSet.h"
|
|
|
|
using BPrivate::BTokenSpace;
|
|
class ServerCursor;
|
|
|
|
|
|
/*!
|
|
\class CursorManager CursorManager.h
|
|
\brief Handles almost all cursor management functions for the system
|
|
|
|
The Cursor manager provides system cursor support, previous unseen on
|
|
any BeOS platform. It also provides tokens for BCursors and frees all
|
|
of an application's cursors whenever an application closes.
|
|
*/
|
|
class CursorManager : public BLocker {
|
|
public:
|
|
CursorManager();
|
|
virtual ~CursorManager();
|
|
|
|
ServerCursor* CreateCursor(team_id clientTeam,
|
|
const uint8* cursorData);
|
|
|
|
int32 AddCursor(ServerCursor* cursor, int32 token = -1);
|
|
void DeleteCursors(team_id team);
|
|
|
|
bool RemoveCursor(ServerCursor* cursor);
|
|
|
|
void SetCursorSet(const char* path);
|
|
ServerCursor* GetCursor(cursor_which which);
|
|
cursor_which GetCursorWhich();
|
|
void ChangeCursor(cursor_which which, int32 token);
|
|
void SetDefaults();
|
|
|
|
ServerCursor* FindCursor(int32 token);
|
|
|
|
private:
|
|
ServerCursor* _FindCursor(team_id cientTeam,
|
|
const uint8* cursorData);
|
|
void _RemoveCursor(ServerCursor* cursor);
|
|
// ServerCursor* _RemoveCursor(int32 index);
|
|
|
|
BList fCursorList;
|
|
BTokenSpace fTokenSpace;
|
|
|
|
// System cursor members
|
|
ServerCursor *fDefaultCursor,
|
|
*fTextCursor,
|
|
*fMoveCursor,
|
|
*fDragCursor,
|
|
*fResizeCursor,
|
|
*fNWSECursor,
|
|
*fNESWCursor,
|
|
*fNSCursor,
|
|
*fEWCursor;
|
|
cursor_which fCurrentWhich;
|
|
};
|
|
|
|
#endif /* CURSOR_MANAGER_H */
|