MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / get

Method get

src/script/script_object.h:129–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128 template <typename Type = Value>
129 Type get(const std::string& name) {
130 auto it = m_internal->properties.find(name);
131 if (it == m_internal->properties.end())
132 return Value{};
133 it->second.getter();
134 return it->second.getter.result;
135 }
136
137 void set(const std::string& name, const Value& value) {
138 auto it = m_internal->properties.find(name);

Callers 3

initV8Method · 0.45
applyCursorFunction · 0.45
encodeSurfaceAsPNGMethod · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected