Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-02-19 | Fix build on Solaris 10 and old gcc 4.0.1 | Claes Nästén | |
Remove extra semicolons and commas, as well as isinf() so it builds and runs on Solaris 10. Also add extra fixes for non C++11 courtesy of Sevan Janiyan, making Dillo compile and run on OS X 10.4 PowerPC with GCC 4.0.1 and 8.5. Co-authored-by: Sevan Janiyan <venture37@geeklan.co.uk> | |||
2024-10-17 | Add support for aspect ratio in Widget | Rodrigo Arias Mallo | |
Images should preserve their own aspect ratio, which is determined by the image buffer size, also known as the intrinsic size. Currently, when a child requests a requisition to be corrected by correctRequisition(), only the size was adjusted, ignoring the aspect ratio. The new Widget ratio variable holds the desired aspect ratio for the widget, and will only be taken into account when non-zero. In that case, then correcting the requisition, a naive algorithm tries to first increase the length of the small size to fill the preferred aspect ratio. In the case that it is not enough, the larger size is then decreased to fit the aspect ratio. And if that doesn't work either, the aspect ratio is not enforced and the widget will be distorted. There are special cases for correctRequisition() depending if the parent exists or not. The same approach is taken for both cases, but using the viewport size instead of the parent size. | |||
2024-10-17 | Allow widgets to adjust new requisition | Rodrigo Arias Mallo | |
When a widget calls the parent to correct its own requisition, let the child widget perform adjustments on the requisition. This allows images to control the height when the parent changes the width, so the image can preserve its own aspect ratio. | |||
2024-10-17 | Improve comments in dw::core::Widget | Rodrigo Arias Mallo | |
2024-07-27 | Add SVG support for currentColor | Rodrigo Arias Mallo | |
The currentColor special value for the fill and stroke attributes allows an image to follow the same foreground color of the surounding text. | |||
2016-04-23 | GROWS: Fix rounding errors. | Sebastian Geerken | |
2016-04-23 | GROWS: new options allowDecreaseWidth and allowDecreaseHeight for size ↵ | Sebastian Geerken | |
correction. | |||
2016-04-13 | Removed Layout::queueQueueResizeList and optimized multiple (both nested and ↵ | Sebastian Geerken | |
sequential) queueResize. | |||
2016-04-03 | WidgetReference: Widget::widgetReference. | Sebastian Geerken | |
2016-01-09 | Widget::calcExtraSpace is only called for size, not for extremes. | Sebastian Geerken | |
2016-01-09 | SRDOP: Extend Widget::calcExtraSpace and Widget::calcExtraSpaceImpl by ↵ | Sebastian Geerken | |
references. | |||
2016-01-01 | SRDOP: Consider references and positions in Widget::getExtremes. | Sebastian Geerken | |
2016-01-01 | SRDOP: Consider references and positions in Widget::sizeRequest. | Sebastian Geerken | |
2015-12-28 | SRDOP: Fix endless recursion. | Sebastian Geerken | |
2015-06-08 | SRDOP: Positions relative to multiple references; design now considers ↵ | Sebastian Geerken | |
handling conflicts. | |||
2015-06-06 | SRDOP: Positions also for extremes. | Sebastian Geerken | |
2015-05-21 | SRDOP: started implementation for Textblock. | Sebastian Geerken | |
2015-05-20 | Size requisitions depending on positions (SRDOP): added method signatures. | Sebastian Geerken | |
2015-01-23 | Interrupted drawing etc: cleanup. | Sebastian Geerken | |
2015-01-23 | Same simplifications for Widget::getWidgetAtPoint as for Widget::draw before. | Sebastian Geerken | |
2015-01-23 | Simplified interrupted drawing. (Mouse events will follow.) | Sebastian Geerken | |
2015-01-08 | Merge with main repo. | Sebastian Geerken | |
2015-01-05 | Extremes::adjustmentWidth may now (again) be used for extremes correction. | Sebastian Geerken | |
2015-01-03 | Merge with main repo. | Sebastian Geerken | |
2015-01-02 | Some more work on 'adjust_min_width' correction. | Sebastian Geerken | |
2014-10-25 | Applied interruption (as used for drawing) also to Widget::getWidgetAtPoint. ↵ | Sebastian Geerken | |
(Still bugs\!) | |||
2014-10-23 | Changed signature of Widget::draw and friends. | Sebastian Geerken | |
2014-10-23 | Removed old Widget::draw (backward compatibility is not possible anyway). | Sebastian Geerken | |
2014-10-23 | More work on drawing: interruptions work now halfway. | Sebastian Geerken | |
2014-10-19 | Changes in drawing process: is now interruptable. (Some errors left.) | Sebastian Geerken | |
2014-10-14 | Widget::stackingContextWidget; as well as some cleanup and debug messages. | Sebastian Geerken | |
2014-09-25 | Some work on mouse events (getWidgetAtPoint). | Sebastian Geerken | |
2014-09-23 | OOFAwareWidget::correctRequisitionByOOF: use splitHeightFun. | Sebastian Geerken | |
2014-09-23 | More work on Widget::extraSpace. | Sebastian Geerken | |
2014-09-22 | Cleaned up: Style::box*() -> Widget::box*(). | Sebastian Geerken | |
2014-09-15 | Z-Index and stacking contexts: start. | Sebastian Geerken | |
2014-08-24 | First (since GROWS) work on absolute positions. | Sebastian Geerken | |
2014-08-17 | Some corrections on recent work. | Sebastian Geerken | |
2014-08-16 | Some cleanup. | Sebastian Geerken | |
2014-08-10 | trim spaces | corvid | |
...now that floats and grows are in the repo and I won't be making Sebastian's life difficult with a bunch of whitespace changes. | |||
2014-08-02 | Implemented 'min-height' and 'max-height'. | Sebastian Geerken | |
2014-08-02 | Implemented 'min-width' and 'max-width'. | Sebastian Geerken | |
2014-07-24 | More work on tables; some reorganization. | Sebastian Geerken | |
2014-07-21 | New dillorc option adjust_table_min_width. | Sebastian Geerken | |
2014-07-20 | Fixed segfault with adjust_min_width set to YES. | Sebastian Geerken | |
2014-07-18 | New dillorc option 'adjust_min_width'. Also fixed bug in textblock extremes ↵ | Sebastian Geerken | |
calculation. | |||
2014-07-17 | Handling nested layouts (e. g. <button>), part 1. | Sebastian Geerken | |
2014-07-07 | Removed widget flag HAS_CONTENTS. | Sebastian Geerken | |
2014-07-07 | Removed widget flag USES_HINTS. | Sebastian Geerken | |
2014-07-07 | Implemented Table::correctRequisitionOfChild. | Sebastian Geerken | |