26#ifndef TGUI_SEPARATOR_LINE_HPP
27#define TGUI_SEPARATOR_LINE_HPP
29#include <TGUI/Widgets/ClickableWidget.hpp>
30#include <TGUI/Renderers/SeparatorLineRenderer.hpp>
51 typedef std::shared_ptr<SeparatorLine>
Ptr;
52 typedef std::shared_ptr<const SeparatorLine>
ConstPtr;
62 SeparatorLine(
const char* typeName =
"SeparatorLine",
bool initRenderer =
true);
124 return std::make_shared<SeparatorLine>(*
this);
132 Color m_colorCached = Color::Black;
Base class for render targets.
Definition BackendRenderTarget.hpp:48
Wrapper for colors.
Definition Color.hpp:63
Class to store the position or size of a widget.
Definition Layout.hpp:262
Definition SeparatorLineRenderer.hpp:37
Widget that is drawn as a filled rectangle and can be used as a line to visually separate widgets fro...
Definition SeparatorLine.hpp:48
static SeparatorLine::Ptr copy(SeparatorLine::ConstPtr separator)
Makes a copy of another separator.
SeparatorLineRenderer * getSharedRenderer()
Returns the renderer, which gives access to functions that determine how the widget is displayed.
SeparatorLineRenderer * getRenderer()
Returns the renderer, which gives access to functions that determine how the widget is displayed.
void draw(BackendRenderTargetBase &target, RenderStates states) const override
Draw the widget to a render target.
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
Definition SeparatorLine.hpp:122
std::shared_ptr< SeparatorLine > Ptr
Shared widget pointer.
Definition SeparatorLine.hpp:51
static SeparatorLine::Ptr create(Layout2d size={"100%", 1})
Creates a new separator widget.
std::shared_ptr< const SeparatorLine > ConstPtr
Shared constant widget pointer.
Definition SeparatorLine.hpp:52
void rendererChanged(const String &property) override
Function called when one of the properties of the renderer is changed.
Wrapper class to store strings.
Definition String.hpp:79
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:36
States used for drawing.
Definition RenderStates.hpp:39