mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
20 lines
405 B
C++
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;
|
|
}
|
|
};
|