equal
deleted
inserted
replaced
43 |
43 |
44 struct CHuiVisual::THuiVisualPrivateData |
44 struct CHuiVisual::THuiVisualPrivateData |
45 { |
45 { |
46 public: // Functions |
46 public: // Functions |
47 // Constructor: initialize the data |
47 // Constructor: initialize the data |
48 THuiVisualPrivateData() : iTacticons(), iDropShadow(NULL) |
48 THuiVisualPrivateData() |
49 { |
49 : iTacticons(), iDropShadow(NULL), iEffect(NULL), |
50 iEffect = NULL; |
50 iEffectParser(NULL), iEffectable(NULL), iStoredRenderBuffer(NULL), |
51 iEffectParser = NULL; |
51 iStoredRenderBufferModificationsEnabled(ETrue), |
|
52 iFreezed(EFalse) |
|
53 { |
52 } |
54 } |
53 |
55 |
54 // Destructor: destruct the data |
56 // Destructor: destruct the data |
55 ~THuiVisualPrivateData() |
57 ~THuiVisualPrivateData() |
56 { |
58 { |
226 |
228 |
227 EXPORT_C void CHuiVisual::ConstructL() |
229 EXPORT_C void CHuiVisual::ConstructL() |
228 { |
230 { |
229 iVisualData = new (ELeave) THuiVisualPrivateData; |
231 iVisualData = new (ELeave) THuiVisualPrivateData; |
230 iVisualData->iEffectable = new CHuiEffectable(this); |
232 iVisualData->iEffectable = new CHuiEffectable(this); |
231 iVisualData->iStoredRenderBuffer = NULL; |
|
232 } |
233 } |
233 |
234 |
234 |
235 |
235 EXPORT_C CHuiVisual::~CHuiVisual() |
236 EXPORT_C CHuiVisual::~CHuiVisual() |
236 { |
237 { |
275 } |
276 } |
276 |
277 |
277 delete iBrushes; |
278 delete iBrushes; |
278 delete iTag; |
279 delete iTag; |
279 delete iTransform; |
280 delete iTransform; |
280 delete iVisualData->iEffectable; |
281 if (iVisualData) |
281 if (iVisualData->iStoredRenderBuffer) |
282 { |
282 { |
283 delete iVisualData->iEffectable; |
283 iVisualData->iStoredRenderBuffer->UnInitialize(); |
284 if (iVisualData->iStoredRenderBuffer) |
284 } |
285 { |
285 delete iVisualData->iStoredRenderBuffer; |
286 iVisualData->iStoredRenderBuffer->UnInitialize(); |
|
287 } |
|
288 delete iVisualData->iStoredRenderBuffer; |
|
289 } |
286 delete iVisualData; |
290 delete iVisualData; |
287 |
291 |
288 iOwner = NULL; |
292 iOwner = NULL; |
289 iDisplay = NULL; |
293 iDisplay = NULL; |
290 iLayout = NULL; |
294 iLayout = NULL; |