Removed 'virtual' where there is already an 'override' keyword
This commit is contained in:
parent
cd47a6ea43
commit
d1766178f1
@ -88,9 +88,9 @@ namespace tgui
|
|||||||
public:
|
public:
|
||||||
MoveAnimation(Widget::Ptr widget, sf::Vector2f start, sf::Vector2f end, sf::Time duration, std::function<void()> finishedCallback = nullptr);
|
MoveAnimation(Widget::Ptr widget, sf::Vector2f start, sf::Vector2f end, sf::Time duration, std::function<void()> finishedCallback = nullptr);
|
||||||
|
|
||||||
virtual bool update(sf::Time elapsedTime) override;
|
bool update(sf::Time elapsedTime) override;
|
||||||
|
|
||||||
virtual void finish() override;
|
void finish() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
sf::Vector2f m_startPos;
|
sf::Vector2f m_startPos;
|
||||||
@ -104,9 +104,9 @@ namespace tgui
|
|||||||
public:
|
public:
|
||||||
ResizeAnimation(Widget::Ptr widget, sf::Vector2f start, sf::Vector2f end, sf::Time duration, std::function<void()> finishedCallback = nullptr);
|
ResizeAnimation(Widget::Ptr widget, sf::Vector2f start, sf::Vector2f end, sf::Time duration, std::function<void()> finishedCallback = nullptr);
|
||||||
|
|
||||||
virtual bool update(sf::Time elapsedTime) override;
|
bool update(sf::Time elapsedTime) override;
|
||||||
|
|
||||||
virtual void finish() override;
|
void finish() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
sf::Vector2f m_startSize;
|
sf::Vector2f m_startSize;
|
||||||
@ -120,9 +120,9 @@ namespace tgui
|
|||||||
public:
|
public:
|
||||||
FadeAnimation(Widget::Ptr widget, float start, float end, sf::Time duration, std::function<void()> finishedCallback = nullptr);
|
FadeAnimation(Widget::Ptr widget, float start, float end, sf::Time duration, std::function<void()> finishedCallback = nullptr);
|
||||||
|
|
||||||
virtual bool update(sf::Time elapsedTime) override;
|
bool update(sf::Time elapsedTime) override;
|
||||||
|
|
||||||
virtual void finish() override;
|
void finish() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float m_startOpacity;
|
float m_startOpacity;
|
||||||
|
@ -342,47 +342,47 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void keyPressed(const sf::Event::KeyEvent& event) override;
|
void keyPressed(const sf::Event::KeyEvent& event) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void textEntered(sf::Uint32 key) override;
|
void textEntered(sf::Uint32 key) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerOnWidget() override;
|
void mouseNoLongerOnWidget() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerDown() override;
|
void mouseNoLongerDown() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetUnfocused() override;
|
void widgetUnfocused() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -391,7 +391,7 @@ namespace tgui
|
|||||||
// Returns its tool tip or the tool tip from a child widget if the mouse is on top of the widget.
|
// Returns its tool tip or the tool tip from a child widget if the mouse is on top of the widget.
|
||||||
// A nullptr is returned when the mouse is not on top of the widget or when the tool tip is empty.
|
// A nullptr is returned when the mouse is not on top of the widget or when the tool tip is empty.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr askToolTip(sf::Vector2f mousePos) override;
|
Widget::Ptr askToolTip(sf::Vector2f mousePos) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -403,13 +403,13 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called every frame with the time passed since the last frame.
|
// This function is called every frame with the time passed since the last frame.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void update(sf::Time elapsedTime) override;
|
void update(sf::Time elapsedTime) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -492,7 +492,7 @@ namespace tgui
|
|||||||
/// The window size cannot be changed by a widget.
|
/// The window size cannot be changed by a widget.
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -504,7 +504,7 @@ namespace tgui
|
|||||||
/// This function always returns true.
|
/// This function always returns true.
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -514,13 +514,13 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function does nothing.
|
// This function does nothing.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Returns a nullptr.
|
// Returns a nullptr.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ namespace tgui
|
|||||||
/// @exception Exception when finding syntax errors in the file
|
/// @exception Exception when finding syntax errors in the file
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void preload(const std::string& filename) override;
|
void preload(const std::string& filename) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -115,7 +115,7 @@ namespace tgui
|
|||||||
/// @exception Exception when file did not contain requested class name
|
/// @exception Exception when file did not contain requested class name
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual const std::map<sf::String, sf::String>& load(const std::string& filename, const std::string& section) override;
|
const std::map<sf::String, sf::String>& load(const std::string& filename, const std::string& section) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -583,7 +583,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -69,7 +69,7 @@ namespace tgui
|
|||||||
/// @param size The new size of the group
|
/// @param size The new size of the group
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -92,7 +92,7 @@ namespace tgui
|
|||||||
/// @param size The new size of the button
|
/// @param size The new size of the button
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ namespace tgui
|
|||||||
/// All widgets are enabled by default.
|
/// All widgets are enabled by default.
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void enable() override;
|
void enable() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -113,7 +113,7 @@ namespace tgui
|
|||||||
/// All widgets are enabled by default.
|
/// All widgets are enabled by default.
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void disable() override;
|
void disable() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -156,22 +156,22 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void keyPressed(const sf::Event::KeyEvent& event) override;
|
void keyPressed(const sf::Event::KeyEvent& event) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetFocused() override;
|
void widgetFocused() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -181,7 +181,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -190,13 +190,13 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called when the mouse enters the widget. If requested, a callback will be send.
|
// This function is called when the mouse enters the widget. If requested, a callback will be send.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseEnteredWidget() override;
|
void mouseEnteredWidget() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called when the mouse leaves the widget. If requested, a callback will be send.
|
// This function is called when the mouse leaves the widget. If requested, a callback will be send.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseLeftWidget() override;
|
void mouseLeftWidget() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -208,7 +208,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -217,7 +217,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -247,7 +247,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Button>(*this);
|
return std::make_shared<Button>(*this);
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ namespace tgui
|
|||||||
/// @param size The new size of the widget
|
/// @param size The new size of the widget
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -174,13 +174,13 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Canvas>(*this);
|
return std::make_shared<Canvas>(*this);
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ namespace tgui
|
|||||||
/// @param position New position
|
/// @param position New position
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setPosition(const Layout2d& position) override;
|
void setPosition(const Layout2d& position) override;
|
||||||
using Widget::setPosition;
|
using Widget::setPosition;
|
||||||
|
|
||||||
|
|
||||||
@ -365,37 +365,37 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerOnWidget() override;
|
void mouseNoLongerOnWidget() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerDown() override;
|
void mouseNoLongerDown() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -438,7 +438,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -450,7 +450,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -462,7 +462,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<ChatBox>(*this);
|
return std::make_shared<ChatBox>(*this);
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ namespace tgui
|
|||||||
/// When textures are loaded, the height of the checked image is used (in case the check goes outside of the box).
|
/// When textures are loaded, the height of the checked image is used (in case the check goes outside of the box).
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getFullSize() const override;
|
sf::Vector2f getFullSize() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -105,7 +105,7 @@ namespace tgui
|
|||||||
/// @return Offset of the widget
|
/// @return Offset of the widget
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getWidgetOffset() const override;
|
sf::Vector2f getWidgetOffset() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -120,12 +120,12 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void keyPressed(const sf::Event::KeyEvent& event) override;
|
void keyPressed(const sf::Event::KeyEvent& event) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -135,7 +135,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -147,19 +147,19 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Resets the sizes of the textures if they are used
|
// Resets the sizes of the textures if they are used
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void updateTextureSizes() override;
|
void updateTextureSizes() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<CheckBox>(*this);
|
return std::make_shared<CheckBox>(*this);
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ namespace tgui
|
|||||||
/// The size returned by this function is the size of the child window, including the title bar and the borders.
|
/// The size returned by this function is the size of the child window, including the title bar and the borders.
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getFullSize() const override;
|
sf::Vector2f getFullSize() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -309,7 +309,7 @@ namespace tgui
|
|||||||
/// @return Offset of the widgets in the container
|
/// @return Offset of the widgets in the container
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getChildWidgetsOffset() const override;
|
sf::Vector2f getChildWidgetsOffset() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -318,32 +318,32 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerOnWidget() override;
|
void mouseNoLongerOnWidget() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerDown() override;
|
void mouseNoLongerDown() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -353,7 +353,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -374,7 +374,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -383,13 +383,13 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<ChildWindow>(*this);
|
return std::make_shared<ChildWindow>(*this);
|
||||||
}
|
}
|
||||||
|
@ -79,17 +79,17 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -99,7 +99,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -114,13 +114,13 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<ClickableWidget>(*this);
|
return std::make_shared<ClickableWidget>(*this);
|
||||||
}
|
}
|
||||||
|
@ -446,7 +446,7 @@ namespace tgui
|
|||||||
/// This function is called when the widget is added to a container.
|
/// This function is called when the widget is added to a container.
|
||||||
/// You should not call this function yourself.
|
/// You should not call this function yourself.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setParent(Container* parent) override;
|
void setParent(Container* parent) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -455,17 +455,17 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -475,7 +475,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -490,7 +490,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -499,7 +499,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -535,7 +535,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<ComboBox>(*this);
|
return std::make_shared<ComboBox>(*this);
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,7 @@ namespace tgui
|
|||||||
/// All widgets are enabled by default.
|
/// All widgets are enabled by default.
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void enable() override;
|
void enable() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -143,7 +143,7 @@ namespace tgui
|
|||||||
/// All widgets are enabled by default.
|
/// All widgets are enabled by default.
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void disable() override;
|
void disable() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -391,32 +391,32 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void keyPressed(const sf::Event::KeyEvent& event) override;
|
void keyPressed(const sf::Event::KeyEvent& event) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void textEntered(sf::Uint32 Key) override;
|
void textEntered(sf::Uint32 Key) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetFocused() override;
|
void widgetFocused() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetUnfocused() override;
|
void widgetUnfocused() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -426,7 +426,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -441,7 +441,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -450,7 +450,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -487,13 +487,13 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called every frame with the time passed since the last frame.
|
// This function is called every frame with the time passed since the last frame.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void update(sf::Time elapsedTime) override;
|
void update(sf::Time elapsedTime) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<EditBox>(*this);
|
return std::make_shared<EditBox>(*this);
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @see setAutoSize
|
/// @see setAutoSize
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -159,14 +159,14 @@ namespace tgui
|
|||||||
/// @see remove(sf::String)
|
/// @see remove(sf::String)
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool remove(const Widget::Ptr& widget) override;
|
bool remove(const Widget::Ptr& widget) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief Removes all widgets that were added to the container
|
/// @brief Removes all widgets that were added to the container
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void removeAllWidgets() override;
|
void removeAllWidgets() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -311,7 +311,7 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -321,7 +321,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -349,7 +349,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Grid>(*this);
|
return std::make_shared<Grid>(*this);
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ namespace tgui
|
|||||||
/// @param size The new size of the group
|
/// @param size The new size of the group
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ namespace tgui
|
|||||||
/// @return Size of the group minus the padding
|
/// @return Size of the group minus the padding
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getContentSize() const override;
|
sf::Vector2f getContentSize() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -117,7 +117,7 @@ namespace tgui
|
|||||||
/// @return Offset of the widgets in the container
|
/// @return Offset of the widgets in the container
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getChildWidgetsOffset() const override;
|
sf::Vector2f getChildWidgetsOffset() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -126,13 +126,13 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -142,7 +142,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -154,13 +154,13 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Group>(*this);
|
return std::make_shared<Group>(*this);
|
||||||
}
|
}
|
||||||
|
@ -79,13 +79,13 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// @brief Repositions and resize the widgets
|
// @brief Repositions and resize the widgets
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void updateWidgets() override;
|
void updateWidgets() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// @brief Makes a copy of the widget
|
// @brief Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<HorizontalLayout>(*this);
|
return std::make_shared<HorizontalLayout>(*this);
|
||||||
}
|
}
|
||||||
|
@ -75,13 +75,13 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// @brief Repositions and resize the widgets
|
// @brief Repositions and resize the widgets
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void updateWidgets() override;
|
void updateWidgets() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<HorizontalWrap>(*this);
|
return std::make_shared<HorizontalWrap>(*this);
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ namespace tgui
|
|||||||
/// @param size The new size of the knob
|
/// @param size The new size of the knob
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -242,27 +242,27 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetFocused() override;
|
void widgetFocused() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -272,7 +272,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -287,7 +287,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -296,7 +296,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -314,7 +314,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Knob>(*this);
|
return std::make_shared<Knob>(*this);
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ namespace tgui
|
|||||||
/// @see setAutoSize
|
/// @see setAutoSize
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -262,13 +262,13 @@ namespace tgui
|
|||||||
/// This function is called when the widget is added to a container.
|
/// This function is called when the widget is added to a container.
|
||||||
/// You should not call this function yourself.
|
/// You should not call this function yourself.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setParent(Container* parent) override;
|
void setParent(Container* parent) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -278,7 +278,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -293,7 +293,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -302,13 +302,13 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called every frame with the time passed since the last frame.
|
// This function is called every frame with the time passed since the last frame.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void update(sf::Time elapsedTime) override;
|
void update(sf::Time elapsedTime) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -320,7 +320,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Label>(*this);
|
return std::make_shared<Label>(*this);
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ namespace tgui
|
|||||||
/// @param position New position
|
/// @param position New position
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setPosition(const Layout2d& position) override;
|
void setPosition(const Layout2d& position) override;
|
||||||
using Widget::setPosition;
|
using Widget::setPosition;
|
||||||
|
|
||||||
|
|
||||||
@ -440,37 +440,37 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerOnWidget() override;
|
void mouseNoLongerOnWidget() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerDown() override;
|
void mouseNoLongerDown() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -480,7 +480,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -495,7 +495,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -504,7 +504,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -540,13 +540,13 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called every frame with the time passed since the last frame.
|
// This function is called every frame with the time passed since the last frame.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void update(sf::Time elapsedTime) override;
|
void update(sf::Time elapsedTime) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<ListBox>(*this);
|
return std::make_shared<ListBox>(*this);
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ namespace tgui
|
|||||||
/// By default, the menu bar has the same width as the window and the height is 20 pixels.
|
/// By default, the menu bar has the same width as the window and the height is 20 pixels.
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ namespace tgui
|
|||||||
/// This function is called when the widget is added to a container.
|
/// This function is called when the widget is added to a container.
|
||||||
/// You should not call this function yourself.
|
/// You should not call this function yourself.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setParent(Container* parent) override;
|
void setParent(Container* parent) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -266,27 +266,27 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerDown() override;
|
void mouseNoLongerDown() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -295,7 +295,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called when the mouse leaves the widget. If requested, a callback will be send.
|
// This function is called when the mouse leaves the widget. If requested, a callback will be send.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseLeftWidget() override;
|
void mouseLeftWidget() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -305,7 +305,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -320,7 +320,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -329,13 +329,13 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<MenuBar>(*this);
|
return std::make_shared<MenuBar>(*this);
|
||||||
}
|
}
|
||||||
|
@ -189,7 +189,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -198,13 +198,13 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<MessageBox>(*this);
|
return std::make_shared<MessageBox>(*this);
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ namespace tgui
|
|||||||
/// @param size The new size of the panel
|
/// @param size The new size of the panel
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ namespace tgui
|
|||||||
/// @return Inner size of the container
|
/// @return Inner size of the container
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getContentSize() const override;
|
sf::Vector2f getContentSize() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -114,7 +114,7 @@ namespace tgui
|
|||||||
/// @return Offset of the widgets in the container
|
/// @return Offset of the widgets in the container
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getChildWidgetsOffset() const override;
|
sf::Vector2f getChildWidgetsOffset() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -123,17 +123,17 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -143,7 +143,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -158,7 +158,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -167,13 +167,13 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Panel>(*this);
|
return std::make_shared<Panel>(*this);
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@ namespace tgui
|
|||||||
/// The image will be scaled to fit this size.
|
/// The image will be scaled to fit this size.
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -162,13 +162,13 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -178,7 +178,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -193,7 +193,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -211,19 +211,19 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called every frame with the time passed since the last frame.
|
// This function is called every frame with the time passed since the last frame.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void update(sf::Time elapsedTime) override;
|
void update(sf::Time elapsedTime) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Picture>(*this);
|
return std::make_shared<Picture>(*this);
|
||||||
}
|
}
|
||||||
|
@ -248,7 +248,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -263,7 +263,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -272,7 +272,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -297,7 +297,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<ProgressBar>(*this);
|
return std::make_shared<ProgressBar>(*this);
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ namespace tgui
|
|||||||
/// @param size The new size of the radio button
|
/// @param size The new size of the radio button
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ namespace tgui
|
|||||||
/// The returned size includes the text next to the radio button.
|
/// The returned size includes the text next to the radio button.
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getFullSize() const override;
|
sf::Vector2f getFullSize() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -115,7 +115,7 @@ namespace tgui
|
|||||||
/// @return Offset of the widget
|
/// @return Offset of the widget
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getWidgetOffset() const override;
|
sf::Vector2f getWidgetOffset() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -205,22 +205,22 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void keyPressed(const sf::Event::KeyEvent& event) override;
|
void keyPressed(const sf::Event::KeyEvent& event) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetFocused() override;
|
void widgetFocused() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -230,7 +230,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -245,7 +245,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -254,19 +254,19 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called when the mouse enters the widget. If requested, a callback will be send.
|
// This function is called when the mouse enters the widget. If requested, a callback will be send.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseEnteredWidget() override;
|
void mouseEnteredWidget() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called when the mouse leaves the widget. If requested, a callback will be send.
|
// This function is called when the mouse leaves the widget. If requested, a callback will be send.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseLeftWidget() override;
|
void mouseLeftWidget() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -308,7 +308,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<RadioButton>(*this);
|
return std::make_shared<RadioButton>(*this);
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -87,7 +87,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<RadioButtonGroup>(*this);
|
return std::make_shared<RadioButtonGroup>(*this);
|
||||||
}
|
}
|
||||||
|
@ -206,37 +206,37 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetFocused() override;
|
void widgetFocused() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerDown() override;
|
void mouseNoLongerDown() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -246,7 +246,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -261,7 +261,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -270,7 +270,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -282,7 +282,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Scrollbar>(*this);
|
return std::make_shared<Scrollbar>(*this);
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ namespace tgui
|
|||||||
/// @return Full size of the slider
|
/// @return Full size of the slider
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getFullSize() const override;
|
sf::Vector2f getFullSize() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -116,7 +116,7 @@ namespace tgui
|
|||||||
/// @return Offset of the widget
|
/// @return Offset of the widget
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual sf::Vector2f getWidgetOffset() const override;
|
sf::Vector2f getWidgetOffset() const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -196,37 +196,37 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetFocused() override;
|
void widgetFocused() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerDown() override;
|
void mouseNoLongerDown() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -236,7 +236,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -251,7 +251,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -260,7 +260,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -278,7 +278,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Slider>(*this);
|
return std::make_shared<Slider>(*this);
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ namespace tgui
|
|||||||
/// @param size The new size of the spin button
|
/// @param size The new size of the spin button
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -186,22 +186,22 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetFocused() override;
|
void widgetFocused() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -211,7 +211,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -226,7 +226,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -235,7 +235,7 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -247,7 +247,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<SpinButton>(*this);
|
return std::make_shared<SpinButton>(*this);
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ namespace tgui
|
|||||||
/// @see setAutoSize
|
/// @see setAutoSize
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -359,22 +359,22 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerOnWidget() override;
|
void mouseNoLongerOnWidget() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -384,7 +384,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -399,7 +399,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -420,13 +420,13 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<Tabs>(*this);
|
return std::make_shared<Tabs>(*this);
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ namespace tgui
|
|||||||
/// @param size The new size of the text box
|
/// @param size The new size of the text box
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void setSize(const Layout2d& size) override;
|
void setSize(const Layout2d& size) override;
|
||||||
using Widget::setSize;
|
using Widget::setSize;
|
||||||
|
|
||||||
|
|
||||||
@ -266,57 +266,57 @@ namespace tgui
|
|||||||
/// @return Is the mouse on top of the widget?
|
/// @return Is the mouse on top of the widget?
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual bool mouseOnWidget(sf::Vector2f pos) const override;
|
bool mouseOnWidget(sf::Vector2f pos) const override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMousePressed(sf::Vector2f pos) override;
|
void leftMousePressed(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void leftMouseReleased(sf::Vector2f pos) override;
|
void leftMouseReleased(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseMoved(sf::Vector2f pos) override;
|
void mouseMoved(sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void keyPressed(const sf::Event::KeyEvent& event) override;
|
void keyPressed(const sf::Event::KeyEvent& event) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void textEntered(sf::Uint32 Key) override;
|
void textEntered(sf::Uint32 Key) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
void mouseWheelScrolled(float delta, sf::Vector2f pos) override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerOnWidget() override;
|
void mouseNoLongerOnWidget() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void mouseNoLongerDown() override;
|
void mouseNoLongerDown() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetFocused() override;
|
void widgetFocused() override;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @internal
|
/// @internal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void widgetUnfocused() override;
|
void widgetUnfocused() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -369,7 +369,7 @@ namespace tgui
|
|||||||
/// @param states Current render states
|
/// @param states Current render states
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -384,7 +384,7 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// This function is called every frame with the time passed since the last frame.
|
// This function is called every frame with the time passed since the last frame.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void update(sf::Time elapsedTime) override;
|
void update(sf::Time elapsedTime) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -408,7 +408,7 @@ namespace tgui
|
|||||||
///
|
///
|
||||||
/// @throw Exception when the name does not match any signal
|
/// @throw Exception when the name does not match any signal
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Signal& getSignal(std::string&& signalName) override;
|
Signal& getSignal(std::string&& signalName) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -417,13 +417,13 @@ namespace tgui
|
|||||||
/// @param property Lowercase name of the property that was changed
|
/// @param property Lowercase name of the property that was changed
|
||||||
///
|
///
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void rendererChanged(const std::string& property) override;
|
void rendererChanged(const std::string& property) override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Makes a copy of the widget
|
// Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<TextBox>(*this);
|
return std::make_shared<TextBox>(*this);
|
||||||
}
|
}
|
||||||
|
@ -79,13 +79,13 @@ namespace tgui
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// @brief Repositions and resize the widgets
|
// @brief Repositions and resize the widgets
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual void updateWidgets() override;
|
void updateWidgets() override;
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// @brief Makes a copy of the widget
|
// @brief Makes a copy of the widget
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
virtual Widget::Ptr clone() const override
|
Widget::Ptr clone() const override
|
||||||
{
|
{
|
||||||
return std::make_shared<VerticalLayout>(*this);
|
return std::make_shared<VerticalLayout>(*this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user