LLWindowWin32 Class Reference

#include <llwindowwin32.h>

Inheritance diagram for LLWindowWin32:

Inheritance graph
[legend]
Collaboration diagram for LLWindowWin32:

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 () 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)
void setFSAASamples (const U32 fsaa_samples)
U32 getFSAASamples ()
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)
LLWindowResolutiongetSupportedResolutions (S32 &num_resolutions)
F32 getNativeAspectRatio ()
F32 getPixelAspectRatio ()
void setNativeAspectRatio (F32 ratio)
BOOL dialog_color_picker (F32 *r, F32 *g, F32 *b)
void * getPlatformWindow ()
void bringToFront ()
void focusClient ()
void allowLanguageTextInput (LLPreeditor *preeditor, BOOL b)
void setLanguageTextInput (const LLCoordGL &pos)
void updateLanguageTextInputArea ()
void interruptLanguageTextInput ()

Static Public Member Functions

static std::string getFontListSans ()

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, U32 fsaa_samples)
 ~LLWindowWin32 ()
void initCursors ()
void initInputDevices ()
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 ()
void fillCompositionForm (const LLRect &bounds, COMPOSITIONFORM *form)
void fillCandidateForm (const LLCoordGL &caret, const LLRect &bounds, CANDIDATEFORM *form)
void fillCharPosition (const LLCoordGL &caret, const LLRect &bounds, const LLRect &control, IMECHARPOSITION *char_position)
void fillCompositionLogfont (LOGFONT *logfont)
U32 fillReconvertString (const LLWString &text, S32 focus, S32 focus_length, RECONVERTSTRING *reconvert_string)
void handleStartCompositionMessage ()
void handleCompositionMessage (U32 indexes)
BOOL handleImeRequests (U32 request, U32 param, LRESULT *result)
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
HGLRC mhRC
HDC mhDC
HINSTANCE mhInstance
WNDPROC mWndProc
RECT mOldMouseClip
WPARAM mLastSizeWParam
F32 mOverrideAspectRatio
F32 mNativeAspectRatio
HCURSOR mCursor [UI_CURSOR_COUNT]
F32 mCurrentGamma
U32 mFSAASamples
WORD mPrevGammaRamp [256 *3]
WORD mCurrentGammaRamp [256 *3]
LPWSTR mIconResource
BOOL mMousePositionModified
BOOL mInputProcessingPaused
LLCoordGL mLanguageTextInputPointGL
LLRect mLanguageTextInputAreaGL
LLPreeditormPreeditor

Static Protected Attributes

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

Friends

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,
U32  fsaa_samples 
) [protected]

LLWindowWin32::~LLWindowWin32 (  )  [protected]


Member Function Documentation

