guizh_button.zh#

Variables#

const int

BUTTON_TILE

const int

BUTTON_CSET

const int

BUTTON_STATE

const int

BUTTON_USER_DATA

const int

BTNSTATE_NORMAL

const int

BTNSTATE_UNDER_MOUSE

const int

BTNSTATE_DOWN

const int

BTNSTATE_DRAGGED_OFF

Functions#

int

Button_Create(int parent, int tile, int cset)

void

Button_SetUserData(int id, int data)

void

Button_Draw(int id, int x, int y)

void

Button_OnMouseEnter(int id)

void

Button_OnMouseExit(int id)

void

Button_OnMousePress(int id)

void

Button_OnMouseRelease(int id)

Variable descriptions#

const int BUTTON_TILE = 0 🔗 Source


const int BUTTON_CSET = 1 🔗 Source


const int BUTTON_STATE = 2 🔗 Source


const int BUTTON_USER_DATA = 3 🔗 Source


const int BTNSTATE_NORMAL = 0 🔗 Source


const int BTNSTATE_UNDER_MOUSE = 1 🔗 Source


const int BTNSTATE_DOWN = 2 🔗 Source


const int BTNSTATE_DRAGGED_OFF = 3 🔗 Source


Function descriptions#

int Button_Create(int parent, int tile, int cset) 🔗 Source


void Button_SetUserData(int id, int data) 🔗 Source

Set data to send on click


void Button_Draw(int id, int x, int y) 🔗 Source


void Button_OnMouseEnter(int id) 🔗 Source


void Button_OnMouseExit(int id) 🔗 Source


void Button_OnMousePress(int id) 🔗 Source


void Button_OnMouseRelease(int id) 🔗 Source