mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:40:05 +00:00
Enable loading color palettes from embedded Qt resources
This commit is contained in:
parent
1f9392e9f6
commit
1d597eb120
8 changed files with 88 additions and 9 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <istream>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
|
@ -28,7 +29,7 @@ public:
|
|||
explicit ColorTable();
|
||||
~ColorTable();
|
||||
|
||||
ColorTable(const ColorTable&) = delete;
|
||||
ColorTable(const ColorTable&) = delete;
|
||||
ColorTable& operator=(const ColorTable&) = delete;
|
||||
|
||||
ColorTable(ColorTable&&) noexcept;
|
||||
|
|
@ -40,6 +41,7 @@ public:
|
|||
bool IsValid() const;
|
||||
|
||||
static std::shared_ptr<ColorTable> Load(const std::string& filename);
|
||||
static std::shared_ptr<ColorTable> Load(std::istream& is);
|
||||
|
||||
private:
|
||||
std::unique_ptr<ColorTableImpl> p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue