SDL  2.0
SDL_BWin Class Reference

#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

Detailed Description

Definition at line 64 of file SDL_BWin.h.

Constructor & Destructor Documentation

SDL_BWin::SDL_BWin ( BRect  bounds,
window_look  look,
uint32  flags 
)
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, HAIKU_DrawThread(), and NULL.

: BDirectWindow(bounds, "Untitled", look, B_NORMAL_WINDOW_FEEL, flags)
{
#if SDL_VIDEO_OPENGL
_gl_type = 0;
#endif
_shown = false;
_inhibit_resize = false;
_mouse_focused = false;
/* Handle framebuffer stuff */
_buffer_locker = new BLocker();
#ifdef DRAWTHREAD
_draw_thread_id = spawn_thread(HAIKU_DrawThread, "drawing_thread",
B_NORMAL_PRIORITY, (void*) this);
resume_thread(_draw_thread_id);
#endif
}
virtual SDL_BWin::~SDL_BWin ( )
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.

{
Lock();
int32 result;
#if SDL_VIDEO_OPENGL
if (_SDL_GLView) {
_SDL_GLView->UnlockGL();
RemoveChild(_SDL_GLView); /* Why was this outside the if
statement before? */
}
#endif
Unlock();
#if SDL_VIDEO_OPENGL
if (_SDL_GLView) {
delete _SDL_GLView;
}
#endif
delete _prev_frame;
/* Clean up framebuffer stuff */
_buffer_locker->Lock();
#ifdef DRAWTHREAD
wait_for_thread(_draw_thread_id, &result);
#endif
}

Member Function Documentation

void SDL_BWin::_KeyEvent ( int32  keyCode,
const int8 *  keyUtf8,
const ssize_t &  len,
int32  keyState 
)
inlineprivate

Definition at line 535 of file SDL_BWin.h.

References BAPP_KEY, and NULL.

Referenced by DispatchMessage().

{
/* Create a message to pass along to the BeApp thread */
BMessage msg(BAPP_KEY);
msg.AddInt32("key-state", keyState);
msg.AddInt32("key-scancode", keyCode);
if (keyUtf8 != NULL) {
msg.AddData("key-utf8", B_INT8_TYPE, (const void*)keyUtf8, len);
}
be_app->PostMessage(&msg);
}
void SDL_BWin::_MouseButtonEvent ( int32  buttons)
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().

{
int32 buttonStateChange = buttons ^ _last_buttons;
/* Make sure at least one button has changed state */
if( !(buttonStateChange) ) {
return;
}
/* Add any mouse button events */
if(buttonStateChange & B_PRIMARY_MOUSE_BUTTON) {
B_PRIMARY_MOUSE_BUTTON);
}
if(buttonStateChange & B_SECONDARY_MOUSE_BUTTON) {
B_PRIMARY_MOUSE_BUTTON);
}
if(buttonStateChange & B_TERTIARY_MOUSE_BUTTON) {
B_PRIMARY_MOUSE_BUTTON);
}
_last_buttons = buttons;
}
void SDL_BWin::_MouseFocusEvent ( bool  focusGained)
inlineprivate

Definition at line 484 of file SDL_BWin.h.

References _mouse_focused, _PostWindowEvent(), and BAPP_MOUSE_FOCUS.

Referenced by _MouseMotionEvent().

{
_mouse_focused = focusGained;
BMessage msg(BAPP_MOUSE_FOCUS);
msg.AddBool("focusGained", focusGained);
/* FIXME: Why were these here?
if false: be_app->SetCursor(B_HAND_CURSOR);
if true: SDL_SetCursor(NULL); */
}
void SDL_BWin::_MouseMotionEvent ( BPoint &  where,
int32  transit 
)
inlineprivate

Definition at line 465 of file SDL_BWin.h.

References _mouse_focused, _MouseFocusEvent(), _PostWindowEvent(), and BAPP_MOUSE_MOVED.

Referenced by DispatchMessage().

{
if(transit == B_EXITED_VIEW) {
/* Change mouse focus */
}
} else {
/* Change mouse focus */
}
BMessage msg(BAPP_MOUSE_MOVED);
msg.AddInt32("x", (int)where.x);
msg.AddInt32("y", (int)where.y);
}
}
void SDL_BWin::_MouseWheelEvent ( int32  x,
int32  y 
)
inlineprivate

