The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lua_gui2.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2016 by Chris Beck <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef LUA_GUI2_HPP_INCLUDED
16 #define LUA_GUI2_HPP_INCLUDED
17 
18 struct lua_State;
19 class CVideo;
20 class lua_kernel_base;
21 class vconfig;
22 
23 namespace lua_gui2 {
24 
34 int show_dialog(lua_State *L, CVideo & video);
35 int show_message_dialog(lua_State *L, CVideo & video);
36 int show_popup_dialog(lua_State *L, CVideo & video);
37 int show_lua_console(lua_State*L, CVideo & video, lua_kernel_base * lk);
38 int show_gamestate_inspector(CVideo & video, const vconfig & cfg);
40 
41 } // end namespace lua_gui2
42 
43 #endif
int intf_set_dialog_active(lua_State *L)
Sets a widget's state to active or inactive.
Definition: lua_gui2.cpp:676
int show_lua_console(lua_State *, CVideo &video, lua_kernel_base *lk)
Definition: lua_gui2.cpp:737
int intf_add_dialog_tree_node(lua_State *L)
Sets a widget's state to active or inactive.
Definition: lua_gui2.cpp:757
Definition: video.hpp:58
int intf_remove_dialog_item(lua_State *L)
Removes an entry from a list.
Definition: lua_gui2.cpp:501
int intf_set_dialog_markup(lua_State *L)
Enables/disables Pango markup on the label of a widget of the current dialog.
Definition: lua_gui2.cpp:626
int intf_set_dialog_focus(lua_State *L)
Sets a widget to have the focus.
Definition: lua_gui2.cpp:664
int show_dialog(lua_State *L, CVideo &video)
Displays a window.
Definition: lua_gui2.cpp:223
int show_message_dialog(lua_State *L, CVideo &video)
Displays a message window.
Definition: lua_gui2.cpp:254
int intf_set_dialog_canvas(lua_State *L)
Sets a canvas on a widget of the current dialog.
Definition: lua_gui2.cpp:643
int intf_set_dialog_value(lua_State *L)
Sets the value of a widget on the current dialog.
Definition: lua_gui2.cpp:365
int show_popup_dialog(lua_State *L, CVideo &video)
Displays a popup message.
Definition: lua_gui2.cpp:351
int intf_set_dialog_callback(lua_State *L)
Sets a callback on a widget of the current dialog.
Definition: lua_gui2.cpp:561
A variable-expanding proxy for the config class.
Definition: variable.hpp:36
int intf_get_dialog_value(lua_State *L)
Gets the value of a widget on the current dialog.
Definition: lua_gui2.cpp:439
int show_gamestate_inspector(CVideo &video, const vconfig &cfg)
Definition: lua_gui2.cpp:743
int intf_set_dialog_visible(lua_State *L)
Sets the visiblity of a widget in the current dialog.
Definition: lua_gui2.cpp:692