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
|
|
|
|
//
|
2014-03-29 23:08:05 +00:00
|
|
|
// This file is released under the terms of the MIT license.
|
|
|
|
// Read LICENSE.txt for more information.
|
2013-04-03 00:34:30 +00:00
|
|
|
|
|
|
|
#ifndef UI_LISTITEM_H_INCLUDED
|
|
|
|
#define UI_LISTITEM_H_INCLUDED
|
2014-03-29 22:40:17 +00:00
|
|
|
#pragma once
|
2013-04-03 00:34:30 +00:00
|
|
|
|
|
|
|
#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
|