Definition at line 527 of file SDL_BWin.h.

References _PostWindowEvent(), and BAPP_MOUSE_WHEEL.

Referenced by DispatchMessage().

{
/* Create a message to pass along to the BeApp thread */
BMessage msg(BAPP_MOUSE_WHEEL);
msg.AddInt32("xticks", x);
msg.AddInt32("yticks", y);
}
void SDL_BWin::_MoveTo ( BMessage *  msg)
inlineprivate

Definition at line 567 of file SDL_BWin.h.

Referenced by MessageReceived().

{
int32 x, y;
if(
msg->FindInt32("window-x", &x) != B_OK ||
msg->FindInt32("window-y", &y) != B_OK
) {
return;
}
MoveTo(x, y);
}
void SDL_BWin::_PostWindowEvent ( BMessage &  msg)
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().

{
msg.AddInt32("window-id", _id);
be_app->PostMessage(&msg);
}
void SDL_BWin::_RepaintEvent ( )
inlineprivate

Definition at line 546 of file SDL_BWin.h.

References _PostWindowEvent(), and BAPP_REPAINT.

{
/* Force a repaint: Call the SDL exposed event */
BMessage msg(BAPP_REPAINT);
}
void SDL_BWin::_ResizeTo ( BMessage *  msg)
inlineprivate

Definition at line 578 of file SDL_BWin.h.

Referenced by MessageReceived().

{
int32 w, h;
if(
msg->FindInt32("window-w", &w) != B_OK ||
msg->FindInt32("window-h", &h) != B_OK
) {
return;
}
ResizeTo(w, h);
}
void SDL_BWin::_Restore ( )
inlineprivate

Definition at line 609 of file SDL_BWin.h.

References _prev_frame, Minimize(), NULL, and Show().

Referenced by MessageReceived().

{
if(IsMinimized()) {
Minimize(false);
} else if(IsHidden()) {
Show();
} else if(_prev_frame != NULL) { /* Zoomed */
MoveTo(_prev_frame->left, _prev_frame->top);
ResizeTo(_prev_frame->Width(), _prev_frame->Height());
}
}
void SDL_BWin::_SendMouseButton ( int32  button,
int32  state 
)
inlineprivate

Definition at line 520 of file SDL_BWin.h.

References _PostWindowEvent(), and BAPP_MOUSE_BUTTON.

Referenced by _MouseButtonEvent().

{
BMessage msg(BAPP_MOUSE_BUTTON);
msg.AddInt32("button-id", button);
msg.AddInt32("button-state", state);
}
void SDL_BWin::_SetBordered ( BMessage *  msg)
inlineprivate

Definition at line 589 of file SDL_BWin.h.

Referenced by MessageReceived().

{
bool bEnabled;
if(msg->FindBool("window-border", &bEnabled) != B_OK) {
return;
}
SetLook(bEnabled ? B_TITLED_WINDOW_LOOK : B_NO_BORDER_WINDOW_LOOK);
}
void SDL_BWin::_SetFullScreen ( BMessage *  msg)
inlineprivate

Definition at line 620 of file SDL_BWin.h.

Referenced by MessageReceived().

{
bool fullscreen;
if(
msg->FindBool("fullscreen", &fullscreen) != B_OK
) {
return;
}
SetFullScreen(fullscreen);
}
void SDL_BWin::_SetResizable ( BMessage *  msg)
inlineprivate

Definition at line 597 of file SDL_BWin.h.

Referenced by MessageReceived().

{
bool bEnabled;
if(msg->FindBool("window-resizable", &bEnabled) != B_OK) {
return;
}
if (bEnabled) {
SetFlags(Flags() & ~(B_NOT_RESIZABLE | B_NOT_ZOOMABLE));
} else {
SetFlags(Flags() | (B_NOT_RESIZABLE | B_NOT_ZOOMABLE));
}
}
void SDL_BWin::_SetTitle ( BMessage *  msg)
inlineprivate

Definition at line 557 of file SDL_BWin.h.

