David Capello
311d27078f
Check min/max widgets size in ui::Box layout algorithm
2016-09-09 20:21:33 -03:00
David Capello
1aaeacc460
Refactor several "getNoun()" getters to "noun()"
...
This is a work-in-progress to create a consistent API and finally
separate the whole Aseprite base/gfx/ui libs into a reusable C++ library.
Classes:
app::IFileItem, app::AppMenuItem, app::skin::SkinPart,
gfx::Rect, gfx::Border, she::FileDialog,
ui::IButtonIcon, ui::Graphics, ui::Overlay, ui::Widget,
ui::ScrollableViewDelegate, and UI events
2015-12-04 14:39:04 -03:00
David Capello
cdd955441a
Rename PreferredSize -> SizeHint
2015-12-03 21:50:05 -03:00
David Capello
78ba213471
Rename ui::Widget::getChildren() -> children()
...
Extra changes:
* Removed UI_FOREACH_WIDGET(), replaced with range-based for-loops
2015-12-03 19:46:13 -03:00
David Capello
e6d22e7e38
Reimplement Box resize algorithm
2015-06-23 22:46:05 -03:00
David Capello
a2538628c7
Convert ui::Widget::border_width/child_spacing to private fields
2015-06-23 19:20:49 -03:00
David Capello
1922a27b38
Make ui::Widget::flags field private
2015-06-23 16:07:41 -03:00
David Capello
f01b816fb5
Remove JI_ prefix from ui/base.h constants
2015-06-23 14:00:00 -03:00
David Capello
78ce233756
Fix header of files distributed under the terms of the MIT license
2014-03-29 20:08:05 -03:00
David Capello
dbf4d0d490
Replace JRect/jrect struct with gfx::Rect
...
- Replaced Widget::rc -> Widget::m_bounds private member.
- Added Widget::offsetWidgets() method.
- Removed View::displaceWidgets().
2013-10-26 12:50:55 -03:00
David Capello
cde54f3682
Change BSD license to MIT in sublibraries and fix headers
2013-08-08 21:01:20 -03:00
David Capello
c88f9b172b
Refactor: Move app files to src/app subdirectory inside app namespace
...
- Add HAVE_CONFIG_H wrapper to #include "config.h"
- Removed widgets namespace (it's in app now)
- Move some functions from src/file/file.h to src/base/cfile.h
- Move Vector2d to base library
- Rename MenuItem2 to AppMenuItem
2013-08-05 21:20:19 -03:00
David Capello
01dfe4d52e
Replace kResizeMessage message with ResizeEvent and Widget::onResize()
...
- Remove jwidget_set_rect() function.
2013-05-11 17:56:27 -03:00
David Capello
3dbf6518f9
Replace all JM_ macros with ui::MessageType enum and add ui::RegisterMessage class to register new UI messages
2013-04-04 21:53:29 -03:00
David Capello
6e62bcb82f
Add ui::WidgetType enum to replace JI_WIDGET macros
2013-04-03 22:07:24 -03:00
David Capello
9b8e87da10
Update copyright year to 2013
2013-01-27 12:13:13 -03:00
David Capello
0496f38ed3
Fix a typo in all files distributed under BSD-like and Allegro licenses
...
Thanks to Tobias Hansen.
2012-09-23 23:24:43 -03:00
David Capello
14f24b1181
Refactor: replace JList with std::vector<> or std::list<>.
2012-07-17 21:42:02 -03:00
David Capello
55aca8567c
Move src/gui/ to src/ui/
2012-06-17 22:49:58 -03:00