[−][src]Struct webrender_api::RenderApi
Methods
impl RenderApi[src]
impl RenderApipub fn get_namespace_id(&self) -> IdNamespace[src]
pub fn get_namespace_id(&self) -> IdNamespacepub fn clone_sender(&self) -> RenderApiSender[src]
pub fn clone_sender(&self) -> RenderApiSenderpub fn add_document(
&self,
initial_size: DeviceUintSize,
layer: DocumentLayer
) -> DocumentId[src]
pub fn add_document(
&self,
initial_size: DeviceUintSize,
layer: DocumentLayer
) -> DocumentIdpub fn delete_document(&self, document_id: DocumentId)[src]
pub fn delete_document(&self, document_id: DocumentId)pub fn generate_font_key(&self) -> FontKey[src]
pub fn generate_font_key(&self) -> FontKeypub fn generate_font_instance_key(&self) -> FontInstanceKey[src]
pub fn generate_font_instance_key(&self) -> FontInstanceKeypub fn get_glyph_dimensions(
&self,
font: FontInstanceKey,
glyph_indices: Vec<GlyphIndex>
) -> Vec<Option<GlyphDimensions>>[src]
pub fn get_glyph_dimensions(
&self,
font: FontInstanceKey,
glyph_indices: Vec<GlyphIndex>
) -> Vec<Option<GlyphDimensions>>Gets the dimensions for the supplied glyph keys
Note: Internally, the internal texture cache doesn't store 'empty' textures (height or width = 0) This means that glyph dimensions e.g. for spaces (' ') will mostly be None.
pub fn get_glyph_indices(
&self,
font_key: FontKey,
text: &str
) -> Vec<Option<u32>>[src]
pub fn get_glyph_indices(
&self,
font_key: FontKey,
text: &str
) -> Vec<Option<u32>>Gets the glyph indices for the supplied string. These can be used to construct GlyphKeys.
pub fn generate_image_key(&self) -> ImageKey[src]
pub fn generate_image_key(&self) -> ImageKeyCreates an ImageKey.
pub fn update_resources(&self, resources: Vec<ResourceUpdate>)[src]
pub fn update_resources(&self, resources: Vec<ResourceUpdate>)Add/remove/update resources such as images and fonts.
pub fn send_external_event(&self, evt: ExternalEvent)[src]
pub fn send_external_event(&self, evt: ExternalEvent)pub fn notify_memory_pressure(&self)[src]
pub fn notify_memory_pressure(&self)pub fn report_memory(&self) -> MemoryReport[src]
pub fn report_memory(&self) -> MemoryReportpub fn shut_down(&self)[src]
pub fn shut_down(&self)pub fn generate_property_binding_key<T: Copy>(&self) -> PropertyBindingKey<T>[src]
pub fn generate_property_binding_key<T: Copy>(&self) -> PropertyBindingKey<T>Create a new unique key that can be used for animated property bindings.
pub fn send_transaction(
&self,
document_id: DocumentId,
transaction: Transaction
)[src]
pub fn send_transaction(
&self,
document_id: DocumentId,
transaction: Transaction
)pub fn hit_test(
&self,
document_id: DocumentId,
pipeline_id: Option<PipelineId>,
point: WorldPoint,
flags: HitTestFlags
) -> HitTestResult[src]
pub fn hit_test(
&self,
document_id: DocumentId,
pipeline_id: Option<PipelineId>,
point: WorldPoint,
flags: HitTestFlags
) -> HitTestResultDoes a hit test on display items in the specified document, at the given point. If a pipeline_id is specified, it is used to further restrict the hit results so that only items inside that pipeline are matched. If the HitTestFlags argument contains the FIND_ALL flag, then the vector of hit results will contain all display items that match, ordered from front to back.
pub fn set_window_parameters(
&self,
document_id: DocumentId,
window_size: DeviceUintSize,
inner_rect: DeviceUintRect,
device_pixel_ratio: f32
)[src]
pub fn set_window_parameters(
&self,
document_id: DocumentId,
window_size: DeviceUintSize,
inner_rect: DeviceUintRect,
device_pixel_ratio: f32
)pub fn get_scroll_node_state(
&self,
document_id: DocumentId
) -> Vec<ScrollNodeState>[src]
pub fn get_scroll_node_state(
&self,
document_id: DocumentId
) -> Vec<ScrollNodeState>pub fn wake_scene_builder(&self)[src]
pub fn wake_scene_builder(&self)pub fn flush_scene_builder(&self)[src]
pub fn flush_scene_builder(&self)Block until a round-trip to the scene builder thread has completed. This ensures that any transactions (including ones deferred to the scene builder thread) have been processed.
pub fn save_capture(&self, path: PathBuf, bits: CaptureBits)[src]
pub fn save_capture(&self, path: PathBuf, bits: CaptureBits)Save a capture of the current frame state for debugging.
pub fn load_capture(&self, path: PathBuf) -> Vec<CapturedDocument>[src]
pub fn load_capture(&self, path: PathBuf) -> Vec<CapturedDocument>Load a capture of the current frame state for debugging.
pub fn send_debug_cmd(&self, cmd: DebugCommand)[src]
pub fn send_debug_cmd(&self, cmd: DebugCommand)Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 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