mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-19 14:11:06 +03:00
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run
32 lines
1014 B
C++
32 lines
1014 B
C++
#include "ui/simple/CSimpleStatusBar.hpp"
|
|
#include "ui/simple/CSimpleStatusBarScript.hpp"
|
|
|
|
int32_t CSimpleStatusBar::s_metatable;
|
|
int32_t CSimpleStatusBar::s_objectType;
|
|
|
|
void CSimpleStatusBar::CreateScriptMetaTable() {
|
|
auto L = FrameScript_GetContext();
|
|
CSimpleStatusBar::s_metatable = FrameScript_Object::CreateScriptMetaTable(L, &CSimpleStatusBar::RegisterScriptMethods);
|
|
}
|
|
|
|
int32_t CSimpleStatusBar::GetObjectType() {
|
|
if (!CSimpleStatusBar::s_objectType) {
|
|
CSimpleStatusBar::s_objectType = ++FrameScript_Object::s_objectTypes;
|
|
}
|
|
|
|
return CSimpleStatusBar::s_objectType;
|
|
}
|
|
|
|
void CSimpleStatusBar::RegisterScriptMethods(lua_State* L) {
|
|
CSimpleFrame::RegisterScriptMethods(L);
|
|
FrameScript_Object::FillScriptMethodTable(L, SimpleStatusBarMethods, NUM_SIMPLE_STATUS_BAR_SCRIPT_METHODS);
|
|
}
|
|
|
|
CSimpleStatusBar::CSimpleStatusBar(CSimpleFrame* parent) : CSimpleFrame(parent) {
|
|
// TODO
|
|
}
|
|
|
|
int32_t CSimpleStatusBar::GetScriptMetaTable() {
|
|
return CSimpleStatusBar::s_metatable;
|
|
}
|