Check-in for Adrian Oanca

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2917 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2003-03-15 00:04:55 +00:00
parent 0eadb1ac5c
commit d230489402
3 changed files with 1211 additions and 1126 deletions
+4 -3
View File
@@ -100,10 +100,12 @@ const uint32 B_SUBPIXEL_PRECISE = 0x01000000UL; /* 24 */
const uint32 B_DRAW_ON_CHILDREN = 0x00800000UL; /* 23 */ const uint32 B_DRAW_ON_CHILDREN = 0x00800000UL; /* 23 */
const uint32 B_INPUT_METHOD_AWARE = 0x00400000UL; /* 23 */ const uint32 B_INPUT_METHOD_AWARE = 0x00400000UL; /* 23 */
const uint32 _B_RESERVED7_ = 0x00200000UL; /* 22 */ const uint32 _B_RESERVED7_ = 0x00200000UL; /* 22 */
/*
#define _RESIZE_MASK_ ~(B_FULL_UPDATE_ON_RESIZE|_B_RESERVED1_|B_WILL_DRAW|\ #define _RESIZE_MASK_ ~(B_FULL_UPDATE_ON_RESIZE|_B_RESERVED1_|B_WILL_DRAW|\
B_PULSE_NEEDED|B_NAVIGABLE_JUMP|B_FRAME_EVENTS|B_NAVIGABLE|\ B_PULSE_NEEDED|B_NAVIGABLE_JUMP|B_FRAME_EVENTS|B_NAVIGABLE|\
B_SUBPIXEL_PRECISE|B_DRAW_ON_CHILDREN|B_INPUT_METHOD_AWARE|_B_RESERVED7_) B_SUBPIXEL_PRECISE|B_DRAW_ON_CHILDREN|B_INPUT_METHOD_AWARE|_B_RESERVED7_)
*/
#define _RESIZE_MASK_ ~(B_FULL_UPDATE_ON_RESIZE|_B_RESERVED1_|B_WILL_DRAW|B_PULSE_NEEDED|B_NAVIGABLE_JUMP|B_FRAME_EVENTS|B_NAVIGABLE|B_SUBPIXEL_PRECISE|B_DRAW_ON_CHILDREN|B_INPUT_METHOD_AWARE|_B_RESERVED7_)
const uint32 _VIEW_TOP_ = 1UL; const uint32 _VIEW_TOP_ = 1UL;
const uint32 _VIEW_LEFT_ = 2UL; const uint32 _VIEW_LEFT_ = 2UL;
@@ -115,8 +117,7 @@ inline uint32 _rule_(uint32 r1, uint32 r2, uint32 r3, uint32 r4)
{ return ((r1 << 12) | (r2 << 8) | (r3 << 4) | r4); } { return ((r1 << 12) | (r2 << 8) | (r3 << 4) | r4); }
#define B_FOLLOW_NONE 0 #define B_FOLLOW_NONE 0
#define B_FOLLOW_ALL_SIDES _rule_(_VIEW_TOP_, _VIEW_LEFT_, _VIEW_BOTTOM_,\ #define B_FOLLOW_ALL_SIDES _rule_(_VIEW_TOP_, _VIEW_LEFT_, _VIEW_BOTTOM_, _VIEW_RIGHT_)
_VIEW_RIGHT_)
#define B_FOLLOW_ALL B_FOLLOW_ALL_SIDES #define B_FOLLOW_ALL B_FOLLOW_ALL_SIDES
#define B_FOLLOW_LEFT _rule_(0, _VIEW_LEFT_, 0, _VIEW_LEFT_) #define B_FOLLOW_LEFT _rule_(0, _VIEW_LEFT_, 0, _VIEW_LEFT_)
+177 -147
View File
@@ -21,16 +21,20 @@
// //
// File Name: Window.h // File Name: Window.h
// Author: Erik Jaesler ([email protected]) // Author: Erik Jaesler ([email protected])
// DarkWyrm <[email protected]>
// Description: BWindow is the base class for all windows (graphic areas // Description: BWindow is the base class for all windows (graphic areas
// displayed on-screen). // displayed on-screen).
//
//
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// NOTE(!!!) All private non virtual functions are to be renamed following
// this scheme: word_another_third <-> wordAnotherThird
// OBOS Team: If you use one of BWindow's private functions, please addapt to this code
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#ifndef _WINDOW_H #ifndef _WINDOW_H
#define _WINDOW_H #define _WINDOW_H
class PortLink;
// Standard Includes ----------------------------------------------------------- // Standard Includes -----------------------------------------------------------
// System Includes ------------------------------------------------------------- // System Includes -------------------------------------------------------------
@@ -116,7 +120,7 @@ enum {
//---------------------------------------------------------------- //----------------------------------------------------------------
class _BSession_; class PortLink;
class BButton; class BButton;
class BMenuBar; class BMenuBar;
class BMenuItem; class BMenuItem;
@@ -133,142 +137,142 @@ struct _view_attr_;
class BWindow : public BLooper { class BWindow : public BLooper {
public: public:
BWindow(BRect frame, BWindow(BRect frame, //done
const char* title, const char* title,
window_type type, window_type type,
uint32 flags, uint32 flags,
uint32 workspace = B_CURRENT_WORKSPACE); uint32 workspace = B_CURRENT_WORKSPACE);
BWindow(BRect frame, BWindow(BRect frame, //done, but must be maintained - call InitData(...)
const char* title, const char* title,
window_look look, window_look look,
window_feel feel, window_feel feel,
uint32 flags, uint32 flags,
uint32 workspace = B_CURRENT_WORKSPACE); uint32 workspace = B_CURRENT_WORKSPACE);
virtual ~BWindow(); virtual ~BWindow(); //done
BWindow(BMessage* data); BWindow(BMessage* data); //done
static BArchivable *Instantiate(BMessage* data); static BArchivable *Instantiate(BMessage* data); //done
virtual status_t Archive(BMessage* data, bool deep = true) const; virtual status_t Archive(BMessage* data, bool deep = true) const; //done
virtual void Quit(); virtual void Quit(); //done
void Close(); // Synonym of Quit() void Close(); // Synonym of Quit()
void AddChild(BView* child, BView* before = NULL); void AddChild(BView* child, BView* before = NULL); //done
bool RemoveChild(BView* child); bool RemoveChild(BView* child); //done
int32 CountChildren() const; int32 CountChildren() const; //done
BView *ChildAt(int32 index) const; BView *ChildAt(int32 index) const; //done
virtual void DispatchMessage(BMessage* message, BHandler* handler); virtual void DispatchMessage(BMessage* message, BHandler* handler); //done
virtual void MessageReceived(BMessage* message); virtual void MessageReceived(BMessage* message); //done
virtual void FrameMoved(BPoint new_position); virtual void FrameMoved(BPoint new_position); //done
virtual void WorkspacesChanged(uint32 old_ws, uint32 new_ws); virtual void WorkspacesChanged(uint32 old_ws, uint32 new_ws); //done
virtual void WorkspaceActivated(int32 ws, bool state); virtual void WorkspaceActivated(int32 ws, bool state); //done
virtual void FrameResized(float new_width, float new_height); virtual void FrameResized(float new_width, float new_height); //done
virtual void Minimize(bool minimize); virtual void Minimize(bool minimize); //done
virtual void Zoom( BPoint rec_position, virtual void Zoom( BPoint rec_position, //done
float rec_width, float rec_width,
float rec_height); float rec_height);
void Zoom(); void Zoom(); //done
void SetZoomLimits(float max_h, float max_v); void SetZoomLimits(float maxWidth, float maxHeight); //done // changed from: SetZoomLimits(float max_h, float max_v);
virtual void ScreenChanged(BRect screen_size, color_space depth); virtual void ScreenChanged(BRect screen_size, color_space depth); //done
void SetPulseRate(bigtime_t rate); void SetPulseRate(bigtime_t rate); //done
bigtime_t PulseRate() const; bigtime_t PulseRate() const; //done
void AddShortcut( uint32 key, void AddShortcut( uint32 key, //done
uint32 modifiers, uint32 modifiers,
BMessage* msg); BMessage* msg);
void AddShortcut( uint32 key, void AddShortcut( uint32 key, //done
uint32 modifiers, uint32 modifiers,
BMessage* msg, BMessage* msg,
BHandler* target); BHandler* target);
void RemoveShortcut(uint32 key, uint32 modifiers); void RemoveShortcut(uint32 key, uint32 modifiers); //done
void SetDefaultButton(BButton* button); void SetDefaultButton(BButton* button); //done
BButton *DefaultButton() const; BButton *DefaultButton() const; //done
virtual void MenusBeginning(); virtual void MenusBeginning(); //done
virtual void MenusEnded(); virtual void MenusEnded(); //done
bool NeedsUpdate() const; bool NeedsUpdate() const; //done
void UpdateIfNeeded(); void UpdateIfNeeded(); //done
BView *FindView(const char* view_name) const; BView *FindView(const char* viewName) const; //done // changed from: FindView( const char* view_name );
BView *FindView(BPoint) const; BView *FindView(BPoint) const; //done
BView *CurrentFocus() const; BView *CurrentFocus() const; //done
void Activate(bool = true); void Activate(bool = true); //done
virtual void WindowActivated(bool state); virtual void WindowActivated(bool state); //done
void ConvertToScreen(BPoint* pt) const; void ConvertToScreen(BPoint* pt) const; //done
BPoint ConvertToScreen(BPoint pt) const; BPoint ConvertToScreen(BPoint pt) const; //done
void ConvertFromScreen(BPoint* pt) const; void ConvertFromScreen(BPoint* pt) const; //done
BPoint ConvertFromScreen(BPoint pt) const; BPoint ConvertFromScreen(BPoint pt) const; //done
void ConvertToScreen(BRect* rect) const; void ConvertToScreen(BRect* rect) const; //done
BRect ConvertToScreen(BRect rect) const; BRect ConvertToScreen(BRect rect) const; //done
void ConvertFromScreen(BRect* rect) const; void ConvertFromScreen(BRect* rect) const; //done
BRect ConvertFromScreen(BRect rect) const; BRect ConvertFromScreen(BRect rect) const; //done
void MoveBy(float dx, float dy); void MoveBy(float dx, float dy); //done
void MoveTo(BPoint); void MoveTo(BPoint); //done
void MoveTo(float x, float y); void MoveTo(float x, float y); //done
void ResizeBy(float dx, float dy); void ResizeBy(float dx, float dy); //done
void ResizeTo(float width, float height); void ResizeTo(float width, float height); //done
virtual void Show(); virtual void Show(); //done
virtual void Hide(); virtual void Hide(); //done
bool IsHidden() const; bool IsHidden() const; //done
bool IsMinimized() const; bool IsMinimized() const; //done
void Flush() const; void Flush() const; //done
void Sync() const; void Sync() const; //done
status_t SendBehind(const BWindow* window); status_t SendBehind(const BWindow* window); //done
void DisableUpdates(); void DisableUpdates(); //done
void EnableUpdates(); void EnableUpdates(); //done
void BeginViewTransaction(); void BeginViewTransaction(); //done // referred as OpenViewTransaction() in BeBook
void EndViewTransaction(); void EndViewTransaction(); //done // referred as CommitViewTransaction() in BeBook
BRect Bounds() const; BRect Bounds() const; //done
BRect Frame() const; BRect Frame() const; //done
const char *Title() const; const char *Title() const; //done
void SetTitle(const char* title); void SetTitle(const char* title); //done
bool IsFront() const; bool IsFront() const; //done
bool IsActive() const; bool IsActive() const; //done
void SetKeyMenuBar(BMenuBar* bar); void SetKeyMenuBar(BMenuBar* bar); //done
BMenuBar *KeyMenuBar() const; BMenuBar *KeyMenuBar() const; //done
void SetSizeLimits( float min_h, void SetSizeLimits( float minWidth, //done // changed from: SetSizeLimits(float min_h, float max_h, float min_v, float max_v);
float max_h, float maxWidth,
float min_v, float minHeight,
float max_v); float maxHeight);
void GetSizeLimits( float* min_h, void GetSizeLimits( float *minWidth, //done // changed from: SetSizeLimits(float* min_h, float* max_h, float* min_v, float* max_v);
float* max_h, float *maxWidth,
float* min_v, float *minHeight,
float* max_v); float *maxHeight);
uint32 Workspaces() const; uint32 Workspaces() const; //done
void SetWorkspaces(uint32); void SetWorkspaces(uint32); //done
BView *LastMouseMovedView() const; BView *LastMouseMovedView() const; //done
virtual BHandler *ResolveSpecifier(BMessage* msg, virtual BHandler *ResolveSpecifier(BMessage* msg, //done
int32 index, int32 index,
BMessage* specifier, BMessage* specifier,
int32 form, int32 form,
const char* property); const char* property);
virtual status_t GetSupportedSuites(BMessage* data); virtual status_t GetSupportedSuites(BMessage* data); //done
status_t AddToSubset(BWindow* window); status_t AddToSubset(BWindow* window); //done
status_t RemoveFromSubset(BWindow* window); status_t RemoveFromSubset(BWindow* window); //done
virtual status_t Perform(perform_code d, void* arg); virtual status_t Perform(perform_code d, void* arg); //done
status_t SetType(window_type type); status_t SetType(window_type type); //done
window_type Type() const; window_type Type() const; //done
status_t SetLook(window_look look); status_t SetLook(window_look look); //done
window_look Look() const; window_look Look() const; //done
status_t SetFeel(window_feel feel); status_t SetFeel(window_feel feel); //done
window_feel Feel() const; window_feel Feel() const; //done
status_t SetFlags(uint32); status_t SetFlags(uint32); //done
uint32 Flags() const; uint32 Flags() const; //done
bool IsModal() const; bool IsModal() const; //done
bool IsFloating() const; bool IsFloating() const; //done
status_t SetWindowAlignment(window_alignment mode, status_t SetWindowAlignment(window_alignment mode, //done
int32 h, int32 h,
int32 hOffset = 0, int32 hOffset = 0,
int32 width = 0, int32 width = 0,
@@ -277,7 +281,7 @@ virtual status_t Perform(perform_code d, void* arg);
int32 vOffset = 0, int32 vOffset = 0,
int32 height = 0, int32 height = 0,
int32 heightOffset = 0); int32 heightOffset = 0);
status_t GetWindowAlignment(window_alignment* mode = NULL, status_t GetWindowAlignment(window_alignment* mode = NULL, //done
int32* h = NULL, int32* h = NULL,
int32* hOffset = NULL, int32* hOffset = NULL,
int32* width = NULL, int32* width = NULL,
@@ -287,8 +291,8 @@ virtual status_t Perform(perform_code d, void* arg);
int32* height = NULL, int32* height = NULL,
int32* heightOffset = NULL) const; int32* heightOffset = NULL) const;
virtual bool QuitRequested(); virtual bool QuitRequested(); //done
virtual thread_id Run(); virtual thread_id Run(); //done
// Private or reserved --------------------------------------------------------- // Private or reserved ---------------------------------------------------------
private: private:
@@ -303,7 +307,8 @@ friend class BMenuItem;
friend class BWindowScreen; friend class BWindowScreen;
friend class BDirectWindow; friend class BDirectWindow;
friend class BFilePanel; friend class BFilePanel;
friend class _CEventPort_; friend class BHandler;
friend class _BEventMask_;
friend void _set_menu_sem_(BWindow* w, sem_id sem); friend void _set_menu_sem_(BWindow* w, sem_id sem);
friend status_t _safe_get_server_token_(const BLooper* , int32* ); friend status_t _safe_get_server_token_(const BLooper* , int32* );
@@ -320,18 +325,18 @@ virtual void _ReservedWindow8();
BWindow(BWindow&); BWindow(BWindow&);
BWindow &operator=(BWindow&); BWindow &operator=(BWindow&);
BWindow(BRect frame, color_space depth, BWindow(BRect frame, color_space depth, // I'm realllly curious in the things that this funtion does
uint32 bitmapFlags, int32 rowBytes); uint32 bitmapFlags, int32 rowBytes); // I think it's called from every constructor and sends its server counterpart (ServerWindow) the message for creating a surface(BBitmap) with certain parameters.
void InitData(BRect frame, void InitData(BRect frame,
const char* title, const char* title,
window_look look, window_look look,
window_feel feel, window_feel feel,
uint32 flags, uint32 flags,
uint32 workspace); uint32 workspace);
status_t ArchiveChildren(BMessage* data, bool deep) const; status_t ArchiveChildren(BMessage* data, bool deep) const; // call made from within Archive
status_t UnarchiveChildren(BMessage* data); status_t UnarchiveChildren(BMessage* data); // Instantiate(BMessage* data)->BWindow(BMessage)->UnarchiveChildren(BMessage* data)
void BitmapClose(); void BitmapClose();
virtual void task_looper(); virtual void task_looper(); // thread function - it's here where app_server messages are received and converted to BMessages
void start_drag( BMessage* msg, void start_drag( BMessage* msg,
int32 token, int32 token,
BPoint offset, BPoint offset,
@@ -343,15 +348,15 @@ virtual void task_looper();
int32 bitmap_token, int32 bitmap_token,
drawing_mode dragMode, drawing_mode dragMode,
BHandler* reply_to); BHandler* reply_to);
void view_builder(BView* a_view); void view_builder(BView* a_view); // It passes needed parameters to a BView allready created.
void attach_builder(BView* a_view); void attach_builder(BView* a_view); // Attaches the view
void detach_builder(BView* a_view); void detach_builder(BView* a_view); // Detaches the view
int32 get_server_token() const; int32 get_server_token() const;
BMessage *extract_drop(BMessage* an_event, BHandler* *target); BMessage *extract_drop(BMessage* an_event, BHandler* *target);
void movesize(uint32 opcode, float h, float v); void movesize(uint32 opcode, float h, float v);
BMessage* ReadMessageFromPort(bigtime_t tout = B_INFINITE_TIMEOUT); BMessage* ReadMessageFromPort(bigtime_t tout = B_INFINITE_TIMEOUT); // reads a message from receive_port and passes it along with the message body to CreateMessage(void*, int32) function
int32 MessagesWaiting(); int32 MessagesWaiting(); // (?)# of messages waiting in the port queue
void handle_activate(BMessage* an_event); void handle_activate(BMessage* an_event);
void do_view_frame(BMessage* an_event); void do_view_frame(BMessage* an_event);
@@ -362,10 +367,10 @@ virtual void task_looper();
void do_key_up(BMessage* an_event, BHandler* handler); void do_key_up(BMessage* an_event, BHandler* handler);
void do_menu_event(BMessage* an_event); void do_menu_event(BMessage* an_event);
void do_draw_views(); void do_draw_views();
virtual BMessage *ConvertToMessage(void* raw, int32 code); virtual BMessage *ConvertToMessage(void* raw, int32 code); // HUGE function - it convers PortLink messages into BMessage messages
_cmd_key_ *allocShortcut(uint32 key, uint32 modifiers); _cmd_key_ *allocShortcut(uint32 key, uint32 modifiers);
_cmd_key_ *FindShortcut(uint32 key, uint32 modifiers); _cmd_key_ *FindShortcut(uint32 key, uint32 modifiers);
void AddShortcut(uint32 key, void AddShortcut(uint32 key, // !!! - and menu shortcuts to list when a menu is added
uint32 modifiers, uint32 modifiers,
BMenuItem* item); BMenuItem* item);
void post_message(BMessage* message); void post_message(BMessage* message);
@@ -374,68 +379,93 @@ virtual BMessage *ConvertToMessage(void* raw, int32 code);
BHandler *determine_target(BMessage* msg, BHandler* target, bool pref); BHandler *determine_target(BMessage* msg, BHandler* target, bool pref);
void kb_navigate(); void kb_navigate();
void navigate_to_next(int32 direction, bool group = false); void navigate_to_next(int32 direction, bool group = false);
void set_focus(BView* focus, bool notify_input_server); void set_focus(BView* focus, bool notify_input_server); // what does notify_input_server mean??? why???
bool InUpdate(); bool InUpdate();
void DequeueAll(); void DequeueAll();
bool find_token_and_handler(BMessage* msg, bool find_token_and_handler(BMessage* msg,
int32* token, int32* token,
BHandler* *handler); BHandler* *handler);
window_type compose_type(window_look look, window_type composeType(window_look look, // changed from: compose_type(...)
window_feel feel) const; window_feel feel) const;
void decompose_type(window_type type, void decomposeType(window_type type, // changed from: decompose_type(...)
window_look* look, window_look* look,
window_feel* feel) const; window_feel* feel) const;
void SetIsFilePanel(bool panel); void SetIsFilePanel(bool yes);
bool IsFilePanel() const; bool IsFilePanel() const;
// OBOS BWindow's addon functions
uint32 WindowLookToInteger(window_look wl);
uint32 WindowFeelToInteger(window_feel wf);
BView* buildTopView();
void attachTopView();
void detachTopView();
void setFocus(BView *focusView, bool notifyIputServer);
bool handleBWindowKeys( BString, uint32);
// message: B_MOUSE_UP, B_MOUSE_DOWN, B_MOUSE_MOVED
void sendMessageUsingEventMask( int32 message, BPoint where );
void sendWillingBViewsPulseMsg( BView* );
int32 findShortcut(int32 key, int32 modifiers);
bool findHandler( BView* start, BHandler* handler );
BView* findView(BView* aView, const char* viewName) const;
BView* findView(BView* aView, BPoint point) const;
BView* findView(BView* aView, int32 token);
void drawAllViews(BView* aView);
// END: OBOS addon functions
// 3 deprecated calls // 3 deprecated calls
void AddFloater(BWindow* a_floating_window); void AddFloater(BWindow* a_floating_window);
void RemoveFloater(BWindow* a_floating_window); void RemoveFloater(BWindow* a_floating_window);
window_type WindowType() const; window_type WindowType() const;
char *fTitle; char *fTitle; // set
int32 server_token; int32 server_token;
char fInUpdate; bool fInTransaction; // set // changed from: char fInUpdate;
char f_active; bool fActive; // changed from: char f_active;
short fShowLevel; short fShowLevel;
uint32 fFlags; uint32 fFlags; // set
port_id send_port; port_id send_port; // set
port_id receive_port; port_id receive_port; // set
BView *top_view; BView *top_view;
BView *fFocus; BView *fFocus;
BView *fLastMouseMovedView; BView *fLastMouseMovedView; // set
PortLink *serverlink; PortLink *serverLink;
BMenuBar *fKeyMenuBar; BMenuBar *fKeyMenuBar; // set
BButton *fDefaultButton; BButton *fDefaultButton; // set
BList accelList; BList accelList; // set
int32 top_view_token; int32 fTopViewToken; // // changed from: int32 top_view_token;
bool pulse_enabled; bool fPulseEnabled; // // changed from: bool pulse_enabled;
bool fViewsNeedPulse; bool fViewsNeedPulse;
bool fIsFilePanel; bool fIsFilePanel;
bool fUnused1; bool fUnused1;
bigtime_t pulse_rate; bigtime_t fPulseRate; // // changed from: bigtime_t pulse_rate;
bool fWaitingForMenu; bool fWaitingForMenu;
bool fOffscreen; bool fMinimized; // // changed from: bool fOffscreen;
sem_id fMenuSem; sem_id fMenuSem;
float fMaxZoomH; float fMaxZoomHeight; // set // changed from: float fMaxZoomH;
float fMaxZoomV; float fMaxZoomWidth; // set // changed from: float fMaxZoomV;
float fMinWindH; float fMinWindHeight; // set // changed from: float fMinWindH;
float fMinWindV; float fMinWindWidth; // set // changed from: float fMinWindV;
float fMaxWindH; float fMaxWindHeight; // set // changed from: float fMaxWindH;
float fMaxWindV; float fMaxWindWidth; // set // changed from: float fMaxWindV;
BRect fFrame; BRect fFrame; // set
window_look fLook; window_look fLook; // set
_view_attr_ *fCurDrawViewState; _view_attr_ *fCurDrawViewState;
window_feel fFeel; window_feel fFeel; // set
int32 fLastViewToken; int32 fLastViewToken;
_CEventPort_* fEventPort; _BEventMask_* fEventMask; // changed from: _CEventPort_* fEventPort;
BMessageRunner *fPulseRunner; BMessageRunner *fPulseRunner;
BRect fCurrentFrame; BRect fCurrentFrame;
uint32 _reserved[2]; // was 8 // dedicated for graphic calls
PortLink *srvGfxLink; // set
uint32 _reserved;
// uint32 _reserved[2]; // was 8
#if !_PR3_COMPATIBLE_ #if !_PR3_COMPATIBLE_
uint32 _more_reserved[4]; uint32 _more_reserved[4];
#endif #endif
+54
View File
@@ -0,0 +1,54 @@
//------------------------------------------------------------------------------
// Copyright (c) 2001-2002, OpenBeOS
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//
// File Name: WindowAux.h
// Author: Adrian Oanca ([email protected])
// Description: BWindowAux.h contains helper definitions for BWindow class
//
//------------------------------------------------------------------------------
#ifndef _WINDOWAUX_H
#define _WINDOWAUX_H
// Standard Includes -----------------------------------------------------------
// System Includes -------------------------------------------------------------
#include <BeBuild.h>
#include <Message.h>
#include <Handler.h>
// Project Includes ------------------------------------------------------------
// Local Includes --------------------------------------------------------------
// Local Defines ---------------------------------------------------------------
// Globals ---------------------------------------------------------------------
struct _BCmdKey{
uint32 key;
uint32 modifiers;
BMessage* message;
BHandler* target;
};
#endif // _WINDOWAUX_H