#include "config.hpp"
#include "gui/core/canvas.hpp"
#include "gui/core/event/handler.hpp"
#include "gui/core/window_builder.hpp"
#include "gui/widgets/clickable_item.hpp"
#include "gui/widgets/styled_widget.hpp"
#include "gui/widgets/listbox.hpp"
#include "gui/widgets/multi_page.hpp"
#include "gui/widgets/selectable_item.hpp"
#include "gui/widgets/slider.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 "gui/widgets/window.hpp"
#include "log.hpp"
#include "scripting/lua_common.hpp"
#include "scripting/lua_kernel_base.hpp"
#include "scripting/lua_ptr.hpp"
#include "scripting/lua_widget.hpp"
#include "scripting/lua_widget_methods.hpp"
#include "scripting/push_check.hpp"
#include "utils/scope_exit.hpp"
#include <functional>
#include <vector>
Go to the source code of this file.
Namespaces | |
lua_widget | |
Macros | |
#define | ERR_LUA LOG_STREAM(err, log_scripting_lua) |
Functions | |
int | intf_show_dialog (lua_State *L) |
Displays a window. More... | |
static gui2::widget * | find_widget_impl (lua_State *L, gui2::widget *w, int i, bool readonly) |
static int | intf_find_widget (lua_State *L) |
static int | intf_remove_dialog_item (lua_State *L) |
Removes an entry from a list. More... | |
static int | intf_clear_items (lua_State *L) |
Removes all entries from a list. More... | |
static int | intf_set_dialog_callback (lua_State *L) |
Sets a callback on a widget of the current dialog. More... | |
static int | intf_set_dialog_canvas (lua_State *L) |
Sets a canvas on a widget of the current dialog. More... | |
static int | intf_set_dialog_focus (lua_State *L) |
Sets a widget to have the focus. More... | |
static int | intf_add_item_of_type (lua_State *L) |
Adds an item to a container widget that supports different types of items, for example a treeview. More... | |
static int | intf_add_dialog_item (lua_State *L) |
Adds an item to a container widget, for example a listbox. More... | |
static int | intf_dialog_close (lua_State *L) |
Closes a window. More... | |
int | lua_widget::luaW_open (lua_State *L) |
Variables | |
static lg::log_domain | log_scripting_lua ("scripting/lua") |
#define ERR_LUA LOG_STREAM(err, log_scripting_lua) |
Definition at line 45 of file lua_widget_methods.cpp.
|
static |
Definition at line 85 of file lua_widget_methods.cpp.
References gui2::tree_view_node::count_children(), dummy, gui2::tree_view_node::find(), gui2::tree_view_node::get_child_at(), i, n, and w.
Referenced by intf_find_widget().
|
static |
Adds an item to a container widget, for example a listbox.
Definition at line 449 of file lua_widget_methods.cpp.
References data, lua_push(), luaW_checkwidget(), luaW_pushwidget(), and w.
Referenced by lua_widget::luaW_open().
|
static |
Adds an item to a container widget that supports different types of items, for example a treeview.
Definition at line 417 of file lua_widget_methods.cpp.
References data, lua_push(), luaW_checkwidget(), luaW_pushwidget(), and w.
Referenced by lua_widget::luaW_open().
|
static |
Removes all entries from a list.
Definition at line 290 of file lua_widget_methods.cpp.
References gui2::tree_view::clear(), luaW_checkwidget(), and w.
Referenced by lua_widget::luaW_open().
|
static |
Closes a window.
Definition at line 472 of file lua_widget_methods.cpp.
References gui2::window::close(), luaW_checkwidget(), and w.
Referenced by lua_widget::luaW_open().
|
static |
Definition at line 187 of file lua_widget_methods.cpp.
References find_widget_impl(), luaW_checkwidget(), luaW_pushwidget(), and w.
Referenced by lua_widget::luaW_open().
|
static |
Removes an entry from a list.
Definition at line 261 of file lua_widget_methods.cpp.
References luaW_checkwidget(), and w.
Referenced by lua_widget::luaW_open().
|
static |
Sets a callback on a widget of the current dialog.
Definition at line 331 of file lua_widget_methods.cpp.
References c, gui2::event::connect_signal_notify_modified(), lua_ptr< T >::get_ptr(), luaW_checkwidget_ptr(), luaW_setwidgetcallback(), and w.
Referenced by lua_widget::luaW_open().
|
static |
Sets a canvas on a widget of the current dialog.
Definition at line 377 of file lua_widget_methods.cpp.
References c, i, luaW_checkconfig(), luaW_checkwidget(), and w.
Referenced by lua_widget::luaW_open().
|
static |
Sets a widget to have the focus.
Definition at line 401 of file lua_widget_methods.cpp.
References gui2::window::keyboard_capture(), luaW_checkwidget(), and w.
Referenced by lua_widget::luaW_open().
int intf_show_dialog | ( | lua_State * | L | ) |
Displays a window.
Definition at line 54 of file lua_widget_methods.cpp.
References gui2::build(), luaW_checkconfig(), luaW_clearwindowtable(), luaW_pushwidget(), ON_SCOPE_EXIT, gui2::open_window_stack, and gui2::remove_from_window_stack().
Referenced by lua_gui2::luaW_open().
|
static |