LLWindow Class Reference

#include <llwindow.h>

Inheritance diagram for LLWindow:

Inheritance graph
[legend]
Collaboration diagram for LLWindow:

Collaboration graph
[legend]

List of all members.

Public Types

enum  ESwapMethod { SWAP_METHOD_UNDEFINED, SWAP_METHOD_EXCHANGE, SWAP_METHOD_COPY }
enum  EFlags

Public Member Functions

virtual void show ()=0
virtual void hide ()=0
virtual void close ()=0
virtual BOOL getVisible ()=0
virtual BOOL getMinimized ()=0
virtual BOOL getMaximized ()=0
virtual BOOL maximize ()=0
BOOL getFullscreen ()
virtual BOOL getPosition (LLCoordScreen *position)=0
virtual BOOL getSize (LLCoordScreen *size)=0
virtual BOOL getSize (LLCoordWindow *size)=0
virtual BOOL setPosition (LLCoordScreen position)=0
virtual BOOL setSize (LLCoordScreen size)=0
virtual BOOL switchContext (BOOL fullscreen, const LLCoordScreen &size, BOOL disable_vsync, const LLCoordScreen *const posp=NULL)=0
virtual BOOL setCursorPosition (LLCoordWindow position)=0
virtual BOOL getCursorPosition (LLCoordWindow *position)=0
virtual void showCursor ()=0
virtual void hideCursor ()=0
virtual BOOL isCursorHidden ()=0
virtual void showCursorFromMouseMove ()=0
virtual void hideCursorUntilMouseMove ()=0
virtual void incBusyCount ()
virtual void decBusyCount ()
virtual void resetBusyCount ()
virtual S32 getBusyCount () const
virtual void setCursor (ECursorType cursor)=0
virtual ECursorType getCursor () const
virtual void captureMouse ()=0
virtual void releaseMouse ()=0
virtual void setMouseClipping (BOOL b)=0
virtual BOOL isClipboardTextAvailable ()=0
virtual BOOL pasteTextFromClipboard (LLWString &dst)=0
virtual BOOL copyTextToClipboard (const LLWString &src)=0
virtual void flashIcon (F32 seconds)=0
virtual F32 getGamma ()=0
virtual BOOL setGamma (const F32 gamma)=0
virtual void setFSAASamples (const U32 fsaa_samples)=0
virtual U32 getFSAASamples ()=0
virtual BOOL restoreGamma ()=0
virtual ESwapMethod getSwapMethod ()
virtual void gatherInput ()=0
virtual void delayInputProcessing ()=0
virtual void swapBuffers ()=0
virtual void bringToFront ()=0
virtual void focusClient ()
virtual S32 stat (const char *file_name, struct stat *stat_info)=0
virtual BOOL sendEmail (const char *address, const char *subject, const char *body_text, const char *attachment=NULL, const char *attachment_displayed_name=NULL)=0
virtual BOOL convertCoords (LLCoordScreen from, LLCoordWindow *to)=0
virtual BOOL convertCoords (LLCoordWindow from, LLCoordScreen *to)=0
virtual BOOL convertCoords (LLCoordWindow from, LLCoordGL *to)=0
virtual BOOL convertCoords (LLCoordGL from, LLCoordWindow *to)=0
virtual BOOL convertCoords (LLCoordScreen from, LLCoordGL *to)=0
virtual BOOL convertCoords (LLCoordGL from, LLCoordScreen *to)=0
virtual LLWindowResolutiongetSupportedResolutions (S32 &num_resolutions)=0
virtual F32 getNativeAspectRatio ()=0
virtual F32 getPixelAspectRatio ()=0
virtual void setNativeAspectRatio (F32 aspect)=0
void setCallbacks (LLWindowCallbacks *callbacks)
virtual void beforeDialog ()
virtual void afterDialog ()
virtual BOOL dialog_color_picker (F32 *r, F32 *g, F32 *b)
virtual void * getPlatformWindow ()=0
virtual void allowLanguageTextInput (LLPreeditor *preeditor, BOOL b)
virtual void setLanguageTextInput (const LLCoordGL &pos)
virtual void updateLanguageTextInputArea ()
virtual void interruptLanguageTextInput ()

