MCPcopy Create free account
hub / github.com/defold/defold / LuaGetSlice9

Function LuaGetSlice9

engine/gui/src/gui_script.cpp:3136–3145  ·  view source on GitHub ↗

get the slice9 values for the node * Returns the slice9 configuration values for the node. * * @name gui.get_slice9 * @param node [type:node] node to manipulate * @return values [type:vector4] configuration values */

Source from the content-addressed store, hash-verified

3134 * @return values [type:vector4] configuration values
3135 */
3136 static int LuaGetSlice9(lua_State* L)
3137 {
3138 HNode hnode;
3139 InternalNode* n = LuaCheckNodeInternal(L, 1, &hnode);
3140 (void) n;
3141
3142 Scene* scene = GuiScriptInstance_Check(L);
3143 dmScript::PushVector4(L, dmGui::GetNodeProperty(scene, hnode, dmGui::PROPERTY_SLICE9));
3144 return 1;
3145 }
3146
3147 /*# sets the number of generated vertices around the perimeter
3148 * Sets the number of generated vertices around the perimeter of a pie node.

Callers

nothing calls this directly

Calls 4

LuaCheckNodeInternalFunction · 0.85
GuiScriptInstance_CheckFunction · 0.85
PushVector4Function · 0.85
GetNodePropertyFunction · 0.70

Tested by

no test coverage detected