xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
point.cpp
Shows how to use
xtd::drawing::point
class.
#include <xtd/xtd>
using namespace
xtd::drawing
;
auto
main() ->
int
{
auto
location =
point
{10, 235};
console::write_line
(
"location = {}"
, location);
location.x = location.x + 20;
location.y = location.y - 15;
console::write_line
(
"location = {}"
, location);
location =
point
{10, 10} +
size
{20, 50};
console::write_line
(
"location = {}"
, location);
location.offset({70, 140});
console::write_line
(
"location = {}"
, location);
}
// This code produces the following output :
//
// location = {x=10, y=235}
// location = {x=30, y=220}
// location = {x=30, y=60}
// location = {x=100, y=200}
xtd::console::write_line
static auto write_line() -> void
Writes the current line terminator to the standard output stream using the specified format informati...
xtd::drawing
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition
actions_system_images.hpp:10
xtd::drawing::point
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition
point.hpp:54
xtd::drawing::size
Stores an ordered pair of integers, which specify a height and width.
Definition
size.hpp:32
Generated on
for xtd by
Gammasoft
. All rights reserved.