michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef NSMARGIN_H michael@0: #define NSMARGIN_H michael@0: michael@0: #include "nsCoord.h" michael@0: #include "nsPoint.h" michael@0: #include "gfxCore.h" michael@0: #include "mozilla/gfx/BaseMargin.h" michael@0: michael@0: struct nsMargin : public mozilla::gfx::BaseMargin { michael@0: typedef mozilla::gfx::BaseMargin Super; michael@0: michael@0: // Constructors michael@0: nsMargin() : Super() {} michael@0: nsMargin(const nsMargin& aMargin) : Super(aMargin) {} michael@0: nsMargin(nscoord aTop, nscoord aRight, nscoord aBottom, nscoord aLeft) michael@0: : Super(aTop, aRight, aBottom, aLeft) {} michael@0: }; michael@0: michael@0: struct nsIntMargin : public mozilla::gfx::BaseMargin { michael@0: typedef mozilla::gfx::BaseMargin Super; michael@0: michael@0: // Constructors michael@0: nsIntMargin() : Super() {} michael@0: nsIntMargin(const nsIntMargin& aMargin) : Super(aMargin) {} michael@0: nsIntMargin(int32_t aTop, int32_t aRight, int32_t aBottom, int32_t aLeft) michael@0: : Super(aTop, aRight, aBottom, aLeft) {} michael@0: }; michael@0: michael@0: #endif /* NSMARGIN_H */