aseprite/src/gui/jpopup_window.h

30 lines
624 B
C
Raw Normal View History

// ASE gui library
// Copyright (C) 2001-2010 David Capello
//
// This source file is ditributed under a BSD-like license, please
// read LICENSE.txt for more information.
2010-03-07 18:10:48 +00:00
#ifndef GUI_JPOPUP_WINDOW_H_INCLUDED
#define GUI_JPOPUP_WINDOW_H_INCLUDED
2010-03-07 18:10:48 +00:00
#include "gui/jwindow.h"
2010-03-07 18:10:48 +00:00
class PopupWindow : public Frame
{
bool m_close_on_buttonpressed;
JRegion m_hot_region;
bool m_filtering;
public:
PopupWindow(const char* text, bool close_on_buttonpressed);
~PopupWindow();
2010-03-07 18:10:48 +00:00
void setHotRegion(JRegion region);
protected:
bool onProcessMessage(JMessage msg);
void onPreferredSize(PreferredSizeEvent& ev);
2010-03-07 18:10:48 +00:00
};
#endif