summaryrefslogtreecommitdiff
path: root/docs/xml/corelib/fpg_base.xml
blob: 73174601a900491291515c4f4ce8e6d6494fe225 (plain)
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
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
<?xml version="1.0"?>
<fpdoc-descriptions>

<package name="fpGUI">
<descr><p>fpGUI Toolkit is intended for Open Source and Commercial applications.
fpGUI uses the LGPL2 license with the static linking exception - the same as
the Free Pascal Compiler's RTL.</p>
<p>fpGUI is an Object Pascal toolkit for cross-platform application development.
It provides single-source portability across Linux, MS Windows, *BSD and 
embedded systems running Embedded Linux and Windows CE.</p>
<p>
For more information, see the fpGUI Toolkit website at: <url href="http://opensoft.homeip.net/fpgui/" />
</p>
</descr>

    <module name="fpg_base">
      <short>The base unit and starting point of fpGUI</short>
      <descr><p>This unit contains all the abstract classes for the CoreLib code
of fpGUI. It also defines many types and constants used throughout the toolkit.
</p>
        <p>When implementing support for a completely new windowing system 
(eg: Carbon used in Mac OS-X) you would implement all the abstract methods
defined in this unit.
</p>
      </descr>
      <!-- alias type Visibility: default -->
      <element name="TfpgCoord">
        <short>A custom type used to represent X and Y coordinates.</short>
        <descr>Internally TfpgCoord is actually a Integer type. We created a custom 
alias type for use in fpGUI in the event that we might want to change the 
underlying type in the future. Example to floating points.
</descr>
        <seealso/>
      </element>
      <!-- alias type Visibility: default -->
      <element name="TfpgColor">
        <short>Represents a color in integer format.</short>
        <descr>
          <p>TfpgColor is always in RRGGBB (Red, Green, Blue) format, no matter the
operating system.
</p>
          <p>The <var>fpg_base</var> unit also contains definitions of many useful color 
constants. It defines the standard predefined Delphi colors (like clRed, 
clMagenta etc.), the 140 web safe colors using the defacto standard names as 
used by Netscape and Internet Explorer web browsers. As well as some internal 
color constants used by many GUI components (like clText, clWindowBackground 
etc.).
</p>
        </descr>
        <seealso/>
      </element>
      <!-- record type Visibility: default -->
      <element name="TRGBTriple">
        <short>A record structure holding the RGBA values of a color.</short>
        <descr>This is now marked as "deprecated". Please use <link id="fpg_base.TFPColor">TFPColor</link> instead.</descr>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TRGBTriple.Alpha">
        <short>Alpha support has not really been implemented in fpGUI yet.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- enumeration type Visibility: default -->
      <element name="TWindowType">
        <short>Enum type defining what types of windows can be created.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TWindowType.wtChild">
        <short>The window being created is a child on another window. This normally
means no titlebar or window borders are going to be created.</short>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TWindowType.wtWindow">
        <short>This would specify a standard window with titlebar and window borders.</short>
        <descr>This would specify a standard window with titlebar and window borders. It grabs input focus, and appears in the taskbar.</descr>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TWindowType.wtModalForm">
        <short>This windows type is similar to <link id="fpg_base.TWindowType.wtWindow">wtWindow</link>, but grabs focus.</short>
        <descr>This windows is the same as <link id="fpg_base.TWindowType.wtWindow">wtWindow</link>, but grabs the input focus until it has closed. This window normally doesn't appear in the taskbar.</descr>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TWindowType.wtPopup">
        <short>This window will normally not have a titlebar or window borders.</short>
        <descr>This window will normally not have a titlebar or window borders and will appear above other windows. It is used for example in the dropdown window of a ComboBox or a tooltip window or popup menus. This type of window does not steal focus.</descr>
      </element>
      <!-- enumeration type Visibility: default -->
      <element name="TWindowAttribute">
        <short>An enum types defining extra attributes of a window.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TWindowAttribute.waSizeable">
        <short>If this attribute is set, the window will be resizeable by the user.</short>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TWindowAttribute.waAutoPos">
        <short>If this attribute is set, the underlying window manager will decide where
the window will be placed on the screen it it becomes visible for the first time.</short>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TWindowAttribute.waScreenCenterPos">
        <short>If this attribute is set, the window will be centred on the screen when
