26class EXPCL_PANDA_PGUI PGWaitBar :
public PGItem {
28 explicit PGWaitBar(
const std::string &name =
"");
32 PGWaitBar(
const PGWaitBar ©);
39 void setup(PN_stdfloat width, PN_stdfloat height, PN_stdfloat range);
55 PN_stdfloat _range, _value;
64 static void init_type() {
67 PGItem::get_class_type());
70 return get_class_type();
72 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data)
This function will be called during the cull traversal to perform any additional operations that shou...
void set_bar_style(const PGFrameStyle &style)
Sets the kind of frame that is drawn on top of the WaitBar to represent the amount completed.
PN_stdfloat get_range() const
Returns the value at which the WaitBar indicates 100%.
PN_stdfloat get_value() const
Returns the current value of the bar.
void set_value(PN_stdfloat value)
Sets the current value of the bar.
PN_stdfloat get_percent() const
Returns the percentage complete.
PGFrameStyle get_bar_style() const
Returns the kind of frame that is drawn on top of the WaitBar to represent the amount completed.
void setup(PN_stdfloat width, PN_stdfloat height, PN_stdfloat range)
Creates a PGWaitBar with the indicated dimensions, with the indicated maximum range.
virtual PandaNode * make_copy() const
Returns a newly-allocated Node that is a shallow copy of this one.
void set_range(PN_stdfloat range)
Sets the value at which the WaitBar indicates 100%.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...