Static Public Member Functions

static std::string getFontListSans ()

Protected Member Functions

 LLWindow (BOOL fullscreen, U32 flags)
virtual ~LLWindow ()
virtual BOOL isValid ()
virtual BOOL canDelete ()
void handleUnicodeUTF16 (U16 utf16, MASK mask)

Protected Attributes

LLWindowCallbacksmCallbacks
BOOL mPostQuit
BOOL mFullscreen
S32 mFullscreenWidth
S32 mFullscreenHeight
S32 mFullscreenBits
S32 mFullscreenRefresh
LLWindowResolutionmSupportedResolutions
S32 mNumSupportedResolutions
ECursorType mCurrentCursor
BOOL mCursorHidden
S32 mBusyCount
BOOL mIsMouseClipping
ESwapMethod mSwapMethod
BOOL mHideCursorPermanent
U32 mFlags
U16 mHighSurrogate

Static Protected Attributes

static LLWindowCallbacks sDefaultCallbacks

Friends

class LLWindowManager

Classes

struct  LLWindowResolution


Detailed Description

Definition at line 128 of file llwindow.h.


Member Enumeration Documentation

Enumerator:
SWAP_METHOD_UNDEFINED 
SWAP_METHOD_EXCHANGE 
SWAP_METHOD_COPY 

Definition at line 136 of file llwindow.h.

Definition at line 142 of file llwindow.h.


Constructor & Destructor Documentation

LLWindow::LLWindow ( BOOL  fullscreen,
U32  flags 
) [protected]

Definition at line 243 of file llwindow.cpp.

virtual LLWindow::~LLWindow (  )  [inline, protected, virtual]

Definition at line 241 of file llwindow.h.


Member Function Documentation

