summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Margins.h
AgeCommit message (Collapse)Author
2022-07-04LibGUI: Add horizontal and vertical totals to MarginsFrHun
2022-06-28LibGUI: Add direction totals to MarginsFrHun
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2021-11-03LibGUI: Add utility functions to MarginsFrHun
2021-09-16LibGUI: Use default instead of an empty constructor/destructorBrian Gianforcaro
Default implementations allow for more optimizations. See: https://pvs-studio.com/en/docs/warnings/v832/
2021-08-18Userland+LibGUI: Add shorthand versions of the Margins constructorsin-ack
This allows for typing [8] instead of [8, 8, 8, 8] to specify the same margin on all edges, for example. The constructors follow CSS' style of specifying margins. The added constructors are: - Margins(int all): Sets the same margin on all edges. - Margins(int vertical, int horizontal): Sets the first argument to top and bottom margins, and the second argument to left and right margins. - Margins(int top, int vertical, int bottom): Sets the first argument to the top margin, the second argument to the left and right margins, and the third argument to the bottom margin.
2021-08-18Userland+LibGUI: Make Margins arguments match CSS orderingsin-ack
Previously the argument order for Margins was (left, top, right, bottom). To make it more familiar and closer to how CSS does it, the argument order is now (top, right, bottom, left).
2021-06-15LibGUI: Make a macro for registering a GUI::Margins object propertyAndreas Kling
This will allow anyone to register a margins property without having to duplicate the parsing logic.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling