LLWindowWin32 Class Reference

#include <llwindowwin32.h>

Inheritance diagram for LLWindowWin32:

Inheritance graph
Collaboration diagram for LLWindowWin32:

Collaboration graph
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 () const
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 delayInputProcessing ()
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)
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)
BOOL dialog_color_picker (F32 *r, F32 *g, F32 *b)
voidgetPlatformWindow ()
void bringToFront ()
void focusClient ()
void allowLanguageTextInput (BOOL b)
void setLanguageTextInput (const LLCoordGL &pos)

Protected Member Functions

 LLWindowWin32 (char *title, char *name, 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)
 ~LLWindowWin32 ()
void initCursors ()
HCURSOR loadColorCursor (LPCTSTR name)
BOOL isValid ()
void moveWindow (const LLCoordScreen &position, const LLCoordScreen &size)
BOOL setDisplayResolution (S32 width, S32 height, S32 bits, S32 refresh)
BOOL setFullscreenResolution ()
BOOL resetDisplayResolution ()
void minimize ()
void restore ()
BOOL shouldPostQuit ()
BOOL getClientRectInScreenSpace (RECT *rectp)
void updateJoystick ()

Static Protected Member Functions

static LRESULT CALLBACK mainWindowProc (HWND h_wnd, UINT u_msg, WPARAM w_param, LPARAM l_param)
static BOOL CALLBACK enumChildWindows (HWND h_wnd, LPARAM l_param)

Protected Attributes

WCHAR * mWindowTitle
WCHAR * mWindowClassName
HWND mWindowHandle
HINSTANCE mhInstance
RECT mOldMouseClip
WPARAM mLastSizeWParam
F32 mOverrideAspectRatio
F32 mNativeAspectRatio
F32 mCurrentGamma
WORD mPrevGammaRamp [256 *3]
WORD mCurrentGammaRamp [256 *3]
LPWSTR mIconResource
BOOL mMousePositionModified
BOOL mInputProcessingPaused

Static Protected Attributes

static BOOL sIsClassRegistered
static BOOL sLanguageTextInputAllowed
static BOOL sWinIMEOpened
static HKL sWinInputLocale
static DWORD sWinIMEConversionMode
static DWORD sWinIMESentenceMode


class LLWindowManager

Detailed Description

Definition at line 46 of file llwindowwin32.h.

Constructor & Destructor Documentation

LLWindowWin32::LLWindowWin32 ( char *  title,
char *  name,
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]

LLWindowWin32::~LLWindowWin32 (  )  [protected]

Member Function Documentation

void LLWindowWin32::allowLanguageTextInput ( BOOL  b  )  [virtual]

Reimplemented from LLWindow.

