[][src]Struct wlroots::cursor::xcursor::Manager

pub struct Manager { /* fields omitted */ }

xcursor::Manager dynamically loads xcursor themes at sizes necessary for use on outputs at arbitrary scale factors. You should call load for each output you will show your cursor on, with the scale factor parameter set to that output's scale factor.

Methods

impl Manager
[src]

Create a new xcursor::Manager.

Get the name of the theme this Manager manages.

Get the base size (when scale = 1) in pixels for the theme.

Retrieves a XCursor for the given cursor name at the given scale factor, or None if this Manager has not loaded a cursor theme at the requested scale.

Get a list of all the scaled xcursor::ManagerThemes managed by this manager.

Ensures an xcursor theme at the given scale factor is loaded in the manager.

Returns false if the scaled theme was successfully loaded and true otherwise

Set a Cursor's cursor image to the specified cursor name for all scale factors. The Cursor will take over from this point and ensure the correct cursor is used on each output, assuming an OutputLayout is attached to it.

Trait Implementations

impl Drop for Manager
[src]

Executes the destructor for this type. Read more

impl Debug for Manager
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Manager

impl !Sync for Manager

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more