LLWindowMacOSX Class Reference

#include <llwindowmacosx.h>

Inheritance diagram for LLWindowMacOSX:

Inheritance graph
Collaboration diagram for LLWindowMacOSX:

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 ()
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)
void beforeDialog ()
void afterDialog ()
BOOL dialog_color_picker (F32 *r, F32 *g, F32 *b)
voidgetPlatformWindow ()
void bringToFront ()
void allowLanguageTextInput (BOOL b)

Protected Member Functions

 LLWindowMacOSX (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)
 ~LLWindowMacOSX ()
void initCursors ()
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 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)
OSStatus eventHandler (EventHandlerCallRef myHandler, EventRef event)
void adjustCursorDecouple (bool warpingMouse=false)
void fixWindowSize (void)
void stopDockTileBounce ()

Static Protected Member Functions

static pascal OSStatus staticEventHandler (EventHandlerCallRef myHandler, EventRef event, void *userData)

Protected Attributes

WindowRef mWindow
AGLContext mContext
AGLPixelFormat mPixelFormat
CGDirectDisplayID mDisplay
CFDictionaryRef mOldDisplayMode
EventLoopTimerRef mTimer
EventHandlerUPP mEventHandlerUPP
EventHandlerRef mGlobalHandlerRef
EventHandlerRef mWindowHandlerRef
Rect mOldMouseClip
Str255 mWindowTitle
double mOriginalAspectRatio
BOOL mSimulatedRightClick
UInt32 mLastModifiers
BOOL mHandsOffEvents
BOOL mCursorDecoupled
S32 mCursorLastEventDeltaX
S32 mCursorLastEventDeltaY
BOOL mCursorIgnoreNextDelta
BOOL mNeedsResize
LLCoordScreen mNeedsResizeSize
F32 mOverrideAspectRatio
BOOL mMinimized
F32 mBounceTime
NMRec mBounceRec
LLTimer mBounceTimer
TSMDocumentID mTSMDocument
BOOL mLanguageTextInputAllowed
ScriptCode mTSMScriptCode
LangCode mTSMLangCode


class LLWindowManager

Detailed Description

Definition at line 46 of file llwindowmacosx.h.

Constructor & Destructor Documentation

LLWindowMacOSX::LLWindowMacOSX ( 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 
) [protected]

LLWindowMacOSX::~LLWindowMacOSX (  )  [protected]

Member Function Documentation

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

void LLWindowMacOSX::afterDialog (  )  [virtual]

Reimplemented from LLWindow.

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

Reimplemented from LLWindow.

void LLWindowMacOSX::beforeDialog (  )  [virtual]

Reimplemented from LLWindow.

void LLWindowMacOSX::bringToFront (  )  [inline, virtual]

Implements LLWindow.

Definition at line 112 of file llwindowmacosx.h.

void LLWindowMacOSX::captureMouse (  )  [virtual]

Implements LLWindow.

