├── .gitattributes ├── .gitignore ├── LICENSE ├── QSFML ├── Doxyfile ├── include │ ├── Image.hpp │ ├── QSFMLCanvas.hpp │ ├── keyconverter.hpp │ ├── qresourcestream.hpp │ ├── qvector2.hpp │ └── string.hpp └── src │ ├── Image.cpp │ ├── QSFML.pro │ ├── QSFMLCanvas.cpp │ ├── QSFMLCanvasEventHandler.cpp │ ├── keyconverter.cpp │ ├── qresourcestream.cpp │ └── string.cpp ├── README.md ├── docs ├── Image_8hpp.html ├── Image_8hpp__incl.map ├── Image_8hpp__incl.md5 ├── Image_8hpp__incl.png ├── Image_8hpp_source.html ├── QSFMLCanvasEventHandler_8cpp.html ├── QSFMLCanvasEventHandler_8cpp__incl.map ├── QSFMLCanvasEventHandler_8cpp__incl.md5 ├── QSFMLCanvasEventHandler_8cpp__incl.png ├── QSFMLCanvas_8cpp.html ├── QSFMLCanvas_8cpp__incl.map ├── QSFMLCanvas_8cpp__incl.md5 ├── QSFMLCanvas_8cpp__incl.png ├── QSFMLCanvas_8hpp.html ├── QSFMLCanvas_8hpp__dep__incl.map ├── QSFMLCanvas_8hpp__dep__incl.md5 ├── QSFMLCanvas_8hpp__dep__incl.png ├── QSFMLCanvas_8hpp__incl.map ├── QSFMLCanvas_8hpp__incl.md5 ├── QSFMLCanvas_8hpp__incl.png ├── QSFMLCanvas_8hpp_source.html ├── annotated.html ├── arrowdown.png ├── arrowright.png ├── bc_s.png ├── bdwn.png ├── classes.html ├── classqsf_1_1Image-members.html ├── classqsf_1_1Image.html ├── classqsf_1_1Image__inherit__graph.map ├── classqsf_1_1Image__inherit__graph.md5 ├── classqsf_1_1Image__inherit__graph.png ├── classqsf_1_1QResourceStream-members.html ├── classqsf_1_1QResourceStream.html ├── classqsf_1_1QResourceStream__inherit__graph.map ├── classqsf_1_1QResourceStream__inherit__graph.md5 ├── classqsf_1_1QResourceStream__inherit__graph.png ├── classqsf_1_1QSFMLWidget-members.html ├── classqsf_1_1QSFMLWidget.html ├── classqsf_1_1QSFMLWidget__inherit__graph.map ├── classqsf_1_1QSFMLWidget__inherit__graph.md5 ├── classqsf_1_1QSFMLWidget__inherit__graph.png ├── classqsf_1_1QVector2-members.html ├── classqsf_1_1QVector2.html ├── classqsf_1_1QVector2__inherit__graph.map ├── classqsf_1_1QVector2__inherit__graph.md5 ├── classqsf_1_1QVector2__inherit__graph.png ├── classqsf_1_1String-members.html ├── classqsf_1_1String.html ├── classqsf_1_1String__inherit__graph.map ├── classqsf_1_1String__inherit__graph.md5 ├── classqsf_1_1String__inherit__graph.png ├── closed.png ├── deprecated.html ├── doc.png ├── doxygen.css ├── doxygen.png ├── dynsections.js ├── files.html ├── folderclosed.png ├── folderopen.png ├── functions.html ├── functions_func.html ├── functions_rela.html ├── functions_vars.html ├── globals.html ├── globals_defs.html ├── graph_legend.html ├── graph_legend.md5 ├── graph_legend.png ├── hierarchy.html ├── index.html ├── inherit_graph_0.map ├── inherit_graph_0.md5 ├── inherit_graph_0.png ├── inherit_graph_1.map ├── inherit_graph_1.md5 ├── inherit_graph_1.png ├── inherit_graph_2.map ├── inherit_graph_2.md5 ├── inherit_graph_2.png ├── inherit_graph_3.map ├── inherit_graph_3.md5 ├── inherit_graph_3.png ├── inherit_graph_4.map ├── inherit_graph_4.md5 ├── inherit_graph_4.png ├── inherits.html ├── jquery.js ├── keyconverter_8cpp.html ├── keyconverter_8cpp__incl.map ├── keyconverter_8cpp__incl.md5 ├── keyconverter_8cpp__incl.png ├── keyconverter_8hpp.html ├── keyconverter_8hpp__dep__incl.map ├── keyconverter_8hpp__dep__incl.md5 ├── keyconverter_8hpp__dep__incl.png ├── keyconverter_8hpp__incl.map ├── keyconverter_8hpp__incl.md5 ├── keyconverter_8hpp__incl.png ├── keyconverter_8hpp_source.html ├── namespacemembers.html ├── namespacemembers_func.html ├── namespacemembers_type.html ├── namespaceqsf.html ├── namespaces.html ├── nav_f.png ├── nav_g.png ├── nav_h.png ├── open.png ├── pages.html ├── qresourcestream_8cpp.html ├── qresourcestream_8cpp__incl.map ├── qresourcestream_8cpp__incl.md5 ├── qresourcestream_8cpp__incl.png ├── qresourcestream_8hpp.html ├── qresourcestream_8hpp__dep__incl.map ├── qresourcestream_8hpp__dep__incl.md5 ├── qresourcestream_8hpp__dep__incl.png ├── qresourcestream_8hpp__incl.map ├── qresourcestream_8hpp__incl.md5 ├── qresourcestream_8hpp__incl.png ├── qresourcestream_8hpp_source.html ├── qvector2_8hpp.html ├── qvector2_8hpp__incl.map ├── qvector2_8hpp__incl.md5 ├── qvector2_8hpp__incl.png ├── qvector2_8hpp_source.html ├── search │ ├── all_0.html │ ├── all_0.js │ ├── all_1.html │ ├── all_1.js │ ├── all_2.html │ ├── all_2.js │ ├── all_3.html │ ├── all_3.js │ ├── all_4.html │ ├── all_4.js │ ├── all_5.html │ ├── all_5.js │ ├── all_6.html │ ├── all_6.js │ ├── all_7.html │ ├── all_7.js │ ├── all_8.html │ ├── all_8.js │ ├── all_9.html │ ├── all_9.js │ ├── all_a.html │ ├── all_a.js │ ├── all_b.html │ ├── all_b.js │ ├── all_c.html │ ├── all_c.js │ ├── all_d.html │ ├── all_d.js │ ├── classes_0.html │ ├── classes_0.js │ ├── classes_1.html │ ├── classes_1.js │ ├── classes_2.html │ ├── classes_2.js │ ├── close.png │ ├── defines_0.html │ ├── defines_0.js │ ├── files_0.html │ ├── files_0.js │ ├── files_1.html │ ├── files_1.js │ ├── files_2.html │ ├── files_2.js │ ├── files_3.html │ ├── files_3.js │ ├── functions_0.html │ ├── functions_0.js │ ├── functions_1.html │ ├── functions_1.js │ ├── functions_2.html │ ├── functions_2.js │ ├── functions_3.html │ ├── functions_3.js │ ├── functions_4.html │ ├── functions_4.js │ ├── functions_5.html │ ├── functions_5.js │ ├── functions_6.html │ ├── functions_6.js │ ├── functions_7.html │ ├── functions_7.js │ ├── functions_8.html │ ├── functions_8.js │ ├── functions_9.html │ ├── functions_9.js │ ├── functions_a.html │ ├── functions_a.js │ ├── functions_b.html │ ├── functions_b.js │ ├── mag_sel.png │ ├── namespaces_0.html │ ├── namespaces_0.js │ ├── nomatches.html │ ├── pages_0.html │ ├── pages_0.js │ ├── pages_1.html │ ├── pages_1.js │ ├── related_0.html │ ├── related_0.js │ ├── search.css │ ├── search.js │ ├── search_l.png │ ├── search_m.png │ ├── search_r.png │ ├── searchdata.js │ ├── typedefs_0.html │ ├── typedefs_0.js │ ├── variables_0.html │ ├── variables_0.js │ ├── variables_1.html │ └── variables_1.js ├── splitbar.png ├── string_8cpp.html ├── string_8cpp__incl.map ├── string_8cpp__incl.md5 ├── string_8cpp__incl.png ├── string_8hpp.html ├── string_8hpp__dep__incl.map ├── string_8hpp__dep__incl.md5 ├── string_8hpp__dep__incl.png ├── string_8hpp__incl.map ├── string_8hpp__incl.md5 ├── string_8hpp__incl.png ├── string_8hpp_source.html ├── sync_off.png ├── sync_on.png ├── tab_a.png ├── tab_b.png ├── tab_h.png ├── tab_s.png └── tabs.css ├── examples ├── date │ ├── date.pro │ ├── datewidget.cpp │ ├── datewidget.hpp │ ├── main.cpp │ ├── mainwindow.cpp │ ├── mainwindow.h │ ├── mainwindow.ui │ └── resources │ │ ├── BitFont.ttf │ │ └── resources.qrc └── spinning-numbers │ ├── main.cpp │ ├── mainwindow.cpp │ ├── mainwindow.h │ ├── mainwindow.ui │ ├── resources │ ├── BitFont.ttf │ ├── msg.txt │ └── resources.qrc │ ├── spinning-numbers.pro │ ├── testwidget.cpp │ └── testwidget.h └── logo ├── qsfml-2x3.png ├── qsfml-original.png └── qsfml-small.png /.gitattributes: -------------------------------------------------------------------------------- 1 | docs/* linguist-documentation 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | qrc_* 3 | moc_* 4 | ui_* 5 | Makefile 6 | *.pro.user 7 | examples/date/date 8 | QSFML/Doxygen/ 9 | QSFML/src/.qmake.stash 10 | QSFML/src/build/ 11 | QSFML/build-* 12 | -------------------------------------------------------------------------------- /QSFML/include/Image.hpp: -------------------------------------------------------------------------------- 1 | /* =========================================================== * 2 | * QSFML (c) Kamil Koczurek | koczurekk@gmail.com * 3 | * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html * 4 | * =========================================================== */ 5 | //! @file 6 | //! File containing qsf::Image class declaration 7 | 8 | #ifndef QSF_IMAGE_HPP 9 | #define QSF_IMAGE_HPP 10 | 11 | #include 12 | #include 13 | 14 | namespace qsf { 15 | //! \brief sf::Image ↔ QImage compatibility layer 16 | //! 17 | //! \class qsf::Image 18 | //! 19 | //! Very simple class that inherits sf::Image. Its only additional purpose is being able to create QImage and to be loaded from such. 20 | class Image 21 | : public sf::Image { 22 | public: 23 | //! \brief Default constructor 24 | //! 25 | //! Calls sf::Image's default constructor. 26 | Image(); 27 | 28 | //! \brief Constructor taking reference to QImage 29 | //! 30 | //! \param [in] qImg – const reference to QImage 31 | //! 32 | //! Calls loadFromQImage(img) to create qsf::Image. 33 | Image(const QImage& qImg); 34 | 35 | //! \brief Converts to QImage 36 | //! 37 | //! Creates QImage using sf::Image data, way faster than creating qsf::Image from QImage, as sf::Image always uses RGBA8888 format. 38 | QImage asQImage(); 39 | 40 | //! \brief Load image from QImage 41 | //! 42 | //! \param [in] qImg – const reference to QImage 43 | //! 44 | //! Creates qsf::Image using QImage's data, slow as it has to copy QImage (to ensure, that it has proper format) and then copies it again into sf::Image backend. 45 | void loadFromQImage(const QImage& qImg); 46 | }; 47 | } 48 | 49 | #endif // FEW_H 50 | -------------------------------------------------------------------------------- /QSFML/include/keyconverter.hpp: -------------------------------------------------------------------------------- 1 | /* =========================================================== * 2 | * QSFML (c) Kamil Koczurek | koczurekk@gmail.com * 3 | * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html * 4 | * =========================================================== */ 5 | //! @file 6 | //! File containg key converting-related functions declarations. 7 | 8 | #ifndef KEYCONVERTER_HPP 9 | #define KEYCONVERTER_HPP 10 | 11 | #include 12 | #include 13 | 14 | namespace qsf { 15 | //! \brief Function converting Qt key code to SFML's one. 16 | //! 17 | //! \param [in] QtKey Qt Key code 18 | //! 19 | //! \return SFML key code 20 | sf::Keyboard::Key QtKeyToSFML(int QtKey); 21 | } 22 | #endif // KEYCONVERTER_HPP 23 | 24 | -------------------------------------------------------------------------------- /QSFML/include/qresourcestream.hpp: -------------------------------------------------------------------------------- 1 | /* =========================================================== * 2 | * QSFML (c) Kamil Koczurek | koczurekk@gmail.com * 3 | * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html * 4 | * =========================================================== */ 5 | //! @file 6 | //! File containg QResourceStream declaration 7 | 8 | #ifndef QRESOURCESTREAM_H 9 | #define QRESOURCESTREAM_H 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | namespace qsf { 16 | //! \class QResourceStream 17 | //! \brief sf::InputStream reading QResource files 18 | //! 19 | //! This class inherits sf::InputStream, so it can by used by any SFML method that takes reference to such object. Therafore you can store your textures, 20 | //! sounds etc. in an execatulable/binary file using Qt resources and then read them thanks to this class. 21 | class QResourceStream 22 | : public sf::InputStream { 23 | public: 24 | //! \brief Default constructor 25 | //! 26 | //! Does nothing expect of setting private variables to proper values. 27 | QResourceStream(); 28 | 29 | //! \brief Destructor 30 | //! 31 | //! Frees resources (memory). 32 | ~QResourceStream(); 33 | 34 | //! \brief Opens file 35 | //! 36 | //! \param [in] path – Path to file 37 | //! 38 | //! \return True if file was opened and read properly, False otherwise. 39 | //! 40 | //! Opens given file, loads its contents to memory and then closes it. 41 | bool open(const char* path); 42 | 43 | //! \brief Reads parts of resource 44 | //! 45 | //! \param [in] size – Amount of thata to be read 46 | //! \param [out] data – Pointer to place, where data should be copied 47 | //! 48 | //! \return New position of cursor in file. 49 | virtual sf::Int64 read(void* data, sf::Int64 size); 50 | 51 | //! \brief Sets new cursor's position 52 | //! 53 | //! \param [in] position – New position 54 | //! 55 | //! \return New position of cursor in file. 56 | virtual sf::Int64 seek(sf::Int64 position); 57 | 58 | //! \brief Returns cursor's position 59 | //! 60 | //! \return New position of cursor in file. 61 | virtual sf::Int64 tell(); 62 | 63 | //! \brief Returns file size 64 | //! 65 | //! \return File size. 66 | virtual sf::Int64 getSize(); 67 | 68 | //! \brief Open a file using operator() 69 | //! 70 | //! \param [in] path – Path to file 71 | //! 72 | //! \return Reference to *this (the same object). 73 | //! 74 | //! Opens a file and then returns reference, discards informations about file being opened properly. 75 | //! Such a structure allows writing code like that: 76 | //! \code{.cpp} 77 | //! QResourceStream resource; 78 | //! 79 | //! /* Other code */ 80 | //! 81 | //! someTexture.loadFromStream(resource("://BitTexture.png")); 82 | //! someMusic.loadFromStream(resource("://BitMusic.wav")); 83 | //! \endcode 84 | //! So you don't need to declare many instances of QResourceStream. 85 | QResourceStream & operator()(const char* path); 86 | 87 | //! \brief Prints whole file (std::ostream) 88 | //! 89 | //! Allows printing file to std::ostream.\n 90 | //! Sample usage: 91 | //! \code{.cpp} 92 | //! QResourceStream resource; 93 | //! if(!resource.open("://BuiltInFile.txt")) { 94 | //! std::cerr << "Could not read resource!" << std::endl; 95 | //! } else { 96 | //! std::cout << "Content:" << std::endl << resource << std::endl; 97 | //! } 98 | //! \endcode 99 | friend std::ostream& operator <<(std::ostream& out, QResourceStream& resource); 100 | 101 | //! \brief Prints whole file (QDebug) 102 | //! 103 | //! Allows printing file to QDebug.\n 104 | //! Sample usage: 105 | //! \code{.cpp} 106 | //! QResourceStream resource; 107 | //! if(!resource.open("://BuiltInFile.txt")) { 108 | //! qDebug() << "Could not read resource!"; 109 | //! } else { 110 | //! qDebug() << "Content:" << resource; 111 | //! } 112 | //! \endcode 113 | friend QDebug operator <<(QDebug out, const QResourceStream& resource); 114 | 115 | private: 116 | void * dat; 117 | sf::Int64 pos; 118 | sf::Int64 size; 119 | }; 120 | } 121 | #endif // QRESOURCESTREAM_H 122 | -------------------------------------------------------------------------------- /QSFML/include/qvector2.hpp: -------------------------------------------------------------------------------- 1 | /* =========================================================== * 2 | * QSFML (c) Kamil Koczurek | koczurekk@gmail.com * 3 | * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html * 4 | * =========================================================== */ 5 | 6 | //! @file 7 | //! QVector2 implementation file 8 | 9 | #ifndef QVECTOR2_HPP 10 | #define QVECTOR2_HPP 11 | 12 | #include 13 | #include 14 | #include 15 | 16 | namespace qsf { 17 | //! \class QVector2 18 | //! \brief Compatibility layer sf::Vector2 ↔ QPoint; QSize 19 | //! 20 | //! One Vector2 to rule them all.\n 21 | //! Inherits sf::Vector2, so it can be used everywhere, where original vector can.\n 22 | //! Supports casting (non-explicit) to both QPoint and QSize.\n 23 | //! Sample usage: 24 | //! \code{.cpp} 25 | //! //Initialize using QSize 26 | //! qsf::Qvector2f factor(QWidget::size()); 27 | //! 28 | //! //Use in SFML entity 29 | //! someRect.setSize(factor); 30 | //! \endcode 31 | template 32 | class QVector2 33 | : public sf::Vector2 { 34 | public: 35 | //! \brief Default constructor 36 | //! 37 | //! Just calls default constructor of sf::Vector2(). 38 | QVector2() 39 | : sf::Vector2() 40 | { } 41 | 42 | //! \brief Two-parameter constructor 43 | //! 44 | //! \param [in] x – Point position on X axis 45 | //! \param [in] y – Point position on Y axis 46 | //! 47 | //! Calls sf::Vector2(x, y). 48 | QVector2(N x, N y) 49 | : sf::Vector2(x, y) 50 | { } 51 | 52 | //! \brief Constructor copying sf::Vector2 53 | //! 54 | //! \param [in] vec – Vector to copy 55 | //! 56 | //! Calls sf::Vector2(vec.x, vec.y). 57 | QVector2(sf::Vector2 vec) 58 | : sf::Vector2(vec.x, vec.y) 59 | { } 60 | 61 | //! \brief Constructor copying QPoint 62 | //! 63 | //! \param [in] Qp – QPoint instance 64 | //! 65 | //! Calls sf::Vector2(Qp.x(), Qp.y()). 66 | QVector2(QPoint Qp) 67 | : sf::Vector2(Qp.x(), Qp.y()) 68 | { } 69 | 70 | //! \brief Constructor copying QSize 71 | //! 72 | //! \param [in] Qp – QSize instance 73 | //! 74 | //! Calls sf::Vector2(Qp.x(), Qp.y()). 75 | QVector2(QSize Qp) 76 | : sf::Vector2(Qp.width(), Qp.height()) 77 | { } 78 | 79 | //! \brief QPoint cast operator 80 | //! 81 | //! Casts qsf::Vector2 to a QPoint.\n 82 | //! Sample usage: 83 | //! \code{.cpp} 84 | //! qsf::QVector2f pos = { 85 | //! rand() % 20 - 10, 86 | //! rand() % 20 - 10 87 | //! }; 88 | //! QWidget::move(pos); 89 | //! \endcode 90 | operator QPoint const() { return QPoint(N(this->x), N(this->y)); } 91 | 92 | //! \brief QSize cast operator 93 | //! 94 | //! \code{.cpp} 95 | //! qsf::QVector2f size = { 96 | //! rand() % 200 + 100, 97 | //! rand() % 200 + 100 98 | //! }; 99 | //! QWidget::resize(size); 100 | //! \endcode 101 | operator QSize const() { return QSize(N(this->x), N(this->y)); } 102 | }; 103 | 104 | //! \brief Alias to QVector with template int 105 | //! 106 | //! \code QVector2 \endcode 107 | typedef QVector2 QVector2i; 108 | 109 | //! \brief Alias to QVector with template unsigned int 110 | //! 111 | //! \code QVector2 \endcode 112 | typedef QVector2 QVector2u; 113 | 114 | //! \brief Alias to QVector with template float 115 | //! 116 | //! \code QVector2 \endcode 117 | typedef QVector2 QVector2f; 118 | 119 | } 120 | #endif // QVECTOR2_HPP 121 | 122 | -------------------------------------------------------------------------------- /QSFML/include/string.hpp: -------------------------------------------------------------------------------- 1 | /* =========================================================== * 2 | * QSFML (c) Kamil Koczurek | koczurekk@gmail.com * 3 | * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html * 4 | * =========================================================== */ 5 | //! @file 6 | //! QString declaration and partial implementation 7 | 8 | #ifndef STRING_H 9 | #define STRING_H 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | namespace qsf { 16 | //! \class String 17 | //! \brief (almost) QString castable to sf::String 18 | //! 19 | //! Use this class to operate on QString and use it in sf::Text::setString() etc. 20 | class String 21 | : public QString { 22 | public: 23 | //! \brief Quite universal constructor 24 | //! 25 | //! \param [in] obj – object/variable 26 | //! 27 | //! Can take as parameter any variable or object, that can be given to QString constructor.\n 28 | //! Calls QString(ojb). 29 | template 30 | String(T obj) 31 | : QString(obj) 32 | { } 33 | 34 | //! \brief std::string constructor 35 | //! 36 | //! \param [in] obj – std::string instance 37 | //! 38 | //! Allows initializing String using std::string object. 39 | String(std::string obj); 40 | 41 | //! \brief sf::String constructor 42 | //! 43 | //! \param [in] obj – sf::String instance 44 | //! 45 | //! Allows initializing String using sf::String object. 46 | String(sf::String str); 47 | 48 | //! \brief QString::number() method overload 49 | //! 50 | //! \param [in] num – Number 51 | //! 52 | //! Does exact same thing as QString::number(), but returns qsf::String instead of QString. 53 | template 54 | static String number(T num) { 55 | return String(QString::number(num)); 56 | } 57 | 58 | //! \brief QString::arg() method overload, takes any supported type. 59 | //! 60 | //! \param [in] var – Argument 61 | //! 62 | //! Overload QString::arg() method from QString, so it could return qsf::String 63 | template 64 | String arg(T var) const { 65 | return String(static_cast(this)->arg(var)); 66 | } 67 | 68 | //! \brief QString::arg() method overload, takes sf::String as parameter 69 | //! 70 | //! \param [in] var – Argument 71 | //! 72 | //! Overload QString::arg() method from QString taking sf::String as parameter. 73 | String arg(sf::String str) const; 74 | 75 | //! \brief QString::arg() method overload, takes qsf::String as parameter. 76 | //! 77 | //! \param [in] var – Argument 78 | //! 79 | //! Overload QString::arg() method from QString taking qsf::String as parameter. 80 | String arg(String str) const; 81 | 82 | //! \brief Operator allowing casting to sf::String 83 | //! 84 | //! \code 85 | //! qsf::String str = QDateTime::currentDateTime().toString(); 86 | //! someSfmlText.setString(str); //OK 87 | //! \endcode 88 | operator sf::String const(); 89 | 90 | //! \brief std::ostream << operator support 91 | //! 92 | //! Allows printing qsf::String to std::ostream like that: 93 | //! \code 94 | //! qsf::String str = QDateTime::currentDateTime().toString(); 95 | //! std::cout << str << std::endl; 96 | //! \endcode 97 | friend std::ostream& operator <<(std::ostream& out, const String& string) { 98 | return out << string.toStdString(); 99 | } 100 | }; 101 | } 102 | #endif // STRING_H 103 | -------------------------------------------------------------------------------- /QSFML/src/Image.cpp: -------------------------------------------------------------------------------- 1 | #include "Image.hpp" 2 | 3 | namespace qsf { 4 | Image::Image() 5 | : sf::Image() 6 | { } 7 | 8 | Image::Image(const QImage &qImg) { 9 | this->loadFromQImage(qImg); 10 | } 11 | 12 | QImage Image::asQImage() { 13 | return QImage( 14 | this->getPixelsPtr(), 15 | this->getSize().x, 16 | this->getSize().y, 17 | QImage::Format_RGBA8888 18 | ); 19 | } 20 | 21 | void Image::loadFromQImage(const QImage& qImg) { 22 | QImage qImgRGBA = qImg.convertToFormat(QImage::Format_RGBA8888); 23 | 24 | this->create( 25 | qImgRGBA.size().width(), 26 | qImgRGBA.size().height(), 27 | qImgRGBA.bits() 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /QSFML/src/QSFML.pro: -------------------------------------------------------------------------------- 1 | # =========================================================== # 2 | # QSFML (c) Kamil Koczurek | koczurekk@gmail.com # 3 | # GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html # 4 | # =========================================================== # 5 | 6 | DESTDIR=build 7 | OBJECTS_DIR=build/obj 8 | 9 | TEMPLATE = lib 10 | TARGET = QSFML 11 | INCLUDEPATH += ../include/ 12 | 13 | QT += core gui 14 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 15 | 16 | LIBS += -lsfml-graphics -lsfml-window -lsfml-system 17 | QMAKE_CXXFLAGS += -std=c++11 -Wno-sign-compare 18 | 19 | SOURCES += \ 20 | keyconverter.cpp \ 21 | qresourcestream.cpp \ 22 | QSFMLCanvas.cpp \ 23 | QSFMLCanvasEventHandler.cpp \ 24 | string.cpp \ 25 | Image.cpp 26 | 27 | HEADERS += \ 28 | ../include/keyconverter.hpp \ 29 | ../include/qresourcestream.hpp \ 30 | ../include/QSFMLCanvas.hpp \ 31 | ../include/qvector2.hpp \ 32 | ../include/string.hpp \ 33 | ../include/Image.hpp 34 | -------------------------------------------------------------------------------- /QSFML/src/QSFMLCanvas.cpp: -------------------------------------------------------------------------------- 1 | /* =========================================================== * 2 | * QSFML (c) Kamil Koczurek | koczurekk@gmail.com * 3 | * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html * 4 | * =========================================================== */ 5 | 6 | #include "QSFMLCanvas.hpp" 7 | 8 | #ifdef Q_WS_X11 9 | #include 10 | #include 11 | #endif 12 | 13 | namespace qsf { 14 | QSFMLWidget::QSFMLWidget(QWidget* Parent, const QPoint& Position, const QSize& Size, unsigned int FrameTime) 15 | : QWidget(Parent), 16 | _initialized(false) { 17 | setAttribute(Qt::WA_PaintOnScreen); 18 | setAttribute(Qt::WA_OpaquePaintEvent); 19 | setAttribute(Qt::WA_NoSystemBackground); 20 | 21 | setFocusPolicy(Qt::StrongFocus); 22 | 23 | move(Position); 24 | resize(Size); 25 | 26 | refreshTimer.setInterval(FrameTime); 27 | frameClock.restart(); 28 | } 29 | QSFMLWidget::~QSFMLWidget() { 30 | OnDestroy(); 31 | } 32 | 33 | 34 | void QSFMLWidget::showEvent(QShowEvent*) { 35 | if (!_initialized) 36 | { 37 | RenderWindow::create((sf::WindowHandle) winId()); 38 | 39 | OnInit(); 40 | 41 | connect(&refreshTimer, SIGNAL(timeout()), this, SLOT(repaint())); 42 | refreshTimer.start(); 43 | _initialized = true; 44 | } 45 | } 46 | 47 | QPaintEngine* QSFMLWidget::paintEngine() const { 48 | return 0; 49 | } 50 | void QSFMLWidget::paintEvent(QPaintEvent*) { 51 | _frameTime = frameClock.restart(); 52 | OnUpdate(); 53 | RenderWindow::display(); 54 | } 55 | 56 | void QSFMLWidget::OnInit() {} /* TO BE DERIVED */ 57 | void QSFMLWidget::OnUpdate() {} /* TO BE DERIVED */ 58 | void QSFMLWidget::OnDestroy() {} /* TO BE DERIVED */ 59 | 60 | bool QSFMLWidget::pollEvent(sf::Event& ev) { 61 | if(SfEvents.size() == 0) 62 | return false; 63 | 64 | ev = SfEvents.back(); 65 | SfEvents.pop_back(); 66 | 67 | return true; 68 | } 69 | void QSFMLWidget::pushEvent(sf::Event & ev) { 70 | SfEvents.push_back(ev); 71 | } 72 | 73 | bool QSFMLWidget::isInitialized() { 74 | return this->_initialized; 75 | } 76 | 77 | sf::Time QSFMLWidget::getDeltaTime() { 78 | return this->_frameTime; 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /QSFML/src/QSFMLCanvasEventHandler.cpp: -------------------------------------------------------------------------------- 1 | /* =========================================================== * 2 | * QSFML (c) Kamil Koczurek | koczurekk@gmail.com * 3 | * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html * 4 | * =========================================================== */ 5 | 6 | #include "QSFMLCanvas.hpp" 7 | #include 8 | #include "keyconverter.hpp" 9 | 10 | namespace qsf { 11 | //Mouse buttons events 12 | void QSFMLWidget::mousePressEvent(QMouseEvent *e) { 13 | sf::Event ev; 14 | ev.type = sf::Event::MouseButtonPressed; 15 | 16 | ev.mouseButton.button = (e->buttons() == Qt::RightButton ? sf::Mouse::Right : sf::Mouse::Left); 17 | ev.mouseButton.x = e->localPos().x(); 18 | ev.mouseButton.y = e->localPos().y(); 19 | 20 | pushEvent(ev); 21 | } 22 | void QSFMLWidget::mouseReleaseEvent(QMouseEvent *e) { 23 | sf::Event ev; 24 | ev.type = sf::Event::MouseButtonReleased; 25 | 26 | ev.mouseButton.button = (e->buttons() == Qt::RightButton ? sf::Mouse::Right : sf::Mouse::Left); 27 | ev.mouseButton.x = e->localPos().x(); 28 | ev.mouseButton.y = e->localPos().y(); 29 | 30 | pushEvent(ev); 31 | } 32 | 33 | //Mouse Wheel event 34 | void QSFMLWidget::wheelEvent(QWheelEvent *e) { 35 | sf::Event ev; 36 | ev.type = sf::Event::MouseWheelMoved; 37 | 38 | ev.mouseWheel.delta = e->delta() / 8 / 15; 39 | ev.mouseWheel.x = sf::Mouse::getPosition(*this).x; 40 | ev.mouseWheel.y = sf::Mouse::getPosition(*this).y; 41 | 42 | pushEvent(ev); 43 | e->accept(); 44 | } 45 | 46 | //Mouse move event 47 | void QSFMLWidget::mouseMoveEvent(QMouseEvent *e) { 48 | sf::Event ev; 49 | ev.type = sf::Event::MouseMoved; 50 | 51 | ev.mouseMove.x = e->localPos().x(); 52 | ev.mouseMove.y = e->localPos().y(); 53 | 54 | pushEvent(ev); 55 | } 56 | 57 | //Keyboard events 58 | void QSFMLWidget::keyPressEvent(QKeyEvent *event) { 59 | sf::Event ev; 60 | ev.type = sf::Event::KeyPressed; 61 | ev.key.code = QtKeyToSFML(event->key()); 62 | 63 | pushEvent(ev); 64 | } 65 | void QSFMLWidget::keyReleaseEvent(QKeyEvent *event) { 66 | sf::Event ev; 67 | ev.type = sf::Event::KeyReleased; 68 | ev.key.code = QtKeyToSFML(event->key()); 69 | 70 | pushEvent(ev); 71 | } 72 | 73 | //Resize event 74 | void QSFMLWidget::resizeEvent(QResizeEvent *event) { 75 | sf::Event ev; 76 | ev.type = sf::Event::Resized; 77 | ev.size = { 78 | static_cast(event->size().width()), 79 | static_cast(event->size().height()) 80 | }; 81 | 82 | pushEvent(ev); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /QSFML/src/keyconverter.cpp: -------------------------------------------------------------------------------- 1 | /* =========================================================== * 2 | * QSFML (c) Kamil Koczurek | koczurekk@gmail.com * 3 | * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html * 4 | * =========================================================== */ 5 | 6 | #ifndef KEYCONVERTER_CPP 7 | #define KEYCONVERTER_CPP 8 | 9 | #include "keyconverter.hpp" 10 | 11 | namespace qsf { 12 | sf::Keyboard::Key QtKeyToSFML(int QtKey) { 13 | switch (QtKey) { 14 | /* NUMBERS */ 15 | case Qt::Key_0: return sf::Keyboard::Num0; 16 | case Qt::Key_1: return sf::Keyboard::Num1; 17 | case Qt::Key_2: return sf::Keyboard::Num2; 18 | case Qt::Key_3: return sf::Keyboard::Num3; 19 | case Qt::Key_4: return sf::Keyboard::Num4; 20 | case Qt::Key_5: return sf::Keyboard::Num5; 21 | case Qt::Key_6: return sf::Keyboard::Num6; 22 | case Qt::Key_7: return sf::Keyboard::Num7; 23 | case Qt::Key_8: return sf::Keyboard::Num8; 24 | case Qt::Key_9: return sf::Keyboard::Num9; 25 | 26 | /* ALPHABET */ 27 | case Qt::Key_A: return sf::Keyboard::A; 28 | case Qt::Key_B: return sf::Keyboard::B; 29 | case Qt::Key_C: return sf::Keyboard::C; 30 | case Qt::Key_D: return sf::Keyboard::D; 31 | case Qt::Key_E: return sf::Keyboard::E; 32 | case Qt::Key_F: return sf::Keyboard::F; 33 | case Qt::Key_G: return sf::Keyboard::G; 34 | case Qt::Key_H: return sf::Keyboard::H; 35 | case Qt::Key_I: return sf::Keyboard::I; 36 | case Qt::Key_J: return sf::Keyboard::J; 37 | case Qt::Key_K: return sf::Keyboard::K; 38 | case Qt::Key_L: return sf::Keyboard::L; 39 | case Qt::Key_M: return sf::Keyboard::M; 40 | case Qt::Key_N: return sf::Keyboard::N; 41 | case Qt::Key_O: return sf::Keyboard::O; 42 | case Qt::Key_P: return sf::Keyboard::P; 43 | case Qt::Key_Q: return sf::Keyboard::Q; 44 | case Qt::Key_R: return sf::Keyboard::R; 45 | case Qt::Key_S: return sf::Keyboard::S; 46 | case Qt::Key_T: return sf::Keyboard::T; 47 | case Qt::Key_U: return sf::Keyboard::U; 48 | case Qt::Key_V: return sf::Keyboard::V; 49 | case Qt::Key_W: return sf::Keyboard::W; 50 | case Qt::Key_X: return sf::Keyboard::X; 51 | case Qt::Key_Y: return sf::Keyboard::Y; 52 | case Qt::Key_Z: return sf::Keyboard::Z; 53 | 54 | /* F's */ 55 | case Qt::Key_F1: return sf::Keyboard::F1; 56 | case Qt::Key_F2: return sf::Keyboard::F2; 57 | case Qt::Key_F3: return sf::Keyboard::F3; 58 | case Qt::Key_F4: return sf::Keyboard::F4; 59 | case Qt::Key_F5: return sf::Keyboard::F5; 60 | case Qt::Key_F6: return sf::Keyboard::F6; 61 | case Qt::Key_F7: return sf::Keyboard::F7; 62 | case Qt::Key_F8: return sf::Keyboard::F8; 63 | case Qt::Key_F9: return sf::Keyboard::F9; 64 | case Qt::Key_F10: return sf::Keyboard::F10; 65 | case Qt::Key_F11: return sf::Keyboard::F11; 66 | case Qt::Key_F12: return sf::Keyboard::F12; 67 | 68 | /* ARROWS */ 69 | case Qt::Key_Up: return sf::Keyboard::Up; 70 | case Qt::Key_Down: return sf::Keyboard::Down; 71 | case Qt::Key_Left: return sf::Keyboard::Left; 72 | case Qt::Key_Right: return sf::Keyboard::Right; 73 | 74 | /* MATHS */ 75 | case Qt::Key_Plus: return sf::Keyboard::Add; 76 | case Qt::Key_Minus: return sf::Keyboard::Subtract; 77 | case Qt::Key_Asterisk: return sf::Keyboard::Multiply; 78 | 79 | /* OTHERS */ 80 | case Qt::Key_End: return sf::Keyboard::End; 81 | case Qt::Key_Tab: return sf::Keyboard::Tab; 82 | case Qt::Key_Home: return sf::Keyboard::Home; 83 | case Qt::Key_Alt: return sf::Keyboard::RAlt; 84 | case Qt::Key_Menu: return sf::Keyboard::Menu; 85 | case Qt::Key_QuoteDbl: /*v v v v v v v v v v v v*/ 86 | case Qt::Key_QuoteLeft: return sf::Keyboard::Quote; 87 | case Qt::Key_Atilde: /*v v v v v v v v v v v v*/ 88 | case Qt::Key_Ntilde: /*v v v v v v v v v v v v*/ 89 | case Qt::Key_Otilde: /*v v v v v v v v v v v v*/ 90 | case Qt::Key_AsciiTilde: return sf::Keyboard::Tilde; 91 | case Qt::Key_Space: return sf::Keyboard::Space; 92 | case Qt::Key_Slash: return sf::Keyboard::Slash; 93 | case Qt::Key_Comma: return sf::Keyboard::Comma; 94 | case Qt::Key_Equal: return sf::Keyboard::Equal; 95 | case Qt::Key_Pause: return sf::Keyboard::Pause; 96 | case Qt::Key_Return: return sf::Keyboard::Return; 97 | case Qt::Key_Escape: return sf::Keyboard::Escape; 98 | case Qt::Key_Shift: return sf::Keyboard::RShift; 99 | case Qt::Key_Period: return sf::Keyboard::Period; 100 | case Qt::Key_PageUp: return sf::Keyboard::PageUp; 101 | case Qt::Key_Insert: return sf::Keyboard::Insert; 102 | case Qt::Key_Delete: return sf::Keyboard::Delete; 103 | case Qt::Key_Super_L: return sf::Keyboard::LSystem; 104 | case Qt::Key_Super_R: return sf::Keyboard::RSystem; 105 | case Qt::Key_Control: return sf::Keyboard::RControl; 106 | case Qt::Key_BracketLeft: return sf::Keyboard::LBracket; 107 | case Qt::Key_BracketRight: return sf::Keyboard::RBracket; 108 | case Qt::Key_PageDown: return sf::Keyboard::PageDown; 109 | case Qt::Key_Backslash: return sf::Keyboard::BackSlash; 110 | case Qt::Key_Backspace: return sf::Keyboard::BackSpace; 111 | case Qt::Key_Semicolon: return sf::Keyboard::SemiColon; 112 | 113 | default: 114 | return sf::Keyboard::Unknown; 115 | } 116 | } 117 | } 118 | 119 | #endif // KEYCONVERTER_CPP 120 | 121 | -------------------------------------------------------------------------------- /QSFML/src/qresourcestream.cpp: -------------------------------------------------------------------------------- 1 | /* =========================================================== * 2 | * QSFML (c) Kamil Koczurek | koczurekk@gmail.com * 3 | * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html * 4 | * =========================================================== */ 5 | 6 | #include "qresourcestream.hpp" 7 | #include 8 | 9 | namespace qsf { 10 | QResourceStream::QResourceStream() { 11 | this->pos = 0; 12 | this->size = 0; 13 | } 14 | QResourceStream::~QResourceStream() { 15 | if(size != 0) 16 | free(dat); 17 | } 18 | 19 | bool QResourceStream::open(const char* path) { 20 | if(this->size != 0) { 21 | this->size = 0; 22 | this->pos = 0; 23 | free(dat); 24 | } 25 | 26 | static QFile file; 27 | file.setFileName(path); 28 | if(!file.open(QIODevice::ReadOnly)) 29 | return false; 30 | 31 | this->size = file.size(); 32 | dat = malloc(file.size()); 33 | 34 | if(dat == NULL) 35 | return false; 36 | 37 | if(file.read((char*) dat, file.size() + 1) == -1) 38 | return false; 39 | 40 | file.close(); 41 | return true; 42 | } 43 | 44 | sf::Int64 QResourceStream::read(void *data, sf::Int64 size) { 45 | const auto count = std::min( size, this->size - pos ); 46 | memcpy( data, static_cast < char *>( dat ) + pos, count ); 47 | pos += count; 48 | 49 | return count; 50 | } 51 | 52 | sf::Int64 QResourceStream::seek(sf::Int64 position) { 53 | pos = position; 54 | return tell(); 55 | } 56 | sf::Int64 QResourceStream::tell() { 57 | return pos; 58 | } 59 | sf::Int64 QResourceStream::getSize() { 60 | return this->size; 61 | } 62 | 63 | QResourceStream & QResourceStream::operator()(const char* path) { 64 | open(path); 65 | return *this; 66 | } 67 | 68 | std::ostream& operator <<(std::ostream& out, QResourceStream& resource) { 69 | return out << static_cast(resource.dat); 70 | } 71 | 72 | QDebug operator <<(QDebug out, const QResourceStream& resource) { 73 | return out << static_cast(resource.dat); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /QSFML/src/string.cpp: -------------------------------------------------------------------------------- 1 | /* =========================================================== * 2 | * QSFML (c) Kamil Koczurek | koczurekk@gmail.com * 3 | * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html * 4 | * =========================================================== */ 5 | 6 | #include "string.hpp" 7 | 8 | namespace qsf { 9 | String::String(std::string obj) 10 | : QString(obj.c_str()) 11 | { } 12 | 13 | String::String(sf::String str) 14 | : QString(str.toAnsiString().c_str()) 15 | { } 16 | 17 | String String::arg(sf::String str) const { 18 | return String(static_cast(this)->arg(str.toAnsiString().c_str())); 19 | } 20 | String String::arg(String str) const { 21 | return String(static_cast(this)->arg(str.toStdString().c_str())); 22 | } 23 | 24 | String::operator const sf::String() { 25 | return sf::String(this->toStdString()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # QSFML 4 | Library that integrates SFML 2.3.x; 2.4.1+ (2.4.0 causes a X11-related problem) and Qt 5, includes event handling, universal types, useful functions (eg. key code converter) etc. 5 | 6 | ## Installation 7 | ### Source code 8 | 9 | ``` 10 | $ git clone https://github.com/kamirr/QSFML.git 11 | $ cd QSFML/QSFML/src 12 | $ qmake 13 | $ make 14 | ``` 15 | 16 | Then copy .dll/.so and include directory wherever you want to. 17 | 18 | ### Deb packages 19 | Download .deb packages from last release and install them. 20 | 21 | ## Compilation 22 | All header files are in QSFML subdirectory, include useful ones and remember to link with -lQSFML. 23 | 24 | ## Documentation 25 | You can find docs [here](https://kamirr.github.io/QSFML/).
26 | Generated using doxygen, It's not good-looking, but I don't have time to change doxygen's .css files. 27 | 28 | ## Origins 29 | Basic code, on top of which im writing QSFML, was created by "jueves", you can find original post here: http://becomingindiedev.blogspot.com/2013/10/qt-5-and-sfml-20-integration.html 30 | -------------------------------------------------------------------------------- /docs/Image_8hpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/Image_8hpp__incl.md5: -------------------------------------------------------------------------------- 1 | 8959ae4d257ebb7f47dd733d1d939867 -------------------------------------------------------------------------------- /docs/Image_8hpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/Image_8hpp__incl.png -------------------------------------------------------------------------------- /docs/QSFMLCanvasEventHandler_8cpp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: QSFMLCanvasEventHandler.cpp File Reference 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 63 | 69 | 70 |
74 |
75 | 76 | 77 |
78 | 81 |
82 | 83 |
84 |
85 |
86 | Namespaces
87 |
88 |
QSFMLCanvasEventHandler.cpp File Reference
89 |
90 |
91 |
#include "QSFMLCanvas.hpp"
92 | #include <SFML/System.hpp>
93 | #include "keyconverter.hpp"
94 |
95 | Include dependency graph for QSFMLCanvasEventHandler.cpp:
96 |
97 |
98 | 99 | 100 | 101 | 102 |
103 |
104 | 106 | 107 | 108 | 109 |

