MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / is_inline_info_valid

Function is_inline_info_valid

scene/gui/text_edit.cpp:261–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261inline bool is_inline_info_valid(const Variant &p_info) {
262 if (p_info.get_type() != Variant::DICTIONARY) {
263 return false;
264 }
265 Dictionary info = p_info;
266 if (!info.get_valid("column").is_num() || !info.get_valid("width_ratio").is_num()) {
267 return false;
268 }
269 return true;
270}
271
272void TextEdit::Text::invalidate_cache(int p_line, bool p_text_changed) {
273 ERR_FAIL_INDEX(p_line, text.size());

Callers 4

invalidate_cacheMethod · 0.85
_notificationMethod · 0.85
gui_inputMethod · 0.85
get_cursor_shapeMethod · 0.85

Calls 3

is_numMethod · 0.80
get_validMethod · 0.80
get_typeMethod · 0.45

Tested by

no test coverage detected