MCPcopy Create free account
hub / github.com/Raais/ImStudio / getbaseobj

Method getbaseobj

src/sources/ims_buffer.cpp:149–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149ImStudio::BaseObject *ImStudio::BufferWindow::getbaseobj(int id)
150{
151 for (Object &o : objects)
152 {
153 if (o.id == id)
154 {
155 return &o;
156 }
157 if (!o.child.objects.empty())
158 {
159 for (BaseObject &cw : o.child.objects)
160 {
161 if (cw.id == id)
162 {
163 return &cw;
164 }
165 }
166 }
167 }
168 return nullptr;
169}
170
171void ImStudio::BufferWindow::create(std::string type_, bool atcursor)
172{

Callers 3

ShowSidebarMethod · 0.80
ShowPropertiesMethod · 0.80
ShowViewportMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected