-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from gtk-rs/create-pull-request/patch
Update GIR files (2024-02-04)
- Loading branch information
Showing
2 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15593,7 +15593,7 @@ This can be used to identify a monitor in the UI.</doc> | |
display coordinate space. | ||
|
||
The returned geometry is in ”application pixels”, not in | ||
”device pixels” (see [[email protected].get_scale_factor]).</doc> | ||
”device pixels” (see [[email protected].get_scale]).</doc> | ||
<return-value transfer-ownership="none"> | ||
<type name="none" c:type="void"/> | ||
</return-value> | ||
|
@@ -15673,6 +15673,25 @@ is returned as 60000.</doc> | |
</instance-parameter> | ||
</parameters> | ||
</method> | ||
<method name="get_scale" c:identifier="gdk_monitor_get_scale" glib:get-property="scale" version="4.14"> | ||
<attribute name="org.gtk.Method.get_property" value="scale"/> | ||
<doc xml:space="preserve">Gets the internal scale factor that maps from monitor coordinates | ||
to device pixels. | ||
|
||
This can be used if you want to create pixel based data for a | ||
particular monitor, but most of the time you’re drawing to a surface | ||
where it is better to use [[email protected]_scale] instead.</doc> | ||
<return-value transfer-ownership="none"> | ||
<doc xml:space="preserve">the scale</doc> | ||
<type name="gdouble" c:type="double"/> | ||
</return-value> | ||
<parameters> | ||
<instance-parameter name="monitor" transfer-ownership="none"> | ||
<doc xml:space="preserve">a `GdkMonitor`</doc> | ||
<type name="Monitor" c:type="GdkMonitor*"/> | ||
</instance-parameter> | ||
</parameters> | ||
</method> | ||
<method name="get_scale_factor" c:identifier="gdk_monitor_get_scale_factor" glib:get-property="scale-factor"> | ||
<attribute name="org.gtk.Method.get_property" value="scale-factor"/> | ||
<doc xml:space="preserve">Gets the internal scale factor that maps from monitor coordinates | ||
|
@@ -15782,9 +15801,17 @@ is unplugged or removed.</doc> | |
<doc xml:space="preserve">The refresh rate, in milli-Hertz.</doc> | ||
<type name="gint" c:type="gint"/> | ||
</property> | ||
<property name="scale" version="4.14" transfer-ownership="none" getter="get_scale" default-value="1.000000"> | ||
<attribute name="org.gtk.Property.get" value="gdk_monitor_get_scale"/> | ||
<doc xml:space="preserve">The scale of the monitor.</doc> | ||
<type name="gdouble" c:type="gdouble"/> | ||
</property> | ||
<property name="scale-factor" transfer-ownership="none" getter="get_scale_factor" default-value="1"> | ||
<attribute name="org.gtk.Property.get" value="gdk_monitor_get_scale_factor"/> | ||
<doc xml:space="preserve">The scale factor.</doc> | ||
<doc xml:space="preserve">The scale factor. | ||
|
||
The scale factor is the next larger integer, | ||
compared to [[email protected]:scale].</doc> | ||
<type name="gint" c:type="gint"/> | ||
</property> | ||
<property name="subpixel-layout" transfer-ownership="none" getter="get_subpixel_layout" default-value="GDK_SUBPIXEL_LAYOUT_UNKNOWN"> | ||
|