mirror of
https://github.com/XITRIX/NXKit.git
synced 2026-05-30 11:46:52 +00:00
27 lines
438 B
C++
27 lines
438 B
C++
#pragma once
|
|
|
|
#include <Geometry.h>
|
|
|
|
namespace NXKit {
|
|
|
|
enum class CALayerContentsGravity {
|
|
bottom, bottomLeft, bottomRight,
|
|
center, left, right,
|
|
top, topLeft, topRight,
|
|
resize, resizeAspect, resizeAspectFill
|
|
};
|
|
|
|
class CALayer;
|
|
struct ContentsGravityTransformation {
|
|
NXPoint offset;
|
|
NXSize scale;
|
|
|
|
ContentsGravityTransformation(CALayer* layer);
|
|
|
|
private:
|
|
NXSize defaultScale = NXSize(1.0, 1.0);
|
|
};
|
|
|
|
}
|
|
|