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

Method AutoSurface

scintilla/src/Editor.h:616–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614 Surface *surf;
615public:
616 AutoSurface(Editor *ed, int technology = -1) : surf(0) {
617 if (ed->wMain.GetID()) {
618 surf = Surface::Allocate(technology != -1 ? technology : ed->technology);
619 if (surf) {
620 surf->Init(ed->wMain.GetID());
621 surf->SetUnicodeMode(SC_CP_UTF8 == ed->CodePage());
622 surf->SetDBCSMode(ed->CodePage());
623 }
624 }
625 }
626 AutoSurface(SurfaceID sid, Editor *ed, int technology = -1) : surf(0) {
627 if (ed->wMain.GetID()) {
628 surf = Surface::Allocate(technology != -1 ? technology : ed->technology);

Callers

nothing calls this directly

Calls 5

SetUnicodeModeMethod · 0.80
SetDBCSModeMethod · 0.80
GetIDMethod · 0.45
InitMethod · 0.45
CodePageMethod · 0.45

Tested by

no test coverage detected