Struct wlc::Output [] [src]

#[repr(C)]
pub struct Output;

An Output managed by Wlc

Methods

impl Output
[src]

Get all outputs currently active outputs

Safety

This function is unsafe, because it creates an unbound lifetime. No output lives forever and might be disconnected at any time A disconnection is signaled by Callback::output_destroyed and the Output is deallocated shortly after. Because of this using this function one may create an invalid Output reference.

Dont call this function on another thread, then the main thread

See Output::with_all_outputs for a safe variant

Safe version of Output::all_outputs Work with all active outputs in a short-lived scope

Safety

By enforcing a rather harsh limit on the lifetime of the outputs to a short lived scope of an anonymous function, this function makes sure no output lives longer then it exists.

Dont call this function on another thread, then the main thread

Get currently focused output

Safety

This function is unsafe, because it creates an unbound lifetime. No output lives forever and might be disconnected at any time A disconnection is signaled by Callback::output_destroyed and the Output is deallocated shortly after. Because of this using this function one may create an invalid Output reference.

Dont call this function on another thread, then the main thread

See Output::with_focused_output for a safe variant

Safe version of Output::focused_output Work with currently focused outputs in a short-lived scope

Safety

By enforcing a rather harsh limit on the lifetime of the output to a short lived scope of an anonymous function, this function makes sure the output does not live longer then it exists.

Dont call this function on another thread, then the main thread

Set no output focused

Safety

Dont call this function on another thread, then the main thread

Get output name

Get sleep state

Wake up / send output to sleep

Get real resolution.

Resolution applied by either output.set_resolution call or initially. Do not use this for coordinate boundary.

Get virtual resolution.

Resolution with transformations applied for proper rendering for example on high density displays. Use this to figure out coordinate boundary.

Set resolution

Get scale factor

Get current visibility bitmask

Set visibility bitmask

Get views in stack order

Sets the view stack

Focus output

Get the supported gamma ramp size of the Output

Set gamma ramps for this Output

r,g and b sizes should correspond to gamma_size returned value

Panic

Panics if r, g, b have different sizes

Get a weak reference of the Output that may outlive its referenced output

Since Output is always limited in its use by its lifetime, it is not very suitable for storing. This function allows you to optain a weak reference, that may outlive the output it is referencing.

Trait Implementations

impl !Sync for Output
[src]

impl !Send for Output
[src]

impl Debug for Output
[src]

Formats the value using the given formatter.

impl PartialEq for Output
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Output
[src]

impl PartialEq<WeakOutput> for Output
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Output
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Handle for Output
[src]

Sets any data as user pointer consuming the data. Read more

Receive a shared reference to the user data of a given type, if user data exists. Read more

Tries to take the userdata exclusively and removes it from the Handle. Read more

Clears currently set user data (Drop gets called, after all references are dropped). Read more