Referenced by MessageReceived().

{
const char *title;
if(
msg->FindString("window-title", &title) != B_OK
) {
return;
}
SetTitle(title);
}
bool SDL_BWin::BufferExists ( )
inline

Definition at line 445 of file SDL_BWin.h.

References _buffer_created.

{ return _buffer_created; }
bool SDL_BWin::BufferIsDirty ( )
inline

Definition at line 446 of file SDL_BWin.h.

References _buffer_dirty.

{ return _buffer_dirty; }
bool SDL_BWin::CanTrashWindowBuffer ( )
inline

Definition at line 444 of file SDL_BWin.h.

References _trash_window_buffer.

bool SDL_BWin::Connected ( )
inline

Definition at line 439 of file SDL_BWin.h.

References _connected.

{ return _connected; }
bool SDL_BWin::ConnectionEnabled ( )
inline

Definition at line 438 of file SDL_BWin.h.

References _connection_disabled.

virtual BGLView* SDL_BWin::CreateGLView ( Uint32  gl_flags)
inlinevirtual

Definition at line 132 of file SDL_BWin.h.

References _gl_type, _SDL_GLView, and NULL.

{
Lock();
if (_SDL_GLView == NULL) {
_SDL_GLView = new BGLView(Bounds(), "SDL GLView",
B_FOLLOW_ALL_SIDES,
(B_WILL_DRAW | B_FRAME_EVENTS),
gl_flags);
_gl_type = gl_flags;
}
AddChild(_SDL_GLView);
_SDL_GLView->EnableDirectMode(true);
_SDL_GLView->LockGL(); /* "New" GLViews are created */
Unlock();
return (_SDL_GLView);
}
virtual void SDL_BWin::DirectConnected ( direct_buffer_info *  info)
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().

{
return;
}
/* Determine if the pixel buffer is usable after this update */
|| ((info->buffer_state & B_BUFFER_RESIZED)
|| (info->buffer_state & B_BUFFER_RESET)
|| (info->driver_state == B_MODE_CHANGED));
switch(info->buffer_state & B_DIRECT_MODE_MASK) {
case B_DIRECT_START:
_connected = true;
case B_DIRECT_MODIFY:
if(_clips) {
}
_num_clips = info->clip_list_count;
_clips = (clipping_rect *)malloc(_num_clips*sizeof(clipping_rect));
if(_clips) {
memcpy(_clips, info->clip_list,
_num_clips*sizeof(clipping_rect));
_bits = (uint8*) info->bits;
_row_bytes = info->bytes_per_row;
_bounds = info->window_bounds;
_bytes_per_px = info->bits_per_pixel / 8;
_buffer_dirty = true;
}
break;
case B_DIRECT_STOP:
_connected = false;
break;
}
#if SDL_VIDEO_OPENGL
_SDL_GLView->DirectConnected(info);
}
#endif
/* Call the base object directconnected */
}
virtual void SDL_BWin::DispatchMessage ( BMessage *  msg,
BHandler *  target 
)
inlinevirtual

Definition at line 304 of file SDL_BWin.h.

References _KeyEvent(), _MouseButtonEvent(), _MouseMotionEvent(), _MouseWheelEvent(), i, NULL, SDL_PRESSED, and SDL_RELEASED.

