[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

UniversalCursor Class Reference

a proper cursor abstraction. More...

#include <UniversalCursor.h>

List of all members.

Public Member Functions

 UniversalCursor (const wxImage &img)

Detailed Description

a proper cursor abstraction.

does the same on all supported platforms! I still wonder why this couldn't be done by the wxWindows people themself.

currently, this is implemented for MSW and GTK. on other platforms, the wxCursor(wxImage) constructor is called.

It is also a bad hack, because it contains some class definitions contained in the wxWindows source. but well I don't care to hack wxWindows stuff anymore. Its too broken anyway.

Constructor & Destructor Documentation

UniversalCursor::UniversalCursor const wxImage &  img  ) 


Creates a cursor out of img.

The different RGB channels have this meaning:

  • red contains the cursor "grey level", 0-127 for black, 127-255 for white.
  • blue is the alpha (mask) channel
  • green >0 indicates the hot spot

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

Generated on Mon Sep 20 01:01:35 2010 for Hugintrunk by doxygen