it is shown for the first time.</short>
      </element>
      <!-- set type Visibility: default -->
      <element name="TWindowAttributes">
        <short>A set of TWindowAttribute types.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- enumeration type Visibility: default -->
      <element name="TMouseCursor">
        <short>Enum types of the available mouse cursor shapes.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcDefault">
        <short>Normally the default arrow cursor.</short>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcArrow">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcCross">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcIBeam">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcSizeEW">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcSizeNS">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcSizeNWSE">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcSizeNESW">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcSizeSWNE">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcSizeSENW">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcMove">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TMouseCursor.mcHourGlass">
        <short>Normally a hourglass or watch representing a busy state.</short>
      </element>
      <!-- enumeration type Visibility: default -->
      <element name="TGradientDirection">
        <short>Enum types defining how a gradient must be painted</short>
        <descr/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TGradientDirection.gdVertical">
        <short>Defines that the gradient must be painted vertically.</short>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TGradientDirection.gdHorizontal">
        <short>Defines that the gradient must be painted horizontally.</short>
      </element>
      <!-- enumeration type Visibility: default -->
      <element name="TFileEntryType">
        <short>Represents the type of entry found on the filesystem.</short>
        <descr/>
        <seealso>
          <link id="TFileEntry"/>
        </seealso>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TFileEntryType.etFile">
        <short>Denotes a File type</short>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TFileEntryType.etDir">
        <short>Denotes a Directory type</short>
      </element>
      <!-- enumeration type Visibility: default -->
      <element name="TClipboardKeyType">
        <short>Represents the clipboard function being triggered by some keyboard key combination.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TClipboardKeyType.ckNone">
        <short>No clipboard action detected</short>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TClipboardKeyType.ckCopy">
        <short>Copy to clipboard action detected</short>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TClipboardKeyType.ckPaste">
        <short>Paste to clipboard action detected</short>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TClipboardKeyType.ckCut">
        <short>Cut to clipboard action detected</short>
      </element>
      <!-- constant Visibility: default -->
      <element name="MOUSE_LEFT">
        <short>Constant representing the left mouse button.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="MOUSE_RIGHT">
        <short>Constant representing the right mouse button.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="MOUSE_MIDDLE">
        <short>Constant representing the middle mouse button.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_PAINT">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_ACTIVATE">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_DEACTIVATE">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_KEYPRESS">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_KEYRELEASE">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_KEYCHAR">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_MOUSEDOWN">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_MOUSEUP">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_MOUSEMOVE">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_DOUBLECLICK">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_MOUSEENTER">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_MOUSEEXIT">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_CLOSE">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_SCROLL">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_RESIZE">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_MOVE">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_POPUPCLOSE">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPGM_KILLME">
        <short>Platform independent messages used by fpGUI.</short>
        <descr/>
        <seealso/>
      </element>
      <!-- constant Visibility: default -->
      <element name="FPG_DEFAULT_FONT_DESC">
        <short>The default base font used in fpGUI</short>
        <descr/>
      </element>
      <!-- object Visibility: default -->
      <element name="TfpgRect">
        <short>A graphical (pixel based) rectangle structure used throughout fpGUI.</short>
        <descr>
          <p>Note that this structure is not a class, so static allocations are 
allowed. This makes it much easier to use in Widgets and in fpGUI internal
messages.</p>
          <p>Think of the pixel screen/grid like the grid of a spreadsheet (or as a magnified look of the top corner of your screen).
</p>
          <pre>.
     0   1
   +---+---+---
0  | x |   |
   +---+---+---
1  |   |   |
   +---+---+---
2  |   |   |
   +---+---+---
   |   |   |
</pre>
          <p>x is at (0,0). A pixel is always 1x1, you don't get smaller (we are not using sub-pixels like on LCD screens, because they don't apply to all screens).  
</p>
          <p>So with that example, Width = 1 pixel and Height = 1 pixel. In the case of 
Classes.Bounds() the Right and Bottom values are (1,1) which looking at the 
above image will be wrong, the pixel only covers one block, so in a screen/pixel 
environment, Right, Bottom is also (0,0), the same as Top/Left. This is what
TfpgRect.Right and TfpgRect.Bottom will report.
</p>
          <pre>.
     0   1
   +---+---+---
0  | x | x |
   +---+---+---
1  | x | x |
   +---+---+---
2  |   |   |
   +---+---+---
   |   |   |
</pre>
          <p>In this example we have a rectangle. Top/Left = (0,0) and Bottom/Right = (1,1). 
