Re: GUI clarification
Just to be sure, here an example :
If you managed to feed your MWindow with some events,
you can then handle the button events like this :
1 ) create a static function like this :
void myButtonCallback(MGuiButton * button, MGUI_EVENT_TYPE event)
{
switch(event)
{
case MGUI_EVENT_MOUSE_BUTTON_DOWN:
printf("button pressed");
break;
}
}
2 ) give the callback function pointer to the button :
button->setEventCallback(myButtonCallback);