aseprite/src/gui/popup_frame.h

32 lines
656 B
C
Raw Normal View History

// ASE gui library
// Copyright (C) 2001-2011 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
2011-01-22 14:28:40 +00:00
#ifndef GUI_POPUP_FRAME_H_INCLUDED
#define GUI_POPUP_FRAME_H_INCLUDED
2010-03-07 18:10:48 +00:00
#include "gui/frame.h"
2010-03-07 18:10:48 +00:00
2011-01-22 14:28:40 +00:00
class PopupFrame : public Frame
2010-03-07 18:10:48 +00:00
{
public:
2011-01-22 14:28:40 +00:00
PopupFrame(const char* text, bool close_on_buttonpressed);
~PopupFrame();
2010-03-07 18:10:48 +00:00
void setHotRegion(JRegion region);
protected:
bool onProcessMessage(JMessage msg);
void onPreferredSize(PreferredSizeEvent& ev);
void onPaint(PaintEvent& ev);
2011-01-22 14:28:40 +00:00
private:
bool m_close_on_buttonpressed;
JRegion m_hot_region;
bool m_filtering;
2010-03-07 18:10:48 +00:00
};
#endif