LLWindowSDL Class Reference

#include <llwindowsdl.h>

Inheritance diagram for LLWindowSDL:

Inheritance graph
[legend]
Collaboration diagram for LLWindowSDL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void show ()
void hide ()
void close ()
BOOL getVisible ()
BOOL getMinimized ()
BOOL getMaximized ()
BOOL maximize ()
BOOL getFullscreen ()
BOOL getPosition (LLCoordScreen *position)
BOOL getSize (LLCoordScreen *size)
BOOL getSize (LLCoordWindow *size)
BOOL setPosition (LLCoordScreen position)
BOOL setSize (LLCoordScreen size)
BOOL switchContext (BOOL fullscreen, LLCoordScreen size, BOOL disable_vsync)
BOOL setCursorPosition (LLCoordWindow position)
BOOL getCursorPosition (LLCoordWindow *position)
void showCursor ()
void hideCursor ()
void showCursorFromMouseMove ()
void hideCursorUntilMouseMove ()
BOOL isCursorHidden ()
void setCursor (ECursorType cursor)
ECursorType getCursor ()
void captureMouse ()
void releaseMouse ()
void setMouseClipping (BOOL b)
BOOL isClipboardTextAvailable ()
BOOL pasteTextFromClipboard (LLWString &dst)
BOOL copyTextToClipboard (const LLWString &src)
void flashIcon (F32 seconds)
F32 getGamma ()
BOOL setGamma (const F32 gamma)
BOOL restoreGamma ()
ESwapMethod getSwapMethod ()
void gatherInput ()
void swapBuffers ()
LLString getTempFileName ()
void deleteFile (const char *file_name)
S32 stat (const char *file_name, struct stat *stat_info)
BOOL sendEmail (const char *address, const char *subject, const char *body_text, const char *attachment=NULL, const char *attachment_displayed_name=NULL)
void delayInputProcessing ()
BOOL convertCoords (LLCoordScreen from, LLCoordWindow *to)
BOOL convertCoords (LLCoordWindow from, LLCoordScreen *to)
BOOL convertCoords (LLCoordWindow from, LLCoordGL *to)
BOOL convertCoords (LLCoordGL from, LLCoordWindow *to)
BOOL convertCoords (LLCoordScreen from, LLCoordGL *to)
BOOL convertCoords (LLCoordGL from, LLCoordScreen *to)
LLWindowResolution * getSupportedResolutions (S32 &num_resolutions)
F32 getNativeAspectRatio ()
F32 getPixelAspectRatio ()
void setNativeAspectRatio (F32 ratio)
void beforeDialog ()
void afterDialog ()
BOOL dialog_color_picker (F32 *r, F32 *g, F32 *b)
voidgetPlatformWindow ()
void bringToFront ()

Public Attributes

void(* Lock_Display )(void)
void(* Unlock_Display )(void)

Protected Member Functions

 LLWindowSDL (char *title, int x, int y, int width, int height, U32 flags, BOOL fullscreen, BOOL clearBg, BOOL disable_vsync, BOOL use_gl, BOOL ignore_pixel_depth, S32 stereo_mode)
 ~LLWindowSDL ()
void initCursors ()
void quitCursors ()
BOOL isValid ()
void moveWindow (const LLCoordScreen &position, const LLCoordScreen &size)
BOOL setDisplayResolution (S32 width, S32 height, S32 bits, S32 refresh)
BOOL setFullscreenResolution ()
void minimize ()
void restore ()
BOOL shouldPostQuit ()
BOOL createContext (int x, int y, int width, int height, int bits, BOOL fullscreen, BOOL disable_vsync)
void destroyContext ()
void setupFailure (const char *text, const char *caption, U32 type)
void adjustCursorDecouple (bool warpingMouse=false)
void fixWindowSize (void)
U32 SDLCheckGrabbyKeys (SDLKey keysym, BOOL gain)
BOOL SDLReallyCaptureInput (BOOL capture)

Protected Attributes

U32 mGrabbyKeyFlags
int mReallyCapturedCount
SDL_Surface * mWindow
char * mWindowTitle
double mOriginalAspectRatio
BOOL mCursorDecoupled
S32 mCursorLastEventDeltaX
S32 mCursorLastEventDeltaY
BOOL mCursorIgnoreNextDelta
BOOL mNeedsResize
LLCoordScreen mNeedsResizeSize
F32 mOverrideAspectRatio
F32 mGamma
int mSDLFlags
SDL_Cursor * mSDLCursors [UI_CURSOR_COUNT]
int mHaveInputFocus
int mIsMinimized

Friends

class LLWindowManager

Detailed Description

Definition at line 52 of file llwindowsdl.h.


