Panda3D
Protected Member Functions | Friends

PGItemNotify Class Reference

Objects that inherit from this class can receive specialized messages when PGItems change in certain ways. More...

#include "pgItemNotify.h"

Inheritance diagram for PGItemNotify:
PGButtonNotify PGSliderBarNotify PGSliderBar PGScrollFrame

List of all members.

Protected Member Functions

void add_item (PGItem *item)
 Called by PGItem when a new item is set up to notify this object.
virtual void item_candidate (PGItem *item, const MouseWatcherParameter &param)
 Called whenever the "candidate" event is triggered on a watched PGItem.
virtual void item_draw_mask_changed (PGItem *item)
 Called whenever a watched PGItem's draw_mask has been changed.
virtual void item_enter (PGItem *item, const MouseWatcherParameter &param)
 Called whenever the "enter" event is triggered on a watched PGItem.
virtual void item_exit (PGItem *item, const MouseWatcherParameter &param)
 Called whenever the "exit" event is triggered on a watched PGItem.
virtual void item_focus_in (PGItem *item)
 Called whenever the "focus_in" event is triggered on a watched PGItem.
virtual void item_focus_out (PGItem *item)
 Called whenever the "focus_out" event is triggered on a watched PGItem.
virtual void item_frame_changed (PGItem *item)
 Called whenever a watched PGItem's frame has been changed.
virtual void item_keystroke (PGItem *item, const MouseWatcherParameter &param)
 Called whenever the "keystroke" event is triggered on a watched PGItem.
virtual void item_move (PGItem *item, const MouseWatcherParameter &param)
 Called whenever the "move" event is triggered on a watched PGItem.
virtual void item_press (PGItem *item, const MouseWatcherParameter &param)
 Called whenever the "press" event is triggered on a watched PGItem.
virtual void item_release (PGItem *item, const MouseWatcherParameter &param)
 Called whenever the "release" event is triggered on a watched PGItem.
virtual void item_transform_changed (PGItem *item)
 Called whenever a watched PGItem's local transform has been changed.
virtual void item_within (PGItem *item, const MouseWatcherParameter &param)
 Called whenever the "within" event is triggered on a watched PGItem.
virtual void item_without (PGItem *item, const MouseWatcherParameter &param)
 Called whenever the "without" event is triggered on a watched PGItem.
void remove_item (PGItem *item)
 Called by PGItem when an item is no longer set up to notify this object.

Friends

class PGItem

Detailed Description

Objects that inherit from this class can receive specialized messages when PGItems change in certain ways.

Definition at line 30 of file pgItemNotify.h.


Member Function Documentation

void PGItemNotify::add_item ( PGItem item) [protected]

Called by PGItem when a new item is set up to notify this object.

Definition at line 181 of file pgItemNotify.cxx.

Referenced by PGItem::set_notify().

void PGItemNotify::item_candidate ( PGItem item,
const MouseWatcherParameter param 
) [protected, virtual]

Called whenever the "candidate" event is triggered on a watched PGItem.

See PGItem::candidate().

Definition at line 161 of file pgItemNotify.cxx.

Referenced by PGItem::candidate().

void PGItemNotify::item_draw_mask_changed ( PGItem item) [protected, virtual]

Called whenever a watched PGItem's draw_mask has been changed.

Reimplemented in PGScrollFrame, and PGSliderBar.

Definition at line 61 of file pgItemNotify.cxx.

Referenced by PGItem::draw_mask_changed().

void PGItemNotify::item_enter ( PGItem item,
const MouseWatcherParameter param 
) [protected, virtual]

Called whenever the "enter" event is triggered on a watched PGItem.

See PGItem::enter_region().

Definition at line 71 of file pgItemNotify.cxx.

Referenced by PGItem::enter_region().

void PGItemNotify::item_exit ( PGItem item,
const MouseWatcherParameter param 
) [protected, virtual]

Called whenever the "exit" event is triggered on a watched PGItem.

See PGItem::exit_region().

Definition at line 81 of file pgItemNotify.cxx.

Referenced by PGItem::exit_region().

void PGItemNotify::item_focus_in ( PGItem item) [protected, virtual]

Called whenever the "focus_in" event is triggered on a watched PGItem.

See PGItem::focus_in().

Definition at line 111 of file pgItemNotify.cxx.

Referenced by PGItem::focus_in().

void PGItemNotify::item_focus_out ( PGItem item) [protected, virtual]

Called whenever the "focus_out" event is triggered on a watched PGItem.

See PGItem::focus_out().

Definition at line 121 of file pgItemNotify.cxx.

Referenced by PGItem::focus_out().

void PGItemNotify::item_frame_changed ( PGItem item) [protected, virtual]

Called whenever a watched PGItem's frame has been changed.

Reimplemented in PGScrollFrame, and PGSliderBar.

Definition at line 51 of file pgItemNotify.cxx.

Referenced by PGItem::frame_changed().

void PGItemNotify::item_keystroke ( PGItem item,
const MouseWatcherParameter param 
) [protected, virtual]

Called whenever the "keystroke" event is triggered on a watched PGItem.

See PGItem::keystroke().

Definition at line 151 of file pgItemNotify.cxx.

Referenced by PGItem::keystroke().

void PGItemNotify::item_move ( PGItem item,
const MouseWatcherParameter param 
) [protected, virtual]

Called whenever the "move" event is triggered on a watched PGItem.

See PGItem::move().

Reimplemented in PGSliderBar.

Definition at line 171 of file pgItemNotify.cxx.

Referenced by PGItem::move().

void PGItemNotify::item_press ( PGItem item,
const MouseWatcherParameter param 
) [protected, virtual]

Called whenever the "press" event is triggered on a watched PGItem.

See PGItem::press().

Reimplemented in PGSliderBar.

Definition at line 131 of file pgItemNotify.cxx.

Referenced by PGItem::press().

void PGItemNotify::item_release ( PGItem item,
const MouseWatcherParameter param 
) [protected, virtual]

Called whenever the "release" event is triggered on a watched PGItem.

See PGItem::release().

Reimplemented in PGSliderBar.

Definition at line 141 of file pgItemNotify.cxx.

Referenced by PGItem::release().

void PGItemNotify::item_transform_changed ( PGItem item) [protected, virtual]

Called whenever a watched PGItem's local transform has been changed.

Reimplemented in PGScrollFrame, and PGSliderBar.

Definition at line 41 of file pgItemNotify.cxx.

Referenced by PGItem::transform_changed().

void PGItemNotify::item_within ( PGItem item,
const MouseWatcherParameter param 
) [protected, virtual]

Called whenever the "within" event is triggered on a watched PGItem.

See PGItem::within_region().

Definition at line 91 of file pgItemNotify.cxx.

Referenced by PGItem::within_region().

void PGItemNotify::item_without ( PGItem item,
const MouseWatcherParameter param 
) [protected, virtual]

Called whenever the "without" event is triggered on a watched PGItem.

See PGItem::without_region().

Definition at line 101 of file pgItemNotify.cxx.

Referenced by PGItem::without_region().

void PGItemNotify::remove_item ( PGItem item) [protected]

Called by PGItem when an item is no longer set up to notify this object.

Definition at line 193 of file pgItemNotify.cxx.

Referenced by PGItem::set_notify().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations