|
- /* Solmyr - H3M manager
- * Copyright (C) 2009 Xavier Gendre
- *
- * This file is part of Solmyr.
- *
- * Solmyr is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Solmyr is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Solmyr. If not, see <http://www.gnu.org/licenses/>.
- */
-
- #ifndef H_XG_PIXMANAGER_1408090258
- #define H_XG_PIXMANAGER_1408090258
-
- #include <gdkmm/pixbuf.h>
-
- #include <glibmm/refptr.h>
-
- namespace Solmyr
- {
-
- class PixManager
- {
- public:
- PixManager();
- virtual ~PixManager() {}
-
- // Accessors
- Glib::RefPtr<Gdk::Pixbuf> version_pix(guint32);
- Glib::RefPtr<Gdk::Pixbuf> loss_pix(guint8);
- Glib::RefPtr<Gdk::Pixbuf> victory_pix(guint8);
-
- protected:
- // Unknown pixmap
- Glib::RefPtr<Gdk::Pixbuf> m_refpix_unknown;
- // Version pixmaps
- Glib::RefPtr<Gdk::Pixbuf> m_refpix_roe;
- Glib::RefPtr<Gdk::Pixbuf> m_refpix_ab;
- Glib::RefPtr<Gdk::Pixbuf> m_refpix_sod;
- Glib::RefPtr<Gdk::Pixbuf> m_refpix_wog;
- // Loss pixmaps
- Glib::RefPtr<Gdk::Pixbuf> m_pixloss[0x100];
- // Victory pixmaps
- Glib::RefPtr<Gdk::Pixbuf> m_pixvictory[0x100];
- };
-
- } // namespace Solmyr
-
- #endif // H_XG_PIXMANAGER_1408090258
|