• Immutable Page
  • Info
  • Attachments


The CompIcon class represents the image data used by a window's icon as provided by X11. This icon is something provided by the application and can be any size.

Class Definition

 * Wraps an application icon pixel map and it's meta information (such as dimensions)
class CompIcon : public CompSize {
        CompIcon (CompScreen *screen, unsigned width, unsigned int height);
        ~CompIcon ();
         * Gets a pointer to the pixel data for this icon.
        unsigned char* data ();

        CompSize      mSize;
        unsigned char *mData;

Getting the image data of the icon

Usually you wouldn't need to do this, but if you need the raw pixel data of the icon, you can access this through the ::data () method.

Development/zero-nine/CoreClasses/CompIcon (last edited 2010-07-27 03:54:27 by 124-169-107-122)