OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:RangeF
(Results
1 - 5
of
5
) sorted by null
/external/libmojo/ui/gfx/range/
range_f.h
17
// A float version of Range.
RangeF
is made of a start and end position; when
20
class GFX_RANGE_EXPORT
RangeF
{
23
constexpr
RangeF
() :
RangeF
(0.f) {}
26
constexpr
RangeF
(float start, float end) : start_(start), end_(end) {}
29
constexpr explicit
RangeF
(float position) :
RangeF
(position, position) {}
32
static constexpr
RangeF
InvalidRange() {
33
return
RangeF
(std::numeric_limits<float>::max());
56
constexpr bool operator==(const
RangeF
& other) const
[
all
...]
range_f.cc
17
RangeF
RangeF
::Intersect(const
RangeF
& range) const {
24
return
RangeF
(min, max);
27
RangeF
RangeF
::Intersect(const Range& range) const {
28
RangeF
range_f(range.start(), range.end());
32
Range
RangeF
::Floor() const {
38
Range
RangeF
::Ceil() const {
44
Range
RangeF
::Round() const
[
all
...]
range_unittest.cc
17
typedef testing::Types<gfx::Range, gfx::
RangeF
> RangeTypes;
229
gfx::
RangeF
range_f(1.2f, 3.9f);
/external/libmojo/ui/gfx/range/mojo/
range_struct_traits.h
26
struct StructTraits<gfx::mojom::RangeFDataView, gfx::
RangeF
> {
27
static float start(const gfx::
RangeF
& r) { return r.start(); }
28
static float end(const gfx::
RangeF
& r) { return r.end(); }
29
static bool Read(gfx::mojom::RangeFDataView data, gfx::
RangeF
* out) {
range_struct_traits_unittest.cc
34
void EchoRangeF(const
RangeF
& p, EchoRangeFCallback callback) override {
57
TEST_F(RangeStructTraitsTest,
RangeF
) {
60
gfx::
RangeF
input(start, end);
62
gfx::
RangeF
output;
Completed in 72 milliseconds