mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-16 09:20:11 -04:00
whee!
This commit is contained in:
parent
235eea1bfa
commit
340d07e893
13
panda/src/audio/audio_gui_functor.cxx
Normal file
13
panda/src/audio/audio_gui_functor.cxx
Normal file
@ -0,0 +1,13 @@
|
||||
// Filename: audio_gui_functor.cxx
|
||||
// Created by: cary (19Apr01)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "audio_gui_functor.h"
|
||||
|
||||
AudioGuiFunctor::AudioGuiFunctor(AudioSound* sound,
|
||||
GuiBehavior::BehaviorFunctor* prev)
|
||||
: _prev(prev), _sound(sound) {}
|
||||
|
||||
AudioGuiFunctor::~AudioGuiFunctor(void) {
|
||||
}
|
26
panda/src/audio/audio_gui_functor.h
Normal file
26
panda/src/audio/audio_gui_functor.h
Normal file
@ -0,0 +1,26 @@
|
||||
// Filename: audio_gui_functor.h
|
||||
// Created by: cary (19Apr01)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __AUDIO_GUI_FUNCTOR_H__
|
||||
#define __AUDIO_GUI_FUNCTOR_H__
|
||||
|
||||
#include <guiBehavior.h>
|
||||
#include "audio_sound.h"
|
||||
|
||||
class EXPCL_PANDA AudioGuiFunctor : public GuiBehavior::BehaviorFunctor {
|
||||
protected:
|
||||
GuiBehavior::BehaviorFunctor* _prev;
|
||||
PT(AudioSound) _sound;
|
||||
public:
|
||||
virtual void doit(GuiBehavior*);
|
||||
PUBLISHED:
|
||||
AudioGuiFunctor(AudioSound*, GuiBehavior::BehaviorFunctor* =
|
||||
(GuiBehavior::BehaviorFunctor*)0L);
|
||||
virtual ~AudioGuiFunctor(void);
|
||||
INLINE AudioSound* get_sound(void) const { return _sound; }
|
||||
INLINE GuiBehavior::BehaviorFunctor* get_prev(void) const { return _prev; }
|
||||
};
|
||||
|
||||
#endif /* __AUDIO_GUI_FUNCTOR_H__ */
|
Loading…
x
Reference in New Issue
Block a user