virtual void LLWindow::show (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by idle_startup(), and LLAppViewer::initWindow().

Here is the caller graph for this function:

virtual void LLWindow::hide (  )  [pure virtual]

virtual void LLWindow::close (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLWindowManager::destroyWindow().

Here is the caller graph for this function:

virtual BOOL LLWindow::getVisible (  )  [pure virtual]

virtual BOOL LLWindow::getMinimized (  )  [pure virtual]

virtual BOOL LLWindow::getMaximized (  )  [pure virtual]

virtual BOOL LLWindow::maximize (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::changeDisplaySettings(), and LLAppViewer::initWindow().

Here is the caller graph for this function:

BOOL LLWindow::getFullscreen (  )  [inline]

virtual BOOL LLWindow::getPosition ( LLCoordScreen position  )  [pure virtual]

virtual BOOL LLWindow::getSize ( LLCoordScreen size  )  [pure virtual]

virtual BOOL LLWindow::getSize ( LLCoordWindow size  )  [pure virtual]

virtual BOOL LLWindow::setPosition ( LLCoordScreen  position  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::changeDisplaySettings().

Here is the caller graph for this function:

virtual BOOL LLWindow::setSize ( LLCoordScreen  size  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::changeDisplaySettings(), and LLViewerWindow::movieSize().

Here is the caller graph for this function:

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

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::changeDisplaySettings().

Here is the caller graph for this function:

virtual BOOL LLWindow::setCursorPosition ( LLCoordWindow  position  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLUI::setCursorPositionScreen().

Here is the caller graph for this function:

virtual BOOL LLWindow::getCursorPosition ( LLCoordWindow position  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLScrollbar::draw(), LLButton::draw(), and LLViewerWindow::handlePerFrameHover().

Here is the caller graph for this function:

virtual void LLWindow::showCursor (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::showCursor().

Here is the caller graph for this function:

virtual void LLWindow::hideCursor (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::hideCursor().

Here is the caller graph for this function:

virtual BOOL LLWindow::isCursorHidden (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::handlePerFrameHover().

Here is the caller graph for this function:

virtual void LLWindow::showCursorFromMouseMove (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::handleMouseMove(), LLTextEditor::onFocusLost(), and LLLineEditor::onFocusLost().

Here is the caller graph for this function:

virtual void LLWindow::hideCursorUntilMouseMove (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLLineEditor::addChar(), LLTextEditor::handleUnicodeCharHere(), and LLTextEditor::updatePreedit().

Here is the caller graph for this function:

void LLWindow::incBusyCount (  )  [virtual]

void LLWindow::decBusyCount (  )  [virtual]

virtual void LLWindow::resetBusyCount (  )  [inline, virtual]

virtual S32 LLWindow::getBusyCount (  )  const [inline, virtual]

Definition at line 175 of file llwindow.h.

References mBusyCount.

virtual void LLWindow::setCursor ( ECursorType  cursor  )  [pure virtual]

virtual ECursorType LLWindow::getCursor (  )  const [inline, virtual]

Reimplemented in LLWindowMacOSX, and LLWindowWin32.

Definition at line 179 of file llwindow.h.

References mCurrentCursor.

Referenced by LLInventoryPanel::handleHover().

Here is the caller graph for this function:

virtual void LLWindow::captureMouse (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::handleMouseDown(), and LLViewerWindow::handleRightMouseDown().

Here is the caller graph for this function:

virtual void LLWindow::releaseMouse (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::handleMouseUp(), and LLViewerWindow::handleRightMouseUp().

Here is the caller graph for this function:

virtual void LLWindow::setMouseClipping ( BOOL  b  )  [pure virtual]

virtual BOOL LLWindow::isClipboardTextAvailable (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLClipboard::canPasteString().

Here is the caller graph for this function:

virtual BOOL LLWindow::pasteTextFromClipboard ( LLWString dst  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLClipboard::getPasteWString().

Here is the caller graph for this function:

virtual BOOL LLWindow::copyTextToClipboard ( const LLWString src  )  [pure virtual]

virtual void LLWindow::flashIcon ( F32  seconds  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by process_improved_im().

Here is the caller graph for this function:

virtual F32 LLWindow::getGamma (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by handleGammaChanged().

Here is the caller graph for this function:

virtual BOOL LLWindow::setGamma ( const F32  gamma  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by handleGammaChanged(), and LLViewerWindow::initBase().

Here is the caller graph for this function:

virtual void LLWindow::setFSAASamples ( const U32  fsaa_samples  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::changeDisplaySettings().

Here is the caller graph for this function:

virtual U32 LLWindow::getFSAASamples (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::changeDisplaySettings().

Here is the caller graph for this function:

virtual BOOL LLWindow::restoreGamma (  )  [pure virtual]

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

Reimplemented in LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Definition at line 193 of file llwindow.h.

References mSwapMethod.

virtual void LLWindow::gatherInput (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLAppViewer::mainLoop().

Here is the caller graph for this function:

virtual void LLWindow::delayInputProcessing (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::hitObjectOrLandGlobalAsync().

Here is the caller graph for this function:

virtual void LLWindow::swapBuffers (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLPipeline::addTrianglesDrawn(), display_startup(), and render_ui_and_swap_if_needed().

Here is the caller graph for this function:

virtual void LLWindow::bringToFront (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::handleDataCopy().

Here is the caller graph for this function:

virtual void LLWindow::focusClient (  )  [inline, virtual]

Reimplemented in LLWindowWin32.

Definition at line 198 of file llwindow.h.

Referenced by LLViewerWindow::focusClient().

Here is the caller graph for this function:

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

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::saveImageNumbered().

Here is the caller graph for this function:

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

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

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLScrollbar::draw(), LLButton::draw(), and LLUI::setCursorPositionScreen().

Here is the caller graph for this function:

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

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

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

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

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

virtual LLWindowResolution* LLWindow::getSupportedResolutions ( S32 num_resolutions  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLPanelDisplay::applyResolution(), and LLPanelDisplay::postBuild().

Here is the caller graph for this function:

virtual F32 LLWindow::getNativeAspectRatio (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::getDisplayAspectRatio(), and LLPanelDisplay::onCommitAutoDetectAspect().

Here is the caller graph for this function:

virtual F32 LLWindow::getPixelAspectRatio (  )  [pure virtual]

virtual void LLWindow::setNativeAspectRatio ( F32  aspect  )  [pure virtual]

void LLWindow::setCallbacks ( LLWindowCallbacks callbacks  ) 

Definition at line 279 of file llwindow.cpp.

References gKeyboard, mCallbacks, and LLKeyboard::setCallbacks().

Referenced by LLViewerWindow::LLViewerWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LLWindow::beforeDialog (  )  [inline, virtual]

Reimplemented in LLWindowMacOSX, and LLWindowSDL.

Definition at line 222 of file llwindow.h.

virtual void LLWindow::afterDialog (  )  [inline, virtual]

Reimplemented in LLWindowMacOSX, and LLWindowSDL.

Definition at line 223 of file llwindow.h.

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

Reimplemented in LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Definition at line 226 of file llwindow.h.

References FALSE.

Referenced by LLFloaterColorPicker::showUI().

Here is the caller graph for this function:

virtual void* LLWindow::getPlatformWindow (  )  [pure virtual]

Implemented in LLWindowHeadless, LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Referenced by LLViewerWindow::getPlatformWindow(), and LLViewerWindow::handlePaint().

Here is the caller graph for this function:

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

Reimplemented in LLWindowMacOSX, and LLWindowWin32.

Definition at line 232 of file llwindow.h.

Referenced by LLTextEditor::setFocus(), LLLineEditor::setFocus(), LLTextEditor::updateAllowingLanguageInput(), and LLLineEditor::updateAllowingLanguageInput().

Here is the caller graph for this function:

virtual void LLWindow::setLanguageTextInput ( const LLCoordGL pos  )  [inline, virtual]

Reimplemented in LLWindowWin32.

Definition at line 233 of file llwindow.h.

Referenced by LLLineEditor::draw(), and LLTextEditor::drawCursor().

Here is the caller graph for this function:

virtual void LLWindow::updateLanguageTextInputArea (  )  [inline, virtual]

Reimplemented in LLWindowWin32.

Definition at line 234 of file llwindow.h.

virtual void LLWindow::interruptLanguageTextInput (  )  [inline, virtual]

Reimplemented in LLWindowMacOSX, and LLWindowWin32.

Definition at line 235 of file llwindow.h.

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

Reimplemented in LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Definition at line 289 of file llwindow.cpp.

References LLWindowSDL::getFontListSans(), LLWindowMacOSX::getFontListSans(), and LLWindowWin32::getFontListSans().

Referenced by LLAppViewer::initConfiguration().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual BOOL LLWindow::isValid (  )  [inline, protected, virtual]

Reimplemented in LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Definition at line 242 of file llwindow.h.

References TRUE.

Referenced by LLWindowManager::createWindow().

Here is the caller graph for this function:

virtual BOOL LLWindow::canDelete (  )  [inline, protected, virtual]

Definition at line 243 of file llwindow.h.

References TRUE.

void LLWindow::handleUnicodeUTF16 ( U16  utf16,
MASK  mask 
) [protected]


Friends And Related Function Documentation

friend class LLWindowManager [friend]

Reimplemented in LLWindowMacOSX, LLWindowSDL, and LLWindowWin32.

Definition at line 275 of file llwindow.h.


Member Data Documentation

Definition at line 245 of file llwindow.h.

Definition at line 248 of file llwindow.h.

Referenced by handleUnicodeUTF16(), and setCallbacks().

Definition at line 251 of file llwindow.h.

Referenced by getFullscreen().

Definition at line 252 of file llwindow.h.

Definition at line 253 of file llwindow.h.

Definition at line 254 of file llwindow.h.

Definition at line 255 of file llwindow.h.

Definition at line 256 of file llwindow.h.

Definition at line 257 of file llwindow.h.

Definition at line 258 of file llwindow.h.

Referenced by getCursor().

Definition at line 259 of file llwindow.h.

Definition at line 260 of file llwindow.h.

Referenced by decBusyCount(), getBusyCount(), incBusyCount(), and resetBusyCount().

Definition at line 261 of file llwindow.h.

Definition at line 263 of file llwindow.h.

U32 LLWindow::mFlags [protected]

Definition at line 264 of file llwindow.h.

Definition at line 265 of file llwindow.h.

Referenced by handleUnicodeUTF16().


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

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