src/widget/widget_base.cpp
branchcpp_gui
changeset 6290 8078f7a3c8a0
parent 6286 6e8eec87fa9d
child 6295 a88d8c2cff6e
equal deleted inserted replaced
6289:be3d8bd9fb02 6290:8078f7a3c8a0
   213 void Widget::DrawFrameRect(int ctab, FrameFlags flags)
   213 void Widget::DrawFrameRect(int ctab, FrameFlags flags)
   214 {
   214 {
   215 	DrawFrameRect(Left(), Top(), Right(), Bottom(), ctab, flags);
   215 	DrawFrameRect(Left(), Top(), Right(), Bottom(), ctab, flags);
   216 }
   216 }
   217 
   217 
       
   218 void Widget::DrawSprite(SpriteID img, SpriteID pal, const Point16 &local_pos)
       
   219 {
       
   220 	Point16 window_space_pos = TopLeft() + local_pos;
       
   221 	::DrawSprite(img, pal, window_space_pos.x, window_space_pos.y);
       
   222 }
       
   223 
       
   224 
   218 /*virtual*/ BaseWindow* Widget::GetWindow()
   225 /*virtual*/ BaseWindow* Widget::GetWindow()
   219 {
   226 {
   220 	if (m_container != NULL) {
   227 	if (m_container != NULL) {
   221 		return m_container->GetWindow();
   228 		return m_container->GetWindow();
   222 	}
   229 	}