This means Width = 2 pixels and Height = 2 pixels. Clearly visible in the image 
above.
</p>
          <p>But if we call Classes.Bounds(0,0,2,2) it reports Bottom/Right as (2,2) which 
is wrong (again looking at the image above as reference). This is my point. 
Bounds() cannot be used in this case in a graphical environment.
</p>
          <p>The reason I don't use a grid layout as shown below, is 
because if the mouse is over the rectangle containing x, the OS (graphics system) reports its 
position as (0,0). You don't have to have the mouse pointer over the intersecting 
lines at (0,0) as indicated in the image below. The whole square containing 
the x is referenced as (0,0), hence the grid layout as show in the images above,
and what fpGUI uses. The same grid layout as used in TfpgStringGrid or any 
Spreadsheet program etc.
</p>
          <pre>.
   0   1   2
0  +---+---+---
   | x |   |
1  +---+---+---
   |   |   |
2  +---+---+---
   |   |   |
3  +---+---+---
   |   |   |
</pre>
        </descr>
        <errors/>
        <seealso/>
      </element>

      <!-- procedure Visibility: default -->
      <element name="TfpgRect.SetRect">
        <short>A convenience function to quickly set a rectangle structure.</short>
        <descr/>
      </element>

      <!-- function Visibility: default -->
      <element name="TfpgRect.Bottom">
        <short>Calculates and returns the bottom position of the rectangle.</short>
        <descr/>
      </element>

      <!-- function Visibility: default -->
      <element name="TfpgRect.Right">
        <short>Calculates and returns the Right most position of the rectangle.</short>
        <descr/>
      </element>

      <!-- procedure Visibility: default -->
      <element name="TfpgRect.SetBottom">
        <short>Sets the bottom value and recalculates the Height value.</short>
        <descr/>
      </element>

      <!-- procedure Visibility: default -->
      <element name="TfpgRect.SetRight">
        <short>Sets the Right value and recalculates the Width value.</short>
        <descr/>
      </element>

      <!-- record type Visibility: default -->
      <element name="TfpgMsgParmMouse">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMsgParmMouse.x">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMsgParmMouse.y">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMsgParmMouse.Buttons">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMsgParmMouse.shiftstate">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMsgParmMouse.delta">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- record type Visibility: default -->
      <element name="TfpgMsgParmKeyboard">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMsgParmKeyboard.keycode">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMsgParmKeyboard.keychar">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMsgParmKeyboard.shiftstate">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- record type Visibility: default -->
      <element name="TfpgMessageParams">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMessageParams.mouse">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMessageParams.keyboard">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMessageParams.rect">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- record type Visibility: default -->
      <element name="TfpgMessageRec">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMessageRec.MsgCode">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMessageRec.Sender">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMessageRec.Dest">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- variable Visibility: default -->
      <element name="TfpgMessageRec.Params">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- pointer type Visibility: default -->
      <element name="PfpgMessageRec">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- enumeration type Visibility: default -->
      <element name="TfpgLineStyle">
        <short/>
        <descr/>
        <seealso/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TfpgLineStyle.lsSolid">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TfpgLineStyle.lsDash">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TfpgLineStyle.lsDot">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TfpgLineStyle.lsDashDot">
        <short/>
      </element>
      <!-- enumeration value Visibility: default -->
      <element name="TfpgLineStyle.lsDashDotDot">
        <short/>
      </element>
      <!-- object Visibility: default -->
      <element name="TfpgWindowBase">
        <short>Abstract class use for representing a Window or Widget</short>
        <descr>fpGUI is a <i>Windowed</i> toolkit. By that we mean that every component
or widget has a window handle. Widgets are essentially embedded windows without
titlebars or borders inside a main parent window.
</descr>
      </element>

<element name="TfpgWindowBase.UpdateWindowPosition">
<short>Forces fpGUI to act on window position and size properties</short>
<descr><p>fpGUI implements what is called "delayed resource allocation". It delays
some action until everything is ready to go. This delayed action applies to setting
Widget or Form size and position. Why? Imagine you have a complex form
with lots of anchors, alignments and OnResize event handlers. Now
somewhere in there you change the size or position of a component.</p>

<code>
MyWidget.Left := ...
MyWidget.Top := ...
MyWidget.Width := ...
MyWidget.Height := ...
</code>

