StringSourceDecorator.h
Go to the documentation of this file.
#pragma once
#include <globjects/base/ChangeListener.h>
#include <globjects/base/ref_ptr.h>
#include <globjects/base/AbstractStringSource.h>
#include <globjects/globjects_api.h>
namespace globjects
{
class GLOBJECTS_API StringSourceDecorator : public globjects::AbstractStringSource, protected globjects::ChangeListener
{
public:
StringSourceDecorator(globjects::AbstractStringSource * source);
virtual void update();
protected:
virtual ~StringSourceDecorator();
virtual void notifyChanged(const Changeable * changeable) override;
protected:
globjects::ref_ptr<globjects::AbstractStringSource> m_internal;
};
} // namespace globjects
globjects::StringSourceDecorator
Definition: StringSourceDecorator.h:15
globjects::ref_ptr< globjects::AbstractStringSource >
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::ChangeListener
Allows listening to any Changeable.
Definition: ChangeListener.h:22
ref_ptr.h
globjects::AbstractStringSource
Superclass for all types of static and dynamic strings, e.g. for the use as Shader code.
Definition: AbstractStringSource.h:25
globjects::StringSourceDecorator::m_internal
globjects::ref_ptr< globjects::AbstractStringSource > m_internal
Definition: StringSourceDecorator.h:27
AbstractStringSource.h
globjects::Changeable
Superclass of all objects that want others to signal that they have changed.
Definition: Changeable.h:22
ChangeListener.h