100 TBool aViewIsEmphasized, |
100 TBool aViewIsEmphasized, |
101 TBool aItemIsSelected) const |
101 TBool aItemIsSelected) const |
102 { |
102 { |
103 BeginClipping(iGc); |
103 BeginClipping(iGc); |
104 CColumnListBoxItemDrawer::DrawItemText(aItemIndex, aItemTextRect, |
104 CColumnListBoxItemDrawer::DrawItemText(aItemIndex, aItemTextRect, |
105 aItemIsCurrent, aViewIsEmphasized, aItemIsSelected); |
105 aItemIsCurrent, aViewIsEmphasized, aItemIsSelected); |
106 EndClipping(iGc); |
106 EndClipping(iGc); |
107 } |
107 } |
108 |
108 |
109 // --------------------------------------------------------------------------- |
109 // --------------------------------------------------------------------------- |
110 // CSwtSingleHeadingStyleListBoxItemDrawer::DrawItemText |
110 // CSwtSingleHeadingStyleListBoxItemDrawer::DrawItemText |
158 // --------------------------------------------------------------------------- |
158 // --------------------------------------------------------------------------- |
159 // |
159 // |
160 void ASwtListBoxItemDrawerBase::SetCustomClippingRect( |
160 void ASwtListBoxItemDrawerBase::SetCustomClippingRect( |
161 const TRect& aRect) |
161 const TRect& aRect) |
162 { |
162 { |
163 if (aRect.IsNormalized()) |
163 iCustomClippingRect = aRect; |
164 { |
|
165 iCustomClippingRect = aRect; |
|
166 } |
|
167 else |
|
168 { |
|
169 iCustomClippingRect = TRect::EUninitialized; |
|
170 } |
|
171 } |
164 } |
172 |
165 |
173 // --------------------------------------------------------------------------- |
166 // --------------------------------------------------------------------------- |
174 // ASwtListBoxItemDrawerBase::BeginClipping |
167 // ASwtListBoxItemDrawerBase::BeginClipping |
175 // --------------------------------------------------------------------------- |
168 // --------------------------------------------------------------------------- |
176 // |
169 // |
177 void ASwtListBoxItemDrawerBase::BeginClipping(CWindowGc* aGc) const |
170 void ASwtListBoxItemDrawerBase::BeginClipping(CWindowGc* aGc) const |
178 { |
171 { |
179 if (iCustomClippingRect != TRect::EUninitialized) |
172 aGc->SetClippingRect(iCustomClippingRect); |
180 { |
|
181 aGc->SetClippingRect(iCustomClippingRect); |
|
182 } |
|
183 } |
173 } |
184 |
174 |
185 // --------------------------------------------------------------------------- |
175 // --------------------------------------------------------------------------- |
186 // ASwtListBoxItemDrawerBase::EndClipping |
176 // ASwtListBoxItemDrawerBase::EndClipping |
187 // --------------------------------------------------------------------------- |
177 // --------------------------------------------------------------------------- |
188 // |
178 // |
189 void ASwtListBoxItemDrawerBase::EndClipping(CWindowGc* aGc) const |
179 void ASwtListBoxItemDrawerBase::EndClipping(CWindowGc* aGc) const |
190 { |
180 { |
191 if (iCustomClippingRect != TRect::EUninitialized) |
181 aGc->CancelClippingRect(); |
192 { |
|
193 aGc->CancelClippingRect(); |
|
194 } |
|
195 } |
182 } |