void LLWindowWin32::show (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::hide (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::close (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::getVisible (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::getMinimized (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::getMaximized (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::maximize (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::getFullscreen (  ) 

Reimplemented from LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

void LLWindowWin32::showCursor (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::hideCursor (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::showCursorFromMouseMove (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::hideCursorUntilMouseMove (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::isCursorHidden (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

ECursorType LLWindowWin32::getCursor (  )  const [virtual]

Reimplemented from LLWindow.

void LLWindowWin32::captureMouse (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::releaseMouse (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

BOOL LLWindowWin32::isClipboardTextAvailable (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

F32 LLWindowWin32::getGamma (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

void LLWindowWin32::setFSAASamples ( const U32  fsaa_samples  )  [virtual]

Implements LLWindow.

U32 LLWindowWin32::getFSAASamples (  )  [virtual]

Implements LLWindow.

BOOL LLWindowWin32::restoreGamma (  )  [virtual]

Implements LLWindow.

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

Reimplemented from LLWindow.

Definition at line 84 of file llwindowwin32.h.

References LLWindow::mSwapMethod.

void LLWindowWin32::gatherInput (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::delayInputProcessing (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::swapBuffers (  )  [virtual]

Implements LLWindow.

LLString LLWindowWin32::getTempFileName (  ) 

void LLWindowWin32::deleteFile ( const char *  file_name  ) 

S32 LLWindowWin32::stat ( const char *  file_name,
struct stat *  stat_info 
) [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.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

F32 LLWindowWin32::getNativeAspectRatio (  )  [virtual]

Implements LLWindow.

F32 LLWindowWin32::getPixelAspectRatio (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

Definition at line 106 of file llwindowwin32.h.

References mOverrideAspectRatio.

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

Reimplemented from LLWindow.

void* LLWindowWin32::getPlatformWindow (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::bringToFront (  )  [virtual]

Implements LLWindow.

void LLWindowWin32::focusClient (  )  [virtual]

Reimplemented from LLWindow.

void LLWindowWin32::allowLanguageTextInput ( LLPreeditor preeditor,
BOOL  b 
) [virtual]

Reimplemented from LLWindow.

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

Reimplemented from LLWindow.

void LLWindowWin32::updateLanguageTextInputArea (  )  [virtual]

Reimplemented from LLWindow.

void LLWindowWin32::interruptLanguageTextInput (  )  [virtual]

Reimplemented from LLWindow.

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

Reimplemented from LLWindow.

Referenced by LLWindow::getFontListSans().

Here is the caller graph for this function:

void LLWindowWin32::initCursors (  )  [protected]

void LLWindowWin32::initInputDevices (  )  [protected]

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

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

Reimplemented from LLWindow.

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

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

BOOL LLWindowWin32::setFullscreenResolution (  )  [protected]

BOOL LLWindowWin32::resetDisplayResolution (  )  [protected]

void LLWindowWin32::minimize (  )  [protected]

void LLWindowWin32::restore (  )  [protected]

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

Definition at line 147 of file llwindowwin32.h.

References LLWindow::mPostQuit.

void LLWindowWin32::fillCompositionForm ( const LLRect bounds,
COMPOSITIONFORM *  form 
) [protected]

void LLWindowWin32::fillCandidateForm ( const LLCoordGL caret,
const LLRect bounds,
CANDIDATEFORM *  form 
) [protected]

void LLWindowWin32::fillCharPosition ( const LLCoordGL caret,
const LLRect bounds,
const LLRect control,
IMECHARPOSITION *  char_position 
) [protected]

void LLWindowWin32::fillCompositionLogfont ( LOGFONT *  logfont  )  [protected]

U32 LLWindowWin32::fillReconvertString ( const LLWString text,
S32  focus,
S32  focus_length,
RECONVERTSTRING *  reconvert_string 
) [protected]

void LLWindowWin32::handleStartCompositionMessage (  )  [protected]

void LLWindowWin32::handleCompositionMessage ( U32  indexes  )  [protected]

BOOL LLWindowWin32::handleImeRequests ( U32  request,
U32  param,
LRESULT *  result 
) [protected]

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

void LLWindowWin32::updateJoystick (  )  [protected]

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

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


Friends And Related Function Documentation

friend class LLWindowManager [friend]

Reimplemented from LLWindow.

Definition at line 213 of file llwindowwin32.h.


Member Data Documentation

WCHAR* LLWindowWin32::mWindowTitle [protected]

Definition at line 173 of file llwindowwin32.h.

WCHAR* LLWindowWin32::mWindowClassName [protected]

Definition at line 174 of file llwindowwin32.h.

HWND LLWindowWin32::mWindowHandle [protected]

Definition at line 176 of file llwindowwin32.h.

HGLRC LLWindowWin32::mhRC [protected]

Definition at line 177 of file llwindowwin32.h.

HDC LLWindowWin32::mhDC [protected]

Definition at line 178 of file llwindowwin32.h.

HINSTANCE LLWindowWin32::mhInstance [protected]

Definition at line 179 of file llwindowwin32.h.

WNDPROC LLWindowWin32::mWndProc [protected]

Definition at line 180 of file llwindowwin32.h.

RECT LLWindowWin32::mOldMouseClip [protected]

Definition at line 181 of file llwindowwin32.h.

WPARAM LLWindowWin32::mLastSizeWParam [protected]

Definition at line 182 of file llwindowwin32.h.

Definition at line 183 of file llwindowwin32.h.

Referenced by setNativeAspectRatio().

Definition at line 184 of file llwindowwin32.h.

HCURSOR LLWindowWin32::mCursor[UI_CURSOR_COUNT] [protected]

Definition at line 186 of file llwindowwin32.h.

Definition at line 188 of file llwindowwin32.h.

Definition at line 190 of file llwindowwin32.h.

Definition at line 191 of file llwindowwin32.h.

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

Definition at line 192 of file llwindowwin32.h.

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

Definition at line 193 of file llwindowwin32.h.

LPWSTR LLWindowWin32::mIconResource [protected]

Definition at line 195 of file llwindowwin32.h.

Definition at line 196 of file llwindowwin32.h.

Definition at line 197 of file llwindowwin32.h.

Definition at line 202 of file llwindowwin32.h.

BOOL LLWindowWin32::sWinIMEOpened [static, protected]

Definition at line 203 of file llwindowwin32.h.

HKL LLWindowWin32::sWinInputLocale [static, protected]

Definition at line 204 of file llwindowwin32.h.

DWORD LLWindowWin32::sWinIMEConversionMode [static, protected]

Definition at line 205 of file llwindowwin32.h.

DWORD LLWindowWin32::sWinIMESentenceMode [static, protected]

Definition at line 206 of file llwindowwin32.h.

Definition at line 207 of file llwindowwin32.h.

Definition at line 208 of file llwindowwin32.h.

Definition at line 209 of file llwindowwin32.h.

Definition at line 211 of file llwindowwin32.h.


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

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