mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 15:56:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			752 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			752 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_WIDGETS_WINDOWCAPTION_H
 | 
						|
#define OPENMW_WIDGETS_WINDOWCAPTION_H
 | 
						|
 | 
						|
#include <MyGUI_EditBox.h>
 | 
						|
 | 
						|
namespace Gui
 | 
						|
{
 | 
						|
 | 
						|
    /// Window caption that automatically adjusts "Left" and "Right" widgets in its skin
 | 
						|
    /// based on the text size of the caption in the middle
 | 
						|
    class WindowCaption : public MyGUI::EditBox
 | 
						|
    {
 | 
						|
        MYGUI_RTTI_DERIVED(WindowCaption)
 | 
						|
    public:
 | 
						|
        WindowCaption();
 | 
						|
 | 
						|
        virtual void setCaption(const MyGUI::UString &_value);
 | 
						|
        virtual void initialiseOverride();
 | 
						|
 | 
						|
        virtual void setSize(const MyGUI::IntSize& _value);
 | 
						|
        virtual void setCoord(const MyGUI::IntCoord& _value);
 | 
						|
 | 
						|
    private:
 | 
						|
        MyGUI::Widget* mLeft;
 | 
						|
        MyGUI::Widget* mRight;
 | 
						|
 | 
						|
        void align();
 | 
						|
    };
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |