@girs/cogl-12 12.0.0-3.2.6 → 12.0.0-3.2.8
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-12-ambient.js +2 -0
- package/cogl-12-import.js +3 -0
- package/cogl-12.d.cts +32 -34
- package/cogl-12.d.ts +32 -34
- package/package.json +16 -10
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Cogl-12, generated from library version 12.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Cogl-12, generated from library version 12.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/cogl-12.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 {
|
|
@@ -2029,10 +2029,9 @@ export module Framebuffer {
|
|
|
2029
2029
|
|
|
2030
2030
|
// Own constructor properties of Cogl-12.Cogl.Framebuffer
|
|
2031
2031
|
|
|
2032
|
-
|
|
2032
|
+
driverConfig?: any | null
|
|
2033
2033
|
height?: number | null
|
|
2034
2034
|
width?: number | null
|
|
2035
|
-
driverConfig?: any | null
|
|
2036
2035
|
}
|
|
2037
2036
|
|
|
2038
2037
|
}
|
|
@@ -2041,7 +2040,6 @@ export interface Framebuffer {
|
|
|
2041
2040
|
|
|
2042
2041
|
// Own properties of Cogl-12.Cogl.Framebuffer
|
|
2043
2042
|
|
|
2044
|
-
readonly driver_config: any
|
|
2045
2043
|
readonly driverConfig: any
|
|
2046
2044
|
height: number
|
|
2047
2045
|
width: number
|
|
@@ -3449,7 +3447,7 @@ export interface Pipeline {
|
|
|
3449
3447
|
* @param uniform_name The name of a uniform
|
|
3450
3448
|
* @returns A integer representing the location of the given uniform.
|
|
3451
3449
|
*/
|
|
3452
|
-
get_uniform_location(uniform_name: string
|
|
3450
|
+
get_uniform_location(uniform_name: string): number
|
|
3453
3451
|
/**
|
|
3454
3452
|
* Queries what user program has been associated with the given
|
|
3455
3453
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -3542,7 +3540,7 @@ export interface Pipeline {
|
|
|
3542
3540
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
3543
3541
|
* @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).
|
|
3544
3542
|
*/
|
|
3545
|
-
set_blend(blend_string: string
|
|
3543
|
+
set_blend(blend_string: string): boolean
|
|
3546
3544
|
/**
|
|
3547
3545
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
3548
3546
|
* blending will depend on the constant set with this function.
|
|
@@ -3689,7 +3687,7 @@ export interface Pipeline {
|
|
|
3689
3687
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
3690
3688
|
* @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
|
|
3691
3689
|
*/
|
|
3692
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
3690
|
+
set_layer_combine(layer_index: number, blend_string: string): boolean
|
|
3693
3691
|
/**
|
|
3694
3692
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
3695
3693
|
* description then you can use this function to define its value.
|
|
@@ -3978,11 +3976,11 @@ export interface Snippet {
|
|
|
3978
3976
|
|
|
3979
3977
|
// Owm methods of Cogl-12.Cogl.Snippet
|
|
3980
3978
|
|
|
3981
|
-
get_declarations(): string
|
|
3979
|
+
get_declarations(): string
|
|
3982
3980
|
get_hook(): SnippetHook
|
|
3983
|
-
get_post(): string
|
|
3984
|
-
get_pre(): string
|
|
3985
|
-
get_replace(): string
|
|
3981
|
+
get_post(): string
|
|
3982
|
+
get_pre(): string
|
|
3983
|
+
get_replace(): string
|
|
3986
3984
|
/**
|
|
3987
3985
|
* Sets a source string that will be inserted in the global scope of
|
|
3988
3986
|
* the generated shader when this snippet is used on a pipeline. This
|
|
@@ -3994,7 +3992,7 @@ export interface Snippet {
|
|
|
3994
3992
|
* immutable.
|
|
3995
3993
|
* @param declarations The new source string for the declarations section of this snippet.
|
|
3996
3994
|
*/
|
|
3997
|
-
set_declarations(declarations: string
|
|
3995
|
+
set_declarations(declarations: string): void
|
|
3998
3996
|
/**
|
|
3999
3997
|
* Sets a source string that will be inserted after the hook point in
|
|
4000
3998
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4006,7 +4004,7 @@ export interface Snippet {
|
|
|
4006
4004
|
* immutable.
|
|
4007
4005
|
* @param post The new source string for the post section of this snippet.
|
|
4008
4006
|
*/
|
|
4009
|
-
set_post(post: string
|
|
4007
|
+
set_post(post: string): void
|
|
4010
4008
|
/**
|
|
4011
4009
|
* Sets a source string that will be inserted before the hook point in
|
|
4012
4010
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4018,7 +4016,7 @@ export interface Snippet {
|
|
|
4018
4016
|
* immutable.
|
|
4019
4017
|
* @param pre The new source string for the pre section of this snippet.
|
|
4020
4018
|
*/
|
|
4021
|
-
set_pre(pre: string
|
|
4019
|
+
set_pre(pre: string): void
|
|
4022
4020
|
/**
|
|
4023
4021
|
* Sets a source string that will be used instead of any generated
|
|
4024
4022
|
* source code or any previous snippets for this hook point. Please
|
|
@@ -4030,7 +4028,7 @@ export interface Snippet {
|
|
|
4030
4028
|
* immutable.
|
|
4031
4029
|
* @param replace The new source string for the replace section of this snippet.
|
|
4032
4030
|
*/
|
|
4033
|
-
set_replace(replace: string
|
|
4031
|
+
set_replace(replace: string): void
|
|
4034
4032
|
|
|
4035
4033
|
// Class property signals of Cogl-12.Cogl.Snippet
|
|
4036
4034
|
|
|
@@ -4110,13 +4108,13 @@ export interface Texture2D extends Texture {
|
|
|
4110
4108
|
* @param key name of the key for that association
|
|
4111
4109
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4112
4110
|
*/
|
|
4113
|
-
get_data(key: string
|
|
4111
|
+
get_data(key: string): any | null
|
|
4114
4112
|
/**
|
|
4115
4113
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4116
4114
|
* @param key name of the key for that association
|
|
4117
4115
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4118
4116
|
*/
|
|
4119
|
-
get_data(key: string
|
|
4117
|
+
get_data(key: string): any | null
|
|
4120
4118
|
/**
|
|
4121
4119
|
* `texture` a #CoglTexture.
|
|
4122
4120
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4184,7 +4182,7 @@ export interface Texture2D extends Texture {
|
|
|
4184
4182
|
* @param key name of the key
|
|
4185
4183
|
* @param data data to associate with that key
|
|
4186
4184
|
*/
|
|
4187
|
-
set_data(key: string
|
|
4185
|
+
set_data(key: string, data: any | null): void
|
|
4188
4186
|
/**
|
|
4189
4187
|
* Each object carries around a table of associations from
|
|
4190
4188
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4199,7 +4197,7 @@ export interface Texture2D extends Texture {
|
|
|
4199
4197
|
* @param key name of the key
|
|
4200
4198
|
* @param data data to associate with that key
|
|
4201
4199
|
*/
|
|
4202
|
-
set_data(key: string
|
|
4200
|
+
set_data(key: string, data: any | null): void
|
|
4203
4201
|
|
|
4204
4202
|
// Class property signals of Cogl-12.Cogl.Texture2D
|
|
4205
4203
|
|
|
@@ -4275,13 +4273,13 @@ export interface Texture2DSliced extends Texture {
|
|
|
4275
4273
|
* @param key name of the key for that association
|
|
4276
4274
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4277
4275
|
*/
|
|
4278
|
-
get_data(key: string
|
|
4276
|
+
get_data(key: string): any | null
|
|
4279
4277
|
/**
|
|
4280
4278
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4281
4279
|
* @param key name of the key for that association
|
|
4282
4280
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4283
4281
|
*/
|
|
4284
|
-
get_data(key: string
|
|
4282
|
+
get_data(key: string): any | null
|
|
4285
4283
|
/**
|
|
4286
4284
|
* `texture` a #CoglTexture.
|
|
4287
4285
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4349,7 +4347,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
4349
4347
|
* @param key name of the key
|
|
4350
4348
|
* @param data data to associate with that key
|
|
4351
4349
|
*/
|
|
4352
|
-
set_data(key: string
|
|
4350
|
+
set_data(key: string, data: any | null): void
|
|
4353
4351
|
/**
|
|
4354
4352
|
* Each object carries around a table of associations from
|
|
4355
4353
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4364,7 +4362,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
4364
4362
|
* @param key name of the key
|
|
4365
4363
|
* @param data data to associate with that key
|
|
4366
4364
|
*/
|
|
4367
|
-
set_data(key: string
|
|
4365
|
+
set_data(key: string, data: any | null): void
|
|
4368
4366
|
|
|
4369
4367
|
// Class property signals of Cogl-12.Cogl.Texture2DSliced
|
|
4370
4368
|
|
|
@@ -4662,7 +4660,7 @@ export interface DebugObjectTypeInfo {
|
|
|
4662
4660
|
* A human readable name for the type.
|
|
4663
4661
|
* @field
|
|
4664
4662
|
*/
|
|
4665
|
-
name: string
|
|
4663
|
+
name: string
|
|
4666
4664
|
/**
|
|
4667
4665
|
* The number of objects of this type that are
|
|
4668
4666
|
* currently in use
|
|
@@ -4916,7 +4914,7 @@ export interface TraceHead {
|
|
|
4916
4914
|
// Own fields of Cogl-12.Cogl.TraceHead
|
|
4917
4915
|
|
|
4918
4916
|
begin_time: number
|
|
4919
|
-
name: string
|
|
4917
|
+
name: string
|
|
4920
4918
|
description: string | null
|
|
4921
4919
|
}
|
|
4922
4920
|
|
package/cogl-12.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 {
|
|
@@ -2031,10 +2031,9 @@ module Framebuffer {
|
|
|
2031
2031
|
|
|
2032
2032
|
// Own constructor properties of Cogl-12.Cogl.Framebuffer
|
|
2033
2033
|
|
|
2034
|
-
|
|
2034
|
+
driverConfig?: any | null
|
|
2035
2035
|
height?: number | null
|
|
2036
2036
|
width?: number | null
|
|
2037
|
-
driverConfig?: any | null
|
|
2038
2037
|
}
|
|
2039
2038
|
|
|
2040
2039
|
}
|
|
@@ -2043,7 +2042,6 @@ interface Framebuffer {
|
|
|
2043
2042
|
|
|
2044
2043
|
// Own properties of Cogl-12.Cogl.Framebuffer
|
|
2045
2044
|
|
|
2046
|
-
readonly driver_config: any
|
|
2047
2045
|
readonly driverConfig: any
|
|
2048
2046
|
height: number
|
|
2049
2047
|
width: number
|
|
@@ -3451,7 +3449,7 @@ interface Pipeline {
|
|
|
3451
3449
|
* @param uniform_name The name of a uniform
|
|
3452
3450
|
* @returns A integer representing the location of the given uniform.
|
|
3453
3451
|
*/
|
|
3454
|
-
get_uniform_location(uniform_name: string
|
|
3452
|
+
get_uniform_location(uniform_name: string): number
|
|
3455
3453
|
/**
|
|
3456
3454
|
* Queries what user program has been associated with the given
|
|
3457
3455
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -3544,7 +3542,7 @@ interface Pipeline {
|
|
|
3544
3542
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
3545
3543
|
* @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).
|
|
3546
3544
|
*/
|
|
3547
|
-
set_blend(blend_string: string
|
|
3545
|
+
set_blend(blend_string: string): boolean
|
|
3548
3546
|
/**
|
|
3549
3547
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
3550
3548
|
* blending will depend on the constant set with this function.
|
|
@@ -3691,7 +3689,7 @@ interface Pipeline {
|
|
|
3691
3689
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
3692
3690
|
* @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
|
|
3693
3691
|
*/
|
|
3694
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
3692
|
+
set_layer_combine(layer_index: number, blend_string: string): boolean
|
|
3695
3693
|
/**
|
|
3696
3694
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
3697
3695
|
* description then you can use this function to define its value.
|
|
@@ -3980,11 +3978,11 @@ interface Snippet {
|
|
|
3980
3978
|
|
|
3981
3979
|
// Owm methods of Cogl-12.Cogl.Snippet
|
|
3982
3980
|
|
|
3983
|
-
get_declarations(): string
|
|
3981
|
+
get_declarations(): string
|
|
3984
3982
|
get_hook(): SnippetHook
|
|
3985
|
-
get_post(): string
|
|
3986
|
-
get_pre(): string
|
|
3987
|
-
get_replace(): string
|
|
3983
|
+
get_post(): string
|
|
3984
|
+
get_pre(): string
|
|
3985
|
+
get_replace(): string
|
|
3988
3986
|
/**
|
|
3989
3987
|
* Sets a source string that will be inserted in the global scope of
|
|
3990
3988
|
* the generated shader when this snippet is used on a pipeline. This
|
|
@@ -3996,7 +3994,7 @@ interface Snippet {
|
|
|
3996
3994
|
* immutable.
|
|
3997
3995
|
* @param declarations The new source string for the declarations section of this snippet.
|
|
3998
3996
|
*/
|
|
3999
|
-
set_declarations(declarations: string
|
|
3997
|
+
set_declarations(declarations: string): void
|
|
4000
3998
|
/**
|
|
4001
3999
|
* Sets a source string that will be inserted after the hook point in
|
|
4002
4000
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4008,7 +4006,7 @@ interface Snippet {
|
|
|
4008
4006
|
* immutable.
|
|
4009
4007
|
* @param post The new source string for the post section of this snippet.
|
|
4010
4008
|
*/
|
|
4011
|
-
set_post(post: string
|
|
4009
|
+
set_post(post: string): void
|
|
4012
4010
|
/**
|
|
4013
4011
|
* Sets a source string that will be inserted before the hook point in
|
|
4014
4012
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -4020,7 +4018,7 @@ interface Snippet {
|
|
|
4020
4018
|
* immutable.
|
|
4021
4019
|
* @param pre The new source string for the pre section of this snippet.
|
|
4022
4020
|
*/
|
|
4023
|
-
set_pre(pre: string
|
|
4021
|
+
set_pre(pre: string): void
|
|
4024
4022
|
/**
|
|
4025
4023
|
* Sets a source string that will be used instead of any generated
|
|
4026
4024
|
* source code or any previous snippets for this hook point. Please
|
|
@@ -4032,7 +4030,7 @@ interface Snippet {
|
|
|
4032
4030
|
* immutable.
|
|
4033
4031
|
* @param replace The new source string for the replace section of this snippet.
|
|
4034
4032
|
*/
|
|
4035
|
-
set_replace(replace: string
|
|
4033
|
+
set_replace(replace: string): void
|
|
4036
4034
|
|
|
4037
4035
|
// Class property signals of Cogl-12.Cogl.Snippet
|
|
4038
4036
|
|
|
@@ -4112,13 +4110,13 @@ interface Texture2D extends Texture {
|
|
|
4112
4110
|
* @param key name of the key for that association
|
|
4113
4111
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4114
4112
|
*/
|
|
4115
|
-
get_data(key: string
|
|
4113
|
+
get_data(key: string): any | null
|
|
4116
4114
|
/**
|
|
4117
4115
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4118
4116
|
* @param key name of the key for that association
|
|
4119
4117
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4120
4118
|
*/
|
|
4121
|
-
get_data(key: string
|
|
4119
|
+
get_data(key: string): any | null
|
|
4122
4120
|
/**
|
|
4123
4121
|
* `texture` a #CoglTexture.
|
|
4124
4122
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4186,7 +4184,7 @@ interface Texture2D extends Texture {
|
|
|
4186
4184
|
* @param key name of the key
|
|
4187
4185
|
* @param data data to associate with that key
|
|
4188
4186
|
*/
|
|
4189
|
-
set_data(key: string
|
|
4187
|
+
set_data(key: string, data: any | null): void
|
|
4190
4188
|
/**
|
|
4191
4189
|
* Each object carries around a table of associations from
|
|
4192
4190
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4201,7 +4199,7 @@ interface Texture2D extends Texture {
|
|
|
4201
4199
|
* @param key name of the key
|
|
4202
4200
|
* @param data data to associate with that key
|
|
4203
4201
|
*/
|
|
4204
|
-
set_data(key: string
|
|
4202
|
+
set_data(key: string, data: any | null): void
|
|
4205
4203
|
|
|
4206
4204
|
// Class property signals of Cogl-12.Cogl.Texture2D
|
|
4207
4205
|
|
|
@@ -4277,13 +4275,13 @@ interface Texture2DSliced extends Texture {
|
|
|
4277
4275
|
* @param key name of the key for that association
|
|
4278
4276
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4279
4277
|
*/
|
|
4280
|
-
get_data(key: string
|
|
4278
|
+
get_data(key: string): any | null
|
|
4281
4279
|
/**
|
|
4282
4280
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
4283
4281
|
* @param key name of the key for that association
|
|
4284
4282
|
* @returns the data if found, or %NULL if no such data exists.
|
|
4285
4283
|
*/
|
|
4286
|
-
get_data(key: string
|
|
4284
|
+
get_data(key: string): any | null
|
|
4287
4285
|
/**
|
|
4288
4286
|
* `texture` a #CoglTexture.
|
|
4289
4287
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4351,7 +4349,7 @@ interface Texture2DSliced extends Texture {
|
|
|
4351
4349
|
* @param key name of the key
|
|
4352
4350
|
* @param data data to associate with that key
|
|
4353
4351
|
*/
|
|
4354
|
-
set_data(key: string
|
|
4352
|
+
set_data(key: string, data: any | null): void
|
|
4355
4353
|
/**
|
|
4356
4354
|
* Each object carries around a table of associations from
|
|
4357
4355
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4366,7 +4364,7 @@ interface Texture2DSliced extends Texture {
|
|
|
4366
4364
|
* @param key name of the key
|
|
4367
4365
|
* @param data data to associate with that key
|
|
4368
4366
|
*/
|
|
4369
|
-
set_data(key: string
|
|
4367
|
+
set_data(key: string, data: any | null): void
|
|
4370
4368
|
|
|
4371
4369
|
// Class property signals of Cogl-12.Cogl.Texture2DSliced
|
|
4372
4370
|
|
|
@@ -4664,7 +4662,7 @@ interface DebugObjectTypeInfo {
|
|
|
4664
4662
|
* A human readable name for the type.
|
|
4665
4663
|
* @field
|
|
4666
4664
|
*/
|
|
4667
|
-
name: string
|
|
4665
|
+
name: string
|
|
4668
4666
|
/**
|
|
4669
4667
|
* The number of objects of this type that are
|
|
4670
4668
|
* currently in use
|
|
@@ -4918,7 +4916,7 @@ interface TraceHead {
|
|
|
4918
4916
|
// Own fields of Cogl-12.Cogl.TraceHead
|
|
4919
4917
|
|
|
4920
4918
|
begin_time: number
|
|
4921
|
-
name: string
|
|
4919
|
+
name: string
|
|
4922
4920
|
description: string | null
|
|
4923
4921
|
}
|
|
4924
4922
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/cogl-12",
|
|
3
|
-
"version": "12.0.0-3.2.
|
|
3
|
+
"version": "12.0.0-3.2.8",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Cogl-12, generated from library version 12.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "cogl-12.js",
|
|
7
7
|
"main": "cogl-12.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"./ambient":
|
|
10
|
-
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./cogl-12-ambient.d.ts",
|
|
11
|
+
"default": "./cogl-12-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./cogl-12-import.d.ts",
|
|
15
|
+
"default": "./cogl-12-import.js"
|
|
16
|
+
},
|
|
11
17
|
".": {
|
|
12
18
|
"import": {
|
|
13
19
|
"types": "./cogl-12.d.ts",
|
|
@@ -25,12 +31,12 @@
|
|
|
25
31
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cogl-12.d.cts"
|
|
26
32
|
},
|
|
27
33
|
"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.
|
|
32
|
-
"@girs/gobject-2.0": "^2.
|
|
33
|
-
"@girs/graphene-1.0": "^1.0.0-3.2.
|
|
34
|
+
"@girs/cairo-1.0": "^1.0.0-3.2.8",
|
|
35
|
+
"@girs/gjs": "^3.2.8",
|
|
36
|
+
"@girs/gl-1.0": "^1.0.0-3.2.8",
|
|
37
|
+
"@girs/glib-2.0": "^2.77.0-3.2.8",
|
|
38
|
+
"@girs/gobject-2.0": "^2.77.0-3.2.8",
|
|
39
|
+
"@girs/graphene-1.0": "^1.0.0-3.2.8"
|
|
34
40
|
},
|
|
35
41
|
"devDependencies": {
|
|
36
42
|
"typescript": "*"
|
|
@@ -47,7 +53,7 @@
|
|
|
47
53
|
"license": "MIT",
|
|
48
54
|
"repository": {
|
|
49
55
|
"type": "git",
|
|
50
|
-
"url": "git+https://github.com/gjsify/
|
|
56
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
51
57
|
},
|
|
52
58
|
"bugs": {
|
|
53
59
|
"url": "https://github.com/gjsify/ts-for-gir/issues"
|