File tree Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 702
702
"summary" : " IsWindowFocused" ,
703
703
"usage" : null
704
704
},
705
+ {
706
+ "description" : " " ,
707
+ "has_params" : false ,
708
+ "has_returns" : true ,
709
+ "name" : " is_window_hovered" ,
710
+ "params" : [],
711
+ "returns" : [
712
+ {
713
+ "description" : " " ,
714
+ "name" : " result" ,
715
+ "type" : " bool"
716
+ }
717
+ ],
718
+ "summary" : " IsWindowHovered" ,
719
+ "usage" : null
720
+ },
705
721
{
706
722
"description" : " " ,
707
723
"has_params" : false ,
Original file line number Diff line number Diff line change @@ -284,6 +284,14 @@ RETURNS
284
284
* ` focused ` [ ` boolean ` ] -
285
285
286
286
287
+ ### is_window_hovered()
288
+ IsWindowHovered
289
+
290
+
291
+ RETURNS
292
+ * ` result ` [ ` bool ` ] -
293
+
294
+
287
295
### get_content_region_avail()
288
296
GetContentRegionAvail
289
297
Original file line number Diff line number Diff line change 364
364
type: boolean
365
365
366
366
367
+ - name: is_window_hovered
368
+ type: function
369
+ desc: IsWindowHovered
370
+ returns:
371
+ - name: result
372
+ type: bool
373
+
374
+
367
375
- name: get_content_region_avail
368
376
type: function
369
377
desc: GetContentRegionAvail
Original file line number Diff line number Diff line change @@ -788,6 +788,19 @@ static int imgui_IsWindowFocused(lua_State* L)
788
788
return 1 ;
789
789
}
790
790
791
+ /* * IsWindowHovered
792
+ * @name is_window_hovered
793
+ * @treturn bool result
794
+ */
795
+ static int imgui_IsWindowHovered (lua_State* L)
796
+ {
797
+ DM_LUA_STACK_CHECK (L, 1 );
798
+ imgui_NewFrame ();
799
+ bool hovered = ImGui::IsWindowHovered ();
800
+ lua_pushboolean (L, hovered);
801
+ return 1 ;
802
+ }
803
+
791
804
/* * GetContentRegionAvail
792
805
* @name get_content_region_avail
793
806
* @treturn number x
@@ -3158,6 +3171,7 @@ static const luaL_reg Module_methods[] =
3158
3171
{" begin_window" , imgui_Begin},
3159
3172
{" end_window" , imgui_End},
3160
3173
{" is_window_focused" , imgui_IsWindowFocused},
3174
+ {" is_window_hovered" , imgui_IsWindowHovered},
3161
3175
{" get_content_region_avail" , imgui_GetContentRegionAvail},
3162
3176
{" get_window_content_region_max" , imgui_GetWindowContentRegionMax},
3163
3177
You can’t perform that action at this time.
0 commit comments