Struct xcursor::CursorTheme [−][src]
pub struct CursorTheme { /* fields omitted */ }
A cursor theme.
Implementations
impl CursorTheme
[src]
pub fn load(name: &str) -> Self
[src]
Search for a theme with the given name in the given search paths, and returns an XCursorTheme which represents it. If no inheritance can be determined, then the themes inherits from the “default” theme.
pub fn load_icon(&self, icon_name: &str) -> Option<PathBuf>
[src]
Try to load an icon from the theme. If the icon is not found within this theme’s directories, then the function looks at the theme from which this theme is inherited.
Trait Implementations
impl Clone for CursorTheme
[src]
fn clone(&self) -> CursorTheme
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CursorTheme
[src]
impl Eq for CursorTheme
[src]
impl PartialEq<CursorTheme> for CursorTheme
[src]
fn eq(&self, other: &CursorTheme) -> bool
[src]
fn ne(&self, other: &CursorTheme) -> bool
[src]
impl StructuralEq for CursorTheme
[src]
impl StructuralPartialEq for CursorTheme
[src]
Auto Trait Implementations
impl RefUnwindSafe for CursorTheme
impl Send for CursorTheme
impl Sync for CursorTheme
impl Unpin for CursorTheme
impl UnwindSafe for CursorTheme
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,