[chore] update Doxygen comments
This commit is contained in:
parent
b4664deed0
commit
178d54b0d1
|
|
@ -26,6 +26,11 @@ namespace kiwano
|
||||||
|
|
||||||
KGE_DECLARE_SMART_PTR(Button);
|
KGE_DECLARE_SMART_PTR(Button);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \addtogroup Component
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \~chinese
|
* \~chinese
|
||||||
* @brief °´Å¥
|
* @brief °´Å¥
|
||||||
|
|
@ -109,6 +114,8 @@ private:
|
||||||
Callback mouse_out_callback_;
|
Callback mouse_out_callback_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
inline void Button::SetClickCallback(const Callback& func)
|
inline void Button::SetClickCallback(const Callback& func)
|
||||||
{
|
{
|
||||||
click_callback_ = func;
|
click_callback_ = func;
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,16 @@ class Event;
|
||||||
|
|
||||||
KGE_DECLARE_SMART_PTR(Component);
|
KGE_DECLARE_SMART_PTR(Component);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \~chinese
|
||||||
|
* \defgroup Component 组件
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \addtogroup Component
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
/// \~chinese
|
/// \~chinese
|
||||||
/// @brief 组件列表
|
/// @brief 组件列表
|
||||||
typedef IntrusiveList<ComponentPtr> ComponentList;
|
typedef IntrusiveList<ComponentPtr> ComponentList;
|
||||||
|
|
@ -94,6 +104,8 @@ private:
|
||||||
Actor* actor_;
|
Actor* actor_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
inline bool Component::IsEnable() const
|
inline bool Component::IsEnable() const
|
||||||
{
|
{
|
||||||
return enabled_;
|
return enabled_;
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,15 @@
|
||||||
|
|
||||||
namespace kiwano
|
namespace kiwano
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* \~chinese
|
||||||
|
* \defgroup Serialization 序列化
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \addtogroup Serialization
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
/// \~chinese
|
/// \~chinese
|
||||||
/// @brief ÐòÁл¯Æ÷
|
/// @brief ÐòÁл¯Æ÷
|
||||||
|
|
@ -230,7 +239,7 @@ class Serializable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/// \~chinese
|
/// \~chinese
|
||||||
/// @brief 序列化为字符串
|
/// @brief 序列化为字节串
|
||||||
inline Vector<uint8_t> Serialize() const
|
inline Vector<uint8_t> Serialize() const
|
||||||
{
|
{
|
||||||
Vector<uint8_t> data;
|
Vector<uint8_t> data;
|
||||||
|
|
@ -240,7 +249,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \~chinese
|
/// \~chinese
|
||||||
/// @brief 从字符串反序列化
|
/// @brief 从字节串反序列化
|
||||||
inline void Deserialize(const Vector<uint8_t>& data)
|
inline void Deserialize(const Vector<uint8_t>& data)
|
||||||
{
|
{
|
||||||
ByteDeserializer deserializer(data);
|
ByteDeserializer deserializer(data);
|
||||||
|
|
@ -438,4 +447,7 @@ inline Deserializer& operator>>(Deserializer& deserializer, math::TransformT<flo
|
||||||
return deserializer >> transform.position >> transform.rotation >> transform.scale >> transform.skew;
|
return deserializer >> transform.position >> transform.rotation >> transform.scale >> transform.skew;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
} // namespace kiwano
|
} // namespace kiwano
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue