18 void ResourceManualPointer::deserialization(xml::ElementPtr _node, Version _version)
20 Base::deserialization(_node, _version);
22 for (
auto info : _node.node().children(
"Property"))
24 std::string_view key = info.attribute(
"key").value();
25 std::string_view value = info.attribute(
"value").value();
29 else if (key ==
"Size")
31 else if (key ==
"Texture")
33 else if (key ==
"Coord")
38 void ResourceManualPointer::setImage(ImageBox* _image)
40 _image->deleteAllItems();
41 _image->setImageInfo(mTexture, mTextureCoord, mTextureCoord.size());
44 void ResourceManualPointer::setPosition(ImageBox* _image,
const IntPoint& _point)
46 _image->setCoord(_point.left - mPoint.left, _point.top - mPoint.top, mSize.width, mSize.height);
types::TPoint< int > IntPoint
static TCoord< int > parse(std::string_view _value)
static TPoint< int > parse(std::string_view _value)
static TSize< int > parse(std::string_view _value)