1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 01:47:36 +00:00
serenity/Userland/Libraries/LibGfx
Lenny Maiorani 6a23dfbc92 LibGfx: Use common class template for PBM/PGM/PPM image loaders
PBM, PGM, and PPM image loaders are mostly common. The only difference
is how the data is read and the associated magic numbers. The magic
numbers are already made common using the loading contexts. Now make
the implementations common via a class template which accepts the
context to disambiguate.
2022-03-13 22:35:20 +01:00
..
Filters PixelPaint+LibGfx: Add sepia color filter 2022-01-08 12:31:11 +01:00
TrueTypeFont LibGUI+LibGfx: Defer to fonts when setting Editor line height 2022-02-24 18:09:22 +01:00
AffineTransform.cpp Everywhere: Don't promote float to double where not needed 2021-07-08 10:11:00 +02:00
AffineTransform.h AK: Convert AK::Format formatting helpers to returning ErrorOr<void> 2021-11-17 00:21:13 +01:00
AntiAliasingPainter.cpp LibGfx: Implement cubic bezier curves by splitting them to subcurves 2021-09-18 02:12:38 +04:30
AntiAliasingPainter.h LibGfx: Implement cubic bezier curves by splitting them to subcurves 2021-09-18 02:12:38 +04:30
Bitmap.cpp LibGfx: Rename RGBA32 => ARGB32 2022-03-04 23:40:21 +01:00
Bitmap.h LibGfx: Rename Color::from_rgba() => Color::from_argb() 2022-03-04 23:40:21 +01:00
BitmapFont.cpp Everywhere: Fully qualify font names by including their slope 2022-02-01 10:06:26 +01:00
BitmapFont.h LibGUI+LibGfx: Defer to fonts when setting Editor line height 2022-02-24 18:09:22 +01:00
BitmapMixer.cpp LibGfx: Add BitmapMixer 2022-01-04 21:41:14 +02:00
BitmapMixer.h LibGfx: Add BitmapMixer 2022-01-04 21:41:14 +02:00
BMPLoader.cpp Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
BMPLoader.h LibGfx: Make ImageDecoderPlugin::frame() return ErrorOr<> 2021-11-21 20:22:48 +01:00
BMPWriter.cpp Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
BMPWriter.h LibGfx/BMPWriter: Add support for V3 & V4 DIB headers 2021-07-05 00:43:00 +02:00
CharacterBitmap.h Libraries: Make CharacterBitmap instances at compile-time 2022-03-04 17:41:08 +01:00
ClassicStylePainter.cpp Libraries: Make CharacterBitmap instances at compile-time 2022-03-04 17:41:08 +01:00
ClassicStylePainter.h LibGUI: Allow Buttons to set themselves as default 2022-01-26 23:19:54 +01:00
ClassicWindowTheme.cpp Theming: Add alignment section 2022-01-01 22:51:53 +01:00
ClassicWindowTheme.h Everywhere: Fix spelling mistakes 2022-01-07 15:44:42 +01:00
CMakeLists.txt Libraries: Make CharacterBitmap instances at compile-time 2022-03-04 17:41:08 +01:00
Color.cpp LibGfx: Rename Color::from_rgba() => Color::from_argb() 2022-03-04 23:40:21 +01:00
Color.h LibGfx: Rename Color::from_rgba() => Color::from_argb() 2022-03-04 23:40:21 +01:00
CursorParams.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
CursorParams.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
DDSLoader.cpp LibGfx: Make ImageDecoderPlugin::frame() return ErrorOr<> 2021-11-21 20:22:48 +01:00
DDSLoader.h LibGfx: Make ImageDecoderPlugin::frame() return ErrorOr<> 2021-11-21 20:22:48 +01:00
DisjointRectSet.cpp LibGfx: Unify Rect, Point, and Size 2021-05-02 22:48:06 +02:00
DisjointRectSet.h WindowServer: Add basic virtual desktop support 2021-07-03 12:27:23 +02:00
Emoji.cpp LibGfx: Add Emoji::emoji_for_code_point_iterator(Utf8CodePointIterator&) 2022-02-23 21:53:30 +00:00
Emoji.h LibGfx: Add Emoji::emoji_for_code_point_iterator(Utf8CodePointIterator&) 2022-02-23 21:53:30 +00:00
FillPathImplementation.h LibWeb: Use Gfx::AntiAliasingPainter to draw SVG paths 2021-09-18 02:12:38 +04:30
Font.h LibGfx: Add Font::AllowInexactSizeMatch parameter to font lookup 2022-02-25 19:38:31 +01:00
FontDatabase.cpp LibGfx: Add Font::AllowInexactSizeMatch parameter to font lookup 2022-02-25 19:38:31 +01:00
FontDatabase.h LibGfx: Add Font::AllowInexactSizeMatch parameter to font lookup 2022-02-25 19:38:31 +01:00
FontStyleMapping.h LibGUI: Add missing headers 2021-10-06 23:52:40 +01:00
Forward.h LibGfx: Forward declare Gfx::FontMetrics as a struct 2021-09-24 19:03:46 +02:00
Gamma.h LibGfx: Avoid inclusion of xmmintrin.h on non-X86 architectures 2022-02-06 03:15:00 +00:00
GIFLoader.cpp LibGfx: Rename RGBA32 => ARGB32 2022-03-04 23:40:21 +01:00
GIFLoader.h LibGfx: Make ImageDecoderPlugin::frame() return ErrorOr<> 2021-11-21 20:22:48 +01:00
ICOLoader.cpp LibGfx: Fix incorrect error handling in ICOLoader 2021-12-23 17:43:31 -08:00
ICOLoader.h LibGfx: Make ImageDecoderPlugin::frame() return ErrorOr<> 2021-11-21 20:22:48 +01:00
ImageDecoder.cpp LibGfx: Add support for "The Quite OK Image Format" (QOI) 2021-12-21 13:27:27 +01:00
ImageDecoder.h LibGfx: Make ImageDecoderPlugin::frame() return ErrorOr<> 2021-11-21 20:22:48 +01:00
JPGLoader.cpp LibGfx: Fix JPG decoding bug on rare grayscale images 2022-02-19 21:27:34 +01:00
JPGLoader.h LibGfx: Make ImageDecoderPlugin::frame() return ErrorOr<> 2021-11-21 20:22:48 +01:00
Line.h LibGUI: Add missing headers 2021-10-06 23:52:40 +01:00
Matrix.h LibGfx+LibGL: Allow singular matrices to be inverted 2022-01-12 01:08:38 +01:00
Matrix3x3.h LibGfx: Add Matrix3x3 2021-12-30 14:24:29 +01:00
Matrix4x4.h Everywhere: Use AK/Math.h if applicable 2021-07-19 16:34:21 +04:30
Orientation.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Painter.cpp LibGfx: Abort draw_circle_arc_intersecting with 0 radius 2022-03-11 10:54:06 +01:00
Painter.h LibGfx+LibGUI: Support multi code point emojis in text painting :^) 2022-02-23 21:53:30 +00:00
Palette.cpp LibGfx: Add more syntax-related ColorRoles 2022-02-09 00:51:31 +01:00
Palette.h Base+LibGUI+LibGfx: Improve disabled text readability 2022-03-05 10:25:14 +01:00
Path.cpp LibWeb: Keep SVG elliptical arc shape when applying viewbox 2022-03-12 15:38:55 +01:00
Path.h LibWeb: Keep SVG elliptical arc shape when applying viewbox 2022-03-12 15:38:55 +01:00
PBMLoader.cpp LibGfx: Use common class template for PBM/PGM/PPM image loaders 2022-03-13 22:35:20 +01:00
PBMLoader.h LibGfx: Use common class template for PBM/PGM/PPM image loaders 2022-03-13 22:35:20 +01:00
PGMLoader.cpp LibGfx: Use common class template for PBM/PGM/PPM image loaders 2022-03-13 22:35:20 +01:00
PGMLoader.h LibGfx: Use common class template for PBM/PGM/PPM image loaders 2022-03-13 22:35:20 +01:00
PNGLoader.cpp LibGfx: Rename RGBA32 => ARGB32 2022-03-04 23:40:21 +01:00
PNGLoader.h LibGfx: Make ImageDecoderPlugin::frame() return ErrorOr<> 2021-11-21 20:22:48 +01:00
PNGWriter.cpp Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
PNGWriter.h LibGfx: Store the size of the chunk from start in PNGWriter 2021-07-14 13:37:18 +02:00
Point.cpp LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void> 2021-11-28 23:14:19 +01:00
Point.h LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void> 2021-11-28 23:14:19 +01:00
PortableImageLoaderCommon.h LibGfx: Commonize P[BGP]M file loading contexts 2022-03-13 22:35:20 +01:00
PortableImageMapLoader.h LibGfx: Use common class template for PBM/PGM/PPM image loaders 2022-03-13 22:35:20 +01:00
PPMLoader.cpp LibGfx: Use common class template for PBM/PGM/PPM image loaders 2022-03-13 22:35:20 +01:00
PPMLoader.h LibGfx: Use common class template for PBM/PGM/PPM image loaders 2022-03-13 22:35:20 +01:00
QOILoader.cpp LibGfx: Keep alpha value of previous pixel for QOI_OP_RGB chunk 2021-12-22 01:12:51 +01:00
QOILoader.h LibGfx: Add support for "The Quite OK Image Format" (QOI) 2021-12-21 13:27:27 +01:00
Rect.cpp LibGfx: Add support for TextAlignment::TopCenter / BottomCenter 2022-03-08 22:09:52 +01:00
Rect.h LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void> 2021-11-28 23:14:19 +01:00
ShareableBitmap.cpp LibGfx: Rename RGBA32 => ARGB32 2022-03-04 23:40:21 +01:00
ShareableBitmap.h LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void> 2021-11-28 23:14:19 +01:00
Size.cpp LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void> 2021-11-28 23:14:19 +01:00
Size.h LibGfx: Make Size constexpr-capable 2022-03-04 17:41:08 +01:00
StandardCursor.h Cursors: Add new Magnifying glass cursor 2021-09-04 03:35:23 +02:00
Streamer.h Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
StylePainter.cpp LibGUI: Allow Buttons to set themselves as default 2022-01-26 23:19:54 +01:00
StylePainter.h LibGfx+LibGUI: Add FrameShape::Window 2022-02-25 19:38:23 +01:00
SystemTheme.cpp LibCore+Everywhere: Return ErrorOr from ConfigFile factory methods 2022-02-16 19:49:41 -05:00
SystemTheme.h Base+LibGUI+LibGfx: Improve disabled text readability 2022-03-05 10:25:14 +01:00
TextAlignment.h LibGfx: Add support for TextAlignment::TopCenter / BottomCenter 2022-03-08 22:09:52 +01:00
TextAttributes.h LibGfx: Expand TextAttributes with more information about underlining 2022-01-23 15:48:27 +03:30
TextDirection.cpp Everywhere: Fix a bunch of typos 2021-05-17 17:48:55 +01:00
TextDirection.h LibGUI: Add missing headers 2021-10-06 23:52:40 +01:00
TextElision.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
TextLayout.cpp LibGfx: Take the glyph spacing into account when building a line 2021-07-27 23:47:00 +02:00
TextLayout.h Userland: Move text wrapping/elision into the new TextLayout :^) 2021-07-26 21:14:39 +04:30
TextWrapping.h Userland: Move text wrapping/elision into the new TextLayout :^) 2021-07-26 21:14:39 +04:30
Triangle.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Triangle.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Typeface.cpp LibGfx: Add Font::AllowInexactSizeMatch parameter to font lookup 2022-02-25 19:38:31 +01:00
Typeface.h LibGfx: Add Font::AllowInexactSizeMatch parameter to font lookup 2022-02-25 19:38:31 +01:00
Vector2.h LibGfx: Refactor Vector[2,3,4] to VectorN with specializations 2022-03-04 12:56:05 +01:00
Vector3.h LibGfx: Refactor Vector[2,3,4] to VectorN with specializations 2022-03-04 12:56:05 +01:00
Vector4.h LibGfx: Refactor Vector[2,3,4] to VectorN with specializations 2022-03-04 12:56:05 +01:00
VectorN.h LibGfx+LibSoftGPU: Allow indexed reads into Gfx::Vector 2022-03-11 12:30:43 +01:00
WindowTheme.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
WindowTheme.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00