@girs/cogl-11 11.0.0-3.2.6 → 11.0.0-3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cogl-11.d.cts +31 -31
- package/cogl-11.d.ts +31 -31
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Cogl-11, generated from library version 11.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Cogl-11, generated from library version 11.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/cogl-11.d.cts
CHANGED
|
@@ -1404,7 +1404,7 @@ export function pixel_format_get_n_planes(format: PixelFormat): number
|
|
|
1404
1404
|
* @param format a #CoglPixelFormat
|
|
1405
1405
|
* @returns A string representation of @format.
|
|
1406
1406
|
*/
|
|
1407
|
-
export function pixel_format_to_string(format: PixelFormat): string
|
|
1407
|
+
export function pixel_format_to_string(format: PixelFormat): string
|
|
1408
1408
|
/**
|
|
1409
1409
|
* Attaches a shader to a program object. A program can have multiple
|
|
1410
1410
|
* vertex or fragment shaders but only one of them may provide a
|
|
@@ -1422,7 +1422,7 @@ export function program_attach_shader(program_handle: Handle, shader_handle: Han
|
|
|
1422
1422
|
* @param uniform_name the name of a uniform.
|
|
1423
1423
|
* @returns the offset of a uniform in a specified program.
|
|
1424
1424
|
*/
|
|
1425
|
-
export function program_get_uniform_location(handle: Handle, uniform_name: string
|
|
1425
|
+
export function program_get_uniform_location(handle: Handle, uniform_name: string): number
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Links a program making it ready for use. Note that calling this
|
|
1428
1428
|
* function is optional. If it is not called the program will
|
|
@@ -1476,8 +1476,8 @@ export function program_set_uniform_int(program: Handle, uniform_location: numbe
|
|
|
1476
1476
|
export function program_set_uniform_matrix(program: Handle, uniform_location: number, dimensions: number, transpose: boolean, value: number[]): void
|
|
1477
1477
|
export function scanout_error_quark(): GLib.Quark
|
|
1478
1478
|
export function set_tracing_disabled_on_thread(main_context: GLib.MainContext): void
|
|
1479
|
-
export function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string
|
|
1480
|
-
export function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string
|
|
1479
|
+
export function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string, filename: string): void
|
|
1480
|
+
export function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string, fd: number): void
|
|
1481
1481
|
/**
|
|
1482
1482
|
* Retrieves the type of a shader #CoglHandle
|
|
1483
1483
|
* @param handle #CoglHandle for a shader.
|
|
@@ -1494,9 +1494,9 @@ export function shader_get_type(handle: Handle): ShaderType
|
|
|
1494
1494
|
* @param shader #CoglHandle for a shader.
|
|
1495
1495
|
* @param source Shader source.
|
|
1496
1496
|
*/
|
|
1497
|
-
export function shader_source(shader: Handle, source: string
|
|
1497
|
+
export function shader_source(shader: Handle, source: string): void
|
|
1498
1498
|
export function texture_error_quark(): number
|
|
1499
|
-
export function trace_describe(head: TraceHead, description: string
|
|
1499
|
+
export function trace_describe(head: TraceHead, description: string): void
|
|
1500
1500
|
export function trace_end(head: TraceHead): void
|
|
1501
1501
|
/**
|
|
1502
1502
|
* A callback function to use for cogl_debug_object_foreach_type().
|
|
@@ -1612,7 +1612,7 @@ export interface Texture extends Object {
|
|
|
1612
1612
|
* @param key name of the key for that association
|
|
1613
1613
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1614
1614
|
*/
|
|
1615
|
-
get_data(key: string
|
|
1615
|
+
get_data(key: string): any | null
|
|
1616
1616
|
/**
|
|
1617
1617
|
* Queries the GL handles for a GPU side texture through its #CoglTexture.
|
|
1618
1618
|
*
|
|
@@ -1742,7 +1742,7 @@ export interface Texture extends Object {
|
|
|
1742
1742
|
* @param key name of the key
|
|
1743
1743
|
* @param data data to associate with that key
|
|
1744
1744
|
*/
|
|
1745
|
-
set_data(key: string
|
|
1745
|
+
set_data(key: string, data: any | null): void
|
|
1746
1746
|
/**
|
|
1747
1747
|
* Affects the internal storage format for this texture by specifying
|
|
1748
1748
|
* whether red, green and blue color components should be stored as
|
|
@@ -1869,7 +1869,7 @@ export class Bitmap extends Object {
|
|
|
1869
1869
|
* @param filename the file to load.
|
|
1870
1870
|
* @returns a #CoglBitmap to the new loaded image data, or %NULL if loading the image failed.
|
|
1871
1871
|
*/
|
|
1872
|
-
static new_from_file(filename: string
|
|
1872
|
+
static new_from_file(filename: string): Bitmap
|
|
1873
1873
|
_init(config?: Bitmap.ConstructorProperties): void
|
|
1874
1874
|
static error_quark(): number
|
|
1875
1875
|
/**
|
|
@@ -1878,7 +1878,7 @@ export class Bitmap extends Object {
|
|
|
1878
1878
|
* @param filename the file to check
|
|
1879
1879
|
* @returns %TRUE if the image was successfully parsed
|
|
1880
1880
|
*/
|
|
1881
|
-
static get_size_from_file(filename: string
|
|
1881
|
+
static get_size_from_file(filename: string): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
|
|
1882
1882
|
}
|
|
1883
1883
|
|
|
1884
1884
|
export module Context {
|
|
@@ -3457,7 +3457,7 @@ export interface Pipeline {
|
|
|
3457
3457
|
* @param uniform_name The name of a uniform
|
|
3458
3458
|
* @returns A integer representing the location of the given uniform.
|
|
3459
3459
|
*/
|
|
3460
|
-
get_uniform_location(uniform_name: string
|
|
3460
|
+
get_uniform_location(uniform_name: string): number
|
|
3461
3461
|
/**
|
|
3462
3462
|
* Queries what user program has been associated with the given
|
|
3463
3463
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -3550,7 +3550,7 @@ export interface Pipeline {
|
|
|
3550
3550
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
3551
3551
|
* @returns %TRUE if the blend string was successfully parsed, and the described blending is supported by the underlying driver/hardware. If there was an error, %FALSE is returned and @error is set accordingly (if present).
|
|
3552
3552
|
*/
|
|
3553
|
-
set_blend(blend_string: string
|
|
3553
|
+
set_blend(blend_string: string): boolean
|
|
3554
3554
|
/**
|
|
3555
3555
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
3556
3556
|
* blending will depend on the constant set with this function.
|
|
@@ -3701,7 +3701,7 @@ export interface Pipeline {
|
|
|
3701
3701
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
3702
3702
|
* @returns %TRUE if the blend string was successfully parsed, and the described texture combining is supported by the underlying driver and or hardware. On failure, %FALSE is returned and @error is set
|
|
3703
3703
|
*/
|
|
3704
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
3704
|
+
set_layer_combine(layer_index: number, blend_string: string): boolean
|
|
3705
3705
|
/**
|
|
3706
3706
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
3707
3707
|
* description then you can use this function to define its value.
|
|
@@ -3990,11 +3990,11 @@ export interface Snippet {
|
|
|
3990
3990
|
|
|
3991
3991
|
// Owm methods of Cogl-11.Cogl.Snippet
|
|
3992
3992
|
|
|
3993
|
-
get_declarations(): string
|
|
3993
|
+
get_declarations(): string
|
|
3994
3994
|
get_hook(): SnippetHook
|
|
3995
|
-
get_post(): string
|
|
3996
|
-
get_pre(): string
|
|
3997
|
-
get_replace(): string
|
|
3995
|
+
get_post(): string
|
|
3996
|
+
get_pre(): string
|
|
3997
|
+
get_replace(): string
|
|
3998
3998
|
/**
|
|
3999
3999
|
* Sets a source string that will be inserted in the global scope of
|
|
4000
4000
|
* the generated shader when this snippet is used on a pipeline. This
|
|
@@ -4006,7 +4006,7 @@ export interface Snippet {
|
|
|
4006
4006
|
* immutable.
|
|
4007
4007
|
* @param declarations The new source string for the declarations section of this snippet.
|
|
4008
4008
|
*/
|
|
4009
|
-
set_declarations(declarations: string
|
|
4009
|
+
set_declarations(declarations: string): void
|
|
4010
4010
|
/**
|
|
4011
4011
|
* Sets a source string that will be inserted after the hook point in
|
|
4012
4012
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4018,7 +4018,7 @@ export interface Snippet {
|
|
|
4018
4018
|
* immutable.
|
|
4019
4019
|
* @param post The new source string for the post section of this snippet.
|
|
4020
4020
|
*/
|
|
4021
|
-
set_post(post: string
|
|
4021
|
+
set_post(post: string): void
|
|
4022
4022
|
/**
|
|
4023
4023
|
* Sets a source string that will be inserted before the hook point in
|
|
4024
4024
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4030,7 +4030,7 @@ export interface Snippet {
|
|
|
4030
4030
|
* immutable.
|
|
4031
4031
|
* @param pre The new source string for the pre section of this snippet.
|
|
4032
4032
|
*/
|
|
4033
|
-
set_pre(pre: string
|
|
4033
|
+
set_pre(pre: string): void
|
|
4034
4034
|
/**
|
|
4035
4035
|
* Sets a source string that will be used instead of any generated
|
|
4036
4036
|
* source code or any previous snippets for this hook point. Please
|
|
@@ -4042,7 +4042,7 @@ export interface Snippet {
|
|
|
4042
4042
|
* immutable.
|
|
4043
4043
|
* @param replace The new source string for the replace section of this snippet.
|
|
4044
4044
|
*/
|
|
4045
|
-
set_replace(replace: string
|
|
4045
|
+
set_replace(replace: string): void
|
|
4046
4046
|
|
|
4047
4047
|
// Class property signals of Cogl-11.Cogl.Snippet
|
|
4048
4048
|
|
|
@@ -4122,13 +4122,13 @@ export interface Texture2D extends Texture {
|
|
|
4122
4122
|
* @param key name of the key for that association
|
|
4123
4123
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4124
4124
|
*/
|
|
4125
|
-
get_data(key: string
|
|
4125
|
+
get_data(key: string): any | null
|
|
4126
4126
|
/**
|
|
4127
4127
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4128
4128
|
* @param key name of the key for that association
|
|
4129
4129
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4130
4130
|
*/
|
|
4131
|
-
get_data(key: string
|
|
4131
|
+
get_data(key: string): any | null
|
|
4132
4132
|
/**
|
|
4133
4133
|
* `texture` a #CoglTexture.
|
|
4134
4134
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4196,7 +4196,7 @@ export interface Texture2D extends Texture {
|
|
|
4196
4196
|
* @param key name of the key
|
|
4197
4197
|
* @param data data to associate with that key
|
|
4198
4198
|
*/
|
|
4199
|
-
set_data(key: string
|
|
4199
|
+
set_data(key: string, data: any | null): void
|
|
4200
4200
|
/**
|
|
4201
4201
|
* Each object carries around a table of associations from
|
|
4202
4202
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4211,7 +4211,7 @@ export interface Texture2D extends Texture {
|
|
|
4211
4211
|
* @param key name of the key
|
|
4212
4212
|
* @param data data to associate with that key
|
|
4213
4213
|
*/
|
|
4214
|
-
set_data(key: string
|
|
4214
|
+
set_data(key: string, data: any | null): void
|
|
4215
4215
|
|
|
4216
4216
|
// Class property signals of Cogl-11.Cogl.Texture2D
|
|
4217
4217
|
|
|
@@ -4287,13 +4287,13 @@ export interface Texture2DSliced extends Texture {
|
|
|
4287
4287
|
* @param key name of the key for that association
|
|
4288
4288
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4289
4289
|
*/
|
|
4290
|
-
get_data(key: string
|
|
4290
|
+
get_data(key: string): any | null
|
|
4291
4291
|
/**
|
|
4292
4292
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4293
4293
|
* @param key name of the key for that association
|
|
4294
4294
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4295
4295
|
*/
|
|
4296
|
-
get_data(key: string
|
|
4296
|
+
get_data(key: string): any | null
|
|
4297
4297
|
/**
|
|
4298
4298
|
* `texture` a #CoglTexture.
|
|
4299
4299
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4361,7 +4361,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
4361
4361
|
* @param key name of the key
|
|
4362
4362
|
* @param data data to associate with that key
|
|
4363
4363
|
*/
|
|
4364
|
-
set_data(key: string
|
|
4364
|
+
set_data(key: string, data: any | null): void
|
|
4365
4365
|
/**
|
|
4366
4366
|
* Each object carries around a table of associations from
|
|
4367
4367
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4376,7 +4376,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
4376
4376
|
* @param key name of the key
|
|
4377
4377
|
* @param data data to associate with that key
|
|
4378
4378
|
*/
|
|
4379
|
-
set_data(key: string
|
|
4379
|
+
set_data(key: string, data: any | null): void
|
|
4380
4380
|
|
|
4381
4381
|
// Class property signals of Cogl-11.Cogl.Texture2DSliced
|
|
4382
4382
|
|
|
@@ -4674,7 +4674,7 @@ export interface DebugObjectTypeInfo {
|
|
|
4674
4674
|
* A human readable name for the type.
|
|
4675
4675
|
* @field
|
|
4676
4676
|
*/
|
|
4677
|
-
name: string
|
|
4677
|
+
name: string
|
|
4678
4678
|
/**
|
|
4679
4679
|
* The number of objects of this type that are
|
|
4680
4680
|
* currently in use
|
|
@@ -4928,7 +4928,7 @@ export interface TraceHead {
|
|
|
4928
4928
|
// Own fields of Cogl-11.Cogl.TraceHead
|
|
4929
4929
|
|
|
4930
4930
|
begin_time: number
|
|
4931
|
-
name: string
|
|
4931
|
+
name: string
|
|
4932
4932
|
description: string | null
|
|
4933
4933
|
}
|
|
4934
4934
|
|
package/cogl-11.d.ts
CHANGED
|
@@ -1406,7 +1406,7 @@ function pixel_format_get_n_planes(format: PixelFormat): number
|
|
|
1406
1406
|
* @param format a #CoglPixelFormat
|
|
1407
1407
|
* @returns A string representation of @format.
|
|
1408
1408
|
*/
|
|
1409
|
-
function pixel_format_to_string(format: PixelFormat): string
|
|
1409
|
+
function pixel_format_to_string(format: PixelFormat): string
|
|
1410
1410
|
/**
|
|
1411
1411
|
* Attaches a shader to a program object. A program can have multiple
|
|
1412
1412
|
* vertex or fragment shaders but only one of them may provide a
|
|
@@ -1424,7 +1424,7 @@ function program_attach_shader(program_handle: Handle, shader_handle: Handle): v
|
|
|
1424
1424
|
* @param uniform_name the name of a uniform.
|
|
1425
1425
|
* @returns the offset of a uniform in a specified program.
|
|
1426
1426
|
*/
|
|
1427
|
-
function program_get_uniform_location(handle: Handle, uniform_name: string
|
|
1427
|
+
function program_get_uniform_location(handle: Handle, uniform_name: string): number
|
|
1428
1428
|
/**
|
|
1429
1429
|
* Links a program making it ready for use. Note that calling this
|
|
1430
1430
|
* function is optional. If it is not called the program will
|
|
@@ -1478,8 +1478,8 @@ function program_set_uniform_int(program: Handle, uniform_location: number, n_co
|
|
|
1478
1478
|
function program_set_uniform_matrix(program: Handle, uniform_location: number, dimensions: number, transpose: boolean, value: number[]): void
|
|
1479
1479
|
function scanout_error_quark(): GLib.Quark
|
|
1480
1480
|
function set_tracing_disabled_on_thread(main_context: GLib.MainContext): void
|
|
1481
|
-
function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string
|
|
1482
|
-
function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string
|
|
1481
|
+
function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string, filename: string): void
|
|
1482
|
+
function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string, fd: number): void
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Retrieves the type of a shader #CoglHandle
|
|
1485
1485
|
* @param handle #CoglHandle for a shader.
|
|
@@ -1496,9 +1496,9 @@ function shader_get_type(handle: Handle): ShaderType
|
|
|
1496
1496
|
* @param shader #CoglHandle for a shader.
|
|
1497
1497
|
* @param source Shader source.
|
|
1498
1498
|
*/
|
|
1499
|
-
function shader_source(shader: Handle, source: string
|
|
1499
|
+
function shader_source(shader: Handle, source: string): void
|
|
1500
1500
|
function texture_error_quark(): number
|
|
1501
|
-
function trace_describe(head: TraceHead, description: string
|
|
1501
|
+
function trace_describe(head: TraceHead, description: string): void
|
|
1502
1502
|
function trace_end(head: TraceHead): void
|
|
1503
1503
|
/**
|
|
1504
1504
|
* A callback function to use for cogl_debug_object_foreach_type().
|
|
@@ -1614,7 +1614,7 @@ interface Texture extends Object {
|
|
|
1614
1614
|
* @param key name of the key for that association
|
|
1615
1615
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1616
1616
|
*/
|
|
1617
|
-
get_data(key: string
|
|
1617
|
+
get_data(key: string): any | null
|
|
1618
1618
|
/**
|
|
1619
1619
|
* Queries the GL handles for a GPU side texture through its #CoglTexture.
|
|
1620
1620
|
*
|
|
@@ -1744,7 +1744,7 @@ interface Texture extends Object {
|
|
|
1744
1744
|
* @param key name of the key
|
|
1745
1745
|
* @param data data to associate with that key
|
|
1746
1746
|
*/
|
|
1747
|
-
set_data(key: string
|
|
1747
|
+
set_data(key: string, data: any | null): void
|
|
1748
1748
|
/**
|
|
1749
1749
|
* Affects the internal storage format for this texture by specifying
|
|
1750
1750
|
* whether red, green and blue color components should be stored as
|
|
@@ -1871,7 +1871,7 @@ class Bitmap extends Object {
|
|
|
1871
1871
|
* @param filename the file to load.
|
|
1872
1872
|
* @returns a #CoglBitmap to the new loaded image data, or %NULL if loading the image failed.
|
|
1873
1873
|
*/
|
|
1874
|
-
static new_from_file(filename: string
|
|
1874
|
+
static new_from_file(filename: string): Bitmap
|
|
1875
1875
|
_init(config?: Bitmap.ConstructorProperties): void
|
|
1876
1876
|
static error_quark(): number
|
|
1877
1877
|
/**
|
|
@@ -1880,7 +1880,7 @@ class Bitmap extends Object {
|
|
|
1880
1880
|
* @param filename the file to check
|
|
1881
1881
|
* @returns %TRUE if the image was successfully parsed
|
|
1882
1882
|
*/
|
|
1883
|
-
static get_size_from_file(filename: string
|
|
1883
|
+
static get_size_from_file(filename: string): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
|
|
1884
1884
|
}
|
|
1885
1885
|
|
|
1886
1886
|
module Context {
|
|
@@ -3459,7 +3459,7 @@ interface Pipeline {
|
|
|
3459
3459
|
* @param uniform_name The name of a uniform
|
|
3460
3460
|
* @returns A integer representing the location of the given uniform.
|
|
3461
3461
|
*/
|
|
3462
|
-
get_uniform_location(uniform_name: string
|
|
3462
|
+
get_uniform_location(uniform_name: string): number
|
|
3463
3463
|
/**
|
|
3464
3464
|
* Queries what user program has been associated with the given
|
|
3465
3465
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -3552,7 +3552,7 @@ interface Pipeline {
|
|
|
3552
3552
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
3553
3553
|
* @returns %TRUE if the blend string was successfully parsed, and the described blending is supported by the underlying driver/hardware. If there was an error, %FALSE is returned and @error is set accordingly (if present).
|
|
3554
3554
|
*/
|
|
3555
|
-
set_blend(blend_string: string
|
|
3555
|
+
set_blend(blend_string: string): boolean
|
|
3556
3556
|
/**
|
|
3557
3557
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
3558
3558
|
* blending will depend on the constant set with this function.
|
|
@@ -3703,7 +3703,7 @@ interface Pipeline {
|
|
|
3703
3703
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
3704
3704
|
* @returns %TRUE if the blend string was successfully parsed, and the described texture combining is supported by the underlying driver and or hardware. On failure, %FALSE is returned and @error is set
|
|
3705
3705
|
*/
|
|
3706
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
3706
|
+
set_layer_combine(layer_index: number, blend_string: string): boolean
|
|
3707
3707
|
/**
|
|
3708
3708
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
3709
3709
|
* description then you can use this function to define its value.
|
|
@@ -3992,11 +3992,11 @@ interface Snippet {
|
|
|
3992
3992
|
|
|
3993
3993
|
// Owm methods of Cogl-11.Cogl.Snippet
|
|
3994
3994
|
|
|
3995
|
-
get_declarations(): string
|
|
3995
|
+
get_declarations(): string
|
|
3996
3996
|
get_hook(): SnippetHook
|
|
3997
|
-
get_post(): string
|
|
3998
|
-
get_pre(): string
|
|
3999
|
-
get_replace(): string
|
|
3997
|
+
get_post(): string
|
|
3998
|
+
get_pre(): string
|
|
3999
|
+
get_replace(): string
|
|
4000
4000
|
/**
|
|
4001
4001
|
* Sets a source string that will be inserted in the global scope of
|
|
4002
4002
|
* the generated shader when this snippet is used on a pipeline. This
|
|
@@ -4008,7 +4008,7 @@ interface Snippet {
|
|
|
4008
4008
|
* immutable.
|
|
4009
4009
|
* @param declarations The new source string for the declarations section of this snippet.
|
|
4010
4010
|
*/
|
|
4011
|
-
set_declarations(declarations: string
|
|
4011
|
+
set_declarations(declarations: string): void
|
|
4012
4012
|
/**
|
|
4013
4013
|
* Sets a source string that will be inserted after the hook point in
|
|
4014
4014
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4020,7 +4020,7 @@ interface Snippet {
|
|
|
4020
4020
|
* immutable.
|
|
4021
4021
|
* @param post The new source string for the post section of this snippet.
|
|
4022
4022
|
*/
|
|
4023
|
-
set_post(post: string
|
|
4023
|
+
set_post(post: string): void
|
|
4024
4024
|
/**
|
|
4025
4025
|
* Sets a source string that will be inserted before the hook point in
|
|
4026
4026
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4032,7 +4032,7 @@ interface Snippet {
|
|
|
4032
4032
|
* immutable.
|
|
4033
4033
|
* @param pre The new source string for the pre section of this snippet.
|
|
4034
4034
|
*/
|
|
4035
|
-
set_pre(pre: string
|
|
4035
|
+
set_pre(pre: string): void
|
|
4036
4036
|
/**
|
|
4037
4037
|
* Sets a source string that will be used instead of any generated
|
|
4038
4038
|
* source code or any previous snippets for this hook point. Please
|
|
@@ -4044,7 +4044,7 @@ interface Snippet {
|
|
|
4044
4044
|
* immutable.
|
|
4045
4045
|
* @param replace The new source string for the replace section of this snippet.
|
|
4046
4046
|
*/
|
|
4047
|
-
set_replace(replace: string
|
|
4047
|
+
set_replace(replace: string): void
|
|
4048
4048
|
|
|
4049
4049
|
// Class property signals of Cogl-11.Cogl.Snippet
|
|
4050
4050
|
|
|
@@ -4124,13 +4124,13 @@ interface Texture2D extends Texture {
|
|
|
4124
4124
|
* @param key name of the key for that association
|
|
4125
4125
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4126
4126
|
*/
|
|
4127
|
-
get_data(key: string
|
|
4127
|
+
get_data(key: string): any | null
|
|
4128
4128
|
/**
|
|
4129
4129
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4130
4130
|
* @param key name of the key for that association
|
|
4131
4131
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4132
4132
|
*/
|
|
4133
|
-
get_data(key: string
|
|
4133
|
+
get_data(key: string): any | null
|
|
4134
4134
|
/**
|
|
4135
4135
|
* `texture` a #CoglTexture.
|
|
4136
4136
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4198,7 +4198,7 @@ interface Texture2D extends Texture {
|
|
|
4198
4198
|
* @param key name of the key
|
|
4199
4199
|
* @param data data to associate with that key
|
|
4200
4200
|
*/
|
|
4201
|
-
set_data(key: string
|
|
4201
|
+
set_data(key: string, data: any | null): void
|
|
4202
4202
|
/**
|
|
4203
4203
|
* Each object carries around a table of associations from
|
|
4204
4204
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4213,7 +4213,7 @@ interface Texture2D extends Texture {
|
|
|
4213
4213
|
* @param key name of the key
|
|
4214
4214
|
* @param data data to associate with that key
|
|
4215
4215
|
*/
|
|
4216
|
-
set_data(key: string
|
|
4216
|
+
set_data(key: string, data: any | null): void
|
|
4217
4217
|
|
|
4218
4218
|
// Class property signals of Cogl-11.Cogl.Texture2D
|
|
4219
4219
|
|
|
@@ -4289,13 +4289,13 @@ interface Texture2DSliced extends Texture {
|
|
|
4289
4289
|
* @param key name of the key for that association
|
|
4290
4290
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4291
4291
|
*/
|
|
4292
|
-
get_data(key: string
|
|
4292
|
+
get_data(key: string): any | null
|
|
4293
4293
|
/**
|
|
4294
4294
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4295
4295
|
* @param key name of the key for that association
|
|
4296
4296
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4297
4297
|
*/
|
|
4298
|
-
get_data(key: string
|
|
4298
|
+
get_data(key: string): any | null
|
|
4299
4299
|
/**
|
|
4300
4300
|
* `texture` a #CoglTexture.
|
|
4301
4301
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4363,7 +4363,7 @@ interface Texture2DSliced extends Texture {
|
|
|
4363
4363
|
* @param key name of the key
|
|
4364
4364
|
* @param data data to associate with that key
|
|
4365
4365
|
*/
|
|
4366
|
-
set_data(key: string
|
|
4366
|
+
set_data(key: string, data: any | null): void
|
|
4367
4367
|
/**
|
|
4368
4368
|
* Each object carries around a table of associations from
|
|
4369
4369
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4378,7 +4378,7 @@ interface Texture2DSliced extends Texture {
|
|
|
4378
4378
|
* @param key name of the key
|
|
4379
4379
|
* @param data data to associate with that key
|
|
4380
4380
|
*/
|
|
4381
|
-
set_data(key: string
|
|
4381
|
+
set_data(key: string, data: any | null): void
|
|
4382
4382
|
|
|
4383
4383
|
// Class property signals of Cogl-11.Cogl.Texture2DSliced
|
|
4384
4384
|
|
|
@@ -4676,7 +4676,7 @@ interface DebugObjectTypeInfo {
|
|
|
4676
4676
|
* A human readable name for the type.
|
|
4677
4677
|
* @field
|
|
4678
4678
|
*/
|
|
4679
|
-
name: string
|
|
4679
|
+
name: string
|
|
4680
4680
|
/**
|
|
4681
4681
|
* The number of objects of this type that are
|
|
4682
4682
|
* currently in use
|
|
@@ -4930,7 +4930,7 @@ interface TraceHead {
|
|
|
4930
4930
|
// Own fields of Cogl-11.Cogl.TraceHead
|
|
4931
4931
|
|
|
4932
4932
|
begin_time: number
|
|
4933
|
-
name: string
|
|
4933
|
+
name: string
|
|
4934
4934
|
description: string | null
|
|
4935
4935
|
}
|
|
4936
4936
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/cogl-11",
|
|
3
|
-
"version": "11.0.0-3.2.
|
|
3
|
+
"version": "11.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Cogl-11, generated from library version 11.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "cogl-11.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cogl-11.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/cairo-1.0": "^1.0.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/gl-1.0": "^1.0.0-3.2.
|
|
31
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
33
|
-
"@girs/graphene-1.0": "^1.0.0-3.2.
|
|
28
|
+
"@girs/cairo-1.0": "^1.0.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/gl-1.0": "^1.0.0-3.2.7",
|
|
31
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
32
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7",
|
|
33
|
+
"@girs/graphene-1.0": "^1.0.0-3.2.7"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"typescript": "*"
|