@girs/osmgpsmap-1.0 1.0.0-4.0.0-beta.21 → 1.0.0-4.0.0-beta.24
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/osmgpsmap-1.0.d.ts +331 -52
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for OsmGpsMap-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for OsmGpsMap-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/osmgpsmap-1.0.d.ts
CHANGED
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import '@girs/gjs';
|
|
11
|
+
|
|
10
12
|
// Module dependencies
|
|
11
13
|
import type Gtk from '@girs/gtk-3.0';
|
|
12
14
|
import type xlib from '@girs/xlib-2.0';
|
|
13
15
|
import type Gdk from '@girs/gdk-3.0';
|
|
14
|
-
import type cairo from '
|
|
16
|
+
import type cairo from 'cairo';
|
|
15
17
|
import type GObject from '@girs/gobject-2.0';
|
|
16
18
|
import type GLib from '@girs/glib-2.0';
|
|
17
19
|
import type Pango from '@girs/pango-1.0';
|
|
@@ -68,10 +70,73 @@ export namespace OsmGpsMap {
|
|
|
68
70
|
const MAP_CACHE_FRIENDLY: string;
|
|
69
71
|
const MAP_INVALID: number;
|
|
70
72
|
namespace Map {
|
|
71
|
-
// Signal
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
(
|
|
73
|
+
// Signal signatures
|
|
74
|
+
interface SignalSignatures extends Gtk.DrawingArea.SignalSignatures {
|
|
75
|
+
changed: () => void;
|
|
76
|
+
'notify::auto-center': (pspec: GObject.ParamSpec) => void;
|
|
77
|
+
'notify::auto-center-threshold': (pspec: GObject.ParamSpec) => void;
|
|
78
|
+
'notify::auto-download': (pspec: GObject.ParamSpec) => void;
|
|
79
|
+
'notify::drag-limit': (pspec: GObject.ParamSpec) => void;
|
|
80
|
+
'notify::gps-track-highlight-radius': (pspec: GObject.ParamSpec) => void;
|
|
81
|
+
'notify::gps-track-point-radius': (pspec: GObject.ParamSpec) => void;
|
|
82
|
+
'notify::gps-track-width': (pspec: GObject.ParamSpec) => void;
|
|
83
|
+
'notify::image-format': (pspec: GObject.ParamSpec) => void;
|
|
84
|
+
'notify::latitude': (pspec: GObject.ParamSpec) => void;
|
|
85
|
+
'notify::longitude': (pspec: GObject.ParamSpec) => void;
|
|
86
|
+
'notify::map-source': (pspec: GObject.ParamSpec) => void;
|
|
87
|
+
'notify::map-x': (pspec: GObject.ParamSpec) => void;
|
|
88
|
+
'notify::map-y': (pspec: GObject.ParamSpec) => void;
|
|
89
|
+
'notify::max-zoom': (pspec: GObject.ParamSpec) => void;
|
|
90
|
+
'notify::min-zoom': (pspec: GObject.ParamSpec) => void;
|
|
91
|
+
'notify::proxy-uri': (pspec: GObject.ParamSpec) => void;
|
|
92
|
+
'notify::record-trip-history': (pspec: GObject.ParamSpec) => void;
|
|
93
|
+
'notify::repo-uri': (pspec: GObject.ParamSpec) => void;
|
|
94
|
+
'notify::show-gps-point': (pspec: GObject.ParamSpec) => void;
|
|
95
|
+
'notify::show-trip-history': (pspec: GObject.ParamSpec) => void;
|
|
96
|
+
'notify::tile-cache': (pspec: GObject.ParamSpec) => void;
|
|
97
|
+
'notify::tile-cache-base': (pspec: GObject.ParamSpec) => void;
|
|
98
|
+
'notify::tile-zoom-offset': (pspec: GObject.ParamSpec) => void;
|
|
99
|
+
'notify::tiles-queued': (pspec: GObject.ParamSpec) => void;
|
|
100
|
+
'notify::zoom': (pspec: GObject.ParamSpec) => void;
|
|
101
|
+
'notify::app-paintable': (pspec: GObject.ParamSpec) => void;
|
|
102
|
+
'notify::can-default': (pspec: GObject.ParamSpec) => void;
|
|
103
|
+
'notify::can-focus': (pspec: GObject.ParamSpec) => void;
|
|
104
|
+
'notify::composite-child': (pspec: GObject.ParamSpec) => void;
|
|
105
|
+
'notify::double-buffered': (pspec: GObject.ParamSpec) => void;
|
|
106
|
+
'notify::events': (pspec: GObject.ParamSpec) => void;
|
|
107
|
+
'notify::expand': (pspec: GObject.ParamSpec) => void;
|
|
108
|
+
'notify::focus-on-click': (pspec: GObject.ParamSpec) => void;
|
|
109
|
+
'notify::halign': (pspec: GObject.ParamSpec) => void;
|
|
110
|
+
'notify::has-default': (pspec: GObject.ParamSpec) => void;
|
|
111
|
+
'notify::has-focus': (pspec: GObject.ParamSpec) => void;
|
|
112
|
+
'notify::has-tooltip': (pspec: GObject.ParamSpec) => void;
|
|
113
|
+
'notify::height-request': (pspec: GObject.ParamSpec) => void;
|
|
114
|
+
'notify::hexpand': (pspec: GObject.ParamSpec) => void;
|
|
115
|
+
'notify::hexpand-set': (pspec: GObject.ParamSpec) => void;
|
|
116
|
+
'notify::is-focus': (pspec: GObject.ParamSpec) => void;
|
|
117
|
+
'notify::margin': (pspec: GObject.ParamSpec) => void;
|
|
118
|
+
'notify::margin-bottom': (pspec: GObject.ParamSpec) => void;
|
|
119
|
+
'notify::margin-end': (pspec: GObject.ParamSpec) => void;
|
|
120
|
+
'notify::margin-left': (pspec: GObject.ParamSpec) => void;
|
|
121
|
+
'notify::margin-right': (pspec: GObject.ParamSpec) => void;
|
|
122
|
+
'notify::margin-start': (pspec: GObject.ParamSpec) => void;
|
|
123
|
+
'notify::margin-top': (pspec: GObject.ParamSpec) => void;
|
|
124
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
125
|
+
'notify::no-show-all': (pspec: GObject.ParamSpec) => void;
|
|
126
|
+
'notify::opacity': (pspec: GObject.ParamSpec) => void;
|
|
127
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
128
|
+
'notify::receives-default': (pspec: GObject.ParamSpec) => void;
|
|
129
|
+
'notify::scale-factor': (pspec: GObject.ParamSpec) => void;
|
|
130
|
+
'notify::sensitive': (pspec: GObject.ParamSpec) => void;
|
|
131
|
+
'notify::style': (pspec: GObject.ParamSpec) => void;
|
|
132
|
+
'notify::tooltip-markup': (pspec: GObject.ParamSpec) => void;
|
|
133
|
+
'notify::tooltip-text': (pspec: GObject.ParamSpec) => void;
|
|
134
|
+
'notify::valign': (pspec: GObject.ParamSpec) => void;
|
|
135
|
+
'notify::vexpand': (pspec: GObject.ParamSpec) => void;
|
|
136
|
+
'notify::vexpand-set': (pspec: GObject.ParamSpec) => void;
|
|
137
|
+
'notify::visible': (pspec: GObject.ParamSpec) => void;
|
|
138
|
+
'notify::width-request': (pspec: GObject.ParamSpec) => void;
|
|
139
|
+
'notify::window': (pspec: GObject.ParamSpec) => void;
|
|
75
140
|
}
|
|
76
141
|
|
|
77
142
|
// Constructor properties interface
|
|
@@ -427,6 +492,15 @@ export namespace OsmGpsMap {
|
|
|
427
492
|
*/
|
|
428
493
|
get zoom(): number;
|
|
429
494
|
|
|
495
|
+
/**
|
|
496
|
+
* Compile-time signal type information.
|
|
497
|
+
*
|
|
498
|
+
* This instance property is generated only for TypeScript type checking.
|
|
499
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
500
|
+
* @internal
|
|
501
|
+
*/
|
|
502
|
+
$signals: Map.SignalSignatures;
|
|
503
|
+
|
|
430
504
|
// Constructors
|
|
431
505
|
|
|
432
506
|
constructor(properties?: Partial<Map.ConstructorProps>, ...args: any[]);
|
|
@@ -437,12 +511,21 @@ export namespace OsmGpsMap {
|
|
|
437
511
|
|
|
438
512
|
// Signals
|
|
439
513
|
|
|
440
|
-
connect
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
514
|
+
connect<K extends keyof Map.SignalSignatures>(
|
|
515
|
+
signal: K,
|
|
516
|
+
callback: GObject.SignalCallback<this, Map.SignalSignatures[K]>,
|
|
517
|
+
): number;
|
|
518
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
519
|
+
connect_after<K extends keyof Map.SignalSignatures>(
|
|
520
|
+
signal: K,
|
|
521
|
+
callback: GObject.SignalCallback<this, Map.SignalSignatures[K]>,
|
|
522
|
+
): number;
|
|
523
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
524
|
+
emit<K extends keyof Map.SignalSignatures>(
|
|
525
|
+
signal: K,
|
|
526
|
+
...args: GObject.GjsParameters<Map.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
527
|
+
): void;
|
|
528
|
+
emit(signal: string, ...args: any[]): void;
|
|
446
529
|
|
|
447
530
|
// Static methods
|
|
448
531
|
|
|
@@ -681,7 +764,21 @@ export namespace OsmGpsMap {
|
|
|
681
764
|
* @returns the data if found, or %NULL if no such data exists.
|
|
682
765
|
*/
|
|
683
766
|
get_data(key: string): any | null;
|
|
684
|
-
|
|
767
|
+
/**
|
|
768
|
+
* Gets a property of an object.
|
|
769
|
+
*
|
|
770
|
+
* The value can be:
|
|
771
|
+
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
|
|
772
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
773
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
774
|
+
*
|
|
775
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
776
|
+
*
|
|
777
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
778
|
+
* @param property_name The name of the property to get
|
|
779
|
+
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
|
|
780
|
+
*/
|
|
781
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
685
782
|
/**
|
|
686
783
|
* This function gets back user data pointers stored via
|
|
687
784
|
* g_object_set_qdata().
|
|
@@ -809,7 +906,12 @@ export namespace OsmGpsMap {
|
|
|
809
906
|
* @param data data to associate with that key
|
|
810
907
|
*/
|
|
811
908
|
set_data(key: string, data?: any | null): void;
|
|
812
|
-
|
|
909
|
+
/**
|
|
910
|
+
* Sets a property on an object.
|
|
911
|
+
* @param property_name The name of the property to set
|
|
912
|
+
* @param value The value to set the property to
|
|
913
|
+
*/
|
|
914
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
813
915
|
/**
|
|
814
916
|
* Remove a specified datum from the object's data associations,
|
|
815
917
|
* without invoking the association's destroy handler.
|
|
@@ -959,14 +1061,44 @@ export namespace OsmGpsMap {
|
|
|
959
1061
|
* @param pspec
|
|
960
1062
|
*/
|
|
961
1063
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
1064
|
+
/**
|
|
1065
|
+
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
|
|
1066
|
+
* @param id Handler ID of the handler to be disconnected
|
|
1067
|
+
*/
|
|
962
1068
|
disconnect(id: number): void;
|
|
1069
|
+
/**
|
|
1070
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
1071
|
+
* @param properties Object containing the properties to set
|
|
1072
|
+
*/
|
|
963
1073
|
set(properties: { [key: string]: any }): void;
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1074
|
+
/**
|
|
1075
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
1076
|
+
* @param id Handler ID of the handler to be blocked
|
|
1077
|
+
*/
|
|
1078
|
+
block_signal_handler(id: number): void;
|
|
1079
|
+
/**
|
|
1080
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
1081
|
+
* @param id Handler ID of the handler to be unblocked
|
|
1082
|
+
*/
|
|
1083
|
+
unblock_signal_handler(id: number): void;
|
|
1084
|
+
/**
|
|
1085
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
1086
|
+
* @param detailedName Name of the signal to stop emission of
|
|
1087
|
+
*/
|
|
1088
|
+
stop_emission_by_name(detailedName: string): void;
|
|
967
1089
|
}
|
|
968
1090
|
|
|
969
1091
|
namespace MapImage {
|
|
1092
|
+
// Signal signatures
|
|
1093
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1094
|
+
'notify::pixbuf': (pspec: GObject.ParamSpec) => void;
|
|
1095
|
+
'notify::point': (pspec: GObject.ParamSpec) => void;
|
|
1096
|
+
'notify::rotation': (pspec: GObject.ParamSpec) => void;
|
|
1097
|
+
'notify::x-align': (pspec: GObject.ParamSpec) => void;
|
|
1098
|
+
'notify::y-align': (pspec: GObject.ParamSpec) => void;
|
|
1099
|
+
'notify::z-order': (pspec: GObject.ParamSpec) => void;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
970
1102
|
// Constructor properties interface
|
|
971
1103
|
|
|
972
1104
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -1006,6 +1138,15 @@ export namespace OsmGpsMap {
|
|
|
1006
1138
|
get zOrder(): number;
|
|
1007
1139
|
set zOrder(val: number);
|
|
1008
1140
|
|
|
1141
|
+
/**
|
|
1142
|
+
* Compile-time signal type information.
|
|
1143
|
+
*
|
|
1144
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1145
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1146
|
+
* @internal
|
|
1147
|
+
*/
|
|
1148
|
+
$signals: MapImage.SignalSignatures;
|
|
1149
|
+
|
|
1009
1150
|
// Constructors
|
|
1010
1151
|
|
|
1011
1152
|
constructor(properties?: Partial<MapImage.ConstructorProps>, ...args: any[]);
|
|
@@ -1014,6 +1155,24 @@ export namespace OsmGpsMap {
|
|
|
1014
1155
|
|
|
1015
1156
|
static ['new'](): MapImage;
|
|
1016
1157
|
|
|
1158
|
+
// Signals
|
|
1159
|
+
|
|
1160
|
+
connect<K extends keyof MapImage.SignalSignatures>(
|
|
1161
|
+
signal: K,
|
|
1162
|
+
callback: GObject.SignalCallback<this, MapImage.SignalSignatures[K]>,
|
|
1163
|
+
): number;
|
|
1164
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1165
|
+
connect_after<K extends keyof MapImage.SignalSignatures>(
|
|
1166
|
+
signal: K,
|
|
1167
|
+
callback: GObject.SignalCallback<this, MapImage.SignalSignatures[K]>,
|
|
1168
|
+
): number;
|
|
1169
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1170
|
+
emit<K extends keyof MapImage.SignalSignatures>(
|
|
1171
|
+
signal: K,
|
|
1172
|
+
...args: GObject.GjsParameters<MapImage.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1173
|
+
): void;
|
|
1174
|
+
emit(signal: string, ...args: any[]): void;
|
|
1175
|
+
|
|
1017
1176
|
// Methods
|
|
1018
1177
|
|
|
1019
1178
|
draw(cr: cairo.Context, rect: Gdk.Rectangle): void;
|
|
@@ -1024,6 +1183,20 @@ export namespace OsmGpsMap {
|
|
|
1024
1183
|
}
|
|
1025
1184
|
|
|
1026
1185
|
namespace MapOsd {
|
|
1186
|
+
// Signal signatures
|
|
1187
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1188
|
+
'notify::dpad-radius': (pspec: GObject.ParamSpec) => void;
|
|
1189
|
+
'notify::osd-x': (pspec: GObject.ParamSpec) => void;
|
|
1190
|
+
'notify::osd-y': (pspec: GObject.ParamSpec) => void;
|
|
1191
|
+
'notify::show-coordinates': (pspec: GObject.ParamSpec) => void;
|
|
1192
|
+
'notify::show-crosshair': (pspec: GObject.ParamSpec) => void;
|
|
1193
|
+
'notify::show-dpad': (pspec: GObject.ParamSpec) => void;
|
|
1194
|
+
'notify::show-gps-in-dpad': (pspec: GObject.ParamSpec) => void;
|
|
1195
|
+
'notify::show-gps-in-zoom': (pspec: GObject.ParamSpec) => void;
|
|
1196
|
+
'notify::show-scale': (pspec: GObject.ParamSpec) => void;
|
|
1197
|
+
'notify::show-zoom': (pspec: GObject.ParamSpec) => void;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1027
1200
|
// Constructor properties interface
|
|
1028
1201
|
|
|
1029
1202
|
interface ConstructorProps extends GObject.Object.ConstructorProps, MapLayer.ConstructorProps {
|
|
@@ -1156,6 +1329,15 @@ export namespace OsmGpsMap {
|
|
|
1156
1329
|
get showZoom(): boolean;
|
|
1157
1330
|
set showZoom(val: boolean);
|
|
1158
1331
|
|
|
1332
|
+
/**
|
|
1333
|
+
* Compile-time signal type information.
|
|
1334
|
+
*
|
|
1335
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1336
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1337
|
+
* @internal
|
|
1338
|
+
*/
|
|
1339
|
+
$signals: MapOsd.SignalSignatures;
|
|
1340
|
+
|
|
1159
1341
|
// Constructors
|
|
1160
1342
|
|
|
1161
1343
|
constructor(properties?: Partial<MapOsd.ConstructorProps>, ...args: any[]);
|
|
@@ -1164,6 +1346,24 @@ export namespace OsmGpsMap {
|
|
|
1164
1346
|
|
|
1165
1347
|
static ['new'](): MapOsd;
|
|
1166
1348
|
|
|
1349
|
+
// Signals
|
|
1350
|
+
|
|
1351
|
+
connect<K extends keyof MapOsd.SignalSignatures>(
|
|
1352
|
+
signal: K,
|
|
1353
|
+
callback: GObject.SignalCallback<this, MapOsd.SignalSignatures[K]>,
|
|
1354
|
+
): number;
|
|
1355
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1356
|
+
connect_after<K extends keyof MapOsd.SignalSignatures>(
|
|
1357
|
+
signal: K,
|
|
1358
|
+
callback: GObject.SignalCallback<this, MapOsd.SignalSignatures[K]>,
|
|
1359
|
+
): number;
|
|
1360
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1361
|
+
emit<K extends keyof MapOsd.SignalSignatures>(
|
|
1362
|
+
signal: K,
|
|
1363
|
+
...args: GObject.GjsParameters<MapOsd.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1364
|
+
): void;
|
|
1365
|
+
emit(signal: string, ...args: any[]): void;
|
|
1366
|
+
|
|
1167
1367
|
// Inherited methods
|
|
1168
1368
|
busy(): boolean;
|
|
1169
1369
|
button_press(map: Map, event: Gdk.EventButton): boolean;
|
|
@@ -1290,7 +1490,21 @@ export namespace OsmGpsMap {
|
|
|
1290
1490
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1291
1491
|
*/
|
|
1292
1492
|
get_data(key: string): any | null;
|
|
1293
|
-
|
|
1493
|
+
/**
|
|
1494
|
+
* Gets a property of an object.
|
|
1495
|
+
*
|
|
1496
|
+
* The value can be:
|
|
1497
|
+
* - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
|
|
1498
|
+
* - a GObject.Value initialized with the expected type of the property
|
|
1499
|
+
* - a GObject.Value initialized with a type to which the expected type of the property can be transformed
|
|
1500
|
+
*
|
|
1501
|
+
* In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
|
|
1502
|
+
*
|
|
1503
|
+
* Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
|
|
1504
|
+
* @param property_name The name of the property to get
|
|
1505
|
+
* @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
|
|
1506
|
+
*/
|
|
1507
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
1294
1508
|
/**
|
|
1295
1509
|
* This function gets back user data pointers stored via
|
|
1296
1510
|
* g_object_set_qdata().
|
|
@@ -1418,7 +1632,12 @@ export namespace OsmGpsMap {
|
|
|
1418
1632
|
* @param data data to associate with that key
|
|
1419
1633
|
*/
|
|
1420
1634
|
set_data(key: string, data?: any | null): void;
|
|
1421
|
-
|
|
1635
|
+
/**
|
|
1636
|
+
* Sets a property on an object.
|
|
1637
|
+
* @param property_name The name of the property to set
|
|
1638
|
+
* @param value The value to set the property to
|
|
1639
|
+
*/
|
|
1640
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
1422
1641
|
/**
|
|
1423
1642
|
* Remove a specified datum from the object's data associations,
|
|
1424
1643
|
* without invoking the association's destroy handler.
|
|
@@ -1568,14 +1787,42 @@ export namespace OsmGpsMap {
|
|
|
1568
1787
|
* @param pspec
|
|
1569
1788
|
*/
|
|
1570
1789
|
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
1790
|
+
/**
|
|
1791
|
+
* Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
|
|
1792
|
+
* @param id Handler ID of the handler to be disconnected
|
|
1793
|
+
*/
|
|
1571
1794
|
disconnect(id: number): void;
|
|
1795
|
+
/**
|
|
1796
|
+
* Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
|
|
1797
|
+
* @param properties Object containing the properties to set
|
|
1798
|
+
*/
|
|
1572
1799
|
set(properties: { [key: string]: any }): void;
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1800
|
+
/**
|
|
1801
|
+
* Blocks a handler of an instance so it will not be called during any signal emissions
|
|
1802
|
+
* @param id Handler ID of the handler to be blocked
|
|
1803
|
+
*/
|
|
1804
|
+
block_signal_handler(id: number): void;
|
|
1805
|
+
/**
|
|
1806
|
+
* Unblocks a handler so it will be called again during any signal emissions
|
|
1807
|
+
* @param id Handler ID of the handler to be unblocked
|
|
1808
|
+
*/
|
|
1809
|
+
unblock_signal_handler(id: number): void;
|
|
1810
|
+
/**
|
|
1811
|
+
* Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
|
|
1812
|
+
* @param detailedName Name of the signal to stop emission of
|
|
1813
|
+
*/
|
|
1814
|
+
stop_emission_by_name(detailedName: string): void;
|
|
1576
1815
|
}
|
|
1577
1816
|
|
|
1578
1817
|
namespace MapPolygon {
|
|
1818
|
+
// Signal signatures
|
|
1819
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1820
|
+
'notify::editable': (pspec: GObject.ParamSpec) => void;
|
|
1821
|
+
'notify::shaded': (pspec: GObject.ParamSpec) => void;
|
|
1822
|
+
'notify::track': (pspec: GObject.ParamSpec) => void;
|
|
1823
|
+
'notify::visible': (pspec: GObject.ParamSpec) => void;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1579
1826
|
// Constructor properties interface
|
|
1580
1827
|
|
|
1581
1828
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -1600,6 +1847,15 @@ export namespace OsmGpsMap {
|
|
|
1600
1847
|
get visible(): boolean;
|
|
1601
1848
|
set visible(val: boolean);
|
|
1602
1849
|
|
|
1850
|
+
/**
|
|
1851
|
+
* Compile-time signal type information.
|
|
1852
|
+
*
|
|
1853
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1854
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1855
|
+
* @internal
|
|
1856
|
+
*/
|
|
1857
|
+
$signals: MapPolygon.SignalSignatures;
|
|
1858
|
+
|
|
1603
1859
|
// Constructors
|
|
1604
1860
|
|
|
1605
1861
|
constructor(properties?: Partial<MapPolygon.ConstructorProps>, ...args: any[]);
|
|
@@ -1607,25 +1863,39 @@ export namespace OsmGpsMap {
|
|
|
1607
1863
|
_init(...args: any[]): void;
|
|
1608
1864
|
|
|
1609
1865
|
static ['new'](): MapPolygon;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
namespace MapTrack {
|
|
1613
|
-
// Signal callback interfaces
|
|
1614
|
-
|
|
1615
|
-
interface PointAdded {
|
|
1616
|
-
(object: MapPoint): void;
|
|
1617
|
-
}
|
|
1618
1866
|
|
|
1619
|
-
|
|
1620
|
-
(object: number): void;
|
|
1621
|
-
}
|
|
1867
|
+
// Signals
|
|
1622
1868
|
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1869
|
+
connect<K extends keyof MapPolygon.SignalSignatures>(
|
|
1870
|
+
signal: K,
|
|
1871
|
+
callback: GObject.SignalCallback<this, MapPolygon.SignalSignatures[K]>,
|
|
1872
|
+
): number;
|
|
1873
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1874
|
+
connect_after<K extends keyof MapPolygon.SignalSignatures>(
|
|
1875
|
+
signal: K,
|
|
1876
|
+
callback: GObject.SignalCallback<this, MapPolygon.SignalSignatures[K]>,
|
|
1877
|
+
): number;
|
|
1878
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1879
|
+
emit<K extends keyof MapPolygon.SignalSignatures>(
|
|
1880
|
+
signal: K,
|
|
1881
|
+
...args: GObject.GjsParameters<MapPolygon.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1882
|
+
): void;
|
|
1883
|
+
emit(signal: string, ...args: any[]): void;
|
|
1884
|
+
}
|
|
1626
1885
|
|
|
1627
|
-
|
|
1628
|
-
|
|
1886
|
+
namespace MapTrack {
|
|
1887
|
+
// Signal signatures
|
|
1888
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1889
|
+
'point-added': (arg0: MapPoint) => void;
|
|
1890
|
+
'point-changed': (arg0: number) => void;
|
|
1891
|
+
'point-inserted': (arg0: number) => void;
|
|
1892
|
+
'point-removed': (arg0: number) => void;
|
|
1893
|
+
'notify::alpha': (pspec: GObject.ParamSpec) => void;
|
|
1894
|
+
'notify::color': (pspec: GObject.ParamSpec) => void;
|
|
1895
|
+
'notify::editable': (pspec: GObject.ParamSpec) => void;
|
|
1896
|
+
'notify::line-width': (pspec: GObject.ParamSpec) => void;
|
|
1897
|
+
'notify::track': (pspec: GObject.ParamSpec) => void;
|
|
1898
|
+
'notify::visible': (pspec: GObject.ParamSpec) => void;
|
|
1629
1899
|
}
|
|
1630
1900
|
|
|
1631
1901
|
// Constructor properties interface
|
|
@@ -1660,6 +1930,15 @@ export namespace OsmGpsMap {
|
|
|
1660
1930
|
get visible(): boolean;
|
|
1661
1931
|
set visible(val: boolean);
|
|
1662
1932
|
|
|
1933
|
+
/**
|
|
1934
|
+
* Compile-time signal type information.
|
|
1935
|
+
*
|
|
1936
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1937
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1938
|
+
* @internal
|
|
1939
|
+
*/
|
|
1940
|
+
$signals: MapTrack.SignalSignatures;
|
|
1941
|
+
|
|
1663
1942
|
// Constructors
|
|
1664
1943
|
|
|
1665
1944
|
constructor(properties?: Partial<MapTrack.ConstructorProps>, ...args: any[]);
|
|
@@ -1670,21 +1949,21 @@ export namespace OsmGpsMap {
|
|
|
1670
1949
|
|
|
1671
1950
|
// Signals
|
|
1672
1951
|
|
|
1673
|
-
connect
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
emit(signal:
|
|
1952
|
+
connect<K extends keyof MapTrack.SignalSignatures>(
|
|
1953
|
+
signal: K,
|
|
1954
|
+
callback: GObject.SignalCallback<this, MapTrack.SignalSignatures[K]>,
|
|
1955
|
+
): number;
|
|
1956
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1957
|
+
connect_after<K extends keyof MapTrack.SignalSignatures>(
|
|
1958
|
+
signal: K,
|
|
1959
|
+
callback: GObject.SignalCallback<this, MapTrack.SignalSignatures[K]>,
|
|
1960
|
+
): number;
|
|
1961
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1962
|
+
emit<K extends keyof MapTrack.SignalSignatures>(
|
|
1963
|
+
signal: K,
|
|
1964
|
+
...args: GObject.GjsParameters<MapTrack.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1965
|
+
): void;
|
|
1966
|
+
emit(signal: string, ...args: any[]): void;
|
|
1688
1967
|
|
|
1689
1968
|
// Methods
|
|
1690
1969
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/osmgpsmap-1.0",
|
|
3
|
-
"version": "1.0.0-4.0.0-beta.
|
|
3
|
+
"version": "1.0.0-4.0.0-beta.24",
|
|
4
4
|
"description": "GJS TypeScript type definitions for OsmGpsMap-1.0, generated from library version 1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "osmgpsmap-1.0.js",
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/atk-1.0": "^2.
|
|
35
|
-
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.
|
|
36
|
-
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.
|
|
37
|
-
"@girs/gdk-3.0": "^3.24.
|
|
38
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.
|
|
39
|
-
"@girs/gio-2.0": "^2.
|
|
40
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
41
|
-
"@girs/glib-2.0": "^2.
|
|
42
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
43
|
-
"@girs/gobject-2.0": "^2.
|
|
44
|
-
"@girs/gtk-3.0": "^3.24.
|
|
45
|
-
"@girs/harfbuzz-0.0": "^
|
|
46
|
-
"@girs/pango-1.0": "^1.56.
|
|
47
|
-
"@girs/xlib-2.0": "^2.0.0-4.0.0-beta.
|
|
34
|
+
"@girs/atk-1.0": "^2.56.2-4.0.0-beta.24",
|
|
35
|
+
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.24",
|
|
36
|
+
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.24",
|
|
37
|
+
"@girs/gdk-3.0": "^3.24.50-4.0.0-beta.24",
|
|
38
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.24",
|
|
39
|
+
"@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
|
|
40
|
+
"@girs/gjs": "^4.0.0-beta.24",
|
|
41
|
+
"@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
|
|
42
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
|
|
43
|
+
"@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24",
|
|
44
|
+
"@girs/gtk-3.0": "^3.24.50-4.0.0-beta.24",
|
|
45
|
+
"@girs/harfbuzz-0.0": "^10.4.0-4.0.0-beta.24",
|
|
46
|
+
"@girs/pango-1.0": "^1.56.4-4.0.0-beta.24",
|
|
47
|
+
"@girs/xlib-2.0": "^2.0.0-4.0.0-beta.24"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "*"
|