void LLWindowWin32::bringToFront (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::captureMouse (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::close (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

void LLWindowWin32::delayInputProcessing (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::deleteFile ( const char *  file_name  ) 

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

Reimplemented from LLWindow.

static BOOL CALLBACK LLWindowWin32::enumChildWindows ( HWND  h_wnd,
LPARAM  l_param 
) [static, protected]

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

Implements LLWindow.

void LLWindowWin32::focusClient (  )  [virtual]

Reimplemented from LLWindow.

void LLWindowWin32::gatherInput (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::getClientRectInScreenSpace ( RECT *  rectp  )  [protected]

ECursorType LLWindowWin32::getCursor (  )  const [virtual]

Reimplemented from LLWindow.

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

Implements LLWindow.

BOOL LLWindowWin32::getFullscreen (  ) 

Reimplemented from LLWindow.

F32 LLWindowWin32::getGamma (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::getMaximized (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::getMinimized (  )  [virtual]

Implements LLWindow.

F32 LLWindowWin32::getNativeAspectRatio (  )  [virtual]

Implements LLWindow.

F32 LLWindowWin32::getPixelAspectRatio (  )  [virtual]

Implements LLWindow.

void* LLWindowWin32::getPlatformWindow (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Reimplemented from LLWindow.

Definition at line 82 of file llwindowwin32.h.

References LLWindow::mSwapMethod.

LLString LLWindowWin32::getTempFileName (  ) 

BOOL LLWindowWin32::getVisible (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::hide (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::hideCursor (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::hideCursorUntilMouseMove (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::initCursors (  )  [protected]

BOOL LLWindowWin32::isClipboardTextAvailable (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::isCursorHidden (  )  [virtual]

Implements LLWindow.

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

Reimplemented from LLWindow.

HCURSOR LLWindowWin32::loadColorCursor ( LPCTSTR  name  )  [protected]

static LRESULT CALLBACK LLWindowWin32::mainWindowProc ( HWND  h_wnd,
UINT  u_msg,
WPARAM  w_param,
LPARAM  l_param 
) [static, protected]

BOOL LLWindowWin32::maximize (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::minimize (  )  [protected]

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

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

Implements LLWindow.

void LLWindowWin32::releaseMouse (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::resetDisplayResolution (  )  [protected]

void LLWindowWin32::restore (  )  [protected]

BOOL LLWindowWin32::restoreGamma (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::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 LLWindowWin32::setCursor ( ECursorType  cursor  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

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

BOOL LLWindowWin32::setFullscreenResolution (  )  [protected]

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

Implements LLWindow.

void LLWindowWin32::setLanguageTextInput ( const LLCoordGL pos  )  [virtual]

Reimplemented from LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

Definition at line 104 of file llwindowwin32.h.

References mOverrideAspectRatio.

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

Implements LLWindow.

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

Implements LLWindow.

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

Definition at line 140 of file llwindowwin32.h.

References LLWindow::mPostQuit.

void LLWindowWin32::show (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::showCursor (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::showCursorFromMouseMove (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

void LLWindowWin32::swapBuffers (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

void LLWindowWin32::updateJoystick (  )  [protected]

Friends And Related Function Documentation

friend class LLWindowManager [friend]

Reimplemented from LLWindow.

Definition at line 192 of file llwindowwin32.h.

Member Data Documentation

F32 LLWindowWin32::mCurrentGamma [protected]

Definition at line 175 of file llwindowwin32.h.

WORD LLWindowWin32::mCurrentGammaRamp[256 *3] [protected]

Definition at line 177 of file llwindowwin32.h.

HCURSOR LLWindowWin32::mCursor[UI_CURSOR_COUNT] [protected]

Definition at line 171 of file llwindowwin32.h.

HDC LLWindowWin32::mhDC [protected]

Definition at line 163 of file llwindowwin32.h.

HINSTANCE LLWindowWin32::mhInstance [protected]

Definition at line 164 of file llwindowwin32.h.

HGLRC LLWindowWin32::mhRC [protected]

Definition at line 162 of file llwindowwin32.h.

LPWSTR LLWindowWin32::mIconResource [protected]

Definition at line 179 of file llwindowwin32.h.

BOOL LLWindowWin32::mInputProcessingPaused [protected]

Definition at line 181 of file llwindowwin32.h.

WPARAM LLWindowWin32::mLastSizeWParam [protected]

Definition at line 167 of file llwindowwin32.h.

BOOL LLWindowWin32::mMousePositionModified [protected]

Definition at line 180 of file llwindowwin32.h.

F32 LLWindowWin32::mNativeAspectRatio [protected]

Definition at line 169 of file llwindowwin32.h.

RECT LLWindowWin32::mOldMouseClip [protected]

Definition at line 166 of file llwindowwin32.h.

F32 LLWindowWin32::mOverrideAspectRatio [protected]

Definition at line 168 of file llwindowwin32.h.

Referenced by setNativeAspectRatio().

WORD LLWindowWin32::mPrevGammaRamp[256 *3] [protected]

Definition at line 176 of file llwindowwin32.h.

WCHAR* LLWindowWin32::mWindowClassName [protected]

Definition at line 159 of file llwindowwin32.h.

HWND LLWindowWin32::mWindowHandle [protected]

Definition at line 161 of file llwindowwin32.h.

WCHAR* LLWindowWin32::mWindowTitle [protected]

Definition at line 158 of file llwindowwin32.h.

WNDPROC LLWindowWin32::mWndProc [protected]

Definition at line 165 of file llwindowwin32.h.

BOOL LLWindowWin32::sIsClassRegistered [static, protected]

Definition at line 173 of file llwindowwin32.h.

BOOL LLWindowWin32::sLanguageTextInputAllowed [static, protected]

Definition at line 186 of file llwindowwin32.h.

DWORD LLWindowWin32::sWinIMEConversionMode [static, protected]

Definition at line 189 of file llwindowwin32.h.

BOOL LLWindowWin32::sWinIMEOpened [static, protected]

Definition at line 187 of file llwindowwin32.h.

DWORD LLWindowWin32::sWinIMESentenceMode [static, protected]

Definition at line 190 of file llwindowwin32.h.

HKL LLWindowWin32::sWinInputLocale [static, protected]

Definition at line 188 of file llwindowwin32.h.

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