Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gdk4-wayland/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403)
Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d)
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
7 changes: 1 addition & 6 deletions gdk4-wayland/src/wayland_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ use wayland_client::{backend::ObjectId, protocol::wl_surface::WlSurface, Proxy};
use crate::ffi;
use crate::{prelude::*, WaylandSurface};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::WaylandSurface>> Sealed for T {}
}

// rustdoc-stripper-ignore-next
/// Trait containing manually implemented methods of
/// [`WaylandSurface`](crate::WaylandSurface).
pub trait WaylandSurfaceExtManual: sealed::Sealed + IsA<WaylandSurface> + 'static {
pub trait WaylandSurfaceExtManual: IsA<WaylandSurface> + 'static {
#[doc(alias = "gdk_wayland_surface_get_wl_surface")]
#[doc(alias = "get_wl_surface")]
#[cfg(feature = "wayland_crate")]
Expand Down
2 changes: 1 addition & 1 deletion gdk4-wayland/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403)
Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d)
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
2 changes: 1 addition & 1 deletion gdk4-win32/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403)
Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d)
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
2 changes: 1 addition & 1 deletion gdk4-win32/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403)
Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d)
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
2 changes: 1 addition & 1 deletion gdk4-x11/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403)
Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d)
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
2 changes: 1 addition & 1 deletion gdk4-x11/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403)
Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d)
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
7 changes: 1 addition & 6 deletions gdk4/src/auto/app_launch_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ impl AppLaunchContext {
pub const NONE: Option<&'static AppLaunchContext> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::AppLaunchContext>> Sealed for T {}
}

