ES-DE/es-core/src/components/BusyComponent.h

36 lines
704 B
C
Raw Normal View History

//
// BusyComponent.h
//
// Animated busy indicator.
//
#pragma once
#ifndef ES_CORE_COMPONENTS_BUSY_COMPONENT_H
#define ES_CORE_COMPONENTS_BUSY_COMPONENT_H
#include "components/ComponentGrid.h"
#include "components/NinePatchComponent.h"
2017-11-01 22:21:10 +00:00
#include "GuiComponent.h"
class AnimatedImageComponent;
class TextComponent;
class BusyComponent : public GuiComponent
{
public:
BusyComponent(Window* window);
void onSizeChanged() override;
void reset(); // Reset to frame 0.
private:
NinePatchComponent mBackground;
ComponentGrid mGrid;
std::shared_ptr<AnimatedImageComponent> mAnimation;
std::shared_ptr<TextComponent> mText;
};
#endif // ES_CORE_COMPONENTS_BUSY_COMPONENT_H