@girs/cogl-13 13.0.0-3.2.5 → 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 +33 -31
- package/cogl-13.d.ts +33 -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 {
|
|
@@ -2073,6 +2073,7 @@ export module Framebuffer {
|
|
|
2073
2073
|
driver_config?: any | null
|
|
2074
2074
|
height?: number | null
|
|
2075
2075
|
width?: number | null
|
|
2076
|
+
driverConfig?: any | null
|
|
2076
2077
|
}
|
|
2077
2078
|
|
|
2078
2079
|
}
|
|
@@ -2082,6 +2083,7 @@ export interface Framebuffer {
|
|
|
2082
2083
|
// Own properties of Cogl-13.Cogl.Framebuffer
|
|
2083
2084
|
|
|
2084
2085
|
readonly driver_config: any
|
|
2086
|
+
readonly driverConfig: any
|
|
2085
2087
|
height: number
|
|
2086
2088
|
width: number
|
|
2087
2089
|
|
|
@@ -3473,7 +3475,7 @@ export interface Pipeline {
|
|
|
3473
3475
|
* @param uniform_name The name of a uniform
|
|
3474
3476
|
* @returns A integer representing the location of the given uniform.
|
|
3475
3477
|
*/
|
|
3476
|
-
get_uniform_location(uniform_name: string
|
|
3478
|
+
get_uniform_location(uniform_name: string): number
|
|
3477
3479
|
/**
|
|
3478
3480
|
* Queries what user program has been associated with the given
|
|
3479
3481
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -3566,7 +3568,7 @@ export interface Pipeline {
|
|
|
3566
3568
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
3567
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).
|
|
3568
3570
|
*/
|
|
3569
|
-
set_blend(blend_string: string
|
|
3571
|
+
set_blend(blend_string: string): boolean
|
|
3570
3572
|
/**
|
|
3571
3573
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
3572
3574
|
* blending will depend on the constant set with this function.
|
|
@@ -3713,7 +3715,7 @@ export interface Pipeline {
|
|
|
3713
3715
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
3714
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
|
|
3715
3717
|
*/
|
|
3716
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
3718
|
+
set_layer_combine(layer_index: number, blend_string: string): boolean
|
|
3717
3719
|
/**
|
|
3718
3720
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
3719
3721
|
* description then you can use this function to define its value.
|
|
@@ -4002,11 +4004,11 @@ export interface Snippet {
|
|
|
4002
4004
|
|
|
4003
4005
|
// Owm methods of Cogl-13.Cogl.Snippet
|
|
4004
4006
|
|
|
4005
|
-
get_declarations(): string
|
|
4007
|
+
get_declarations(): string
|
|
4006
4008
|
get_hook(): SnippetHook
|
|
4007
|
-
get_post(): string
|
|
4008
|
-
get_pre(): string
|
|
4009
|
-
get_replace(): string
|
|
4009
|
+
get_post(): string
|
|
4010
|
+
get_pre(): string
|
|
4011
|
+
get_replace(): string
|
|
4010
4012
|
/**
|
|
4011
4013
|
* Sets a source string that will be inserted in the global scope of
|
|
4012
4014
|
* the generated shader when this snippet is used on a pipeline. This
|
|
@@ -4018,7 +4020,7 @@ export interface Snippet {
|
|
|
4018
4020
|
* immutable.
|
|
4019
4021
|
* @param declarations The new source string for the declarations section of this snippet.
|
|
4020
4022
|
*/
|
|
4021
|
-
set_declarations(declarations: string
|
|
4023
|
+
set_declarations(declarations: string): void
|
|
4022
4024
|
/**
|
|
4023
4025
|
* Sets a source string that will be inserted after the hook point in
|
|
4024
4026
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4030,7 +4032,7 @@ export interface Snippet {
|
|
|
4030
4032
|
* immutable.
|
|
4031
4033
|
* @param post The new source string for the post section of this snippet.
|
|
4032
4034
|
*/
|
|
4033
|
-
set_post(post: string
|
|
4035
|
+
set_post(post: string): void
|
|
4034
4036
|
/**
|
|
4035
4037
|
* Sets a source string that will be inserted before the hook point in
|
|
4036
4038
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4042,7 +4044,7 @@ export interface Snippet {
|
|
|
4042
4044
|
* immutable.
|
|
4043
4045
|
* @param pre The new source string for the pre section of this snippet.
|
|
4044
4046
|
*/
|
|
4045
|
-
set_pre(pre: string
|
|
4047
|
+
set_pre(pre: string): void
|
|
4046
4048
|
/**
|
|
4047
4049
|
* Sets a source string that will be used instead of any generated
|
|
4048
4050
|
* source code or any previous snippets for this hook point. Please
|
|
@@ -4054,7 +4056,7 @@ export interface Snippet {
|
|
|
4054
4056
|
* immutable.
|
|
4055
4057
|
* @param replace The new source string for the replace section of this snippet.
|
|
4056
4058
|
*/
|
|
4057
|
-
set_replace(replace: string
|
|
4059
|
+
set_replace(replace: string): void
|
|
4058
4060
|
|
|
4059
4061
|
// Class property signals of Cogl-13.Cogl.Snippet
|
|
4060
4062
|
|
|
@@ -4134,13 +4136,13 @@ export interface Texture2D extends Texture {
|
|
|
4134
4136
|
* @param key name of the key for that association
|
|
4135
4137
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4136
4138
|
*/
|
|
4137
|
-
get_data(key: string
|
|
4139
|
+
get_data(key: string): any | null
|
|
4138
4140
|
/**
|
|
4139
4141
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4140
4142
|
* @param key name of the key for that association
|
|
4141
4143
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4142
4144
|
*/
|
|
4143
|
-
get_data(key: string
|
|
4145
|
+
get_data(key: string): any | null
|
|
4144
4146
|
/**
|
|
4145
4147
|
* `texture` a #CoglTexture.
|
|
4146
4148
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4208,7 +4210,7 @@ export interface Texture2D extends Texture {
|
|
|
4208
4210
|
* @param key name of the key
|
|
4209
4211
|
* @param data data to associate with that key
|
|
4210
4212
|
*/
|
|
4211
|
-
set_data(key: string
|
|
4213
|
+
set_data(key: string, data: any | null): void
|
|
4212
4214
|
/**
|
|
4213
4215
|
* Each object carries around a table of associations from
|
|
4214
4216
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4223,7 +4225,7 @@ export interface Texture2D extends Texture {
|
|
|
4223
4225
|
* @param key name of the key
|
|
4224
4226
|
* @param data data to associate with that key
|
|
4225
4227
|
*/
|
|
4226
|
-
set_data(key: string
|
|
4228
|
+
set_data(key: string, data: any | null): void
|
|
4227
4229
|
|
|
4228
4230
|
// Class property signals of Cogl-13.Cogl.Texture2D
|
|
4229
4231
|
|
|
@@ -4299,13 +4301,13 @@ export interface Texture2DSliced extends Texture {
|
|
|
4299
4301
|
* @param key name of the key for that association
|
|
4300
4302
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4301
4303
|
*/
|
|
4302
|
-
get_data(key: string
|
|
4304
|
+
get_data(key: string): any | null
|
|
4303
4305
|
/**
|
|
4304
4306
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4305
4307
|
* @param key name of the key for that association
|
|
4306
4308
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4307
4309
|
*/
|
|
4308
|
-
get_data(key: string
|
|
4310
|
+
get_data(key: string): any | null
|
|
4309
4311
|
/**
|
|
4310
4312
|
* `texture` a #CoglTexture.
|
|
4311
4313
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4373,7 +4375,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
4373
4375
|
* @param key name of the key
|
|
4374
4376
|
* @param data data to associate with that key
|
|
4375
4377
|
*/
|
|
4376
|
-
set_data(key: string
|
|
4378
|
+
set_data(key: string, data: any | null): void
|
|
4377
4379
|
/**
|
|
4378
4380
|
* Each object carries around a table of associations from
|
|
4379
4381
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4388,7 +4390,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
4388
4390
|
* @param key name of the key
|
|
4389
4391
|
* @param data data to associate with that key
|
|
4390
4392
|
*/
|
|
4391
|
-
set_data(key: string
|
|
4393
|
+
set_data(key: string, data: any | null): void
|
|
4392
4394
|
|
|
4393
4395
|
// Class property signals of Cogl-13.Cogl.Texture2DSliced
|
|
4394
4396
|
|
|
@@ -4686,7 +4688,7 @@ export interface DebugObjectTypeInfo {
|
|
|
4686
4688
|
* A human readable name for the type.
|
|
4687
4689
|
* @field
|
|
4688
4690
|
*/
|
|
4689
|
-
name: string
|
|
4691
|
+
name: string
|
|
4690
4692
|
/**
|
|
4691
4693
|
* The number of objects of this type that are
|
|
4692
4694
|
* currently in use
|
|
@@ -4940,7 +4942,7 @@ export interface TraceHead {
|
|
|
4940
4942
|
// Own fields of Cogl-13.Cogl.TraceHead
|
|
4941
4943
|
|
|
4942
4944
|
begin_time: number
|
|
4943
|
-
name: string
|
|
4945
|
+
name: string
|
|
4944
4946
|
description: string | null
|
|
4945
4947
|
}
|
|
4946
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 {
|
|
@@ -2075,6 +2075,7 @@ module Framebuffer {
|
|
|
2075
2075
|
driver_config?: any | null
|
|
2076
2076
|
height?: number | null
|
|
2077
2077
|
width?: number | null
|
|
2078
|
+
driverConfig?: any | null
|
|
2078
2079
|
}
|
|
2079
2080
|
|
|
2080
2081
|
}
|
|
@@ -2084,6 +2085,7 @@ interface Framebuffer {
|
|
|
2084
2085
|
// Own properties of Cogl-13.Cogl.Framebuffer
|
|
2085
2086
|
|
|
2086
2087
|
readonly driver_config: any
|
|
2088
|
+
readonly driverConfig: any
|
|
2087
2089
|
height: number
|
|
2088
2090
|
width: number
|
|
2089
2091
|
|
|
@@ -3475,7 +3477,7 @@ interface Pipeline {
|
|
|
3475
3477
|
* @param uniform_name The name of a uniform
|
|
3476
3478
|
* @returns A integer representing the location of the given uniform.
|
|
3477
3479
|
*/
|
|
3478
|
-
get_uniform_location(uniform_name: string
|
|
3480
|
+
get_uniform_location(uniform_name: string): number
|
|
3479
3481
|
/**
|
|
3480
3482
|
* Queries what user program has been associated with the given
|
|
3481
3483
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -3568,7 +3570,7 @@ interface Pipeline {
|
|
|
3568
3570
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
3569
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).
|
|
3570
3572
|
*/
|
|
3571
|
-
set_blend(blend_string: string
|
|
3573
|
+
set_blend(blend_string: string): boolean
|
|
3572
3574
|
/**
|
|
3573
3575
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
3574
3576
|
* blending will depend on the constant set with this function.
|
|
@@ -3715,7 +3717,7 @@ interface Pipeline {
|
|
|
3715
3717
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
3716
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
|
|
3717
3719
|
*/
|
|
3718
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
3720
|
+
set_layer_combine(layer_index: number, blend_string: string): boolean
|
|
3719
3721
|
/**
|
|
3720
3722
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
3721
3723
|
* description then you can use this function to define its value.
|
|
@@ -4004,11 +4006,11 @@ interface Snippet {
|
|
|
4004
4006
|
|
|
4005
4007
|
// Owm methods of Cogl-13.Cogl.Snippet
|
|
4006
4008
|
|
|
4007
|
-
get_declarations(): string
|
|
4009
|
+
get_declarations(): string
|
|
4008
4010
|
get_hook(): SnippetHook
|
|
4009
|
-
get_post(): string
|
|
4010
|
-
get_pre(): string
|
|
4011
|
-
get_replace(): string
|
|
4011
|
+
get_post(): string
|
|
4012
|
+
get_pre(): string
|
|
4013
|
+
get_replace(): string
|
|
4012
4014
|
/**
|
|
4013
4015
|
* Sets a source string that will be inserted in the global scope of
|
|
4014
4016
|
* the generated shader when this snippet is used on a pipeline. This
|
|
@@ -4020,7 +4022,7 @@ interface Snippet {
|
|
|
4020
4022
|
* immutable.
|
|
4021
4023
|
* @param declarations The new source string for the declarations section of this snippet.
|
|
4022
4024
|
*/
|
|
4023
|
-
set_declarations(declarations: string
|
|
4025
|
+
set_declarations(declarations: string): void
|
|
4024
4026
|
/**
|
|
4025
4027
|
* Sets a source string that will be inserted after the hook point in
|
|
4026
4028
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4032,7 +4034,7 @@ interface Snippet {
|
|
|
4032
4034
|
* immutable.
|
|
4033
4035
|
* @param post The new source string for the post section of this snippet.
|
|
4034
4036
|
*/
|
|
4035
|
-
set_post(post: string
|
|
4037
|
+
set_post(post: string): void
|
|
4036
4038
|
/**
|
|
4037
4039
|
* Sets a source string that will be inserted before the hook point in
|
|
4038
4040
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4044,7 +4046,7 @@ interface Snippet {
|
|
|
4044
4046
|
* immutable.
|
|
4045
4047
|
* @param pre The new source string for the pre section of this snippet.
|
|
4046
4048
|
*/
|
|
4047
|
-
set_pre(pre: string
|
|
4049
|
+
set_pre(pre: string): void
|
|
4048
4050
|
/**
|
|
4049
4051
|
* Sets a source string that will be used instead of any generated
|
|
4050
4052
|
* source code or any previous snippets for this hook point. Please
|
|
@@ -4056,7 +4058,7 @@ interface Snippet {
|
|
|
4056
4058
|
* immutable.
|
|
4057
4059
|
* @param replace The new source string for the replace section of this snippet.
|
|
4058
4060
|
*/
|
|
4059
|
-
set_replace(replace: string
|
|
4061
|
+
set_replace(replace: string): void
|
|
4060
4062
|
|
|
4061
4063
|
// Class property signals of Cogl-13.Cogl.Snippet
|
|
4062
4064
|
|
|
@@ -4136,13 +4138,13 @@ interface Texture2D extends Texture {
|
|
|
4136
4138
|
* @param key name of the key for that association
|
|
4137
4139
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4138
4140
|
*/
|
|
4139
|
-
get_data(key: string
|
|
4141
|
+
get_data(key: string): any | null
|
|
4140
4142
|
/**
|
|
4141
4143
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4142
4144
|
* @param key name of the key for that association
|
|
4143
4145
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4144
4146
|
*/
|
|
4145
|
-
get_data(key: string
|
|
4147
|
+
get_data(key: string): any | null
|
|
4146
4148
|
/**
|
|
4147
4149
|
* `texture` a #CoglTexture.
|
|
4148
4150
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4210,7 +4212,7 @@ interface Texture2D extends Texture {
|
|
|
4210
4212
|
* @param key name of the key
|
|
4211
4213
|
* @param data data to associate with that key
|
|
4212
4214
|
*/
|
|
4213
|
-
set_data(key: string
|
|
4215
|
+
set_data(key: string, data: any | null): void
|
|
4214
4216
|
/**
|
|
4215
4217
|
* Each object carries around a table of associations from
|
|
4216
4218
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4225,7 +4227,7 @@ interface Texture2D extends Texture {
|
|
|
4225
4227
|
* @param key name of the key
|
|
4226
4228
|
* @param data data to associate with that key
|
|
4227
4229
|
*/
|
|
4228
|
-
set_data(key: string
|
|
4230
|
+
set_data(key: string, data: any | null): void
|
|
4229
4231
|
|
|
4230
4232
|
// Class property signals of Cogl-13.Cogl.Texture2D
|
|
4231
4233
|
|
|
@@ -4301,13 +4303,13 @@ interface Texture2DSliced extends Texture {
|
|
|
4301
4303
|
* @param key name of the key for that association
|
|
4302
4304
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4303
4305
|
*/
|
|
4304
|
-
get_data(key: string
|
|
4306
|
+
get_data(key: string): any | null
|
|
4305
4307
|
/**
|
|
4306
4308
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4307
4309
|
* @param key name of the key for that association
|
|
4308
4310
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4309
4311
|
*/
|
|
4310
|
-
get_data(key: string
|
|
4312
|
+
get_data(key: string): any | null
|
|
4311
4313
|
/**
|
|
4312
4314
|
* `texture` a #CoglTexture.
|
|
4313
4315
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4375,7 +4377,7 @@ interface Texture2DSliced extends Texture {
|
|
|
4375
4377
|
* @param key name of the key
|
|
4376
4378
|
* @param data data to associate with that key
|
|
4377
4379
|
*/
|
|
4378
|
-
set_data(key: string
|
|
4380
|
+
set_data(key: string, data: any | null): void
|
|
4379
4381
|
/**
|
|
4380
4382
|
* Each object carries around a table of associations from
|
|
4381
4383
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4390,7 +4392,7 @@ interface Texture2DSliced extends Texture {
|
|
|
4390
4392
|
* @param key name of the key
|
|
4391
4393
|
* @param data data to associate with that key
|
|
4392
4394
|
*/
|
|
4393
|
-
set_data(key: string
|
|
4395
|
+
set_data(key: string, data: any | null): void
|
|
4394
4396
|
|
|
4395
4397
|
// Class property signals of Cogl-13.Cogl.Texture2DSliced
|
|
4396
4398
|
|
|
@@ -4688,7 +4690,7 @@ interface DebugObjectTypeInfo {
|
|
|
4688
4690
|
* A human readable name for the type.
|
|
4689
4691
|
* @field
|
|
4690
4692
|
*/
|
|
4691
|
-
name: string
|
|
4693
|
+
name: string
|
|
4692
4694
|
/**
|
|
4693
4695
|
* The number of objects of this type that are
|
|
4694
4696
|
* currently in use
|
|
@@ -4942,7 +4944,7 @@ interface TraceHead {
|
|
|
4942
4944
|
// Own fields of Cogl-13.Cogl.TraceHead
|
|
4943
4945
|
|
|
4944
4946
|
begin_time: number
|
|
4945
|
-
name: string
|
|
4947
|
+
name: string
|
|
4946
4948
|
description: string | null
|
|
4947
4949
|
}
|
|
4948
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": "*"
|