# 0.2.6-2

- Add Scissor (CLIP RECT) to lithium commands and UI7 Drawlist API
- Enable ClipRect to UI7::Menu (probably create a enable/disable flag)
This commit is contained in:
2025-03-05 20:18:00 +01:00
parent 229d54f088
commit 5375d0f3a9
13 changed files with 148 additions and 57 deletions

View File

@ -27,15 +27,15 @@ SOFTWARE.
#include <pd/core/common.hpp>
namespace PD {
class ImgEdit {
class Image {
public:
ImgEdit() = default;
ImgEdit(const std::string& path) { this->Load(path); }
ImgEdit(const std::vector<u8>& buf) { this->Load(buf); }
ImgEdit(const std::vector<u8>& buf, int w, int h, int fmt = 4) {
Image() = default;
Image(const std::string& path) { this->Load(path); }
Image(const std::vector<u8>& buf) { this->Load(buf); }
Image(const std::vector<u8>& buf, int w, int h, int fmt = 4) {
this->Copy(buf, w, h, fmt);
}
~ImgEdit() = default;
~Image() = default;
void Load(const std::string& path);
void Load(const std::vector<u8>& buf);