<p>If fpGUI acted immediately, as every property is set, it means it
would have to recalculate all those widget boundaries, and fire all
OnResize event handlers of the whole form four times. Once for each
property - as you set them. Not very efficient! To reduce such
redundant calculations, fpGUI allows you to set all the properties,
then act on it once you call <var>UpdateWindowPosition</var>. In most cases fpGUI
can even reduce the API calls needed, because it could pass for
example Width and Height via one API call. In the case of X11, it can actually do all
four values in a single API call. Thus improving efficiency and reduces resize calculatios and screen
redraws.</p>
</descr>
</element>

<element name="TfpgWindowBase.Left">
<short>Specifies the horizontal coordinate of the left edge of a component relative to its parent</short>
<descr><p><printshort id="TfpgWindowBase.Left"/>. Use the Left property to determine where the left side
of the control begins or to reposition the left side of the control.
</p>
<remark>fpGUI delays acting on the Top, Left, Width and Height properies of a control until the
<var>UpdateWindowPosition</var> method is called. For more information on why this is so, see <link id="fpg_base.TfpgWindowBase.UpdateWindowPosition">UpdateWindowPosition</link>
help.</remark></descr>
<seealso>
<link id="fpg_base.TfpgWindowBase.UpdateWindowPosition">TfpgWindowBase.UpdateWindowPosition</link>
</seealso>
</element>

<element name="TfpgWindowBase.Top">
<short>Specifies the vertical (X) coordinate of the top edge of a component relative to its parent</short>
<descr><p><printshort id="TfpgWindowBase.Top"/>. Use the Top property to determine where the top side
of the control begins or to reposition the top side of the control.
</p>
<remark>fpGUI delays acting on the Top, Left, Width and Height properies of a control until the
<var>UpdateWindowPosition</var> method is called. For more information on why this is so, see <link id="fpg_base.TfpgWindowBase.UpdateWindowPosition">UpdateWindowPosition</link>
help.</remark></descr>
<seealso>
<link id="fpg_base.TfpgWindowBase.UpdateWindowPosition">TfpgWindowBase.UpdateWindowPosition</link>
</seealso>
</element>

<element name="TfpgWindowBase.Width">
<short>Specifies the horizontal size of the control or form in pixels</short>
<descr><p><printshort id="TfpgWindowBase.Width"/>. Use the Width property
to read or change the width of the control. For TfpgTabSheet controls of for
controls that have their Align property set to alTop, alBottom or alClient, changing
this property at runtime has no effect.
</p>
<remark>fpGUI delays acting on the Top, Left, Width and Height properies of a control until the
<var>UpdateWindowPosition</var> method is called. For more information on why this is so, see <link id="fpg_base.TfpgWindowBase.UpdateWindowPosition">UpdateWindowPosition</link>
help.</remark></descr>
<seealso>
<link id="fpg_base.TfpgWindowBase.UpdateWindowPosition">TfpgWindowBase.UpdateWindowPosition</link>
</seealso>
</element>

<element name="TfpgWindowBase.Height">
<short>Specifies the vertical size of the control or form in pixels</short>
<descr><p><printshort id="TfpgWindowBase.Height"/>. Use the Height property
to read or change the height of the control. For TfpgTabSheet controls of for
controls that have their Align property set to alLeft, alRight or alClient, changing
this property at runtime has no effect.
</p>
<remark>fpGUI delays acting on the Top, Left, Width and Height properies of a control until the
<var>UpdateWindowPosition</var> method is called. For more information on why this is so, see <link id="fpg_base.TfpgWindowBase.UpdateWindowPosition">UpdateWindowPosition</link>
help.</remark></descr>
<seealso>
<link id="fpg_base.TfpgWindowBase.UpdateWindowPosition">TfpgWindowBase.UpdateWindowPosition</link>
</seealso>
</element>

      <!-- object Visibility: default -->
      <element name="TfpgCanvasBase">
        <short>Abstract class used to represent a Canvas for painting</short>
        <descr/>
      </element>
      <!-- object Visibility: default -->
      <element name="TfpgImageBase">
        <short>Abstract class used to represent a Image</short>
        <descr/>
      </element>

      <!-- procedure Visibility: public -->
      <element name="TfpgImageBase.Invert">
        <short>Inverts the Image</short>
        <descr><printshort id="TfpgImageBase.Invert"/>. This changes the actual
