#include "scripting/lua_widget.hpp"
#include "scripting/lua_widget_attributes.hpp"
#include "gui/widgets/listbox.hpp"
#include "gui/widgets/multi_page.hpp"
#include "gui/widgets/stacked_widget.hpp"
#include "gui/widgets/tree_view.hpp"
#include "gui/widgets/tree_view_node.hpp"
#include "gui/widgets/widget.hpp"
#include "scripting/lua_common.hpp"
#include "scripting/lua_ptr.hpp"
#include "scripting/push_check.hpp"
Go to the source code of this file.
Namespaces | |
lua_widget | |
Functions | |
void | luaW_pushwidget (lua_State *L, gui2::widget &w) |
gui2::widget & | luaW_checkwidget (lua_State *L, int n) |
lua_ptr< gui2::widget > & | luaW_checkwidget_ptr (lua_State *L, int n) |
bool | luaW_iswidget (lua_State *L, int index) |
static void | luaW_pushwidgettablecontainer (lua_State *L) |
void | luaW_pushwindowtable (lua_State *L, gui2::window *owner) |
[-0, +1, -] More... | |
void | luaW_clearwindowtable (lua_State *L, gui2::window *owner) |
[-0, +0, -] More... | |
void | luaW_pushwidgettable (lua_State *L, gui2::widget *wg, gui2::window *owner) |
[-0, +1, -] More... | |
bool | luaW_setwidgetcallback (lua_State *L, gui2::widget *wg, gui2::window *owner, std::string_view name) |
returns true if a callback already existed. More... | |
void | luaW_getwidgetcallback (lua_State *L, gui2::widget *wg, gui2::window *owner, std::string_view name) |
pushed ther callback function onoto the stack [-0, +1, -] More... | |
void | luaW_callwidgetcallback (lua_State *L, gui2::widget *wg, gui2::window *owner, std::string_view name) |
callas a widgets callback [-0, +0, e] More... | |
static int | impl_widget_collect (lua_State *L) |
static int | impl_widget_length (lua_State *L) |
void | lua_widget::register_metatable (lua_State *L) |
Variables | |
static const char | widgetKey [] = "widget" |
static char | widgetdataKey [] = "widgetdata" |
|
static |
Definition at line 183 of file lua_widget.cpp.
Referenced by lua_widget::register_metatable().
|
static |
Definition at line 191 of file lua_widget.cpp.
References luaW_checkwidget(), luaW_tableget(), and w.
Referenced by lua_widget::register_metatable().
void luaW_callwidgetcallback | ( | lua_State * | L, |
gui2::widget * | wg, | ||
gui2::window * | owner, | ||
std::string_view | name | ||
) |
callas a widgets callback [-0, +0, e]
Definition at line 174 of file lua_widget.cpp.
References luaW_getwidgetcallback(), and luaW_pushwidget().
gui2::widget& luaW_checkwidget | ( | lua_State * | L, |
int | n | ||
) |
Definition at line 41 of file lua_widget.cpp.
References lua_ptr< T >::get_ptr(), n, and widgetKey.
Referenced by lua_widget::impl_widget_dir(), lua_widget::impl_widget_get(), impl_widget_length(), lua_widget::impl_widget_set(), intf_add_dialog_item(), intf_add_item_of_type(), intf_clear_items(), intf_dialog_close(), intf_find_widget(), intf_remove_dialog_item(), intf_set_dialog_canvas(), and intf_set_dialog_focus().
lua_ptr<gui2::widget>& luaW_checkwidget_ptr | ( | lua_State * | L, |
int | n | ||
) |
Definition at line 51 of file lua_widget.cpp.
References lua_ptr< T >::get_ptr(), n, and widgetKey.
Referenced by intf_set_dialog_callback().
void luaW_clearwindowtable | ( | lua_State * | L, |
gui2::window * | owner | ||
) |
[-0, +0, -]
Definition at line 103 of file lua_widget.cpp.
References luaW_pushwidgettablecontainer().
Referenced by intf_show_dialog().
void luaW_getwidgetcallback | ( | lua_State * | L, |
gui2::widget * | wg, | ||
gui2::window * | owner, | ||
std::string_view | name | ||
) |
pushed ther callback function onoto the stack [-0, +1, -]
Definition at line 162 of file lua_widget.cpp.
References lua_push(), and luaW_pushwidgettable().
Referenced by luaW_callwidgetcallback().
bool luaW_iswidget | ( | lua_State * | L, |
int | index | ||
) |
Definition at line 62 of file lua_widget.cpp.
References utf8::index(), and widgetKey.
void luaW_pushwidget | ( | lua_State * | L, |
gui2::widget & | w | ||
) |
Definition at line 35 of file lua_widget.cpp.
Referenced by lua_widget::impl_widget_get(), intf_add_dialog_item(), intf_add_item_of_type(), intf_find_widget(), intf_show_dialog(), lua_check_impl::lua_push(), luaW_callwidgetcallback(), luaW_pushwidgettable(), and WIDGET_SETTER().
void luaW_pushwidgettable | ( | lua_State * | L, |
gui2::widget * | wg, | ||
gui2::window * | owner | ||
) |
[-0, +1, -]
Definition at line 113 of file lua_widget.cpp.
References luaW_pushwidget(), and luaW_pushwindowtable().
Referenced by luaW_getwidgetcallback(), and luaW_setwidgetcallback().
|
static |
Definition at line 68 of file lua_widget.cpp.
References widgetdataKey.
Referenced by luaW_clearwindowtable(), and luaW_pushwindowtable().
void luaW_pushwindowtable | ( | lua_State * | L, |
gui2::window * | owner | ||
) |
[-0, +1, -]
Definition at line 81 of file lua_widget.cpp.
References luaW_pushwidgettablecontainer().
Referenced by luaW_pushwidgettable().
bool luaW_setwidgetcallback | ( | lua_State * | L, |
gui2::widget * | wg, | ||
gui2::window * | owner, | ||
std::string_view | name | ||
) |
returns true if a callback already existed.
[-1, +0, -]
Definition at line 140 of file lua_widget.cpp.
References lua_push(), and luaW_pushwidgettable().
Referenced by intf_set_dialog_callback().
|
static |
Definition at line 33 of file lua_widget.cpp.
Referenced by luaW_pushwidgettablecontainer().
|
static |
Definition at line 32 of file lua_widget.cpp.
Referenced by impl_widget_collect(), luaW_checkwidget(), luaW_checkwidget_ptr(), luaW_iswidget(), luaW_pushwidget(), and lua_widget::register_metatable().