MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / DropGraphics

Method DropGraphics

scintilla/src/Editor.cxx:233–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void Editor::DropGraphics ( bool freeObjects )
234{
235 if ( freeObjects ) {
236 delete pixmapLine;
237 pixmapLine = 0;
238 delete pixmapSelMargin;
239 pixmapSelMargin = 0;
240 delete pixmapSelPattern;
241 pixmapSelPattern = 0;
242 delete pixmapSelPatternOffset1;
243 pixmapSelPatternOffset1 = 0;
244 delete pixmapIndentGuide;
245 pixmapIndentGuide = 0;
246 delete pixmapIndentGuideHighlight;
247 pixmapIndentGuideHighlight = 0;
248 } else {
249 if ( pixmapLine ) {
250 pixmapLine->Release();
251 }
252 if ( pixmapSelMargin ) {
253 pixmapSelMargin->Release();
254 }
255 if ( pixmapSelPattern ) {
256 pixmapSelPattern->Release();
257 }
258 if ( pixmapSelPatternOffset1 ) {
259 pixmapSelPatternOffset1->Release();
260 }
261 if ( pixmapIndentGuide ) {
262 pixmapIndentGuide->Release();
263 }
264 if ( pixmapIndentGuideHighlight ) {
265 pixmapIndentGuideHighlight->Release();
266 }
267 }
268}
269
270void Editor::AllocateGraphics()
271{

Callers

nothing calls this directly

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected