49 m_common->postUiTask(task, param, waited);
57 m_common->sendUiTask(task, param, waited);
87 m_wnd->m_common->postUiTask([
this,
title](
void*)
89 glfwSetWindowTitle(
m_wnd->m_window,
title.c_str());
void * getNativeHandler() override
GLFW_SwapchainTargetWrapper(void *surface)
GLFW_WindowBehavior(GLFW_Window *wnd)
void title(const std::string &title)
void recreateSwapchain(int width, int height)
void postUiTask(UITaskFunction task, void *param=nullptr, bool waited=true)
Vec2 getCursorPos() const override
void invokeScrollCallbacks(int xoffset, int yoffset)
bool isRunning() const override
friend class GLFW_WindowBehavior
void invokeResizeCallbacks(int width, int height)
GLFW_Window(GLFW_UICommon *common, Runtime *rt)
void invokeKeyCallbacks(int key, int scancode, int action, int mods)
void setCursorPos(int x, int y) override
GLFWwindow * getWindow() const
void invokeMouseMoveCallbacks(int xpos, int ypos)
void sendUiTask(UITaskFunction task, void *param=nullptr, bool waited=true)
SwapchainTargetWrapper * getSwapchainTarget(Context *ctx) override
void swapBuffers() override
uint32_t postTicker(UiTicker ticker)
void * m_swapchainNativeHandle
Image * getImage() const override
void invokeMouseCallbacks(int button, int action, int mods)
std::function< void(void *)> UITaskFunction
std::function< void(void)> UiTicker