9class Toast :
public Component{
16 virtual void onClick() { t->
onClose(); };
18 static const int MARGIN_HOR = 2;
19 static const int MARGIN_VER = 2;
32 void Text(
const std::string& txt);
NinePatch * bg
Definition toast.h:22
virtual void layout()
Definition toast.cpp:20
void Text(const std::string &txt)
Definition toast.cpp:47
SimpleButton * close
Definition toast.h:23
BitmapText * text
Definition toast.h:24
Toast(const std::string &text)
Definition toast.cpp:37
virtual void onClose()
Definition toast.h:29
virtual void createChildren()
Definition toast.cpp:7