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