2015-02-12 23:16:25 +08:00
|
|
|
// Aseprite
|
2019-05-08 21:55:56 +08:00
|
|
|
// Copyright (C) 2018-2019 Igara Studio S.A.
|
2017-02-14 05:34:23 +08:00
|
|
|
// Copyright (C) 2001-2017 David Capello
|
2015-02-12 23:16:25 +08:00
|
|
|
//
|
2016-08-27 04:02:58 +08:00
|
|
|
// This program is distributed under the terms of
|
|
|
|
// the End-User License Agreement for Aseprite.
|
2013-08-06 08:20:19 +08:00
|
|
|
|
|
|
|
#ifndef APP_MODULES_GUI_H_INCLUDED
|
|
|
|
#define APP_MODULES_GUI_H_INCLUDED
|
2014-03-30 06:40:17 +08:00
|
|
|
#pragma once
|
2013-08-06 08:20:19 +08:00
|
|
|
|
|
|
|
#include "app/ui/skin/skin_property.h"
|
|
|
|
#include "base/exception.h"
|
2015-04-22 00:31:24 +08:00
|
|
|
#include "gfx/rect.h"
|
2013-08-06 08:20:19 +08:00
|
|
|
#include "ui/base.h"
|
|
|
|
|
|
|
|
namespace ui {
|
|
|
|
class ButtonBase;
|
|
|
|
class CheckBox;
|
|
|
|
class Message;
|
|
|
|
class RadioButton;
|
|
|
|
class Widget;
|
|
|
|
class Window;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace app {
|
|
|
|
class Command;
|
2018-07-07 22:54:44 +08:00
|
|
|
class Doc;
|
2013-08-06 08:20:19 +08:00
|
|
|
class Params;
|
|
|
|
|
|
|
|
namespace tools {
|
|
|
|
class Tool;
|
|
|
|
}
|
|
|
|
|
|
|
|
int init_module_gui();
|
|
|
|
void exit_module_gui();
|
|
|
|
|
2020-07-08 06:06:48 +08:00
|
|
|
void update_windows_color_profile_from_preferences();
|
2018-07-07 22:54:44 +08:00
|
|
|
void update_screen_for_document(const Doc* document);
|
2013-08-06 08:20:19 +08:00
|
|
|
|
2018-11-29 22:44:10 +08:00
|
|
|
void load_window_pos(ui::Widget* window, const char* section,
|
|
|
|
const bool limitMinSize = true);
|
|
|
|
void save_window_pos(ui::Widget* window, const char* section);
|
2013-08-06 08:20:19 +08:00
|
|
|
|
2014-01-26 19:39:33 +08:00
|
|
|
ui::Widget* setup_mini_font(ui::Widget* widget);
|
|
|
|
ui::Widget* setup_mini_look(ui::Widget* widget);
|
2013-08-06 08:20:19 +08:00
|
|
|
|
2015-04-22 00:31:24 +08:00
|
|
|
// This function can be used to reinvalidate a specific rectangle if
|
|
|
|
// we weren't able to validate it on a onPaint() event. E.g. Because
|
|
|
|
// the current document was locked.
|
|
|
|
void defer_invalid_rect(const gfx::Rect& rc);
|
|
|
|
|
2013-08-06 08:20:19 +08:00
|
|
|
} // namespace app
|
|
|
|
|
|
|
|
#endif
|