OptionBox::~OptionBox() {

	if (popup) {
		GUI_DELETE( popup );
	}
	clear_deferred_list();
}
ComboBox::~ComboBox(){ 

	if (popup) {
	
		GUI_DELETE( popup );
	}
}
Beispiel #3
0
MenuBox::~MenuBox() {

	if (popup) {
		GUI_DELETE( popup );
	}
	clear_deferred_list();
}
void PopUpMenu::clear()  {
	
	GUI_DELETE( vbc );
	vbc = main_vbc->add( GUI_NEW(VBoxContainer) );
	set_size(Size(1,1));
	id_count=0;
	
}
void OptionBox::clear_deferred_list() {


	while (deferred_add_list) {

		DeferredAdd *aux=deferred_add_list;

		deferred_add_list=deferred_add_list->next;
		GUI_DELETE( aux );
	}
	
}
Beispiel #6
0
void Pixmap::unreference() {

	if (_pp) {

		_pp->refcount--;
		if (_pp->refcount<=0) {

			GUI_DELETE( _pp );
		}
	}

	_pp=NULL;
}
Beispiel #7
0
	~PixmapPrivate() {

		if (pixmap)
			GUI_DELETE( pixmap );
	}
void QuestionInputDialog::clear() {
	
	GUI_DELETE( button_hbox );
	button_hbox = vb->add( GUI_NEW(CenterContainer) )->set( GUI_NEW( HBoxContainer) );
	button_hbox->set_separation(5);
};
OptionButton::~OptionButton() {
	
	GUI_DELETE( popup );
}