#include <bclistbox.h>

Public Types | |
| enum | { TOGGLE_UP, TOGGLE_UPHI, TOGGLE_CHECKED, TOGGLE_DOWN, TOGGLE_CHECKEDHI, TOGGLE_DOWN_EXIT } |
Public Member Functions | |
| BC_ListBoxToggle (BC_ListBox *listbox, BC_ListBoxItem *item, int x, int y) | |
| int | cursor_motion_event (int *redraw_toggles) |
| int | cursor_leave_event (int *redraw_toggles) |
| int | button_press_event () |
| int | button_release_event (int *redraw_toggles) |
| void | update (BC_ListBoxItem *item, int x, int y, int flash) |
| void | draw (int flash) |
Data Fields | |
| BC_ListBox * | listbox |
| BC_ListBoxItem * | item |
| int | value |
| int | x |
| int | y |
| int | state |
Definition at line 45 of file bclistbox.h.
| anonymous enum |
Definition at line 66 of file bclistbox.h.
| BC_ListBoxToggle::BC_ListBoxToggle | ( | BC_ListBox * | listbox, | |
| BC_ListBoxItem * | item, | |||
| int | x, | |||
| int | y | |||
| ) |
Definition at line 84 of file bclistbox.C.
References BC_ListBoxItem::get_expand(), state, BC_Toggle::TOGGLE_CHECKED, BC_Toggle::TOGGLE_UP, and value.

| int BC_ListBoxToggle::cursor_motion_event | ( | int * | redraw_toggles | ) |
Definition at line 144 of file bclistbox.C.
References BC_WindowBase::get_cursor_x(), BC_WindowBase::get_cursor_y(), BC_Pixmap::get_h(), BC_Pixmap::get_w(), listbox, state, TOGGLE_CHECKED, TOGGLE_CHECKEDHI, TOGGLE_DOWN, TOGGLE_DOWN_EXIT, BC_ListBox::toggle_images, TOGGLE_UP, TOGGLE_UPHI, value, x, and y.
Referenced by BC_ListBox::cursor_motion_event().

| int BC_ListBoxToggle::cursor_leave_event | ( | int * | redraw_toggles | ) |
Definition at line 204 of file bclistbox.C.
References state, TOGGLE_CHECKED, TOGGLE_UP, and value.
Referenced by BC_ListBox::cursor_leave_event().
| int BC_ListBoxToggle::button_press_event | ( | ) |
Definition at line 212 of file bclistbox.C.
References BC_WindowBase::get_cursor_x(), BC_WindowBase::get_cursor_y(), BC_Pixmap::get_h(), BC_Pixmap::get_w(), BC_ListBox::gui, listbox, state, TOGGLE_DOWN, BC_ListBox::toggle_images, x, and y.
Referenced by BC_ListBox::test_expanders().

| int BC_ListBoxToggle::button_release_event | ( | int * | redraw_toggles | ) |
Definition at line 228 of file bclistbox.C.
References BC_ListBox::expand_item(), item, listbox, state, TOGGLE_CHECKED, TOGGLE_CHECKEDHI, TOGGLE_DOWN, TOGGLE_DOWN_EXIT, TOGGLE_UP, TOGGLE_UPHI, and value.
Referenced by BC_ListBox::button_release_event().

| void BC_ListBoxToggle::update | ( | BC_ListBoxItem * | item, | |
| int | x, | |||
| int | y, | |||
| int | flash | |||
| ) |
Definition at line 100 of file bclistbox.C.
References draw(), BC_ListBoxItem::get_expand(), state, TOGGLE_CHECKED, TOGGLE_CHECKEDHI, TOGGLE_DOWN, TOGGLE_DOWN_EXIT, TOGGLE_UP, TOGGLE_UPHI, and value.
Referenced by BC_ListBox::draw_text_recursive().

| void BC_ListBoxToggle::draw | ( | int | flash | ) |
Definition at line 255 of file bclistbox.C.
References BC_WindowBase::draw_pixmap(), BC_WindowBase::flash(), BC_WindowBase::flush(), BC_Pixmap::get_h(), BC_Pixmap::get_w(), BC_ListBox::gui, listbox, state, TOGGLE_CHECKED, TOGGLE_CHECKEDHI, TOGGLE_DOWN, TOGGLE_DOWN_EXIT, BC_ListBox::toggle_images, TOGGLE_UP, TOGGLE_UPHI, value, x, and y.
Referenced by BC_ListBox::draw_text_recursive(), BC_ListBox::draw_toggles(), and update().

Definition at line 60 of file bclistbox.h.
Referenced by button_press_event(), button_release_event(), cursor_motion_event(), and draw().
Definition at line 62 of file bclistbox.h.
Referenced by BC_ListBoxToggle(), button_release_event(), cursor_leave_event(), cursor_motion_event(), draw(), and update().
Definition at line 63 of file bclistbox.h.
Referenced by button_press_event(), cursor_motion_event(), and draw().
Definition at line 64 of file bclistbox.h.
Referenced by button_press_event(), cursor_motion_event(), and draw().
Definition at line 65 of file bclistbox.h.
Referenced by BC_ListBoxToggle(), button_press_event(), button_release_event(), cursor_leave_event(), cursor_motion_event(), draw(), and update().
1.5.5