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.
35 lines
592 B
C++
35 lines
592 B
C++
#include "menuseparator.h"
|
|
|
|
void MenuSeparator::input(const sf::Event& event)
|
|
{
|
|
Widget::input(event);
|
|
}
|
|
|
|
void MenuSeparator::update()
|
|
{
|
|
Widget::update();
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
bool MenuSeparator::isUnderMouse(int mouse_x, int mouse_y) const
|
|
{
|
|
return _is_visible && _rect.contains(mouse_x, mouse_y);
|
|
}
|
|
|