Style fixes to DirectWindow.h, no functional change
This commit is contained in:
parent
746abcb938
commit
bc22b037c4
@ -8,6 +8,7 @@
|
|||||||
#ifndef _DIRECT_WINDOW_H
|
#ifndef _DIRECT_WINDOW_H
|
||||||
#define _DIRECT_WINDOW_H
|
#define _DIRECT_WINDOW_H
|
||||||
|
|
||||||
|
|
||||||
#include <Region.h>
|
#include <Region.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
@ -54,98 +55,106 @@ typedef struct {
|
|||||||
|
|
||||||
class BDirectWindow : public BWindow {
|
class BDirectWindow : public BWindow {
|
||||||
public:
|
public:
|
||||||
BDirectWindow(BRect frame, const char *title, window_type type,
|
BDirectWindow(BRect frame, const char *title,
|
||||||
uint32 flags, uint32 workspace = B_CURRENT_WORKSPACE);
|
window_type type, uint32 flags,
|
||||||
BDirectWindow(BRect frame, const char *title, window_look look,
|
uint32 workspace = B_CURRENT_WORKSPACE);
|
||||||
window_feel feel, uint32 flags,
|
BDirectWindow(BRect frame, const char *title,
|
||||||
uint32 workspace = B_CURRENT_WORKSPACE);
|
window_look look, window_feel feel,
|
||||||
virtual ~BDirectWindow();
|
uint32 flags,
|
||||||
|
uint32 workspace = B_CURRENT_WORKSPACE);
|
||||||
|
virtual ~BDirectWindow();
|
||||||
|
|
||||||
static BArchivable* Instantiate(BMessage *data);
|
static BArchivable* Instantiate(BMessage *data);
|
||||||
virtual status_t Archive(BMessage *data, bool deep = true) const;
|
virtual status_t Archive(BMessage *data,
|
||||||
|
bool deep = true) const;
|
||||||
|
|
||||||
virtual void Quit();
|
virtual void Quit();
|
||||||
virtual void DispatchMessage(BMessage *message, BHandler *handler);
|
virtual void DispatchMessage(BMessage *message,
|
||||||
virtual void MessageReceived(BMessage *message);
|
BHandler *handler);
|
||||||
virtual void FrameMoved(BPoint newPosition);
|
virtual void MessageReceived(BMessage *message);
|
||||||
virtual void WorkspacesChanged(uint32 oldWorkspaces,
|
virtual void FrameMoved(BPoint newPosition);
|
||||||
uint32 newWorkspaces);
|
virtual void WorkspacesChanged(uint32 oldWorkspaces,
|
||||||
virtual void WorkspaceActivated(int32 workspaceIndex, bool state);
|
uint32 newWorkspaces);
|
||||||
virtual void FrameResized(float newWidth, float newHeight);
|
virtual void WorkspaceActivated(int32 workspaceIndex,
|
||||||
virtual void Minimize(bool minimize);
|
bool state);
|
||||||
virtual void Zoom(BPoint recPosition, float recWidth,
|
virtual void FrameResized(float newWidth, float newHeight);
|
||||||
float recHeight);
|
virtual void Minimize(bool minimize);
|
||||||
virtual void ScreenChanged(BRect screenFrame, color_space depth);
|
virtual void Zoom(BPoint recPosition, float recWidth,
|
||||||
virtual void MenusBeginning();
|
float recHeight);
|
||||||
virtual void MenusEnded();
|
virtual void ScreenChanged(BRect screenFrame,
|
||||||
virtual void WindowActivated(bool state);
|
color_space depth);
|
||||||
virtual void Show();
|
virtual void MenusBeginning();
|
||||||
virtual void Hide();
|
virtual void MenusEnded();
|
||||||
virtual BHandler* ResolveSpecifier(BMessage *message, int32 index,
|
virtual void WindowActivated(bool state);
|
||||||
BMessage *specifier, int32 form,
|
virtual void Show();
|
||||||
const char *property);
|
virtual void Hide();
|
||||||
virtual status_t GetSupportedSuites(BMessage *data);
|
virtual BHandler* ResolveSpecifier(BMessage *message,
|
||||||
virtual status_t Perform(perform_code code, void *arg);
|
int32 index, BMessage *specifier,
|
||||||
|
int32 form, const char *property);
|
||||||
|
virtual status_t GetSupportedSuites(BMessage *data);
|
||||||
|
virtual status_t Perform(perform_code code, void *arg);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void task_looper();
|
virtual void task_looper();
|
||||||
virtual BMessage* ConvertToMessage(void *raw, int32 code);
|
virtual BMessage* ConvertToMessage(void *raw, int32 code);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void DirectConnected(direct_buffer_info *info);
|
virtual void DirectConnected(direct_buffer_info *info);
|
||||||
status_t GetClippingRegion(BRegion *region,
|
status_t GetClippingRegion(BRegion *region,
|
||||||
BPoint *origin = NULL) const;
|
BPoint *origin = NULL) const;
|
||||||
status_t SetFullScreen(bool enable);
|
status_t SetFullScreen(bool enable);
|
||||||
bool IsFullScreen() const;
|
bool IsFullScreen() const;
|
||||||
|
|
||||||
static bool SupportsWindowMode(screen_id id = B_MAIN_SCREEN_ID);
|
static bool SupportsWindowMode(
|
||||||
|
screen_id id = B_MAIN_SCREEN_ID);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef BWindow inherited;
|
typedef BWindow inherited;
|
||||||
|
|
||||||
virtual void _ReservedDirectWindow1();
|
virtual void _ReservedDirectWindow1();
|
||||||
virtual void _ReservedDirectWindow2();
|
virtual void _ReservedDirectWindow2();
|
||||||
virtual void _ReservedDirectWindow3();
|
virtual void _ReservedDirectWindow3();
|
||||||
virtual void _ReservedDirectWindow4();
|
virtual void _ReservedDirectWindow4();
|
||||||
|
|
||||||
BDirectWindow();
|
BDirectWindow();
|
||||||
BDirectWindow(BDirectWindow& other);
|
BDirectWindow(BDirectWindow& other);
|
||||||
BDirectWindow& operator=(BDirectWindow& other);
|
BDirectWindow& operator=(BDirectWindow& other);
|
||||||
|
|
||||||
static int32 _daemon_thread(void* arg);
|
static int32 _daemon_thread(void* arg);
|
||||||
int32 _DirectDaemon();
|
int32 _DirectDaemon();
|
||||||
bool _LockDirect() const;
|
bool _LockDirect() const;
|
||||||
void _UnlockDirect() const;
|
void _UnlockDirect() const;
|
||||||
|
|
||||||
void _InitData();
|
void _InitData();
|
||||||
void _DisposeData();
|
void _DisposeData();
|
||||||
|
|
||||||
bool fDaemonKiller;
|
bool fDaemonKiller;
|
||||||
bool fConnectionEnable;
|
bool fConnectionEnable;
|
||||||
bool fIsFullScreen;
|
bool fIsFullScreen;
|
||||||
bool _unused;
|
bool _unused;
|
||||||
bool fInDirectConnect;
|
bool fInDirectConnect;
|
||||||
|
|
||||||
int32 fDirectLock;
|
int32 fDirectLock;
|
||||||
sem_id fDirectSem;
|
sem_id fDirectSem;
|
||||||
uint32 fDirectLockCount;
|
uint32 fDirectLockCount;
|
||||||
thread_id fDirectLockOwner;
|
thread_id fDirectLockOwner;
|
||||||
char* fDirectLockStack;
|
char* fDirectLockStack;
|
||||||
|
|
||||||
sem_id fDisableSem;
|
sem_id fDisableSem;
|
||||||
sem_id fDisableSemAck;
|
sem_id fDisableSemAck;
|
||||||
|
|
||||||
uint32 fInitStatus;
|
uint32 fInitStatus;
|
||||||
uint32 fInfoAreaSize;
|
uint32 fInfoAreaSize;
|
||||||
|
|
||||||
uint32 _reserved[2];
|
uint32 _reserved[2];
|
||||||
|
|
||||||
area_id fClonedClippingArea;
|
area_id fClonedClippingArea;
|
||||||
area_id fSourceClippingArea;
|
area_id fSourceClippingArea;
|
||||||
thread_id fDirectDaemonId;
|
thread_id fDirectDaemonId;
|
||||||
direct_buffer_info* fBufferDesc;
|
direct_buffer_info* fBufferDesc;
|
||||||
|
|
||||||
uint32 _more_reserved_[17];
|
uint32 _more_reserved_[17];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // _DIRECT_WINDOW_H
|
#endif // _DIRECT_WINDOW_H
|
||||||
|
Loading…
Reference in New Issue
Block a user