ICF 3.1.1.10
Technical documentation of ICF Libraries
CPosition2dComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
11#include <i2d/CPosition2d.h>
12
13
14namespace i2d
15{
16
17
22class CPosition2dComp: public TObject2dCompWrap<CPosition2d>
23{
24public:
26
27 I_BEGIN_COMPONENT(CPosition2dComp);
28 I_REGISTER_INTERFACE(i2d::CPosition2d);
29 I_ASSIGN(m_xAttrPtr, "X", "X-Position", true, 0);
30 I_ASSIGN(m_yAttrPtr, "Y", "Y-Position", true, 0);
31 I_END_COMPONENT;
32
33protected:
34 // reimplemented (icomp::CComponentBase)
35 void OnComponentCreated() override;
36
37private:
38 I_ATTR(double, m_xAttrPtr);
39 I_ATTR(double, m_yAttrPtr);
40};
41
42
43} // namespace i2d
44
45
Implementation of a 2D-position as a component.
void OnComponentCreated() override
TObject2dCompWrap< CPosition2d > BaseClass
Definition of graphical point object.
Definition CPosition2d.h:22
Base class for all components implementing 2D objects.
Contains the 2D objects.
Definition CAffine2d.h:15

© Witold Gantzke and Kirill Lepskiy