LibreOffice Module basegfx (master) 1
b2ipoint.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
23
24namespace basegfx
25{
26 class B2DHomMatrix;
27
37 {
38 public:
44 {}
45
56 B2IPoint(sal_Int32 nX, sal_Int32 nY)
57 : B2ITuple(nX, nY)
58 {}
59
63 B2IPoint(const ::basegfx::B2ITuple& rTuple)
64 : B2ITuple(rTuple)
65 {}
66
70 {
71 mnX *= rPnt.mnX;
72 mnY *= rPnt.mnY;
73 return *this;
74 }
75
78 B2IPoint& operator*=(sal_Int32 t)
79 {
80 mnX *= t;
81 mnY *= t;
82 return *this;
83 }
84
88 B2IPoint& operator=( const ::basegfx::B2ITuple& rPoint );
89
95 B2IPoint& operator*=( const ::basegfx::B2DHomMatrix& rMat );
96 };
97} // end of namespace basegfx
98
99/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XPropertyListType t
Base Point class with two sal_Int32 values.
Definition: b2ipoint.hxx:37
B2IPoint()
Create a 2D Point.
Definition: b2ipoint.hxx:43
B2IPoint & operator*=(const B2IPoint &rPnt)
*=operator to allow usage from B2IPoint, too
Definition: b2ipoint.hxx:69
B2IPoint & operator*=(sal_Int32 t)
*=operator to allow usage from B2IPoint, too
Definition: b2ipoint.hxx:78
B2IPoint(const ::basegfx::B2ITuple &rTuple)
constructor with tuple to allow copy-constructing from B2ITuple-based classes
Definition: b2ipoint.hxx:63
B2IPoint(sal_Int32 nX, sal_Int32 nY)
Create a 2D Point.
Definition: b2ipoint.hxx:56
Base class for all Points/Vectors with two sal_Int32 values.
Definition: b2ituple.hxx:37
#define SAL_WARN_UNUSED
SmFace & operator*=(SmFace &rFace, const Fraction &rFrac)