YSTest: ReaderSetting.h 源文件

YSTest PreAlpha_b400_20130424 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

全部 类 命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 组 页
ReaderSetting.h
浏览该文件的文档.
1 ﻿/*
2 Copyright by FrankHB 2012 - 2013.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef INC_YReader_ReaderSetting_h_
29 #define INC_YReader_ReaderSetting_h_ 1
30
31 #include "Shells.h"
32 #include <YSLib/Core/ValueNode.h>
33
34 YSL_BEGIN_NAMESPACE(YReader)
35
36
40 class ReaderSetting
41 {
42 public:
43 Color UpColor, DownColor, FontColor;
44 Drawing::Font Font;
49 bool SmoothScroll;
54 std::chrono::milliseconds ScrollDuration;
59 std::chrono::milliseconds SmoothScrollDuration;
60
62
63 ReaderSetting();
65 ReaderSetting(const ValueNode::Container&);
66 DefDeCopyCtor(ReaderSetting)
67 DefDeMoveCtor(ReaderSetting)
68
69 DefDeCopyAssignment(ReaderSetting)
70 DefDeMoveAssignment(ReaderSetting)
71
73 explicit
74 operator ValueNode::Container() const;
75
76 DefGetter(const ynothrow, std::chrono::milliseconds, TimerSetting,
77 SmoothScroll ? SmoothScrollDuration : ScrollDuration)
79 };
80
81 YSL_END_NAMESPACE(YReader)
82
83 #endif
84