aseprite/src/ui/popup_frame.h

44 lines
955 B
C
Raw Normal View History

// ASEPRITE gui library
2012-01-06 03:52:11 +00:00
// Copyright (C) 2001-2012 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
2012-06-18 01:49:58 +00:00
#ifndef UI_POPUP_FRAME_H_INCLUDED
#define UI_POPUP_FRAME_H_INCLUDED
2010-03-07 18:10:48 +00:00
#include "base/compiler_specific.h"
2012-06-18 01:49:58 +00:00
#include "ui/frame.h"
2010-03-07 18:10:48 +00:00
namespace ui {
class PopupFrame : public Frame
{
public:
PopupFrame(const char* text, bool close_on_buttonpressed);
~PopupFrame();
void setHotRegion(JRegion region);
void makeFloating();
void makeFixed();
protected:
bool onProcessMessage(Message* msg) OVERRIDE;
void onPreferredSize(PreferredSizeEvent& ev) OVERRIDE;
void onPaint(PaintEvent& ev) OVERRIDE;
void onInitTheme(InitThemeEvent& ev) OVERRIDE;
private:
void startFilteringMessages();
void stopFilteringMessages();
bool m_close_on_buttonpressed;
JRegion m_hot_region;
bool m_filtering;
};
} // namespace ui
2010-03-07 18:10:48 +00:00
#endif