MCPcopy Create free account
hub / github.com/angular-rust/ux-components / insert

Method insert

src/rendering/backend/native/utils/texture_cache.rs:251–253  ·  view source on GitHub ↗

insert: @self: A #TextureCache @uri: A URI or local file path @texture: A #CoglHandle to a texture Inserts a texture into the texture cache. This can be useful if you want to cache a texture from a custom or unhandled URI type, or you want to override a particular texture. If the image is already in the cache, this texture will replace it. A reference will be taken on the given texture.

(&self, uri: &str, texture: Handle)

Source from the content-addressed store, hash-verified

249 /// reference will be taken on the given texture.
250 ///
251 fn insert(&self, uri: &str, texture: Handle) {
252 // unsafe { TODO: call ffi:texture_cache_insert() }
253 }
254
255 /// insert_meta:
256 /// @self: A #TextureCache

Callers 7

sizeMethod · 0.80
anchorMethod · 0.80
marginMethod · 0.80
getMethod · 0.80
listenMethod · 0.80
registerMethod · 0.80
getMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected