mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
chore(ui): clean up function declarations
This commit is contained in:
parent
f24fbf26c6
commit
d61f0faef1
38 changed files with 471 additions and 471 deletions
|
|
@ -15,10 +15,10 @@ class CSimpleEditBox : public CSimpleFrame, CSimpleFontedFrame {
|
|||
static int32_t s_objectType;
|
||||
|
||||
// Static functions
|
||||
static void CreateScriptMetaTable(void);
|
||||
static int32_t GetObjectType(void);
|
||||
static void RegisterScriptMethods(lua_State*);
|
||||
static void SetKeyboardFocus(CSimpleEditBox*);
|
||||
static void CreateScriptMetaTable();
|
||||
static int32_t GetObjectType();
|
||||
static void RegisterScriptMethods(lua_State* L);
|
||||
static void SetKeyboardFocus(CSimpleEditBox* editBox);
|
||||
|
||||
// Member variables
|
||||
int32_t m_autoFocus : 1;
|
||||
|
|
@ -63,52 +63,52 @@ class CSimpleEditBox : public CSimpleFrame, CSimpleFontedFrame {
|
|||
ScriptIx m_onCharComposition;
|
||||
|
||||
// Virtual member functions
|
||||
virtual ScriptIx* GetScriptByName(const char*, ScriptData&);
|
||||
virtual bool IsA(int32_t);
|
||||
virtual int32_t GetScriptMetaTable(void);
|
||||
virtual void LoadXML(XMLNode*, CStatus*);
|
||||
virtual void OnLayerUpdate(float);
|
||||
virtual void OnFrameSizeChanged(float, float);
|
||||
virtual int32_t OnLayerChar(const CCharEvent&);
|
||||
virtual int32_t OnLayerKeyDown(const CKeyEvent&);
|
||||
virtual int32_t OnLayerMouseDown(const CMouseEvent&, const char*);
|
||||
virtual int32_t OnLayerMouseUp(const CMouseEvent&, const char*);
|
||||
virtual void FontUpdated(CSimpleFontedFrameFont*, int32_t);
|
||||
virtual ScriptIx* GetScriptByName(const char* name, ScriptData& data);
|
||||
virtual bool IsA(int32_t type);
|
||||
virtual int32_t GetScriptMetaTable();
|
||||
virtual void LoadXML(XMLNode* node, CStatus* status);
|
||||
virtual void OnLayerUpdate(float elapsedSec);
|
||||
virtual void OnFrameSizeChanged(float width, float height);
|
||||
virtual int32_t OnLayerChar(const CCharEvent& evt);
|
||||
virtual int32_t OnLayerKeyDown(const CKeyEvent& evt);
|
||||
virtual int32_t OnLayerMouseDown(const CMouseEvent& evt, const char* btn);
|
||||
virtual int32_t OnLayerMouseUp(const CMouseEvent& evt, const char* btn);
|
||||
virtual void FontUpdated(CSimpleFontedFrameFont* font, int32_t a3);
|
||||
|
||||
// Member functions
|
||||
CSimpleEditBox(CSimpleFrame*);
|
||||
int32_t ConvertCoordinateToIndex(float, float, int32_t&);
|
||||
CSimpleEditBox(CSimpleFrame* parent);
|
||||
int32_t ConvertCoordinateToIndex(float a2, float a3, int32_t& a4);
|
||||
void DeleteBackward(int32_t a2);
|
||||
void DeleteForward(int32_t a2);
|
||||
void DeleteHighlight(int32_t);
|
||||
void DeleteHighlight(int32_t a2);
|
||||
void DeleteSubstring(int32_t left, int32_t right, int32_t a4);
|
||||
int32_t GetNumToLen(int32_t, int32_t, bool);
|
||||
void GrowText(int32_t);
|
||||
void Insert(uint32_t);
|
||||
void Insert(const char*, const char*, int32_t, int32_t, int32_t);
|
||||
int32_t IsCurrentFocus(void);
|
||||
int32_t GetNumToLen(int32_t offset, int32_t amount, bool a4);
|
||||
void GrowText(int32_t size);
|
||||
void Insert(uint32_t chr);
|
||||
void Insert(const char* a2, const char* a3, int32_t a4, int32_t a5, int32_t a6);
|
||||
int32_t IsCurrentFocus();
|
||||
void Move(int32_t distance, int32_t highlight);
|
||||
void MoveBackward(int32_t highlight);
|
||||
void MoveForward(int32_t highlight);
|
||||
void OnEnterPressed(void);
|
||||
void OnEscapePressed(void);
|
||||
void OnTextChanged(void);
|
||||
int32_t PrevCharOffset(int32_t);
|
||||
void RunOnCursorChangedScript(float, float, float, float);
|
||||
void RunOnEditFocusGainedScript(void);
|
||||
void RunOnEditFocusLostScript(void);
|
||||
void RunOnEnterPressedScript(void);
|
||||
void RunOnTextChangedScript(int32_t);
|
||||
void SetCursorPosition(int32_t);
|
||||
void SetHistoryLines(int32_t);
|
||||
void SetMultiLine(int32_t);
|
||||
void StartHighlight(void);
|
||||
void UpdateDirtyBits(void);
|
||||
void UpdateSizes(void);
|
||||
void UpdateTextInfo(void);
|
||||
void UpdateVisibleCursor(void);
|
||||
void UpdateVisibleHighlight(void);
|
||||
void UpdateVisibleText(void);
|
||||
void OnEnterPressed();
|
||||
void OnEscapePressed();
|
||||
void OnTextChanged();
|
||||
int32_t PrevCharOffset(int32_t offset);
|
||||
void RunOnCursorChangedScript(float x, float y, float w, float h);
|
||||
void RunOnEditFocusGainedScript();
|
||||
void RunOnEditFocusLostScript();
|
||||
void RunOnEnterPressedScript();
|
||||
void RunOnTextChangedScript(int32_t changed);
|
||||
void SetCursorPosition(int32_t position);
|
||||
void SetHistoryLines(int32_t a2);
|
||||
void SetMultiLine(int32_t enabled);
|
||||
void StartHighlight();
|
||||
void UpdateDirtyBits();
|
||||
void UpdateSizes();
|
||||
void UpdateTextInfo();
|
||||
void UpdateVisibleCursor();
|
||||
void UpdateVisibleHighlight();
|
||||
void UpdateVisibleText();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue