1// Aseprite
2// Copyright (C) 2001-2017 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_POPUP_FRAME_PIN_H_INCLUDED
8#define APP_UI_POPUP_FRAME_PIN_H_INCLUDED
9#pragma once
10
11#include "ui/popup_window.h"
12
13namespace app {
14
15 class PopupWindowPin : public ui::PopupWindow {
16 public:
17 PopupWindowPin(const std::string& text,
18 const ClickBehavior clickBehavior,
19 const bool canPin = false);
20
21 bool isPinned() const { return m_pinned; }
22 void setPinned(const bool pinned);
23
24 protected:
25 virtual bool onProcessMessage(ui::Message* msg) override;
26 virtual void onWindowMovement() override;
27
28 private:
29 bool m_pinned;
30 };
31
32} // namespace app
33
34#endif
35