@girs/cogl-10 10.0.0-3.2.6 → 10.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-10.d.cts +25 -25
- package/cogl-10.d.ts +25 -25
- 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-10, generated from library version 10.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Cogl-10, generated from library version 10.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-10.d.cts
CHANGED
|
@@ -1103,7 +1103,7 @@ export function pixel_format_get_n_planes(format: PixelFormat): number
|
|
|
1103
1103
|
* @param format a #CoglPixelFormat
|
|
1104
1104
|
* @returns A string representation of @format.
|
|
1105
1105
|
*/
|
|
1106
|
-
export function pixel_format_to_string(format: PixelFormat): string
|
|
1106
|
+
export function pixel_format_to_string(format: PixelFormat): string
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Attaches a shader to a program object. A program can have multiple
|
|
1109
1109
|
* vertex or fragment shaders but only one of them may provide a
|
|
@@ -1121,7 +1121,7 @@ export function program_attach_shader(program_handle: Handle, shader_handle: Han
|
|
|
1121
1121
|
* @param uniform_name the name of a uniform.
|
|
1122
1122
|
* @returns the offset of a uniform in a specified program.
|
|
1123
1123
|
*/
|
|
1124
|
-
export function program_get_uniform_location(handle: Handle, uniform_name: string
|
|
1124
|
+
export function program_get_uniform_location(handle: Handle, uniform_name: string): number
|
|
1125
1125
|
/**
|
|
1126
1126
|
* Links a program making it ready for use. Note that calling this
|
|
1127
1127
|
* function is optional. If it is not called the program will
|
|
@@ -1175,8 +1175,8 @@ export function program_set_uniform_int(program: Handle, uniform_location: numbe
|
|
|
1175
1175
|
export function program_set_uniform_matrix(program: Handle, uniform_location: number, dimensions: number, transpose: boolean, value: number[]): void
|
|
1176
1176
|
export function scanout_error_quark(): GLib.Quark
|
|
1177
1177
|
export function set_tracing_disabled_on_thread(main_context: GLib.MainContext): void
|
|
1178
|
-
export function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string
|
|
1179
|
-
export function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string
|
|
1178
|
+
export function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string, filename: string): void
|
|
1179
|
+
export function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string, fd: number): void
|
|
1180
1180
|
/**
|
|
1181
1181
|
* Retrieves the type of a shader #CoglHandle
|
|
1182
1182
|
* @param handle #CoglHandle for a shader.
|
|
@@ -1193,7 +1193,7 @@ export function shader_get_type(handle: Handle): ShaderType
|
|
|
1193
1193
|
* @param shader #CoglHandle for a shader.
|
|
1194
1194
|
* @param source Shader source.
|
|
1195
1195
|
*/
|
|
1196
|
-
export function shader_source(shader: Handle, source: string
|
|
1196
|
+
export function shader_source(shader: Handle, source: string): void
|
|
1197
1197
|
export function texture_error_quark(): number
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Creates a #CoglTexture from a #CoglBitmap.
|
|
@@ -1222,8 +1222,8 @@ export function texture_new_from_data(width: number, height: number, flags: Text
|
|
|
1222
1222
|
* @param internal_format the #CoglPixelFormat to use for the GPU storage of the texture. If %COGL_PIXEL_FORMAT_ANY is given then a premultiplied format similar to the format of the source data will be used. The default blending equations of Cogl expect premultiplied color data; the main use of passing a non-premultiplied format here is if you have non-premultiplied source data and are going to adjust the blend mode (see cogl_material_set_blend()) or use the data for something other than straight blending.
|
|
1223
1223
|
* @returns A newly created #CoglTexture or %NULL on failure
|
|
1224
1224
|
*/
|
|
1225
|
-
export function texture_new_from_file(filename: string
|
|
1226
|
-
export function trace_describe(head: TraceHead, description: string
|
|
1225
|
+
export function texture_new_from_file(filename: string, flags: TextureFlags, internal_format: PixelFormat): Texture
|
|
1226
|
+
export function trace_describe(head: TraceHead, description: string): void
|
|
1227
1227
|
export function trace_end(head: TraceHead): void
|
|
1228
1228
|
/**
|
|
1229
1229
|
* A callback function to use for cogl_debug_object_foreach_type().
|
|
@@ -1339,7 +1339,7 @@ export interface Texture extends Object {
|
|
|
1339
1339
|
* @param key name of the key for that association
|
|
1340
1340
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1341
1341
|
*/
|
|
1342
|
-
get_data(key: string
|
|
1342
|
+
get_data(key: string): any | null
|
|
1343
1343
|
/**
|
|
1344
1344
|
* Queries the GL handles for a GPU side texture through its #CoglTexture.
|
|
1345
1345
|
*
|
|
@@ -1469,7 +1469,7 @@ export interface Texture extends Object {
|
|
|
1469
1469
|
* @param key name of the key
|
|
1470
1470
|
* @param data data to associate with that key
|
|
1471
1471
|
*/
|
|
1472
|
-
set_data(key: string
|
|
1472
|
+
set_data(key: string, data: any | null): void
|
|
1473
1473
|
/**
|
|
1474
1474
|
* Affects the internal storage format for this texture by specifying
|
|
1475
1475
|
* whether red, green and blue color components should be stored as
|
|
@@ -1577,7 +1577,7 @@ export class Texture extends GObject.Object {
|
|
|
1577
1577
|
* @param internal_format the #CoglPixelFormat to use for the GPU storage of the texture. If %COGL_PIXEL_FORMAT_ANY is given then a premultiplied format similar to the format of the source data will be used. The default blending equations of Cogl expect premultiplied color data; the main use of passing a non-premultiplied format here is if you have non-premultiplied source data and are going to adjust the blend mode (see cogl_material_set_blend()) or use the data for something other than straight blending.
|
|
1578
1578
|
* @returns A newly created #CoglTexture or %NULL on failure
|
|
1579
1579
|
*/
|
|
1580
|
-
static new_from_file(filename: string
|
|
1580
|
+
static new_from_file(filename: string, flags: TextureFlags, internal_format: PixelFormat): Texture
|
|
1581
1581
|
static error_quark(): number
|
|
1582
1582
|
}
|
|
1583
1583
|
|
|
@@ -1624,7 +1624,7 @@ export class Bitmap extends Object {
|
|
|
1624
1624
|
* @param filename the file to load.
|
|
1625
1625
|
* @returns a #CoglBitmap to the new loaded image data, or %NULL if loading the image failed.
|
|
1626
1626
|
*/
|
|
1627
|
-
static new_from_file(filename: string
|
|
1627
|
+
static new_from_file(filename: string): Bitmap
|
|
1628
1628
|
_init(config?: Bitmap.ConstructorProperties): void
|
|
1629
1629
|
static error_quark(): number
|
|
1630
1630
|
/**
|
|
@@ -1633,7 +1633,7 @@ export class Bitmap extends Object {
|
|
|
1633
1633
|
* @param filename the file to check
|
|
1634
1634
|
* @returns %TRUE if the image was successfully parsed
|
|
1635
1635
|
*/
|
|
1636
|
-
static get_size_from_file(filename: string
|
|
1636
|
+
static get_size_from_file(filename: string): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
|
|
1637
1637
|
}
|
|
1638
1638
|
|
|
1639
1639
|
export module Context {
|
|
@@ -3194,7 +3194,7 @@ export interface Pipeline {
|
|
|
3194
3194
|
* @param uniform_name The name of a uniform
|
|
3195
3195
|
* @returns A integer representing the location of the given uniform.
|
|
3196
3196
|
*/
|
|
3197
|
-
get_uniform_location(uniform_name: string
|
|
3197
|
+
get_uniform_location(uniform_name: string): number
|
|
3198
3198
|
/**
|
|
3199
3199
|
* Queries what user program has been associated with the given
|
|
3200
3200
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -3287,7 +3287,7 @@ export interface Pipeline {
|
|
|
3287
3287
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
3288
3288
|
* @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).
|
|
3289
3289
|
*/
|
|
3290
|
-
set_blend(blend_string: string
|
|
3290
|
+
set_blend(blend_string: string): boolean
|
|
3291
3291
|
/**
|
|
3292
3292
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
3293
3293
|
* blending will depend on the constant set with this function.
|
|
@@ -3438,7 +3438,7 @@ export interface Pipeline {
|
|
|
3438
3438
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
3439
3439
|
* @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
|
|
3440
3440
|
*/
|
|
3441
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
3441
|
+
set_layer_combine(layer_index: number, blend_string: string): boolean
|
|
3442
3442
|
/**
|
|
3443
3443
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
3444
3444
|
* description then you can use this function to define its value.
|
|
@@ -3753,13 +3753,13 @@ export interface Texture2D extends Texture {
|
|
|
3753
3753
|
* @param key name of the key for that association
|
|
3754
3754
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3755
3755
|
*/
|
|
3756
|
-
get_data(key: string
|
|
3756
|
+
get_data(key: string): any | null
|
|
3757
3757
|
/**
|
|
3758
3758
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
3759
3759
|
* @param key name of the key for that association
|
|
3760
3760
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3761
3761
|
*/
|
|
3762
|
-
get_data(key: string
|
|
3762
|
+
get_data(key: string): any | null
|
|
3763
3763
|
/**
|
|
3764
3764
|
* `texture` a #CoglTexture.
|
|
3765
3765
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -3827,7 +3827,7 @@ export interface Texture2D extends Texture {
|
|
|
3827
3827
|
* @param key name of the key
|
|
3828
3828
|
* @param data data to associate with that key
|
|
3829
3829
|
*/
|
|
3830
|
-
set_data(key: string
|
|
3830
|
+
set_data(key: string, data: any | null): void
|
|
3831
3831
|
/**
|
|
3832
3832
|
* Each object carries around a table of associations from
|
|
3833
3833
|
* strings to pointers. This function lets you set an association.
|
|
@@ -3842,7 +3842,7 @@ export interface Texture2D extends Texture {
|
|
|
3842
3842
|
* @param key name of the key
|
|
3843
3843
|
* @param data data to associate with that key
|
|
3844
3844
|
*/
|
|
3845
|
-
set_data(key: string
|
|
3845
|
+
set_data(key: string, data: any | null): void
|
|
3846
3846
|
|
|
3847
3847
|
// Class property signals of Cogl-10.Cogl.Texture2D
|
|
3848
3848
|
|
|
@@ -3929,13 +3929,13 @@ export interface Texture2DSliced extends Texture {
|
|
|
3929
3929
|
* @param key name of the key for that association
|
|
3930
3930
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3931
3931
|
*/
|
|
3932
|
-
get_data(key: string
|
|
3932
|
+
get_data(key: string): any | null
|
|
3933
3933
|
/**
|
|
3934
3934
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
3935
3935
|
* @param key name of the key for that association
|
|
3936
3936
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3937
3937
|
*/
|
|
3938
|
-
get_data(key: string
|
|
3938
|
+
get_data(key: string): any | null
|
|
3939
3939
|
/**
|
|
3940
3940
|
* `texture` a #CoglTexture.
|
|
3941
3941
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4003,7 +4003,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
4003
4003
|
* @param key name of the key
|
|
4004
4004
|
* @param data data to associate with that key
|
|
4005
4005
|
*/
|
|
4006
|
-
set_data(key: string
|
|
4006
|
+
set_data(key: string, data: any | null): void
|
|
4007
4007
|
/**
|
|
4008
4008
|
* Each object carries around a table of associations from
|
|
4009
4009
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4018,7 +4018,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
4018
4018
|
* @param key name of the key
|
|
4019
4019
|
* @param data data to associate with that key
|
|
4020
4020
|
*/
|
|
4021
|
-
set_data(key: string
|
|
4021
|
+
set_data(key: string, data: any | null): void
|
|
4022
4022
|
|
|
4023
4023
|
// Class property signals of Cogl-10.Cogl.Texture2DSliced
|
|
4024
4024
|
|
|
@@ -4327,7 +4327,7 @@ export interface DebugObjectTypeInfo {
|
|
|
4327
4327
|
* A human readable name for the type.
|
|
4328
4328
|
* @field
|
|
4329
4329
|
*/
|
|
4330
|
-
name: string
|
|
4330
|
+
name: string
|
|
4331
4331
|
/**
|
|
4332
4332
|
* The number of objects of this type that are
|
|
4333
4333
|
* currently in use
|
|
@@ -4581,7 +4581,7 @@ export interface TraceHead {
|
|
|
4581
4581
|
// Own fields of Cogl-10.Cogl.TraceHead
|
|
4582
4582
|
|
|
4583
4583
|
begin_time: number
|
|
4584
|
-
name: string
|
|
4584
|
+
name: string
|
|
4585
4585
|
description: string | null
|
|
4586
4586
|
}
|
|
4587
4587
|
|
package/cogl-10.d.ts
CHANGED
|
@@ -1105,7 +1105,7 @@ function pixel_format_get_n_planes(format: PixelFormat): number
|
|
|
1105
1105
|
* @param format a #CoglPixelFormat
|
|
1106
1106
|
* @returns A string representation of @format.
|
|
1107
1107
|
*/
|
|
1108
|
-
function pixel_format_to_string(format: PixelFormat): string
|
|
1108
|
+
function pixel_format_to_string(format: PixelFormat): string
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Attaches a shader to a program object. A program can have multiple
|
|
1111
1111
|
* vertex or fragment shaders but only one of them may provide a
|
|
@@ -1123,7 +1123,7 @@ function program_attach_shader(program_handle: Handle, shader_handle: Handle): v
|
|
|
1123
1123
|
* @param uniform_name the name of a uniform.
|
|
1124
1124
|
* @returns the offset of a uniform in a specified program.
|
|
1125
1125
|
*/
|
|
1126
|
-
function program_get_uniform_location(handle: Handle, uniform_name: string
|
|
1126
|
+
function program_get_uniform_location(handle: Handle, uniform_name: string): number
|
|
1127
1127
|
/**
|
|
1128
1128
|
* Links a program making it ready for use. Note that calling this
|
|
1129
1129
|
* function is optional. If it is not called the program will
|
|
@@ -1177,8 +1177,8 @@ function program_set_uniform_int(program: Handle, uniform_location: number, n_co
|
|
|
1177
1177
|
function program_set_uniform_matrix(program: Handle, uniform_location: number, dimensions: number, transpose: boolean, value: number[]): void
|
|
1178
1178
|
function scanout_error_quark(): GLib.Quark
|
|
1179
1179
|
function set_tracing_disabled_on_thread(main_context: GLib.MainContext): void
|
|
1180
|
-
function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string
|
|
1181
|
-
function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string
|
|
1180
|
+
function set_tracing_enabled_on_thread(main_context: GLib.MainContext, group: string, filename: string): void
|
|
1181
|
+
function set_tracing_enabled_on_thread_with_fd(main_context: GLib.MainContext, group: string, fd: number): void
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Retrieves the type of a shader #CoglHandle
|
|
1184
1184
|
* @param handle #CoglHandle for a shader.
|
|
@@ -1195,7 +1195,7 @@ function shader_get_type(handle: Handle): ShaderType
|
|
|
1195
1195
|
* @param shader #CoglHandle for a shader.
|
|
1196
1196
|
* @param source Shader source.
|
|
1197
1197
|
*/
|
|
1198
|
-
function shader_source(shader: Handle, source: string
|
|
1198
|
+
function shader_source(shader: Handle, source: string): void
|
|
1199
1199
|
function texture_error_quark(): number
|
|
1200
1200
|
/**
|
|
1201
1201
|
* Creates a #CoglTexture from a #CoglBitmap.
|
|
@@ -1224,8 +1224,8 @@ function texture_new_from_data(width: number, height: number, flags: TextureFlag
|
|
|
1224
1224
|
* @param internal_format the #CoglPixelFormat to use for the GPU storage of the texture. If %COGL_PIXEL_FORMAT_ANY is given then a premultiplied format similar to the format of the source data will be used. The default blending equations of Cogl expect premultiplied color data; the main use of passing a non-premultiplied format here is if you have non-premultiplied source data and are going to adjust the blend mode (see cogl_material_set_blend()) or use the data for something other than straight blending.
|
|
1225
1225
|
* @returns A newly created #CoglTexture or %NULL on failure
|
|
1226
1226
|
*/
|
|
1227
|
-
function texture_new_from_file(filename: string
|
|
1228
|
-
function trace_describe(head: TraceHead, description: string
|
|
1227
|
+
function texture_new_from_file(filename: string, flags: TextureFlags, internal_format: PixelFormat): Texture
|
|
1228
|
+
function trace_describe(head: TraceHead, description: string): void
|
|
1229
1229
|
function trace_end(head: TraceHead): void
|
|
1230
1230
|
/**
|
|
1231
1231
|
* A callback function to use for cogl_debug_object_foreach_type().
|
|
@@ -1341,7 +1341,7 @@ interface Texture extends Object {
|
|
|
1341
1341
|
* @param key name of the key for that association
|
|
1342
1342
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1343
1343
|
*/
|
|
1344
|
-
get_data(key: string
|
|
1344
|
+
get_data(key: string): any | null
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Queries the GL handles for a GPU side texture through its #CoglTexture.
|
|
1347
1347
|
*
|
|
@@ -1471,7 +1471,7 @@ interface Texture extends Object {
|
|
|
1471
1471
|
* @param key name of the key
|
|
1472
1472
|
* @param data data to associate with that key
|
|
1473
1473
|
*/
|
|
1474
|
-
set_data(key: string
|
|
1474
|
+
set_data(key: string, data: any | null): void
|
|
1475
1475
|
/**
|
|
1476
1476
|
* Affects the internal storage format for this texture by specifying
|
|
1477
1477
|
* whether red, green and blue color components should be stored as
|
|
@@ -1579,7 +1579,7 @@ class Texture extends GObject.Object {
|
|
|
1579
1579
|
* @param internal_format the #CoglPixelFormat to use for the GPU storage of the texture. If %COGL_PIXEL_FORMAT_ANY is given then a premultiplied format similar to the format of the source data will be used. The default blending equations of Cogl expect premultiplied color data; the main use of passing a non-premultiplied format here is if you have non-premultiplied source data and are going to adjust the blend mode (see cogl_material_set_blend()) or use the data for something other than straight blending.
|
|
1580
1580
|
* @returns A newly created #CoglTexture or %NULL on failure
|
|
1581
1581
|
*/
|
|
1582
|
-
static new_from_file(filename: string
|
|
1582
|
+
static new_from_file(filename: string, flags: TextureFlags, internal_format: PixelFormat): Texture
|
|
1583
1583
|
static error_quark(): number
|
|
1584
1584
|
}
|
|
1585
1585
|
|
|
@@ -1626,7 +1626,7 @@ class Bitmap extends Object {
|
|
|
1626
1626
|
* @param filename the file to load.
|
|
1627
1627
|
* @returns a #CoglBitmap to the new loaded image data, or %NULL if loading the image failed.
|
|
1628
1628
|
*/
|
|
1629
|
-
static new_from_file(filename: string
|
|
1629
|
+
static new_from_file(filename: string): Bitmap
|
|
1630
1630
|
_init(config?: Bitmap.ConstructorProperties): void
|
|
1631
1631
|
static error_quark(): number
|
|
1632
1632
|
/**
|
|
@@ -1635,7 +1635,7 @@ class Bitmap extends Object {
|
|
|
1635
1635
|
* @param filename the file to check
|
|
1636
1636
|
* @returns %TRUE if the image was successfully parsed
|
|
1637
1637
|
*/
|
|
1638
|
-
static get_size_from_file(filename: string
|
|
1638
|
+
static get_size_from_file(filename: string): [ /* returnType */ boolean, /* width */ number, /* height */ number ]
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
1641
1641
|
module Context {
|
|
@@ -3196,7 +3196,7 @@ interface Pipeline {
|
|
|
3196
3196
|
* @param uniform_name The name of a uniform
|
|
3197
3197
|
* @returns A integer representing the location of the given uniform.
|
|
3198
3198
|
*/
|
|
3199
|
-
get_uniform_location(uniform_name: string
|
|
3199
|
+
get_uniform_location(uniform_name: string): number
|
|
3200
3200
|
/**
|
|
3201
3201
|
* Queries what user program has been associated with the given
|
|
3202
3202
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -3289,7 +3289,7 @@ interface Pipeline {
|
|
|
3289
3289
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
3290
3290
|
* @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).
|
|
3291
3291
|
*/
|
|
3292
|
-
set_blend(blend_string: string
|
|
3292
|
+
set_blend(blend_string: string): boolean
|
|
3293
3293
|
/**
|
|
3294
3294
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
3295
3295
|
* blending will depend on the constant set with this function.
|
|
@@ -3440,7 +3440,7 @@ interface Pipeline {
|
|
|
3440
3440
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
3441
3441
|
* @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
|
|
3442
3442
|
*/
|
|
3443
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
3443
|
+
set_layer_combine(layer_index: number, blend_string: string): boolean
|
|
3444
3444
|
/**
|
|
3445
3445
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
3446
3446
|
* description then you can use this function to define its value.
|
|
@@ -3755,13 +3755,13 @@ interface Texture2D extends Texture {
|
|
|
3755
3755
|
* @param key name of the key for that association
|
|
3756
3756
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3757
3757
|
*/
|
|
3758
|
-
get_data(key: string
|
|
3758
|
+
get_data(key: string): any | null
|
|
3759
3759
|
/**
|
|
3760
3760
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
3761
3761
|
* @param key name of the key for that association
|
|
3762
3762
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3763
3763
|
*/
|
|
3764
|
-
get_data(key: string
|
|
3764
|
+
get_data(key: string): any | null
|
|
3765
3765
|
/**
|
|
3766
3766
|
* `texture` a #CoglTexture.
|
|
3767
3767
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -3829,7 +3829,7 @@ interface Texture2D extends Texture {
|
|
|
3829
3829
|
* @param key name of the key
|
|
3830
3830
|
* @param data data to associate with that key
|
|
3831
3831
|
*/
|
|
3832
|
-
set_data(key: string
|
|
3832
|
+
set_data(key: string, data: any | null): void
|
|
3833
3833
|
/**
|
|
3834
3834
|
* Each object carries around a table of associations from
|
|
3835
3835
|
* strings to pointers. This function lets you set an association.
|
|
@@ -3844,7 +3844,7 @@ interface Texture2D extends Texture {
|
|
|
3844
3844
|
* @param key name of the key
|
|
3845
3845
|
* @param data data to associate with that key
|
|
3846
3846
|
*/
|
|
3847
|
-
set_data(key: string
|
|
3847
|
+
set_data(key: string, data: any | null): void
|
|
3848
3848
|
|
|
3849
3849
|
// Class property signals of Cogl-10.Cogl.Texture2D
|
|
3850
3850
|
|
|
@@ -3931,13 +3931,13 @@ interface Texture2DSliced extends Texture {
|
|
|
3931
3931
|
* @param key name of the key for that association
|
|
3932
3932
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3933
3933
|
*/
|
|
3934
|
-
get_data(key: string
|
|
3934
|
+
get_data(key: string): any | null
|
|
3935
3935
|
/**
|
|
3936
3936
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
3937
3937
|
* @param key name of the key for that association
|
|
3938
3938
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3939
3939
|
*/
|
|
3940
|
-
get_data(key: string
|
|
3940
|
+
get_data(key: string): any | null
|
|
3941
3941
|
/**
|
|
3942
3942
|
* `texture` a #CoglTexture.
|
|
3943
3943
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -4005,7 +4005,7 @@ interface Texture2DSliced extends Texture {
|
|
|
4005
4005
|
* @param key name of the key
|
|
4006
4006
|
* @param data data to associate with that key
|
|
4007
4007
|
*/
|
|
4008
|
-
set_data(key: string
|
|
4008
|
+
set_data(key: string, data: any | null): void
|
|
4009
4009
|
/**
|
|
4010
4010
|
* Each object carries around a table of associations from
|
|
4011
4011
|
* strings to pointers. This function lets you set an association.
|
|
@@ -4020,7 +4020,7 @@ interface Texture2DSliced extends Texture {
|
|
|
4020
4020
|
* @param key name of the key
|
|
4021
4021
|
* @param data data to associate with that key
|
|
4022
4022
|
*/
|
|
4023
|
-
set_data(key: string
|
|
4023
|
+
set_data(key: string, data: any | null): void
|
|
4024
4024
|
|
|
4025
4025
|
// Class property signals of Cogl-10.Cogl.Texture2DSliced
|
|
4026
4026
|
|
|
@@ -4329,7 +4329,7 @@ interface DebugObjectTypeInfo {
|
|
|
4329
4329
|
* A human readable name for the type.
|
|
4330
4330
|
* @field
|
|
4331
4331
|
*/
|
|
4332
|
-
name: string
|
|
4332
|
+
name: string
|
|
4333
4333
|
/**
|
|
4334
4334
|
* The number of objects of this type that are
|
|
4335
4335
|
* currently in use
|
|
@@ -4583,7 +4583,7 @@ interface TraceHead {
|
|
|
4583
4583
|
// Own fields of Cogl-10.Cogl.TraceHead
|
|
4584
4584
|
|
|
4585
4585
|
begin_time: number
|
|
4586
|
-
name: string
|
|
4586
|
+
name: string
|
|
4587
4587
|
description: string | null
|
|
4588
4588
|
}
|
|
4589
4589
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/cogl-10",
|
|
3
|
-
"version": "10.0.0-3.2.
|
|
3
|
+
"version": "10.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Cogl-10, generated from library version 10.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "cogl-10.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cogl-10.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": "*"
|