summaryrefslogtreecommitdiff
path: root/Libraries/LibDraw/Painter.h
AgeCommit message (Collapse)Author
2019-11-27LibDraw: Support dotted lines in Painter::draw_line()Andreas Kling
Painter::draw_line() now has an optional "bool dotted" parameter that causes it to only render every other pixel. Note that this only works with horizontal and vertical lines at the moment and we'll assert if called with dotted=true for a diagonal line.
2019-11-25LibDraw: Add Painter::clear_rect() for filling a rect without blendingAndreas Kling
Sometimes you want to fill a rect with a specific color without alpha blending it with whatever's already there.
2019-10-19LibDraw: Store emojis in a HashMap<u32, RefPtr<GraphicsBitmap>>Andreas Kling
Get rid of the dedicated Emoji class to make it easier to store a null value signifying a failed lookup. This allows us to remember failed lookups, making subsequent failures for the same codepoint much faster. :^)
2019-10-19LibDraw: Rename Painter::blit_tiled() => draw_tiled_bitmap()Andreas Kling
Also change the API to take a destination rect instead of a source rect since internally it was basically creating a destination rect from the source rect anyway. It was a little confusing.
2019-09-06AK: Rename <AK/AKString.h> to <AK/String.h>Andreas Kling
This was a workaround to be able to build on case-insensitive file systems where it might get confused about <string.h> vs <String.h>. Let's just not support building that way, so String.h can have an objectively nicer name. :^)
2019-09-05LibDraw: Add emoji drawing support to PainterSergey Bugaev
From here on, all strings displayed to the user are expected to be encoded as UTF-8. The next few commits will deal with a few existing places where this requirement is currently violated. https://github.com/SerenityOS/serenity/issues/490
2019-07-18LibDraw: Introduce (formerly known as SharedGraphics.)Andreas Kling
Instead of LibGUI and WindowServer building their own copies of the drawing and graphics code, let's it in a separate LibDraw library. This avoids building the code twice, and will encourage better separation of concerns. :^)