mirror of
https://github.com/coderkei/akmenu-next.git
synced 2025-06-19 01:15:32 -04:00
46 lines
726 B
C++
46 lines
726 B
C++
/*
|
|
diskicon.h
|
|
Copyright (C) 2007 Acekard, www.acekard.com
|
|
Copyright (C) 2007-2009 somebody
|
|
Copyright (C) 2009 yellow wood goblin
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <nds.h>
|
|
#include "singleton.h"
|
|
#include "sprite.h"
|
|
#include "window.h"
|
|
|
|
class cDiskIcon : public akui::cWindow {
|
|
public:
|
|
cDiskIcon();
|
|
|
|
~cDiskIcon() {}
|
|
|
|
public:
|
|
void draw();
|
|
|
|
void turnOn();
|
|
|
|
void turnOff();
|
|
|
|
akui::cWindow& loadAppearance(const std::string& aFileName);
|
|
|
|
void blink(void);
|
|
|
|
protected:
|
|
bool _draw;
|
|
|
|
float _lightTime;
|
|
|
|
cSprite _icon;
|
|
};
|
|
|
|
typedef t_singleton<cDiskIcon> diskIcon_s;
|
|
inline cDiskIcon& diskIcon() {
|
|
return diskIcon_s::instance();
|
|
}
|