105 | Namespaces

 qsf
 Namespace containing all qsf classes and methods.
 
110 |
111 | 112 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /docs/QSFMLCanvasEventHandler_8cpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /docs/QSFMLCanvasEventHandler_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 4d714280f6f43b7e028288a23e1262b6 -------------------------------------------------------------------------------- /docs/QSFMLCanvasEventHandler_8cpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/QSFMLCanvasEventHandler_8cpp__incl.png -------------------------------------------------------------------------------- /docs/QSFMLCanvas_8cpp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: QSFMLCanvas.cpp File Reference 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 63 | 69 | 70 |
74 |
75 | 76 | 77 |
78 | 81 |
82 | 83 |
84 |
85 |
86 | Namespaces
87 |
88 |
QSFMLCanvas.cpp File Reference
89 |
90 |
91 |
#include "QSFMLCanvas.hpp"
92 |
93 | Include dependency graph for QSFMLCanvas.cpp:
94 |
95 |
96 | 97 | 98 | 99 |
100 |
101 | 103 | 104 | 105 | 106 |

102 | Namespaces

 qsf
 Namespace containing all qsf classes and methods.
 
107 |
108 | 109 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /docs/QSFMLCanvas_8cpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/QSFMLCanvas_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 74d541b3fcbdf47ddb60a2866ef392ee -------------------------------------------------------------------------------- /docs/QSFMLCanvas_8cpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/QSFMLCanvas_8cpp__incl.png -------------------------------------------------------------------------------- /docs/QSFMLCanvas_8hpp__dep__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /docs/QSFMLCanvas_8hpp__dep__incl.md5: -------------------------------------------------------------------------------- 1 | 9a8a408216c9d8f8ba09fa24092fedd1 -------------------------------------------------------------------------------- /docs/QSFMLCanvas_8hpp__dep__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/QSFMLCanvas_8hpp__dep__incl.png -------------------------------------------------------------------------------- /docs/QSFMLCanvas_8hpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/QSFMLCanvas_8hpp__incl.md5: -------------------------------------------------------------------------------- 1 | 8705fdc1d6f3df0b0447d09b2dd48e4c -------------------------------------------------------------------------------- /docs/QSFMLCanvas_8hpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/QSFMLCanvas_8hpp__incl.png -------------------------------------------------------------------------------- /docs/arrowdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/arrowdown.png -------------------------------------------------------------------------------- /docs/arrowright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/arrowright.png -------------------------------------------------------------------------------- /docs/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/bc_s.png -------------------------------------------------------------------------------- /docs/bdwn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/bdwn.png -------------------------------------------------------------------------------- /docs/classqsf_1_1Image-members.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: Member List 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 62 | 70 | 71 |
75 |
76 | 77 | 78 |
79 | 82 |
83 | 84 | 88 |
89 |
90 |
91 |
qsf::Image Member List
92 |
93 |
94 | 95 |

