1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
PySolFC/kcardgame/binding-example/kcardgame.hpp
2020-11-12 11:38:49 +02:00

18 lines
322 B
C++

#pragma once
#include <QPixmap>
#include "KCardDeck"
#include "KCardTheme"
class KCardDeck_wrapper
{
public:
KCardDeck * d;
KCardDeck_wrapper()
{
d = new KCardDeck( KCardTheme(), nullptr);
}
QPixmap *get_card_pixmap(int i)
{
auto ret = new QPixmap(d->cardPixmap(i, true));
return ret;
}
};