forked from NaiJi/project-kyoku
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
812 B
C++
49 lines
812 B
C++
3 years ago
|
#include "menuseparator.h"
|
||
|
|
||
|
void MenuSeparator::input(const sf::Event& event)
|
||
|
{
|
||
|
Widget::input(event);
|
||
|
}
|
||
|
|
||
3 years ago
|
void MenuSeparator::update(const sf::Time& dt)
|
||
3 years ago
|
{
|
||
3 years ago
|
Widget::update(dt);
|
||
3 years ago
|
}
|
||
|
|
||
|
void MenuSeparator::draw(sf::RenderTarget& target, sf::RenderStates states) const
|
||
|
{
|
||
|
target.draw(_line, states);
|
||
|
}
|
||
|
|
||
|
void MenuSeparator::setRect(const sf::FloatRect& rect)
|
||
|
{
|
||
|
_rect = rect;
|
||
|
|
||
|
//_line
|
||
|
}
|
||
|
|
||
|
void MenuSeparator::setPosition(const sf::Vector2f& position)
|
||
|
{
|
||
|
(void)position;
|
||
|
}
|
||
|
|
||
3 years ago
|
void MenuSeparator::move(const sf::Vector2f& delta)
|
||
|
{
|
||
|
(void)delta;
|
||
|
}
|
||
|
|
||
3 years ago
|
bool MenuSeparator::isUnderMouse(int mouse_x, int mouse_y) const
|
||
|
{
|
||
|
return _is_visible && _rect.contains(mouse_x, mouse_y);
|
||
|
}
|
||
|
|
||
3 years ago
|
sf::FloatRect MenuSeparator::rect() const
|
||
|
{
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
sf::Vector2f MenuSeparator::position() const
|
||
|
{
|
||
|
return {};
|
||
|
}
|