Files
eepp/src/eepp/ui/uimenuseparator.cpp
Martí­n Lucas Golini e21daabe65 Renamed UIControl to UINode.
Removed UIControlAnim and UIDragableControl.
UIControlAnim and UIDragableControl implemented in base UINode.

--HG--
branch : dev-2.1
2018-01-02 02:37:23 -03:00

37 lines
752 B
C++

#include <eepp/ui/uimenuseparator.hpp>
#include <eepp/graphics/subtexture.hpp>
namespace EE { namespace UI {
UIMenuSeparator * UIMenuSeparator::New() {
return eeNew( UIMenuSeparator, () );
}
UIMenuSeparator::UIMenuSeparator() :
UIWidget()
{
applyDefaultTheme();
}
UIMenuSeparator::~UIMenuSeparator() {
}
Uint32 UIMenuSeparator::getType() const {
return UI_TYPE_MENU_SEPARATOR;
}
bool UIMenuSeparator::isType( const Uint32& type ) const {
return UIMenuSeparator::getType() == type ? true : UINode::isType( type );
}
void UIMenuSeparator::setTheme( UITheme * Theme ) {
UIWidget::setTheme( Theme );
setThemeSkin( Theme, "separator" );
if ( NULL != getSkin() ) {
setSize( Sizei( mSize.getWidth(), getSkinSize().getHeight() ) );
}
}
}}