Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
nine_slice_panel.hpp File Reference

Contains class defining this project's implementation of nine-slice (or nine-region) resizable panels. More...

#include <SDL2/SDL.h>
#include <nlohmann/json.hpp>
#include <glm/glm.hpp>
#include "toymaker/shader_program.hpp"
#include "toymaker/core/resource_database.hpp"
#include "toymaker/texture.hpp"

Go to the source code of this file.

Classes

class  NineSlicePanel
 Resource responsible for resizing a texture using the 9-slice technique, for use in UI elements. More...
 
class  NineSlicePanelFromDescription
 Resource constructor for creating new NineSlicePanel resources from their descriptions in JSON. More...
 

Functions

 NLOHMANN_JSON_SERIALIZE_ENUM (NineSlicePanel::ScaleMode, { {NineSlicePanel::ScaleMode::STRETCH, "stretch"}, {NineSlicePanel::ScaleMode::TILE, "tile"}, })
 

Detailed Description

Contains class defining this project's implementation of nine-slice (or nine-region) resizable panels.

Author
Zoheb Shujauddin (zoheb.nosp@m.2424.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)
Version
0.3.2
Date
2025-09-13