MCPcopy Create free account
hub / github.com/WheretIB/nullc / nullcInitWindowModule

Function nullcInitWindowModule

NULLC/includes/window.cpp:136–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135#define REGISTER_FUNC(funcPtr, name, index) if(!nullcBindModuleFunction("win.window", (void(*)())NULLCWindow::funcPtr, name, index)) return false;
136bool nullcInitWindowModule()
137{
138 NULLCWindow::RegisterClass("NCWND", NULL);
139
140 if(!nullcBindModuleFunction("win.window_ex", (void(*)())NULLCWindow::WindowCreate, "Window", 0)) return false;
141
142 REGISTER_FUNC(WindowSetTitle, "Window::SetTitle", 0);
143 REGISTER_FUNC(WindowSetPosition, "Window::SetPosition", 0);
144 REGISTER_FUNC(WindowSetSize, "Window::SetSize", 0);
145
146 REGISTER_FUNC(WindowUpdate, "Window::Update", 0);
147
148 REGISTER_FUNC(WindowDrawCanvas, "Window::DrawCanvas", 0);
149
150 REGISTER_FUNC(WindowClose, "Window::Close", 0);
151
152 return true;
153}
154#endif
155

Callers 5

RunTestsFunction · 0.85
WinMainFunction · 0.85
mainFunction · 0.85
RunMethod · 0.85
SpeedTestTextFunction · 0.85

Calls 2

RegisterClassFunction · 0.85
nullcBindModuleFunctionFunction · 0.85

Tested by 3

RunTestsFunction · 0.68
RunMethod · 0.68
SpeedTestTextFunction · 0.68