-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
750 lines (462 loc) · 23.1 KB
/
index.html
File metadata and controls
750 lines (462 loc) · 23.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>
<head>
<meta charset="UTF-8">
<link rel="apple-touch-icon" sizes="76x76" href="/img/fluid.png">
<link rel="icon" href="/img/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="theme-color" content="#2f4154">
<meta name="author" content="ClaudeRainer">
<meta name="keywords" content="C,C++,Linux">
<meta property="og:type" content="website">
<meta property="og:title" content="cvrain-以空间追逐时间">
<meta property="og:url" content="http://cvrain.cloudvl.cn/index.html">
<meta property="og:site_name" content="cvrain-以空间追逐时间">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="ClaudeRainer">
<meta property="article:tag" content="C,C++,Linux">
<meta name="twitter:card" content="summary_large_image">
<meta name="referrer" content="no-referrer-when-downgrade">
<title>cvrain-以空间追逐时间</title>
<link rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />
<!-- 主题依赖的图标库,不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">
<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">
<link rel="stylesheet" href="/css/main.css" />
<link id="highlight-css" rel="stylesheet" href="/css/highlight.css" />
<link id="highlight-css-dark" rel="stylesheet" href="/css/highlight-dark.css" />
<script id="fluid-configs">
var Fluid = window.Fluid || {};
Fluid.ctx = Object.assign({}, Fluid.ctx)
var CONFIG = {"hostname":"cvrain.cloudvl.cn","root":"/","version":"1.9.6","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":{"measurement_id":null},"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml","include_content_in_search":true};
if (CONFIG.web_analytics.follow_dnt) {
var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
}
</script>
<script src="/js/utils.js" ></script>
<script src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 6.3.0"></head>
<body>
<header>
<div class="header-inner" style="height: 100vh;">
<nav id="navbar" class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar">
<div class="container">
<a class="navbar-brand" href="/">
<strong>ClaudeRainer</strong>
</a>
<button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<div class="animated-icon"><span></span><span></span><span></span></div>
</button>
<!-- Collapsible content -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto text-center">
<li class="nav-item">
<a class="nav-link" href="/" target="_self">
<i class="iconfont icon-home-fill"></i>
<span>首页</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/archives/" target="_self">
<i class="iconfont icon-archive-fill"></i>
<span>归档</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/categories/" target="_self">
<i class="iconfont icon-category-fill"></i>
<span>分类</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/tags/" target="_self">
<i class="iconfont icon-tags-fill"></i>
<span>标签</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/about/" target="_self">
<i class="iconfont icon-user-fill"></i>
<span>关于</span>
</a>
</li>
<li class="nav-item" id="search-btn">
<a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
<i class="iconfont icon-search"></i>
</a>
</li>
<li class="nav-item" id="color-toggle-btn">
<a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
<i class="iconfont icon-dark" id="color-toggle-icon"></i>
</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="banner" class="banner" parallax=true
style="background: url('/img/bg/banner-main.jpg') no-repeat center center; background-size: cover;">
<div class="full-bg-img">
<div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
<div class="banner-text text-center fade-in-up">
<div class="h2">
<span id="subtitle" data-typed-text="Try { World::explore ( life.beg(), life.end() ); }"></span>
</div>
</div>
<div class="scroll-down-bar">
<i class="iconfont icon-arrowdown"></i>
</div>
</div>
</div>
</div>
</div>
</header>
<main>
<div class="container nopadding-x-md">
<div id="board"
style="margin-top: 0">
<div class="container">
<div class="row">
<div class="col-12 col-md-10 m-auto">
<div class="row mx-auto index-card">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/01/28/Slint/builtin-enumerations/" target="_self">
Slint 内置枚举元素
</a>
</h2>
<a class="index-excerpt index-excerpt__noimg" href="/2024/01/28/Slint/builtin-enumerations/" target="_self">
<div>
Slint 内置枚举元素AccessibleRole 此枚举表述了accessible-role属性中的不同值, 用于描述辅助技术(例如屏幕阅读器)中元素的作用。 none 此元素是不可访问的 button 此元素是一个Button组件其或者行为类似Button checkbox 此元素是一个CheckBox或者其行为类型CheckBox combobox 此元素是一个ComboBox或者其行为
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-01-28 20:33" pubdate>
2024-01-28
</time>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Slint/">#Slint</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/01/27/Slint/builtin-elements/" target="_self">
Slint 内置元素
</a>
</h2>
<a class="index-excerpt index-excerpt__noimg" href="/2024/01/27/Slint/builtin-elements/" target="_self">
<div>
内置元素通用属性几何坐标这些属性对所有可见项目都有效: width 和 height (length):元素的尺寸,被设置后可以重写默认的大小 x和y(length):元素相对于其父级元素的偏移位置 z(float):允许指定不同的顺序来将项目与其同级项目堆叠。 (默认值:0) absolute-position(float):元素在所包含窗口中的位置。 布局这些属性对所有可见项都有效,并且可
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-01-27 09:06" pubdate>
2024-01-27
</time>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Slint/">#Slint</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/01/27/Slint/builtin-callbacks/" target="_self">
Slint 内置函数-回调
</a>
</h2>
<a class="index-excerpt index-excerpt__noimg" href="/2024/01/27/Slint/builtin-callbacks/" target="_self">
<div>
内置回调函数init()每一个组件都隐式定义了一个init回调函数。您可以为其分配一个代码块,该代码块将在实例化元素时以及使用其最终绑定的值初始化所有属性后调用。调用顺序是从内到外。以下示例将打印“first”,然后“second”,然后“third”: 1234567891011121314151617181920component MyButton inherits Rectangle 
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-01-27 08:57" pubdate>
2024-01-27
</time>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Slint/">#Slint</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/01/27/Slint/slint-legacy-syntax/" target="_self">
Slint 过时语法
</a>
</h2>
<a class="index-excerpt index-excerpt__noimg" href="/2024/01/27/Slint/slint-legacy-syntax/" target="_self">
<div>
Slint 过时语法为了维护对早期版本的兼容性,在1.0版本之前定义组件的语法:=目前也是支持的: 123export MyApp := Window { //...} 此语法更改还会影响属性查找规则和默认元素放置。 在新语法中定义的组件中,只有在组件内声明的属性才在范围内。默认情况下,父元素将其子元素呈现为居中,并将应用所有布局约束。 在使用旧语法定义的组件中,除了组件
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-01-27 08:40" pubdate>
2024-01-27
</time>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Slint/">#Slint</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/01/15/Slint/slint-modules/" target="_self">
Slint 模块
</a>
</h2>
<a class="index-excerpt index-excerpt__noimg" href="/2024/01/15/Slint/slint-modules/" target="_self">
<div>
Slint 模块定义在.slint文件用的组件能够作为一个元素被其他.slint文件使用,也就是说可以被导出或者导入 在一般情况下,每一个被定义在.slint文件中的类型都是私有的,使用export属性可以改变。 123456789101112component ButtonHelper inherits Rectangle { // ...}component Butt
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-01-15 17:58" pubdate>
2024-01-15
</time>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Slint/">#Slint</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/01/15/Slint/slint-global-singletions/" target="_self">
Slint 全局单例
</a>
</h2>
<a class="index-excerpt index-excerpt__noimg" href="/2024/01/15/Slint/slint-global-singletions/" target="_self">
<div>
Slint 全局单例定义一个全局单例的实例需要使用到global Name { /*各种属性和回调函数*/} 的方式,以使属性和回调在整个项目中可用。使用 Name.property 访问它们。 12345678910global Palette { in-out property<color> primary: blue; in-out p
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-01-15 17:40" pubdate>
2024-01-15
</time>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Slint/">#Slint</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/01/14/Slint/slint-states/" target="_self">
Slint Stats语句
</a>
</h2>
<a class="index-excerpt index-excerpt__noimg" href="/2024/01/14/Slint/slint-states/" target="_self">
<div>
Slint Statesstates 语句允许一次性声明状态并设置多个元素的属性: 123456789101112131415161718192021222324252627export component Example inherits Window { preferred-width: 100px; preferred-height: 100px; default
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-01-14 13:02" pubdate>
2024-01-14
</time>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Slint/">#Slint</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/01/14/Slint/slint-animations/" target="_self">
Slint 动画效果
</a>
</h2>
<a class="index-excerpt index-excerpt__noimg" href="/2024/01/14/Slint/slint-animations/" target="_self">
<div>
Slint 动画效果定义具有动画效果的属性需要使用animate关键字,就像这样: 1234567891011export component Example inherits Window { preferred-width: 100px; preferred-height: 100px; background: area.pressed ? blue : red;
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-01-14 12:09" pubdate>
2024-01-14
</time>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Slint/">#Slint</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/01/13/Slint/slint-conditional-element/" target="_self">
Slint 条件元素
</a>
</h2>
<a class="index-excerpt index-excerpt__noimg" href="/2024/01/13/Slint/slint-conditional-element/" target="_self">
<div>
Slint 条件元素仅当给定条件为 true 时,if 构造才会实例化元素。语法为 if 条件 : id := Element { … }(这东西让我有一种看rust里 if let的感觉) 1234567export component Example inherits Window { preferred-width: 50px; preferred-heigh
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-01-13 13:43" pubdate>
2024-01-13
</time>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Slint/">#Slint</a>
</div>
</div>
</article>
</div>
<div class="row mx-auto index-card">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">
<a href="/2024/01/13/Slint/slint-repetition/" target="_self">
Slint 重复(repetition)
</a>
</h2>
<a class="index-excerpt index-excerpt__noimg" href="/2024/01/13/Slint/slint-repetition/" target="_self">
<div>
Slint Repetition使用 for in语句可以多次创建同一元素语法看起来长这个样子:`for name[index] in model : id := Element { … } model 能够是以下类型: 一个整数,在这种情况下该元素将重复指定的次数 原生声明的数组类型或模型,在这种情况下,将为数组或模型中的每个元素实例化该元素。该名称可用于在元素内查找,并且将
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i>
<time datetime="2024-01-13 12:25" pubdate>
2024-01-13
</time>
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/Slint/">#Slint</a>
</div>
</div>
</article>
</div>
<nav aria-label="navigation">
<span class="pagination" id="pagination">
<span class="page-number current">1</span><a class="page-number" href="/page/2/#board">2</a><a class="page-number" href="/page/3/#board">3</a><span class="space">…</span><a class="page-number" href="/page/7/#board">7</a><a class="extend next" rel="next" href="/page/2/#board"><i class="iconfont icon-arrowright"></i></a>
</span>
</nav>
</div>
</div>
</div>
</div>
</div>
<a id="scroll-top-button" aria-label="TOP" href="#" role="button">
<i class="iconfont icon-arrowup" aria-hidden="true"></i>
</a>
<div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
<div class="modal-content">
<div class="modal-header text-center">
<h4 class="modal-title w-100 font-weight-bold">搜索</h4>
<button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body mx-3">
<div class="md-form mb-5">
<input type="text" id="local-search-input" class="form-control validate">
<label data-error="x" data-success="v" for="local-search-input">关键词</label>
</div>
<div class="list-group" id="local-search-result"></div>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="footer-inner">
<div class="footer-content">
<a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a>
</div>
</div>
</footer>
<!-- Scripts -->
<script src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
<link rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />
<script>
NProgress.configure({"showSpinner":false,"trickleSpeed":100})
NProgress.start()
window.addEventListener('load', function() {
NProgress.done();
})
</script>
<script src="https://lib.baomitu.com/jquery/3.6.4/jquery.min.js" ></script>
<script src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script src="/js/events.js" ></script>
<script src="/js/plugins.js" ></script>
<script src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
<script>
(function (window, document) {
var typing = Fluid.plugins.typing;
var subtitle = document.getElementById('subtitle');
if (!subtitle || !typing) {
return;
}
var text = subtitle.getAttribute('data-typed-text');
typing(text);
})(window, document);
</script>
<script src="/js/img-lazyload.js" ></script>
<script src="/js/local-search.js" ></script>
<!-- 主题的启动项,将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script src="/js/boot.js" ></script>
<noscript>
<div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
</noscript>
</body>
</html>