25#ifndef TGUI_SEPARATOR_LINE_HPP
26#define TGUI_SEPARATOR_LINE_HPP
28#include <TGUI/Widgets/ClickableWidget.hpp>
29#include <TGUI/Renderers/SeparatorLineRenderer.hpp>
33TGUI_MODULE_EXPORT
namespace tgui
50 using Ptr = std::shared_ptr<SeparatorLine>;
51 using ConstPtr = std::shared_ptr<const SeparatorLine>;
53 static constexpr const char StaticWidgetType[] =
"SeparatorLine";
62 SeparatorLine(
const char* typeName = StaticWidgetType,
bool initRenderer =
true);
121 Color m_colorCached = Color::Black;
Base class for render targets.
Definition BackendRenderTarget.hpp:46
Wrapper for colors.
Definition Color.hpp:73
Class to store the position or size of a widget.
Definition Layout.hpp:323
Definition SeparatorLineRenderer.hpp:35
Widget that is drawn as a filled rectangle and can be used as a line to visually separate widgets fro...
Definition SeparatorLine.hpp:47
SeparatorLineRenderer * getRenderer() override
Returns the renderer, which gives access to functions that determine how the widget is displayed.
std::shared_ptr< const SeparatorLine > ConstPtr
Shared constant widget pointer.
Definition SeparatorLine.hpp:51
static SeparatorLine::Ptr create(const Layout2d &size={"100%", 1})
Creates a new separator widget.
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
void rendererChanged(const String &property) override
Function called when one of the properties of the renderer is changed.
std::shared_ptr< SeparatorLine > Ptr
Shared widget pointer.
Definition SeparatorLine.hpp:50
void draw(BackendRenderTarget &target, RenderStates states) const override
Draw the widget to a render target.
static SeparatorLine::Ptr copy(const SeparatorLine::ConstPtr &separator)
Makes a copy of another separator.
SeparatorLineRenderer * getSharedRenderer() override
Returns the renderer, which gives access to functions that determine how the widget is displayed.
Wrapper class to store strings.
Definition String.hpp:96
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38
States used for drawing.
Definition RenderStates.hpp:38