MostlyHarmless 0.0.1
Loading...
Searching...
No Matches
mostlyharmless_GuiHelpersMacOS.h
Go to the documentation of this file.
1//
2// Created by Syl Morrison on 11/08/2024.
3//
4
5#ifndef MOSTLYHARMLESS_MOSTLYHARMLESS_GUIHELPERSMACOS_H
6#define MOSTLYHARMLESS_MOSTLYHARMLESS_GUIHELPERSMACOS_H
9#include <cstdint>
11 void* createView(std::uint32_t width, std::uint32_t height);
16 void removeFromParentView(void* viewHandle);
23 void setViewSize(void* viewHandle, std::uint32_t width, std::uint32_t height);
30 void getViewSize(void* viewHandle, std::uint32_t* width, std::uint32_t* height);
36 void reparentView(void* hostViewHandle, void* clientViewHandle, void* childViewHandle, Colour backgroundColour);
41 void showView(void* viewHandle);
46 void hideView(void* viewHandle);
47
53 void getMousePos(std::uint32_t* x, std::uint32_t* y);
54
61 void setMousePos(std::uint32_t newX, std::uint32_t newY);
62
66 void showCursor();
67
71 void hideCursor();
72
73
74} // namespace mostly_harmless::gui::helpers::macos
75#endif // MOSTLYHARMLESS_MOSTLYHARMLESS_GUIHELPERSMACOS_H
macOS specific gui helper functions
Definition mostlyharmless_NamespaceDocs.h:34
void * createView(std::uint32_t width, std::uint32_t height)
void setMousePos(std::uint32_t newX, std::uint32_t newY)
void reparentView(void *hostViewHandle, void *clientViewHandle, void *childViewHandle, Colour backgroundColour)
void hideView(void *viewHandle)
void setViewSize(void *viewHandle, std::uint32_t width, std::uint32_t height)
void getViewSize(void *viewHandle, std::uint32_t *width, std::uint32_t *height)
void getMousePos(std::uint32_t *x, std::uint32_t *y)
void showView(void *viewHandle)
void removeFromParentView(void *viewHandle)
Convenience struct representing a colour.
Definition mostlyharmless_Colour.h:12