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.cpp
2020-11-12 11:38:49 +02:00

20 lines
405 B
C++

/* A file to test imorting C modules for handling arrays to Python */
#include "kcardgame.hpp"
#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;
}
};