2013-08-08 21:01:20 -03:00
|
|
|
// Aseprite UI Library
|
2013-04-02 21:34:30 -03:00
|
|
|
// Copyright (C) 2001-2013 David Capello
|
|
|
|
//
|
2014-03-29 20:08:05 -03:00
|
|
|
// This file is released under the terms of the MIT license.
|
|
|
|
// Read LICENSE.txt for more information.
|
2013-04-02 21:34:30 -03:00
|
|
|
|
|
|
|
#ifndef UI_LISTITEM_H_INCLUDED
|
|
|
|
#define UI_LISTITEM_H_INCLUDED
|
2014-03-29 19:40:17 -03:00
|
|
|
#pragma once
|
2013-04-02 21:34:30 -03:00
|
|
|
|
|
|
|
#include "base/compiler_specific.h"
|
|
|
|
#include "ui/widget.h"
|
|
|
|
|
|
|
|
namespace ui {
|
|
|
|
|
|
|
|
class ListItem : public Widget
|
|
|
|
{
|
|
|
|
public:
|
2014-04-20 19:53:27 -03:00
|
|
|
ListItem(const std::string& text);
|
2013-04-02 21:34:30 -03:00
|
|
|
|
|
|
|
protected:
|
2013-05-20 20:40:18 -03:00
|
|
|
void onPaint(PaintEvent& ev) OVERRIDE;
|
2013-05-11 17:56:27 -03:00
|
|
|
void onResize(ResizeEvent& ev) OVERRIDE;
|
2013-04-02 21:34:30 -03:00
|
|
|
void onPreferredSize(PreferredSizeEvent& ev) OVERRIDE;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace ui
|
|
|
|
|
|
|
|
#endif
|