Module callbacks

Module callbacks 

Source
Expand description

Type definitions for various types of callbacks, as well as focus and scroll handling

Structs§

Animation
AnimationData
Callback
Stores a function pointer that is executed when the given UI element is hit
CallbackInfo
Information about the callback that is passed to the callback whenever a callback is invoked
DocumentId
DomNodeId
Dummy
FocusTargetPath
HidpiAdjustedBounds
Information about the bounds of a laid-out div rectangle.
HitTestItem
IFrameCallback
Callback that, given a rectangle area on the screen, returns the DOM appropriate for that bounds (useful for infinite lists)
IFrameCallbackInfo
IFrameCallbackReturn
InlineGlyph
InlineGlyphVec
InlineLine
InlineLineVec
InlineText
inline text so that hit-testing is easier
InlineTextContents
InlineTextHit
InlineTextHitVec
InlineWordVec
LayoutCallbackInfo
Gives the layout() function access to the RendererResources and the Window (for querying images and fonts, as well as width / height)
LayoutCallbackInner
MarshaledLayoutCallback
MarshaledLayoutCallbackInner
PipelineId
Ref
RefAny
RefCount
RefCountInner
RefCountInnerDebug
RefMut
RenderImageCallback
Callbacks that returns a rendered OpenGL texture
RenderImageCallbackInfo
ScrollHitTestItem
ScrollPosition
Information about a scroll frame, given to the user by the framework
ThreadCallback
TimerCallback
Callback that can runs on every frame on the main thread - can modify the app data model
TimerCallbackInfo
TimerCallbackReturn
WriteBackCallback
Callback that can runs when a thread receives a WriteBack message

Enums§

AnimationRepeat
AnimationRepeatCount
FocusTarget
Defines the focus_targeted node ID for the next frame
InlineGlyphVecDestructor
InlineLineVecDestructor
InlineTextHitVecDestructor
InlineWord
InlineWordVecDestructor
LayoutCallback
OptionCallback
OptionDomNodeId
OptionInlineText
OptionRefAny
Update
Specifies if the screen should be updated after the callback function has returned
UpdateImageType

Type Aliases§

CallbackType
IFrameCallbackType
LayoutCallbackType
Callback function pointer (has to be a function pointer in order to be compatible with C APIs later on).
MarshaledLayoutCallbackType
In order to interact with external VMs (Java, Python, etc.) the callback is often stored as a “function object”
PipelineSourceId
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 IdNamespace and the same DocumentId. Having this extra Id field enables them to generate PipelineId without collision.
RenderImageCallbackType
Callback that - given the width and height of the expected image - renders an image
ThreadCallbackType
TimerCallbackType
WriteBackCallbackType