Download Now

    Reference Codebot.Platform.pas

    Part of the Codebot package

    Codebot.Platform defines interfaces for the platform details that scenes and applications need: bitmaps, the keyboard, the clipboard, windows, dialogs, and system colors. This unit does not depend on the LCL, SDL, or any other backend.

    The routines and services below are assigned when the unit implementing a backend is initialized: Codebot.Platform.LCL in codebot_controls or Codebot.Platform.SDL in codebot_render_sdl. Until then they hold defaults which are safe to call: bitmaps hold pixels but cannot load or save, no keys are down, the clipboard is kept in memory, and dialogs close as soon as they are shown.

    The Codebot.Platform unit declares the interfaces that scenes and applications need from the platform they run on, without depending on the LCL, SDL, or any other backend. It defines the VK_ virtual key codes, IBitmapData, IClipboard, and IWindow, as well as the dialogs IMessageDialog, IFileDialog, and IPictureDialog. Each dialog has a base class that holds its properties, which a backend can descend from.

    The routines that create these objects are assigned when the unit of a backend is initialized, which is either Codebot.Platform.LCL or Codebot.Platform.SDL. Until then, safe defaults are used. PlatformDispatch delivers the OnClose events of dialogs that were closed on another thread.

    Items 207 items

    NameKindLine
    IBitmapDatainterface173
    LoadFromFileprocedure183
    LoadFromStreamprocedure185
    SaveToFileprocedure187
    SaveToStreamprocedure189
    SetSizeprocedure181
    Heightproperty193
    Pixelsproperty195
    Widthproperty191
    IClipboardinterface201
    HasTextfunction208
    Textproperty210
    IDialoginterface258
    Executeprocedure267
    Acceptedproperty271
    Showingproperty273
    Titleproperty269
    IFileDialoginterface317
    DefaultExtproperty349
    FileNameproperty339
    Filesproperty341
    Filterproperty343
    FilterIndexproperty345
    InitialDirproperty347
    Kindproperty337
    MultiSelectproperty351
    IMessageDialoginterface284
    ButtonIndexproperty302
    Buttonsproperty300
    Kindproperty298
    Messageproperty296
    IPictureDialoginterface358
    LoadBitmapfunction361
    IWindowinterface221
    Closeprocedure231
    Fullscreenproperty235
    Scaleproperty237
    Titleproperty233
    NewBitmapDatavariable475
    NewFileDialogvariable479
    NewMessageDialogvariable477
    NewPictureDialogvariable481
    PictureFilterconstant464
    PlatformClipboardvariable483
    PlatformDispatchprocedure469
    SystemColorToRGBvariable486
    TCustomDialogclass370
    Closeprocedure382
    Executeprocedure391
    Showprocedure380
    TCustomFileDialogclass418
    FDefaultExtfield426
    FFileNamefield421
    FFilesfield422
    FFilterfield423
    FFilterIndexfield424
    FInitialDirfield425
    FKindfield420
    FMultiSelectfield427
    CloseFilesprocedure429
    Createconstructor432
    TCustomMessageDialogclass396
    FButtonIndexfield401
    FButtonsfield400
    FKindfield399
    FMessagefield398
    CloseButtonprocedure403
    TCustomPictureDialogclass454
    Createconstructor457
    LoadBitmapfunction459
    TDialogCloseEventprocedural256
    TFileDialogKindenum315
    fdOpenenum value315
    fdSaveenum value315
    TMessageKindenum282
    mkInformationenum value282
    mkWarningenum value282
    mkErrorenum value282
    VK_0constant77
    VK_1constant78
    VK_2constant79
    VK_3constant80
    VK_4constant81
    VK_5constant82
    VK_6constant83
    VK_7constant84
    VK_8constant85
    VK_9constant86
    VK_Aconstant87
    VK_ACCEPTconstant59
    VK_ADDconstant128
    VK_APPSconstant115
    VK_Bconstant88
    VK_BACKconstant41
    VK_Cconstant89
    VK_CANCELconstant37
    VK_CAPITALconstant49
    VK_CLEARconstant43
    VK_CONTROLconstant46
    VK_CONVERTconstant57
    VK_Dconstant90
    VK_DECIMALconstant131
    VK_DELETEconstant75
    VK_DIVIDEconstant132
    VK_DOWNconstant69
    VK_Econstant91
    VK_ENDconstant64
    VK_ESCAPEconstant56
    VK_EXECUTEconstant72
    VK_Fconstant92
    VK_F1constant133
    VK_F10constant142
    VK_F11constant143
    VK_F12constant144
    VK_F2constant134
    VK_F3constant135
    VK_F4constant136
    VK_F5constant137
    VK_F6constant138
    VK_F7constant139
    VK_F8constant140
    VK_F9constant141
    VK_FINALconstant53
    VK_Gconstant93
    VK_Hconstant94
    VK_HANGULconstant51
    VK_HANJAconstant54
    VK_HELPconstant76
    VK_HOMEconstant65
    VK_Iconstant95
    VK_INSERTconstant74
    VK_Jconstant96
    VK_JUNJAconstant52
    VK_Kconstant97
    VK_KANAconstant50
    VK_KANJIconstant55
    VK_Lconstant98
    VK_LBUTTONconstant35
    VK_LCONTROLconstant149
    VK_LEFTconstant66
    VK_LMENUconstant151
    VK_LSHIFTconstant147
    VK_LWINconstant113
    VK_Mconstant99
    VK_MBUTTONconstant38
    VK_MENUconstant47
    VK_MODECHANGEconstant60
    VK_MULTIPLYconstant127
    VK_Nconstant100
    VK_NEXTconstant63
    VK_NONCONVERTconstant58
    VK_NUMLOCKconstant145
    VK_NUMPAD0constant117
    VK_NUMPAD1constant118
    VK_NUMPAD2constant119
    VK_NUMPAD3constant120
    VK_NUMPAD4constant121
    VK_NUMPAD5constant122
    VK_NUMPAD6constant123
    VK_NUMPAD7constant124
    VK_NUMPAD8constant125
    VK_NUMPAD9constant126
    VK_Oconstant101
    VK_OEM_1constant153
    VK_OEM_2constant158
    VK_OEM_3constant159
    VK_OEM_4constant160
    VK_OEM_5constant161
    VK_OEM_6constant162
    VK_OEM_7constant163
    VK_OEM_COMMAconstant155
    VK_OEM_MINUSconstant156
    VK_OEM_PERIODconstant157
    VK_OEM_PLUSconstant154
    VK_Pconstant102
    VK_PAUSEconstant48
    VK_PRINTconstant71
    VK_PRIORconstant62
    VK_Qconstant103
    VK_Rconstant104
    VK_RBUTTONconstant36
    VK_RCONTROLconstant150
    VK_RETURNconstant44
    VK_RIGHTconstant68
    VK_RMENUconstant152
    VK_RSHIFTconstant148
    VK_RWINconstant114
    VK_Sconstant105
    VK_SCROLLconstant146
    VK_SELECTconstant70
    VK_SEPARATORconstant129
    VK_SHIFTconstant45
    VK_SLEEPconstant116
    VK_SNAPSHOTconstant73
    VK_SPACEconstant61
    VK_SUBTRACTconstant130
    VK_Tconstant106
    VK_TABconstant42
    VK_Uconstant107
    VK_UPconstant67
    VK_Vconstant108
    VK_Wconstant109
    VK_Xconstant110
    VK_XBUTTON1constant39
    VK_XBUTTON2constant40
    VK_Yconstant111
    VK_Zconstant112