#include <pgEntry.h>
Inheritance diagram for PGEntry:
Public Member Functions | |
virtual PandaNode * | make_copy () const |
virtual bool | has_cull_callback () const |
virtual bool | cull_callback (CullTraverser *trav, CullTraverserData &data) |
virtual void | press (const MouseWatcherParameter ¶m, bool background) |
virtual void | keystroke (const MouseWatcherParameter ¶m, bool background) |
virtual void | accept (const MouseWatcherParameter ¶m) |
virtual void | overflow (const MouseWatcherParameter ¶m) |
virtual void | type (const MouseWatcherParameter ¶m) |
virtual void | erase (const MouseWatcherParameter ¶m) |
void | setup (float width, int num_lines) |
INLINE void | set_text (const string &text) |
INLINE string | get_text () const |
INLINE void | set_cursor_position (int position) |
INLINE int | get_cursor_position () const |
INLINE void | set_max_chars (int max_chars) |
INLINE int | get_max_chars () const |
INLINE void | set_max_width (float max_width) |
INLINE float | get_max_width () const |
INLINE void | set_num_lines (int num_lines) |
INLINE int | get_num_lines () const |
INLINE void | set_blink_rate (float blink_rate) |
INLINE float | get_blink_rate () const |
INLINE const NodePath & | get_cursor_def () |
INLINE void | clear_cursor_def () |
INLINE void | set_cursor_keys_active (bool flag) |
INLINE bool | get_cursor_keys_active () const |
INLINE void | set_obscure_mode (bool flag) |
INLINE bool | get_obscure_mode () const |
void | set_text_def (int state, TextNode *node) |
TextNode * | get_text_def (int state) const |
virtual void | set_active (bool active) |
virtual void | set_focus (bool focus) |
INLINE string | get_accept_event (const ButtonHandle &button) const |
INLINE string | get_overflow_event () const |
INLINE string | get_type_event () const |
INLINE string | get_erase_event () const |
INLINE void | set_wtext (const wstring &wtext) |
INLINE const wstring & | get_wtext () const |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
INLINE string | get_accept_prefix () |
INLINE string | get_overflow_prefix () |
INLINE string | get_type_prefix () |
INLINE string | get_erase_prefix () |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PUBLISHED | __pad1__: enum State { S_focus = 0 |
PUBLISHED | S_no_focus |
PUBLISHED | S_inactive |
Protected Member Functions | |
PGEntry (const PGEntry ©) | |
Private Types | |
typedef pvector< PT(TextNode) | TextDefs ) |
typedef pvector< WWLine > | WWLines |
Private Member Functions | |
virtual | ~PGEntry () |
const wstring & | get_display_wtext () |
void | slot_text_def (int state) |
void | update_text () |
void | update_cursor () |
void | show_hide_cursor (bool visible) |
void | update_state () |
Private Attributes | |
PUBLISHED | __pad0__: PGEntry(const string &name) |
wstring | _wtext |
wstring | _obscured_wtext |
int | _cursor_position |
bool | _cursor_stale |
bool | _cursor_visible |
int | _max_chars |
float | _max_width |
int | _num_lines |
TextDefs | _text_defs |
NodePath | _text_render_root |
NodePath | _current_text |
TextNode * | _last_text_def |
bool | _text_geom_stale |
WWLines | _ww_lines |
NodePath | _cursor_def |
double | _blink_start |
double | _blink_rate |
bool | _cursor_keys_active |
bool | _obscure_mode |
Static Private Attributes | |
TypeHandle | _type_handle |
|
|
|
|
|
Definition at line 71 of file pgEntry.cxx. |
|
Definition at line 80 of file pgEntry.cxx. References _cursor_stale, _last_text_def, _text_geom_stale, and NULL. Referenced by make_copy(). |
|
Definition at line 466 of file pgEntry.cxx. References get_accept_event(), param, PGItem::play_sound(), set_focus(), and throw_event(). Referenced by press(). |
|
Referenced by setup(). |
|
Reimplemented from PGItem. Definition at line 145 of file pgEntry.cxx. References _text_render_root, PGItem::cull_callback(), data, NodePath::node(), CullTraverser::traverse(), update_cursor(), and update_text(). |
|
Definition at line 511 of file pgEntry.cxx. References get_erase_event(), param, PGItem::play_sound(), and throw_event(). Referenced by press(). |
|
Reimplemented from PGItem. Definition at line 185 of file pgEntry.h. References PGItem::get_class_type(), and PGItem::init_type(). |
|
Referenced by accept(). |
|
|
|
|
|
Reimplemented from PGItem. |
|
Referenced by setup(). |
|
|
|
|
|
Definition at line 686 of file pgEntry.cxx. References _obscured_wtext, and _wtext. Referenced by keystroke(), press(), and update_text(). |
|
Referenced by erase(). |
|
|
|
Referenced by keystroke(), and press(). |
|
|
|
|
|
|
|
Referenced by overflow(). |
|
|
|
|
|
Definition at line 641 of file pgEntry.cxx. References _text_defs, PGItem::get_text_node(), and NULL. Referenced by keystroke(), press(), setup(), update_cursor(), and update_text(). |
|
Reimplemented from PGItem. Definition at line 182 of file pgEntry.h. References PGItem::get_class_type(). |
|
Referenced by type(). |
|
|
|
|
|
Reimplemented from PGItem. Definition at line 121 of file pgEntry.cxx. |
|
Reimplemented from PGItem. Definition at line 177 of file pgEntry.h. References PGItem::get_class_type(), PGItem::init_type(), and register_type(). Referenced by init_libpgui(). |
|
Reimplemented from PGItem. Definition at line 351 of file pgEntry.cxx. References _cursor_position, _cursor_stale, _max_width, _num_lines, _obscured_wtext, _text_geom_stale, _wtext, TextNode::calc_width(), PGItem::get_active(), get_display_wtext(), get_max_chars(), get_text_def(), PGItem::keystroke(), overflow(), p, param, type(), and TextNode::wordwrap_to(). |
|
Reimplemented from PGItem. Definition at line 107 of file pgEntry.cxx. References PGEntry(). |
|
Definition at line 483 of file pgEntry.cxx. References get_overflow_event(), param, PGItem::play_sound(), and throw_event(). Referenced by keystroke(), and press(). |
|
|
Reimplemented from PGItem. Definition at line 660 of file pgEntry.cxx. References PGItem::set_active(), and update_state(). |
|
|
|
|
|
|
|
Reimplemented from PGItem. Definition at line 672 of file pgEntry.cxx. References _blink_start, ClockObject::get_frame_time(), ClockObject::get_global_clock(), PGItem::set_focus(), and update_state(). |
|
Referenced by setup(). |
|
Referenced by setup(). |
|
Referenced by setup(). |
|
|
|
Referenced by setup(). |
|
Definition at line 622 of file pgEntry.cxx. References _text_defs, NULL, and slot_text_def(). |
|
|
|
|
Definition at line 850 of file pgEntry.cxx. References _cursor_def, _cursor_visible, NodePath::hide(), and NodePath::show(). Referenced by update_cursor(). |
|
Definition at line 713 of file pgEntry.cxx. References _text_defs, and NULL. Referenced by set_text_def(). |
|
Definition at line 497 of file pgEntry.cxx. References get_type_event(), param, PGItem::play_sound(), and throw_event(). Referenced by keystroke(), and press(). |
|
Definition at line 800 of file pgEntry.cxx. References _blink_rate, _blink_start, _cursor_def, _cursor_position, _cursor_stale, _last_text_def, _wtext, _ww_lines, TextNode::calc_width(), column, PGItem::get_focus(), ClockObject::get_frame_time(), ClockObject::get_global_clock(), TextNode::get_line_height(), PGItem::get_state(), get_text_def(), NULL, row, NodePath::set_pos(), show_hide_cursor(), update_text(), and width. Referenced by cull_callback(). |
|
Definition at line 868 of file pgEntry.cxx. References PGItem::get_active(), PGItem::get_focus(), S_inactive, S_no_focus, and PGItem::set_state(). Referenced by set_active(), and set_focus(). |
|
Definition at line 726 of file pgEntry.cxx. References _current_text, _cursor_stale, _last_text_def, PGEntry::WWLine::_left, _max_width, _num_lines, PGEntry::WWLine::_str, _text_geom_stale, _text_render_root, _ww_lines, TextNode::A_left, NodePath::attach_new_node(), TextNode::get_align(), get_display_wtext(), TextNode::get_left(), PGItem::get_state(), get_text_def(), NodePath::is_empty(), NULL, p, q, NodePath::remove_node(), TextNode::set_wtext(), and TextNode::wordwrap_to(). Referenced by cull_callback(), and update_cursor(). |
|
Reimplemented from PGItem. |
|
Reimplemented from PGItem. |
|
Definition at line 168 of file pgEntry.h. Referenced by update_cursor(). |
|
Definition at line 167 of file pgEntry.h. Referenced by press(), set_focus(), and update_cursor(). |
|
Definition at line 147 of file pgEntry.h. Referenced by update_text(). |
|
Definition at line 165 of file pgEntry.h. Referenced by show_hide_cursor(), and update_cursor(). |
|
|
|
Definition at line 131 of file pgEntry.h. Referenced by keystroke(), press(), setup(), and update_cursor(). |
|
Definition at line 132 of file pgEntry.h. Referenced by keystroke(), PGEntry(), press(), update_cursor(), and update_text(). |
|
Definition at line 133 of file pgEntry.h. Referenced by show_hide_cursor(). |
|
Definition at line 148 of file pgEntry.h. Referenced by PGEntry(), update_cursor(), and update_text(). |
|
|
|
Definition at line 136 of file pgEntry.h. Referenced by keystroke(), press(), and update_text(). |
|
Definition at line 137 of file pgEntry.h. Referenced by keystroke(), press(), and update_text(). |
|
Definition at line 171 of file pgEntry.h. Referenced by press(). |
|
Definition at line 130 of file pgEntry.h. Referenced by get_display_wtext(), keystroke(), and press(). |
|
Definition at line 140 of file pgEntry.h. Referenced by get_text_def(), set_text_def(), and slot_text_def(). |
|
Definition at line 149 of file pgEntry.h. Referenced by keystroke(), PGEntry(), press(), and update_text(). |
|
Definition at line 143 of file pgEntry.h. Referenced by cull_callback(), and update_text(). |
|
Reimplemented from PGItem. Definition at line 33 of file pgEntry.cxx. |
|
Definition at line 129 of file pgEntry.h. Referenced by get_display_wtext(), keystroke(), press(), and update_cursor(). |
|
Definition at line 160 of file pgEntry.h. Referenced by update_cursor(), and update_text(). |
|
Definition at line 68 of file pgEntry.h. Referenced by setup(), and update_state(). |
|
Definition at line 68 of file pgEntry.h. Referenced by setup(), and update_state(). |