mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-11 17:17:42 +03:00
Removed UIControlAnim and UIDragableControl. UIControlAnim and UIDragableControl implemented in base UINode. --HG-- branch : dev-2.1
37 lines
752 B
C++
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() ) );
|
|
}
|
|
}
|
|
|
|
}}
|