void LLWindowMacOSX::close (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

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

Implements LLWindow.

Definition at line 84 of file llwindowmacosx.h.

void LLWindowMacOSX::deleteFile ( const char *  file_name  ) 

void LLWindowMacOSX::destroyContext (  )  [protected]

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

Reimplemented from LLWindow.

OSStatus LLWindowMacOSX::eventHandler ( EventHandlerCallRef  myHandler,
EventRef  event 
) [protected]

void LLWindowMacOSX::fixWindowSize ( void   )  [protected]

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

Implements LLWindow.

void LLWindowMacOSX::gatherInput (  )  [virtual]

Implements LLWindow.

ECursorType LLWindowMacOSX::getCursor (  ) 

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

Implements LLWindow.

BOOL LLWindowMacOSX::getFullscreen (  ) 

Reimplemented from LLWindow.

F32 LLWindowMacOSX::getGamma (  )  [virtual]

Implements LLWindow.

BOOL LLWindowMacOSX::getMaximized (  )  [virtual]

Implements LLWindow.

BOOL LLWindowMacOSX::getMinimized (  )  [virtual]

Implements LLWindow.

F32 LLWindowMacOSX::getNativeAspectRatio (  )  [virtual]

Implements LLWindow.

F32 LLWindowMacOSX::getPixelAspectRatio (  )  [virtual]

Implements LLWindow.

void* LLWindowMacOSX::getPlatformWindow (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

Reimplemented from LLWindow.

Definition at line 82 of file llwindowmacosx.h.

References LLWindow::mSwapMethod.

LLString LLWindowMacOSX::getTempFileName (  ) 

BOOL LLWindowMacOSX::getVisible (  )  [virtual]

Implements LLWindow.

void LLWindowMacOSX::hide (  )  [virtual]

Implements LLWindow.

void LLWindowMacOSX::hideCursor (  )  [virtual]

Implements LLWindow.

void LLWindowMacOSX::hideCursorUntilMouseMove (  )  [virtual]

Implements LLWindow.

void LLWindowMacOSX::initCursors (  )  [protected]

BOOL LLWindowMacOSX::isClipboardTextAvailable (  )  [virtual]

Implements LLWindow.

BOOL LLWindowMacOSX::isCursorHidden (  )  [virtual]

Implements LLWindow.

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

Reimplemented from LLWindow.

BOOL LLWindowMacOSX::maximize (  )  [virtual]

Implements LLWindow.

void LLWindowMacOSX::minimize (  )  [protected]

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

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

Implements LLWindow.

void LLWindowMacOSX::releaseMouse (  )  [virtual]

Implements LLWindow.

BOOL LLWindowMacOSX::resetDisplayResolution (  )  [protected]

void LLWindowMacOSX::restore (  )  [protected]

BOOL LLWindowMacOSX::restoreGamma (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

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

BOOL LLWindowMacOSX::setFullscreenResolution (  )  [protected]

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

Implements LLWindow.

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

Implements LLWindow.

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

Implements LLWindow.

Definition at line 104 of file llwindowmacosx.h.

References mOverrideAspectRatio.

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

Implements LLWindow.

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

Implements LLWindow.

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

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

Definition at line 140 of file llwindowmacosx.h.

References LLWindow::mPostQuit.

void LLWindowMacOSX::show (  )  [virtual]

Implements LLWindow.

void LLWindowMacOSX::showCursor (  )  [virtual]

Implements LLWindow.

void LLWindowMacOSX::showCursorFromMouseMove (  )  [virtual]

Implements LLWindow.

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

Implements LLWindow.

static pascal OSStatus LLWindowMacOSX::staticEventHandler ( EventHandlerCallRef  myHandler,
EventRef  event,
void userData 
) [static, protected]

void LLWindowMacOSX::stopDockTileBounce (  )  [protected]

void LLWindowMacOSX::swapBuffers (  )  [virtual]

Implements LLWindow.

BOOL LLWindowMacOSX::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 197 of file llwindowmacosx.h.

Member Data Documentation

NMRec LLWindowMacOSX::mBounceRec [protected]

Definition at line 188 of file llwindowmacosx.h.

F32 LLWindowMacOSX::mBounceTime [protected]

Definition at line 187 of file llwindowmacosx.h.

LLTimer LLWindowMacOSX::mBounceTimer [protected]

Definition at line 189 of file llwindowmacosx.h.

AGLContext LLWindowMacOSX::mContext [protected]

Definition at line 163 of file llwindowmacosx.h.

BOOL LLWindowMacOSX::mCursorDecoupled [protected]

Definition at line 178 of file llwindowmacosx.h.

BOOL LLWindowMacOSX::mCursorIgnoreNextDelta [protected]

Definition at line 181 of file llwindowmacosx.h.

S32 LLWindowMacOSX::mCursorLastEventDeltaX [protected]

Definition at line 179 of file llwindowmacosx.h.

S32 LLWindowMacOSX::mCursorLastEventDeltaY [protected]

Definition at line 180 of file llwindowmacosx.h.

CGDirectDisplayID LLWindowMacOSX::mDisplay [protected]

Definition at line 165 of file llwindowmacosx.h.

EventHandlerUPP LLWindowMacOSX::mEventHandlerUPP [protected]

Definition at line 168 of file llwindowmacosx.h.

EventHandlerRef LLWindowMacOSX::mGlobalHandlerRef [protected]

Definition at line 169 of file llwindowmacosx.h.

BOOL LLWindowMacOSX::mHandsOffEvents [protected]

Definition at line 176 of file llwindowmacosx.h.

BOOL LLWindowMacOSX::mLanguageTextInputAllowed [protected]

Definition at line 193 of file llwindowmacosx.h.

UInt32 LLWindowMacOSX::mLastModifiers [protected]

Definition at line 175 of file llwindowmacosx.h.

BOOL LLWindowMacOSX::mMinimized [protected]

Definition at line 185 of file llwindowmacosx.h.

BOOL LLWindowMacOSX::mNeedsResize [protected]

Definition at line 182 of file llwindowmacosx.h.

LLCoordScreen LLWindowMacOSX::mNeedsResizeSize [protected]

Definition at line 183 of file llwindowmacosx.h.

CFDictionaryRef LLWindowMacOSX::mOldDisplayMode [protected]

Definition at line 166 of file llwindowmacosx.h.

Rect LLWindowMacOSX::mOldMouseClip [protected]

Definition at line 171 of file llwindowmacosx.h.

double LLWindowMacOSX::mOriginalAspectRatio [protected]

Definition at line 173 of file llwindowmacosx.h.

F32 LLWindowMacOSX::mOverrideAspectRatio [protected]

Definition at line 184 of file llwindowmacosx.h.

Referenced by setNativeAspectRatio().

AGLPixelFormat LLWindowMacOSX::mPixelFormat [protected]

Definition at line 164 of file llwindowmacosx.h.

BOOL LLWindowMacOSX::mSimulatedRightClick [protected]

Definition at line 174 of file llwindowmacosx.h.

EventLoopTimerRef LLWindowMacOSX::mTimer [protected]

Definition at line 167 of file llwindowmacosx.h.

TSMDocumentID LLWindowMacOSX::mTSMDocument [protected]

Definition at line 192 of file llwindowmacosx.h.

LangCode LLWindowMacOSX::mTSMLangCode [protected]

Definition at line 195 of file llwindowmacosx.h.

ScriptCode LLWindowMacOSX::mTSMScriptCode [protected]

Definition at line 194 of file llwindowmacosx.h.

WindowRef LLWindowMacOSX::mWindow [protected]

Definition at line 162 of file llwindowmacosx.h.

EventHandlerRef LLWindowMacOSX::mWindowHandlerRef [protected]

Definition at line 170 of file llwindowmacosx.h.

Str255 LLWindowMacOSX::mWindowTitle [protected]

Definition at line 172 of file llwindowmacosx.h.

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