34 #ifndef __diguyViewButtonPanel_H
35 #define __diguyViewButtonPanel_H
40 #define CPLUSPLUS_ONLY
44 class bdiViewButtonPanel;
149 static int destroy_instance(
const char* name);
165 static int destroy_all();
181 const char* get_name();
193 int get_position(
int* ret_x,
int* ret_y);
237 int set_visible(
int visible);
257 int set_minimized_state(
int minimized);
282 int set_position(
int x,
int y);
303 int set_dimensions(
int w,
int h);
323 int set_depth(
int z);
345 int set_justifications(
int h,
int v);
365 int set_spacing(
int spacing);
385 int set_title(
const char* title);
412 int add_button(
const char* name,
413 const char* lua_object_name,
414 const char* lua_function_name,
415 const char* style_sheet = NULL);
441 int add_button_with_script(
const char* name,
const char* script,
442 const char* style_sheet = NULL);
462 int set_button_name(
int index,
const char* name);
486 int set_allow_toggle(
int index,
int can_toggle);
508 int set_selected_button(
int index);
528 int set_selected_button_by_name(
const char* name);
554 int add_int_slider(
const char* name,
555 const char* lua_object_name,
556 const char* lua_function_name,
560 const char* style_sheet = NULL);
586 int add_float_slider(
const char* name,
587 const char* lua_object_name,
588 const char* lua_function_name,
592 const char* style_sheet = NULL);
604 int set_slider_value(
const char* name,
float value);
612 int add_spacer(
int pixels);
620 void set_item_visibility(
int index,
bool visible);
628 void remove_all_items();
639 void set_open_script(
const char* lua_script);
650 void set_minimize_script(
const char* lua_script);
729 int set_style_sheet(
const char* sheet);
739 #ifdef CPLUSPLUS_ONLY
740 friend class bdiViewButtonPanel;
742 bdiViewButtonPanel* get_scripted_object() {
return m_panel;}
763 bdiViewButtonPanel* m_panel;
769 #endif //__diguyViewButtonPanel_H