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
|
|
|
//
|
2013-08-09 08:01:20 +08:00
|
|
|
// This source file is distributed under MIT license,
|
|
|
|
// please 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-04-06 10:34:42 +08:00
|
|
|
#include "base/compiler_specific.h"
|
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:
|
2013-10-15 06:58:11 +08:00
|
|
|
Separator(const base::string& text, int align);
|
2012-06-18 09:02:54 +08:00
|
|
|
|
|
|
|
protected:
|
2013-05-21 07:40:18 +08:00
|
|
|
void onPaint(PaintEvent& ev) OVERRIDE;
|
2012-06-18 09:02:54 +08:00
|
|
|
void onPreferredSize(PreferredSizeEvent& ev) OVERRIDE;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ui
|
2007-09-19 07:57:02 +08:00
|
|
|
|
2009-08-18 05:38:00 +08:00
|
|
|
#endif
|