YSTest: ReaderSetting.h 源文件

YSTest PreAlpha_b500_20140530 The YSLib Test Project

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

- 文件列表
- 文件成员

全部 类 命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 组 页
ReaderSetting.h
浏览该文件的文档.
1 /*
2 © 2012-2013 FrankHB.
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 YFM_YSLib_Core_ValueNode
33
34 namespace YReader
35 {
36
41 class ReaderSetting
42 {
43 public:
44 Color UpColor, DownColor, FontColor;
45 Drawing::Font Font;
50 bool SmoothScroll;
55 std::chrono::milliseconds ScrollDuration;
60 std::chrono::milliseconds SmoothScrollDuration;
61
63
64 ReaderSetting();
66 ReaderSetting(const ValueNode::Container&);
67 DefDeCopyCtor(ReaderSetting)
68 DefDeMoveCtor(ReaderSetting)
69
70 DefDeCopyAssignment(ReaderSetting)
71 DefDeMoveAssignment(ReaderSetting)
72
74 explicit
75 operator ValueNode::Container() const;
76
77 DefGetter(const ynothrow, std::chrono::milliseconds, TimerSetting,
78 SmoothScroll ? SmoothScrollDuration : ScrollDuration)
80 };
81
82 } // namespace YReader;
83
84 #endif
85
YReader::ReaderSetting::ScrollDuration
std::chrono::milliseconds ScrollDuration
滚屏间隔。
Definition: ReaderSetting.h:55
YSLib::ValueNode::Container
set< ValueNode > Container
Definition: ValueNode.h:48
YReader::ReaderSetting::Font
Drawing::Font Font
Definition: ReaderSetting.h:45
DefDeCopyCtor
#define DefDeCopyCtor(_t)
Definition: YBaseMacro.h:136
YReader::ReaderSetting
阅读器设置。
Definition: ReaderSetting.h:41
YReader::ReaderSetting::ReaderSetting
ReaderSetting()
Definition: ReaderSetting.cpp:102
DefGetter
#define DefGetter(_q, _t, _n,...)
Definition: YBaseMacro.h:180
YReader::ReaderSetting::UpColor
Color UpColor
Definition: ReaderSetting.h:44
DefDeMoveCtor
#define DefDeMoveCtor(_t)
Definition: YBaseMacro.h:141
YReader::ReaderSetting::SmoothScroll
bool SmoothScroll
平滑滚屏。
Definition: ReaderSetting.h:50
ynothrow
#define ynothrow
YSLib 无异常抛出保证：若支持 noexcept 关键字， 指定特定的 noexcept 异常规范。
Definition: ydef.h:514
YSLib::ValueNode
值类型节点。
Definition: ValueNode.h:45
YReader::ReaderSetting::DownColor
Color DownColor
Definition: ReaderSetting.h:44
Shells.h
Shell 框架逻辑。
platform::Consoles::Color
Color
控制台颜色枚举。
Definition: Video.h:458
YReader::ReaderSetting::SmoothScrollDuration
std::chrono::milliseconds SmoothScrollDuration
平滑滚屏间隔。
Definition: ReaderSetting.h:60
DefDeMoveAssignment
#define DefDeMoveAssignment(_t)
Definition: YBaseMacro.h:159
YSLib::Drawing::Font
字体：字模，包含字型、样式和大小。
Definition: Font.h:546
DefDeCopyAssignment
#define DefDeCopyAssignment(_t)
Definition: YBaseMacro.h:154
YReader::ReaderSetting::FontColor
Color FontColor
Definition: ReaderSetting.h:44