pub trait GdkAppLaunchContextExt: IsA<AppLaunchContext> + sealed::Sealed + 'static {
pub trait GdkAppLaunchContextExt: IsA<AppLaunchContext> + 'static {
#[doc(alias = "gdk_app_launch_context_get_display")]
#[doc(alias = "get_display")]
fn display(&self) -> Display {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/content_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ impl ContentProvider {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::ContentProvider>> Sealed for T {}
}

pub trait ContentProviderExt: IsA<ContentProvider> + sealed::Sealed + 'static {
pub trait ContentProviderExt: IsA<ContentProvider> + 'static {
#[doc(alias = "gdk_content_provider_content_changed")]
fn content_changed(&self) {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ impl std::fmt::Display for Device {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Device>> Sealed for T {}
}

pub trait DeviceExt: IsA<Device> + sealed::Sealed + 'static {
pub trait DeviceExt: IsA<Device> + 'static {
#[doc(alias = "gdk_device_get_caps_lock_state")]
#[doc(alias = "get_caps_lock_state")]
#[doc(alias = "caps-lock-state")]
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/device_pad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ impl DevicePad {
pub const NONE: Option<&'static DevicePad> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DevicePad>> Sealed for T {}
}

pub trait DevicePadExt: IsA<DevicePad> + sealed::Sealed + 'static {
pub trait DevicePadExt: IsA<DevicePad> + 'static {
#[doc(alias = "gdk_device_pad_get_feature_group")]
#[doc(alias = "get_feature_group")]
fn feature_group(&self, feature: DevicePadFeature, feature_idx: i32) -> i32 {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ impl std::fmt::Display for Display {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Display>> Sealed for T {}
}

pub trait DisplayExt: IsA<Display> + sealed::Sealed + 'static {
pub trait DisplayExt: IsA<Display> + 'static {
#[doc(alias = "gdk_display_beep")]
fn beep(&self) {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/drag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ impl Drag {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Drag>> Sealed for T {}
}

pub trait DragExt: IsA<Drag> + sealed::Sealed + 'static {
pub trait DragExt: IsA<Drag> + 'static {
#[doc(alias = "gdk_drag_drop_done")]
fn drop_done(&self, success: bool) {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/drag_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ impl DragSurface {
pub const NONE: Option<&'static DragSurface> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DragSurface>> Sealed for T {}
}

pub trait DragSurfaceExt: IsA<DragSurface> + sealed::Sealed + 'static {
pub trait DragSurfaceExt: IsA<DragSurface> + 'static {
#[doc(alias = "gdk_drag_surface_present")]
fn present(&self, width: i32, height: i32) -> bool {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/draw_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ impl DrawContext {
pub const NONE: Option<&'static DrawContext> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DrawContext>> Sealed for T {}
}

pub trait DrawContextExt: IsA<DrawContext> + sealed::Sealed + 'static {
pub trait DrawContextExt: IsA<DrawContext> + 'static {
#[doc(alias = "gdk_draw_context_begin_frame")]
fn begin_frame(&self, region: &cairo::Region) {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/gl_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,7 @@ impl GLContext {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::GLContext>> Sealed for T {}
}

pub trait GLContextExt: IsA<GLContext> + sealed::Sealed + 'static {
pub trait GLContextExt: IsA<GLContext> + 'static {
#[cfg(feature = "v4_6")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
#[doc(alias = "gdk_gl_context_get_allowed_apis")]
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ impl Monitor {
pub const NONE: Option<&'static Monitor> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Monitor>> Sealed for T {}
}

pub trait MonitorExt: IsA<Monitor> + sealed::Sealed + 'static {
pub trait MonitorExt: IsA<Monitor> + 'static {
#[doc(alias = "gdk_monitor_get_connector")]
#[doc(alias = "get_connector")]
fn connector(&self) -> Option<glib::GString> {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/paintable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ impl Paintable {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Paintable>> Sealed for T {}
}

pub trait PaintableExt: IsA<Paintable> + sealed::Sealed + 'static {
pub trait PaintableExt: IsA<Paintable> + 'static {
#[doc(alias = "gdk_paintable_compute_concrete_size")]
fn compute_concrete_size(
&self,
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ impl Popup {
pub const NONE: Option<&'static Popup> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Popup>> Sealed for T {}
}

pub trait PopupExt: IsA<Popup> + sealed::Sealed + 'static {
pub trait PopupExt: IsA<Popup> + 'static {
#[doc(alias = "gdk_popup_get_autohide")]
#[doc(alias = "get_autohide")]
#[doc(alias = "autohide")]
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/seat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ impl Seat {
pub const NONE: Option<&'static Seat> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Seat>> Sealed for T {}
}

pub trait SeatExt: IsA<Seat> + sealed::Sealed + 'static {
pub trait SeatExt: IsA<Seat> + 'static {
#[doc(alias = "gdk_seat_get_capabilities")]
#[doc(alias = "get_capabilities")]
fn capabilities(&self) -> SeatCapabilities {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ impl Surface {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Surface>> Sealed for T {}
}

pub trait SurfaceExt: IsA<Surface> + sealed::Sealed + 'static {
pub trait SurfaceExt: IsA<Surface> + 'static {
#[doc(alias = "gdk_surface_beep")]
fn beep(&self) {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,7 @@ impl Texture {
unsafe impl Send for Texture {}
unsafe impl Sync for Texture {}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Texture>> Sealed for T {}
}

pub trait TextureExt: IsA<Texture> + sealed::Sealed + 'static {
pub trait TextureExt: IsA<Texture> + 'static {
#[cfg(feature = "v4_10")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))]
#[doc(alias = "gdk_texture_get_format")]
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/auto/toplevel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ impl Toplevel {
pub const NONE: Option<&'static Toplevel> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Toplevel>> Sealed for T {}
}

pub trait ToplevelExt: IsA<Toplevel> + sealed::Sealed + 'static {
pub trait ToplevelExt: IsA<Toplevel> + 'static {
#[doc(alias = "gdk_toplevel_begin_move")]
fn begin_move(&self, device: &impl IsA<Device>, button: i32, x: f64, y: f64, timestamp: u32) {
unsafe {
Expand Down
2 changes: 1 addition & 1 deletion gdk4/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403)
Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d)
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
7 changes: 1 addition & 6 deletions gdk4/src/content_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ use glib::translate::*;

use crate::{ffi, prelude::*, ContentProvider};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::ContentProvider>> Sealed for T {}
}

// rustdoc-stripper-ignore-next
/// Trait containing manually implemented methods of
/// [`ContentProvider`](crate::ContentProvider).
pub trait ContentProviderExtManual: sealed::Sealed + IsA<ContentProvider> {
pub trait ContentProviderExtManual: IsA<ContentProvider> {
#[doc(alias = "gdk_content_provider_get_value")]
fn value(&self, type_: glib::Type) -> Result<glib::Value, glib::Error> {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,10 @@ impl Backend {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Display>> Sealed for T {}
}

// rustdoc-stripper-ignore-next
/// Trait containing manually implemented methods of
/// [`Display`](crate::Display).
pub trait DisplayExtManual: sealed::Sealed + IsA<Display> + 'static {
pub trait DisplayExtManual: IsA<Display> + 'static {
#[doc(alias = "gdk_display_translate_key")]
fn translate_key(
&self,
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/drag_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ use glib::{

use crate::{ffi, prelude::*, DragSurface, DragSurfaceSize};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DragSurface>> Sealed for T {}
}

// rustdoc-stripper-ignore-next
/// Trait containing manually implemented methods of
/// [`DragSurface`](crate::DragSurface).
pub trait DragSurfaceExtManual: sealed::Sealed + IsA<DragSurface> {
pub trait DragSurfaceExtManual: IsA<DragSurface> {
#[cfg(feature = "v4_12")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
#[doc(alias = "compute-size")]
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/draw_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ use glib::translate::*;

use crate::{prelude::*, DrawContext};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DrawContext>> Sealed for T {}
}

// rustdoc-stripper-ignore-next
/// Trait containing manually implemented methods of
/// [`DrawContext`](crate::DrawContext).
pub trait DrawContextExtManual: sealed::Sealed + IsA<DrawContext> + 'static {
pub trait DrawContextExtManual: IsA<DrawContext> + 'static {
#[doc(alias = "gdk_draw_context_get_frame_region")]
#[doc(alias = "get_frame_region")]
fn frame_region(&self) -> Option<cairo::Region> {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ use glib::translate::*;

use crate::{ffi, prelude::*, Surface};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Surface>> Sealed for T {}
}

// rustdoc-stripper-ignore-next
/// Trait containing manually implemented methods of
/// [`Surface`](crate::Surface).
pub trait SurfaceExtManual: sealed::Sealed + IsA<Surface> + 'static {
pub trait SurfaceExtManual: IsA<Surface> + 'static {
#[doc(alias = "gdk_surface_create_similar_surface")]
fn create_similar_surface(
&self,
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ use glib::translate::*;

use crate::{ffi, prelude::*, Texture};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Texture>> Sealed for T {}
}

// rustdoc-stripper-ignore-next
/// Trait containing manually implemented methods of
/// [`Texture`](crate::Texture).
pub trait TextureExtManual: sealed::Sealed + IsA<Texture> + 'static {
pub trait TextureExtManual: IsA<Texture> + 'static {
#[doc(alias = "gdk_texture_download")]
fn download(&self, data: &mut [u8], stride: usize) {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gdk4/src/toplevel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ use glib::{

use crate::{ffi, prelude::*, Toplevel, ToplevelSize};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Toplevel>> Sealed for T {}
}

// rustdoc-stripper-ignore-next
/// Trait containing manually implemented methods of
/// [`Toplevel`](crate::Toplevel).
pub trait ToplevelExtManual: sealed::Sealed + IsA<Toplevel> {
pub trait ToplevelExtManual: IsA<Toplevel> {
fn connect_compute_size<F: Fn(&Toplevel, &mut ToplevelSize) + 'static>(
&self,
f: F,
Expand Down
2 changes: 1 addition & 1 deletion gdk4/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403)
Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d)
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
2 changes: 1 addition & 1 deletion gir
Loading
Loading