@@ -30,6 +30,9 @@
namespace Atomic
{
+namespace SystemUI
+{
+
extern const char* blendModeNames[];
extern const char* UI_CATEGORY;
@@ -209,3 +212,5 @@ ResourceRef BorderImage::GetTextureAttr() const
}
+}
@@ -31,6 +31,9 @@ namespace Atomic
class Texture;
class Texture2D;
/// %Image %UI element with optional border.
class ATOMIC_API BorderImage : public UIElement
@@ -114,3 +117,5 @@ protected:
};
@@ -31,6 +31,10 @@
Button::Button(Context* context) :
@@ -187,3 +191,5 @@ void Button::SetPressed(bool enable)
@@ -27,6 +27,9 @@
/// Push button %UI element.
class ATOMIC_API Button : public BorderImage
@@ -107,3 +110,5 @@ protected:
@@ -31,6 +31,9 @@
CheckBox::CheckBox(Context* context) :
@@ -110,3 +113,5 @@ void CheckBox::SetCheckedOffset(int x, int y)
@@ -27,6 +27,10 @@
/// %UI element that can be toggled between unchecked and checked state.
class ATOMIC_API CheckBox : public BorderImage
@@ -69,3 +73,5 @@ protected:
@@ -32,6 +32,9 @@
static const char* shapeNames[] =
"Normal",
@@ -305,3 +308,5 @@ void Cursor::HandleMouseVisibleChanged(StringHash eventType, VariantMap& eventDa
/// %Cursor shapes recognized by the UI subsystem.
enum CursorShape
@@ -143,3 +147,5 @@ protected:
@@ -35,6 +35,9 @@
DropDownList::DropDownList(Context* context) :
@@ -339,3 +342,5 @@ void DropDownList::HandleListViewKey(StringHash eventType, VariantMap& eventData
class ListView;
/// %Menu %UI element that displays a popup list view.
@@ -120,3 +123,5 @@ private:
@@ -37,6 +37,10 @@
static const int MIN_POINT_SIZE = 1;
static const int MAX_POINT_SIZE = 96;
@@ -228,3 +232,5 @@ FontFace* Font::GetFaceBitmap(int pointSize)
@@ -28,6 +28,9 @@
class FontFace;
static const int FONT_TEXTURE_MIN_SIZE = 128;
@@ -107,3 +110,5 @@ private:
@@ -32,6 +32,10 @@
FontGlyph::FontGlyph() :
page_(M_MAX_UNSIGNED),
used_(false)
@@ -122,3 +126,5 @@ SharedPtr<Texture2D> FontFace::LoadFaceTexture(SharedPtr<Image> image)
@@ -29,10 +29,14 @@
-class Font;
class Image;
+class Font;
/// %Font glyph description.
struct FontGlyph
@@ -116,3 +120,5 @@ protected:
FontFaceBitmap::FontFaceBitmap(Font* font) :
FontFace(font)
@@ -383,3 +387,5 @@ void FontFaceBitmap::Blit(Image* dest, int x, int y, int width, int height, Imag
@@ -30,6 +30,10 @@ namespace Atomic
class Serializer;
/// Bitmap font face description.
class ATOMIC_API FontFaceBitmap : public FontFace
@@ -60,3 +64,5 @@ private:
@@ -39,6 +39,10 @@
/// FreeType library subsystem.
class FreeTypeLibrary : public Object
@@ -451,3 +455,5 @@ bool FontFaceFreeType::LoadCharGlyph(unsigned charCode, Image* image)
@@ -27,9 +27,13 @@
-class FreeTypeLibrary;
+class FreeTypeLibrary;
/// Free type font face description.
class ATOMIC_API FontFaceFreeType : public FontFace
@@ -70,3 +74,5 @@ private:
StringHash VAR_DRAGDROPCONTENT("DragDropContent");
@@ -661,3 +665,5 @@ void LineEdit::HandleLayoutUpdated(StringHash eventType, VariantMap& eventData)
class Font;
class Text;
@@ -165,3 +168,5 @@ private:
@@ -34,6 +34,10 @@
static const char* highlightModes[] =
"Never",
@@ -1136,3 +1140,5 @@ void ListView::UpdateUIClickSubscription()
/// %ListView selection highlight mode.
enum HighlightMode
@@ -187,3 +191,5 @@ private:
@@ -33,6 +33,9 @@
const StringHash VAR_SHOW_POPUP("ShowPopup");
extern StringHash VAR_ORIGIN;
@@ -437,3 +440,5 @@ void Menu::HandleKeyDown(StringHash eventType, VariantMap& eventData)
/// %Menu %UI element that optionally shows a popup.
class ATOMIC_API Menu : public Button
@@ -109,3 +113,5 @@ private:
@@ -35,6 +35,10 @@
MessageBox::MessageBox(Context* context, const String& messageString, const String& titleString, XMLFile* layoutFile,
XMLFile* styleFile) :
Object(context),
@@ -142,3 +146,5 @@ void MessageBox::HandleMessageAcknowledged(StringHash eventType, VariantMap& eve
@@ -27,10 +27,14 @@
+class XMLFile;
class Button;
class UIElement;
-class XMLFile;
/// Message box dialog.
class ATOMIC_API MessageBox : public Object
@@ -74,3 +78,5 @@ private:
@@ -30,6 +30,10 @@
static const float DEFAULT_SCROLL_STEP = 0.1f;
static const float DEFAULT_REPEAT_DELAY = 0.4f;
static const float DEFAULT_REPEAT_RATE = 20.0f;
@@ -321,3 +325,5 @@ void ScrollBar::HandleSliderPaged(StringHash eventType, VariantMap& eventData)
class Slider;
@@ -129,3 +133,5 @@ private:
@@ -34,6 +34,9 @@
static const float STEP_FACTOR = 300.0f;
@@ -702,3 +705,5 @@ void ScrollView::ScrollSmooth(float timeStep)
class BorderImage;
class ScrollBar;
@@ -191,3 +195,5 @@ private:
const char* orientations[] =
"Horizontal",
@@ -280,3 +283,5 @@ void Slider::Page(const IntVector2& position, bool pressed)
/// %Slider bar %UI element.
class ATOMIC_API Slider : public BorderImage
@@ -119,3 +122,5 @@ protected:
extern const char* horizontalAlignments[];
extern const char* verticalAlignments[];
@@ -279,3 +282,5 @@ ResourceRef Sprite::GetTextureAttr() const
/// %UI element which allows sub-pixel positioning and size, as well as rotation. Only other Sprites should be added as child elements.
class ATOMIC_API Sprite : public UIElement
@@ -123,3 +126,5 @@ protected:
@@ -36,6 +36,9 @@
const char* textEffects[] =
"None",
@@ -763,3 +766,5 @@ void Text::ConstructBatch(UIBatch& pageBatch, const PODVector<GlyphLocation>& pa
static const int DEFAULT_FONT_SIZE = 12;
@@ -261,3 +264,5 @@ protected:
ToolTip::ToolTip(Context* context) :
@@ -106,3 +109,5 @@ void ToolTip::SetDelay(float delay)
/// Tooltip %UI element.
class ATOMIC_API ToolTip : public UIElement
@@ -64,3 +67,5 @@ private:
@@ -60,6 +60,9 @@
StringHash VAR_ORIGIN("Origin");
const StringHash VAR_ORIGINAL_PARENT("OriginalParent");
const StringHash VAR_ORIGINAL_CHILD_INDEX("OriginalChildIndex");
@@ -1786,3 +1789,5 @@ void RegisterUILibrary(Context* context)
@@ -29,16 +29,20 @@
-class Cursor;
class Graphics;
class ResourceCache;
class Timer;
-class UIBatch;
-class UIElement;
class VertexBuffer;
class XMLElement;
class XMLFile;
+class Cursor;
+class UIBatch;
+class UIElement;
/// %UI subsystem. Manages the graphical user interface.
class ATOMIC_API UI : public Object
@@ -337,3 +341,5 @@ private:
void ATOMIC_API RegisterUILibrary(Context* context);
@@ -29,6 +29,9 @@
Vector3 UIBatch::posAdjust(0.0f, 0.0f, 0.0f);
UIBatch::UIBatch() :
@@ -327,3 +330,5 @@ void UIBatch::AddOrMerge(const UIBatch& batch, PODVector<UIBatch>& batches)
@@ -33,6 +33,10 @@ class PixelShader;
class Matrix3x4;
static const unsigned UI_VERTEX_SIZE = 6;
@@ -91,3 +95,5 @@ public:
@@ -37,6 +37,9 @@
const char* horizontalAlignments[] =
"Left",
@@ -2027,3 +2030,5 @@ void UIElement::HandlePostUpdate(StringHash eventType, VariantMap& eventData)
@@ -30,6 +30,11 @@
+class ResourceCache;
/// %UI element horizontal alignment.
enum HorizontalAlignment
@@ -106,7 +111,6 @@ static const unsigned DD_TARGET = 0x2;
static const unsigned DD_SOURCE_AND_TARGET = 0x3;
class Cursor;
-class ResourceCache;
/// Base class for %UI elements.
class ATOMIC_API UIElement : public Animatable
@@ -714,3 +718,5 @@ template <class T> T* UIElement::CreateChild(const String& name, unsigned index)
static const int DEFAULT_RESIZE_BORDER = 4;
@@ -420,3 +423,5 @@ bool Window::CheckAlignment() const
/// %Window movement and resizing modes.
enum WindowDragMode
@@ -166,3 +169,5 @@ protected: