SkWindow Class Reference

#include <SkWindow.h>

Inherits SkView.

Inherited by SkOSWindow, SkOSWindow, SkOSWindow, SkOSWindow, and SkOSWindow.

Collaboration diagram for SkWindow:
[legend]

List of all members.

Public Member Functions

 SkWindow ()
virtual ~SkWindow ()
const SkBitmapgetBitmap () const
void setConfig (SkBitmap::Config)
void resize (int width, int height, SkBitmap::Config config=SkBitmap::kNo_Config)
void eraseARGB (U8CPU a, U8CPU r, U8CPU g, U8CPU b)
void eraseRGB (U8CPU r, U8CPU g, U8CPU b)
bool isDirty () const
bool update (SkIRect *updateArea)
bool handleClick (int x, int y, Click::State)
bool handleChar (SkUnichar)
bool handleKey (SkKey)
bool handleKeyUp (SkKey)
bool handleMenu (uint32_t os_cmd)
void addMenu (SkOSMenu *)
const char * getTitle () const
void setTitle (const char title[])

Protected Member Functions

virtual bool onEvent (const SkEvent &)
virtual void onHandleInval (const SkIRect &)
virtual bool onHandleChar (SkUnichar)
virtual bool onHandleKey (SkKey)
virtual bool onHandleKeyUp (SkKey)
virtual void onAddMenu (const SkOSMenu *)
virtual void onSetTitle (const char title[])
virtual bool handleInval (const SkRect &)
virtual bool onGetFocusView (SkView **focus) const
virtual bool onSetFocusView (SkView *focus)

Detailed Description

Definition at line 34 of file SkWindow.h.


Constructor & Destructor Documentation

SkWindow::SkWindow (  ) 
virtual SkWindow::~SkWindow (  )  [virtual]

Member Function Documentation

void SkWindow::addMenu ( SkOSMenu  ) 
void SkWindow::eraseARGB ( U8CPU  a,
U8CPU  r,
U8CPU  g,
U8CPU  b 
)
void SkWindow::eraseRGB ( U8CPU  r,
U8CPU  g,
U8CPU  b 
)
const SkBitmap& SkWindow::getBitmap (  )  const [inline]

Definition at line 39 of file SkWindow.h.

const char* SkWindow::getTitle (  )  const [inline]

Definition at line 56 of file SkWindow.h.

bool SkWindow::handleChar ( SkUnichar   ) 
bool SkWindow::handleClick ( int  x,
int  y,
Click::State   
)
virtual bool SkWindow::handleInval ( const SkRect  )  [protected, virtual]

Override this if you want to handle an inval request from this view or one of its children. Tyically this is only overridden by the by the "window". If your subclass does handle the request, return true so the request will not continue to propogate to the parent.

Reimplemented from SkView.

bool SkWindow::handleKey ( SkKey   ) 
bool SkWindow::handleKeyUp ( SkKey   ) 
bool SkWindow::handleMenu ( uint32_t  os_cmd  ) 
bool SkWindow::isDirty (  )  const [inline]

Definition at line 46 of file SkWindow.h.

virtual void SkWindow::onAddMenu ( const SkOSMenu  )  [inline, protected, virtual]

Reimplemented in SkOSWindow, SkOSWindow, SkOSWindow, SkOSWindow, and SkOSWindow.

Definition at line 67 of file SkWindow.h.

virtual bool SkWindow::onEvent ( const SkEvent  )  [protected, virtual]

Override this to handle events in your subclass. Be sure to call the inherited version for events that you don't handle.

Reimplemented from SkEventSink.

Reimplemented in SkOSWindow.

virtual bool SkWindow::onGetFocusView ( SkView **  focus  )  const [protected, virtual]
virtual bool SkWindow::onHandleChar ( SkUnichar   )  [protected, virtual]
virtual void SkWindow::onHandleInval ( const SkIRect  )  [protected, virtual]
virtual bool SkWindow::onHandleKey ( SkKey   )  [protected, virtual]
virtual bool SkWindow::onHandleKeyUp ( SkKey   )  [protected, virtual]
virtual bool SkWindow::onSetFocusView ( SkView focus  )  [protected, virtual]
virtual void SkWindow::onSetTitle ( const char  title[]  )  [inline, protected, virtual]

Reimplemented in SkOSWindow, and SkOSWindow.

Definition at line 68 of file SkWindow.h.

void SkWindow::resize ( int  width,
int  height,
SkBitmap::Config  config = SkBitmap::kNo_Config 
)
void SkWindow::setConfig ( SkBitmap::Config   ) 
void SkWindow::setTitle ( const char  title[]  ) 
bool SkWindow::update ( SkIRect updateArea  ) 

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

Generated on Tue Oct 20 10:33:06 2009 for Skia by  doxygen 1.6.1