ladybird/Userland/Libraries/LibWeb/Layout/BoxModelMetrics.h

33 lines
519 B
C
Raw Normal View History

/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
2020-02-06 12:04:00 +01:00
#include <LibGfx/Size.h>
namespace Web::Layout {
struct PixelBox {
float top { 0 };
float right { 0 };
float bottom { 0 };
float left { 0 };
};
struct BoxModelMetrics {
public:
PixelBox margin;
PixelBox padding;
PixelBox border;
PixelBox offset;
PixelBox margin_box() const;
PixelBox padding_box() const;
PixelBox border_box() const;
};
}