@girs/cogl-13 13.0.0-3.2.6 → 13.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-13.d.cts +31 -31
- package/cogl-13.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-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Cogl-13, generated from library version 13.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-13.d.cts
CHANGED
|
@@ -1443,7 +1443,7 @@ export function pixel_format_get_n_planes(format: PixelFormat): number
|
|
|
1443
1443
|
* @param format a #CoglPixelFormat
|
|
1444
1444
|
* @returns A string representation of @format.
|
|
1445
1445
|
*/
|
|
1446
|
-
export function pixel_format_to_string(format: PixelFormat): string
|
|
1446
|
+
export function pixel_format_to_string(format: PixelFormat): string
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Attaches a shader to a program object. A program can have multiple
|
|
1449
1449
|
* vertex or fragment shaders but only one of them may provide a
|
|
@@ -1461,7 +1461,7 @@ export function program_attach_shader(program_handle: Handle, shader_handle: Han
|
|
|
1461
1461
|
* @param uniform_name the name of a uniform.
|
|
1462
1462
|
* @returns the offset of a uniform in a specified program.
|
|
1463
1463
|
*/
|
|
1464
|
-
export function program_get_uniform_location(handle: Handle, uniform_name: string
|
|
1464
|
+
export function program_get_uniform_location(handle: Handle, uniform_name: string): number
|
|
1465
1465
|
/**
|
|
1466
1466
|
* Links a program making it ready for use. Note that calling this
|
|
1467
1467
|
* function is optional. If it is not called the program will
|
|
@@ -1515,7 +1515,7 @@ export function program_set_uniform_int(program: Handle, uniform_location: numbe
|
|
|
1515
1515
|
export function program_set_uniform_matrix(program: Handle, uniform_location: number, dimensions: number, transpose: boolean, value: number[]): void
|
|
1516
1516
|
export function scanout_error_quark(): GLib.Quark
|
|
1517
1517
|
export function set_tracing_disabled_on_thread(main_context: GLib.MainContext): void
|
|
1518
|
-
export function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string
|
|
1518
|
+
export function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string): void
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Retrieves the type of a shader #CoglHandle
|
|
1521
1521
|
* @param handle #CoglHandle for a shader.
|
|
@@ -1532,12 +1532,12 @@ export function shader_get_type(handle: Handle): ShaderType
|
|
|
1532
1532
|
* @param shader #CoglHandle for a shader.
|
|
1533
1533
|
* @param source Shader source.
|
|
1534
1534
|
*/
|
|
1535
|
-
export function shader_source(shader: Handle, source: string
|
|
1535
|
+
export function shader_source(shader: Handle, source: string): void
|
|
1536
1536
|
export function start_tracing_with_fd(fd: number): boolean
|
|
1537
|
-
export function start_tracing_with_path(filename: string
|
|
1537
|
+
export function start_tracing_with_path(filename: string): boolean
|
|
1538
1538
|
export function stop_tracing(): void
|
|
1539
1539
|
export function texture_error_quark(): number
|
|
1540
|
-
export function trace_describe(head: TraceHead, description: string
|
|
1540
|
+
export function trace_describe(head: TraceHead, description: string): void
|
|
1541
1541
|
export function trace_end(head: TraceHead): void
|
|
1542
1542
|
/**
|
|
1543
1543
|
* A callback function to use for cogl_debug_object_foreach_type().
|
|
@@ -1653,7 +1653,7 @@ export interface Texture extends Object {
|
|
|
1653
1653
|
* @param key name of the key for that association
|
|
1654
1654
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1655
1655
|
*/
|
|
1656
|
-
get_data(key: string
|
|
1656
|
+
get_data(key: string): any | null
|
|
1657
1657
|
/**
|
|
1658
1658
|
* Queries the GL handles for a GPU side texture through its #CoglTexture.
|
|
1659
1659
|
*
|
|
@@ -1783,7 +1783,7 @@ export interface Texture extends Object {
|
|
|
1783
1783
|
* @param key name of the key
|
|
1784
1784
|
* @param data data to associate with that key
|
|
1785
1785
|
*/
|
|
1786
|
-
set_data(key: string
|
|
1786
|
+
set_data(key: string, data: any | null): void
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Affects the internal storage format for this texture by specifying
|
|
1789
1789
|
* whether red, green and blue color components should be stored as
|
|
@@ -1910,7 +1910,7 @@ export class Bitmap extends Object {
|
|
|
1910
1910
|
* @param filename the file to load.
|
|
1911
1911
|
* @returns a #CoglBitmap to the new loaded image data, or %NULL if loading the image failed.
|
|
1912
1912
|
*/
|
|
1913
|
-
static new_from_file(filename: string
|
|
1913
|
+
static new_from_file(filename: string): Bitmap
|
|
1914
1914
|
_init(config?: Bitmap.ConstructorProperties): void
|
|
1915
1915
|
static error_quark(): number
|
|
1916
1916
|
/**
|
|
@@ -1919,7 +1919,7 @@ export class Bitmap extends Object {
|
|
|
1919
1919
|
* @param filename the file to check
|
|
1920
1920
|
* @returns %TRUE if the image was successfully parsed
|
|
1921
1921
|
*/
|
|
1922
|
-
static get_size_from_file(filename: string
|
|
1922
|
+
static get_size_from_file(filename: string): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
|
|
1923
1923
|
}
|
|
1924
1924
|
|
|
1925
1925
|
export module Context {
|
|
@@ -3475,7 +3475,7 @@ export interface Pipeline {
|
|
|
3475
3475
|
* @param uniform_name The name of a uniform
|
|
3476
3476
|
* @returns A integer representing the location of the given uniform.
|
|
3477
3477
|
*/
|
|
3478
|
-
get_uniform_location(uniform_name: string
|
|
3478
|
+
get_uniform_location(uniform_name: string): number
|
|
3479
3479
|
/**
|
|
3480
3480
|
* Queries what user program has been associated with the given
|
|
3481
3481
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -3568,7 +3568,7 @@ export interface Pipeline {
|
|
|
3568
3568
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
3569
3569
|
* @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).
|
|
3570
3570
|
*/
|
|
3571
|
-
set_blend(blend_string: string
|
|
3571
|
+
set_blend(blend_string: string): boolean
|
|
3572
3572
|
/**
|
|
3573
3573
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
3574
3574
|
* blending will depend on the constant set with this function.
|
|
@@ -3715,7 +3715,7 @@ export interface Pipeline {
|
|
|
3715
3715
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
3716
3716
|
* @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
|
|
3717
3717
|
*/
|
|
3718
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
3718
|
+
set_layer_combine(layer_index: number, blend_string: string): boolean
|
|
3719
3719
|
/**
|
|
3720
3720
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
3721
3721
|
* description then you can use this function to define its value.
|
|
@@ -4004,11 +4004,11 @@ export interface Snippet {
|
|
|
4004
4004
|
|
|
4005
4005
|
// Owm methods of Cogl-13.Cogl.Snippet
|
|
4006
4006
|
|
|
4007
|
-
get_declarations(): string
|
|
4007
|
+
get_declarations(): string
|
|
4008
4008
|
get_hook(): SnippetHook
|
|
4009
|
-
get_post(): string
|
|
4010
|
-
get_pre(): string
|
|
4011
|
-
get_replace(): string
|
|
4009
|
+
get_post(): string
|
|
4010
|
+
get_pre(): string
|
|
4011
|
+
get_replace(): string
|
|
4012
4012
|
/**
|
|
4013
4013
|
* Sets a source string that will be inserted in the global scope of
|
|
4014
4014
|
* the generated shader when this snippet is used on a pipeline. This
|
|
@@ -4020,7 +4020,7 @@ export interface Snippet {
|
|
|
4020
4020
|
* immutable.
|
|
4021
4021
|
* @param declarations The new source string for the declarations section of this snippet.
|
|
4022
4022
|
*/
|
|
4023
|
-
set_declarations(declarations: string
|
|
4023
|
+
set_declarations(declarations: string): void
|
|
4024
4024
|
/**
|
|
4025
4025
|
* Sets a source string that will be inserted after the hook point in
|
|
4026
4026
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4032,7 +4032,7 @@ export interface Snippet {
|
|
|
4032
4032
|
* immutable.
|
|
4033
4033
|
* @param post The new source string for the post section of this snippet.
|
|
4034
4034
|
*/
|
|
4035
|
-
set_post(post: string
|
|
4035
|
+
set_post(post: string): void
|
|
4036
4036
|
/**
|
|
4037
4037
|
* Sets a source string that will be inserted before the hook point in
|
|
4038
4038
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4044,7 +4044,7 @@ export interface Snippet {
|
|
|
4044
4044
|
* immutable.
|
|
4045
4045
|
* @param pre The new source string for the pre section of this snippet.
|
|
4046
4046
|
*/
|
|
4047
|
-
set_pre(pre: string
|
|
4047
|
+
set_pre(pre: string): void
|
|
4048
4048
|
/**
|
|
4049
4049
|
* Sets a source string that will be used instead of any generated
|
|
4050
4050
|
* source code or any previous snippets for this hook point. Please
|
|
@@ -4056,7 +4056,7 @@ export interface Snippet {
|
|
|
4056
4056
|
* immutable.
|
|
4057
4057
|
* @param replace The new source string for the replace section of this snippet.
|
|
4058
4058
|
*/
|
|
4059
|
-
set_replace(replace: string
|
|
4059
|
+
set_replace(replace: string): void
|
|
4060
4060
|
|
|
4061
4061
|
// Class property signals of Cogl-13.Cogl.Snippet
|
|
4062
4062
|
|
|
@@ -4136,13 +4136,13 @@ export interface Texture2D extends Texture {
|
|
|
4136
4136
|
* @param key name of the key for that association
|
|
4137
4137
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4138
4138
|
*/
|
|
4139
|
-
get_data(key: string
|
|
4139
|
+
get_data(key: string): any | null
|
|
4140
4140
|
/**
|
|
4141
4141
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4142
4142
|
* @param key name of the key for that association
|
|
4143
4143
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4144
4144
|
*/
|
|
4145
|
-
get_data(key: string
|
|
4145
|
+
get_data(key: string): any | null
|
|
4146
4146
|
/**
|
|
4147
4147
|
* `texture` a #CoglTexture.
|
|
4148
4148
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4210,7 +4210,7 @@ export interface Texture2D extends Texture {
|
|
|
4210
4210
|
* @param key name of the key
|
|
4211
4211
|
* @param data data to associate with that key
|
|
4212
4212
|
*/
|
|
4213
|
-
set_data(key: string
|
|
4213
|
+
set_data(key: string, data: any | null): void
|
|
4214
4214
|
/**
|
|
4215
4215
|
* Each object carries around a table of associations from
|
|
4216
4216
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4225,7 +4225,7 @@ export interface Texture2D extends Texture {
|
|
|
4225
4225
|
* @param key name of the key
|
|
4226
4226
|
* @param data data to associate with that key
|
|
4227
4227
|
*/
|
|
4228
|
-
set_data(key: string
|
|
4228
|
+
set_data(key: string, data: any | null): void
|
|
4229
4229
|
|
|
4230
4230
|
// Class property signals of Cogl-13.Cogl.Texture2D
|
|
4231
4231
|
|
|
@@ -4301,13 +4301,13 @@ export interface Texture2DSliced extends Texture {
|
|
|
4301
4301
|
* @param key name of the key for that association
|
|
4302
4302
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4303
4303
|
*/
|
|
4304
|
-
get_data(key: string
|
|
4304
|
+
get_data(key: string): any | null
|
|
4305
4305
|
/**
|
|
4306
4306
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4307
4307
|
* @param key name of the key for that association
|
|
4308
4308
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4309
4309
|
*/
|
|
4310
|
-
get_data(key: string
|
|
4310
|
+
get_data(key: string): any | null
|
|
4311
4311
|
/**
|
|
4312
4312
|
* `texture` a #CoglTexture.
|
|
4313
4313
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4375,7 +4375,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
4375
4375
|
* @param key name of the key
|
|
4376
4376
|
* @param data data to associate with that key
|
|
4377
4377
|
*/
|
|
4378
|
-
set_data(key: string
|
|
4378
|
+
set_data(key: string, data: any | null): void
|
|
4379
4379
|
/**
|
|
4380
4380
|
* Each object carries around a table of associations from
|
|
4381
4381
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4390,7 +4390,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
4390
4390
|
* @param key name of the key
|
|
4391
4391
|
* @param data data to associate with that key
|
|
4392
4392
|
*/
|
|
4393
|
-
set_data(key: string
|
|
4393
|
+
set_data(key: string, data: any | null): void
|
|
4394
4394
|
|
|
4395
4395
|
// Class property signals of Cogl-13.Cogl.Texture2DSliced
|
|
4396
4396
|
|
|
@@ -4688,7 +4688,7 @@ export interface DebugObjectTypeInfo {
|
|
|
4688
4688
|
* A human readable name for the type.
|
|
4689
4689
|
* @field
|
|
4690
4690
|
*/
|
|
4691
|
-
name: string
|
|
4691
|
+
name: string
|
|
4692
4692
|
/**
|
|
4693
4693
|
* The number of objects of this type that are
|
|
4694
4694
|
* currently in use
|
|
@@ -4942,7 +4942,7 @@ export interface TraceHead {
|
|
|
4942
4942
|
// Own fields of Cogl-13.Cogl.TraceHead
|
|
4943
4943
|
|
|
4944
4944
|
begin_time: number
|
|
4945
|
-
name: string
|
|
4945
|
+
name: string
|
|
4946
4946
|
description: string | null
|
|
4947
4947
|
}
|
|
4948
4948
|
|
package/cogl-13.d.ts
CHANGED
|
@@ -1445,7 +1445,7 @@ function pixel_format_get_n_planes(format: PixelFormat): number
|
|
|
1445
1445
|
* @param format a #CoglPixelFormat
|
|
1446
1446
|
* @returns A string representation of @format.
|
|
1447
1447
|
*/
|
|
1448
|
-
function pixel_format_to_string(format: PixelFormat): string
|
|
1448
|
+
function pixel_format_to_string(format: PixelFormat): string
|
|
1449
1449
|
/**
|
|
1450
1450
|
* Attaches a shader to a program object. A program can have multiple
|
|
1451
1451
|
* vertex or fragment shaders but only one of them may provide a
|
|
@@ -1463,7 +1463,7 @@ function program_attach_shader(program_handle: Handle, shader_handle: Handle): v
|
|
|
1463
1463
|
* @param uniform_name the name of a uniform.
|
|
1464
1464
|
* @returns the offset of a uniform in a specified program.
|
|
1465
1465
|
*/
|
|
1466
|
-
function program_get_uniform_location(handle: Handle, uniform_name: string
|
|
1466
|
+
function program_get_uniform_location(handle: Handle, uniform_name: string): number
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Links a program making it ready for use. Note that calling this
|
|
1469
1469
|
* function is optional. If it is not called the program will
|
|
@@ -1517,7 +1517,7 @@ function program_set_uniform_int(program: Handle, uniform_location: number, n_co
|
|
|
1517
1517
|
function program_set_uniform_matrix(program: Handle, uniform_location: number, dimensions: number, transpose: boolean, value: number[]): void
|
|
1518
1518
|
function scanout_error_quark(): GLib.Quark
|
|
1519
1519
|
function set_tracing_disabled_on_thread(main_context: GLib.MainContext): void
|
|
1520
|
-
function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string
|
|
1520
|
+
function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string): void
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Retrieves the type of a shader #CoglHandle
|
|
1523
1523
|
* @param handle #CoglHandle for a shader.
|
|
@@ -1534,12 +1534,12 @@ function shader_get_type(handle: Handle): ShaderType
|
|
|
1534
1534
|
* @param shader #CoglHandle for a shader.
|
|
1535
1535
|
* @param source Shader source.
|
|
1536
1536
|
*/
|
|
1537
|
-
function shader_source(shader: Handle, source: string
|
|
1537
|
+
function shader_source(shader: Handle, source: string): void
|
|
1538
1538
|
function start_tracing_with_fd(fd: number): boolean
|
|
1539
|
-
function start_tracing_with_path(filename: string
|
|
1539
|
+
function start_tracing_with_path(filename: string): boolean
|
|
1540
1540
|
function stop_tracing(): void
|
|
1541
1541
|
function texture_error_quark(): number
|
|
1542
|
-
function trace_describe(head: TraceHead, description: string
|
|
1542
|
+
function trace_describe(head: TraceHead, description: string): void
|
|
1543
1543
|
function trace_end(head: TraceHead): void
|
|
1544
1544
|
/**
|
|
1545
1545
|
* A callback function to use for cogl_debug_object_foreach_type().
|
|
@@ -1655,7 +1655,7 @@ interface Texture extends Object {
|
|
|
1655
1655
|
* @param key name of the key for that association
|
|
1656
1656
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1657
1657
|
*/
|
|
1658
|
-
get_data(key: string
|
|
1658
|
+
get_data(key: string): any | null
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Queries the GL handles for a GPU side texture through its #CoglTexture.
|
|
1661
1661
|
*
|
|
@@ -1785,7 +1785,7 @@ interface Texture extends Object {
|
|
|
1785
1785
|
* @param key name of the key
|
|
1786
1786
|
* @param data data to associate with that key
|
|
1787
1787
|
*/
|
|
1788
|
-
set_data(key: string
|
|
1788
|
+
set_data(key: string, data: any | null): void
|
|
1789
1789
|
/**
|
|
1790
1790
|
* Affects the internal storage format for this texture by specifying
|
|
1791
1791
|
* whether red, green and blue color components should be stored as
|
|
@@ -1912,7 +1912,7 @@ class Bitmap extends Object {
|
|
|
1912
1912
|
* @param filename the file to load.
|
|
1913
1913
|
* @returns a #CoglBitmap to the new loaded image data, or %NULL if loading the image failed.
|
|
1914
1914
|
*/
|
|
1915
|
-
static new_from_file(filename: string
|
|
1915
|
+
static new_from_file(filename: string): Bitmap
|
|
1916
1916
|
_init(config?: Bitmap.ConstructorProperties): void
|
|
1917
1917
|
static error_quark(): number
|
|
1918
1918
|
/**
|
|
@@ -1921,7 +1921,7 @@ class Bitmap extends Object {
|
|
|
1921
1921
|
* @param filename the file to check
|
|
1922
1922
|
* @returns %TRUE if the image was successfully parsed
|
|
1923
1923
|
*/
|
|
1924
|
-
static get_size_from_file(filename: string
|
|
1924
|
+
static get_size_from_file(filename: string): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
|
|
1925
1925
|
}
|
|
1926
1926
|
|
|
1927
1927
|
module Context {
|
|
@@ -3477,7 +3477,7 @@ interface Pipeline {
|
|
|
3477
3477
|
* @param uniform_name The name of a uniform
|
|
3478
3478
|
* @returns A integer representing the location of the given uniform.
|
|
3479
3479
|
*/
|
|
3480
|
-
get_uniform_location(uniform_name: string
|
|
3480
|
+
get_uniform_location(uniform_name: string): number
|
|
3481
3481
|
/**
|
|
3482
3482
|
* Queries what user program has been associated with the given
|
|
3483
3483
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -3570,7 +3570,7 @@ interface Pipeline {
|
|
|
3570
3570
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
3571
3571
|
* @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).
|
|
3572
3572
|
*/
|
|
3573
|
-
set_blend(blend_string: string
|
|
3573
|
+
set_blend(blend_string: string): boolean
|
|
3574
3574
|
/**
|
|
3575
3575
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
3576
3576
|
* blending will depend on the constant set with this function.
|
|
@@ -3717,7 +3717,7 @@ interface Pipeline {
|
|
|
3717
3717
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
3718
3718
|
* @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
|
|
3719
3719
|
*/
|
|
3720
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
3720
|
+
set_layer_combine(layer_index: number, blend_string: string): boolean
|
|
3721
3721
|
/**
|
|
3722
3722
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
3723
3723
|
* description then you can use this function to define its value.
|
|
@@ -4006,11 +4006,11 @@ interface Snippet {
|
|
|
4006
4006
|
|
|
4007
4007
|
// Owm methods of Cogl-13.Cogl.Snippet
|
|
4008
4008
|
|
|
4009
|
-
get_declarations(): string
|
|
4009
|
+
get_declarations(): string
|
|
4010
4010
|
get_hook(): SnippetHook
|
|
4011
|
-
get_post(): string
|
|
4012
|
-
get_pre(): string
|
|
4013
|
-
get_replace(): string
|
|
4011
|
+
get_post(): string
|
|
4012
|
+
get_pre(): string
|
|
4013
|
+
get_replace(): string
|
|
4014
4014
|
/**
|
|
4015
4015
|
* Sets a source string that will be inserted in the global scope of
|
|
4016
4016
|
* the generated shader when this snippet is used on a pipeline. This
|
|
@@ -4022,7 +4022,7 @@ interface Snippet {
|
|
|
4022
4022
|
* immutable.
|
|
4023
4023
|
* @param declarations The new source string for the declarations section of this snippet.
|
|
4024
4024
|
*/
|
|
4025
|
-
set_declarations(declarations: string
|
|
4025
|
+
set_declarations(declarations: string): void
|
|
4026
4026
|
/**
|
|
4027
4027
|
* Sets a source string that will be inserted after the hook point in
|
|
4028
4028
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4034,7 +4034,7 @@ interface Snippet {
|
|
|
4034
4034
|
* immutable.
|
|
4035
4035
|
* @param post The new source string for the post section of this snippet.
|
|
4036
4036
|
*/
|
|
4037
|
-
set_post(post: string
|
|
4037
|
+
set_post(post: string): void
|
|
4038
4038
|
/**
|
|
4039
4039
|
* Sets a source string that will be inserted before the hook point in
|
|
4040
4040
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4046,7 +4046,7 @@ interface Snippet {
|
|
|
4046
4046
|
* immutable.
|
|
4047
4047
|
* @param pre The new source string for the pre section of this snippet.
|
|
4048
4048
|
*/
|
|
4049
|
-
set_pre(pre: string
|
|
4049
|
+
set_pre(pre: string): void
|
|
4050
4050
|
/**
|
|
4051
4051
|
* Sets a source string that will be used instead of any generated
|
|
4052
4052
|
* source code or any previous snippets for this hook point. Please
|
|
@@ -4058,7 +4058,7 @@ interface Snippet {
|
|
|
4058
4058
|
* immutable.
|
|
4059
4059
|
* @param replace The new source string for the replace section of this snippet.
|
|
4060
4060
|
*/
|
|
4061
|
-
set_replace(replace: string
|
|
4061
|
+
set_replace(replace: string): void
|
|
4062
4062
|
|
|
4063
4063
|
// Class property signals of Cogl-13.Cogl.Snippet
|
|
4064
4064
|
|
|
@@ -4138,13 +4138,13 @@ interface Texture2D extends Texture {
|
|
|
4138
4138
|
* @param key name of the key for that association
|
|
4139
4139
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4140
4140
|
*/
|
|
4141
|
-
get_data(key: string
|
|
4141
|
+
get_data(key: string): any | null
|
|
4142
4142
|
/**
|
|
4143
4143
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4144
4144
|
* @param key name of the key for that association
|
|
4145
4145
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4146
4146
|
*/
|
|
4147
|
-
get_data(key: string
|
|
4147
|
+
get_data(key: string): any | null
|
|
4148
4148
|
/**
|
|
4149
4149
|
* `texture` a #CoglTexture.
|
|
4150
4150
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4212,7 +4212,7 @@ interface Texture2D extends Texture {
|
|
|
4212
4212
|
* @param key name of the key
|
|
4213
4213
|
* @param data data to associate with that key
|
|
4214
4214
|
*/
|
|
4215
|
-
set_data(key: string
|
|
4215
|
+
set_data(key: string, data: any | null): void
|
|
4216
4216
|
/**
|
|
4217
4217
|
* Each object carries around a table of associations from
|
|
4218
4218
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4227,7 +4227,7 @@ interface Texture2D extends Texture {
|
|
|
4227
4227
|
* @param key name of the key
|
|
4228
4228
|
* @param data data to associate with that key
|
|
4229
4229
|
*/
|
|
4230
|
-
set_data(key: string
|
|
4230
|
+
set_data(key: string, data: any | null): void
|
|
4231
4231
|
|
|
4232
4232
|
// Class property signals of Cogl-13.Cogl.Texture2D
|
|
4233
4233
|
|
|
@@ -4303,13 +4303,13 @@ interface Texture2DSliced extends Texture {
|
|
|
4303
4303
|
* @param key name of the key for that association
|
|
4304
4304
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4305
4305
|
*/
|
|
4306
|
-
get_data(key: string
|
|
4306
|
+
get_data(key: string): any | null
|
|
4307
4307
|
/**
|
|
4308
4308
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4309
4309
|
* @param key name of the key for that association
|
|
4310
4310
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4311
4311
|
*/
|
|
4312
|
-
get_data(key: string
|
|
4312
|
+
get_data(key: string): any | null
|
|
4313
4313
|
/**
|
|
4314
4314
|
* `texture` a #CoglTexture.
|
|
4315
4315
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4377,7 +4377,7 @@ interface Texture2DSliced extends Texture {
|
|
|
4377
4377
|
* @param key name of the key
|
|
4378
4378
|
* @param data data to associate with that key
|
|
4379
4379
|
*/
|
|
4380
|
-
set_data(key: string
|
|
4380
|
+
set_data(key: string, data: any | null): void
|
|
4381
4381
|
/**
|
|
4382
4382
|
* Each object carries around a table of associations from
|
|
4383
4383
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4392,7 +4392,7 @@ interface Texture2DSliced extends Texture {
|
|
|
4392
4392
|
* @param key name of the key
|
|
4393
4393
|
* @param data data to associate with that key
|
|
4394
4394
|
*/
|
|
4395
|
-
set_data(key: string
|
|
4395
|
+
set_data(key: string, data: any | null): void
|
|
4396
4396
|
|
|
4397
4397
|
// Class property signals of Cogl-13.Cogl.Texture2DSliced
|
|
4398
4398
|
|
|
@@ -4690,7 +4690,7 @@ interface DebugObjectTypeInfo {
|
|
|
4690
4690
|
* A human readable name for the type.
|
|
4691
4691
|
* @field
|
|
4692
4692
|
*/
|
|
4693
|
-
name: string
|
|
4693
|
+
name: string
|
|
4694
4694
|
/**
|
|
4695
4695
|
* The number of objects of this type that are
|
|
4696
4696
|
* currently in use
|
|
@@ -4944,7 +4944,7 @@ interface TraceHead {
|
|
|
4944
4944
|
// Own fields of Cogl-13.Cogl.TraceHead
|
|
4945
4945
|
|
|
4946
4946
|
begin_time: number
|
|
4947
|
-
name: string
|
|
4947
|
+
name: string
|
|
4948
4948
|
description: string | null
|
|
4949
4949
|
}
|
|
4950
4950
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/cogl-13",
|
|
3
|
-
"version": "13.0.0-3.2.
|
|
3
|
+
"version": "13.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Cogl-13, generated from library version 13.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "cogl-13.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cogl-13.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": "*"
|