#include <pgItem.h>
Inheritance diagram for PGItem:
Public Member Functions | |
void | activate_region (const LMatrix4f &transform, int sort) |
INLINE PGMouseWatcherRegion * | get_region () const |
virtual void | enter (const MouseWatcherParameter ¶m) |
virtual void | exit (const MouseWatcherParameter ¶m) |
virtual void | within (const MouseWatcherParameter ¶m) |
virtual void | without (const MouseWatcherParameter ¶m) |
virtual void | focus_in () |
virtual void | focus_out () |
virtual void | press (const MouseWatcherParameter ¶m, bool background) |
virtual void | release (const MouseWatcherParameter ¶m, bool background) |
virtual void | keystroke (const MouseWatcherParameter ¶m, bool background) |
INLINE void | set_frame (const LVecBase4f &frame) |
INLINE const LVecBase4f & | get_frame () const |
INLINE bool | has_frame () const |
INLINE void | clear_frame () |
INLINE void | set_state (int state) |
INLINE int | get_state () const |
virtual void | set_active (bool active) |
INLINE bool | get_active () const |
virtual void | set_focus (bool focus) |
INLINE bool | get_focus () const |
void | set_background_focus (bool focus) |
INLINE bool | get_background_focus () const |
INLINE void | set_suppress_flags (int suppress_flags) |
INLINE int | get_suppress_flags () const |
int | get_num_state_defs () const |
void | clear_state_def (int state) |
bool | has_state_def (int state) const |
NodePath & | get_state_def (int state) |
NodePath | instance_to_state_def (int state, const NodePath &path) |
PGFrameStyle | get_frame_style (int state) |
void | set_frame_style (int state, const PGFrameStyle &style) |
INLINE const string & | get_id () const |
INLINE void | set_id (const string &id) |
INLINE string | get_enter_event () const |
INLINE string | get_exit_event () const |
INLINE string | get_within_event () const |
INLINE string | get_without_event () const |
INLINE string | get_focus_in_event () const |
INLINE string | get_focus_out_event () const |
INLINE string | get_press_event (const ButtonHandle &button) const |
INLINE string | get_release_event (const ButtonHandle &button) const |
INLINE string | get_keystroke_event () const |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
void | background_press (const MouseWatcherParameter ¶m) |
void | background_release (const MouseWatcherParameter ¶m) |
void | background_keystroke (const MouseWatcherParameter ¶m) |
INLINE string | get_enter_prefix () |
INLINE string | get_exit_prefix () |
INLINE string | get_within_prefix () |
INLINE string | get_without_prefix () |
INLINE string | get_focus_in_prefix () |
INLINE string | get_focus_out_prefix () |
INLINE string | get_press_prefix () |
INLINE string | get_release_prefix () |
INLINE string | get_keystroke_prefix () |
TextNode * | get_text_node () |
INLINE void | set_text_node (TextNode *node) |
INLINE PGItem * | get_focus_item () |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PUBLISHED | __pad1__: INLINE void set_frame(float left |
PUBLISHED float | right |
PUBLISHED float float | bottom |
PUBLISHED float float float | top |
Protected Member Functions | |
PGItem (const PGItem ©) | |
virtual PandaNode * | make_copy () const |
virtual void | xform (const LMatrix4f &mat) |
virtual bool | has_cull_callback () const |
virtual bool | cull_callback (CullTraverser *trav, CullTraverserData &data) |
virtual BoundingVolume * | recompute_internal_bound () |
void | play_sound (const string &event) |
Private Types | |
typedef pvector< StateDef > | StateDefs |
typedef pset< PGItem * > | BackgroundFocus |
enum | Flags { F_active = 0x01, F_focus = 0x02, F_background_focus = 0x04 } |
Private Member Functions | |
virtual | ~PGItem () |
void | slot_state_def (int state) |
void | update_frame (int state) |
void | mark_frames_stale () |
PT (PGMouseWatcherRegion) _region | |
Static Private Member Functions | |
PT (TextNode) _text_node | |
Private Attributes | |
PUBLISHED | __pad0__: PGItem(const string &name) |
bool | _has_frame |
LVecBase4f | _frame |
int | _state |
int | _flags |
StateDefs | _state_defs |
Static Private Attributes | |
PGItem * | _focus_item |
BackgroundFocus | _background_focus |
TypeHandle | _type_handle |
|
|
|
|
|
Reimplemented from BoundedObject. |
|
Definition at line 65 of file pgItem.cxx. References _focus_item, NULL, and set_background_focus(). |
|
Definition at line 81 of file pgItem.cxx. Referenced by make_copy(). |
|
Definition at line 282 of file pgItem.cxx. References _frame, and transform. Referenced by cull_callback(). |
|
Definition at line 486 of file pgItem.cxx. References _background_focus, get_focus(), keystroke(), and param. Referenced by PGMouseWatcherBackground::keystroke(). |
|
Definition at line 452 of file pgItem.cxx. References _background_focus, get_focus(), param, and press(). Referenced by PGMouseWatcherBackground::press(). |
|
Definition at line 469 of file pgItem.cxx. References _background_focus, get_focus(), param, and release(). Referenced by PGMouseWatcherBackground::release(). |
|
|
|
Definition at line 632 of file pgItem.cxx. References _state_defs, BoundedObject::mark_bound_stale(), and PandaNode::NodePath. Referenced by PGButton::setup(). |
|
Reimplemented from PandaNode. Reimplemented in PGEntry, and PGWaitBar. Definition at line 173 of file pgItem.cxx. References PGCullTraverser::_sort_index, PGCullTraverser::_top, activate_region(), PGTop::add_region(), CullBinManager::BT_fixed, CullBinManager::BT_unsorted, data, DCAST_INTO_R, get_active(), CullBinManager::get_bin_sort(), CullBinManager::get_bin_type(), PGCullTraverser::get_class_type(), CullBinManager::get_global_ptr(), get_region(), get_state(), get_state_def(), has_frame(), has_state_def(), TypedObject::is_exact_type(), root, transform, and CullTraverser::traverse(). Referenced by PGWaitBar::cull_callback(), and PGEntry::cull_callback(). |
|
Reimplemented in PGButton. Definition at line 312 of file pgItem.cxx. References get_enter_event(), param, play_sound(), and throw_event(). Referenced by PGMouseWatcherRegion::enter(), and PGButton::enter(). |
|
Reimplemented in PGButton. Definition at line 329 of file pgItem.cxx. References get_exit_event(), param, play_sound(), and throw_event(). Referenced by PGMouseWatcherRegion::exit(), and PGButton::exit(). |
|
Definition at line 376 of file pgItem.cxx. References get_focus_in_event(), play_sound(), and throw_event(). Referenced by set_focus(). |
|
Definition at line 389 of file pgItem.cxx. References get_focus_out_event(), play_sound(), and throw_event(). Referenced by set_focus(). |
|
Reimplemented from PandaNode. Reimplemented in PGButton, PGEntry, and PGWaitBar. Definition at line 205 of file pgItem.h. References PandaNode::get_class_type(), and PandaNode::init_type(). |
|
|
Referenced by PGEntry::press(), and set_background_focus(). |
|
Reimplemented from PandaNode. Reimplemented in PGButton, PGEntry, and PGWaitBar. Definition at line 194 of file pgItem.h. Referenced by PGWaitBar::force_init_type(), PGEntry::force_init_type(), PGButton::force_init_type(), PGWaitBar::get_type(), PGEntry::get_type(), PGButton::get_type(), PGWaitBar::init_type(), PGEntry::init_type(), and PGButton::init_type(). |
|
Referenced by enter(). |
|
|
|
Referenced by exit(). |
|
|
|
Referenced by background_keystroke(), background_press(), background_release(), PGEntry::press(), set_active(), set_focus(), PGEntry::update_cursor(), and PGEntry::update_state(). |
|
Referenced by focus_in(). |
|
|
|
|
|
Referenced by focus_out(). |
|
|
|
Referenced by PGWaitBar::update(). |
|
Definition at line 695 of file pgItem.cxx. References _state_defs. Referenced by PGWaitBar::update(). |
|
|
|
Referenced by keystroke(). |
|
|
|
Definition at line 605 of file pgItem.cxx. References _state_defs. |
|
Referenced by press(). |
|
|
|
Referenced by cull_callback(). |
|
Referenced by release(). |
|
|
|
Reimplemented from PandaNode. Referenced by cull_callback(), PGWaitBar::update(), PGEntry::update_cursor(), and PGEntry::update_text(). |
|
Definition at line 653 of file pgItem.cxx. References _state_defs, format_string(), PandaNode::NodePath, slot_state_def(), and update_frame(). Referenced by cull_callback(), instance_to_state_def(), recompute_internal_bound(), set_frame_style(), PGButton::setup(), PGWaitBar::update(), and update_frame(). |
|
|
|
Definition at line 779 of file pgItem.cxx. References TextNode::A_left, and NULL. Referenced by PGEntry::get_text_def(), and PGButton::setup(). |
|
Reimplemented from PandaNode. Reimplemented in PGButton, PGEntry, and PGWaitBar. Definition at line 202 of file pgItem.h. References PandaNode::get_class_type(). |
|
Referenced by within(). |
|
|
|
Referenced by without(). |
|
|
|
Reimplemented from PandaNode. Reimplemented in PGEntry, and PGWaitBar. Definition at line 149 of file pgItem.cxx. |
|
Referenced by cull_callback(), and update_frame(). |
|
Definition at line 617 of file pgItem.cxx. References _state_defs. Referenced by cull_callback(). |
|
Reimplemented from PandaNode. Reimplemented in PGButton, PGEntry, and PGWaitBar. Definition at line 197 of file pgItem.h. References PandaNode::get_class_type(), PandaNode::init_type(), and register_type(). Referenced by PGWaitBar::force_init_type(), PGEntry::force_init_type(), PGButton::force_init_type(), init_libpgui(), PGWaitBar::init_type(), PGEntry::init_type(), and PGButton::init_type(). |
|
Definition at line 677 of file pgItem.cxx. References get_state_def(), NodePath::instance_to(), NodePath::is_empty(), BoundedObject::mark_bound_stale(), and PandaNode::NodePath. Referenced by PGButton::setup(). |
|
Reimplemented in PGEntry. Definition at line 436 of file pgItem.cxx. References get_keystroke_event(), param, play_sound(), and throw_event(). Referenced by background_keystroke(), PGMouseWatcherRegion::keystroke(), and PGEntry::keystroke(). |
|
Reimplemented from PandaNode. Reimplemented in PGButton, PGEntry, and PGWaitBar. Definition at line 100 of file pgItem.cxx. References PGItem(). |
|
Definition at line 857 of file pgItem.cxx. References _state_defs, and BoundedObject::mark_bound_stale(). |
|
Definition at line 798 of file pgItem.cxx. Referenced by PGEntry::accept(), PGButton::click(), enter(), PGEntry::erase(), exit(), focus_in(), focus_out(), keystroke(), PGEntry::overflow(), press(), release(), PGEntry::type(), within(), and without(). |
|
Reimplemented in PGButton, and PGEntry. Definition at line 403 of file pgItem.cxx. References get_press_event(), param, play_sound(), and throw_event(). Referenced by background_press(), PGMouseWatcherRegion::press(), PGEntry::press(), and PGButton::press(). |
|
|
|
Referenced by PGButton::setup(). |
|
Reimplemented from PandaNode. Definition at line 249 of file pgItem.cxx. References _state_defs, BoundingVolume::around(), get_state_def(), NULL, PandaNode::recompute_internal_bound(), and root. |
|
Reimplemented in PGButton. Definition at line 420 of file pgItem.cxx. References get_release_event(), param, play_sound(), and throw_event(). Referenced by background_release(), PGMouseWatcherRegion::release(), and PGButton::release(). |
|
Reimplemented in PGButton, and PGEntry. Definition at line 506 of file pgItem.cxx. References _flags, F_active, get_focus(), and set_focus(). Referenced by PGEntry::set_active(), and PGButton::set_active(). |
|
Definition at line 576 of file pgItem.cxx. References _background_focus, _flags, F_background_focus, and get_background_focus(). Referenced by ~PGItem(). |
|
Reimplemented in PGEntry. Definition at line 532 of file pgItem.cxx. References _flags, _focus_item, F_focus, focus_in(), focus_out(), get_active(), get_focus(), and NULL. Referenced by set_active(), and PGEntry::set_focus(). |
|
Referenced by PGEntry::setup(), and PGButton::setup(). |
|
Definition at line 709 of file pgItem.cxx. References _state_defs, get_state_def(), BoundedObject::mark_bound_stale(), and root. Referenced by PGEntry::setup(), and PGButton::setup(). |
|
|
|
Referenced by PGButton::enter(), PGButton::exit(), PGButton::press(), PGButton::release(), PGButton::set_active(), and PGEntry::update_state(). |
|
|
|
|
|
Definition at line 815 of file pgItem.cxx. References PGItem::StateDef::_frame_stale, and _state_defs. Referenced by get_state_def(). |
|
Definition at line 830 of file pgItem.cxx. References _frame, _state_defs, get_state_def(), has_frame(), and root. Referenced by get_state_def(). |
|
Definition at line 347 of file pgItem.cxx. References get_within_event(), param, play_sound(), and throw_event(). Referenced by PGMouseWatcherRegion::within(). |
|
Definition at line 362 of file pgItem.cxx. References get_without_event(), param, play_sound(), and throw_event(). Referenced by PGMouseWatcherRegion::without(). |
|
Reimplemented from PandaNode. Definition at line 112 of file pgItem.cxx. References _frame, _state_defs, SceneGraphReducer::apply_attribs(), BoundedObject::mark_bound_stale(), and root. |
|
Reimplemented from PandaNode. |
|
Reimplemented from PandaNode. |
|
Definition at line 41 of file pgItem.cxx. Referenced by background_keystroke(), background_press(), background_release(), and set_background_focus(). |
|
Definition at line 168 of file pgItem.h. Referenced by set_active(), set_background_focus(), and set_focus(). |
|
Definition at line 188 of file pgItem.h. Referenced by set_focus(), and ~PGItem(). |
|
Definition at line 161 of file pgItem.h. Referenced by activate_region(), update_frame(), and xform(). |
|
|
|
|
|
Definition at line 180 of file pgItem.h. Referenced by clear_state_def(), get_frame_style(), get_num_state_defs(), get_state_def(), has_state_def(), mark_frames_stale(), recompute_internal_bound(), set_frame_style(), slot_state_def(), update_frame(), and xform(). |
|
Reimplemented from PandaNode. Reimplemented in PGButton, PGEntry, and PGWaitBar. Definition at line 38 of file pgItem.cxx. |
|
|
|
|
|
|