Euphoria
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
libs
base
src
base
size.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
eu
4
{
10
struct
Size
11
{
12
int
width
;
13
int
height
;
14
};
15
constexpr
bool
operator==
(
const
Size
& lhs,
const
Size
& rhs)
16
{
17
return
lhs.
width
== rhs.
width
18
&& lhs.
height
== rhs.
height
;
19
}
20
22
std::string
string_from
(
const
Size
&
v
);
23
25
}
26
27
ADD_DEFAULT_FORMATTER(
eu::Size
, std::string,
eu::string_from
);
eu::string_from
std::string string_from(const An &a)
eu
Definition
assert.h:111
eu::operator==
bool operator==(const Guid &lhs, const Guid &rhs)
eu::R
A (inclusive) range between two values.
Definition
range.h:19
eu::Size
a size
Definition
size.h:11
eu::Size::width
int width
Definition
size.h:12
eu::Size::height
int height
Definition
size.h:13
Generated by
1.9.8