29 #ifndef NOMLIB_SDL2_MESSAGEBOX_HEADERS
30 #define NOMLIB_SDL2_MESSAGEBOX_HEADERS
37 #include "nomlib/config.hpp"
38 #include "nomlib/math/Color.hpp"
39 #include "nomlib/math/Coords.hpp"
40 #include "nomlib/graphics/IDrawable.hpp"
41 #include "nomlib/graphics/Gradient.hpp"
42 #include "nomlib/graphics/shapes/Line.hpp"
43 #include "nomlib/gui/GrayFrame.hpp"
44 #include "nomlib/graphics/IFont.hpp"
64 int32 x, int32 y, int32 width, int32 height,
65 enum FrameStyle style,
const Gradient& background
69 int32 x, int32 y, int32 width, int32 height,
70 GrayFrame::SharedPtr style =
nullptr,
71 Gradient::SharedPtr background =
nullptr
76 void initialize (
void );
79 bool isEnabled (
void )
const;
80 const std::string getWindowTitle (
void );
81 const std::string getLabel (
void );
83 void disable (
void );
86 const Point2i size (
void )
const;
87 const Point2i position (
void )
const;
92 void setLabelPosition (
const Coords& pos );
93 void setLabelTextAlignment ( IFont::TextAlignment alignment );
94 void setWindowTitle (
const std::string& text );
95 void setLabel (
const std::string& text );
103 IFont::SharedPtr window_title;
104 IFont::SharedPtr label;
107 enum IFont::TextAlignment label_alignment;
115 #endif // include guard defined
std::vector< std::shared_ptr< IDrawable > > SharedDrawables
Vector of std::shared_ptr definition type for the brotherhood, sir!
Base interface class for grouping objects under a united front.
Rectangle fill class with dithered, linear gradient colors.
void draw(RenderTarget target) const
Render the object onto the primary video buffer – your visible screen.
Simple UI interface for drawing a styled message box.
Coordinate values (x, y, z, width, height ) wrapper.