Beispiel #1
0
Label::Label( GLFT_Font *font_, std::string text_ )
{
	setFont( font_ );
	setText( text_ );
	setBaseColor( 0.0f, 0.0f, 0.0f, 0.0f );
	setSelectColor( 0.0f, 0.0f, 0.0f, 0.0f );
	onClickedFunc = NULL;
}
Beispiel #2
0
SelectionBox::SelectionBox( GLFT_Font *font, GLFT_Font *selectFont )
{
	setFont( font );
	setSelectFont( selectFont );
	entries.clear();
	setBaseColor( 0.0f, 0.0f, 0.0f, 0.0f );
	setSelectColor( 0.0f, 0.0f, 0.0f, 0.0f );
	onSelectedFunc = NULL;
	maxWidth = 0;
	maxSelectedWidth = 0;
	selected = -1;
	//state = CLOSED;
	state = OPEN;
}
Beispiel #3
0
hTabBox::hTabBox(std::string name, hPanel * parent, int dispMode, int xx, int yy, int width)
	: hListBox(name, parent, dispMode, xx, yy, width)
{
	data->type = "tab_box";
    hGui * gui = hGui::getInstance();

    mainTabSelectionPanel =
    new hPanel("", this, HGUI_ABSOLUTE_POSITION, x, y+gui->tabHeight+1, w, (ofGetHeight() - gui->tabHeight)-3, false);
	mainTabSelectionPanel->getData()->name = name + "_panel";

    curTabSelectionPanel = NULL;

    setSelectColor(gui->tabBoxSelColor); // because we use the listbox draw routine

	x += 2; // little correction
}