chromium/ui/gfx/geometry/insets_f.h

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_GFX_GEOMETRY_INSETS_F_H_
#define UI_GFX_GEOMETRY_INSETS_F_H_

#include "ui/gfx/geometry/geometry_export.h"
#include "ui/gfx/geometry/insets_outsets_f_base.h"

namespace gfx {

class OutsetsF;

// A floating point version of gfx::Insets.
class GEOMETRY_EXPORT InsetsF : public InsetsOutsetsFBase<InsetsF> {};

inline InsetsF ScaleInsets(InsetsF i, float x_scale, float y_scale) {}

inline InsetsF ScaleInsets(const InsetsF& i, float scale) {}

inline InsetsF operator+(InsetsF lhs, const InsetsF& rhs) {}

inline InsetsF operator-(InsetsF lhs, const InsetsF& rhs) {}

// This is declared here for use in gtest-based unit tests but is defined in
// the //ui/gfx:test_support target. Depend on that to use this in your unit
// test. This should not be used in production code - call ToString() instead.
void PrintTo(const InsetsF&, ::std::ostream* os);

}  // namespace gfx

#endif  // UI_GFX_GEOMETRY_INSETS_F_H_