mirror of https://github.com/axmolengine/axmol.git
Merge pull request #11219 from samuele3hu/v3_5_test
Update comments of Lua and remove some useless configure for bindings-generator of Lua
This commit is contained in:
commit
6887a063ab
|
@ -49,6 +49,7 @@ class CC_DLL ActionCamera : public ActionInterval //<NSCopying>
|
|||
public:
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
ActionCamera();
|
||||
/**
|
||||
|
|
|
@ -44,11 +44,13 @@ class CC_DLL AABB
|
|||
public:
|
||||
/**
|
||||
* Constructor.
|
||||
* @lua new
|
||||
*/
|
||||
AABB();
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* @lua new
|
||||
*/
|
||||
AABB(const Vec3& min, const Vec3& max);
|
||||
|
||||
|
|
|
@ -70,7 +70,11 @@ public:
|
|||
/**get duration*/
|
||||
float getDuration() const { return _duration; }
|
||||
|
||||
/**get bone curve*/
|
||||
/**
|
||||
* get bone curve
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
Curve* getBoneCurveByName(const std::string& name) const;
|
||||
|
||||
const std::unordered_map<std::string, Curve*>& getBoneCurves() const {return _boneCurves;}
|
||||
|
|
|
@ -54,6 +54,8 @@ enum class EvaluateType
|
|||
|
||||
/**
|
||||
* @brief curve of bone's position, rotation or scale
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
template <int componentSize>
|
||||
class AnimationCurve: public Ref
|
||||
|
|
|
@ -96,7 +96,11 @@ public:
|
|||
/** update billboard's transform and turn it towards camera */
|
||||
virtual void visit(Renderer *renderer, const Mat4& parentTransform, uint32_t parentFlags) override;
|
||||
|
||||
/** draw BillBoard object */
|
||||
/**
|
||||
* draw BillBoard object.
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) override;
|
||||
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ class Data;
|
|||
* c3t text file
|
||||
* c3b binary file
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
class CC_DLL Bundle3D
|
||||
{
|
||||
|
|
|
@ -37,6 +37,7 @@ NS_CC_BEGIN
|
|||
|
||||
/**mesh vertex attribute
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct MeshVertexAttrib
|
||||
{
|
||||
|
@ -53,6 +54,7 @@ struct MeshVertexAttrib
|
|||
|
||||
/** model node data, since 3.3
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct ModelData
|
||||
{
|
||||
|
@ -74,6 +76,7 @@ struct ModelData
|
|||
|
||||
/** Node data, since 3.3
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct NodeData
|
||||
{
|
||||
|
@ -107,6 +110,7 @@ struct NodeData
|
|||
|
||||
/** node datas, since 3.3
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct NodeDatas
|
||||
{
|
||||
|
@ -130,6 +134,7 @@ struct NodeDatas
|
|||
|
||||
/**mesh data
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct MeshData
|
||||
{
|
||||
|
@ -185,6 +190,7 @@ public:
|
|||
|
||||
/** mesh datas
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct MeshDatas
|
||||
{
|
||||
|
@ -206,6 +212,7 @@ struct MeshDatas
|
|||
|
||||
/**skin data
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct SkinData
|
||||
{
|
||||
|
@ -277,6 +284,7 @@ struct SkinData
|
|||
|
||||
/**material data,
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct MaterialData
|
||||
{
|
||||
|
@ -290,6 +298,7 @@ struct MaterialData
|
|||
|
||||
/**new material, since 3.3
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct NTextureData
|
||||
{
|
||||
|
@ -328,6 +337,7 @@ struct NMaterialData
|
|||
};
|
||||
/** material datas, since 3.3
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct MaterialDatas
|
||||
{
|
||||
|
@ -348,6 +358,7 @@ struct MaterialDatas
|
|||
};
|
||||
/**animation data
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct Animation3DData
|
||||
{
|
||||
|
@ -420,6 +431,7 @@ public:
|
|||
|
||||
/**reference data
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
struct Reference
|
||||
{
|
||||
|
|
|
@ -42,6 +42,7 @@ NS_CC_BEGIN
|
|||
/**
|
||||
* @brief BundleReader is an interface for reading sequence of bytes.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
class BundleReader: public cocos2d::Ref
|
||||
{
|
||||
|
|
|
@ -39,6 +39,7 @@ class Camera;
|
|||
* the frustum is a six-side geometry, usually use the frustum to do fast-culling:
|
||||
* check a entity whether is a potential visible entity
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
class CC_DLL Frustum
|
||||
{
|
||||
|
|
|
@ -59,14 +59,28 @@ public:
|
|||
/**create mesh with vertex attributes*/
|
||||
CC_DEPRECATED_ATTRIBUTE static Mesh* create(const std::vector<float>& vertices, int perVertexSizeInFloat, const IndexArray& indices, int numIndex, const std::vector<MeshVertexAttrib>& attribs, int attribCount){ return create(vertices, perVertexSizeInFloat, indices, attribs); }
|
||||
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
static Mesh* create(const std::vector<float>& vertices, int perVertexSizeInFloat, const IndexArray& indices, const std::vector<MeshVertexAttrib>& attribs);
|
||||
|
||||
/** create mesh */
|
||||
/**
|
||||
* create mesh
|
||||
* @lua NA
|
||||
*/
|
||||
static Mesh* create(const std::string& name, MeshIndexData* indexData, MeshSkin* skin = nullptr);
|
||||
|
||||
/**get vertex buffer*/
|
||||
/**
|
||||
* get vertex buffer
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
GLuint getVertexBuffer() const;
|
||||
/**has vertex attribute?*/
|
||||
/**
|
||||
* has vertex attribute?
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
bool hasVertexAttrib(int attrib) const;
|
||||
/**get mesh vertex attribute count*/
|
||||
ssize_t getMeshVertexAttribCount() const;
|
||||
|
@ -84,13 +98,25 @@ public:
|
|||
void setVisible(bool visible);
|
||||
bool isVisible() const { return _visible; }
|
||||
|
||||
/**skin getter */
|
||||
/**
|
||||
* skin getter
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
MeshSkin* getSkin() const { return _skin; }
|
||||
|
||||
/**mesh index data getter */
|
||||
/**
|
||||
* mesh index data getter
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
MeshIndexData* getMeshIndexData() const { return _meshIndexData; }
|
||||
|
||||
/**get GLProgramState*/
|
||||
/**
|
||||
* get GLProgramState
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
GLProgramState* getGLProgramState() const { return _glProgramState; }
|
||||
|
||||
/**name getter */
|
||||
|
@ -99,13 +125,29 @@ public:
|
|||
void setBlendFunc(const BlendFunc &blendFunc);
|
||||
const BlendFunc &getBlendFunc() const;
|
||||
|
||||
/** get primitive type*/
|
||||
/**
|
||||
* get primitive type
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
GLenum getPrimitiveType() const;
|
||||
/**get index count*/
|
||||
/**
|
||||
* get index count
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
ssize_t getIndexCount() const;
|
||||
/**get index format*/
|
||||
/**
|
||||
* get index format
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
GLenum getIndexFormat() const;
|
||||
/**get index buffer*/
|
||||
/**
|
||||
* get index buffer
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
GLuint getIndexBuffer() const;
|
||||
|
||||
/**get AABB*/
|
||||
|
|
|
@ -45,6 +45,7 @@ class Skeleton3D;
|
|||
* @brief MeshSkin, A class maintain a collection of bones that affect Mesh vertex.
|
||||
* And it is responsible for computing matrix palletes that used by skin mesh rendering.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
class CC_DLL MeshSkin: public Ref
|
||||
{
|
||||
|
|
|
@ -52,6 +52,7 @@ class MeshVertexData;
|
|||
* the MeshIndexData class.
|
||||
* @brief the MeshIndexData contain all of the indices data which mesh need.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
class MeshIndexData : public Ref
|
||||
{
|
||||
|
|
|
@ -46,11 +46,15 @@ public:
|
|||
|
||||
/*
|
||||
* Construct obb from oriented bounding box
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
OBB(const AABB& aabb);
|
||||
|
||||
/*
|
||||
* Construct obb from points
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
OBB(const Vec3* verts, int num);
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ NS_CC_BEGIN
|
|||
/**
|
||||
* @brief .obj file Loader
|
||||
* @js NA
|
||||
* @lua NA
|
||||
**/
|
||||
class ObjLoader
|
||||
{
|
||||
|
|
|
@ -40,6 +40,7 @@ enum class PointSide
|
|||
/**
|
||||
* Defines plane
|
||||
* @js NA
|
||||
* @lua NA
|
||||
**/
|
||||
class CC_DLL Plane
|
||||
{
|
||||
|
|
|
@ -46,11 +46,14 @@ class CC_DLL Ray
|
|||
public:
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
Ray();
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* @lua NA
|
||||
*/
|
||||
Ray(const Ray& ray);
|
||||
|
||||
|
@ -59,11 +62,13 @@ public:
|
|||
*
|
||||
* @param origin The ray's origin.
|
||||
* @param direction The ray's direction.
|
||||
* @lua new
|
||||
*/
|
||||
Ray(const Vec3& origin, const Vec3& direction);
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
* @lua NA
|
||||
*/
|
||||
~Ray();
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ NS_CC_BEGIN
|
|||
|
||||
/**
|
||||
* @brief Defines a basic hierachial structure of transformation spaces.
|
||||
* @lua NA
|
||||
*/
|
||||
class CC_DLL Bone3D : public Ref
|
||||
{
|
||||
|
@ -189,7 +190,9 @@ protected:
|
|||
class CC_DLL Skeleton3D: public Ref
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
static Skeleton3D* create(const std::vector<NodeData*>& skeletondata);
|
||||
|
||||
/**get total bone count*/
|
||||
|
|
|
@ -90,7 +90,11 @@ public:
|
|||
/**get Mesh by Name, it returns the first one if there are more than one mesh with the same name */
|
||||
Mesh* getMeshByName(const std::string& name) const;
|
||||
|
||||
/** get mesh array by name, returns all meshes with the given name */
|
||||
/**
|
||||
* get mesh array by name, returns all meshes with the given name
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
std::vector<Mesh*> getMeshArrayByName(const std::string& name) const;
|
||||
|
||||
/**get mesh*/
|
||||
|
@ -266,10 +270,18 @@ public:
|
|||
static Sprite3DCache* getInstance();
|
||||
static void destroyInstance();
|
||||
|
||||
/**get the SpriteData struct*/
|
||||
/**
|
||||
* get the SpriteData struct
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
Sprite3DData* getSpriteData(const std::string& key) const;
|
||||
|
||||
/**add the SpriteData into Sprite3D by given the specified key*/
|
||||
/**
|
||||
* add the SpriteData into Sprite3D by given the specified key
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
bool addSprite3DData(const std::string& key, Sprite3DData* spritedata);
|
||||
|
||||
/**remove the SpriteData from Sprite3D by given the specified key*/
|
||||
|
|
|
@ -41,6 +41,7 @@ class Texture2D;
|
|||
/**
|
||||
* @brief the sprite3D material is only texture for now
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
class Sprite3DMaterialCache
|
||||
{
|
||||
|
|
|
@ -64,7 +64,12 @@ public:
|
|||
|
||||
/* Minimum delay in between sounds */
|
||||
double minDelay;
|
||||
|
||||
|
||||
/**
|
||||
* Defautl constructor
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
AudioProfile()
|
||||
: maxInstances(0)
|
||||
, minDelay(0.0)
|
||||
|
|
|
@ -73,6 +73,7 @@ public:
|
|||
* Release the shared Engine object.
|
||||
*
|
||||
* @warning It must be called before the application exit, or it will lead to memory leaks.
|
||||
* @lua destroyInstance
|
||||
*/
|
||||
static void end();
|
||||
|
||||
|
|
|
@ -87,6 +87,7 @@ public:
|
|||
* @param callback callback when the task is finished. The callback is called in the main thread instead of task thread.
|
||||
* @param callbackParam parameter used by the callback.
|
||||
* @param f task can be lambda function.
|
||||
* @lua NA
|
||||
*/
|
||||
template<class F>
|
||||
inline void enqueue(TaskType type, const TaskCallBack& callback, void* callbackParam, F&& f);
|
||||
|
|
|
@ -89,13 +89,18 @@ public:
|
|||
/** Get previous contact data */
|
||||
inline const PhysicsContactData* getPreContactData() const { return _preContactData; }
|
||||
|
||||
/** Get data. */
|
||||
/**
|
||||
* Get data.
|
||||
* @lua NA
|
||||
*/
|
||||
inline void* getData() const { return _data; }
|
||||
|
||||
/**
|
||||
* @brief Set data to contact.
|
||||
|
||||
* You must manage the memory yourself, Generally you can set data at contact begin, and distory it at contact seperate.
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
inline void setData(void* data) { _data = data; }
|
||||
|
||||
|
|
|
@ -48,7 +48,9 @@ class EventListenerCustom;
|
|||
class EventCustom;
|
||||
|
||||
/**
|
||||
Uniform Value, which is used to store to value send to openGL pipe line by glUniformXXX.
|
||||
* Uniform Value, which is used to store to value send to openGL pipe line by glUniformXXX.
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
class CC_DLL UniformValue
|
||||
{
|
||||
|
@ -134,7 +136,11 @@ protected:
|
|||
*/
|
||||
};
|
||||
|
||||
/**Vertex Attribute Value, which is an abstraction of VertexAttribute and data pointer.*/
|
||||
/**
|
||||
* Vertex Attribute Value, which is an abstraction of VertexAttribute and data pointer.
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
class CC_DLL VertexAttribValue
|
||||
{
|
||||
friend class GLProgram;
|
||||
|
|
|
@ -56,6 +56,8 @@ public:
|
|||
|
||||
/**
|
||||
* Default destructor.
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~Button();
|
||||
|
||||
|
|
|
@ -82,11 +82,15 @@ public:
|
|||
|
||||
/**
|
||||
* Default constructor.
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
CheckBox();
|
||||
|
||||
/**
|
||||
* Default destructor.
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~CheckBox();
|
||||
|
||||
|
|
|
@ -45,21 +45,18 @@ namespace ui {
|
|||
/**
|
||||
*@brief Editbox delgate class.
|
||||
* It's useful when you want to do some customization duing Editbox input event
|
||||
*
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
class CC_GUI_DLL EditBoxDelegate
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~EditBoxDelegate() {};
|
||||
|
||||
/**
|
||||
* This method is called when an edit box gains focus after keyboard is shown.
|
||||
* @param editBox The edit box object that generated the event.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void editBoxEditingDidBegin(EditBox* editBox) {};
|
||||
|
||||
|
@ -67,8 +64,6 @@ namespace ui {
|
|||
/**
|
||||
* This method is called when an edit box loses focus after keyboard is hidden.
|
||||
* @param editBox The edit box object that generated the event.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void editBoxEditingDidEnd(EditBox* editBox) {};
|
||||
|
||||
|
@ -76,16 +71,12 @@ namespace ui {
|
|||
* This method is called when the edit box text was changed.
|
||||
* @param editBox The edit box object that generated the event.
|
||||
* @param text The new text.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void editBoxTextChanged(EditBox* editBox, const std::string& text) {};
|
||||
|
||||
/**
|
||||
* This method is called when the return button was pressed or the outside area of keyboard was touched.
|
||||
* @param editBox The edit box object that generated the event.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void editBoxReturn(EditBox* editBox) = 0;
|
||||
|
||||
|
@ -217,6 +208,7 @@ namespace ui {
|
|||
/**
|
||||
* Constructor.
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
EditBox(void);
|
||||
|
||||
|
|
|
@ -45,11 +45,15 @@ public:
|
|||
|
||||
/**
|
||||
* Default constructor
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
HBox();
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~HBox();
|
||||
|
||||
|
|
|
@ -47,11 +47,15 @@ class CC_GUI_DLL ImageView : public Widget
|
|||
public:
|
||||
/**
|
||||
* Default constructor
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
ImageView();
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~ImageView();
|
||||
|
||||
|
|
|
@ -147,11 +147,15 @@ public:
|
|||
|
||||
/**
|
||||
* Default constructor
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
Layout();
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~Layout();
|
||||
|
||||
|
@ -398,7 +402,14 @@ public:
|
|||
*/
|
||||
void requestDoLayout();
|
||||
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void onExit() override;
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,11 +43,15 @@ namespace ui {
|
|||
public:
|
||||
/**
|
||||
* Default constructor
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
LayoutComponent();
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
~LayoutComponent();
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ namespace ui {
|
|||
|
||||
/**
|
||||
*@brief Margin of widget's in point. Margin value should be positive.
|
||||
*@lua NA
|
||||
*/
|
||||
class CC_GUI_DLL Margin
|
||||
{
|
||||
|
@ -135,6 +136,8 @@ public:
|
|||
};
|
||||
/**
|
||||
* Default constructor.
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
LayoutParameter() : _margin(Margin())
|
||||
{
|
||||
|
@ -143,6 +146,7 @@ public:
|
|||
|
||||
/**
|
||||
* Default destructor.
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~LayoutParameter(){};
|
||||
|
||||
|
@ -241,6 +245,8 @@ public:
|
|||
|
||||
/**
|
||||
* Default constructor.
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
LinearLayoutParameter()
|
||||
: _linearGravity(LinearGravity::NONE)
|
||||
|
@ -250,6 +256,8 @@ public:
|
|||
|
||||
/**
|
||||
* Default destructor.
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~LinearLayoutParameter(){};
|
||||
|
||||
|
@ -326,6 +334,8 @@ public:
|
|||
|
||||
/**
|
||||
* Default constructor
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
RelativeLayoutParameter()
|
||||
: _relativeAlign(RelativeAlign::NONE),
|
||||
|
@ -338,6 +348,8 @@ public:
|
|||
|
||||
/**
|
||||
* Default destructor
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~RelativeLayoutParameter(){};
|
||||
|
||||
|
|
|
@ -94,12 +94,14 @@ public:
|
|||
/**
|
||||
* Default constructor
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
ListView();
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~ListView();
|
||||
|
||||
|
|
|
@ -60,12 +60,14 @@ public:
|
|||
/**
|
||||
* Default constructor.
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
LoadingBar();
|
||||
|
||||
/**
|
||||
* Default destructor.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~LoadingBar();
|
||||
|
||||
|
|
|
@ -87,12 +87,14 @@ public:
|
|||
/**
|
||||
* Default constructor
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
PageView();
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~PageView();
|
||||
|
||||
|
@ -200,6 +202,9 @@ public:
|
|||
virtual void setLayoutType(Type type) override{};
|
||||
virtual Type getLayoutType() const override{return Type::ABSOLUTE;};
|
||||
virtual std::string getDescription() const override;
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
/**
|
||||
|
|
|
@ -48,12 +48,14 @@ public:
|
|||
/**
|
||||
* Default constructor.
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
RelativeBox();
|
||||
|
||||
/**
|
||||
* Default destructor.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~RelativeBox();
|
||||
|
||||
|
|
|
@ -56,12 +56,14 @@ public:
|
|||
/**
|
||||
* @brief Default constructor.
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
RichElement(){};
|
||||
|
||||
/**
|
||||
* @brief Default destructor.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~RichElement(){};
|
||||
|
||||
|
@ -93,6 +95,7 @@ public:
|
|||
/**
|
||||
*@brief Default constructor.
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
RichElementText(){_type = Type::TEXT;};
|
||||
|
||||
|
@ -100,6 +103,7 @@ public:
|
|||
/**
|
||||
*@brief Default destructor.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~RichElementText(){};
|
||||
|
||||
|
@ -147,6 +151,7 @@ public:
|
|||
/**
|
||||
* @brief Default constructor.
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*
|
||||
*/
|
||||
RichElementImage(){_type = Type::IMAGE;};
|
||||
|
@ -155,6 +160,7 @@ public:
|
|||
/**
|
||||
* @brief Default destructor.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~RichElementImage(){};
|
||||
|
||||
|
@ -198,6 +204,7 @@ public:
|
|||
/**
|
||||
* @brief Default constructor.
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
RichElementCustomNode(){_type = Type::CUSTOM;};
|
||||
|
||||
|
@ -205,6 +212,7 @@ public:
|
|||
/**
|
||||
* @brief Default destructor.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~RichElementCustomNode(){CC_SAFE_RELEASE(_customNode);};
|
||||
|
||||
|
@ -246,12 +254,14 @@ public:
|
|||
/**
|
||||
* @brief Default constructor.
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
RichText();
|
||||
|
||||
/**
|
||||
* @brief Default destructor.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~RichText();
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@ namespace ui {
|
|||
/**
|
||||
* Default constructor.
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
Scale9Sprite();
|
||||
|
||||
|
@ -577,6 +578,10 @@ namespace ui {
|
|||
|
||||
virtual void visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) override;
|
||||
virtual void cleanup() override;
|
||||
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
/** Event callback that is invoked when the Node enters in the 'stage'.
|
||||
|
|
|
@ -107,12 +107,14 @@ public:
|
|||
/**
|
||||
* Default constructor
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
ScrollView();
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~ScrollView();
|
||||
|
||||
|
@ -387,6 +389,10 @@ public:
|
|||
* Return the "class name" of widget.
|
||||
*/
|
||||
virtual std::string getDescription() const override;
|
||||
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
/**
|
||||
|
|
|
@ -67,12 +67,14 @@ public:
|
|||
/**
|
||||
* Default constructor.
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
Slider();
|
||||
|
||||
/**
|
||||
* Default destructor.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~Slider();
|
||||
|
||||
|
|
|
@ -57,11 +57,15 @@ public:
|
|||
};
|
||||
/**
|
||||
* Default constructor.
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
Text();
|
||||
|
||||
/**
|
||||
* Default destructor.
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~Text();
|
||||
|
||||
|
|
|
@ -50,11 +50,15 @@ class CC_GUI_DLL TextAtlas : public Widget
|
|||
public:
|
||||
/**
|
||||
* Default constructor.
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
TextAtlas();
|
||||
|
||||
/**
|
||||
* Default destructor.
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~TextAtlas();
|
||||
|
||||
|
|
|
@ -49,11 +49,15 @@ class CC_GUI_DLL TextBMFont : public Widget
|
|||
public:
|
||||
/**
|
||||
* Default constructor
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
TextBMFont();
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~TextBMFont();
|
||||
|
||||
|
|
|
@ -40,6 +40,8 @@ namespace ui {
|
|||
/**
|
||||
* @brief A helper class which inherit from @see `TextFieldTTF` and implements the @see `TextFieldDelegate` protocol.
|
||||
* It is mainly be used internally by @see `UITextField` class.
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
class CC_GUI_DLL UICCTextField: public TextFieldTTF, public TextFieldDelegate
|
||||
{
|
||||
|
|
|
@ -45,11 +45,15 @@ public:
|
|||
|
||||
/**
|
||||
* Default constructor
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
VBox();
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~VBox();
|
||||
|
||||
|
|
|
@ -154,11 +154,15 @@ public:
|
|||
typedef std::function<void(Ref*, int)> ccWidgetEventCallback;
|
||||
/**
|
||||
* Default constructor
|
||||
*
|
||||
* @lua new
|
||||
*/
|
||||
Widget(void);
|
||||
|
||||
/**
|
||||
* Default destructor
|
||||
*
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~Widget();
|
||||
/**
|
||||
|
@ -312,6 +316,7 @@ public:
|
|||
/**
|
||||
* Set a event handler to the widget in order to use cocostudio editor and framework
|
||||
* @param callback The callback in `ccWidgetEventCallback`.
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void addCCSEventListener(const ccWidgetEventCallback& callback);
|
||||
/**/
|
||||
|
@ -646,8 +651,14 @@ public:
|
|||
* @return A cloned widget copy of original.
|
||||
*/
|
||||
Widget* clone();
|
||||
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void onEnter() override;
|
||||
|
||||
/**
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void onExit() override;
|
||||
|
||||
/**
|
||||
|
|
|
@ -54,6 +54,7 @@ public:
|
|||
static ControlColourPicker* create();
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
ControlColourPicker();
|
||||
/**
|
||||
|
|
|
@ -50,6 +50,7 @@ public:
|
|||
static ControlPotentiometer* create(const char* backgroundFile, const char* progressFile, const char* thumbFile);
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
ControlPotentiometer();
|
||||
/**
|
||||
|
|
|
@ -77,6 +77,7 @@ public:
|
|||
Sprite* selectedThumbSprite);
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
ControlSlider();
|
||||
/**
|
||||
|
|
|
@ -54,6 +54,7 @@ public:
|
|||
static ControlStepper* create(Sprite *minusSprite, Sprite *plusSprite);
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
ControlStepper();
|
||||
/**
|
||||
|
|
|
@ -55,6 +55,7 @@ public:
|
|||
static ControlSwitch* create(Sprite *maskSprite, Sprite * onSprite, Sprite * offSprite, Sprite * thumbSprite);
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
ControlSwitch();
|
||||
/**
|
||||
|
|
|
@ -93,6 +93,7 @@ public:
|
|||
static ScrollView* create();
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
ScrollView();
|
||||
/**
|
||||
|
|
|
@ -188,6 +188,7 @@ public:
|
|||
static TableView* create(TableViewDataSource* dataSource, Size size, Node *container);
|
||||
/**
|
||||
* @js ctor
|
||||
* @lua new
|
||||
*/
|
||||
TableView();
|
||||
/**
|
||||
|
|
|
@ -74,6 +74,7 @@ public:
|
|||
* @param versionFileUrl URL of version file. It should contain version code of new package.
|
||||
* @param storagePath The path to store downloaded resources.
|
||||
* @js NA
|
||||
* @lua new
|
||||
*/
|
||||
AssetsManager(const char* packageUrl = NULL, const char* versionFileUrl = NULL, const char* storagePath = NULL);
|
||||
/**
|
||||
|
|
|
@ -163,7 +163,9 @@ protected:
|
|||
*/
|
||||
const std::string& getGroupVersion(const std::string &group) const;
|
||||
|
||||
/** @brief Gets assets.
|
||||
/**
|
||||
* @brief Gets assets.
|
||||
* @lua NA
|
||||
*/
|
||||
const std::unordered_map<std::string, Asset>& getAssets() const;
|
||||
|
||||
|
|
|
@ -32,13 +32,13 @@ struct cpSpace;
|
|||
NS_CC_EXT_BEGIN
|
||||
|
||||
/**
|
||||
A BaseData that draws the components of a physics engine.
|
||||
* A BaseData that draws the components of a physics engine.
|
||||
|
||||
Supported physics engines:
|
||||
- Chipmunk
|
||||
- Objective-Chipmunk
|
||||
|
||||
@since v2.1
|
||||
* Supported physics engines:
|
||||
* - Chipmunk
|
||||
* - Objective-Chipmunk
|
||||
* @since v2.1
|
||||
* @lua NA
|
||||
*/
|
||||
|
||||
class CC_EX_DLL PhysicsDebugNode : public DrawNode
|
||||
|
@ -53,7 +53,6 @@ public:
|
|||
PhysicsDebugNode();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~PhysicsDebugNode();
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ NS_CC_EXT_BEGIN
|
|||
- Position and rotation are going to updated from the physics body
|
||||
- If you update the rotation or position manually, the physics body will be updated
|
||||
- You can't enble both Chipmunk support and Box2d support at the same time. Only one can be enabled at compile time
|
||||
* @lua NA
|
||||
*/
|
||||
class CC_EX_DLL PhysicsSprite : public Sprite
|
||||
{
|
||||
|
|
|
@ -45,7 +45,7 @@ skip = Node::[setGLServerState description getUserObject .*UserData getGLServerS
|
|||
Layer.*::[didAccelerate keyPressed keyReleased],
|
||||
Menu.*::[.*Target getSubItems create initWithItems alignItemsInRows alignItemsInColumns],
|
||||
MenuItem.*::[create setCallback initWithCallback],
|
||||
Label::[getLettersInfo createWithTTF listenToBackground listenToFontAtlasPurge],
|
||||
Label::[createWithTTF],
|
||||
Copying::[*],
|
||||
LabelProtocol::[*],
|
||||
LabelTextFormatProtocol::[*],
|
||||
|
@ -136,12 +136,7 @@ skip = Node::[setGLServerState description getUserObject .*UserData getGLServerS
|
|||
Bone3D::[*],
|
||||
Device::[getTextureDataForText],
|
||||
BillBoard::[*],
|
||||
Camera::[unproject],
|
||||
BaseLight3D::[*],
|
||||
DirectionLight3D::[*],
|
||||
PointLight3D::[*],
|
||||
SpotLight3D::[*],
|
||||
AmbientLight3D::[*]
|
||||
Camera::[unproject]
|
||||
|
||||
rename_functions = SpriteFrameCache::[addSpriteFramesWithFile=addSpriteFrames getSpriteFrameByName=getSpriteFrame],
|
||||
ProgressTimer::[setReverseProgress=setReverseDirection],
|
||||
|
|
|
@ -40,12 +40,11 @@ skip = .*Delegate::[*],
|
|||
.*Loader.*::[*],
|
||||
*::[^visit$ copyWith.* onEnter.* onExit.* ^description$ getObjectType (g|s)etDelegate .*HSV],
|
||||
EditBox::[(g|s)etDelegate ^keyboard.* touchDownAction getScriptEditBoxHandler registerScriptEditBoxHandler unregisterScriptEditBoxHandler],
|
||||
Control::[removeHandleOfControlEvent addHandleOfControlEvent],
|
||||
ControlUtils::[*],
|
||||
ControlSwitchSprite::[*],
|
||||
ScrollView::[(g|s)etDelegate$],
|
||||
TableView::[create (g|s)etDataSource$ (g|s)etDelegate],
|
||||
Manifest::[getAssets getAsset],
|
||||
Manifest::[getAssets],
|
||||
EventListenerAssetsManagerEx::[create],
|
||||
PUParticleSystem3D::[getDerivedOrientation getEmittedEmitterParticlePool getEmittedSystemParticlePool getAffector getEmitter getObserver],
|
||||
ParticlePool::[getActiveParticleList createParticle getNext getFirst],
|
||||
|
|
|
@ -30,7 +30,7 @@ headers = %(cocosdir)s/cocos/ui/CocosGUI.h
|
|||
|
||||
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
||||
# expression, it will be enclosed in "^$", like this: "^Menu*$".
|
||||
classes = Helper Widget Layer Layout RootWidget Button CheckBox ImageView Text TextAtlas TextBMFont LoadingBar Slider Switch TextField ScrollView ListView PageView LayoutParameter LinearLayoutParameter RelativeLayoutParameter Rich.* HBox VBox RelativeBox Scale9Sprite EditBox LayoutComponent
|
||||
classes = Helper Widget Layout Button CheckBox ImageView Text TextAtlas TextBMFont LoadingBar Slider TextField ScrollView ListView PageView LayoutParameter LinearLayoutParameter RelativeLayoutParameter Rich.* HBox VBox RelativeBox Scale9Sprite EditBox LayoutComponent
|
||||
|
||||
# what should we skip? in the format ClassName::[function function]
|
||||
# ClassName is a regular expression, but will be used like this: "^ClassName$" functions are also
|
||||
|
@ -40,11 +40,8 @@ classes = Helper Widget Layer Layout RootWidget Button CheckBox ImageView Text T
|
|||
# functions from all classes.
|
||||
|
||||
skip = *::[^visit$ copyWith.* onEnter.* onExit.* ^description$ getObjectType .*HSV onTouch.* onAcc.* onKey.* onRegisterTouchListener ccTouch.* (g|s)etDelegate],
|
||||
Widget::[(s|g)etUserObject addTouchEventListener addClickEventListener addCCSEventListener],
|
||||
Layer::[getInputManager],
|
||||
LayoutParameter::[(s|g)etMargin],
|
||||
Helper::[init],
|
||||
ImageView::[doubleClickEvent checkDoubleClick]
|
||||
Widget::[addTouchEventListener addClickEventListener addCCSEventListener],
|
||||
LayoutParameter::[(s|g)etMargin]
|
||||
|
||||
rename_functions =
|
||||
|
||||
|
|
Loading…
Reference in New Issue