data of the image. There is no undo function. So if you want to undo this action,
you must keep copy of the original image before you call <var>Invert</var>.</descr>
      </element>

      <!-- procedure Visibility: public -->
      <element name="TfpgImageBase.AllocateImage">
        <short>Allocates OS resources for the Image</short>
        <descr/>
      </element>

      <!-- procedure Visibility: public -->
      <element name="TfpgImageBase.AllocateMask">
        <short>Allocates OS resources for the Image Mask</short>
        <descr/>
      </element>

      <!-- procedure Visibility: public -->
      <element name="TfpgImageBase.CreateMaskFromSample">
        <short>Creates a mask based on the sample point presented by X and Y parameters</short>
        <descr/>
      </element>

      <!-- procedure Visibility: public -->
      <element name="TfpgImageBase.UpdateImage">
        <short>Updates the internal image resources and OS resources from image data</short>
        <descr/>
      </element>

      <!-- property Visibility: public -->
      <element name="TfpgImageBase.Width">
        <short>Width of the image</short>
        <descr/>
      </element>
      <!-- property Visibility: public -->
      <element name="TfpgImageBase.Height">
        <short>Height of the image</short>
        <descr/>
      </element>
      <!-- property Visibility: public -->
      <element name="TfpgImageBase.ColorDepth">
        <short>Color depth of the image. Currently 24/32-bit is all that is supported.</short>
        <descr/>
      </element>

      <!-- property Visibility: public -->
      <element name="TfpgImageBase.Colors">
        <short>Array property to access a specific color of the image based on X and Y co-ordinates</short>
        <descr/>
      </element>

      <!-- object Visibility: default -->
      <element name="TfpgFontResourceBase">
        <short>Encapsulates the resources of a font</short>
        <descr/>
      </element>

      <!-- object Visibility: default -->
      <element name="TfpgBaseInterpolation">
        <short>A abstract class representing a base Interpolation filter.</short>
        <descr>This is used as the base class to implement Interpolation filters like
Gaussian, Sinc etc... These decendant filters are used in the 
<link id="TfpgCanvasBase.StretchDraw">Canvas.StretchDraw</link> function.
</descr>
        <seealso>
          <link id="TfpgCanvasBase.StretchDraw">Canvas.StretchDraw</link>
        </seealso>
      </element>
      <!-- procedure Visibility: public -->
      <element name="TfpgCanvasBase.DrawRectangle">
        <short>Draws a rectangle.</short>
        <descr>
          <printshort id="TfpgCanvasBase.DrawRectangle"/> You can specify the size of the rectangle via X, Y, Width and Height parameters or via a TfpgRect parameter.</descr>
      </element>

      <!-- procedure Visibility: public -->
      <element name="TfpgCanvasBase.DrawLine">
        <short>Draws a line</short>
        <descr>
          <printshort id="TfpgCanvasbase.DrawLine"/>. This method draws a line from (x1,y1) to (x2,y2), but does not draw the last pixel. All supported backends follow the Microsoft API and doesn't draw the last pixel. This optimises consecutive lines being drawn without overlapping pixels.</descr>
      </element>

      <!-- function Visibility: default -->
      <element name="KeycodeToText">
        <short>Returns the text representation of a keycode.</short>
        <descr>This is mainly used for debugging, but could also be used for Menu Item keyboard
shortcuts etc.
</descr>
      </element>

      <!-- function Visibility: default -->
      <element name="CheckClipboardKey">
        <short>Detects if the pressed keys represent a Clipboard key shortcut</short>
        <descr>Detects if the pressed keys represent a Clipboard key shortcut. If it does, it
returns the correct enum type detected.
</descr>
      </element>

      <!-- function Visibility: default -->
      <element name="fpgColorToRGBTriple">
        <short>Converts the TfpgColor to TRGBTriple type</short>
        <descr>This function converts the given TfpgColor into a TRGBTriple type.</descr>
        <seealso>
          <link id="fpg_base.TRGBTriple">TRGBTriple</link>
        </seealso>
      </element>

      <!-- function Visibility: default -->
      <element name="RGBTripleTofpgColor">
        <short>Converts the TRGBTriple to TfpgColor type</short>
        <descr>This function converts the given TRGBTriple into a TfpgColor type.
