Skip to content

Commit 26f1320

Browse files
committed
Fix tests and doc links
1 parent 17fd026 commit 26f1320

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

winit-core/src/ime.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use std::fmt;
22

33
use bitflags::bitflags;
44
use dpi::{Position, Size};
5+
#[cfg(feature = "serde")]
6+
use serde::{Deserialize, Serialize};
57

68
/// Generic IME purposes for use in [`Window::set_ime_purpose`].
79
///
@@ -14,6 +16,8 @@ use dpi::{Position, Size};
1416
/// ## Platform-specific
1517
///
1618
/// - **iOS / Android / Web / Windows / X11 / macOS / Orbital:** Unsupported.
19+
///
20+
/// [`Window::set_ime_purpose`]: crate::window::Window::set_ime_purpose
1721
#[non_exhaustive]
1822
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, Default)]
1923
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
@@ -147,7 +151,7 @@ impl SurroundingText {
147151
/// obtained by:
148152
///
149153
/// ```
150-
/// # use winit_core::window::SurroundingText;
154+
/// # use winit_core::ime::SurroundingText;
151155
/// let s = SurroundingText::new("foobar".into(), 3, 3).unwrap();
152156
/// ```
153157
///
@@ -395,7 +399,7 @@ impl RequestData {
395399
///
396400
/// ```no_run
397401
/// # use dpi::{LogicalPosition, PhysicalPosition, LogicalSize, PhysicalSize};
398-
/// # use winit_core::window::RequestData;
402+
/// # use winit_core::ime::RequestData;
399403
/// # fn scope(ime_request_data: RequestData) {
400404
/// // Specify the position in logical dimensions like this:
401405
/// let ime_request_data = ime_request_data.with_cursor_area(
@@ -433,6 +437,8 @@ impl RequestData {
433437

434438
/// Error from sending request to IME with
435439
/// [`Window::request_ime_update`].
440+
///
441+
/// [`Window::request_ime_update`]: crate::window::Window::request_ime_update
436442
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
437443
#[non_exhaustive]
438444
pub enum RequestError {

0 commit comments

Comments
 (0)