Skip to content

Commit

Permalink
Fix ObjectRef type path in atspi-common
Browse files Browse the repository at this point in the history
Fixes `ObjectRef` type path in `atspi-common`
  • Loading branch information
luukvanderduim committed May 17, 2024
1 parent 68f9e4d commit cad0574
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions atspi-common/src/events/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,41 +102,41 @@ impl HasMatchRule for DocumentEvents {
/// `LibreOffice` has loaded a document from disk.
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct LoadCompleteEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::object_ref::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

/// An event triggered by a reloading of a document.
/// For example: pressing F5, or `Control + r` will reload a page in a web browser.
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct ReloadEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

/// An event triggered by the cancelling of a document load.
/// For example: during the loading of a large web page, a user may press `Escape` to stop loading the page.
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct LoadStoppedEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct ContentChangedEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct AttributesChangedEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct PageChangedEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

Expand Down
2 changes: 1 addition & 1 deletion atspi-common/src/events/focus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl HasMatchRule for FocusEvents {

#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct FocusEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

Expand Down
10 changes: 5 additions & 5 deletions atspi-common/src/events/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,37 +94,37 @@ impl HasMatchRule for TerminalEvents {
/// A line of text has been changed.
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct LineChangedEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

/// The width of a terminal emulator has changed sufficiently such that the number of characters
/// able to fit on one *visual* line has changed.
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct ColumnCountChangedEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

/// The height of a terminal emulator has changed sufficiently such that the number of lines
/// able to fit within the terminal has changed.
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct LineCountChangedEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct ApplicationChangedEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

/// The width of a terminal emulator has changed sufficiently such that the number of characters
/// able to fit on one *visual* line has changed.
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct CharWidthChangedEvent {
/// The [`ObjectRef`] which the event applies to.
/// The [`ObjectRef`][crate::events::ObjectRef] which the event applies to.
pub item: crate::events::ObjectRef,
}

Expand Down

0 comments on commit cad0574

Please sign in to comment.