Expand description
Type definitions for various types of callbacks, as well as focus and scroll handling
Structs§
- Animation
- Animation
Data - Callback
- Stores a function pointer that is executed when the given UI element is hit
- Callback
Info - Information about the callback that is passed to the callback whenever a callback is invoked
- Document
Id - DomNode
Id - Dummy
- Focus
Target Path - Hidpi
Adjusted Bounds - Information about the bounds of a laid-out div rectangle.
- HitTest
Item - IFrame
Callback - Callback that, given a rectangle area on the screen, returns the DOM appropriate for that bounds (useful for infinite lists)
- IFrame
Callback Info - IFrame
Callback Return - Inline
Glyph - Inline
Glyph Vec - Inline
Line - Inline
Line Vec - Inline
Text - inline text so that hit-testing is easier
- Inline
Text Contents - Inline
Text Hit - Inline
Text HitVec - Inline
Word Vec - Layout
Callback Info - Gives the
layout()function access to theRendererResourcesand theWindow(for querying images and fonts, as well as width / height) - Layout
Callback Inner - Marshaled
Layout Callback - Marshaled
Layout Callback Inner - Pipeline
Id - Ref
- RefAny
- RefCount
- RefCount
Inner - RefCount
Inner Debug - RefMut
- Render
Image Callback - Callbacks that returns a rendered OpenGL texture
- Render
Image Callback Info - Scroll
HitTest Item - Scroll
Position - Information about a scroll frame, given to the user by the framework
- Thread
Callback - Timer
Callback - Callback that can runs on every frame on the main thread - can modify the app data model
- Timer
Callback Info - Timer
Callback Return - Write
Back Callback - Callback that can runs when a thread receives a
WriteBackmessage
Enums§
- Animation
Repeat - Animation
Repeat Count - Focus
Target - Defines the focus_targeted node ID for the next frame
- Inline
Glyph VecDestructor - Inline
Line VecDestructor - Inline
Text HitVec Destructor - Inline
Word - Inline
Word VecDestructor - Layout
Callback - Option
Callback - Option
DomNode Id - Option
Inline Text - Option
RefAny - Update
- Specifies if the screen should be updated after the callback function has returned
- Update
Image Type
Type Aliases§
- Callback
Type - IFrame
Callback Type - Layout
Callback Type - Callback function pointer (has to be a function pointer in order to be compatible with C APIs later on).
- Marshaled
Layout Callback Type - In order to interact with external VMs (Java, Python, etc.) the callback is often stored as a “function object”
- Pipeline
Source Id - This type carries no valuable semantics for WR. However, it reflects the fact that
clients (Servo) may generate pipelines by different semi-independent sources.
These pipelines still belong to the same
IdNamespaceand the sameDocumentId. Having this extra Id field enables them to generatePipelineIdwithout collision. - Render
Image Callback Type - Callback that - given the width and height of the expected image - renders an image
- Thread
Callback Type - Timer
Callback Type - Write
Back Callback Type