2013-08-09 00:01:20 +00:00
|
|
|
// Aseprite UI Library
|
2013-04-03 00:34:30 +00:00
|
|
|
// Copyright (C) 2001-2013 David Capello
|
|
|
|
//
|
2013-08-09 00:01:20 +00:00
|
|
|
// This source file is distributed under MIT license,
|
|
|
|
// please read LICENSE.txt for more information.
|
2013-04-03 00:34:30 +00:00
|
|
|
|
|
|
|
#ifndef UI_LISTITEM_H_INCLUDED
|
|
|
|
#define UI_LISTITEM_H_INCLUDED
|
|
|
|
|
|
|
|
#include "base/compiler_specific.h"
|
|
|
|
#include "ui/widget.h"
|
|
|
|
|
|
|
|
namespace ui {
|
|
|
|
|
|
|
|
class ListItem : public Widget
|
|
|
|
{
|
|
|
|
public:
|
2013-10-14 22:58:11 +00:00
|
|
|
ListItem(const base::string& text);
|
2013-04-03 00:34:30 +00:00
|
|
|
|
|
|
|
protected:
|
2013-05-20 23:40:18 +00:00
|
|
|
void onPaint(PaintEvent& ev) OVERRIDE;
|
2013-05-11 20:56:27 +00:00
|
|
|
void onResize(ResizeEvent& ev) OVERRIDE;
|
2013-04-03 00:34:30 +00:00
|
|
|
void onPreferredSize(PreferredSizeEvent& ev) OVERRIDE;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ui
|
|
|
|
|
|
|
|
#endif
|