| 1234567891011121314151617181920212223 |
- using System.Runtime.InteropServices;
- namespace QuestPDF.Skia;
- [StructLayout(LayoutKind.Sequential)]
- internal struct SkRect
- {
- public float Left;
- public float Top;
- public float Right;
- public float Bottom;
-
- public SkRect(float left, float top, float right, float bottom)
- {
- Left = left;
- Top = top;
- Right = right;
- Bottom = bottom;
- }
-
- public float Width => Right - Left;
- public float Height => Bottom - Top;
- }
|