blob: fd15222d71bd21e4c7e4287c8ecf889c9e1be853 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "cobalt/layout/layout_unit.h"
#include "cobalt/math/insets_base.h"
namespace cobalt {
namespace layout {
// A floating-point version of Insets.
class InsetsLayoutUnit : public math::InsetsBase<InsetsLayoutUnit, LayoutUnit> {
InsetsLayoutUnit() {}
InsetsLayoutUnit(LayoutUnit left, LayoutUnit top, LayoutUnit right,
LayoutUnit bottom);
// Returns a string representation of the insets.
std::string ToString() const;
} // namespace layout
} // namespace cobalt
namespace cobalt {
namespace math {
extern template class InsetsBase<layout::InsetsLayoutUnit, layout::LayoutUnit>;
} // namespace math
} // namespace cobalt