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, const LLCoordScreen &size, BOOL disable_vsync, const LLCoordScreen *const posp=NULL)
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)
U32 getFSAASamples ()
void setFSAASamples (const U32 samples)
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)
LLWindowResolutiongetSupportedResolutions (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)
void * getPlatformWindow ()
void bringToFront ()

Static Public Member Functions

static std::string getFontListSans ()

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, U32 fsaa_samples)
 ~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
U32 mFSAASamples
int mSDLFlags
SDL_Cursor * mSDLCursors [UI_CURSOR_COUNT]
int mHaveInputFocus
int mIsMinimized

Friends

class LLWindowManager


Detailed Description

Definition at line 53 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,
U32  fsaa_samples 
) [protected]

LLWindowSDL::~LLWindowSDL (  )  [protected]


Member Function Documentation

void LLWindowSDL::show (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::hide (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::close (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::getVisible (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::getMinimized (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::getMaximized (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::maximize (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::getFullscreen (  ) 

Reimplemented from LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

BOOL LLWindowSDL::switchContext ( BOOL  fullscreen,
const LLCoordScreen size,
BOOL  disable_vsync,
const LLCoordScreen *const   posp = NULL 
) [virtual]

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

void LLWindowSDL::showCursor (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::hideCursor (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::showCursorFromMouseMove (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::hideCursorUntilMouseMove (  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::isCursorHidden (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

ECursorType LLWindowSDL::getCursor (  ) 

void LLWindowSDL::captureMouse (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::releaseMouse (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

BOOL LLWindowSDL::isClipboardTextAvailable (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

F32 LLWindowSDL::getGamma (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

U32 LLWindowSDL::getFSAASamples (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::setFSAASamples ( const U32  samples  )  [virtual]

Implements LLWindow.

BOOL LLWindowSDL::restoreGamma (  )  [virtual]

Implements LLWindow.

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

Reimplemented from LLWindow.

Definition at line 91 of file llwindowsdl.h.

References LLWindow::mSwapMethod.

void LLWindowSDL::gatherInput (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::swapBuffers (  )  [virtual]

Implements LLWindow.

LLString LLWindowSDL::getTempFileName (  ) 

void LLWindowSDL::deleteFile ( const char *  file_name  ) 

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

Implements LLWindow.

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::delayInputProcessing (  )  [inline, virtual]

Implements LLWindow.

Definition at line 100 of file llwindowsdl.h.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

F32 LLWindowSDL::getNativeAspectRatio (  )  [virtual]

Implements LLWindow.

F32 LLWindowSDL::getPixelAspectRatio (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

Definition at line 113 of file llwindowsdl.h.

References mOverrideAspectRatio.

void LLWindowSDL::beforeDialog (  )  [virtual]

Reimplemented from LLWindow.

void LLWindowSDL::afterDialog (  )  [virtual]

Reimplemented from LLWindow.

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

Reimplemented from LLWindow.

void* LLWindowSDL::getPlatformWindow (  )  [virtual]

Implements LLWindow.

void LLWindowSDL::bringToFront (  )  [virtual]

Implements LLWindow.

static std::string LLWindowSDL::getFontListSans (  )  [static]

Reimplemented from LLWindow.

Referenced by LLWindow::getFontListSans().

Here is the caller graph for this function:

void LLWindowSDL::initCursors (  )  [protected]

void LLWindowSDL::quitCursors (  )  [protected]

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

Reimplemented from LLWindow.

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

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

BOOL LLWindowSDL::setFullscreenResolution (  )  [protected]

void LLWindowSDL::minimize (  )  [protected]

void LLWindowSDL::restore (  )  [protected]

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

Definition at line 157 of file llwindowsdl.h.

References LLWindow::mPostQuit.

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

void LLWindowSDL::destroyContext (  )  [protected]

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

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

void LLWindowSDL::fixWindowSize ( void   )  [protected]

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

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


Friends And Related Function Documentation

friend class LLWindowManager [friend]

Reimplemented from LLWindow.

Definition at line 197 of file llwindowsdl.h.


Member Data Documentation

Definition at line 176 of file llwindowsdl.h.

Definition at line 177 of file llwindowsdl.h.

SDL_Surface* LLWindowSDL::mWindow [protected]

Definition at line 178 of file llwindowsdl.h.

char* LLWindowSDL::mWindowTitle [protected]

Definition at line 179 of file llwindowsdl.h.

Definition at line 180 of file llwindowsdl.h.

Definition at line 181 of file llwindowsdl.h.

Definition at line 182 of file llwindowsdl.h.

Definition at line 183 of file llwindowsdl.h.

Definition at line 184 of file llwindowsdl.h.

Definition at line 185 of file llwindowsdl.h.

Definition at line 186 of file llwindowsdl.h.

Definition at line 187 of file llwindowsdl.h.

Referenced by setNativeAspectRatio().

F32 LLWindowSDL::mGamma [protected]

Definition at line 188 of file llwindowsdl.h.

Definition at line 189 of file llwindowsdl.h.

int LLWindowSDL::mSDLFlags [protected]

Definition at line 191 of file llwindowsdl.h.

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

Definition at line 193 of file llwindowsdl.h.

Definition at line 194 of file llwindowsdl.h.

int LLWindowSDL::mIsMinimized [protected]

Definition at line 195 of file llwindowsdl.h.


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

Generated on Fri May 16 09:39:46 2008 for SecondLife by  doxygen 1.5.5