Files
haiku-beta6/headers/os/app/Cursor.h
T

42 lines
859 B
C++
Raw Normal View History

2006-02-05 18:14:14 +00:00
/*
* Copyright 2006, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
2002-07-09 12:24:59 +00:00
#ifndef _CURSOR_H
#define _CURSOR_H
#include <Archivable.h>
#include <InterfaceDefs.h>
class BCursor : BArchivable {
2006-02-05 18:14:14 +00:00
public:
BCursor(const void* cursorData);
BCursor(BMessage* data);
virtual ~BCursor();
2002-07-09 12:24:59 +00:00
2006-02-05 18:14:14 +00:00
virtual status_t Archive(BMessage* archive, bool deep = true) const;
static BArchivable* Instantiate(BMessage* archive);
2002-07-09 12:24:59 +00:00
2006-02-05 18:14:14 +00:00
private:
virtual status_t Perform(perform_code d, void* arg);
2002-07-09 12:24:59 +00:00
2006-02-05 18:14:14 +00:00
virtual void _ReservedCursor1();
virtual void _ReservedCursor2();
virtual void _ReservedCursor3();
virtual void _ReservedCursor4();
2002-07-09 12:24:59 +00:00
2006-02-05 18:14:14 +00:00
private:
friend class BApplication;
friend class BView;
2002-07-09 12:24:59 +00:00
2006-02-05 18:14:14 +00:00
int32 fServerToken;
bool fNeedToFree;
2006-02-26 18:15:31 +00:00
mutable bool fPendingViewCursor;
2002-07-09 12:24:59 +00:00
2006-02-05 18:14:14 +00:00
uint32 _reserved[6];
2002-07-09 12:24:59 +00:00
};
#endif // _CURSOR_H