Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

BC_Toggle Class Reference

#include <bctoggle.h>

Inheritance diagram for BC_Toggle:

BC_SubWindow BC_WindowBase BC_RelocatableWidget BC_CheckBox BC_Label BC_Radial List of all members.

Public Types

enum  {
  TOGGLE_UP, TOGGLE_UPHI, TOGGLE_CHECKED, TOGGLE_DOWN,
  TOGGLE_CHECKEDHI
}

Public Member Functions

 BC_Toggle (int x, int y, VFrame **data, int value, char *caption="", int bottom_justify=0, int font=MEDIUMFONT, int color=-1)
virtual ~BC_Toggle ()
virtual int handle_event ()
int get_value ()
int set_value (int value, int draw=1)
void set_select_drag (int value)
int update (int value, int draw=1)
void reposition_window (int x, int y)
void enable ()
void disable ()
void set_status (int value)
int initialize ()
int set_images (VFrame **data)
void set_underline (int number)
int cursor_enter_event ()
int cursor_leave_event ()
virtual int button_press_event ()
virtual int button_release_event ()
int cursor_motion_event ()
int repeat_event (int64_t repeat_id)
int draw_face ()
int has_caption ()

Static Public Member Functions

static void calculate_extents (BC_WindowBase *gui, VFrame **images, int bottom_justify, int *text_line, int *w, int *h, int *toggle_x, int *toggle_y, int *text_x, int *text_y, int *text_w, int *text_h, char *caption)

Public Attributes

BC_Pixmapimages [5]
BC_Pixmapbg_image
VFrame ** data
char caption [BCTEXTLEN]
int status
int value
int toggle_x
int toggle_y
int text_x
int text_text_x
int text_y
int text_w
int text_h
int text_line
int bottom_justify
int font
int color
int select_drag
int enabled
int underline
int is_radial

Detailed Description

Definition at line 11 of file bctoggle.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
TOGGLE_UP 
TOGGLE_UPHI 
TOGGLE_CHECKED 
TOGGLE_DOWN 
TOGGLE_CHECKEDHI 

Definition at line 58 of file bctoggle.h.


Constructor & Destructor Documentation

BC_Toggle::BC_Toggle int  x,
int  y,
VFrame **  data,
int  value,
char *  caption = "",
int  bottom_justify = 0,
int  font = MEDIUMFONT,
int  color = -1
 

Definition at line 11 of file bctoggle.C.

BC_Toggle::~BC_Toggle  )  [virtual]
 

Definition at line 40 of file bctoggle.C.


Member Function Documentation

int BC_Toggle::button_press_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 288 of file bctoggle.C.

int BC_Toggle::button_release_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 314 of file bctoggle.C.

void BC_Toggle::calculate_extents BC_WindowBase gui,
VFrame **  images,
int  bottom_justify,
int *  text_line,
int *  w,
int *  h,
int *  toggle_x,
int *  toggle_y,
int *  text_x,
int *  text_y,
int *  text_w,
int *  text_h,
char *  caption
[static]
 

Definition at line 74 of file bctoggle.C.

int BC_Toggle::cursor_enter_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 257 of file bctoggle.C.

int BC_Toggle::cursor_leave_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 271 of file bctoggle.C.

int BC_Toggle::cursor_motion_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 353 of file bctoggle.C.

void BC_Toggle::disable  ) 
 

Definition at line 231 of file bctoggle.C.

int BC_Toggle::draw_face  ) 
 

Definition at line 163 of file bctoggle.C.

void BC_Toggle::enable  ) 
 

Definition at line 225 of file bctoggle.C.

int BC_Toggle::get_value  ) 
 

Definition at line 377 of file bctoggle.C.

virtual int BC_Toggle::handle_event  )  [inline, virtual]
 

Reimplemented in BC_CheckBox.

Definition at line 23 of file bctoggle.h.

int BC_Toggle::has_caption  ) 
 

Definition at line 426 of file bctoggle.C.

int BC_Toggle::initialize  )  [virtual]
 

Reimplemented from BC_SubWindow.

Definition at line 47 of file bctoggle.C.

int BC_Toggle::repeat_event int64_t  repeat_id  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 243 of file bctoggle.C.

void BC_Toggle::reposition_window int  x,
int  y
 

Definition at line 419 of file bctoggle.C.

int BC_Toggle::set_images VFrame **  data  ) 
 

Definition at line 133 of file bctoggle.C.

void BC_Toggle::set_select_drag int  value  ) 
 

Definition at line 158 of file bctoggle.C.

void BC_Toggle::set_status int  value  ) 
 

Definition at line 237 of file bctoggle.C.

void BC_Toggle::set_underline int  number  ) 
 

Definition at line 152 of file bctoggle.C.

int BC_Toggle::set_value int  value,
int  draw = 1
 

Definition at line 382 of file bctoggle.C.

int BC_Toggle::update int  value,
int  draw = 1
 

Definition at line 414 of file bctoggle.C.


Member Data Documentation

BC_Pixmap* BC_Toggle::bg_image
 

Definition at line 70 of file bctoggle.h.

int BC_Toggle::bottom_justify
 

Definition at line 86 of file bctoggle.h.

char BC_Toggle::caption[BCTEXTLEN]
 

Definition at line 72 of file bctoggle.h.

int BC_Toggle::color
 

Definition at line 88 of file bctoggle.h.

VFrame** BC_Toggle::data
 

Definition at line 71 of file bctoggle.h.

int BC_Toggle::enabled
 

Definition at line 90 of file bctoggle.h.

int BC_Toggle::font
 

Definition at line 87 of file bctoggle.h.

BC_Pixmap* BC_Toggle::images[5]
 

Definition at line 69 of file bctoggle.h.

int BC_Toggle::is_radial
 

Definition at line 92 of file bctoggle.h.

int BC_Toggle::select_drag
 

Definition at line 89 of file bctoggle.h.

int BC_Toggle::status
 

Definition at line 73 of file bctoggle.h.

int BC_Toggle::text_h
 

Definition at line 84 of file bctoggle.h.

int BC_Toggle::text_line
 

Definition at line 85 of file bctoggle.h.

int BC_Toggle::text_text_x
 

Definition at line 80 of file bctoggle.h.

int BC_Toggle::text_w
 

Definition at line 83 of file bctoggle.h.

int BC_Toggle::text_x
 

Definition at line 78 of file bctoggle.h.

int BC_Toggle::text_y
 

Definition at line 81 of file bctoggle.h.

int BC_Toggle::toggle_x
 

Definition at line 75 of file bctoggle.h.

int BC_Toggle::toggle_y
 

Definition at line 76 of file bctoggle.h.

int BC_Toggle::underline
 

Definition at line 91 of file bctoggle.h.

int BC_Toggle::value
 

Reimplemented in BC_CheckBox.

Definition at line 74 of file bctoggle.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:26:38 2006 for Guicast-svn by  doxygen 1.4.4