Something went wrong. Try again.
Massive multiplayer game aiming to create a collaborative musical environment.
Something went wrong. Try again.
BoomBox Codebase External CEGUI-0.6.2 ScriptingModules CEGUILua LuaScriptModule package HelperFunctions.pkg
6.7 kB · 240 lines
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241/**************************************************** EventArgs casting helper functions. These are not part of the core CEGUI API, merely here for convenience*****************************************************/$[
function CEGUI.toMouseCursorEventArgs(e) return tolua.cast(e,"const CEGUI::MouseCursorEventArgs")end
function CEGUI.toWindowEventArgs(e) return tolua.cast(e,"const CEGUI::WindowEventArgs")end
function CEGUI.toActivationEventArgs(e) return tolua.cast(e,"const CEGUI::ActivationEventArgs")end
function CEGUI.toHeaderSequenceEventArgs(e) return tolua.cast(e,"const CEGUI::HeaderSequenceEventArgs")end
function CEGUI.toMouseEventArgs(e) return tolua.cast(e,"const CEGUI::MouseEventArgs")end
function CEGUI.toKeyEventArgs(e) return tolua.cast(e,"const CEGUI::KeyEventArgs")end
function CEGUI.toDragDropEventArgs(e) return tolua.cast(e,"const CEGUI::DragDropEventArgs")end
function CEGUI.toTreeEventArgs(e) return tolua.cast(e,"const CEGUI::TreeEventArgs")end
CEGUI.EventArgs.toMouseCursorEventArgs = CEGUI.toMouseCursorEventArgsCEGUI.EventArgs.toWindowEventArgs = CEGUI.toWindowEventArgsCEGUI.EventArgs.toActivationEventArgs = CEGUI.toActivationEventArgsCEGUI.EventArgs.toHeaderSequenceEventArgs = CEGUI.toHeaderSequenceEventArgsCEGUI.EventArgs.toMouseEventArgs = CEGUI.toMouseEventArgsCEGUI.EventArgs.toKeyEventArgs = CEGUI.toKeyEventArgsCEGUI.EventArgs.toDragDropEventArgs = CEGUI.toDragDropEventArgsCEGUI.EventArgs.toTreeEventArgs = CEGUI.toTreeEventArgs
$]
/**************************************************** Functions for easy casting CEGUI::Window class to the widget classes derived from it. all widget types gets these and they are made available as: CEGUI.toButtonBase and CEGUI.Window:toButtonBase etc...*****************************************************/$[
function CEGUI.toButtonBase(w) return tolua.cast(w,"CEGUI::ButtonBase")end
function CEGUI.toCheckbox(w) return tolua.cast(w,"CEGUI::Checkbox")end
function CEGUI.toCombobox(w) return tolua.cast(w,"CEGUI::Combobox")end
function CEGUI.toComboDropList(w) return tolua.cast(w,"CEGUI::ComboDropList")end
function CEGUI.toDragContainer(w) return tolua.cast(w,"CEGUI::DragContainer")end
function CEGUI.toEditbox(w) return tolua.cast(w,"CEGUI::Editbox")end
function CEGUI.toFrameWindow(w) return tolua.cast(w,"CEGUI::FrameWindow")end
function CEGUI.toGUISheet(w) return tolua.cast(w,"CEGUI::GUISheet")end
function CEGUI.toItemEntry(w) return tolua.cast(w,"CEGUI::ItemEntry")end
function CEGUI.toItemListBase(w) return tolua.cast(w,"CEGUI::ItemListBase")end
function CEGUI.toItemListbox(w) return tolua.cast(w,"CEGUI::ItemListbox")end
function CEGUI.toListbox(w) return tolua.cast(w,"CEGUI::Listbox")end
function CEGUI.toListHeader(w) return tolua.cast(w,"CEGUI::ListHeader")end
function CEGUI.toListHeaderSegment(w) return tolua.cast(w,"CEGUI::ListHeaderSegment")end
function CEGUI.toMenubar(w) return tolua.cast(w,"CEGUI::Menubar")end
function CEGUI.toMenuBase(w) return tolua.cast(w,"CEGUI::MenuBase")end
function CEGUI.toMenuItem(w) return tolua.cast(w,"CEGUI::MenuItem")end
function CEGUI.toMultiColumnList(w) return tolua.cast(w,"CEGUI::MultiColumnList")end
function CEGUI.toMultiLineEditbox(w) return tolua.cast(w,"CEGUI::MultiLineEditbox")end
function CEGUI.toPopupMenu(w) return tolua.cast(w,"CEGUI::PopupMenu")end
function CEGUI.toProgressBar(w) return tolua.cast(w,"CEGUI::ProgressBar")end
function CEGUI.toPushButton(w) return tolua.cast(w,"CEGUI::PushButton")end
function CEGUI.toRadioButton(w) return tolua.cast(w,"CEGUI::RadioButton")end
function CEGUI.toScrollablePane(w) return tolua.cast(w,"CEGUI::ScrollablePane")end
function CEGUI.toScrollbar(w) return tolua.cast(w,"CEGUI::Scrollbar")end
function CEGUI.toScrolledContainer(w) return tolua.cast(w,"CEGUI::ScrolledContainer")end
function CEGUI.toScrolledItemListBase(w) return tolua.cast(w,"CEGUI::ScrolledItemListBase")end
function CEGUI.toSlider(w) return tolua.cast(w,"CEGUI::Slider")end
function CEGUI.toSpinner(w) return tolua.cast(w,"CEGUI::Spinner")end
function CEGUI.toTabButton(w) return tolua.cast(w,"CEGUI::TabButton")end
function CEGUI.toTabControl(w) return tolua.cast(w,"CEGUI::TabControl")end
function CEGUI.toTabPane(w) return tolua.cast(w,"CEGUI::TabPane")end
function CEGUI.toThumb(w) return tolua.cast(w,"CEGUI::Thumb")end
function CEGUI.toTooltip(w) return tolua.cast(w,"CEGUI::Tooltip")end
CEGUI.Window.toButtonBase = CEGUI.toButtonBaseCEGUI.Window.toCheckbox = CEGUI.toCheckboxCEGUI.Window.toCombobox = CEGUI.toComboboxCEGUI.Window.toComboDropList = CEGUI.toComboDropListCEGUI.Window.toDragContainer = CEGUI.toDragContainerCEGUI.Window.toEditbox = CEGUI.toEditboxCEGUI.Window.toFrameWindow = CEGUI.toFrameWindowCEGUI.Window.toGUISheet = CEGUI.toGUISheetCEGUI.Window.toItemEntry = CEGUI.toItemEntryCEGUI.Window.toItemListBase = CEGUI.toItemListBaseCEGUI.Window.toItemListbox = CEGUI.toItemListBaseCEGUI.Window.toListbox = CEGUI.toListboxCEGUI.Window.toListHeader = CEGUI.toListHeaderCEGUI.Window.toListHeaderSegment = CEGUI.toListHeaderSegmentCEGUI.Window.toMenubar = CEGUI.toMenubarCEGUI.Window.toMenuBase = CEGUI.toMenuBaseCEGUI.Window.toMenuItem = CEGUI.toMenuItemCEGUI.Window.toMultiColumnList = CEGUI.toMultiColumnListCEGUI.Window.toMultiLineEditbox = CEGUI.toMultiLineEditboxCEGUI.Window.toPopupMenu = CEGUI.toPopupMenuCEGUI.Window.toProgressBar = CEGUI.toProgressBarCEGUI.Window.toPushButton = CEGUI.toPushButtonCEGUI.Window.toRadioButton = CEGUI.toRadioButtonCEGUI.Window.toScrollablePane = CEGUI.toScrollablePaneCEGUI.Window.toScrollbar = CEGUI.toScrollbarCEGUI.Window.toScrolledContainer = CEGUI.toScrolledContainerCEGUI.Window.toScrolledItemListBase = CEGUI.toScrolledItemListBaseCEGUI.Window.toSlider = CEGUI.toSliderCEGUI.Window.toSpinner = CEGUI.toSpinnerCEGUI.Window.toTabButton = CEGUI.toTabButtonCEGUI.Window.toTabControl = CEGUI.toTabControlCEGUI.Window.toTabPane = CEGUI.toTabPaneCEGUI.Window.toThumb = CEGUI.toThumbCEGUI.Window.toTooltip = CEGUI.toTooltip
$]
/**************************************************** Helper to create a ListboxTextItem. Mimics the constructor*****************************************************/ListboxTextItem* ceguiLua_createListboxTextItem @ createListboxTextItem(string text, unsigned int item_id=0, void* item_data=0, bool disabled=false, bool auto_delete=true);