2013-08-09 08:01:20 +08:00
|
|
|
// Aseprite UI Library
|
2013-01-27 23:13:13 +08:00
|
|
|
// Copyright (C) 2001-2013 David Capello
|
2010-09-28 06:18:17 +08:00
|
|
|
//
|
2014-03-30 07:08:05 +08:00
|
|
|
// This file is released under the terms of the MIT license.
|
|
|
|
// Read LICENSE.txt for more information.
|
2010-09-28 06:18:17 +08:00
|
|
|
|
2012-06-18 09:49:58 +08:00
|
|
|
#ifndef UI_SEPARATOR_H_INCLUDED
|
|
|
|
#define UI_SEPARATOR_H_INCLUDED
|
2014-03-30 06:40:17 +08:00
|
|
|
#pragma once
|
2007-09-19 07:57:02 +08:00
|
|
|
|
2012-06-18 09:49:58 +08:00
|
|
|
#include "ui/widget.h"
|
2007-09-19 07:57:02 +08:00
|
|
|
|
2012-06-18 09:02:54 +08:00
|
|
|
namespace ui {
|
2012-04-06 10:34:42 +08:00
|
|
|
|
2012-06-18 09:02:54 +08:00
|
|
|
class Separator : public Widget
|
|
|
|
{
|
|
|
|
public:
|
2014-04-21 06:53:27 +08:00
|
|
|
Separator(const std::string& text, int align);
|
2012-06-18 09:02:54 +08:00
|
|
|
|
|
|
|
protected:
|
2014-08-15 10:07:47 +08:00
|
|
|
void onPaint(PaintEvent& ev) override;
|
2015-12-04 08:50:05 +08:00
|
|
|
void onSizeHint(SizeHintEvent& ev) override;
|
2012-06-18 09:02:54 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ui
|
2007-09-19 07:57:02 +08:00
|
|
|
|
2009-08-18 05:38:00 +08:00
|
|
|
#endif
|