Last change
on this file since 13707 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
1.1 KB
|
Line | |
---|
1 | using System;
|
---|
2 |
|
---|
3 | using System.Windows;
|
---|
4 |
|
---|
5 | namespace SharpVectors.Renderers.Texts
|
---|
6 | {
|
---|
7 | public struct WpfTextPosition
|
---|
8 | {
|
---|
9 | private Point _location;
|
---|
10 | private double _rotation;
|
---|
11 |
|
---|
12 | public WpfTextPosition(Point location, double rotation)
|
---|
13 | {
|
---|
14 | if (Double.IsNaN(rotation) || Double.IsInfinity(rotation))
|
---|
15 | {
|
---|
16 | rotation = 0;
|
---|
17 | }
|
---|
18 | _location = location;
|
---|
19 | _rotation = rotation;
|
---|
20 | }
|
---|
21 |
|
---|
22 | public Point Location
|
---|
23 | {
|
---|
24 | get
|
---|
25 | {
|
---|
26 | return _location;
|
---|
27 | }
|
---|
28 | set
|
---|
29 | {
|
---|
30 | _location = value;
|
---|
31 | }
|
---|
32 | }
|
---|
33 |
|
---|
34 | public double Rotation
|
---|
35 | {
|
---|
36 | get
|
---|
37 | {
|
---|
38 | return _rotation;
|
---|
39 | }
|
---|
40 | set
|
---|
41 | {
|
---|
42 | if (Double.IsNaN(value) || Double.IsInfinity(value))
|
---|
43 | {
|
---|
44 | _rotation = 0;
|
---|
45 | }
|
---|
46 | else
|
---|
47 | {
|
---|
48 | _rotation = value;
|
---|
49 | }
|
---|
50 | }
|
---|
51 | }
|
---|
52 | }
|
---|
53 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.