From ac87777651b00fa3ccfcec69a9d3e6f2c8a00763 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Fri, 15 May 2020 08:13:06 +0200 Subject: [PATCH] setVisible --- src/cursor-control.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/cursor-control.cpp b/src/cursor-control.cpp index 781fed7..c489346 100644 --- a/src/cursor-control.cpp +++ b/src/cursor-control.cpp @@ -44,9 +44,19 @@ ICursorControl_setPosition (SCM cursor_control, return SCM_UNSPECIFIED; } +SCM +ICursorControl_setVisible (SCM cursor_control, + SCM visible) +{ + ((gui::ICursorControl*)scm_to_irr_pointer (cursor_control))-> + setVisible (scm_to_bool (visible)); + return SCM_UNSPECIFIED; +} + void init_cursor_control (void) { DEFINE_GSUBR ("ICursorControl_getPosition", 1, 0, 0, ICursorControl_getPosition); DEFINE_GSUBR ("ICursorControl_setPosition", 2, 0, 0, ICursorControl_setPosition); + DEFINE_GSUBR ("ICursorControl_setVisible", 2, 0, 0, ICursorControl_setVisible); } -- 2.39.5