![]() |
Kiwano Engine
v1.2.x
|
图层 更多...
#include <Layer.h>
Public 成员函数 | |
const Rect & | GetClipRect () const |
获取图层裁剪区域 | |
float | GetOpacity () const |
获取图层透明度 | |
ShapePtr | GetMaskShape () const |
获取几何蒙层 | |
const Matrix3x2 & | GetMaskTransform () const |
获取几何蒙层变换 | |
void | SetClipRect (const Rect &rect) |
设置图层裁剪区域 | |
void | SetOpacity (float opacity) |
设置图层透明度 | |
void | SetMaskShape (ShapePtr mask) |
设置几何蒙层 | |
void | SetMaskTransform (const Matrix3x2 &matrix) |
设置几何蒙层变换 | |
![]() | |
bool | IsValid () const override |
判断对象是否有效 | |
void * | GetNativePointer () const |
template<typename _NativeTy > | |
_NativeTy * | GetNativePointer () const |
virtual void | ResetNativePointer (void *native_pointer=nullptr) |
![]() | |
ObjectBase () | |
构造基础对象 | |
void | SetName (const String &name) |
设置对象名 | |
String | GetName () const |
获取对象名 | |
bool | IsName (const String &name) const |
判断对象的名称是否相同 更多... | |
void * | GetUserData () const |
获取用户数据 | |
void | SetUserData (void *data) |
设置用户数据 | |
uint64_t | GetObjectID () const |
获取对象ID | |
void | DoSerialize (Serializer *serializer) const override |
序列化 | |
void | DoDeserialize (Deserializer *deserializer) override |
反序列化 | |
ObjectStatus * | GetStatus () const |
获取对象状态 | |
void | SetStatus (const ObjectStatus &status) |
设置对象状态 | |
void | Fail (const String &msg, int code=ObjectStatus::fail) |
将对象标记为失败状态 | |
void | ClearStatus () |
清除对象状态 | |
![]() | |
void | Retain () |
增加引用计数 | |
void | Release () |
减少引用计数 | |
uint32_t | GetRefCount () const |
获取引用计数 | |
![]() | |
Vector< uint8_t > | Serialize () const |
序列化为字节串 | |
void | Deserialize (const Vector< uint8_t > &data) |
从字节串反序列化 | |
额外继承的成员函数 | |
![]() | |
static void | SetObjectPolicy (const ObjectPolicyFunc &policy) |
设置对象处理策略 | |
static bool | IsTracingLeaks () |
是否启用了内存泄漏追踪 | |
static void | StartTracingLeaks () |
开始追踪内存泄漏 | |
static void | StopTracingLeaks () |
停止追踪内存泄漏 | |
static void | DumpTracingObjects () |
打印所有追踪中的对象信息 | |
static Vector< ObjectBase * > & | GetTracingObjects () |
获取所有追踪中的对象 | |
![]() | |
static void * | operator new (size_t size) |
static void | operator delete (void *ptr) |
static void * | operator new (size_t size, std::nothrow_t const &) noexcept |
static void | operator delete (void *ptr, std::nothrow_t const &) noexcept |
static void * | operator new (size_t size, void *ptr) noexcept |
static void | operator delete (void *ptr, void *place) noexcept |
![]() | |
void * | native_pointer_ |
图层