#include <swfbitmp.h>
Inheritance diagram for FlashBitmapRecord:
Public Member Functions | |
FlashBitmapRecord (void) | |
Creates a FlashBitmapRecord list node, and initialises all member variables. | |
~FlashBitmapRecord (void) | |
Destroys this instance of FlashBitmapRecord. | |
FlashBitmapRecord * | AddElement (void) |
Adds an element to the tail of the list. | |
void | DeleteNextElement (void) |
Deletes the next item in the list. | |
void | DeleteLastElement (void) |
Deletes the previous item in the list. | |
OILBitmap * | GetBitmap (void) |
Gets the value of mpBitmap. | |
WORD | GetBitmapID (void) |
Gets the value of mBitmapID. | |
DocColour | GetContoneStart (void) |
Gets the value of mStartColour. | |
DocColour | GetContoneEnd (void) |
Gets the value of mEndColour. | |
BOOL | GetIsContone (void) |
Gets the value of mIsContone. | |
UINT32 | GetTransparency (void) |
Gets the value of mTransparency. | |
FlashBitmapRecord * | GetNext (void) |
Gets mpNext. | |
FlashBitmapRecord * | GetLast (void) |
Gets mpLast. | |
void | SetBitmap (OILBitmap *pBitmap) |
Sets the value of mpBitmap. | |
void | SetBitmapID (WORD BitmapID) |
Sets the value of mBitmapID. | |
void | SetContoneColours (const DocColour &Start, const DocColour &End) |
void | SetIsContone (BOOL State) |
Sets the value of mIsContone. | |
void | SetTransparency (UINT32 Transparency) |
Sets the value of mTransparency. | |
void | SetNext (FlashBitmapRecord *pNext) |
Sets the value of mpNext. | |
void | SetLast (FlashBitmapRecord *pLast) |
Sets the value of mpLast. | |
Private Attributes | |
OILBitmap * | mpBitmap |
WORD | mBitmapID |
DocColour | mStartColour |
DocColour | mEndColour |
BOOL | mIsContone |
UINT32 | mTransparency |
FlashBitmapRecord * | mpNext |
FlashBitmapRecord * | mpLast |
Definition at line 113 of file swfbitmp.h.
|
Creates a FlashBitmapRecord list node, and initialises all member variables.
Definition at line 115 of file swfbitmp.cpp. 00116 { 00117 // Pointers should always be initialised to NULL when created. 00118 mpNext = NULL; // No subsequent nodes. 00119 mpLast = NULL; // No previous nodes. 00120 mpBitmap = NULL; // No bitmap attached. 00121 00122 mIsContone = FALSE; 00123 mBitmapID = 0; 00124 00125 mTransparency = 255; // The bitmap is (initially) transparent. 00126 }
|
|
Destroys this instance of FlashBitmapRecord.
Definition at line 140 of file swfbitmp.cpp. 00141 { 00142 // Clean up any stray values. 00143 mpNext = NULL; 00144 mpLast = NULL; 00145 mpBitmap = NULL; 00146 }
|
|
Adds an element to the tail of the list.
Definition at line 160 of file swfbitmp.cpp. 00161 { 00162 FlashBitmapRecord *pTail = new FlashBitmapRecord; 00163 00164 // Set the appropriate pointers. 00165 pTail->SetLast ( this ); // Ensure that a reference exists to this object... 00166 pTail->SetNext ( mpNext ); // Avoids any problems if mpLast isn't NULL. 00167 mpNext = pTail; // ... and a reference exists to the new one. 00168 00169 return pTail; 00170 }
|
|
Deletes the previous item in the list.
Definition at line 184 of file swfbitmp.cpp. 00185 { 00186 FlashBitmapRecord *pToDelete = mpLast; 00187 00188 // Reset mpLast to be mpLast->GetLast (), so that the list isn't broken. 00189 if ( mpLast != NULL ) 00190 mpLast = mpLast->GetLast (); 00191 00192 delete pToDelete; 00193 }
|
|
Deletes the next item in the list.
Definition at line 207 of file swfbitmp.cpp. 00208 { 00209 FlashBitmapRecord *pToDelete = mpNext; 00210 00211 // Reset mpNext to be mpNext->GetNext (), so that the list isn't broken. 00212 if ( mpNext != NULL ) 00213 mpNext = mpNext->GetNext (); 00214 00215 delete pToDelete; 00216 }
|
|
Gets the value of mpBitmap.
Definition at line 230 of file swfbitmp.cpp. 00231 { 00232 return mpBitmap; 00233 }
|
|
Gets the value of mBitmapID.
Definition at line 247 of file swfbitmp.cpp. 00248 { 00249 return mBitmapID; 00250 }
|
|
Gets the value of mEndColour.
Definition at line 281 of file swfbitmp.cpp. 00282 { 00283 return mEndColour; 00284 }
|
|
Gets the value of mStartColour.
Definition at line 264 of file swfbitmp.cpp. 00265 { 00266 return mStartColour; 00267 }
|
|
Gets the value of mIsContone.
Definition at line 298 of file swfbitmp.cpp. 00299 { 00300 return mIsContone; 00301 }
|
|
Gets mpLast.
Definition at line 332 of file swfbitmp.cpp. 00333 { 00334 return mpLast; 00335 }
|
|
Gets mpNext.
Definition at line 349 of file swfbitmp.cpp. 00350 { 00351 return mpNext; 00352 }
|
|
Gets the value of mTransparency.
Definition at line 315 of file swfbitmp.cpp. 00316 { 00317 return mTransparency; 00318 }
|
|
Sets the value of mpBitmap.
Definition at line 366 of file swfbitmp.cpp. 00367 { 00368 mpBitmap = pBitmap; 00369 }
|
|
Sets the value of mBitmapID.
Definition at line 438 of file swfbitmp.cpp. 00439 { 00440 mBitmapID = BitmapID; 00441 }
|
|
Definition at line 384 of file swfbitmp.cpp. 00386 { 00387 // Set the values for the start and end colours. 00388 mStartColour = Start; 00389 mEndColour = End; 00390 }
|
|
Sets the value of mIsContone.
Definition at line 404 of file swfbitmp.cpp. 00405 { 00406 mIsContone = IsContone; 00407 }
|
|
Sets the value of mpLast.
Definition at line 455 of file swfbitmp.cpp. 00456 { 00457 mpLast = pLast; 00458 }
|
|
Sets the value of mpNext.
Definition at line 472 of file swfbitmp.cpp. 00473 { 00474 mpNext = pNext; 00475 }
|
|
Sets the value of mTransparency.
Definition at line 421 of file swfbitmp.cpp. 00422 { 00423 mTransparency = Transparency; 00424 }
|
|
Definition at line 147 of file swfbitmp.h. |
|
Definition at line 149 of file swfbitmp.h. |
|
Definition at line 150 of file swfbitmp.h. |
|
Definition at line 146 of file swfbitmp.h. |
|
Definition at line 153 of file swfbitmp.h. |
|
Definition at line 152 of file swfbitmp.h. |
|
Definition at line 148 of file swfbitmp.h. |
|
Definition at line 151 of file swfbitmp.h. |