all repos — mgba @ 524e94edbf4360c5a12f8b189fa60fd7f6c80cdc

mGBA Game Boy Advance Emulator

src/platform/qt/AssetTile.h (view raw)

 1/* Copyright (c) 2013-2016 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef QGBA_ASSET_TILE
 7#define QGBA_ASSET_TILE
 8
 9#include "GameController.h"
10
11#include "ui_AssetTile.h"
12
13extern "C" {
14#include "core/tile-cache.h"
15}
16
17namespace QGBA {
18
19class AssetTile : public QGroupBox {
20Q_OBJECT
21
22public:
23	AssetTile(QWidget* parent = nullptr);
24	void setController(GameController*);
25
26public slots:
27	void setPalette(int);
28	void setPaletteSet(int, int boundary, int max);
29	void selectIndex(int);
30
31private:
32	Ui::AssetTile m_ui;
33
34	std::shared_ptr<mTileCache> m_tileCache;
35	int m_paletteId;
36	int m_paletteSet;
37	int m_index;
38
39	int m_addressWidth;
40	int m_addressBase;
41	int m_boundary;
42};
43
44}
45
46#endif