Enum libR_sys::GEevent

source ·
#[repr(u32)]
pub enum GEevent { GE_InitState = 0, GE_FinaliseState = 1, GE_SaveState = 2, GE_RestoreState = 6, GE_CopyState = 3, GE_SaveSnapshotState = 4, GE_RestoreSnapshotState = 5, GE_CheckPlot = 7, GE_ScalePS = 8, }

Variants§

§

GE_InitState = 0

In response to this event, the registered graphics system should allocate and initialise the systemSpecific structure

Should return R_NilValue on failure so that engine can tidy up memory allocation

§

GE_FinaliseState = 1

This event gives the registered system a chance to undo anything done in the initialisation.

§

GE_SaveState = 2

This is sent by the graphics engine prior to initialising the display list. It give the graphics system the chance to squirrel away information it will need for redrawing the the display list

§

GE_RestoreState = 6

This is sent by the graphics engine prior to replaying the display list. It gives the graphics system the chance to restore any information it saved on the GE_SaveState event

§

GE_CopyState = 3

Copy system state information to the current device. This is used when copying graphics from one device to another so all the graphics system needs to do is to copy across the bits required for the display list to draw faithfully on the new device.

§

GE_SaveSnapshotState = 4

Create a snapshot of the system state that is sufficient for the current “image” to be reproduced

§

GE_RestoreSnapshotState = 5

Restore the system state that is saved by GE_SaveSnapshotState

§

GE_CheckPlot = 7

When replaying the display list, the graphics engine checks, after each replayed action, that the action produced valid output. This is the graphics system’s chance to say that the output is crap (in which case the graphics engine will abort the display list replay).

§

GE_ScalePS = 8

The device wants to scale the current pointsize (for scaling an image) This is not a nice general solution, but a quick fix for the Windows device.

Trait Implementations§

source§

impl Clone for GEevent

source§

fn clone(&self) -> GEevent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GEevent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for GEevent

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for GEevent

source§

fn eq(&self, other: &GEevent) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for GEevent

source§

impl Eq for GEevent

source§

impl StructuralPartialEq for GEevent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.