src/lua-bindings/wrap_imgui_codegen.cpp
// Functions {{{
/*  Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) */
Functions {{{
Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling)
Functions {{{ Render - level scissoring . This is passed down to your render function but not used for CPU - side coarse clipping . Prefer using higher - level ImGui :: PushClipRect () to affect logic ( hit - testing and widget culling )
int w_ImDrawList_PushClipRect(lua_State *L)
{
	auto* self_udata = static_cast<WrapImDrawList*>(luaL_checkudata(L, 1, "ImDrawList"));
	if (!self_udata->isValid()) { luaL_error(L, "Expired userdata"); }
	auto* self = self_udata->value;
	ImVec2 clip_rect_min;
	clip_rect_min.x = luax_checkfloat(L, 2);
	clip_rect_min.y = luax_checkfloat(L, 3);
	ImVec2 clip_rect_max;
	clip_rect_max.x = luax_checkfloat(L, 4);
	clip_rect_max.y = luax_checkfloat(L, 5);
	auto intersect_with_current_clip_rect = luax_optboolean(L, 6, false);
	self->PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect);
	return 0;
}
int w_ImDrawList_PushClipRect ( lua_State * L ) { auto * self_udata = static_cast < WrapImDrawList * > ( luaL_checkudata ( L , 1 , " " ) ) ; if ( ! self_udata -> isValid ( ) ) { luaL_error ( L , " " ) ; } auto * self = self_udata -> value ; ImVec2 clip_rect_min ; clip_rect_min . x = luax_checkfloat ( L , 2 ) ; clip_rect_min . y = luax_checkfloat ( L , 3 ) ; ImVec2 clip_rect_max ; clip_rect_max . x = luax_checkfloat ( L , 4 ) ; clip_rect_max . y = luax_checkfloat ( L , 5 ) ; auto intersect_with_current_clip_rect = luax_optboolean ( L , 6 , false ) ; self -> PushClipRect ( clip_rect_min , clip_rect_max , intersect_with_current_clip_rect ) ; return 0 ; }
Functions {{{
Render-level scissoring.
Functions {{{ Render - level scissoring .