{
BPoint where; /* Used by mouse moved */
int32 buttons; /* Used for mouse button events */
int32 key; /* Used for key events */
switch (msg->what) {
case B_MOUSE_MOVED:
int32 transit;
if (msg->FindPoint("where", &where) == B_OK
&& msg->FindInt32("be:transit", &transit) == B_OK) {
_MouseMotionEvent(where, transit);
}
/* FIXME: Apparently a button press/release event might be dropped
if made before before a different button is released. Does
B_MOUSE_MOVED have the data needed to check if a mouse button
state has changed? */
if (msg->FindInt32("buttons", &buttons) == B_OK) {
}
break;
case B_MOUSE_DOWN:
case B_MOUSE_UP:
/* _MouseButtonEvent() detects any and all buttons that may have
changed state, as well as that button's new state */
if (msg->FindInt32("buttons", &buttons) == B_OK) {
}
break;
case B_MOUSE_WHEEL_CHANGED:
float x, y;
if (msg->FindFloat("be:wheel_delta_x", &x) == B_OK
&& msg->FindFloat("be:wheel_delta_y", &y) == B_OK) {
_MouseWheelEvent((int)x, (int)y);
}
break;
case B_KEY_DOWN:
{
int32 i = 0;
int8 byte;
int8 bytes[4] = { 0, 0, 0, 0 };
while (i < 4 && msg->FindInt8("byte", i, &byte) == B_OK) {
bytes[i] = byte;
i++;
}
if (msg->FindInt32("key", &key) == B_OK) {
_KeyEvent((SDL_Scancode)key, &bytes[0], i, SDL_PRESSED);
}
}
break;
case B_UNMAPPED_KEY_DOWN: /* modifier keys are unmapped */
if (msg->FindInt32("key", &key) == B_OK) {
}
break;
case B_KEY_UP:
case B_UNMAPPED_KEY_UP: /* modifier keys are unmapped */
if (msg->FindInt32("key", &key) == B_OK) {
}
break;
default:
/* move it after switch{} so it's always handled
that way we keep Haiku features like:
- CTRL+Q to close window (and other shortcuts)
- PrintScreen to make screenshot into /boot/home
- etc.. */
/* BDirectWindow::DispatchMessage(msg, target); */
break;
}
}
virtual void SDL_BWin::FrameMoved ( BPoint  origin)
inlinevirtual

Definition at line 224 of file SDL_BWin.h.

References _PostWindowEvent(), and BAPP_WINDOW_MOVED.

{
/* Post a message to the BApp so that it can handle the window event */
BMessage msg(BAPP_WINDOW_MOVED);
msg.AddInt32("window-x", (int)origin.x);
msg.AddInt32("window-y", (int)origin.y);
/* Perform normal hook operations */
}
virtual void SDL_BWin::FrameResized ( float  width,
float  height 
)
inlinevirtual

Definition at line 235 of file SDL_BWin.h.

References _PostWindowEvent(), and BAPP_WINDOW_RESIZED.

{
/* Post a message to the BApp so that it can handle the window event */
BMessage msg(BAPP_WINDOW_RESIZED);
msg.AddInt32("window-w", (int)width + 1);
msg.AddInt32("window-h", (int)height + 1);
/* Perform normal hook operations */
}
BBitmap* SDL_BWin::GetBitmap ( )
inline

Definition at line 447 of file SDL_BWin.h.

References _bitmap.

{ return _bitmap; }
uint8* SDL_BWin::GetBufferPx ( )
inline

Definition at line 442 of file SDL_BWin.h.

References _bits.

{ return _bits; }
int32 SDL_BWin::GetBytesPerPx ( )
inline

Definition at line 443 of file SDL_BWin.h.

References _bytes_per_px.

{ return _bytes_per_px; }
clipping_rect* SDL_BWin::GetClips ( )
inline

Definition at line 440 of file SDL_BWin.h.

References _clips.

{ return _clips; }
int32 SDL_BWin::GetFbX ( )
inline

Definition at line 436 of file SDL_BWin.h.

References _bounds.

{ return _bounds.left; }
int32 SDL_BWin::GetFbY ( )
inline

Definition at line 437 of file SDL_BWin.h.

References _bounds.

{ return _bounds.top; }
Uint32 SDL_BWin::GetGLType ( )
inline

Definition at line 450 of file SDL_BWin.h.

References _gl_type.

{ return _gl_type; }
BGLView* SDL_BWin::GetGLView ( )
inline

Definition at line 449 of file SDL_BWin.h.

References _SDL_GLView.

{ return _SDL_GLView; }
int32 SDL_BWin::GetID ( )
inline

Definition at line 434 of file SDL_BWin.h.

References _id.

{ return _id; }
int32 SDL_BWin::GetNumClips ( )
inline

Definition at line 441 of file SDL_BWin.h.

References _num_clips.

{ return _num_clips; }
uint32 SDL_BWin::GetRowBytes ( )
inline

Definition at line 435 of file SDL_BWin.h.

References _row_bytes.

{ return _row_bytes; }
virtual void SDL_BWin::Hide ( )
inlinevirtual

