1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 23:54:57 +00:00
serenity/Userland/Applications/PixelPaint/Tools
Shannon Booth e2e7c4d574 Everywhere: Use to_number<T> instead of to_{int,uint,float,double}
In a bunch of cases, this actually ends up simplifying the code as
to_number will handle something such as:

```
Optional<I> opt;
if constexpr (IsSigned<I>)
    opt = view.to_int<I>();
else
    opt = view.to_uint<I>();
```

For us.

The main goal here however is to have a single generic number conversion
API between all of the String classes.
2023-12-23 20:41:07 +01:00
..
BrushTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
BrushTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
BucketTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
BucketTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
CloneTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
CloneTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
EllipseTool.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
EllipseTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
EraseTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
EraseTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
GradientTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
GradientTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
GuideTool.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
GuideTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
LassoSelectTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
LassoSelectTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
LineTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
LineTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
MoveTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
MoveTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
PenTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
PenTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
PickerTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
PickerTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
PolygonalSelectTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
PolygonalSelectTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
RectangleSelectTool.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
RectangleSelectTool.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
RectangleTool.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
RectangleTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
SprayTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
SprayTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
TextTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
TextTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
Tool.cpp PixelPaint: BrushTool performance optimization 2023-08-18 10:27:56 +01:00
Tool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
WandSelectTool.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
WandSelectTool.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
ZoomTool.cpp PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00
ZoomTool.h PixelPaint: Make tool properties widget construction non-fallible 2023-09-25 10:58:31 +02:00