|
MostlyHarmless 0.0.1
|
macOS specific gui helper functions More...
Functions | |
| void * | createView (std::uint32_t width, std::uint32_t height) |
| void | removeFromParentView (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 | reparentView (void *hostViewHandle, void *clientViewHandle, void *childViewHandle, Colour backgroundColour) |
| void | showView (void *viewHandle) |
| void | hideView (void *viewHandle) |
macOS specific gui helper functions
| void * mostly_harmless::gui::helpers::macos::createView | ( | std::uint32_t | width, |
| std::uint32_t | height ) |
| void mostly_harmless::gui::helpers::macos::getViewSize | ( | void * | viewHandle, |
| std::uint32_t * | width, | ||
| std::uint32_t * | height ) |
Retrieves an NSView's size.
| viewHandle | A void* to the NSView to query. |
| width | A pointer to the width variable - the result will be written here. |
| height | A pointer to the height variable - the result will be written here. |
| void mostly_harmless::gui::helpers::macos::hideView | ( | void * | viewHandle | ) |
Sets an NSView as hidden.
| viewHandle | A void* to the NSView to set hidden. |
| void mostly_harmless::gui::helpers::macos::removeFromParentView | ( | void * | viewHandle | ) |
Removes an NSView from its parent NSView.
| viewHandle | A void* to the NSView to remove. |
| void mostly_harmless::gui::helpers::macos::reparentView | ( | void * | hostViewHandle, |
| void * | clientViewHandle, | ||
| void * | childViewHandle, | ||
| Colour | backgroundColour ) |
Adds an NSView as a subview of another NSView.
| parentViewHandle | A void* to the NSView to add the child view to. |
| childViewHandle | A void* to the NSView to add to the parent view. |
| void mostly_harmless::gui::helpers::macos::setViewSize | ( | void * | viewHandle, |
| std::uint32_t | width, | ||
| std::uint32_t | height ) |
Sets an NSView's size.
| viewHandle | A void* to the NSView* to resize. |
| width | The new width. |
| height | The new height. |
| void mostly_harmless::gui::helpers::macos::showView | ( | void * | viewHandle | ) |
Sets an NSView as visible.
| viewHandle | A void* to the NSView to set visible. |