#include <glui.h>
Inherits GLUI_Panel.
Public Member Functions | |
GLUI_Rollout (GLUI_Node *parent, const char *name, int open=true, int type=GLUI_PANEL_EMBOSSED) | |
GLUI_Rollout (void) | |
void | draw (int x, int y) |
void | draw_pressed (void) |
int | mouse_down_handler (int local_x, int local_y) |
int | mouse_up_handler (int local_x, int local_y, bool inside) |
int | mouse_held_down_handler (int local_x, int local_y, bool inside) |
void | open (void) |
void | close (void) |
void | update_size (void) |
Public Attributes | |
bool | currently_inside |
bool | initially_inside |
GLUI_Button | button |
Protected Member Functions | |
void | common_init () |
GLUI_Rollout::GLUI_Rollout | ( | GLUI_Node * | parent, | |
const char * | name, | |||
int | open = true , |
|||
int | type = GLUI_PANEL_EMBOSSED | |||
) |
Create a new rollout. A rollout contains a set of controls, like a panel, but can be collapsed to just the name.
parent | The panel our object is inside; or the main GLUI object. | |
name | String to show at the top of the rollout. | |
open | Optional boolean. If true (the default), the rollout's controls are displayed. If false, the rollout is closed to display only the name. | |
type | Optional style to display the panel with--GLUI_PANEL_EMBOSSED by default. GLUI_PANEL_RAISED causes the panel to appear higher than the surroundings. GLUI_PANEL_NONE causes the panel's outline to be invisible. |
GLUI_Rollout::GLUI_Rollout | ( | void | ) | [inline] |
void GLUI_Rollout::close | ( | void | ) |
void GLUI_Rollout::common_init | ( | void | ) | [inline, protected] |
Reimplemented from GLUI_Panel.
void GLUI_Rollout::draw | ( | int | x, | |
int | y | |||
) | [virtual] |
Reimplemented from GLUI_Panel.
void GLUI_Rollout::draw_pressed | ( | void | ) |
int GLUI_Rollout::mouse_down_handler | ( | int | local_x, | |
int | local_y | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_Rollout::mouse_held_down_handler | ( | int | local_x, | |
int | local_y, | |||
bool | inside | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_Rollout::mouse_up_handler | ( | int | local_x, | |
int | local_y, | |||
bool | inside | |||
) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Rollout::open | ( | void | ) |
void GLUI_Rollout::update_size | ( | void | ) | [virtual] |
Reimplemented from GLUI_Panel.