-
-
Notifications
You must be signed in to change notification settings - Fork 318
/
Copy pathFMX.Styles.xml
601 lines (543 loc) · 30.5 KB
/
FMX.Styles.xml
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
<?xml version="1.0" ?><namespace name="FMX.Styles" platform="Win32">
<array name="TStyleSignature" low="0" high="12" file="FMX.Styles.pas" line="20">
<element type="Byte"/>
</array>
<const name="FireMonkeyStyleSign" type="TStyleSignature" visibility="public" file="FMX.Styles.pas" line="24"/>
<const name="FireMonkey25StyleSign" type="TStyleSignature" visibility="public" file="FMX.Styles.pas" line="29"/>
<class name="EStyleException" file="FMX.Styles.pas" line="35">
</class>
<enum name="TStyleFormat" file="FMX.Styles.pas" line="37">
<element value="0" name="Indexed" file="FMX.Styles.pas" line="37"/>
<element value="1" name="Binary" file="FMX.Styles.pas" line="37"/>
<element value="2" name="Text" file="FMX.Styles.pas" line="37"/>
</enum>
<class name="TStyleDescription" file="FMX.Styles.pas" line="39">
<members>
<enum name="TProperty" visibility="private" alias="FMX.Styles.TProperty" file="FMX.Styles.pas" line="41">
<element value="0" name="Author" file="FMX.Styles.pas" line="41"/>
<element value="1" name="AuthorEMail" file="FMX.Styles.pas" line="41"/>
<element value="2" name="PlatformTarget" file="FMX.Styles.pas" line="41"/>
<element value="3" name="MobilePlatform" file="FMX.Styles.pas" line="41"/>
<element value="4" name="Title" file="FMX.Styles.pas" line="41"/>
<element value="5" name="Version" file="FMX.Styles.pas" line="41"/>
</enum>
<field name="Properties" type=":TStyleDescription.:1" visibility="private" varflags="class" file="FMX.Styles.pas" line="44">
<devnotes>
<summary>List of published properties used in streaming</summary>
</devnotes>
</field>
<field name="PlatformTargets" type=":TStyleDescription.:2" visibility="public" varflags="class" file="FMX.Styles.pas" line="48">
<devnotes>
<summary>Target's names that used in style file</summary>
</devnotes>
</field>
<field name="PlatformNames" type=":TStyleDescription.:3" visibility="public" varflags="class" file="FMX.Styles.pas" line="50">
<devnotes>
<summary>Platform's names that used at framework</summary>
</devnotes>
</field>
<field name="FAuthor" type="string" visibility="private" size="4" offset="128" file="FMX.Styles.pas" line="52"/>
<field name="FVersion" type="string" visibility="private" size="4" offset="132" file="FMX.Styles.pas" line="53"/>
<field name="FTitle" type="string" visibility="private" size="4" offset="136" file="FMX.Styles.pas" line="54"/>
<field name="FAuthorEMail" type="string" visibility="private" size="4" offset="140" file="FMX.Styles.pas" line="55"/>
<field name="FPlatformTarget" type="string" visibility="private" size="4" offset="144" file="FMX.Styles.pas" line="56"/>
<field name="FMobilePlatform" type="Boolean" visibility="private" size="1" offset="148" file="FMX.Styles.pas" line="57"/>
<field name="FAuthorURL" type="string" visibility="private" size="4" offset="152" file="FMX.Styles.pas" line="58"/>
<function name="TryLoadFromStream" visibility="private" procflags="class" file="FMX.Styles.pas" line="59">
<parameters>
<parameter name="Stream" type="TStream" paramflags="const"/>
<parameter name="StyleDescription" type="TStyleDescription" paramflags="var"/>
<retval type="Boolean"/>
</parameters>
</function>
<procedure name="DefineProperties" visibility="protected" procflags="override" file="FMX.Styles.pas" line="61">
<parameters>
<parameter name="Filer" type="TFiler"/>
</parameters>
</procedure>
<function name="Equals" visibility="public" procflags="override" file="FMX.Styles.pas" line="63">
<parameters>
<parameter name="Obj" type="TObject"/>
<retval type="Boolean"/>
</parameters>
</function>
<function name="SupportsPlatform" visibility="public" file="FMX.Styles.pas" line="65">
<devnotes>
<summary>Allows to check style for fitting for specified Platform</summary>
</devnotes>
<parameters>
<parameter name="APlatform" type="TOSPlatform" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
</function>
<property name="Author" visibility="published" read="FAuthor" write="FAuthor" type="string" default="0" file="FMX.Styles.pas" line="67"/>
<property name="AuthorEMail" visibility="published" read="FAuthorEMail" write="FAuthorEMail" type="string" default="0" file="FMX.Styles.pas" line="68"/>
<property name="AuthorURL" visibility="published" read="FAuthorURL" write="FAuthorURL" type="string" default="0" file="FMX.Styles.pas" line="69"/>
<property name="PlatformTarget" visibility="published" read="FPlatformTarget" write="FPlatformTarget" type="string" default="0" file="FMX.Styles.pas" line="70"/>
<property name="MobilePlatform" visibility="published" read="FMobilePlatform" write="FMobilePlatform" type="Boolean" file="FMX.Styles.pas" line="71"/>
<property name="Title" visibility="published" read="FTitle" write="FTitle" type="string" default="0" file="FMX.Styles.pas" line="72"/>
<property name="Version" visibility="published" read="FVersion" write="FVersion" type="string" default="0" file="FMX.Styles.pas" line="73"/>
</members>
</class>
<class name="TStyleTag" file="FMX.Styles.pas" line="76">
<members>
<property name="Tag" visibility="published" read="FTag" write="FTag" type="NativeInt" default="0" hoisted="true" file="FMX.Styles.pas" line="78"/>
<property name="TagFloat" visibility="published" read="FTagFloat" write="FTagFloat" type="Single" default="0" hoisted="true" file="FMX.Styles.pas" line="79"/>
<property name="TagString" visibility="published" read="FTagString" write="FTagString" type="string" default="0" hoisted="true" file="FMX.Styles.pas" line="80"/>
</members>
</class>
<interface name="IBinaryStyleContainer" GUID="{76589FDB-7430-4F7A-A993-44AB1664BCFD}" ancestor="IInterface" file="FMX.Styles.pas" line="83">
<procedure name="ClearContainer" visibility="public" procflags="abstract virtual" file="FMX.Styles.pas" line="85">
</procedure>
<procedure name="AddBinaryFromStream" visibility="public" procflags="abstract virtual" file="FMX.Styles.pas" line="86">
<parameters>
<parameter name="Name" type="string" paramflags="const"/>
<parameter name="SourceStream" type="TStream" paramflags="const"/>
<parameter name="Size" type="Int64" paramflags="const"/>
</parameters>
</procedure>
<procedure name="UnpackAllBinaries" visibility="public" procflags="abstract virtual" file="FMX.Styles.pas" line="88">
<devnotes>
<summary>Force to load all style's objects from binary stream.</summary>
</devnotes>
</procedure>
</interface>
<type name="TSupportedPlatformHook" file="FMX.Styles.pas" line="91" procflags="">
</type>
<class name="TStyleStreaming" file="FMX.Styles.pas" line="93">
<members>
<struct name="TIndexItem" visibility="private" alias="FMX.Styles.TIndexItem" size="16" file="FMX.Styles.pas" line="95">
<field name="Name" type="string" visibility="public" size="4" offset="0" file="FMX.Styles.pas" line="96"/>
<field name="Size" type="Int64" visibility="public" size="8" offset="8" file="FMX.Styles.pas" line="97"/>
</struct>
<field name="FDefaultContainerClass" type="TFmxObjectClass" visibility="private" varflags="class" file="FMX.Styles.pas" line="100"/>
<field name="FSupportedPlatformHook" type="TSupportedPlatformHook" visibility="private" varflags="class" file="FMX.Styles.pas" line="101"/>
<function name="ReadHeader" visibility="private" procflags="class" file="FMX.Styles.pas" line="103">
<parameters>
<parameter name="AStream" type="TStream" paramflags="const"/>
<retval type="TArray<FMX.Styles.TStyleStreaming.TIndexItem>"/>
</parameters>
</function>
<function name="LoadFromIndexedStream" visibility="private" procflags="class" file="FMX.Styles.pas" line="104">
<parameters>
<parameter name="AStream" type="TStream" paramflags="const"/>
<retval type="TFmxObject"/>
</parameters>
</function>
<procedure name="SaveToIndexedStream" visibility="private" procflags="static" file="FMX.Styles.pas" line="105">
<parameters>
<parameter name="Style" type="TFmxObject" paramflags="const"/>
<parameter name="AStream" type="TStream" paramflags="const"/>
</parameters>
</procedure>
<function name="IsSupportedPlatformTarget" visibility="private" procflags="static" file="FMX.Styles.pas" line="106">
<parameters>
<parameter name="PlatformTarget" type="string" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
</function>
<function name="SameStyleDecription" visibility="private" procflags="static" file="FMX.Styles.pas" line="107">
<parameters>
<parameter name="Style1" type="TFmxObject" paramflags="const"/>
<parameter name="Style2" type="TFmxObject" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
</function>
<function name="SameObject" visibility="private" procflags="static" file="FMX.Styles.pas" line="108">
<parameters>
<parameter name="Obj1" type="TFmxObject" paramflags="const"/>
<parameter name="Obj2" type="TFmxObject" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
</function>
<function name="CompareSign" visibility="private" procflags="class" file="FMX.Styles.pas" line="109">
<parameters>
<parameter name="Sign1" type="TStyleSignature" paramflags="const"/>
<parameter name="Sign2" type="TStyleSignature" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
</function>
<function name="TryLoadStyleDescriptionFromIndexedStream" visibility="private" procflags="static" file="FMX.Styles.pas" line="110">
<parameters>
<parameter name="Stream" type="TStream" paramflags="const"/>
<parameter name="Description" type="TStyleDescription" paramflags="var"/>
<retval type="Boolean"/>
</parameters>
</function>
<function name="DefaultIsSupportedPlatformTarget" visibility="public" procflags="static" file="FMX.Styles.pas" line="113">
<parameters>
<parameter name="PlatformTarget" type="string" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Embarcadero Technologies does not currently have any additional information.
</summary></devnotes></function>
<procedure name="SaveToStream" visibility="public" procflags="class" file="FMX.Styles.pas" line="115">
<parameters>
<parameter name="Style" type="TFmxObject" paramflags="const"/>
<parameter name="AStream" type="TStream" paramflags="const"/>
<parameter name="Format" type="TStyleFormat" paramflags="const">
<value>
Indexed
</value>
</parameter>
</parameters>
<devnotes><summary>
Embarcadero Technologies does not currently have any additional information.
</summary></devnotes></procedure>
<function name="TryLoadStyleDescription" visibility="public" procflags="class" file="FMX.Styles.pas" line="119">
<devnotes><summary>
This method tries to parse the style file and read the style description.
The TStyleDescription object specified by Description should be destroyed by the caller.
</summary></devnotes>
<parameters>
<parameter name="Stream" type="TStream" paramflags="const"/>
<parameter name="Description" type="TStyleDescription" paramflags="var"/>
<retval type="Boolean"/>
</parameters>
</function>
<function name="LoadFromFile" visibility="public" procflags="class" file="FMX.Styles.pas" line="121">
<parameters>
<parameter name="FileName" type="string" paramflags="const"/>
<retval type="TFmxObject"/>
</parameters>
<devnotes><summary>
Loads a style from the specified file.
LoadFromFile returns a style object that can be set as the active style using the SetStyle method.
Note that LoadFromFile does not automatically switch to the loaded style. To do that, call the SetStyleFromFile method.
</summary></devnotes></function>
<function name="LoadFromStream" visibility="public" procflags="class" file="FMX.Styles.pas" line="122">
<parameters>
<parameter name="AStream" type="TStream" paramflags="const"/>
<retval type="TFmxObject"/>
</parameters>
<devnotes><summary>
Loads a style from the specified stream.
LoadFromStream returns a style object that can be set as the active style using the SetStyle method.
Note that LoadFromStream does not automatically switch to the loaded style. To do that, call the SetStyleFromFile method.
</summary></devnotes></function>
<function name="LoadFromResource" visibility="public" procflags="class" file="FMX.Styles.pas" line="123">
<parameters>
<parameter name="Instance" type="NativeUInt"/>
<parameter name="ResourceName" type="string" paramflags="const"/>
<parameter name="ResourceType" type="PWideChar"/>
<retval type="TFmxObject"/>
</parameters>
<devnotes><summary>
Loads a style from the specified resource.
LoadFromResource returns a style object that can be set as the active style using the SetStyle method.
Note that LoadFromResource does not automatically switch to the loaded style. To do that, call the SetStyleFromFile method.
Parameter
Meaning
Instance
The instance handle of the loaded resource.
ResourceName
The string associated with the resource.
ResourceType
A string that identifies the type of resource.
</summary></devnotes></function>
<function name="CanLoadFromFile" visibility="public" procflags="class" file="FMX.Styles.pas" line="125">
<parameters>
<parameter name="FileName" type="string" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Loads a style from the specified file without raising an exception.
CanLoadFromFile searches for the style specified by FileName.
CanLoadFromFile returns True if the style is successfully loaded, and False otherwise.
</summary></devnotes></function>
<function name="CanLoadFromStream" visibility="public" procflags="class" file="FMX.Styles.pas" line="126">
<parameters>
<parameter name="AStream" type="TStream" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Loads a style from the specified stream without raising an exception.
CanLoadFromStream searches for the style specified by AStream.
CanLoadFromStream returns True if the style is successfully loaded, and False otherwise.
</summary></devnotes></function>
<function name="CanLoadFromResource" visibility="public" procflags="class overload" file="FMX.Styles.pas" line="127">
<parameters>
<parameter name="ResourceName" type="string" paramflags="const"/>
<parameter name="ResourceType" type="PWideChar"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Loads a style from the specified resource without raising an exception.
In the first signature CanLoadFromResource searches for the specified ResourceName with type ResourceType in the instace handle indicated by Instance.
In the second signature CanLoadFromResource internally calls EnumModules in order to search for ResourceName in all modules of the application.
CanLoadFromResource returns True if the style is successfully loaded, and False otherwise.
</summary></devnotes></function>
<function name="CanLoadFromResource" visibility="public" procflags="class overload" file="FMX.Styles.pas" line="128">
<parameters>
<parameter name="Instance" type="NativeUInt"/>
<parameter name="ResourceName" type="string" paramflags="const"/>
<parameter name="ResourceType" type="PWideChar"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Loads a style from the specified resource without raising an exception.
In the first signature CanLoadFromResource searches for the specified ResourceName with type ResourceType in the instace handle indicated by Instance.
In the second signature CanLoadFromResource internally calls EnumModules in order to search for ResourceName in all modules of the application.
CanLoadFromResource returns True if the style is successfully loaded, and False otherwise.
</summary></devnotes></function>
<function name="SameStyle" visibility="public" procflags="static" file="FMX.Styles.pas" line="130">
<parameters>
<parameter name="Style1" type="TFmxObject" paramflags="const"/>
<parameter name="Style2" type="TFmxObject" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Embarcadero Technologies does not currently have any additional information.
</summary></devnotes></function>
<procedure name="SetDefaultContainerClass" visibility="public" procflags="class" file="FMX.Styles.pas" line="132">
<parameters>
<parameter name="AClass" type="TFmxObjectClass" paramflags="const"/>
</parameters>
<devnotes><summary>
Embarcadero Technologies does not currently have any additional information.
</summary></devnotes></procedure>
<procedure name="SetSupportedPlatformHook" visibility="public" procflags="class" file="FMX.Styles.pas" line="133">
<parameters>
<parameter name="AHook" type="TSupportedPlatformHook" paramflags="const"/>
</parameters>
<devnotes><summary>
Embarcadero Technologies does not currently have any additional information.
</summary></devnotes></procedure>
</members>
<devnotes><summary>
Embarcadero Technologies does not currently have any additional information.
</summary></devnotes></class>
<type name="TPlatformStyleSelectionProc" file="FMX.Styles.pas" line="137" procflags="">
<devnotes>
<summary>This procedure return correct resource name if more than one is registered for platform.</summary>
</devnotes>
</type>
<anonMethod name="TStyleResourceEnumProc" file="FMX.Styles.pas" line="140">
<devnotes>
<summary>Anonymous method that EnumStyleResources calls in order to
enumerate all the registered style resources.</summary>
</devnotes>
<procedure name="Invoke" visibility="public" procflags="abstract virtual" file="FMX.Styles.pas" line="140">
<parameters>
<parameter name="AResourceName" type="string" paramflags="const"/>
<parameter name="APlatform" type="TOSPlatform" paramflags="const"/>
</parameters>
</procedure>
</anonMethod>
<class name="TStyleManager" sealed="true" file="FMX.Styles.pas" line="142">
<members>
<class name="TStyleManagerNotification" visibility="class private" alias="FMX.Styles.TStyleManagerNotification" file="FMX.Styles.pas" line="144">
<members>
<procedure name="FreeNotification" visibility="protected" procflags="override" file="FMX.Styles.pas" line="146">
<parameters>
<parameter name="AObject" type="TObject"/>
</parameters>
</procedure>
</members>
</class>
<field name="FStyleManagerNotification" type="TStyleManager.TStyleManagerNotification" visibility="class private" varflags="class" file="FMX.Styles.pas" line="149"/>
<field name="FPlatformResources" type="TDictionary<System.string,FMX.Types.TOSPlatform>" visibility="class private" varflags="class" file="FMX.Styles.pas" line="150"/>
<field name="FSelections" type="TDictionary<FMX.Types.TOSPlatform,FMX.Styles.TPlatformStyleSelectionProc>" visibility="class private" varflags="class" file="FMX.Styles.pas" line="151"/>
<field name="FStyleResources" type="TDictionary<System.string,FMX.Types.TFmxObject>" visibility="class private" varflags="class" file="FMX.Styles.pas" line="152"/>
<function name="FindDefaultStyleResource" visibility="class private" procflags="static" file="FMX.Styles.pas" line="153">
<parameters>
<parameter name="OSPlatform" type="TOSPlatform" paramflags="const"/>
<retval type="string"/>
</parameters>
</function>
<function name="StyleResourceForContext" visibility="class private" procflags="static" file="FMX.Styles.pas" line="154">
<parameters>
<parameter name="Context" type="TFmxObject" paramflags="const"/>
<retval type="string"/>
</parameters>
</function>
<function name="StyleManagerNotification" visibility="class private" procflags="class" file="FMX.Styles.pas" line="155">
<parameters>
<retval type="TStyleManager.TStyleManagerNotification"/>
</parameters>
</function>
<procedure name="RemoveStyleFromGlobalPool" visibility="public" procflags="static" file="FMX.Styles.pas" line="157">
<parameters>
<parameter name="Style" type="TFmxObject" paramflags="const"/>
</parameters>
<devnotes><summary>
Removes the specified Style from the pool of styles.
</summary></devnotes></procedure>
<procedure name="UpdateScenes" visibility="public" procflags="static" file="FMX.Styles.pas" line="158">
<devnotes><summary>
Updates the style for all the registered scenes.
</summary></devnotes></procedure>
<procedure name="EnumStyleResources" visibility="public" procflags="class" file="FMX.Styles.pas" line="161">
<devnotes><summary>
Enumetates all the registered style resource objects.
</summary></devnotes>
<parameters>
<parameter name="Proc" type="TStyleResourceEnumProc"/>
</parameters>
</procedure>
<function name="GetStyleResource" visibility="public" procflags="class" file="FMX.Styles.pas" line="163">
<devnotes><summary>
Gets the style resource object.
GetStyleResource returns the style resource if it exits in cache. Otherwise it loads the style resource.
ResourceName specifies the style resource as per name.
</summary></devnotes>
<parameters>
<parameter name="ResourceName" type="string" paramflags="const"/>
<retval type="TFmxObject"/>
</parameters>
</function>
<procedure name="RegisterPlatformStyleResource" visibility="public" procflags="class" file="FMX.Styles.pas" line="166">
<devnotes><summary>
Registers the style resource for the specified platform.
ResourceName specifies the resource style.
APlatform specifies the target platform.</summary></devnotes>
<parameters>
<parameter name="APlatform" type="TOSPlatform" paramflags="const"/>
<parameter name="ResourceName" type="string" paramflags="const"/>
</parameters>
</procedure>
<procedure name="RegisterPlatformStyleSelection" visibility="public" procflags="class" file="FMX.Styles.pas" line="168">
<devnotes><summary>
Registers the style resource specified by selection.
APlatform specifies the target platform.
ASelection specifies the style selection with type TPlatformStyleSelectionProc.</summary></devnotes>
<parameters>
<parameter name="APlatform" type="TOSPlatform" paramflags="const"/>
<parameter name="ASelection" type="TPlatformStyleSelectionProc" paramflags="const"/>
</parameters>
</procedure>
<function name="ActiveStyle" visibility="public" procflags="static" file="FMX.Styles.pas" line="170">
<parameters>
<parameter name="Context" type="TFmxObject" paramflags="const"/>
<retval type="TFmxObject"/>
</parameters>
<devnotes><summary>
Returns the style that is currently set.
</summary></devnotes></function>
<function name="ActiveStyleForScene" visibility="public" procflags="static" file="FMX.Styles.pas" line="172">
<devnotes><summary>
Embarcadero Technologies does not currently have any additional information.
</summary></devnotes>
<parameters>
<parameter name="AScene" type="IInterface" paramflags="const"/>
<retval type="TFmxObject"/>
</parameters>
</function>
<procedure name="SetStyle" visibility="public" procflags="class overload" file="FMX.Styles.pas" line="174">
<parameters>
<parameter name="Style" type="TFmxObject" paramflags="const"/>
</parameters>
<devnotes><summary>
Sets the active style to the instance specified by the Style parameter.
To set the active style to the native system style, for example Windows theme, pass nil as the Style parameter.
Note: If you call the SetStyle function in the initialization section of a unit on the main project file, before Application.Initialize, then it is applied to all forms.</summary></devnotes></procedure>
<procedure name="SetStyle" visibility="public" procflags="class overload" file="FMX.Styles.pas" line="175">
<parameters>
<parameter name="Context" type="TFmxObject" paramflags="const"/>
<parameter name="Style" type="TFmxObject" paramflags="const"/>
</parameters>
<devnotes><summary>
Sets the active style to the instance specified by the Style parameter.
To set the active style to the native system style, for example Windows theme, pass nil as the Style parameter.
Note: If you call the SetStyle function in the initialization section of a unit on the main project file, before Application.Initialize, then it is applied to all forms.</summary></devnotes></procedure>
<function name="SetStyleFromFile" visibility="public" procflags="class overload" file="FMX.Styles.pas" line="176">
<parameters>
<parameter name="FileName" type="string" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Sets the style specified by FileName as the active style.
Do not place multiple lines calling SetStyleFromFile in a project, because you can have only one active style in the style manager.
You can call SetStyleFromFile either in the project source code (before calling Application.Initialize) or in the initialization section of one of the form units:
If you call SetStyleFromFile in a form, the style is reapplied.
If you call SetStyleFromFile before the form is created, the custom style fully replaces the platform style.
Example
This Delphi code demonstrates how to use the StyleManager:
Delphi:
procedure TForm1.FormCreate(Sender: TObject);
var
od : TOpenDialog;
begin
od := nil;
try
od := TOpenDialog.Create(self);
od.Filter := 'Style Files|*.style';
if od.Execute() then
TStyleManager.SetStyleFromFile(od.FileName);
finally
od.Free();
end;
end;
</summary></devnotes></function>
<function name="SetStyleFromFile" visibility="public" procflags="class overload" file="FMX.Styles.pas" line="177">
<parameters>
<parameter name="Context" type="TFmxObject" paramflags="const"/>
<parameter name="FileName" type="string" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
<devnotes><summary>
Sets the style specified by FileName as the active style.
Do not place multiple lines calling SetStyleFromFile in a project, because you can have only one active style in the style manager.
You can call SetStyleFromFile either in the project source code (before calling Application.Initialize) or in the initialization section of one of the form units:
If you call SetStyleFromFile in a form, the style is reapplied.
If you call SetStyleFromFile before the form is created, the custom style fully replaces the platform style.
Example
This Delphi code demonstrates how to use the StyleManager:
Delphi:
procedure TForm1.FormCreate(Sender: TObject);
var
od : TOpenDialog;
begin
od := nil;
try
od := TOpenDialog.Create(self);
od.Filter := 'Style Files|*.style';
if od.Execute() then
TStyleManager.SetStyleFromFile(od.FileName);
finally
od.Free();
end;
end;
</summary></devnotes></function>
<function name="TrySetStyleFromResource" visibility="public" procflags="class" file="FMX.Styles.pas" line="179">
<devnotes><summary>
Loads the style from ResourceName and sets the style as the active style.
TrySetStyleFromResource sets the style without raising exceptions.
</summary></devnotes>
<parameters>
<parameter name="ResourceName" type="string" paramflags="const"/>
<retval type="Boolean"/>
</parameters>
</function>
<procedure name="UnInitialize" visibility="public" procflags="class" file="FMX.Styles.pas" line="181">
<devnotes><summary>
Uninitializes data about styles.
Note: This function is reserved for internal use only. Do not call it directly.
</summary></devnotes></procedure>
<function name="FindStyleDescriptor" visibility="public" procflags="class" file="FMX.Styles.pas" line="186">
<devnotes><summary>
Returns the style description of the specified style.
FindStyleDescriptor returns the TStyleDescription object associated with the style specified by AObject, if such a description is set.
You can set the style description fields using the Tools > Bitmap Style Designer dialog.
</summary></devnotes>
<parameters>
<parameter name="AObject" type="TFmxObject" paramflags="const"/>
<retval type="TStyleDescription"/>
</parameters>
</function>
<function name="GetStyleDescriptionForControl" visibility="public" procflags="class" file="FMX.Styles.pas" line="188">
<parameters>
<parameter name="AObject" type="TFmxObject" paramflags="const"/>
<retval type="TStyleDescription"/>
</parameters>
<devnotes><summary>
Embarcadero Technologies does not currently have any additional information.
</summary></devnotes></function>
</members>
<devnotes><summary>
TStyleManager handles styles-related operations.
Use TStyleManager to:
Set and retrieve the active style.
Load styles from files or streams.</summary></devnotes></class>
</namespace>