Definition at line 286 of file SDL_BWin.h.

References _PostWindowEvent(), _shown, and BAPP_HIDE.

Referenced by MessageReceived().

{
_shown = false;
BMessage msg(BAPP_HIDE);
}
bool SDL_BWin::IsShown ( )
inline

Definition at line 433 of file SDL_BWin.h.

References _shown.

{ return _shown; }
void SDL_BWin::LockBuffer ( )
inline

Definition at line 456 of file SDL_BWin.h.

References _buffer_locker.

Referenced by DirectConnected().

{ _buffer_locker->Lock(); }
virtual void SDL_BWin::MessageReceived ( BMessage *  message)
inlinevirtual
virtual void SDL_BWin::Minimize ( bool  minimize)
inlinevirtual

Definition at line 294 of file SDL_BWin.h.

References _PostWindowEvent(), BAPP_MINIMIZE, and BAPP_RESTORE.

Referenced by _Restore(), and MessageReceived().

{
int32 minState = (minimize ? BAPP_MINIMIZE : BAPP_RESTORE);
BMessage msg(minState);
}
virtual bool SDL_BWin::QuitRequested ( )
inlinevirtual

Definition at line 247 of file SDL_BWin.h.

References _PostWindowEvent(), and BAPP_WINDOW_CLOSE_REQUESTED.

{
/* We won't allow a quit unless asked by DestroyWindow() */
return false;
}
virtual void SDL_BWin::RemoveGLView ( )
inlinevirtual

Definition at line 148 of file SDL_BWin.h.

References _SDL_GLView.

{
Lock();
_SDL_GLView->UnlockGL();
RemoveChild(_SDL_GLView);
}
Unlock();
}
void SDL_BWin::SetBitmap ( BBitmap *  bitmap)
inline

Definition at line 460 of file SDL_BWin.h.

References _bitmap.

void SDL_BWin::SetBufferDirty ( bool  bufferDirty)
inline

Definition at line 458 of file SDL_BWin.h.

References _buffer_dirty.

{ _buffer_dirty = bufferDirty; }
void SDL_BWin::SetBufferExists ( bool  bufferExists)
inline

Definition at line 455 of file SDL_BWin.h.

References _buffer_created.

{ _buffer_created = bufferExists; }
void SDL_BWin::SetID ( int32  id)
inline

Definition at line 454 of file SDL_BWin.h.

References _id.

{ _id = id; }
void SDL_BWin::SetTrashBuffer ( bool  trash)
inline

Definition at line 459 of file SDL_BWin.h.

References _trash_window_buffer.

virtual void SDL_BWin::Show ( )
inlinevirtual

Definition at line 276 of file SDL_BWin.h.

References _PostWindowEvent(), _shown, and BAPP_SHOW.

Referenced by _Restore(), and MessageReceived().

{
while(IsHidden()) {
}
_shown = true;
BMessage msg(BAPP_SHOW);
}
virtual void SDL_BWin::SwapBuffers ( void  )
inlinevirtual

Definition at line 157 of file SDL_BWin.h.

References _SDL_GLView.

{
_SDL_GLView->UnlockGL();
_SDL_GLView->LockGL();
_SDL_GLView->SwapBuffers();
}
void SDL_BWin::UnlockBuffer ( )
inline

Definition at line 457 of file SDL_BWin.h.

References _buffer_locker.

Referenced by DirectConnected().

{ _buffer_locker->Unlock(); }
virtual void SDL_BWin::WindowActivated ( bool  active)
inlinevirtual

Definition at line 255 of file SDL_BWin.h.

References _PostWindowEvent(), and BAPP_KEYBOARD_FOCUS.

{
BMessage msg(BAPP_KEYBOARD_FOCUS); /* Mouse focus sold separately */
msg.AddBool("focusGained", active);
}
virtual void SDL_BWin::Zoom ( BPoint  origin,
float  width,
float  height 
)
inlinevirtual

Definition at line 261 of file SDL_BWin.h.

References _PostWindowEvent(), _prev_frame, and BAPP_MAXIMIZE.

Referenced by MessageReceived().

