1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: lyt_Bounding.h 4 5 Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain proprietary 8 information of Nintendo and/or its licensed developers and are protected by 9 national and international copyright laws. They may not be disclosed to third 10 parties or copied or duplicated in any form, in whole or in part, without the 11 prior written consent of Nintendo. 12 13 The content herein is highly confidential and should be handled accordingly. 14 15 $Revision: 31311 $ 16 *---------------------------------------------------------------------------*/ 17 18 #ifndef NW_LYT_BOUNDING_H_ 19 #define NW_LYT_BOUNDING_H_ 20 21 #include <nw/ut/ut_RuntimeTypeInfo.h> 22 23 #include <nw/lyt/lyt_Config.h> 24 #include <nw/lyt/lyt_Pane.h> 25 26 namespace nw 27 { 28 namespace lyt 29 { 30 31 struct ResBlockSet; 32 class DrawInfo; 33 34 //--------------------------------------------------------------------------- 35 //! :category 描画 36 //! 37 //! @brief アニメーションの基底クラスです。 38 //! 39 //! @since 2009/09/18 初版。 40 //--------------------------------------------------------------------------- 41 class Bounding : public Pane 42 { 43 typedef Pane Base; 44 45 public: 46 //! 実行時型情報です。 47 NW_UT_RUNTIME_TYPEINFO; 48 49 //---------------------------------------- 50 //! @name コンストラクタ/デストラクタ 51 //@{ 52 53 //! @brief コンストラクタです。 54 //! 55 //! @since 2009/09/18 初版。 56 //! Bounding()57 Bounding() 58 {} 59 60 //! @brief コンストラクタです。 61 //! 62 //! @details 63 //! size で指定したサイズのペインを生成します。 64 //! 65 //! @param size ペインのサイズです。 66 //! 67 //! @since 2009/09/18 初版。 68 //! Bounding(const Size & size)69 Bounding(const Size& size) 70 { 71 SetSize(size); 72 } 73 74 //! @brief コンストラクタです。 75 //! 76 //! @details 77 //! pBlock で指定したリソースからペインを生成します。 78 //! 79 //! @param pBlock 境界ペインデータブロックへのポインタです。 80 //! @param resBlockSet ResBlockSet 構造体への参照です。 81 //! 82 //! @since 2009/09/18 初版。 83 //! 84 Bounding( 85 const res::Bounding* pBlock, 86 const ResBlockSet& resBlockSet); 87 88 //! @brief デストラクタです。 89 //! 90 //! @since 2009/09/18 初版。 91 //! 92 virtual ~Bounding(); 93 94 //@} 95 96 protected: 97 98 #ifdef NW_LYT_DMPGL_ENABLED 99 //! @brief 自身の描画処理を行います。 100 //! 101 //! @details 102 //! 本関数は NW_LYT_DMPGL_ENABLED マクロを定義してライブラリを 103 //! ビルドした場合にのみ利用可能です。 104 //! 105 //! @param drawInfo 描画情報です。 106 //! 107 //! @since 2009/09/18 初版。 108 //! @date 2010/10/20 NW_LYT_DMPGL_ENABLED マクロを定義してライブラリをビルドした場合にのみ利用できるようにしました。 109 //! 110 virtual void DrawSelf(const DrawInfo& drawInfo); 111 #endif 112 }; 113 114 } // namespace nw::lyt 115 } // namespace nw 116 117 #endif // NW_LYT_BOUNDING_H_ 118 119