#[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§
impl Copy for GEevent
impl Eq for GEevent
impl StructuralPartialEq for GEevent
Auto Trait Implementations§
impl Freeze for GEevent
impl RefUnwindSafe for GEevent
impl Send for GEevent
impl Sync for GEevent
impl Unpin for GEevent
impl UnwindSafe for GEevent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)