1 | // Aseprite |
2 | // Copyright (C) 2001-2015 David Capello |
3 | // |
4 | // This program is distributed under the terms of |
5 | // the End-User License Agreement for Aseprite. |
6 | |
7 | #ifndef APP_UI_SEARCH_ENTRY_H_INCLUDED |
8 | #define APP_UI_SEARCH_ENTRY_H_INCLUDED |
9 | #pragma once |
10 | |
11 | #include "ui/entry.h" |
12 | |
13 | namespace app { |
14 | |
15 | class SearchEntry : public ui::Entry { |
16 | public: |
17 | SearchEntry(); |
18 | |
19 | private: |
20 | bool onProcessMessage(ui::Message* msg) override; |
21 | void onPaint(ui::PaintEvent& ev) override; |
22 | void onSizeHint(ui::SizeHintEvent& ev) override; |
23 | gfx::Rect onGetEntryTextBounds() const override; |
24 | |
25 | gfx::Rect getCloseIconBounds() const; |
26 | }; |
27 | |
28 | } // namespace app |
29 | |
30 | #endif |
31 | |