This is the complete list of members for qsf::Image, including all inherited members.

96 | 97 | 98 | 99 | 100 | 101 |
asQImage()qsf::Image
Image()qsf::Image
Image(const QImage &qImg)qsf::Image
loadFromQImage(const QImage &qImg)qsf::Image
102 | 103 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /docs/classqsf_1_1Image__inherit__graph.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/classqsf_1_1Image__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 970bf547fe33a974d246a8752d4e7154 -------------------------------------------------------------------------------- /docs/classqsf_1_1Image__inherit__graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/classqsf_1_1Image__inherit__graph.png -------------------------------------------------------------------------------- /docs/classqsf_1_1QResourceStream__inherit__graph.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/classqsf_1_1QResourceStream__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 7b2353a97492250de7d67a4fd2ad02fc -------------------------------------------------------------------------------- /docs/classqsf_1_1QResourceStream__inherit__graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/classqsf_1_1QResourceStream__inherit__graph.png -------------------------------------------------------------------------------- /docs/classqsf_1_1QSFMLWidget__inherit__graph.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/classqsf_1_1QSFMLWidget__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | 093c8364faf3c8a67eb3972f126c73b8 -------------------------------------------------------------------------------- /docs/classqsf_1_1QSFMLWidget__inherit__graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/classqsf_1_1QSFMLWidget__inherit__graph.png -------------------------------------------------------------------------------- /docs/classqsf_1_1QVector2__inherit__graph.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/classqsf_1_1QVector2__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | ba20514ae30b18f68960a03decb33e71 -------------------------------------------------------------------------------- /docs/classqsf_1_1QVector2__inherit__graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/classqsf_1_1QVector2__inherit__graph.png -------------------------------------------------------------------------------- /docs/classqsf_1_1String__inherit__graph.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/classqsf_1_1String__inherit__graph.md5: -------------------------------------------------------------------------------- 1 | e0262c8e1206045b78a67a3f024e1220 -------------------------------------------------------------------------------- /docs/classqsf_1_1String__inherit__graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/classqsf_1_1String__inherit__graph.png -------------------------------------------------------------------------------- /docs/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/closed.png -------------------------------------------------------------------------------- /docs/deprecated.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | My Project: Deprecated List 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
My Project 27 |
28 |
32 |
33 | 34 | 35 | 38 | 63 | 64 |
68 |
69 | 70 | 71 |
72 | 75 |
76 | 77 |
78 |
79 |
80 |
Deprecated List
81 |
82 |
83 |
84 |
Member qsf::QSFMLWidget::frameTime
85 |
Reference is invalid after copying QSFMLWidget
86 |
Member qsf::QSFMLWidget::initialized
87 |
Reference is invalid after copying QSFMLWidget
88 |
89 |
90 | 91 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /docs/doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/doc.png -------------------------------------------------------------------------------- /docs/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/doxygen.png -------------------------------------------------------------------------------- /docs/dynsections.js: -------------------------------------------------------------------------------- 1 | function toggleVisibility(linkObj) 2 | { 3 | var base = $(linkObj).attr('id'); 4 | var summary = $('#'+base+'-summary'); 5 | var content = $('#'+base+'-content'); 6 | var trigger = $('#'+base+'-trigger'); 7 | var src=$(trigger).attr('src'); 8 | if (content.is(':visible')===true) { 9 | content.hide(); 10 | summary.show(); 11 | $(linkObj).addClass('closed').removeClass('opened'); 12 | $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); 13 | } else { 14 | content.show(); 15 | summary.hide(); 16 | $(linkObj).removeClass('closed').addClass('opened'); 17 | $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); 18 | } 19 | return false; 20 | } 21 | 22 | function updateStripes() 23 | { 24 | $('table.directory tr'). 25 | removeClass('even').filter(':visible:even').addClass('even'); 26 | } 27 | 28 | function toggleLevel(level) 29 | { 30 | $('table.directory tr').each(function() { 31 | var l = this.id.split('_').length-1; 32 | var i = $('#img'+this.id.substring(3)); 33 | var a = $('#arr'+this.id.substring(3)); 34 | if (l 2 | 3 | 4 | 5 | 6 | 7 | QSFML: Class Members - Related Functions 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 62 | 70 | 77 |
78 | 79 |
83 |
84 | 85 | 86 |
87 | 90 |
91 | 92 |
93 |   99 |
100 | 101 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /docs/functions_vars.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | My Project: Class Members - Variables 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
My Project 27 |
28 |
32 |
33 | 34 | 35 | 38 | 63 | 71 | 79 |
80 | 81 |
85 |
86 | 87 | 88 |
89 | 92 |
93 | 94 |
95 |   103 |
104 | 105 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /docs/globals.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: File Members 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 63 | 69 | 75 |
76 | 77 |
81 |
82 | 83 | 84 |
85 | 88 |
89 | 90 |
91 |
Here is a list of all file members with links to the files they belong to:
96 |
97 | 98 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /docs/globals_defs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: File Members 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 63 | 69 | 75 |
76 | 77 |
81 |
82 | 83 | 84 |
85 | 88 |
89 | 90 |
91 |   96 |
97 | 98 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /docs/graph_legend.md5: -------------------------------------------------------------------------------- 1 | 387ff8eb65306fa251338d3c9bd7bfff -------------------------------------------------------------------------------- /docs/graph_legend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/graph_legend.png -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: QSFML 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 62 |
63 | 64 |
68 |
69 | 70 | 71 |
72 | 75 |
76 | 77 |
78 |
79 |
QSFML
80 |
81 |
82 |

83 | About

84 |

Library that integrates SFML 2.3.x; 2.4.1+ (2.4.0 causes a X11-related problem) and Qt 5, includes event handling, universal types, useful functions (eg. key code converter) etc.

85 |

86 | Installation

87 |

88 | Compile

89 | 95 |

96 | packages

97 |

Download .deb packages from leatest github release and install using dpkg/apt etc.

98 |

99 | Usage

100 |

All header files are in QSFML subdirectory, include useful ones and remember to link with -lQSFML.

101 |

102 | Origins

103 |

Basic code, on top of which im writing QSFML, was created by "jueves", you can find original post here

104 |
105 | 106 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /docs/inherit_graph_0.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/inherit_graph_0.md5: -------------------------------------------------------------------------------- 1 | fa75b1782efad59d1abbd8326dcd30a9 -------------------------------------------------------------------------------- /docs/inherit_graph_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/inherit_graph_0.png -------------------------------------------------------------------------------- /docs/inherit_graph_1.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/inherit_graph_1.md5: -------------------------------------------------------------------------------- 1 | 4736e21e52c0b36956dcf4f88ec15afb -------------------------------------------------------------------------------- /docs/inherit_graph_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/inherit_graph_1.png -------------------------------------------------------------------------------- /docs/inherit_graph_2.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/inherit_graph_2.md5: -------------------------------------------------------------------------------- 1 | 34a7333e6f05741a28e28dbf33a0f31c -------------------------------------------------------------------------------- /docs/inherit_graph_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/inherit_graph_2.png -------------------------------------------------------------------------------- /docs/inherit_graph_3.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/inherit_graph_3.md5: -------------------------------------------------------------------------------- 1 | c7d8499c14c95a6f1300cc3f5cd45fe1 -------------------------------------------------------------------------------- /docs/inherit_graph_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/inherit_graph_3.png -------------------------------------------------------------------------------- /docs/inherit_graph_4.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/inherit_graph_4.md5: -------------------------------------------------------------------------------- 1 | 6469cafe7e8c7855d7bbf51c5a9ca034 -------------------------------------------------------------------------------- /docs/inherit_graph_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/inherit_graph_4.png -------------------------------------------------------------------------------- /docs/keyconverter_8cpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/keyconverter_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 453cdb09a7024b90aae083bb41fea6e4 -------------------------------------------------------------------------------- /docs/keyconverter_8cpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/keyconverter_8cpp__incl.png -------------------------------------------------------------------------------- /docs/keyconverter_8hpp__dep__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /docs/keyconverter_8hpp__dep__incl.md5: -------------------------------------------------------------------------------- 1 | e9f428c38399461e68ea5bdd3e66e01a -------------------------------------------------------------------------------- /docs/keyconverter_8hpp__dep__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/keyconverter_8hpp__dep__incl.png -------------------------------------------------------------------------------- /docs/keyconverter_8hpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/keyconverter_8hpp__incl.md5: -------------------------------------------------------------------------------- 1 | 1fa3b5ee0006d9229b4fceec2e9615c1 -------------------------------------------------------------------------------- /docs/keyconverter_8hpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/keyconverter_8hpp__incl.png -------------------------------------------------------------------------------- /docs/namespacemembers.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: Namespace Members 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 62 | 68 | 75 |
76 | 77 |
81 |
82 | 83 | 84 |
85 | 88 |
89 | 90 |
91 |
Here is a list of all documented namespace members with links to the namespaces they belong to:
    92 |
  • operator<<() 93 | : qsf 94 |
  • 95 |
  • QtKeyToSFML() 96 | : qsf 97 |
  • 98 |
  • QVector2f 99 | : qsf 100 |
  • 101 |
  • QVector2i 102 | : qsf 103 |
  • 104 |
  • QVector2u 105 | : qsf 106 |
  • 107 |
108 |
109 | 110 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /docs/namespacemembers_func.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: Namespace Members 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 62 | 68 | 75 |
76 | 77 |
81 |
82 | 83 | 84 |
85 | 88 |
89 | 90 |
91 |  
    92 |
  • operator<<() 93 | : qsf 94 |
  • 95 |
  • QtKeyToSFML() 96 | : qsf 97 |
  • 98 |
99 |
100 | 101 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /docs/namespacemembers_type.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: Namespace Members 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 62 | 68 | 75 |
76 | 77 |
81 |
82 | 83 | 84 |
85 | 88 |
89 | 90 |
91 |  
    92 |
  • QVector2f 93 | : qsf 94 |
  • 95 |
  • QVector2i 96 | : qsf 97 |
  • 98 |
  • QVector2u 99 | : qsf 100 |
  • 101 |
102 |
103 | 104 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /docs/namespaces.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: Namespace List 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 62 | 68 |
69 | 70 |
74 |
75 | 76 | 77 |
78 | 81 |
82 | 83 |
84 |
85 |
Namespace List
86 |
87 |
88 |
Here is a list of all documented namespaces with brief descriptions:
89 | 90 | 91 |
 NqsfNamespace containing all qsf classes and methods
92 |
93 |
94 | 95 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /docs/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/nav_f.png -------------------------------------------------------------------------------- /docs/nav_g.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/nav_g.png -------------------------------------------------------------------------------- /docs/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/nav_h.png -------------------------------------------------------------------------------- /docs/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/open.png -------------------------------------------------------------------------------- /docs/pages.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | My Project: Related Pages 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
My Project 27 |
28 |
32 |
33 | 34 | 35 | 38 | 63 |
64 | 65 |
69 |
70 | 71 | 72 |
73 | 76 |
77 | 78 |
79 |
80 |
Related Pages
81 |
82 |
83 |
Here is a list of all related documentation pages:
84 | 85 | 86 |
 Deprecated List
87 |
88 |
89 | 90 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /docs/qresourcestream_8cpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/qresourcestream_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | 503bf680d1f20f0d9b6812407bb3ab8b -------------------------------------------------------------------------------- /docs/qresourcestream_8cpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/qresourcestream_8cpp__incl.png -------------------------------------------------------------------------------- /docs/qresourcestream_8hpp__dep__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/qresourcestream_8hpp__dep__incl.md5: -------------------------------------------------------------------------------- 1 | 197a8b977ad163e7bfb5f7af62ab50c7 -------------------------------------------------------------------------------- /docs/qresourcestream_8hpp__dep__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/qresourcestream_8hpp__dep__incl.png -------------------------------------------------------------------------------- /docs/qresourcestream_8hpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/qresourcestream_8hpp__incl.md5: -------------------------------------------------------------------------------- 1 | aa84be77c44d415b8cc39a63f310c96a -------------------------------------------------------------------------------- /docs/qresourcestream_8hpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/qresourcestream_8hpp__incl.png -------------------------------------------------------------------------------- /docs/qvector2_8hpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/qvector2_8hpp__incl.md5: -------------------------------------------------------------------------------- 1 | b23e2d7841f3faae8b531f4c0110a35a -------------------------------------------------------------------------------- /docs/qvector2_8hpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/qvector2_8hpp__incl.png -------------------------------------------------------------------------------- /docs/search/all_0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['arg',['arg',['../classqsf_1_1String.html#acea78ecc5b32c7e6fa68dc81456e89f2',1,'qsf::String::arg(T var) const '],['../classqsf_1_1String.html#acf9a199e7be9171032e534691710fe49',1,'qsf::String::arg(sf::String str) const '],['../classqsf_1_1String.html#a5de74f7d04922bc1c9e5bf0392b0d8ad',1,'qsf::String::arg(String str) const ']]], 4 | ['asqimage',['asQImage',['../classqsf_1_1Image.html#a8555bbb527214155b78398ee67b56cd4',1,'qsf::Image']]] 5 | ]; 6 | -------------------------------------------------------------------------------- /docs/search/all_1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_1.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['getdeltatime',['getDeltaTime',['../classqsf_1_1QSFMLWidget.html#ae7dec46756088c96c2568ea5b8932b8e',1,'qsf::QSFMLWidget']]], 4 | ['getsize',['getSize',['../classqsf_1_1QResourceStream.html#a7c4afff1b835d701d70aa84197d964a9',1,'qsf::QResourceStream']]] 5 | ]; 6 | -------------------------------------------------------------------------------- /docs/search/all_2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_2.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['image',['Image',['../classqsf_1_1Image.html',1,'qsf']]], 4 | ['image',['Image',['../classqsf_1_1Image.html#a6f992d395f3d6a8baece9f1e6918fb2e',1,'qsf::Image::Image()'],['../classqsf_1_1Image.html#a90f25d10fd00cb6249a5d70d17c02385',1,'qsf::Image::Image(const QImage &qImg)']]], 5 | ['image_2ehpp',['Image.hpp',['../Image_8hpp.html',1,'']]], 6 | ['isinitialized',['isInitialized',['../classqsf_1_1QSFMLWidget.html#a71ad2773336bcbc83c2aca351707b909',1,'qsf::QSFMLWidget']]] 7 | ]; 8 | -------------------------------------------------------------------------------- /docs/search/all_3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_3.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['keyconverter_2ehpp',['keyconverter.hpp',['../keyconverter_8hpp.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/all_4.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_4.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['loadfromqimage',['loadFromQImage',['../classqsf_1_1Image.html#a4e2d1e123eaee27209ab5d8f1cbd0591',1,'qsf::Image']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/all_5.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_5.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['number',['number',['../classqsf_1_1String.html#a52d3e972f28b734bbf2e70f07310f6aa',1,'qsf::String']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/all_6.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_6.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['ondestroy',['OnDestroy',['../classqsf_1_1QSFMLWidget.html#ae4eac0813b72d6464d7ab5ffd55c8fed',1,'qsf::QSFMLWidget']]], 4 | ['oninit',['OnInit',['../classqsf_1_1QSFMLWidget.html#a7d8337cc6e15c1bb7fa201f0ce36fd5f',1,'qsf::QSFMLWidget']]], 5 | ['onupdate',['OnUpdate',['../classqsf_1_1QSFMLWidget.html#abe69246689f5ec8df0e13107f62a9478',1,'qsf::QSFMLWidget']]], 6 | ['open',['open',['../classqsf_1_1QResourceStream.html#aac0cb17424e6134acfbc9d842b37dfe8',1,'qsf::QResourceStream']]], 7 | ['operator_20qpoint_20const',['operator QPoint const',['../classqsf_1_1QVector2.html#a189b45a13697dd9fee19cdddd98b032c',1,'qsf::QVector2']]], 8 | ['operator_20qsize_20const',['operator QSize const',['../classqsf_1_1QVector2.html#a3ce844eb1247aa802bf4862a67d77f0d',1,'qsf::QVector2']]], 9 | ['operator_28_29',['operator()',['../classqsf_1_1QResourceStream.html#a7708d45fd53fc0f1946f08077c88d24b',1,'qsf::QResourceStream']]], 10 | ['operator_3c_3c',['operator<<',['../classqsf_1_1QResourceStream.html#a037958395778e9bb53aaaddacb049a5d',1,'qsf::QResourceStream::operator<<()'],['../classqsf_1_1QResourceStream.html#a50219191ab70fd0b4257cedb3c1ed2bd',1,'qsf::QResourceStream::operator<<()'],['../classqsf_1_1String.html#aa4feca04e7bb4aa7fb79d5d80f1378a6',1,'qsf::String::operator<<()'],['../namespaceqsf.html#afa4f06ca6f6e72f7370c4a0c14ecabfb',1,'qsf::operator<<(std::ostream &out, QResourceStream &resource)'],['../namespaceqsf.html#af55ad481695eb7970f83b40fd99f97a7',1,'qsf::operator<<(QDebug out, const QResourceStream &resource)']]], 11 | ['string_20const',['String const',['../classqsf_1_1String.html#aa6441e0084defe2eff144a09dd248561',1,'qsf::String']]] 12 | ]; 13 | -------------------------------------------------------------------------------- /docs/search/all_7.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_7.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['paintengine',['paintEngine',['../classqsf_1_1QSFMLWidget.html#a0d284f8dc545370933ce6dc7f553ea7d',1,'qsf::QSFMLWidget']]], 4 | ['paintevent',['paintEvent',['../classqsf_1_1QSFMLWidget.html#a79e8f704629a35f73c0acd426add5404',1,'qsf::QSFMLWidget']]], 5 | ['pollevent',['pollEvent',['../classqsf_1_1QSFMLWidget.html#a7c2d178995a77048652edd7aa1c08d4e',1,'qsf::QSFMLWidget']]], 6 | ['pushevent',['pushEvent',['../classqsf_1_1QSFMLWidget.html#a273a7b6154d2cde172193d929b973dba',1,'qsf::QSFMLWidget']]] 7 | ]; 8 | -------------------------------------------------------------------------------- /docs/search/all_8.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_8.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['qsfml',['QSFML',['../index.html',1,'']]], 4 | ['qresourcestream',['QResourceStream',['../classqsf_1_1QResourceStream.html#addfbb80ca88c26cc283d5d0d1fcb5a16',1,'qsf::QResourceStream']]], 5 | ['qresourcestream',['QResourceStream',['../classqsf_1_1QResourceStream.html',1,'qsf']]], 6 | ['qresourcestream_2ehpp',['qresourcestream.hpp',['../qresourcestream_8hpp.html',1,'']]], 7 | ['qsf',['qsf',['../namespaceqsf.html',1,'']]], 8 | ['qsfmlcanvas_2ehpp',['QSFMLCanvas.hpp',['../QSFMLCanvas_8hpp.html',1,'']]], 9 | ['qsfmlwidget',['QSFMLWidget',['../classqsf_1_1QSFMLWidget.html',1,'qsf']]], 10 | ['qsfmlwidget',['QSFMLWidget',['../classqsf_1_1QSFMLWidget.html#a1242828e3c69bf7f57af88f919f5572b',1,'qsf::QSFMLWidget']]], 11 | ['qtkeytosfml',['QtKeyToSFML',['../namespaceqsf.html#a112c4ed8b0d7decd581a45f348b154c9',1,'qsf']]], 12 | ['qvector2',['QVector2',['../classqsf_1_1QVector2.html#a373e6720910e9513a5ea79f3379178f5',1,'qsf::QVector2::QVector2()'],['../classqsf_1_1QVector2.html#a078b032de247ceaedf70c400e845ec04',1,'qsf::QVector2::QVector2(N x, N y)'],['../classqsf_1_1QVector2.html#a452e969747a104b76809b0478380286e',1,'qsf::QVector2::QVector2(sf::Vector2< N > vec)'],['../classqsf_1_1QVector2.html#ad7ac7dc648c36cf83da575908a643d68',1,'qsf::QVector2::QVector2(QPoint Qp)'],['../classqsf_1_1QVector2.html#ab9f579f25a58b72d00e9f91cdbb83f41',1,'qsf::QVector2::QVector2(QSize Qp)']]], 13 | ['qvector2',['QVector2',['../classqsf_1_1QVector2.html',1,'qsf']]], 14 | ['qvector2_2ehpp',['qvector2.hpp',['../qvector2_8hpp.html',1,'']]], 15 | ['qvector2f',['QVector2f',['../namespaceqsf.html#a168d33c39d41ae458693697954703742',1,'qsf']]], 16 | ['qvector2i',['QVector2i',['../namespaceqsf.html#a700396e63493d4c8e8d43f022d490f2f',1,'qsf']]], 17 | ['qvector2u',['QVector2u',['../namespaceqsf.html#a7840acf0eb63d61ef1e5d713eb5ef7d3',1,'qsf']]] 18 | ]; 19 | -------------------------------------------------------------------------------- /docs/search/all_9.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_9.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['read',['read',['../classqsf_1_1QResourceStream.html#a03380c08d87a92a1a0f37af9b0c0fda1',1,'qsf::QResourceStream']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/all_a.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_a.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['seek',['seek',['../classqsf_1_1QResourceStream.html#a8559d766a04d82f65ae57fe90f4cf824',1,'qsf::QResourceStream']]], 4 | ['showevent',['showEvent',['../classqsf_1_1QSFMLWidget.html#a6a452dae39e0ad17edc6b8a1fb5b7ab5',1,'qsf::QSFMLWidget']]], 5 | ['string',['String',['../classqsf_1_1String.html#a2f3706c035f72b95d0115735b044d146',1,'qsf::String::String(T obj)'],['../classqsf_1_1String.html#ad2182041e1c605d446b8c49d11464fea',1,'qsf::String::String(std::string obj)'],['../classqsf_1_1String.html#acf5a50f89e75ccef54a729118bad7c34',1,'qsf::String::String(sf::String str)']]], 6 | ['string',['String',['../classqsf_1_1String.html',1,'qsf']]], 7 | ['string_2ehpp',['string.hpp',['../string_8hpp.html',1,'']]] 8 | ]; 9 | -------------------------------------------------------------------------------- /docs/search/all_b.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_b.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['tell',['tell',['../classqsf_1_1QResourceStream.html#a980b1fc9e80ddb77e6e6e552e1164256',1,'qsf::QResourceStream']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/all_c.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_c.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['_7eqresourcestream',['~QResourceStream',['../classqsf_1_1QResourceStream.html#a5bea8c4481aec48f45d10c0b98e366a9',1,'qsf::QResourceStream']]], 4 | ['_7eqsfmlwidget',['~QSFMLWidget',['../classqsf_1_1QSFMLWidget.html#a4eae9c14ac6a8389edcd5949e154f337',1,'qsf::QSFMLWidget']]] 5 | ]; 6 | -------------------------------------------------------------------------------- /docs/search/all_d.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/all_d.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['_7eqresourcestream',['~QResourceStream',['../classqsf_1_1QResourceStream.html#a5bea8c4481aec48f45d10c0b98e366a9',1,'qsf::QResourceStream']]], 4 | ['_7eqsfmlwidget',['~QSFMLWidget',['../classqsf_1_1QSFMLWidget.html#a4eae9c14ac6a8389edcd5949e154f337',1,'qsf::QSFMLWidget']]] 5 | ]; 6 | -------------------------------------------------------------------------------- /docs/search/classes_0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/classes_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['image',['Image',['../classqsf_1_1Image.html',1,'qsf']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/classes_1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/classes_1.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['qresourcestream',['QResourceStream',['../classqsf_1_1QResourceStream.html',1,'qsf']]], 4 | ['qsfmlwidget',['QSFMLWidget',['../classqsf_1_1QSFMLWidget.html',1,'qsf']]], 5 | ['qvector2',['QVector2',['../classqsf_1_1QVector2.html',1,'qsf']]] 6 | ]; 7 | -------------------------------------------------------------------------------- /docs/search/classes_2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/classes_2.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['string',['String',['../classqsf_1_1String.html',1,'qsf']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/search/close.png -------------------------------------------------------------------------------- /docs/search/defines_0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/defines_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['keyconverter_5fcpp',['KEYCONVERTER_CPP',['../keyconverter_8cpp.html#a954eab6459b9ce8a2c625641607c10ab',1,'keyconverter.cpp']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/files_0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/files_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['image_2ehpp',['Image.hpp',['../Image_8hpp.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/files_1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/files_1.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['keyconverter_2ehpp',['keyconverter.hpp',['../keyconverter_8hpp.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/files_2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/files_2.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['qresourcestream_2ehpp',['qresourcestream.hpp',['../qresourcestream_8hpp.html',1,'']]], 4 | ['qsfmlcanvas_2ehpp',['QSFMLCanvas.hpp',['../QSFMLCanvas_8hpp.html',1,'']]], 5 | ['qvector2_2ehpp',['qvector2.hpp',['../qvector2_8hpp.html',1,'']]] 6 | ]; 7 | -------------------------------------------------------------------------------- /docs/search/files_3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/files_3.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['string_2ehpp',['string.hpp',['../string_8hpp.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/functions_0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['arg',['arg',['../classqsf_1_1String.html#acea78ecc5b32c7e6fa68dc81456e89f2',1,'qsf::String::arg(T var) const '],['../classqsf_1_1String.html#acf9a199e7be9171032e534691710fe49',1,'qsf::String::arg(sf::String str) const '],['../classqsf_1_1String.html#a5de74f7d04922bc1c9e5bf0392b0d8ad',1,'qsf::String::arg(String str) const ']]], 4 | ['asqimage',['asQImage',['../classqsf_1_1Image.html#a8555bbb527214155b78398ee67b56cd4',1,'qsf::Image']]] 5 | ]; 6 | -------------------------------------------------------------------------------- /docs/search/functions_1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_1.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['getdeltatime',['getDeltaTime',['../classqsf_1_1QSFMLWidget.html#ae7dec46756088c96c2568ea5b8932b8e',1,'qsf::QSFMLWidget']]], 4 | ['getsize',['getSize',['../classqsf_1_1QResourceStream.html#a7c4afff1b835d701d70aa84197d964a9',1,'qsf::QResourceStream']]] 5 | ]; 6 | -------------------------------------------------------------------------------- /docs/search/functions_2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_2.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['image',['Image',['../classqsf_1_1Image.html#a6f992d395f3d6a8baece9f1e6918fb2e',1,'qsf::Image::Image()'],['../classqsf_1_1Image.html#a90f25d10fd00cb6249a5d70d17c02385',1,'qsf::Image::Image(const QImage &qImg)']]], 4 | ['isinitialized',['isInitialized',['../classqsf_1_1QSFMLWidget.html#a71ad2773336bcbc83c2aca351707b909',1,'qsf::QSFMLWidget']]] 5 | ]; 6 | -------------------------------------------------------------------------------- /docs/search/functions_3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_3.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['loadfromqimage',['loadFromQImage',['../classqsf_1_1Image.html#a4e2d1e123eaee27209ab5d8f1cbd0591',1,'qsf::Image']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/functions_4.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_4.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['number',['number',['../classqsf_1_1String.html#a52d3e972f28b734bbf2e70f07310f6aa',1,'qsf::String']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/functions_5.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_5.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['ondestroy',['OnDestroy',['../classqsf_1_1QSFMLWidget.html#ae4eac0813b72d6464d7ab5ffd55c8fed',1,'qsf::QSFMLWidget']]], 4 | ['oninit',['OnInit',['../classqsf_1_1QSFMLWidget.html#a7d8337cc6e15c1bb7fa201f0ce36fd5f',1,'qsf::QSFMLWidget']]], 5 | ['onupdate',['OnUpdate',['../classqsf_1_1QSFMLWidget.html#abe69246689f5ec8df0e13107f62a9478',1,'qsf::QSFMLWidget']]], 6 | ['open',['open',['../classqsf_1_1QResourceStream.html#aac0cb17424e6134acfbc9d842b37dfe8',1,'qsf::QResourceStream']]], 7 | ['operator_20qpoint_20const',['operator QPoint const',['../classqsf_1_1QVector2.html#a189b45a13697dd9fee19cdddd98b032c',1,'qsf::QVector2']]], 8 | ['operator_20qsize_20const',['operator QSize const',['../classqsf_1_1QVector2.html#a3ce844eb1247aa802bf4862a67d77f0d',1,'qsf::QVector2']]], 9 | ['operator_28_29',['operator()',['../classqsf_1_1QResourceStream.html#a7708d45fd53fc0f1946f08077c88d24b',1,'qsf::QResourceStream']]], 10 | ['operator_3c_3c',['operator<<',['../namespaceqsf.html#afa4f06ca6f6e72f7370c4a0c14ecabfb',1,'qsf::operator<<(std::ostream &out, QResourceStream &resource)'],['../namespaceqsf.html#af55ad481695eb7970f83b40fd99f97a7',1,'qsf::operator<<(QDebug out, const QResourceStream &resource)']]], 11 | ['string_20const',['String const',['../classqsf_1_1String.html#aa6441e0084defe2eff144a09dd248561',1,'qsf::String']]] 12 | ]; 13 | -------------------------------------------------------------------------------- /docs/search/functions_6.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_6.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['paintengine',['paintEngine',['../classqsf_1_1QSFMLWidget.html#a0d284f8dc545370933ce6dc7f553ea7d',1,'qsf::QSFMLWidget']]], 4 | ['paintevent',['paintEvent',['../classqsf_1_1QSFMLWidget.html#a79e8f704629a35f73c0acd426add5404',1,'qsf::QSFMLWidget']]], 5 | ['pollevent',['pollEvent',['../classqsf_1_1QSFMLWidget.html#a7c2d178995a77048652edd7aa1c08d4e',1,'qsf::QSFMLWidget']]], 6 | ['pushevent',['pushEvent',['../classqsf_1_1QSFMLWidget.html#a273a7b6154d2cde172193d929b973dba',1,'qsf::QSFMLWidget']]] 7 | ]; 8 | -------------------------------------------------------------------------------- /docs/search/functions_7.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_7.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['qresourcestream',['QResourceStream',['../classqsf_1_1QResourceStream.html#addfbb80ca88c26cc283d5d0d1fcb5a16',1,'qsf::QResourceStream']]], 4 | ['qsfmlwidget',['QSFMLWidget',['../classqsf_1_1QSFMLWidget.html#a1242828e3c69bf7f57af88f919f5572b',1,'qsf::QSFMLWidget']]], 5 | ['qtkeytosfml',['QtKeyToSFML',['../namespaceqsf.html#a112c4ed8b0d7decd581a45f348b154c9',1,'qsf']]], 6 | ['qvector2',['QVector2',['../classqsf_1_1QVector2.html#a373e6720910e9513a5ea79f3379178f5',1,'qsf::QVector2::QVector2()'],['../classqsf_1_1QVector2.html#a078b032de247ceaedf70c400e845ec04',1,'qsf::QVector2::QVector2(N x, N y)'],['../classqsf_1_1QVector2.html#a452e969747a104b76809b0478380286e',1,'qsf::QVector2::QVector2(sf::Vector2< N > vec)'],['../classqsf_1_1QVector2.html#ad7ac7dc648c36cf83da575908a643d68',1,'qsf::QVector2::QVector2(QPoint Qp)'],['../classqsf_1_1QVector2.html#ab9f579f25a58b72d00e9f91cdbb83f41',1,'qsf::QVector2::QVector2(QSize Qp)']]] 7 | ]; 8 | -------------------------------------------------------------------------------- /docs/search/functions_8.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_8.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['read',['read',['../classqsf_1_1QResourceStream.html#a03380c08d87a92a1a0f37af9b0c0fda1',1,'qsf::QResourceStream']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/functions_9.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_9.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['seek',['seek',['../classqsf_1_1QResourceStream.html#a8559d766a04d82f65ae57fe90f4cf824',1,'qsf::QResourceStream']]], 4 | ['showevent',['showEvent',['../classqsf_1_1QSFMLWidget.html#a6a452dae39e0ad17edc6b8a1fb5b7ab5',1,'qsf::QSFMLWidget']]], 5 | ['string',['String',['../classqsf_1_1String.html#a2f3706c035f72b95d0115735b044d146',1,'qsf::String::String(T obj)'],['../classqsf_1_1String.html#ad2182041e1c605d446b8c49d11464fea',1,'qsf::String::String(std::string obj)'],['../classqsf_1_1String.html#acf5a50f89e75ccef54a729118bad7c34',1,'qsf::String::String(sf::String str)']]] 6 | ]; 7 | -------------------------------------------------------------------------------- /docs/search/functions_a.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_a.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['tell',['tell',['../classqsf_1_1QResourceStream.html#a980b1fc9e80ddb77e6e6e552e1164256',1,'qsf::QResourceStream']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/functions_b.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/functions_b.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['_7eqresourcestream',['~QResourceStream',['../classqsf_1_1QResourceStream.html#a5bea8c4481aec48f45d10c0b98e366a9',1,'qsf::QResourceStream']]], 4 | ['_7eqsfmlwidget',['~QSFMLWidget',['../classqsf_1_1QSFMLWidget.html#a4eae9c14ac6a8389edcd5949e154f337',1,'qsf::QSFMLWidget']]] 5 | ]; 6 | -------------------------------------------------------------------------------- /docs/search/mag_sel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/search/mag_sel.png -------------------------------------------------------------------------------- /docs/search/namespaces_0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/namespaces_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['qsf',['qsf',['../namespaceqsf.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/nomatches.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
No Matches
10 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/search/pages_0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/pages_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['qsfml',['QSFML',['../index.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/pages_1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/pages_1.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['qsfml',['QSFML',['../index.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/related_0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/related_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['operator_3c_3c',['operator<<',['../classqsf_1_1QResourceStream.html#a037958395778e9bb53aaaddacb049a5d',1,'qsf::QResourceStream::operator<<()'],['../classqsf_1_1QResourceStream.html#a50219191ab70fd0b4257cedb3c1ed2bd',1,'qsf::QResourceStream::operator<<()'],['../classqsf_1_1String.html#aa4feca04e7bb4aa7fb79d5d80f1378a6',1,'qsf::String::operator<<()']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/search_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/search/search_l.png -------------------------------------------------------------------------------- /docs/search/search_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/search/search_m.png -------------------------------------------------------------------------------- /docs/search/search_r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/search/search_r.png -------------------------------------------------------------------------------- /docs/search/searchdata.js: -------------------------------------------------------------------------------- 1 | var indexSectionsWithContent = 2 | { 3 | 0: "agiklnopqrst~", 4 | 1: "iqs", 5 | 2: "q", 6 | 3: "ikqs", 7 | 4: "agilnopqrst~", 8 | 5: "q", 9 | 6: "o", 10 | 7: "q" 11 | }; 12 | 13 | var indexSectionNames = 14 | { 15 | 0: "all", 16 | 1: "classes", 17 | 2: "namespaces", 18 | 3: "files", 19 | 4: "functions", 20 | 5: "typedefs", 21 | 6: "related", 22 | 7: "pages" 23 | }; 24 | 25 | var indexSectionLabels = 26 | { 27 | 0: "All", 28 | 1: "Classes", 29 | 2: "Namespaces", 30 | 3: "Files", 31 | 4: "Functions", 32 | 5: "Typedefs", 33 | 6: "Friends", 34 | 7: "Pages" 35 | }; 36 | 37 | -------------------------------------------------------------------------------- /docs/search/typedefs_0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/typedefs_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['qvector2f',['QVector2f',['../namespaceqsf.html#a168d33c39d41ae458693697954703742',1,'qsf']]], 4 | ['qvector2i',['QVector2i',['../namespaceqsf.html#a700396e63493d4c8e8d43f022d490f2f',1,'qsf']]], 5 | ['qvector2u',['QVector2u',['../namespaceqsf.html#a7840acf0eb63d61ef1e5d713eb5ef7d3',1,'qsf']]] 6 | ]; 7 | -------------------------------------------------------------------------------- /docs/search/variables_0.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/variables_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['frametime',['frameTime',['../classqsf_1_1QSFMLWidget.html#ab3ea8e7ce546da3138574a9183f572d0',1,'qsf::QSFMLWidget']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/search/variables_1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
Loading...
12 |
13 | 16 |
Searching...
17 |
No Matches
18 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/search/variables_1.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['initialized',['initialized',['../classqsf_1_1QSFMLWidget.html#a3e276a399c6ba784e93d5119ed198ddc',1,'qsf::QSFMLWidget']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /docs/splitbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/splitbar.png -------------------------------------------------------------------------------- /docs/string_8cpp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | QSFML: string.cpp File Reference 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 | 25 | 29 | 30 | 31 |
26 |
QSFML 27 |
28 |
32 |
33 | 34 | 35 | 38 | 63 | 69 | 70 |
74 |
75 | 76 | 77 |
78 | 81 |
82 | 83 |
84 |
85 |
86 | Namespaces
87 |
88 |
string.cpp File Reference
89 |
90 |
91 |
#include "string.hpp"
92 |
93 | Include dependency graph for string.cpp:
94 |
95 |
96 | 97 | 98 | 99 |
100 |
101 | 103 | 104 | 105 | 106 |

102 | Namespaces

 qsf
 Namespace containing all qsf classes and methods.
 
107 |
108 | 109 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /docs/string_8cpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/string_8cpp__incl.md5: -------------------------------------------------------------------------------- 1 | ebd53cc6c5a7151011f56c6664148ee5 -------------------------------------------------------------------------------- /docs/string_8cpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/string_8cpp__incl.png -------------------------------------------------------------------------------- /docs/string_8hpp__dep__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/string_8hpp__dep__incl.md5: -------------------------------------------------------------------------------- 1 | f5b3eff675d0232d4a4a258df5c00e87 -------------------------------------------------------------------------------- /docs/string_8hpp__dep__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/string_8hpp__dep__incl.png -------------------------------------------------------------------------------- /docs/string_8hpp__incl.map: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/string_8hpp__incl.md5: -------------------------------------------------------------------------------- 1 | 56253b02815a0bee1960b7fda9371b2c -------------------------------------------------------------------------------- /docs/string_8hpp__incl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/string_8hpp__incl.png -------------------------------------------------------------------------------- /docs/sync_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/sync_off.png -------------------------------------------------------------------------------- /docs/sync_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/sync_on.png -------------------------------------------------------------------------------- /docs/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/tab_a.png -------------------------------------------------------------------------------- /docs/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/tab_b.png -------------------------------------------------------------------------------- /docs/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/tab_h.png -------------------------------------------------------------------------------- /docs/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/docs/tab_s.png -------------------------------------------------------------------------------- /docs/tabs.css: -------------------------------------------------------------------------------- 1 | .tabs, .tabs2, .tabs3 { 2 | background-image: url('tab_b.png'); 3 | width: 100%; 4 | z-index: 101; 5 | font-size: 13px; 6 | font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; 7 | } 8 | 9 | .tabs2 { 10 | font-size: 10px; 11 | } 12 | .tabs3 { 13 | font-size: 9px; 14 | } 15 | 16 | .tablist { 17 | margin: 0; 18 | padding: 0; 19 | display: table; 20 | } 21 | 22 | .tablist li { 23 | float: left; 24 | display: table-cell; 25 | background-image: url('tab_b.png'); 26 | line-height: 36px; 27 | list-style: none; 28 | } 29 | 30 | .tablist a { 31 | display: block; 32 | padding: 0 20px; 33 | font-weight: bold; 34 | background-image:url('tab_s.png'); 35 | background-repeat:no-repeat; 36 | background-position:right; 37 | color: #283A5D; 38 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); 39 | text-decoration: none; 40 | outline: none; 41 | } 42 | 43 | .tabs3 .tablist a { 44 | padding: 0 10px; 45 | } 46 | 47 | .tablist a:hover { 48 | background-image: url('tab_h.png'); 49 | background-repeat:repeat-x; 50 | color: #fff; 51 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 52 | text-decoration: none; 53 | } 54 | 55 | .tablist li.current a { 56 | background-image: url('tab_a.png'); 57 | background-repeat:repeat-x; 58 | color: #fff; 59 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 60 | } 61 | -------------------------------------------------------------------------------- /examples/date/date.pro: -------------------------------------------------------------------------------- 1 | # =========================================================== # 2 | # QSFML (c) Kamil Koczurek | koczurekk@gmail.com # 3 | # GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html # 4 | # =========================================================== # 5 | 6 | DESTDIR=build 7 | OBJECTS_DIR=build/obj 8 | 9 | QT += core gui 10 | 11 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 12 | 13 | LIBS += -lQSFML -lsfml-graphics -lsfml-window -lsfml-system 14 | QMAKE_CXXFLAGS += -std=gnu++11 15 | 16 | TARGET = date 17 | TEMPLATE = app 18 | 19 | SOURCES += main.cpp\ 20 | mainwindow.cpp \ 21 | datewidget.cpp 22 | 23 | HEADERS += mainwindow.h \ 24 | datewidget.hpp 25 | 26 | FORMS += mainwindow.ui 27 | 28 | RESOURCES += \ 29 | resources/resources.qrc 30 | -------------------------------------------------------------------------------- /examples/date/datewidget.cpp: -------------------------------------------------------------------------------- 1 | #include "datewidget.hpp" 2 | 3 | DateWidget::DateWidget(QWidget *parent, const QPoint &Position, const QSize &Size) 4 | : qsf::QSFMLWidget(parent, Position, Size, 50), 5 | widgetSize(Size) 6 | { } 7 | 8 | void DateWidget::OnInit() { 9 | /* Load font from QResourceStream */ 10 | font.loadFromStream(fontStream("://BitFont.ttf")); 11 | 12 | /* Set font properties */ 13 | text.setFont(font); 14 | text.setCharacterSize(50); 15 | text.setFillColor({20, 240, 20}); 16 | } 17 | 18 | void DateWidget::OnUpdate() { 19 | /* Catch up with widget size */ 20 | sf::RenderWindow::setSize(qsf::QVector2u(static_cast(QWidget::parent())->size())); 21 | 22 | for(sf::Event ev; this->pollEvent(ev);) { 23 | if(ev.type == sf::Event::MouseButtonPressed) { 24 | std::cout << "Click: [" << ev.mouseButton.x << ", " << ev.mouseButton.y << "]" << std::endl; 25 | } 26 | } 27 | 28 | /* Get & update view */ 29 | sf::View view = this->getDefaultView(); 30 | view.setSize({ 31 | this->getSize().x, 32 | this->getSize().y 33 | }); 34 | 35 | /* Apply view */ 36 | this->setView(view); 37 | 38 | /* Clear */ 39 | clear({20, 20, 20}); 40 | 41 | /* Set text string and position */ 42 | text.setString(qsf::String(QDateTime::currentDateTime().toString())); 43 | text.setPosition({(widgetSize.x - text.getGlobalBounds().width) / 2, text.getPosition().y}); 44 | 45 | /* Draw text */ 46 | draw(text); 47 | } 48 | 49 | void DateWidget::OnDestroy() { 50 | /* Print msg */ 51 | std::cout << "\"You killed me!\"\n ~" << std::hex << static_cast(this) << std::endl; 52 | } 53 | -------------------------------------------------------------------------------- /examples/date/datewidget.hpp: -------------------------------------------------------------------------------- 1 | #ifndef DATEWIDGET_H 2 | #define DATEWIDGET_H 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | class DateWidget 15 | : public qsf::QSFMLWidget 16 | { 17 | /* Stream loading data from QResource */ 18 | qsf::QResourceStream fontStream; 19 | 20 | /* Needed to locate text */ 21 | qsf::QVector2i widgetSize; 22 | 23 | /* Text & font */ 24 | sf::Font font; 25 | sf::Text text; 26 | 27 | public: 28 | DateWidget(QWidget *parent, const QPoint& Position, const QSize& Size); 29 | virtual ~DateWidget() { 30 | /* Half-explicit call is required to use OnDestroy method */ 31 | OnDestroy(); 32 | } 33 | 34 | /* Called on init */ 35 | virtual void OnInit(); 36 | 37 | /* Called on update */ 38 | virtual void OnUpdate(); 39 | 40 | /* Called when widget is being destroyed */ 41 | virtual void OnDestroy(); 42 | }; 43 | 44 | #endif // DATEWIDGET_H 45 | -------------------------------------------------------------------------------- /examples/date/main.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include 3 | 4 | #include "QSFML/qvector2.hpp" 5 | #include "datewidget.hpp" 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | QApplication a(argc, argv); 10 | MainWindow w; 11 | w.show(); 12 | 13 | DateWidget date(&w, qsf::QVector2i(0, 0), qsf::QVector2i(450, 75)); 14 | date.show(); 15 | 16 | return a.exec(); 17 | } 18 | -------------------------------------------------------------------------------- /examples/date/mainwindow.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include "ui_mainwindow.h" 3 | 4 | MainWindow::MainWindow(QWidget *parent) : 5 | QMainWindow(parent), 6 | ui(new Ui::MainWindow) 7 | { 8 | ui->setupUi(this); 9 | } 10 | 11 | MainWindow::~MainWindow() 12 | { 13 | delete ui; 14 | } 15 | -------------------------------------------------------------------------------- /examples/date/mainwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINWINDOW_H 2 | #define MAINWINDOW_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class MainWindow; 8 | } 9 | 10 | class MainWindow : public QMainWindow 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit MainWindow(QWidget *parent = 0); 16 | ~MainWindow(); 17 | 18 | private: 19 | Ui::MainWindow *ui; 20 | }; 21 | 22 | #endif // MAINWINDOW_H 23 | -------------------------------------------------------------------------------- /examples/date/mainwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | MainWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 450 10 | 75 11 | 12 | 13 | 14 | MainWindow 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /examples/date/resources/BitFont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/examples/date/resources/BitFont.ttf -------------------------------------------------------------------------------- /examples/date/resources/resources.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | BitFont.ttf 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/spinning-numbers/main.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include "testwidget.h" 3 | #include 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | MainWindow w; 9 | w.show(); 10 | 11 | TestWidget Tw(&w, qsf::QVector2u(0, 0), qsf::QVector2u(400, 300)); 12 | Tw.show(); 13 | 14 | return a.exec(); 15 | } 16 | -------------------------------------------------------------------------------- /examples/spinning-numbers/mainwindow.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include "ui_mainwindow.h" 3 | 4 | MainWindow::MainWindow(QWidget *parent) : 5 | QMainWindow(parent), 6 | ui(new Ui::MainWindow) 7 | { 8 | ui->setupUi(this); 9 | } 10 | 11 | MainWindow::~MainWindow() 12 | { 13 | delete ui; 14 | } 15 | -------------------------------------------------------------------------------- /examples/spinning-numbers/mainwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINWINDOW_H 2 | #define MAINWINDOW_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class MainWindow; 8 | } 9 | 10 | class MainWindow : public QMainWindow 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit MainWindow(QWidget *parent = 0); 16 | ~MainWindow(); 17 | 18 | private: 19 | Ui::MainWindow *ui; 20 | }; 21 | 22 | #endif // MAINWINDOW_H 23 | -------------------------------------------------------------------------------- /examples/spinning-numbers/mainwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | MainWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | MainWindow 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /examples/spinning-numbers/resources/BitFont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/examples/spinning-numbers/resources/BitFont.ttf -------------------------------------------------------------------------------- /examples/spinning-numbers/resources/msg.txt: -------------------------------------------------------------------------------- 1 | This is a sample message. 2 | Well, it's multi-line message. 3 | 4 | And it uses some magical characters: πœęźćż. 5 | Wow. 6 | -------------------------------------------------------------------------------- /examples/spinning-numbers/resources/resources.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | BitFont.ttf 4 | msg.txt 5 | 6 | 7 | -------------------------------------------------------------------------------- /examples/spinning-numbers/spinning-numbers.pro: -------------------------------------------------------------------------------- 1 | # =========================================================== # 2 | # QSFML (c) Kamil Koczurek | koczurekk@gmail.com # 3 | # GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html # 4 | # =========================================================== # 5 | 6 | DESTDIR=build 7 | OBJECTS_DIR=build/obj 8 | 9 | QT += core gui 10 | LIBS += -lsfml-graphics-d -lsfml-window-d -lsfml-system-d -lQSFML 11 | QMAKE_CXXFLAGS += -std=c++11 -Wno-sign-compare -g 12 | 13 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 14 | 15 | TARGET = spinning-numbers 16 | TEMPLATE = app 17 | 18 | SOURCES += main.cpp\ 19 | mainwindow.cpp \ 20 | testwidget.cpp 21 | testwidget.cpp 22 | 23 | HEADERS += mainwindow.h \ 24 | testwidget.h 25 | 26 | FORMS += mainwindow.ui 27 | 28 | RESOURCES += \ 29 | resources/resources.qrc 30 | -------------------------------------------------------------------------------- /examples/spinning-numbers/testwidget.cpp: -------------------------------------------------------------------------------- 1 | #include "testwidget.h" 2 | 3 | TestWidget::TestWidget(QMainWindow* Parent, const QPoint& Position, const QSize& Size) 4 | : QSFMLWidget(Parent, Position, Size, 0) 5 | { 6 | TextColorR = 63; 7 | TextColorG = 165; 8 | 9 | colorModR = 1; 10 | colorModG = 1; 11 | 12 | counter = 0; 13 | } 14 | 15 | TestWidget::~TestWidget() 16 | { } 17 | 18 | void TestWidget::OnInit() 19 | { 20 | qsf::QResourceStream msgStream; 21 | if(msgStream.open("://msg.txt")) { 22 | std::cout << msgStream << std::endl; 23 | } else { 24 | std::cerr << "Could not open resource!" << std::endl; 25 | } 26 | 27 | bitFont.loadFromStream(fontStream("://BitFont.ttf")); 28 | 29 | bitText.setFont(bitFont); 30 | bitText.setCharacterSize(280); 31 | bitText.setPosition(qsf::QVector2f(200, 140)); 32 | 33 | bitText.setString("0"); 34 | bitText.setOrigin(bitText.getLocalBounds().width / 2.f, bitText.getLocalBounds().height / 2.f + 40.f); 35 | } 36 | 37 | void TestWidget::OnUpdate() 38 | { 39 | /* Match widget size with window size */ 40 | setSize(qsf::QVector2u(((QWidget*) parent())->size())); 41 | for(sf::Event ev; this->pollEvent(ev);) { 42 | if(ev.type == sf::Event::Resized) { 43 | std::cout << "Resized: [" << ev.size.width << "; " << ev.size.height << "]" << std::endl; 44 | } 45 | } 46 | 47 | clear({0, 0, 0}); 48 | 49 | float seconds = this->getDeltaTime().asSeconds(); 50 | 51 | TextColorR += seconds * 27.f * colorModR; 52 | TextColorG += seconds * 31.f * colorModG; 53 | 54 | if(TextColorR > 250) 55 | colorModR = -1; 56 | else if(TextColorR < 5) 57 | colorModR = 1; 58 | 59 | if(TextColorG > 250) 60 | colorModG = -1; 61 | else if(TextColorG < 5) 62 | colorModG = 1; 63 | 64 | bitText.rotate(180); 65 | if(bitText.getRotation() + seconds * 80.f > 360) 66 | counter++; 67 | bitText.rotate(180); 68 | 69 | bitText.rotate(seconds * 80.f); 70 | bitText.setColor({sf::Uint8(TextColorR), 71 | sf::Uint8(TextColorG), 72 | sf::Uint8(255 - TextColorG)}); 73 | 74 | float scale = (bitText.getRotation() <= 180 ? bitText.getRotation() : 180.f - (bitText.getRotation() - 180.f)) / 180; 75 | bitText.setScale(1.f - scale, 1.f - scale); 76 | 77 | bitText.setString(qsf::String::number(counter)); 78 | bitText.setOrigin(bitText.getLocalBounds().width / 2.f, bitText.getLocalBounds().height / 2.f + 100.f); 79 | 80 | draw(bitText); 81 | } 82 | -------------------------------------------------------------------------------- /examples/spinning-numbers/testwidget.h: -------------------------------------------------------------------------------- 1 | #ifndef TESTWIDGET_H 2 | #define TESTWIDGET_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #include 10 | #include 11 | 12 | #include 13 | #include 14 | 15 | class TestWidget 16 | : public qsf::QSFMLWidget 17 | { 18 | Q_OBJECT 19 | 20 | public: 21 | TestWidget(QMainWindow* Parent, const QPoint& Position, const QSize& Size); 22 | ~TestWidget(); 23 | 24 | void OnInit(); 25 | void OnUpdate(); 26 | 27 | private: 28 | qsf::QResourceStream fontStream; 29 | 30 | size_t fontSize; 31 | 32 | sf::Font bitFont; 33 | sf::Text bitText; 34 | 35 | float TextColorR; 36 | float TextColorG; 37 | 38 | int colorModR; 39 | int colorModG; 40 | 41 | int counter; 42 | }; 43 | 44 | #endif // TESTWIDGET_H 45 | -------------------------------------------------------------------------------- /logo/qsfml-2x3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/logo/qsfml-2x3.png -------------------------------------------------------------------------------- /logo/qsfml-original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/logo/qsfml-original.png -------------------------------------------------------------------------------- /logo/qsfml-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kamirr/QSFML/0985e9f43265e604de33956781adc688cf5f61e2/logo/qsfml-small.png --------------------------------------------------------------------------------