//TODO: cut the text if it is too long
@Override
    protected void render(GLRootView root, GL11 gl) {
        Rect p = mPaddings;
        int height = getHeight() - p.top - p.bottom;
        StringTexture title = mText;
        //TODO: cut the text if it is too long
        title.draw(root, p.left, p.top + (height - title.getHeight()) / 2);
    }
int height = getHeight() - p.top - p.bottom;
StringTexture title = mText;
//TODO: cut the text if it is too long
title.draw(root, p.left, p.top + (height - title.getHeight()) / 2);
}
@Override
protected void render(GLRootView root, GL11 gl) {
Rect p = mPaddings;
int height = getHeight() - p.top - p.bottom;
StringTexture title = mText;
//TODO: cut the text if it is too long
title.draw(root, p.left, p.top + (height - title.getHeight()) / 2);
}
@Override
protected void render(GLRootView root, GL11 gl) {
Rect p = mPaddings;
int height = getHeight() - p.top - p.bottom;
StringTexture title = mText;
//TODO: cut the text if it is too long
title.draw(root, p.left, p.top + (height - title.getHeight()) / 2);
}