"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
Ā
The Ring programming language version 1.5.2 book - Part 180 of 181
1. Ring Documentation, Release 1.5.2
QSlider Class
RingQt Classes Reference, 1598
QSpinBox Class
RingQt Classes Reference, 1596
QSplashScreen Class
RingQt Classes Reference, 1682
QSplitter Class
RingQt Classes Reference, 1685
QSqlDatabase Class
RingQt Classes Reference, 1650
QSqlDriver Class
RingQt Classes Reference, 1651
QSqlDriverCreatorBase Class
RingQt Classes Reference, 1655
QSqlError Class
RingQt Classes Reference, 1653
QSqlField Class
RingQt Classes Reference, 1654
QSqlIndex Class
RingQt Classes Reference, 1653
QSqlQuery Class
RingQt Classes Reference, 1652
QSqlRecord Class
RingQt Classes Reference, 1653
QStatusBar Class
RingQt Classes Reference, 1585
QString2 Class
RingQt Classes Reference, 1688
QStringList Class
RingQt Classes Reference, 1635
QStringRef Class
RingQt Classes Reference, 1695
QSystemTrayIcon Class
RingQt Classes Reference, 1649
Qt Class Convertor
What is new in Ring 1.4?, 80
Qt conļ¬guration ļ¬le
Code Generator, 760
QTableView Class
RingQt Classes Reference, 1592
QTableWidget Class
RingQt Classes Reference, 1593
QTableWidgetItem Class
RingQt Classes Reference, 1588
QTabWidget Class
RingQt Classes Reference, 1586
QTcpServer Class
RingQt Classes Reference, 1628
QTcpSocket Class
RingQt Classes Reference, 1628
QTest Class
RingQt Classes Reference, 1557
QTextBlock Class
RingQt Classes Reference, 1646
QTextCharFormat Class
RingQt Classes Reference, 1674
QTextCodec Class
RingQt Classes Reference, 1650
QTextCursor Class
RingQt Classes Reference, 1633
QTextDocument Class
RingQt Classes Reference, 1644
QTextEdit Class
RingQt Classes Reference, 1569
QThread Class
RingQt Classes Reference, 1665
QThreadPool Class
RingQt Classes Reference, 1666
QTime Class
RingQt Classes Reference, 1647
QTimer Class
RingQt Classes Reference, 1611
QToolBar Class
RingQt Classes Reference, 1583
QToolButton Class
RingQt Classes Reference, 1693
QTreeView Class
RingQt Classes Reference, 1573
QTreeWidget Class
RingQt Classes Reference, 1576
QTreeWidgetItem Class
RingQt Classes Reference, 1578
Queue Class
Stdlib Classes, 319
Quotes about Ring
Applications developed in little hours, 1
QUrl Class
RingQt Classes Reference, 1603
QUuid Class
RingQt Classes Reference, 1693
QVariant Class
RingQt Classes Reference, 1655
QVBoxLayout Class
RingQt Classes Reference, 1568
QVideoWidget and QMediaPlayer
Desktop and Mobile Development, 573
QVideoWidget Class
RingQt Classes Reference, 1607
QVideoWidgetControl Class
RingQt Classes Reference, 1677
QWebView Class
RingQt Classes Reference, 1602
QWidget Class
RingQt Classes Reference, 1558
QXmlStreamAttribute Class
RingQt Classes Reference, 1665
QXmlStreamAttributes Class
RingQt Classes Reference, 1665
Index 1765
2. Ring Documentation, Release 1.5.2
QXmlStreamEntityDeclaration Class
RingQt Classes Reference, 1664
QXmlStreamEntityResolver Class
RingQt Classes Reference, 1664
QXmlStreamNamespaceDeclaration Class
RingQt Classes Reference, 1664
QXmlStreamNotationDeclaration Class
RingQt Classes Reference, 1664
QXmlStreamReader Class
RingQt Classes Reference, 1661
QXmlStreamWriter Class
RingQt Classes Reference, 1663
Raise()
Eval() and Debugging, 230
RandBytes()
Security and Internet Functions, 260
Random Image
Web Development (CGI Library), 380
Random()
Mathematical Functions, 209
Read File using Read()
Files, 213
readline()
Stdlib Functions, 309
Real Natual Code
Natural Language Programming, 349
Recursion
Functions - First Style, 171
Functions - Second Style, 175
Functions - Third Style, 179
Reference
Compiler Errors, 1734
Environment Errors, 1736
Introduction, 1731
Language Functions, 1733
Language Grammar, 1736
Language Keywords, 1732
Runtime Errors, 1735
Virtual Machine Instructions, 1738
Reļ¬ection and Meta-programming
addattribute(), 291
addmethod(), 291
attributes(), 288
cfunctions(), 281
classes(), 285
classname(), 287
functions(), 281
getattribute(), 293
globals(), 280
Introduction, 279
isattribute(), 289
iscfunction(), 283
isclass(), 285
isfunction(), 283
isglobal(), 282
islocal(), 282
ismethod(), 290
isobject(), 288
ispackage(), 284
ispackagesclass(), 287
isprivateattribute(), 289
isprivatemethod(), 290
locals(), 280
mergemethods(), 295
methods(), 288
objectid(), 287
packagename(), 296
packages(), 284
packagesclasses(), 286
setattribute(), 294
Register New Functions
Code Generator, 754
Regular Expressions
Desktop and Mobile Development, 608
Relational Operators
Operators, 148
Remove()
Files, 214
Rename()
Files, 214
Resources
Contact the Autor, 1745
Introduction, 1744
Ring Group, 1745
Ring Language Website, 1745
Restore Image From The Database
MySQL Functions, 251
Return object by reference
Declarative Programming, 338
Return Self by Reference
What is new in Ring 1.3?, 94
Return Value
Extension, 741
Functions - First Style, 170
Functions - Second Style, 174
Functions - Third Style, 178
Reverse()
Lists, 184
Rewind()
Files, 216
Right()
Strings, 190
RING API - list Functions
Extension, 743
RING API - String Functions
Extension, 745
Ring CGI Hello World Program
Index 1766
3. Ring Documentation, Release 1.5.2
Web Development (CGI Library), 361
Ring Group
Resources, 1745
Ring Language Website
Resources, 1745
Ring mode for Emacs Editor
What is new in Ring 1.3?, 92
Ring Notepad
Introduction, 128
Ring Notepad - Creating and running your ļ¬rst con-
sole application, 129
Ring Notepad - Creating and running your ļ¬rst game,
134
Ring Notepad - Creating and running your ļ¬rst GUI
application, 132
Ring Notepad - Creating and running your ļ¬rst Web
application, 133
Ring Notepad - Main Window, 129
The Browser Menu, 138
The Edit Menu, 136
The File Menu, 136
The Help Menu, 139
The Main File in the Project, 135
The Program Menu, 138
The Tools Menu, 139
The View Menu, 137
Ring Notepad - Creating and running your ļ¬rst console
application
Ring Notepad, 129
Ring Notepad - Creating and running your ļ¬rst game
Ring Notepad, 134
Ring Notepad - Creating and running your ļ¬rst GUI ap-
plication
Ring Notepad, 132
Ring Notepad - Creating and running your ļ¬rst Web ap-
plication
Ring Notepad, 133
Ring Notepad - Main Window
Ring Notepad, 129
Ring State
Embedding Ring Language in C/C++ Programs, 748
Ring State Functions
Embedding Ring Language in C/C++ Programs, 748
Ring State Variables
Embedding Ring Language in C/C++ Programs, 749
Ring VM - Tracing Functions
What is new in Ring 1.5?, 58
ring_ext.c
Extension, 738
ring_ext.h
Extension, 738
RingAllegro Functions Reference
Introduction, 780
RingCodeHighlighter Class
RingQt Classes Reference, 1661
RingFreeGLUT Extension
What is new in Ring 1.5?, 44
RingFreeGLUT Functions Reference
Introduction, 815
RingLibCurl
Facebook Login, 414
Get Request, 414
Get Stock Data From Yahoo, 416
Introduction, 413
Post Request, 414
Save output to string, 415
What is new in Ring 1.2?, 101
RingLibCurl Functions Reference
Introduction, 770
RingLibSDL
Close Window Event, 437
Create Window, 434
Display Image, 434
Display PNG Images, 435
Display Transparent Images, 436
Draw Rectangle, 435
Introduction, 433
Mouse Events, 438
Play Sound, 439
Switch Between Two Images, 434
Use TTF Fonts, 436
What is new in Ring 1.1?, 110
RingLibSDL Functions Reference
Introduction, 799
RingLibZip Functions Reference
Introduction, 779
RingOpenGL (OpenGL 1.1) Functions Reference
Introduction, 824
RingOpenGL (OpenGL 1.2) Functions Reference
Introduction, 849
RingOpenGL (OpenGL 1.3) Functions Reference
Introduction, 875
RingOpenGL (OpenGL 1.4) Functions Reference
Introduction, 904
RingOpenGL (OpenGL 1.5) Functions Reference
Introduction, 934
RingOpenGL (OpenGL 2.0) Functions Reference
Introduction, 965
RingOpenGL (OpenGL 2.1) Functions Reference
Introduction, 999
RingOpenGL (OpenGL 3.0) Functions Reference
Introduction, 1041
RingOpenGL (OpenGL 3.1) Functions Reference
Introduction, 1086
RingOpenGL (OpenGL 3.2) Functions Reference
Introduction, 1132
RingOpenGL (OpenGL 3.3) Functions Reference
Introduction, 1179
Index 1767
6. Ring Documentation, Release 1.5.2
RingVM_PackagesList()
Low Level Functions, 716
ringvm_passerror()
Low Level Functions, 722
ringvm_scopescount()
Low Level Functions, 722
ringvm_settrace()
Low Level Functions, 721
ringvm_tracedata()
Low Level Functions, 721
ringvm_traceevent()
Low Level Functions, 721
ringvm_tracefunc()
Low Level Functions, 722
RingZip
Create Zip File, 418
Extract Zip File, 418
Introduction, 417
Print ļ¬les in Zip ļ¬le, 418
Using RingZip Classes, 418
Zip Class Reference, 420
ZipEntry Class Reference, 420
RingZip Library
What is new in Ring 1.3?, 95
Rotate Text
Desktop and Mobile Development, 605
Rules
The Type Hints Library, 692
Run the program
Getting Started - First Style, 123
Getting Started - Second Style, 125
Getting Started - Third Style, 127
Running Forms
Form Designer, 656
Runtime Errors
Reference, 1735
Samples
How to contribute?, 121
Samples in this book
Applications developed in little hours, 12
Samples Source (Authors)
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 494
Save and Restore Images
ODBC Functions, 243
Save Image Inside the Database
MySQL Functions, 251
Save output to string
RingLibCurl, 415
Scaling and Rotating Images
Graphics and Game Programming, 429
Scope Rules
Accessing the class attributes from braces inside
class methods, 668
Conļ¬ict between Class Attributes and Local Vari-
ables, 665
Conļ¬ict between Global Variables and Class At-
tributes, 664
Conļ¬ict between self inside braces and self in the
class region, 671
Creating a Class for each Window in GUI applica-
tions, 670
Deļ¬ning Variables and Variables Access, 662
How Ring ļ¬nd the Variable?, 663
Introduction, 661
Summary of Scope Rules, 675
The Self Object, 663
Three Scopes, 662
Using Braces to access objects inside Class Methods,
666
Using braces to escape from the current object scope,
674
Using Object.Attribute, 663
Scope Rules for Functions and Methods
Calling a function sharing the name with a method in
the current class, 679
Example about Sharing Names between Functions
and Methods, 677
How Ring ļ¬nd a functions and methods?, 677
Introduction, 676
ScriptFunctions Class
Web Development (CGI Library), 411
Search
Lists, 183
Search of global names while deļ¬ning the class attributes
Frequently Asked Questions, 1712
Security and Internet Functions
Decrypt(), 260
Download(), 261
Encrypt(), 259
Example, 260
File Hash, 260
Introduction, 256
MD5(), 257
RandBytes(), 260
SendEmail(), 261
SHA1(), 258
SHA224(), 259
SHA256(), 258
SHA384(), 259
SHA512(), 258
Security Class
Stdlib Classes, 335
Send Parameters
Functions - First Style, 169
Functions - Second Style, 173
Index 1770
7. Ring Documentation, Release 1.5.2
Functions - Third Style, 177
SendEmail()
Security and Internet Functions, 261
Serial Execution of Programs
Embedding Ring in Ring, 736
Set List Item
Lists, 182
setattribute()
Reļ¬ection and Meta-programming, 294
Setter and Getter
Object Oriented Programming, 266
SHA1()
Security and Internet Functions, 258
SHA224()
Security and Internet Functions, 259
SHA256()
Security and Internet Functions, 258
SHA384()
Security and Internet Functions, 259
SHA512()
Security and Internet Functions, 258
Shared Libraries
Extension, 746
Short-circuit evaluation
Control Structures - First Style, 155
Shutdown() Function
System Functions, 228
sign()
Stdlib Functions, 303
Simple
Language Design, 24
Simple Client and Server Example
Desktop and Mobile Development, 609
Sin() Implementation
Extension, 742
Single: Desktop and Mobile Development
Introduction, 541
sleep()
Stdlib Functions, 310
Smart Garbage Collector
Language Design, 32
Sort()
Lists, 183
Sort() and List of Objects
Object Oriented Programming, 271
Sound Class
Game Engine for 2D Games, 445
Source Code File Sections
Program Structure, 180
space()
Low Level Functions, 712
Special thanks to contributors
How to contribute?, 121
split()
Stdlib Functions, 300
splitmany()
Stdlib Functions, 300
Sprite Automatic Movement
Game Engine for 2D Games, 452
Sprite Class
Game Engine for 2D Games, 444
Sprite Keypress Event
Game Engine for 2D Games, 453
Sprite Mouse Event
Game Engine for 2D Games, 454
Sprite State Event
Game Engine for 2D Games, 455
SQLite
Introduction, 253
sqlite_close(), 254
sqlite_execute(), 254
sqlite_init(), 254
sqlite_open(), 254
SQLite Class
Stdlib Classes, 334
sqlite_close()
SQLite, 254
sqlite_execute()
SQLite, 254
sqlite_init()
SQLite, 254
sqlite_open()
SQLite, 254
Squares Puzzle Game
Applications developed in little hours, 7
Stack Class
Stdlib Classes, 319
Stars Fighter Game
Game Engine for 2D Games, 464
startswith()
Stdlib Functions, 304
StdBase Class
Stdlib Classes, 314
Stdlib Classes
Conversion Class, 331
DataType Class, 330
DateTime Class, 325
Debug Class, 329
File Class, 327
HashTable Class, 320
Internet Class, 336
Introduction, 313
List Class, 317
Math Class, 322
MySQL Class, 333
ODBC Class, 332
Queue Class, 319
Security Class, 335
Index 1771
8. Ring Documentation, Release 1.5.2
SQLite Class, 334
Stack Class, 319
StdBase Class, 314
String Class, 315
System Class, 328
Tree Class, 321
Stdlib Functions
apppath(), 298
binarydigits(), 307
capitalized(), 301
changestring(), 310
dayofweek(), 308
direxists(), 310
endswith(), 304
EpochTime(), 312
evenorodd(), 306
factorial(), 302
factors(), 306
ļ¬bonacci(), 303
ļ¬le2list(), 304
ļ¬lter(), 300
FSize(), 311
gcd(), 305
getnumber(), 298
getstring(), 298
Introduction, 296
isleapyear(), 307
ismainsourceļ¬le(), 310
isprime(), 303
isspecial(), 301
isvowel(), 302
JustFileName(), 299
JustFilePath(), 298
lcm(), 305
linecount(), 302
list2ļ¬le(), 303
ListAllFiles() Function, 312
makedir(), 311
map(), 300
matrixmulti(), 307
matrixtrans(), 308
newlist(), 301
palindrome(), 307
permutation(), 308
print(), 297
Print2Str() Function, 297
prodlist(), 306
puts(), 297
readline(), 309
sign(), 303
sleep(), 310
split(), 300
splitmany(), 300
startswith(), 304
substring(), 309
sumlist(), 305
SystemCmd() Function, 312
times(), 299
TrimAll(), 311
TrimLeft(), 311
TrimRight(), 312
value(), 299
StdLib functions and classes written in Ring
What is new in Ring 1.1?, 108
Step Option
Control Structures - First Style, 153
Str2Hex()
Data Type, 206
str2list() and list2str()
Strings, 193
strcmp()
Strings, 193
String Class
Stdlib Classes, 315
String Literals
Strings, 189
String()
Data Type, 204
Strings
Access String Letters, 189
Convert Letters Case, 189
Copy(), 191
Find SubString, 192
Get Number of Characters from position, 192
Get String Length, 189
Get Substring from position to end, 192
Introduction, 188
Left(), 190
Lines(), 191
Right(), 190
str2list() and list2str(), 193
strcmp(), 193
String Literals, 189
Substr(), 191
Transform Substring To Another Substring, 192
Trim(), 191
StyleFunctions Class
Web Development (CGI Library), 411
Substr()
Strings, 191
substring()
Stdlib Functions, 309
sumlist()
Stdlib Functions, 305
Summary of Scope Rules
Scope Rules, 675
Super Man 2016 Game
Game Engine for 2D Games, 479
Index 1772
9. Ring Documentation, Release 1.5.2
Swap Items
Lists, 188
Switch Between Two Images
RingLibSDL, 434
Switch Statement
Control Structures - First Style, 151
Control Structures - Second Style, 158
Control Structures - Third Style, 161
Syntax Flexibility
Change Language Keywords, 681
Change Language Operators, 682
Introduction, 680
Load Syntax Files, 682
Using ācaseā as āonā in switch statements, 688
Using ādefā as āfuncā in functions/methods deļ¬ni-
tion, 688
Using āendā keyword after Pack-
ages/Classes/Functions, 689
Using āendpackageā/āendclassā/āendfuncā keywords
after Packages/Classes/Functions, 689
Using āputā and āgetā as āseeā and āgiveā, 688
Using () around the function parameters, 682
in the start of the variable name, 685
Using braces { } in Packages/Classes/Functions, 689
Using braces to start and end different control struc-
tures, 687
Using Semi-colon after and between statements, 684
Using the āelseā keyword as āotherā in switch state-
ment, 685
Using the āelseifā keyword as ābutā in if statement,
685
Using the āendā keyword in different control struc-
tures, 686
What is new in Ring 1.1?, 105
SysGet() Function
System Functions, 223
System Class
Stdlib Classes, 328
System Functions
ChDir() Function, 227
CurrentDir() Function, 227
Example, 224
ExeFileName() Function, 227
ExeFolder() Function, 227
Get Active Source File Name, 226
Get Command Line Arguments, 225
Introduction, 221
IsAndroid() Function, 224
IsFreeBSD() Function, 224
IsLinux() Function, 224
IsMacOSX() Function, 223
IsMSDOS() Function, 223
IsUnix() Function, 223
IsWindows() Function, 223
IsWindows64() Function, 223
PrevFileName() Function, 226
Shutdown() Function, 228
SysGet() Function, 223
System() Function, 222
Version() Function, 227
Windowsnl() Function, 225
System() Function
System Functions, 222
SystemCmd() Function
Stdlib Functions, 312
Tempļ¬le()
Files, 216
Templates
Web Development (CGI Library), 375
Tempname()
Files, 216
Testing
How to contribute?, 121
Text Class
Game Engine for 2D Games, 444
The Browser Menu
Ring Notepad, 138
The Camera
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 504
The Cards Game
Demo Programs, 631
Desktop and Mobile Development, 631
The Designer Windows
Form Designer, 655
The Difference between Qt and RingQt
Desktop and Mobile Development, 641
The documentation says functional programming is sup-
ported, but then this happens?
Frequently Asked Questions, 1704
The Edit Menu
Ring Notepad, 136
The File Menu
Ring Notepad, 136
The First GUI Application
Desktop and Mobile Development, 542
The First Triangle
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 497
The First Window using RingFreeGLUT
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 495
The Help Menu
Ring Notepad, 139
The Main File in the Project
Ring Notepad, 135
The Natural Library
Index 1773
10. Ring Documentation, Release 1.5.2
What is new in Ring 1.4?, 74
The Program Menu
Ring Notepad, 138
The Properties
Form Designer, 655
The Self Object
Scope Rules, 663
The Tools Menu
Ring Notepad, 139
The Trace Library and the Interactive Debugger
BreakPoint, 733
Disable BreakPoints, 733
Execute Program Line by Line, 732
Interactive Debugger, 732
Introduction, 730
Loading the Trace library, 731
Pass Error, 732
Trace All Events, 731
Trace control ļ¬ow between functions, 731
Using the Interactive Debugger, 733
The Type Hints Library
Example, 691
Introduction to the Type Hints Library, 690
Rules, 692
User Types, 691
Using Types inside Code, 692
Why Type Hints?, 691
The View Menu
Ring Notepad, 137
Threads
Graphics and Game Programming, 431
Threads Support
Code Generator, 758
Three Scopes
Scope Rules, 662
TicTacToe Game
Applications developed in little hours, 6
Time()
Date and Time, 195
TimeList()
Date and Time, 196
times()
Stdlib Functions, 299
Trace All Events
The Trace Library and the Interactive Debugger, 731
Trace control ļ¬ow between functions
The Trace Library and the Interactive Debugger, 731
Trace Library and Interactive Debugger
What is new in Ring 1.5?, 62
Transaction Example
MySQL Functions, 252
Transactions and Using Commit and Rollback
ODBC Functions, 242
Transform Substring To Another Substring
Strings, 192
Transparent Image
Graphics and Game Programming, 430
Transparent Implementation
Language Design, 30
Tree Class
Stdlib Classes, 321
Triangle Rotation
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 500
Trim()
Strings, 191
TrimAll()
Stdlib Functions, 311
TrimLeft()
Stdlib Functions, 311
TrimRight()
Stdlib Functions, 312
TrueType Fonts
Graphics and Game Programming, 427
Try/Carch/Done
Eval() and Debugging, 229
Trying to be natural
Language Design, 25
Type Hints Library
What is new in Ring 1.5?, 65
Type()
Data Type, 200
Ungetc()
Files, 218
Unsigned()
Mathematical Functions, 210
Update the Android SDK
Building RingQt Applications for Mobile, 646
Upload Files
Web Development (CGI Library), 369
URL Encode
Web Development (CGI Library), 374
Use TTF Fonts
RingLibSDL, 436
User Types
The Type Hints Library, 691
Users registration and Login
Web Development (CGI Library), 396
Using ā<ā and ā:ā operators as āfromā keyword
What is new in Ring 1.3?, 94
Using ācaseā as āonā in switch statements
Syntax Flexibility, 688
Using ādefā as āfuncā in functions/methods deļ¬nition
Syntax Flexibility, 688
Using āendā keyword after Packages/Classes/Functions
Syntax Flexibility, 689
Index 1774