14 #ifndef __diguyViewButtonPanel_H
15 #define __diguyViewButtonPanel_H
20 #define CPLUSPLUS_ONLY
24 class bdiViewButtonPanel;
129 static int destroy_instance(
const char* name);
145 static int destroy_all();
161 const char* get_name();
173 int get_position(
int* ret_x,
int* ret_y);
217 int set_visible(
int visible);
237 int set_minimized_state(
int minimized);
262 int set_position(
int x,
int y);
283 int set_dimensions(
int w,
int h);
303 int set_depth(
int z);
325 int set_justifications(
int h,
int v);
345 int set_spacing(
int spacing);
365 int set_title(
const char* title);
392 int add_button(
const char* name,
393 const char* lua_object_name,
394 const char* lua_function_name,
395 const char* style_sheet = NULL);
421 int add_button_with_script(
const char* name,
const char* script,
422 const char* style_sheet = NULL);
442 int set_button_name(
int index,
const char* name);
466 int set_allow_toggle(
int index,
int can_toggle);
488 int set_selected_button(
int index);
508 int set_selected_button_by_name(
const char* name);
534 int add_int_slider(
const char* name,
535 const char* lua_object_name,
536 const char* lua_function_name,
540 const char* style_sheet = NULL);
566 int add_float_slider(
const char* name,
567 const char* lua_object_name,
568 const char* lua_function_name,
572 const char* style_sheet = NULL);
584 int set_slider_value(
const char* name,
float value);
592 int add_spacer(
int pixels);
600 void set_item_visibility(
int index,
bool visible);
608 void remove_all_items();
619 void set_open_script(
const char* lua_script);
630 void set_minimize_script(
const char* lua_script);
709 int set_style_sheet(
const char* sheet);
719 #ifdef CPLUSPLUS_ONLY
720 friend class bdiViewButtonPanel;
722 bdiViewButtonPanel* get_scripted_object() {
return m_panel;}
743 bdiViewButtonPanel* m_panel;
749 #endif //__diguyViewButtonPanel_H