blob: 1cbfb8821f2746cfeb5b6633dae2a31fa8dc8b68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// 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.
#ifndef UI_GFX_SAFE_INTEGER_CONVERSIONS_H_
#define UI_GFX_SAFE_INTEGER_CONVERSIONS_H_
#include "ui/base/ui_export.h"
namespace gfx {
UI_EXPORT int ClampToInt(float value);
UI_EXPORT int ToFlooredInt(float value);
UI_EXPORT int ToCeiledInt(float value);
UI_EXPORT int ToRoundedInt(float value);
} // namespace gfx
#endif // UI_GFX_SAFE_INTEGER_CONVERSIONS_H_
|