| 123456789101112131415161718192021222324252627282930313233343536373839 |
- // Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <anki/Math.h>
- #include <anki/util/Allocator.h>
- namespace anki
- {
- // Forward
- class Widget;
- class Canvas;
- class UiImage;
- /// @addtogroup ui
- /// @{
- using UiAllocator = GenericMemoryPoolAllocator<U8>;
- /// Color.
- using Color = Vec4;
- /// Rectangle
- class Rect
- {
- public:
- UVec2 m_min;
- UVec2 m_max;
- };
- /// Used in widget classes.
- #define ANKI_WIDGET friend class Canvas;
- /// @}
- } // end namespace anki
|