📄 cpi_interfacepart.h
字号:
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
// Player verbs
//
// - This will contain all the verbs (commands) for the player - the verb handlers
// are also capable of returning it's skin def name and it's legacy skin def name
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
typedef void (*wp_Part_Destroy_PrivateData)(CP_HINTERFACEPART hPart);
typedef void (*wp_Part_Draw)(CP_HINTERFACEPART hPart, CPs_DrawContext* pContext);
typedef void (*wp_Part_onMouseIn)(CP_HINTERFACEPART hPart);
typedef void (*wp_Part_onMouseOut)(CP_HINTERFACEPART hPart);
typedef void (*wp_Part_onMouseMove)(CP_HINTERFACEPART hPart, const POINTS ptMouse);
typedef void (*wp_Part_onMouseButton_LDown)(CP_HINTERFACEPART hPart, const POINTS ptMouse);
typedef void (*wp_Part_onMouseButton_LUp)(CP_HINTERFACEPART hPart, const POINTS ptMouse);
typedef void (*wp_Part_onMouseButton_RDown)(CP_HINTERFACEPART hPart, const POINTS ptMouse);
typedef void (*wp_Part_onMouseButton_RUp)(CP_HINTERFACEPART hPart, const POINTS ptMouse);
typedef void (*wp_Part_onTimer)(CP_HINTERFACEPART hPart);
typedef void (*wp_Part_onSongChange)(CP_HINTERFACEPART hPart);
//
#define CPC_IP_ALIGN_LEFT 0x1
#define CPC_IP_ALIGN_RIGHT 0x2
#define CPC_IP_ALIGN_TOP 0x4
#define CPC_IP_ALIGN_BOTTOM 0x8
//
typedef struct _CPs_InterfacePart
{
// Methods
wp_Part_Destroy_PrivateData Destroy_PrivateData;
wp_Part_Draw Draw;
// Notifies
wp_Part_onMouseIn onMouseIn;
wp_Part_onMouseOut onMouseOut;
wp_Part_onMouseMove onMouseMove;
wp_Part_onMouseButton_LDown onMouseButton_LDown;
wp_Part_onMouseButton_LUp onMouseButton_LUp;
wp_Part_onMouseButton_RDown onMouseButton_RDown;
wp_Part_onMouseButton_RUp onMouseButton_RUp;
wp_Part_onTimer onTimer;
wp_Part_onSongChange onSongChange;
// Data
RECT m_rLocation;
DWORD m_dwAlign;
BOOL m_bRectAlignMode;
RECT m_rPosition;
POINT m_ptOffset;
SIZE m_szSize;
CP_HINTERFACE m_hOwner;
void* m_pPrivateData;
// Link to next part
CP_HINTERFACEPART m_hNext;
} CPs_InterfacePart;
//
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
void IP_Invalidate(CP_HINTERFACEPART hPart);
void IP_Destroy(CP_HINTERFACEPART hPart);
CP_HINTERFACEPART IP_Create_CommandButton(wp_Verb pfnVerb, CPs_Image_WithState* pImageWS);
CP_HINTERFACEPART IP_Create_Indicator(const char* pcName);
//
////////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -