ICPlus classes

class ICIcon

^ 
Icon Plus generic icon class.

The ICIcon class creates and manages a generic icon.

The following table shows how these bitmaps are used for a color icon or pointer:

   AND XOR COLOR
    1   1    x   Invert screen
    1   0    x   Transparency
    0   0    x   Use color x
    0   1    x   Use color x

Source:
../ic_icon.h:68
Author:
Dmitry A Steklenev
Version:
unknown

Contents

^ 
EntityTypeScopeShort Description
size_typetypedef publicAn unsigned integral type.
ICIconconstructor publicConstructs the empty generic icon.
ICIconconstructor publicConstructs the generic icon.
ICIconconstructor publicConstructs the generic icon from another icon object.
~ICIcondestructor publicDestructs the generic icon.
widthmethod publicReturns the icon width in pixels.
heightmethod publicReturns the icon height in pixels.
bits_per_pixelmethod publicReturns the icon of bits per pixel.
bitmapmethod publicReturns a reference to the icon bitmap.
palettemethod publicReturns a reference to the icon bitmap palette.
andmapmethod publicReturns a reference to the icon "and" mask.
xormapmethod publicReturns a reference to the icon "xor" mask.
alphamethod publicReturns a reference to the alpha channel map.
xhotspotmethod publicReturns the width of icon hotspot.
yhotspotmethod publicReturns the height of icon hotspot.
move_hotspotmethod publicSets the icon hotspot.
is_bwmethod publicReturns true if this icon is black and white.
operator =operator publicAssignment operator.

typedef size_type

? ^  > 
An unsigned integral type.
Source:
../ic_icon.h:71
Code:
public typedef UINT32 size_type

constructor ICIcon

? ^  < > 
Constructs the empty generic icon.
Source:
../ic_icon.h:75
Code:
public ICIcon ( )

constructor ICIcon

? ^  < > 
Constructs the generic icon.
Source:
../ic_icon.h:77
Code:
public ICIcon ( size_type width ,
size_type height ,
size_type bits_per_pixel )

constructor ICIcon

? ^  < > 
Constructs the generic icon from another icon object.
Source:
../ic_icon.h:79
Code:
public ICIcon ( const ICIcon & )

destructor ~ICIcon

? ^  < > 
Destructs the generic icon.
Source:
../ic_icon.h:81
Code:
public ~ ICIcon ( )

method width

? ^  < > 
Returns the icon width in pixels.
Source:
../ic_icon.h:85
Code:
public size_type width ( ) const

method height

? ^  < > 
Returns the icon height in pixels.
Source:
../ic_icon.h:87
Code:
public size_type height ( ) const

method bits_per_pixel

? ^  < > 
Returns the icon of bits per pixel.
Source:
../ic_icon.h:89
Code:
public size_type bits_per_pixel ( ) const

method bitmap

? ^  < > 
Returns a reference to the icon bitmap.
Source:
../ic_icon.h:92
Code:
public ICBitmap & bitmap ( )

method palette

? ^  < > 
Returns a reference to the icon bitmap palette.
Source:
../ic_icon.h:94
Code:
public ICPalette & palette ( )

method andmap

? ^  < > 
Returns a reference to the icon "and" mask.
Source:
../ic_icon.h:96
Code:
public ICBitMask & andmap ( )

method xormap

? ^  < > 
Returns a reference to the icon "xor" mask.
Source:
../ic_icon.h:98
Code:
public ICBitMask & xormap ( )

method alpha

? ^  < > 
Returns a reference to the alpha channel map.
Source:
../ic_icon.h:100
Code:
public ICAlpha & alpha ( )

method xhotspot

? ^  < > 
Returns the width of icon hotspot.
Source:
../ic_icon.h:103
Code:
public size_type xhotspot ( ) const

method yhotspot

? ^  < > 
Returns the height of icon hotspot.
Source:
../ic_icon.h:105
Code:
public size_type yhotspot ( ) const

method move_hotspot

? ^  < > 
Sets the icon hotspot.
Source:
../ic_icon.h:107
Code:
public void move_hotspot ( size_type x ,
size_type y )

method is_bw

? ^  < > 
Returns true if this icon is black and white.
Source:
../ic_icon.h:110
Code:
public int is_bw ( ) const

operator =

? ^  < > 
Assignment operator.
Source:
../ic_icon.h:114
Code:
public ICIcon & operator = ( const ICIcon & )

Created Wed Jul 10 21:27:42 2002.
This documentation was generated automatically by
ccdoc v0.8 r26 2001/11/28 bin_opt_emx_os2-2.30.
Click here to submit a bug report or feature request.
Click here to return to the top of the page.