]> git.sesse.net Git - casparcg/blob - server/TransitionInfo.h
Fixed no_bluefish.
[casparcg] / server / TransitionInfo.h
1 /*\r
2 * copyright (c) 2010 Sveriges Television AB <info@casparcg.com>\r
3 *\r
4 *  This file is part of CasparCG.\r
5 *\r
6 *    CasparCG is free software: you can redistribute it and/or modify\r
7 *    it under the terms of the GNU General Public License as published by\r
8 *    the Free Software Foundation, either version 3 of the License, or\r
9 *    (at your option) any later version.\r
10 *\r
11 *    CasparCG is distributed in the hope that it will be useful,\r
12 *    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14 *    GNU General Public License for more details.\r
15 \r
16 *    You should have received a copy of the GNU General Public License\r
17 *    along with CasparCG.  If not, see <http://www.gnu.org/licenses/>.\r
18 *\r
19 */\r
20  \r
21 #pragma once\r
22 \r
23 #include <string>\r
24 \r
25 namespace caspar {\r
26 \r
27 enum TransitionType\r
28 {\r
29         Cut = 1,\r
30         Mix,\r
31         Push,\r
32         Slide,\r
33         Wipe\r
34 };\r
35 \r
36 enum TransitionDirection\r
37 {\r
38         FromLeft = 1,\r
39         FromRight,\r
40         FromTop,\r
41         FromBottom\r
42 };\r
43 \r
44 class TransitionInfo\r
45 {\r
46 public:\r
47         TransitionInfo() : type_(Cut), duration_(0), borderWidth_(0), borderColor_(TEXT("#00000000")), direction_(FromLeft)\r
48         {}\r
49 \r
50         ~TransitionInfo()\r
51         {}\r
52 \r
53         TransitionType          type_;\r
54         unsigned short          duration_;\r
55         unsigned short          borderWidth_;\r
56         tstring                 borderImage_;\r
57         tstring                 borderColor_;\r
58         TransitionDirection     direction_;\r
59 };\r
60 \r
61 }       //namespace caspar