class PIcon: public PImgIcon

This class represents the sepcification for a platform specific icon.

Inheritance:


Public Methods

[more] PIcon ( PRESOURCE_ID resID )
Create icon.
[more] PIcon ( const PPixelImage & andMask, const PPixelImage & xorMask )
Create a cursor from the raw pixel images.
[more]virtual Comparison Compare ( const PObject & obj ) const
Determine if the two icons are the same.

Public

[more] Overrides from class PObject


Inherited from PImgIcon:

Public Methods

ovirtual PDim GetDimensions() const

Public

New functions for class


Inherited from PContainer:

Public

Construction

Common functions for containers

Protected Methods

ovirtual void DestroyContents()
ovirtual void AssignContents(const PContainer & c)
ovoid CopyContents(const PContainer & c)
ovoid CloneContents(const PContainer * src)
ovoid Destruct()


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous functions


Documentation

This class represents the sepcification for a platform specific icon. This is typically used to indicate the presence of some modal object in the user interface. For instance, an instance of an icon is attached to every PTitledWindow class and is used whenever the that interactor is made iconic.

An icon consists of a small pixel image that interacts with the screen to yield transparent parts and or inverted parts as well as fixed colour image parts.

o PIcon( PRESOURCE_ID resID )
Create icon.
Parameters:
resID - Resource identifier constant.

o PIcon( const PPixelImage & andMask, const PPixelImage & xorMask )
Create a cursor from the raw pixel images. The dimensions of the pixel images must be the same as determined by the PApplication::GetIconSize() function. The and mask must also have a depth of 1 bit per pixel. If the xor mask is also 1 bit per pixel then it operates as a logical xor on data. If it is a colour pix map then the actual colour is placed at that location.

Pixels on the screen are determined by applying the and mask to it, then the xor mask. Thus pixels can be transparent, inverted, cleared or set as required.

Parameters:
andMask - Mask for pixels in the icon.
xorMask - Value for pixels in the icon.

o Overrides from class PObject

ovirtual Comparison Compare( const PObject & obj ) const
Determine if the two icons are the same. Note that this is different from having two icons that merely look the same. They must be references to the same icon or if loaded from resources, the same resource ID.

Returns:
EqualTo if reference the same icon, GreaterThan if different.
Parameters:
obj - Other icon to compare against.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.