openglada_glfw_0.9.0_fc25165c/src/glfw-api.ads

  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
--  part of OpenGLAda, (c) 2017 Felix Krause
--  released under the terms of the MIT license, see the file "COPYING"

with Interfaces.C.Strings;
with Interfaces.C.Pointers;
with System;

with Glfw.Input.Keys;
with Glfw.Input.Mouse;
with Glfw.Input.Joysticks;
with Glfw.Monitors;
with Glfw.Errors;
with Glfw.Enums;
with Glfw.Windows.Context;

private package Glfw.API is

   -----------------------------------------------------------------------------
   -- Types
   -----------------------------------------------------------------------------

   type Address_List is array (Positive range <>) of aliased System.Address;
   pragma Convention (C, Address_List);

   package Address_List_Pointers is new Interfaces.C.Pointers
     (Positive, System.Address, Address_List, System.Null_Address);

   package VMode_List_Pointers is new Interfaces.C.Pointers
     (Positive, Monitors.Video_Mode, Monitors.Video_Mode_List, (others => 0));

   package Axis_Position_List_Pointers is new Interfaces.C.Pointers
     (Positive, Input.Joysticks.Axis_Position, Input.Joysticks.Axis_Positions,
      0.0);

   package Joystick_Button_State_List_Pointers is new Interfaces.C.Pointers
     (Positive, Input.Joysticks.Joystick_Button_State,
      Input.Joysticks.Joystick_Button_States, Input.Joysticks.Released);

   type Unsigned_Short_List is array (Positive range <>) of aliased
     Interfaces.C.unsigned_short;

   package Unsigned_Short_List_Pointers is new Interfaces.C.Pointers
     (Positive, Interfaces.C.unsigned_short, Unsigned_Short_List, 0);

   type Raw_Gamma_Ramp is record
      Red, Green, Blue : Unsigned_Short_List_Pointers.Pointer;
      Size : Interfaces.C.unsigned;
   end record;
   pragma Convention (C, Raw_Gamma_Ramp);

   -----------------------------------------------------------------------------
   -- Callbacks
   -----------------------------------------------------------------------------

   type Error_Callback is access procedure (Code : Errors.Kind;
                                            Description : C.Strings.chars_ptr);
   type Window_Position_Callback is access procedure
     (Window : System.Address; X, Y : C.int);
   type Window_Size_Callback is access procedure
     (Window : System.Address; Width, Height : C.int);
   type Window_Close_Callback is access procedure
     (Window : System.Address);
   type Window_Refresh_Callback is access procedure
     (Window : System.Address);
   type Window_Focus_Callback is access procedure
     (Window : System.Address; Focussed : Bool);
   type Window_Iconify_Callback is access procedure
     (Window : System.Address; Iconified : Bool);
   type Framebuffer_Size_Callback is access procedure
     (Window : System.Address; Width, Height : C.int);
   type Mouse_Button_Callback is access procedure (Window : System.Address;
                                                   Button : Input.Mouse.Button;
                                                   State  : Input.Button_State;
                                                   Mods   : Input.Keys.Modifiers);
   type Cursor_Position_Callback is access procedure
     (Window : System.Address; X, Y : Input.Mouse.Coordinate);
   type Cursor_Enter_Callback is access procedure
     (Window : System.Address; Action : Input.Mouse.Enter_Action);
   type Scroll_Callback is access procedure
     (Window : System.Address; X, Y : Input.Mouse.Scroll_Offset);
   type Key_Callback is access procedure (Window   : System.Address;
                                          Key      : Input.Keys.Key;
                                          Scancode : Input.Keys.Scancode;
                                          Action   : Input.Keys.Action;
                                          Mods     : Input.Keys.Modifiers);
   type Character_Callback is access procedure
     (Window : System.Address; Unicode_Char : Interfaces.C.unsigned);
   type Monitor_Callback is access procedure
     (Monitor : System.Address; Event : Monitors.Event);

   pragma Convention (C, Error_Callback);
   pragma Convention (C, Window_Position_Callback);
   pragma Convention (C, Window_Size_Callback);
   pragma Convention (C, Window_Close_Callback);
   pragma Convention (C, Window_Refresh_Callback);
   pragma Convention (C, Window_Focus_Callback);
   pragma Convention (C, Window_Iconify_Callback);
   pragma Convention (C, Framebuffer_Size_Callback);
   pragma Convention (C, Mouse_Button_Callback);
   pragma Convention (C, Cursor_Position_Callback);
   pragma Convention (C, Cursor_Enter_Callback);
   pragma Convention (C, Scroll_Callback);
   pragma Convention (C, Key_Callback);
   pragma Convention (C, Character_Callback);
   pragma Convention (C, Monitor_Callback);

   -----------------------------------------------------------------------------
   -- Basics
   -----------------------------------------------------------------------------

   function Init return C.int;
   pragma Import (Convention => C, Entity => Init,
                  External_Name => "glfwInit");

   procedure Glfw_Terminate;
   pragma Import (Convention => C, Entity => Glfw_Terminate,
                  External_Name => "glfwTerminate");

   procedure Get_Version (Major, Minor, Revision : out C.int);
   pragma Import (Convention => C, Entity => Get_Version,
                  External_Name => "glfwGetVersion");

   function Get_Version_String return C.Strings.chars_ptr;
   pragma Import (Convention => C, Entity => Get_Version_String,
                  External_Name => "glfwGetVersionString");

   function Get_Time return C.double;
   pragma Import (Convention => C, Entity => Get_Time,
                  External_Name => "glfwGetTime");

   procedure Set_Time (Value : C.double);
   pragma Import (Convention => C, Entity => Set_Time,
                  External_Name => "glfwSetTime");

   procedure Sleep (Time : C.double);
   pragma Import (Convention => C, Entity => Sleep,
                  External_Name => "glfwSleep");

   function Extension_Supported (Name : C.char_array) return Bool;
   pragma Import (Convention => C, Entity => Extension_Supported,
                  External_Name => "glfwExtensionSupported");

   function Set_Error_Callback (CB_Fun : Error_Callback) return Error_Callback;
   pragma Import (Convention => C, Entity => Set_Error_Callback,
                  External_Name => "glfwSetErrorCallback");

   -----------------------------------------------------------------------------
   -- Monitors
   -----------------------------------------------------------------------------

   function Get_Monitors (Count : access Interfaces.C.int)
                          return Address_List_Pointers.Pointer;
   pragma Import (Convention => C, Entity => Get_Monitors,
                  External_Name => "glfwGetMonitors");

   function Get_Primary_Monitor return System.Address;
   pragma Import (Convention => C, Entity => Get_Primary_Monitor,
                  External_Name => "glfwGetPrimaryMonitor");

   procedure Get_Monitor_Pos (Monitor : System.Address;
                              XPos, YPos : out Interfaces.C.int);
   pragma Import (Convention => C, Entity => Get_Monitor_Pos,
                  External_Name => "glfwGetMonitorPos");

   procedure Get_Monitor_Physical_Size (Monitor : System.Address;
                                        Width, Height : out Interfaces.C.int);
   pragma Import (Convention => C, Entity => Get_Monitor_Physical_Size,
                  External_Name => "glfwGetMonitorPhysicalSize");

   function Get_Monitor_Name (Monitor : System.Address)
                              return Interfaces.C.Strings.chars_ptr;
   pragma Import (Convention => C, Entity => Get_Monitor_Name,
                  External_Name => "glfwGetMonitorName");

   function Set_Monitor_Callback (Monitor : System.Address;
                                  CB_Fun  : Monitor_Callback)
                                  return Monitor_Callback;
   pragma Import (Convention => C, Entity => Set_Monitor_Callback,
                  External_Name => "glfwSetMonitorCallback");

   function Get_Video_Modes (Monitor : System.Address;
                             Count : access Interfaces.C.int)
                             return VMode_List_Pointers.Pointer;
   pragma Import (Convention => C, Entity => Get_Video_Modes,
                  External_Name => "glfwGetVideoModes");

   function Get_Video_Mode (Monitor : System.Address)
                            return access constant Monitors.Video_Mode;
   pragma Import (Convention => C, Entity => Get_Video_Mode,
                  External_Name => "glfwGetVideoMode");

   procedure Set_Gamma (Monitor : System.Address; Gamma : Interfaces.C.C_float);
   pragma Import (Convention => C, Entity => Set_Gamma,
                  External_Name => "glfwSetGamma");

   function Get_Gamma_Ramp (Monitor : System.Address)
                            return access constant Raw_Gamma_Ramp;
   pragma Import (Convention => C, Entity => Get_Gamma_Ramp,
                  External_Name => "glfwGetGammaRamp");

   procedure Set_Gamma_Ramp (Monitor : System.Address;
                             Value   : access constant Raw_Gamma_Ramp);
   pragma Import (Convention => C, Entity => Set_Gamma_Ramp,
                  External_Name => "glfwSetGammaRamp");

   -----------------------------------------------------------------------------
   -- Windows
   -----------------------------------------------------------------------------

   procedure Default_Window_Hints;
   pragma Import (Convention => C, Entity => Default_Window_Hints,
                  External_Name => "glfwDefaultWindowHints");

   procedure Window_Hint (Target : Glfw.Enums.Window_Info; Info : C.int);
   procedure Window_Hint (Target : Glfw.Enums.Window_Info; Info : Bool);
   procedure Window_Hint (Target : Glfw.Enums.Window_Info;
                          Info   : Windows.Context.OpenGL_Profile_Kind);
   procedure Window_Hint (Target : Glfw.Enums.Window_Info;
                          Info   : Windows.Context.API_Kind);
   procedure Window_Hint (Target : Glfw.Enums.Window_Info;
                          Info   : Glfw.Windows.Context.Robustness_Kind);
   pragma Import (Convention => C, Entity => Window_Hint,
                  External_Name => "glfwWindowHint");

   function Create_Window (Width, Height : Interfaces.C.int;
                           Title         : Interfaces.C.char_array;
                           Monitor       : System.Address;
                           Share         : System.Address)
                           return System.Address;
   pragma Import (Convention => C, Entity => Create_Window,
                  External_Name => "glfwCreateWindow");

   procedure Destroy_Window (Window : System.Address);
   pragma Import (Convention => C, Entity => Destroy_Window,
                  External_Name => "glfwDestroyWindow");

   function Window_Should_Close (Window : System.Address)
                                 return Bool;
   pragma Import (Convention => C, Entity => Window_Should_Close,
                  External_Name => "glfwWindowShouldClose");

   procedure Set_Window_Should_Close (Window : System.Address;
                                      Value  : Bool);
   pragma Import (Convention => C, Entity => Set_Window_Should_Close,
                  External_Name => "glfwSetWindowShouldClose");

   procedure Set_Window_Title (Window : System.Address;
                               Title  : Interfaces.C.char_array);
   pragma Import (Convention => C, Entity => Set_Window_Title,
                  External_Name => "glfwSetWindowTitle");

   procedure Get_Window_Pos (Window : System.Address;
                             Xpos, Ypos : out Windows.Coordinate);
   pragma Import (Convention => C, Entity => Get_Window_Pos,
                  External_Name => "glfwGetWindowPos");

   procedure Set_Window_Pos (Window : System.Address;
                             Xpos, Ypos : Windows.Coordinate);
   pragma Import (Convention => C, Entity => Set_Window_Pos,
                  External_Name => "glfwSetWindowPos");

   procedure Get_Window_Size (Window : System.Address;
                              Width, Height : out Size);
   pragma Import (Convention => C, Entity => Get_Window_Size,
                  External_Name => "glfwGetWindowSize");

   procedure Set_Window_Size (Window : System.Address;
                              Width, Height : Size);
   pragma Import (Convention => C, Entity => Set_Window_Size,
                  External_Name => "glfwSetWindowSize");

   procedure Get_Framebuffer_Size (Window : System.Address;
                                   Width, Height : out Size);
   pragma Import (Convention => C, Entity => Get_Framebuffer_Size,
                  External_Name => "glfwGetFramebufferSize");

   procedure Iconify_Window (Window : System.Address);
   pragma Import (Convention => C, Entity => Iconify_Window,
                  External_Name => "glfwIconifyWindow");

   procedure Restore_Window (Window : System.Address);
   pragma Import (Convention => C, Entity => Restore_Window,
                  External_Name => "glfwRestoreWindow");

   procedure Show_Window (Window : System.Address);
   pragma Import (Convention => C, Entity => Show_Window,
                  External_Name => "glfwShowWindow");

   procedure Hide_Window (Window : System.Address);
   pragma Import (Convention => C, Entity => Hide_Window,
                  External_Name => "glfwHideWindow");

   function Get_Window_Monitor (Window : System.Address) return System.Address;
   pragma Import (Convention => C, Entity => Get_Window_Monitor,
                  External_Name => "glfwGetWindowMonitor");

   function Get_Window_Attrib (Window : System.Address;
                               Attrib : Enums.Window_Info) return C.int;
   function Get_Window_Attrib (Window : System.Address;
                               Attrib : Enums.Window_Info) return Bool;
   function Get_Window_Attrib (Window : System.Address;
                               Attrib : Enums.Window_Info)
                               return Windows.Context.API_Kind;
   function Get_Window_Attrib (Window : System.Address;
                               Attrib : Enums.Window_Info)
                               return Windows.Context.OpenGL_Profile_Kind;
   function Get_Window_Attrib (Window : System.Address;
                               Attrib : Enums.Window_Info)
                               return Windows.Context.Robustness_Kind;
   pragma Import (Convention => C, Entity => Get_Window_Attrib,
                  External_Name => "glfwGetWindowAttrib");

   procedure Set_Window_User_Pointer (Window  : System.Address;
                                      Pointer : System.Address);
   pragma Import (Convention => C, Entity => Set_Window_User_Pointer,
                  External_Name => "glfwSetWindowUserPointer");

   function Get_Window_User_Pointer (Window  : System.Address)
                                     return System.Address;
   pragma Import (Convention => C, Entity => Get_Window_User_Pointer,
                  External_Name => "glfwGetWindowUserPointer");

   -- The callback setters in the C header are defined as returning the
   -- previous callback pointer. This is rather low-level and not applicable
   -- in the object-oriented interface of this binding. So we define the setters
   -- as procedures, the return value will just get thrown away.

   procedure Set_Window_Pos_Callback (Window : System.Address;
                                     CB_Fun : Window_Position_Callback);
                                     --return Window_Position_Callback;
   pragma Import (Convention => C, Entity => Set_Window_Pos_Callback,
                  External_Name => "glfwSetWindowPosCallback");

   procedure Set_Window_Size_Callback (Window : System.Address;
                                      CB_Fun : Window_Size_Callback);
                                      --return Window_Size_Callback;
   pragma Import (Convention => C, Entity => Set_Window_Size_Callback,
                  External_Name => "glfwSetWindowSizeCallback");

   procedure Set_Window_Close_Callback (Window : System.Address;
                                       CB_Fun : Window_Close_Callback);
                                       --return Window_Close_Callback;
   pragma Import (Convention => C, Entity => Set_Window_Close_Callback,
                  External_Name => "glfwSetWindowCloseCallback");

   procedure Set_Window_Refresh_Callback (Window : System.Address;
                                         CB_Fun : Window_Refresh_Callback);
                                         --return Window_Refresh_Callback;
   pragma Import (Convention => C, Entity => Set_Window_Refresh_Callback,
                  External_Name => "glfwSetWindowRefreshCallback");

   procedure Set_Window_Focus_Callback (Window : System.Address;
                                       CB_Fun : Window_Focus_Callback);
                                       --return Window_Focus_Callback;
   pragma Import (Convention => C, Entity => Set_Window_Focus_Callback,
                  External_Name => "glfwSetWindowFocusCallback");

   procedure Set_Window_Iconify_Callback (Window : System.Address;
                                         CB_Fun : Window_Iconify_Callback);
                                         --return Window_Iconify_Callback;
   pragma Import (Convention => C, Entity => Set_Window_Iconify_Callback,
                  External_Name => "glfwSetWindowIconifyCallback");

   procedure Set_Framebuffer_Size_Callback (Window : System.Address;
                                           CB_Fun : Framebuffer_Size_Callback);
                                           --return Framebuffer_Size_Callback;
   pragma Import (Convention => C, Entity => Set_Framebuffer_Size_Callback,
                  External_Name => "glfwSetFramebufferSizeCallback");

   -----------------------------------------------------------------------------
   -- Input
   -----------------------------------------------------------------------------

   function Get_Input_Mode (Window : System.Address;
                            Mode : Enums.Input_Toggle) return Bool;
   function Get_Input_Mode (Window : System.Address;
                            Mode : Enums.Input_Toggle)
                            return Input.Mouse.Cursor_Mode;
   pragma Import (Convention => C, Entity => Get_Input_Mode,
                  External_Name => "glfwGetInputMode");

   procedure Set_Input_Mode (Window : System.Address;
                             Mode   : Input.Sticky_Toggle;
                             Value  : Bool);
   procedure Set_Input_Mode (Window : System.Address;
                             Mode   : Enums.Input_Toggle;
                             Value  : Input.Mouse.Cursor_Mode);
   pragma Import (Convention => C, Entity => Set_Input_Mode,
                  External_Name => "glfwSetInputMode");

   function Get_Key (Window : System.Address; Key : Input.Keys.Key)
                     return Input.Button_State;
   pragma Import (Convention => C, Entity => Get_Key,
                  External_Name => "glfwGetKey");

   function Get_Mouse_Button (Window : System.Address;
                              Button : Input.Mouse.Button)
                              return Input.Button_State;
   pragma Import (Convention => C, Entity => Get_Mouse_Button,
                  External_Name => "glfwGetMouseButton");

   procedure Get_Cursor_Pos (Window : System.Address;
                             Xpos, Ypos : out Input.Mouse.Coordinate);
   pragma Import (Convention => C, Entity => Get_Cursor_Pos,
                  External_Name => "glfwGetCursorPos");

   procedure Set_Cursor_Pos (Window : System.Address;
                             Xpos, Ypos : Input.Mouse.Coordinate);
   pragma Import (Convention => C, Entity => Set_Cursor_Pos,
                  External_Name => "glfwSetCursorPos");

   procedure Set_Key_Callback (Window : System.Address;
                               CB_Fun : Key_Callback);
                               --return Key_Callback
   pragma Import (Convention => C, Entity => Set_Key_Callback,
                  External_Name => "glfwSetKeyCallback");

   procedure Set_Char_Callback (Window : System.Address;
                                CB_Fun : Character_Callback);
                                --return Character_Callback;
   pragma Import (Convention => C, Entity => Set_Char_Callback,
                  External_Name => "glfwSetCharCallback");

   procedure Set_Mouse_Button_Callback (Window : System.Address;
                                        CB_Fun : Mouse_Button_Callback);
                                        --return Mouse_Button_Callback;
   pragma Import (Convention => C, Entity => Set_Mouse_Button_Callback,
                  External_Name => "glfwSetMouseButtonCallback");

   procedure Set_Cursor_Pos_Callback (Window : System.Address;
                                      CB_Fun : Cursor_Position_Callback);
                                      --return Cursor_Position_Callback;
   pragma Import (Convention => C, Entity => Set_Cursor_Pos_Callback,
                  External_Name => "glfwSetCursorPosCallback");

   procedure Set_Cursor_Enter_Callback (Window : System.Address;
                                        CB_Fun : Cursor_Enter_Callback);
                                        --return Cursor_Enter_Callback;
   pragma Import (Convention => C, Entity => Set_Cursor_Enter_Callback,
                  External_Name => "glfwSetCursorEnterCallback");

   procedure Set_Scroll_Callback (Window : System.Address;
                                  CB_Fun : Scroll_Callback);
                                  --return Scroll_Callback;
   pragma Import (Convention => C, Entity => Set_Scroll_Callback,
                  External_Name => "glfwSetScrollCallback");

   function Joystick_Present (Joy : Enums.Joystick_ID) return Bool;
   pragma Import (Convention => C, Entity => Joystick_Present,
                  External_Name => "glfwJoystickPresent");

   function Get_Joystick_Axes (Joy : Enums.Joystick_ID;
                               Count : access Interfaces.C.int)
                               return Axis_Position_List_Pointers.Pointer;
   pragma Import (Convention => C, Entity => Get_Joystick_Axes,
                  External_Name => "glfwGetJoystickAxes");

   function Get_Joystick_Buttons (Joy : Enums.Joystick_ID;
                                  Count : access Interfaces.C.int)
                                  return Joystick_Button_State_List_Pointers.Pointer;
   pragma Import (Convention => C, Entity => Get_Joystick_Buttons,
                  External_Name => "glfwGetJoystickButtons");

   function Get_Joystick_Name (Joy : Enums.Joystick_ID)
                               return Interfaces.C.Strings.chars_ptr;
   pragma Import (Convention => C, Entity => Get_Joystick_Name,
                  External_Name => "glfwGetJoystickName");

   procedure Poll_Events;
   pragma Import (Convention => C, Entity => Poll_Events,
                  External_Name => "glfwPollEvents");

   procedure Wait_Events;
   pragma Import (Convention => C, Entity => Wait_Events,
                  External_Name => "glfwWaitEvents");

   -----------------------------------------------------------------------------
   -- Context
   -----------------------------------------------------------------------------

   procedure Make_Context_Current (Window : System.Address);
   pragma Import (Convention => C, Entity => Make_Context_Current,
                  External_Name => "glfwMakeContextCurrent");

   function Get_Current_Context return System.Address;
   pragma Import (Convention => C, Entity => Get_Current_Context,
                  External_Name => "glfwGetCurrentContext");

   procedure Swap_Buffers (Window : System.Address);
   pragma Import (Convention => C, Entity => Swap_Buffers,
                  External_Name => "glfwSwapBuffers");

   procedure Swap_Interval (Value : Windows.Context.Swap_Interval);
   pragma Import (Convention => C, Entity => Swap_Interval,
                  External_Name => "glfwSwapInterval");

   -----------------------------------------------------------------------------
   -- Clipboard
   -----------------------------------------------------------------------------

   function Get_Clipboard_String (Window : System.Address)
                                  return Interfaces.C.Strings.chars_ptr;
   pragma Import (Convention => C, Entity => Get_Clipboard_String,
                  External_Name => "glfwGetClipboardString");

   procedure Set_Clipboard_String (Window : System.Address;
                                   Value  : Interfaces.C.char_array);
   pragma Import (Convention => C, Entity => Set_Clipboard_String,
                  External_Name => "glfwSetClipboardString");

end Glfw.API;