#ifndef UI_VIEWS_LAYOUT_NORMALIZED_GEOMETRY_H_
#define UI_VIEWS_LAYOUT_NORMALIZED_GEOMETRY_H_
#include <string>
#include <utility>
#include "ui/views/layout/flex_layout_types.h"
#include "ui/views/views_export.h"
namespace gfx {
class Insets;
class Point;
class Rect;
class Size;
}
namespace views {
class SizeBounds;
class VIEWS_EXPORT NormalizedPoint { … };
class VIEWS_EXPORT NormalizedSize { … };
class VIEWS_EXPORT NormalizedInsets { … };
class VIEWS_EXPORT NormalizedSizeBounds { … };
class VIEWS_EXPORT NormalizedRect { … };
NormalizedPoint VIEWS_EXPORT Normalize(LayoutOrientation orientation,
const gfx::Point& point);
gfx::Point VIEWS_EXPORT Denormalize(LayoutOrientation orientation,
const NormalizedPoint& point);
NormalizedSize VIEWS_EXPORT Normalize(LayoutOrientation orientation,
const gfx::Size& size);
gfx::Size VIEWS_EXPORT Denormalize(LayoutOrientation orientation,
const NormalizedSize& size);
NormalizedSizeBounds VIEWS_EXPORT Normalize(LayoutOrientation orientation,
const SizeBounds& bounds);
SizeBounds VIEWS_EXPORT Denormalize(LayoutOrientation orientation,
const NormalizedSizeBounds& bounds);
NormalizedInsets VIEWS_EXPORT Normalize(LayoutOrientation orientation,
const gfx::Insets& insets);
gfx::Insets VIEWS_EXPORT Denormalize(LayoutOrientation orientation,
const NormalizedInsets& insets);
NormalizedRect VIEWS_EXPORT Normalize(LayoutOrientation orientation,
const gfx::Rect& rect);
gfx::Rect VIEWS_EXPORT Denormalize(LayoutOrientation orientation,
const NormalizedRect& rect);
int VIEWS_EXPORT GetMainAxis(LayoutOrientation orientation,
const gfx::Size& size);
int VIEWS_EXPORT GetCrossAxis(LayoutOrientation orientation,
const gfx::Size& size);
SizeBound VIEWS_EXPORT GetMainAxis(LayoutOrientation orientation,
const SizeBounds& size);
SizeBound VIEWS_EXPORT GetCrossAxis(LayoutOrientation orientation,
const SizeBounds& size);
void VIEWS_EXPORT SetMainAxis(gfx::Size* size,
LayoutOrientation orientation,
int main);
void VIEWS_EXPORT SetCrossAxis(gfx::Size* size,
LayoutOrientation orientation,
int cross);
void VIEWS_EXPORT SetMainAxis(SizeBounds* size,
LayoutOrientation orientation,
SizeBound main);
void VIEWS_EXPORT SetCrossAxis(SizeBounds* size,
LayoutOrientation orientation,
SizeBound cross);
}
#endif