载入中...
搜索中...
未找到
NinePatch.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
4
5#include <memory>
6#include <string>
7
8namespace eve::image {
9class ImageData;
10}
11
12namespace eve::ui {
13
22 int width = 0;
23 int height = 0;
24 int borderLeft = 0;
25 int borderTop = 0;
26 int borderRight = 0;
27 int borderBottom = 0;
28 int paddingLeft = 0;
29 int paddingTop = 0;
30 int paddingRight = 0;
32};
33
43 std::string *error = nullptr);
44
49EVENGINE_API_WORLD std::unique_ptr<image::ImageData> stripNinePatchBorder(const image::ImageData &source);
50
51} // namespace eve::ui
#define EVENGINE_API_WORLD
Definition Export.h:109
std::string error
Definition Package.cpp:60
const UnitySourceAsset & source
Represents raw pixel data.
Definition ImageData.h:38
bool parseNinePatch(const image::ImageData &source, NinePatchInfo &out, std::string *error)
Parse a raw, uncompiled Android .9.png image.
Definition NinePatch.cpp:55
std::unique_ptr< image::ImageData > stripNinePatchBorder(const image::ImageData &source)
Copy the drawable interior of a parsed .9.png without marker pixels.
Parsed Android-style .9.png stretch and content metadata.
Definition NinePatch.h:21