</descr>
        <seealso>
          <link id="fpg_base.TRGBTriple">TRGBTriple</link>
        </seealso>
      </element>
      <!-- function Visibility: default -->
      <element name="fpgGetRed">
        <short>Returns the Red portion of a color value.</short>
        <descr/>
      </element>

      <!-- function Visibility: default -->
      <element name="fpgGetGreen">
        <short>Returns the Green portion of a color value.</short>
        <descr/>
      </element>
      <!-- function Visibility: default -->
      <element name="fpgGetBlue">
        <short>Returns the Blue portion of a color value.</short>
        <descr/>
      </element>

      <!-- function Visibility: default -->
      <element name="fpgGetAlpha">
        <short>Returns the Alpha portion of a color value.</short>
        <descr/>
      </element>

      <!-- function Visibility: default -->
      <element name="fpgGetAvgColor">
        <short>Calculates the average color using the two supplied</short>
        <descr>This function calculates and returns the average color by using AColor1 
and AColor2. The Alpha value also gets taken into account.
</descr>
      </element>

      <!-- function Visibility: default -->
      <element name="PtInRect">
        <short>Returns true if APoint is inside ARect rectangle</short>
        <descr>This function is used to detect if the point APoint is inside the given
rectangle ARect.  If it is, the function returns True, otherwise False.
</descr>
      </element>

      <!-- procedure Visibility: default -->
      <element name="SortRect">
        <short>Fixes the Top, Bottom and Left, Right to always represent a valid rectangle</short>
        <descr>This function fixes a rectangle so that the Left point is always smaller than the 
Right. And the Top is always smaller than the Bottom.
</descr>
      </element>

      <element name="TfpgCanvasBase.DrawLineClipped">
        <short>Draws a line inside a clip rectangle</short>
        <descr><p><printshort id="TfpgCanvasBase.DrawLineClipped"/>. This procedure clips a line to the AClipRect boundaries and
 then calls the DrawLine procedure with the clipped coordinates.  If the line
 lies completely outside of the clip boundary, then the Line routine is not
 called.  This procedure uses the well known Cohen-Sutherland line clipping
 algorithm to clip each coordinate.</p>
<p>Use this if you do not want to change the Canvas.ClipRegion for some reason.
 For a detailed explanation see:  http://www.nondot.org/~sabre/graphpro/line6.html
</p></descr>
      </element>

      <element name="TfpgCanvasBase.ClipLine">
        <short>Clips the line based on AClipRect boundaries.</short>
        <descr>This does not do any drawing, in only clips the line coordinates. This method is used internally by <link id="TfpgCanvasBase.DrawLineClipped"/>.</descr>
      </element>

      <element name="TFileEntry">
        <short>A simple data object representing a file</short>
        <descr><printshort id="TFileEntry"/>. Some properties are OS dependant.</descr>

      </element>
      <element name="TFileEntry.Name">
        <short>Name of a file</short>
      </element>

      <element name="TFileEntry.Extension">
        <short>The extension of a file</short>
      </element>

      <element name="TFileEntry.Size">
        <short>Size of a file in bytes</short>
      </element>

      <element name="TFileEntry.IsLink">
        <short>Is this item a symbolic link (on unix-type OSes)</short>
      </element>

      <element name="TFileEntry.LinkTarget">
        <short>If it is a symbolic link, LinkTarget is what it points too</short>
      </element>

      <element name="TFileEntry.ModTime">
        <short>Last modified timestamp</short>
      </element>

      <element name="TFPColor">
        <short>A record structure holding the RGBA values of a color.</short>
        <descr>This is the same declaration as the one found in FPImage (include with Free Pascal Compiler). In future when FPImage is integrated with fpGUI, I will remove this declaration.</descr>
      </element>

<element name="TfpgPoint.ManhattanLength">
<short>Quick calculation of the length between points</short>
<descr><p>Returns the sum of the absolute values of X and Y,
traditionally known as the "Manhattan length" of the vector from
the origin to the point. For example:</p>
<code>
var
  oldPosition: TfpgPoint;
  newPosition: TfpgPoint;
begin
  newPosition := MousePosition - oldPosition;
  if (newPosition.ManhattanLength > 5) then
  begin
    // the mouse has moved more than 5 pixels since the oldPosition
  end;
end;
</code>
<p>
Accuracy is traded for speed. This is a useful, and quick to calculate, approximation to the
true length:</p>
<code>
    TrueLength := sqrt(power(X, 2) + power(Y, 2));
</code>
<p>
The tradition of "Manhattan length" arises because such distances
apply to travelers who can only travel on a rectangular grid, like
the streets of Manhattan.</p>
<p>For a further explanation of "Manhattan length" see the WikiPedia article at
<link>http://en.wikipedia.org/wiki/Taxicab_geometry</link></p>
</descr>
</element>


    </module>
    <!-- fpg_base -->
  </package>
</fpdoc-descriptions>