Constructor & Destructor Documentation

LLWindowSDL::LLWindowSDL ( char *  title,
int  x,
int  y,
int  width,
int  height,
U32  flags,
BOOL  fullscreen,
BOOL  clearBg,
BOOL  disable_vsync,
BOOL  use_gl,
BOOL  ignore_pixel_depth,
S32  stereo_mode 
) [protected]

LLWindowSDL::~LLWindowSDL (  )  [protected]


Member Function Documentation

void LLWindowSDL::adjustCursorDecouple ( bool  warpingMouse = false  )  [protected]

void LLWindowSDL::afterDialog (  )  [virtual]

Reimplemented from LLWindow.

void LLWindowSDL::beforeDialog (  )  [virtual]

Reimplemented from LLWindow.

void LLWindowSDL::bringToFront (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::captureMouse (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::close (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::convertCoords ( LLCoordGL  from,
LLCoordScreen to 
) [virtual]

Implements LLWindow.

BOOL LLWindowSDL::convertCoords ( LLCoordScreen  from,
LLCoordGL to 
) [virtual]

Implements LLWindow.

BOOL LLWindowSDL::convertCoords ( LLCoordGL  from,
LLCoordWindow to 
) [virtual]

Implements LLWindow.

BOOL LLWindowSDL::convertCoords ( LLCoordWindow  from,
LLCoordGL to 
) [virtual]

Implements LLWindow.

BOOL LLWindowSDL::convertCoords ( LLCoordWindow  from,
LLCoordScreen to 
) [virtual]

Implements LLWindow.

BOOL LLWindowSDL::convertCoords ( LLCoordScreen  from,
LLCoordWindow to 
) [virtual]

Implements LLWindow.

BOOL LLWindowSDL::copyTextToClipboard ( const LLWString src  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::createContext ( int  x,
int  y,
int  width,
int  height,
int  bits,
BOOL  fullscreen,
BOOL  disable_vsync 
) [protected]

void LLWindowSDL::delayInputProcessing (  )  [inline, virtual]

Implements LLWindow.

Definition at line 97 of file llwindowsdl.h.

void LLWindowSDL::deleteFile ( const char *  file_name  ) 

void LLWindowSDL::destroyContext (  )  [protected]

BOOL LLWindowSDL::dialog_color_picker ( F32 r,
F32 g,
F32 b 
) [virtual]

Reimplemented from LLWindow.

void LLWindowSDL::fixWindowSize ( void   )  [protected]

void LLWindowSDL::flashIcon ( F32  seconds  )  [virtual]

Implements LLWindow.

void LLWindowSDL::gatherInput (  )  [virtual]

Implements LLWindow.

ECursorType LLWindowSDL::getCursor (  ) 

BOOL LLWindowSDL::getCursorPosition ( LLCoordWindow position  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::getFullscreen (  ) 

Reimplemented from LLWindow.

F32 LLWindowSDL::getGamma (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::getMaximized (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::getMinimized (  )  [virtual]

Implements LLWindow.

F32 LLWindowSDL::getNativeAspectRatio (  )  [virtual]

Implements LLWindow.

F32 LLWindowSDL::getPixelAspectRatio (  )  [virtual]

Implements LLWindow.

void* LLWindowSDL::getPlatformWindow (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::getPosition ( LLCoordScreen position  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::getSize ( LLCoordWindow size  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::getSize ( LLCoordScreen size  )  [virtual]

Implements LLWindow.

LLWindowResolution* LLWindowSDL::getSupportedResolutions ( S32 num_resolutions  )  [virtual]

Implements LLWindow.

ESwapMethod LLWindowSDL::getSwapMethod (  )  [inline, virtual]

Reimplemented from LLWindow.

Definition at line 88 of file llwindowsdl.h.

References LLWindow::mSwapMethod.

LLString LLWindowSDL::getTempFileName (  ) 

BOOL LLWindowSDL::getVisible (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::hide (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::hideCursor (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::hideCursorUntilMouseMove (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::initCursors (  )  [protected]

BOOL LLWindowSDL::isClipboardTextAvailable (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::isCursorHidden (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::isValid (  )  [protected, virtual]

Reimplemented from LLWindow.

BOOL LLWindowSDL::maximize (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::minimize (  )  [protected]

void LLWindowSDL::moveWindow ( const LLCoordScreen position,
const LLCoordScreen size 
) [protected]

BOOL LLWindowSDL::pasteTextFromClipboard ( LLWString dst  )  [virtual]

Implements LLWindow.

void LLWindowSDL::quitCursors (  )  [protected]

void LLWindowSDL::releaseMouse (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::restore (  )  [protected]

BOOL LLWindowSDL::restoreGamma (  )  [virtual]

Implements LLWindow.

U32 LLWindowSDL::SDLCheckGrabbyKeys ( SDLKey  keysym,
BOOL  gain 
) [protected]

BOOL LLWindowSDL::SDLReallyCaptureInput ( BOOL  capture  )  [protected]

BOOL LLWindowSDL::sendEmail ( const char *  address,
const char *  subject,
const char *  body_text,
const char *  attachment = NULL,
const char *  attachment_displayed_name = NULL 
) [virtual]

Implements LLWindow.

void LLWindowSDL::setCursor ( ECursorType  cursor  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::setCursorPosition ( LLCoordWindow  position  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::setDisplayResolution ( S32  width,
S32  height,
S32  bits,
S32  refresh 
) [protected]

BOOL LLWindowSDL::setFullscreenResolution (  )  [protected]

BOOL LLWindowSDL::setGamma ( const F32  gamma  )  [virtual]

Implements LLWindow.

void LLWindowSDL::setMouseClipping ( BOOL  b  )  [virtual]

Implements LLWindow.

void LLWindowSDL::setNativeAspectRatio ( F32  ratio  )  [inline, virtual]

Implements LLWindow.

Definition at line 110 of file llwindowsdl.h.

References mOverrideAspectRatio.

BOOL LLWindowSDL::setPosition ( LLCoordScreen  position  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::setSize ( LLCoordScreen  size  )  [virtual]

Implements LLWindow.

void LLWindowSDL::setupFailure ( const char *  text,
const char *  caption,
U32  type 
) [protected]

BOOL LLWindowSDL::shouldPostQuit (  )  [inline, protected]

Definition at line 152 of file llwindowsdl.h.

References LLWindow::mPostQuit.

void LLWindowSDL::show (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::showCursor (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::showCursorFromMouseMove (  )  [virtual]

Implements LLWindow.

S32 LLWindowSDL::stat ( const char *  file_name,
struct stat *  stat_info 
) [virtual]

Implements LLWindow.

void LLWindowSDL::swapBuffers (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::switchContext ( BOOL  fullscreen,
LLCoordScreen  size,
BOOL  disable_vsync 
) [virtual]

Implements LLWindow.


Friends And Related Function Documentation

friend class LLWindowManager [friend]

Reimplemented from LLWindow.

Definition at line 192 of file llwindowsdl.h.


Member Data Documentation

void(* LLWindowSDL::Lock_Display)(void)

BOOL LLWindowSDL::mCursorDecoupled [protected]

Definition at line 177 of file llwindowsdl.h.

BOOL LLWindowSDL::mCursorIgnoreNextDelta [protected]

Definition at line 180 of file llwindowsdl.h.

S32 LLWindowSDL::mCursorLastEventDeltaX [protected]

Definition at line 178 of file llwindowsdl.h.

S32 LLWindowSDL::mCursorLastEventDeltaY [protected]

Definition at line 179 of file llwindowsdl.h.

F32 LLWindowSDL::mGamma [protected]

Definition at line 184 of file llwindowsdl.h.

U32 LLWindowSDL::mGrabbyKeyFlags [protected]

Definition at line 172 of file llwindowsdl.h.

int LLWindowSDL::mHaveInputFocus [protected]

Definition at line 189 of file llwindowsdl.h.

int LLWindowSDL::mIsMinimized [protected]

Definition at line 190 of file llwindowsdl.h.

BOOL LLWindowSDL::mNeedsResize [protected]

Definition at line 181 of file llwindowsdl.h.

LLCoordScreen LLWindowSDL::mNeedsResizeSize [protected]

Definition at line 182 of file llwindowsdl.h.

double LLWindowSDL::mOriginalAspectRatio [protected]

Definition at line 176 of file llwindowsdl.h.

F32 LLWindowSDL::mOverrideAspectRatio [protected]

Definition at line 183 of file llwindowsdl.h.

Referenced by setNativeAspectRatio().

int LLWindowSDL::mReallyCapturedCount [protected]

Definition at line 173 of file llwindowsdl.h.

SDL_Cursor* LLWindowSDL::mSDLCursors[UI_CURSOR_COUNT] [protected]

Definition at line 188 of file llwindowsdl.h.

int LLWindowSDL::mSDLFlags [protected]

Definition at line 186 of file llwindowsdl.h.

SDL_Surface* LLWindowSDL::mWindow [protected]

Definition at line 174 of file llwindowsdl.h.

char* LLWindowSDL::mWindowTitle [protected]

Definition at line 175 of file llwindowsdl.h.

void(* LLWindowSDL::Unlock_Display)(void)


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:12:04 2010 for Second Life Viewer by  doxygen 1.4.7