Skip to content

Commit

Permalink
xrUICore/Static/UIStatic_script.cpp: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 5, 2019
1 parent cdaa532 commit a742810
Showing 1 changed file with 45 additions and 35 deletions.
80 changes: 45 additions & 35 deletions src/xrUICore/Static/UIStatic_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,54 @@

using namespace luabind;

SCRIPT_EXPORT(CUILines, (), {
module(luaState)[class_<CUILines>("CUILines")
.def("SetFont", &CUILines::SetFont)
.def("SetText", &CUILines::SetText)
.def("SetTextST", &CUILines::SetTextST)
.def("GetText", &CUILines::GetText)
.def("SetElipsis", &CUILines::SetEllipsis)
.def("SetTextColor", &CUILines::SetTextColor)];
SCRIPT_EXPORT(CUILines, (),
{
module(luaState)
[
class_<CUILines>("CUILines")
.def("SetFont", &CUILines::SetFont)
.def("SetText", &CUILines::SetText)
.def("SetTextST", &CUILines::SetTextST)
.def("GetText", &CUILines::GetText)
.def("SetElipsis", &CUILines::SetEllipsis)
.def("SetTextColor", &CUILines::SetTextColor)
];
});

SCRIPT_EXPORT(CUIStatic, (CUIWindow), {
module(luaState)[class_<CUIStatic, CUIWindow>("CUIStatic")
.def(constructor<>())
.def("TextControl", &CUIStatic::TextItemControl)
.def("InitTexture", &CUIStatic::InitTexture)
.def("InitTextureEx", &CUIStatic::InitTextureEx)
.def("SetTextureRect", &CUIStatic::SetTextureRect_script)
.def("SetStretchTexture", &CUIStatic::SetStretchTexture)
.def("GetTextureRect", &CUIStatic::GetTextureRect_script)];
SCRIPT_EXPORT(CUIStatic, (CUIWindow),
{
module(luaState)
[
class_<CUIStatic, CUIWindow>("CUIStatic")
.def(constructor<>())
.def("TextControl", &CUIStatic::TextItemControl)
.def("InitTexture", &CUIStatic::InitTexture)
.def("InitTextureEx", &CUIStatic::InitTextureEx)
.def("SetTextureRect", &CUIStatic::SetTextureRect_script)
.def("SetStretchTexture", &CUIStatic::SetStretchTexture)
.def("GetTextureRect", &CUIStatic::GetTextureRect_script)
];
});

SCRIPT_EXPORT(CUITextWnd, (CUIWindow), {
module(luaState)[class_<CUITextWnd, CUIWindow>("CUITextWnd")
.def(constructor<>())
.def("AdjustHeightToText", &CUITextWnd::AdjustHeightToText)
.def("AdjustWidthToText", &CUITextWnd::AdjustWidthToText)
.def("SetText", &CUITextWnd::SetText)
.def("SetTextST", &CUITextWnd::SetTextST)
.def("GetText", &CUITextWnd::GetText)
.def("SetFont", &CUITextWnd::SetFont)
.def("GetFont", &CUITextWnd::GetFont)
.def("SetTextColor", &CUITextWnd::SetTextColor)
.def("GetTextColor", &CUITextWnd::GetTextColor)
.def("SetTextComplexMode", &CUITextWnd::SetTextComplexMode)
.def("SetTextAlignment", &CUITextWnd::SetTextAlignment)
.def("SetVTextAlignment", &CUITextWnd::SetVTextAlignment)
.def("SetEllipsis", &CUITextWnd::SetEllipsis)
.def("SetTextOffset", &CUITextWnd::SetTextOffset)
// .def("", &CUITextWnd::)
SCRIPT_EXPORT(CUITextWnd, (CUIWindow),
{
module(luaState)
[
class_<CUITextWnd, CUIWindow>("CUITextWnd")
.def(constructor<>())
.def("AdjustHeightToText", &CUITextWnd::AdjustHeightToText)
.def("AdjustWidthToText", &CUITextWnd::AdjustWidthToText)
.def("SetText", &CUITextWnd::SetText)
.def("SetTextST", &CUITextWnd::SetTextST)
.def("GetText", &CUITextWnd::GetText)
.def("SetFont", &CUITextWnd::SetFont)
.def("GetFont", &CUITextWnd::GetFont)
.def("SetTextColor", &CUITextWnd::SetTextColor)
.def("GetTextColor", &CUITextWnd::GetTextColor)
.def("SetTextComplexMode", &CUITextWnd::SetTextComplexMode)
.def("SetTextAlignment", &CUITextWnd::SetTextAlignment)
.def("SetVTextAlignment", &CUITextWnd::SetVTextAlignment)
.def("SetEllipsis", &CUITextWnd::SetEllipsis)
.def("SetTextOffset", &CUITextWnd::SetTextOffset)
];
});

0 comments on commit a742810

Please sign in to comment.