{
BMessage msg(BAPP_MAXIMIZE); /* Closest thing to maximization Haiku has */
/* Before the window zooms, record its size */
if( !_prev_frame )
_prev_frame = new BRect(Frame());
/* Perform normal hook operations */
}

Field Documentation

BBitmap* SDL_BWin::_bitmap
private

Definition at line 659 of file SDL_BWin.h.

Referenced by GetBitmap(), SDL_BWin(), and SetBitmap().

uint8* SDL_BWin::_bits
private

Definition at line 650 of file SDL_BWin.h.

Referenced by DirectConnected(), and GetBufferPx().

clipping_rect SDL_BWin::_bounds
private

Definition at line 652 of file SDL_BWin.h.

Referenced by DirectConnected(), GetFbX(), and GetFbY().

bool SDL_BWin::_buffer_created
private

Definition at line 645 of file SDL_BWin.h.

Referenced by BufferExists(), SDL_BWin(), and SetBufferExists().

bool SDL_BWin::_buffer_dirty
private

Definition at line 645 of file SDL_BWin.h.

Referenced by BufferIsDirty(), DirectConnected(), SDL_BWin(), and SetBufferDirty().

BLocker* SDL_BWin::_buffer_locker
private

Definition at line 653 of file SDL_BWin.h.

Referenced by LockBuffer(), SDL_BWin(), UnlockBuffer(), and ~SDL_BWin().

int32 SDL_BWin::_bytes_per_px
private

Definition at line 656 of file SDL_BWin.h.

Referenced by DirectConnected(), and GetBytesPerPx().

clipping_rect* SDL_BWin::_clips
private

Definition at line 654 of file SDL_BWin.h.

Referenced by DirectConnected(), GetClips(), SDL_BWin(), and ~SDL_BWin().

bool SDL_BWin::_connected
private

Definition at line 645 of file SDL_BWin.h.

Referenced by Connected(), DirectConnected(), and SDL_BWin().

bool SDL_BWin::_connection_disabled
private

Definition at line 645 of file SDL_BWin.h.

Referenced by ConnectionEnabled(), DirectConnected(), SDL_BWin(), and ~SDL_BWin().

thread_id SDL_BWin::_draw_thread_id
private

Definition at line 657 of file SDL_BWin.h.

Referenced by SDL_BWin(), and ~SDL_BWin().

Uint32 SDL_BWin::_gl_type
private

Definition at line 633 of file SDL_BWin.h.

Referenced by CreateGLView(), GetGLType(), and SDL_BWin().

int32 SDL_BWin::_id
private

Definition at line 637 of file SDL_BWin.h.

Referenced by _PostWindowEvent(), GetID(), and SetID().

bool SDL_BWin::_inhibit_resize
private

Definition at line 640 of file SDL_BWin.h.

Referenced by SDL_BWin().

int32 SDL_BWin::_last_buttons
private

Definition at line 636 of file SDL_BWin.h.

Referenced by _MouseButtonEvent(), and SDL_BWin().

bool SDL_BWin::_mouse_focused
private

Definition at line 638 of file SDL_BWin.h.

Referenced by _MouseFocusEvent(), _MouseMotionEvent(), and SDL_BWin().

int32 SDL_BWin::_num_clips
private

Definition at line 655 of file SDL_BWin.h.

Referenced by DirectConnected(), and GetNumClips().

BRect* SDL_BWin::_prev_frame
private

Definition at line 642 of file SDL_BWin.h.

Referenced by _Restore(), SDL_BWin(), Zoom(), and ~SDL_BWin().

uint32 SDL_BWin::_row_bytes
private

Definition at line 651 of file SDL_BWin.h.

Referenced by DirectConnected(), and GetRowBytes().

BGLView* SDL_BWin::_SDL_GLView
private
bool SDL_BWin::_shown
private

Definition at line 639 of file SDL_BWin.h.

Referenced by Hide(), IsShown(), SDL_BWin(), and Show().

bool SDL_BWin::_trash_window_buffer
private

Definition at line 645 of file SDL_BWin.h.

Referenced by CanTrashWindowBuffer(), DirectConnected(), SDL_BWin(), and SetTrashBuffer().


The documentation for this class was generated from the following file: