txt.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2016 RWS Inc, All Rights Reserved
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of version 2 of the GNU General Public License as published by
  7. // the Free Software Foundation
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License along
  15. // with this program; if not, write to the Free Software Foundation, Inc.,
  16. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. //
  18. #ifndef TXT_H
  19. #define TXT_H
  20. //////////////////////////////////////////////////////////////////////////////
  21. // Please see the CPP file for an explanation of this API.
  22. //////////////////////////////////////////////////////////////////////////////
  23. //////////////////////////////////////////////////////////////////////////////
  24. // Headers.
  25. //////////////////////////////////////////////////////////////////////////////
  26. #include "System.h"
  27. // If PATHS_IN_INCLUDES macro is defined, we can utilized relative
  28. // paths to a header file. In this case we generally go off of our
  29. // RSPiX root directory. System.h MUST be included before this macro
  30. // is evaluated. System.h is the header that, based on the current
  31. // platform (or more so in this case on the compiler), defines
  32. // PATHS_IN_INCLUDES. Blue.h includes system.h so you can include that
  33. // instead.
  34. #ifdef PATHS_IN_INCLUDES
  35. #include "ORANGE/GUI/guiItem.h"
  36. #else
  37. #include "GuiItem.h"
  38. #endif // PATHS_IN_INCLUDES
  39. //////////////////////////////////////////////////////////////////////////////
  40. // Macros.
  41. //////////////////////////////////////////////////////////////////////////////
  42. //////////////////////////////////////////////////////////////////////////////
  43. // Typedefs.
  44. //////////////////////////////////////////////////////////////////////////////
  45. //////////////////////////////////////////////////////////////////////////////
  46. class RTxt : public RGuiItem
  47. {
  48. public: // Construction/Destruction.
  49. // Default constructor.
  50. RTxt(void);
  51. // Destructor.
  52. ~RTxt(void);
  53. //////////////////////////////////////////////////////////////////////////////
  54. public: // Methods.
  55. ////////////////////////////////////////////////////////////////////////
  56. // Methods.
  57. ////////////////////////////////////////////////////////////////////////
  58. // Compose item.
  59. virtual // If you override this, call this base if possible.
  60. void Compose( // Returns nothing.
  61. RImage* pim = NULL); // Dest image, uses m_im if NULL.
  62. ////////////////////////////////////////////////////////////////////////
  63. // Querries.
  64. ////////////////////////////////////////////////////////////////////////
  65. //////////////////////////////////////////////////////////////////////////////
  66. public: // Static
  67. //////////////////////////////////////////////////////////////////////////////
  68. public: // Querries.
  69. //////////////////////////////////////////////////////////////////////////////
  70. protected: // Internal functions.
  71. //////////////////////////////////////////////////////////////////////////////
  72. public: // Member variables.
  73. protected: // Internal typedefs.
  74. protected: // Protected member variables.
  75. };
  76. #endif // TXT_H
  77. //////////////////////////////////////////////////////////////////////////////
  78. // EOF
  79. //////////////////////////////////////////////////////////////////////////////