SDL
2.0
|
#include <SDL_BWin.h>
Public Member Functions | |
SDL_BWin (BRect bounds, window_look look, uint32 flags) | |
virtual | ~ SDL_BWin () |
virtual BGLView * | CreateGLView (Uint32 gl_flags) |
virtual void | RemoveGLView () |
virtual void | SwapBuffers (void) |
virtual void | DirectConnected (direct_buffer_info *info) |
virtual void | FrameMoved (BPoint origin) |
virtual void | FrameResized (float width, float height) |
virtual bool | QuitRequested () |
virtual void | WindowActivated (bool active) |
virtual void | Zoom (BPoint origin, float width, float height) |
virtual void | Show () |
virtual void | Hide () |
virtual void | Minimize (bool minimize) |
virtual void | DispatchMessage (BMessage *msg, BHandler *target) |
virtual void | MessageReceived (BMessage *message) |
bool | IsShown () |
int32 | GetID () |
uint32 | GetRowBytes () |
int32 | GetFbX () |
int32 | GetFbY () |
bool | ConnectionEnabled () |
bool | Connected () |
clipping_rect * | GetClips () |
int32 | GetNumClips () |
uint8 * | GetBufferPx () |
int32 | GetBytesPerPx () |
bool | CanTrashWindowBuffer () |
bool | BufferExists () |
bool | BufferIsDirty () |
BBitmap * | GetBitmap () |
BGLView * | GetGLView () |
Uint32 | GetGLType () |
void | SetID (int32 id) |
void | SetBufferExists (bool bufferExists) |
void | LockBuffer () |
void | UnlockBuffer () |
void | SetBufferDirty (bool bufferDirty) |
void | SetTrashBuffer (bool trash) |
void | SetBitmap (BBitmap *bitmap) |
Private Member Functions | |
void | _MouseMotionEvent (BPoint &where, int32 transit) |
void | _MouseFocusEvent (bool focusGained) |
void | _MouseButtonEvent (int32 buttons) |
void | _SendMouseButton (int32 button, int32 state) |
void | _MouseWheelEvent (int32 x, int32 y) |
void | _KeyEvent (int32 keyCode, const int8 *keyUtf8, const ssize_t &len, int32 keyState) |
void | _RepaintEvent () |
void | _PostWindowEvent (BMessage &msg) |
void | _SetTitle (BMessage *msg) |
void | _MoveTo (BMessage *msg) |
void | _ResizeTo (BMessage *msg) |
void | _SetBordered (BMessage *msg) |
void | _SetResizable (BMessage *msg) |
void | _Restore () |
void | _SetFullScreen (BMessage *msg) |
Private Attributes | |
BGLView * | _SDL_GLView |
Uint32 | _gl_type |
int32 | _last_buttons |
int32 | _id |
bool | _mouse_focused |
bool | _shown |
bool | _inhibit_resize |
BRect * | _prev_frame |
bool | _connected |
bool | _connection_disabled |
bool | _buffer_created |
bool | _buffer_dirty |
bool | _trash_window_buffer |
uint8 * | _bits |
uint32 | _row_bytes |
clipping_rect | _bounds |
BLocker * | _buffer_locker |
clipping_rect * | _clips |
int32 | _num_clips |
int32 | _bytes_per_px |
thread_id | _draw_thread_id |
BBitmap * | _bitmap |
Definition at line 64 of file SDL_BWin.h.
|
inline |
Definition at line 68 of file SDL_BWin.h.
References _bitmap, _buffer_created, _buffer_dirty, _buffer_locker, _clips, _connected, _connection_disabled, _draw_thread_id, _gl_type, _inhibit_resize, _last_buttons, _mouse_focused, _prev_frame, _SDL_GLView, _shown, _trash_window_buffer, BE_DrawThread(), and NULL.
|
inlinevirtual |
Definition at line 97 of file SDL_BWin.h.
References _buffer_locker, _clips, _connection_disabled, _draw_thread_id, _prev_frame, _SDL_GLView, and free.
|
inlineprivate |
Definition at line 535 of file SDL_BWin.h.
References BAPP_KEY, and NULL.
Referenced by DispatchMessage().
|
inlineprivate |
Definition at line 495 of file SDL_BWin.h.
References _last_buttons, _SendMouseButton(), SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, and SDL_BUTTON_RIGHT.
Referenced by DispatchMessage().
|
inlineprivate |
Definition at line 484 of file SDL_BWin.h.
References _mouse_focused, _PostWindowEvent(), and BAPP_MOUSE_FOCUS.
Referenced by _MouseMotionEvent().
|
inlineprivate |
Definition at line 465 of file SDL_BWin.h.
References _mouse_focused, _MouseFocusEvent(), _PostWindowEvent(), and BAPP_MOUSE_MOVED.
Referenced by DispatchMessage().
|
inlineprivate |
Definition at line 527 of file SDL_BWin.h.
References _PostWindowEvent(), and BAPP_MOUSE_WHEEL.
Referenced by DispatchMessage().
|
inlineprivate |
|
inlineprivate |
Definition at line 551 of file SDL_BWin.h.
References _id.
Referenced by _MouseFocusEvent(), _MouseMotionEvent(), _MouseWheelEvent(), _RepaintEvent(), _SendMouseButton(), FrameMoved(), FrameResized(), Hide(), Minimize(), QuitRequested(), Show(), WindowActivated(), and Zoom().
|
inlineprivate |
Definition at line 546 of file SDL_BWin.h.
References _PostWindowEvent(), and BAPP_REPAINT.
|
inlineprivate |
|
inlineprivate |
Definition at line 609 of file SDL_BWin.h.
References _prev_frame, Minimize(), NULL, and Show().
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 520 of file SDL_BWin.h.
References _PostWindowEvent(), and BAPP_MOUSE_BUTTON.
Referenced by _MouseButtonEvent().
|
inlineprivate |
Definition at line 589 of file SDL_BWin.h.
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 620 of file SDL_BWin.h.
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 597 of file SDL_BWin.h.
Referenced by MessageReceived().
|
inlineprivate |
Definition at line 557 of file SDL_BWin.h.
Referenced by MessageReceived().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Definition at line 165 of file SDL_BWin.h.
References _bits, _bounds, _buffer_dirty, _bytes_per_px, _clips, _connected, _connection_disabled, _num_clips, _row_bytes, _SDL_GLView, _trash_window_buffer, free, LockBuffer(), malloc, memcpy, NULL, and UnlockBuffer().
|
inlinevirtual |
Definition at line 304 of file SDL_BWin.h.
References _KeyEvent(), _MouseButtonEvent(), _MouseMotionEvent(), _MouseWheelEvent(), i, NULL, SDL_PRESSED, and SDL_RELEASED.
|
inlinevirtual |
Definition at line 224 of file SDL_BWin.h.
References _PostWindowEvent(), and BAPP_WINDOW_MOVED.
|
inlinevirtual |
Definition at line 235 of file SDL_BWin.h.
References _PostWindowEvent(), and BAPP_WINDOW_RESIZED.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Definition at line 286 of file SDL_BWin.h.
References _PostWindowEvent(), _shown, and BAPP_HIDE.
Referenced by MessageReceived().
|
inline |
|
inline |
Definition at line 456 of file SDL_BWin.h.
References _buffer_locker.
Referenced by DirectConnected().
|
inlinevirtual |
Definition at line 386 of file SDL_BWin.h.
References _MoveTo(), _ResizeTo(), _Restore(), _SetBordered(), _SetFullScreen(), _SetResizable(), _SetTitle(), BWIN_FULLSCREEN, BWIN_HIDE_WINDOW, BWIN_MAXIMIZE_WINDOW, BWIN_MINIMIZE_WINDOW, BWIN_MOVE_WINDOW, BWIN_RESIZE_WINDOW, BWIN_RESTORE_WINDOW, BWIN_SET_BORDERED, BWIN_SET_RESIZABLE, BWIN_SET_TITLE, BWIN_SHOW_WINDOW, Hide(), Minimize(), and Show().
|
inlinevirtual |
Definition at line 294 of file SDL_BWin.h.
References _PostWindowEvent(), BAPP_MINIMIZE, and BAPP_RESTORE.
Referenced by _Restore(), and MessageReceived().
|
inlinevirtual |
Definition at line 247 of file SDL_BWin.h.
References _PostWindowEvent(), and BAPP_WINDOW_CLOSE_REQUESTED.
|
inlinevirtual |
|
inline |
Definition at line 460 of file SDL_BWin.h.
References _bitmap.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Definition at line 276 of file SDL_BWin.h.
References _PostWindowEvent(), _shown, and BAPP_SHOW.
Referenced by _Restore(), and MessageReceived().
|
inline |
Definition at line 457 of file SDL_BWin.h.
References _buffer_locker.
Referenced by DirectConnected().
|
inlinevirtual |
Definition at line 255 of file SDL_BWin.h.
References _PostWindowEvent(), and BAPP_KEYBOARD_FOCUS.
|
inlinevirtual |
Definition at line 261 of file SDL_BWin.h.
References _PostWindowEvent(), _prev_frame, and BAPP_MAXIMIZE.
|
private |
Definition at line 659 of file SDL_BWin.h.
Referenced by GetBitmap(), SDL_BWin(), and SetBitmap().
|
private |
Definition at line 650 of file SDL_BWin.h.
Referenced by DirectConnected(), and GetBufferPx().
|
private |
Definition at line 652 of file SDL_BWin.h.
Referenced by DirectConnected(), GetFbX(), and GetFbY().
|
private |
Definition at line 645 of file SDL_BWin.h.
Referenced by BufferExists(), SDL_BWin(), and SetBufferExists().
|
private |
Definition at line 645 of file SDL_BWin.h.
Referenced by BufferIsDirty(), DirectConnected(), SDL_BWin(), and SetBufferDirty().
|
private |
Definition at line 653 of file SDL_BWin.h.
Referenced by LockBuffer(), SDL_BWin(), UnlockBuffer(), and ~ SDL_BWin().
|
private |
Definition at line 656 of file SDL_BWin.h.
Referenced by DirectConnected(), and GetBytesPerPx().
|
private |
Definition at line 654 of file SDL_BWin.h.
Referenced by DirectConnected(), GetClips(), SDL_BWin(), and ~ SDL_BWin().
|
private |
Definition at line 645 of file SDL_BWin.h.
Referenced by Connected(), DirectConnected(), and SDL_BWin().
|
private |
Definition at line 645 of file SDL_BWin.h.
Referenced by ConnectionEnabled(), DirectConnected(), SDL_BWin(), and ~ SDL_BWin().
|
private |
Definition at line 657 of file SDL_BWin.h.
Referenced by SDL_BWin(), and ~ SDL_BWin().
|
private |
Definition at line 633 of file SDL_BWin.h.
Referenced by CreateGLView(), GetGLType(), and SDL_BWin().
|
private |
Definition at line 637 of file SDL_BWin.h.
Referenced by _PostWindowEvent(), GetID(), and SetID().
|
private |
Definition at line 640 of file SDL_BWin.h.
Referenced by SDL_BWin().
|
private |
Definition at line 636 of file SDL_BWin.h.
Referenced by _MouseButtonEvent(), and SDL_BWin().
|
private |
Definition at line 638 of file SDL_BWin.h.
Referenced by _MouseFocusEvent(), _MouseMotionEvent(), and SDL_BWin().
|
private |
Definition at line 655 of file SDL_BWin.h.
Referenced by DirectConnected(), and GetNumClips().
|
private |
Definition at line 642 of file SDL_BWin.h.
Referenced by _Restore(), SDL_BWin(), Zoom(), and ~ SDL_BWin().
|
private |
Definition at line 651 of file SDL_BWin.h.
Referenced by DirectConnected(), and GetRowBytes().
|
private |
Definition at line 632 of file SDL_BWin.h.
Referenced by CreateGLView(), DirectConnected(), GetGLView(), RemoveGLView(), SDL_BWin(), SwapBuffers(), and ~ SDL_BWin().
|
private |
Definition at line 639 of file SDL_BWin.h.
Referenced by Hide(), IsShown(), SDL_BWin(), and Show().
|
private |
Definition at line 645 of file SDL_BWin.h.
Referenced by CanTrashWindowBuffer(), DirectConnected(), SDL_BWin(), and SetTrashBuffer().