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

Method SetExpanded

scintilla/src/ContractionState.cxx:190–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190bool ContractionState::SetExpanded(int lineDoc, bool expanded_) {
191 if (OneToOne() && expanded_) {
192 return false;
193 } else {
194 EnsureData();
195 if (expanded_ != (expanded->ValueAt(lineDoc) == 1)) {
196 expanded->SetValueAt(lineDoc, expanded_ ? 1 : 0);
197 Check();
198 return true;
199 } else {
200 Check();
201 return false;
202 }
203 }
204}
205
206int ContractionState::ContractedNext(int lineDocStart) const {
207 if (OneToOne()) {

Callers 4

SetFoldExpandedMethod · 0.80
FoldLineMethod · 0.80
EnsureLineVisibleMethod · 0.80
FoldChangedMethod · 0.80

Calls 2

ValueAtMethod · 0.45
SetValueAtMethod · 0.45

Tested by

no test coverage detected