Crate makepad_draw

Source

Re-exports§

pub use crate::match_event::MatchEvent;
pub use crate::turtle::Layout;
pub use crate::turtle::Walk;
pub use crate::turtle::Align;
pub use crate::turtle::Padding;
pub use crate::turtle::Flow;
pub use crate::turtle::Size;
pub use crate::turtle::TurtleAlignRange;
pub use crate::turtle::DeferWalk;
pub use crate::overlay::Overlay;
pub use crate::nav::NavRole;
pub use crate::nav::NavOrder;
pub use crate::nav::NavStop;
pub use crate::nav::NavItem;
pub use crate::nav::NavScrollIndex;
pub use crate::draw_list_2d::DrawListExt;
pub use crate::draw_list_2d::DrawList2d;
pub use crate::draw_list_2d::ManyInstances;
pub use crate::draw_list_2d::Redrawing;
pub use crate::draw_list_2d::RedrawingApi;
pub use crate::cx_draw::CxDraw;
pub use crate::cx_2d::Cx2d;
pub use crate::cx_3d::Cx3d;
pub use crate::shader::draw_icon::DrawIcon;
pub use crate::shader::draw_quad::DrawQuad;
pub use crate::shader::draw_line::DrawLine;
pub use crate::shader::draw_text::DrawText;
pub use crate::shader::draw_color::DrawColor;
pub use crate::geometry::GeometryGen;
pub use crate::geometry::GeometryQuad2D;
pub use makepad_platform;
pub use makepad_vector;

Modules§

action
audio
audio_stream
cx_2d
cx_3d
cx_draw
display_context
draw_list_2d
event
file_dialogs
geometry
icon_atlas
live_atomic
live_cx
live_traits
log
makepad_futures
makepad_shader_compiler
match_event
midi
nav
os
overlay
scope
shader
smallvec
Small vectors in various sizes. These store a certain number of elements inline, and fall back to the heap for larger allocations. This can be a useful optimization for improving cache locality and reducing allocator traffic for workloads that fit within the inline buffer.
studio
text
thread
turtle
ui_runner
video
web_socket

Macros§

app_main
color
error
fmt_over
fmt_over_ref
generate_any_send_trait_api
generate_any_trait_api
get_component
gl_flush_error
gl_log_error
id
id_lut
ids
live
live_array
live_design
live_error_origin
live_id
live_id_num
live_object
live_primitive
log
profile_end
profile_end_log
register_component_factory
some_id
warning

Structs§

Animator
Apply
AudioBuffer
AudioDeviceDesc
AudioDeviceId
AudioDevicesEvent
AudioInfo
AudioTime
CameraFov
ComponentList
ComponentMap
Cx
CxDrawCall
CxDrawItem
CxDrawListPool
CxLinuxMedia
CxRectArea
CxRef
CxWindowPool
DVec2
DVec3
DVec4
DesignerPickEvent
DragEvent
DragHitEvent
DrawEvent
DrawList
DrawListId
DrawMatrix
DrawShaderPtr
DrawVars
DropEvent
DropHitEvent
FingerDownEvent
FingerHoverEvent
FingerMoveEvent
FingerScrollEvent
FingerUpEvent
FromUIReceiver
FromUISender
Geometry
GeometryField
GeometryFingerprint
GeometryId
GeometryRef
HeapLiveIdPath
HitOptions
HttpError
HttpProgress
HttpRequest
HttpResponse
InlineString
InstanceArea
KeyEvent
KeyFocusEvent
KeyModifiers
LiveBinding
LiveBody
LiveComponentInfo
LiveDependency
LiveErrorOrigin
LiveFileId
LiveId
LiveIdHasher
LiveIdHasherBuilder
LiveIdInterner
LiveIdMap
LiveIdPath
LiveModuleId
LiveNode
LiveNodeOrigin
LiveProp
LivePtr
LiveRegistry
LiveTypeField
LiveTypeInfo
Margin
Mat4
MessageThreadPool
MidiAftertouch
MidiChannelAftertouch
MidiControlChange
MidiData
MidiInput
MidiNote
MidiOutput
MidiPitchBend
MidiPortDesc
MidiPortId
MidiPortsEvent
MidiProgramChange
MidiSystem
MouseButton
A u32 bit mask of all mouse buttons that were pressed during a given mouse event.
MouseDownEvent
MouseMoveEvent
MouseUpEvent
NextFrame
NextFrameEvent
Pass
PassId
Plane
PointUsize
Pose
PrettyPrintedF32
PrettyPrintedF64
Quat
Rect
RectArea
RectUsize
RevThreadPool
Scope
ScopeDataMut
ScopeDataRef
ShaderEnum
ShaderRegistry
SignalFromUI
SignalToUI
SizeUsize
SmallVec
A Vec-like container that can store a small number of elements inline.
TagThreadPool
TextClipboardEvent
TextInputEvent
Texture
TextureAnimation
TextureId
Timer
TimerEvent
ToUIReceiver
ToUISender
Trigger
UiRunner
Run code on the UI thread from another thread.
Vec2
Vec3
Vec4
VideoBuffer
VideoBufferRef
VideoFormat
VideoFormatId
VideoInputDesc
VideoInputId
VideoInputsEvent
WebSocket
WindowCloseRequestedEvent
WindowClosedEvent
WindowDragQueryEvent
WindowGeomChangeEvent
WindowHandle
WindowId
WindowMovedEvent
XrAnchor
XrController
XrHand
XrLocalEvent
XrState
XrUpdateEvent

Enums§

Animate
AnimatorAction
ApplyFrom
ArcStringMut
Area
AudioDeviceType
CxOsOp
CxPassParent
CxPassRect
DigitDevice
DragHit
DragItem
DragResponse
DragState
Ease
Event
Events that can be sent between the Makepad framework and the application.
GpuPerformance
Hit
HitDesigner
HoverState
HttpMethod
InternLiveId
KeyCode
LiveFieldKind
LivePropType
LiveValue
LogLevel
MacosMenu
MidiEvent
MidiPortType
MouseCursor
NetworkResponse
OpenUrlInPlace
OsType
PassClearColor
PassClearDepth
Play
ShaderTy
TextureFormat
TextureSize
TextureUpdated
Vec2Index
VideoBufferData
VideoBufferRefData
VideoPixelFormat
VirtualKeyboardEvent
WebSocketMessage
WindowDragQueryResponse

Constants§

LIVE_ID_SEED
MAX_AUDIO_DEVICE_INDEX
MAX_VIDEO_DEVICE_INDEX
V0F0
V00F
VF00

Traits§

ActionCast
ActionCastRef
ActionDefaultRef
ActionTrait
AnimatorImpl
AppMain
CxMediaApi
CxOsApi
DeferCallback
GeometryFields
LiveApply
LiveApplyReset
LiveApplyValue
LiveComponentRegistry
LiveHook
LiveHookDeref
LiveIdAsProp
LiveNew
LiveNodeSliceApi
LiveNodeSliceToCbor
LiveNodeVecApi
LiveNodeVecFromCbor
LiveRead
LiveRegister
ShaderMath
ToLiveValue
Vec4Ext

Functions§

abs
acos
acosh
asin
asinh
atan
atanh
ceil
clamp
cos
cosh
dvec2
exp
exp2
floor
fract
live_design
ln
log2
log10
log_with_level
max
min
pow
powf
powi
profile_start
rect
shader_enum
sin
sinh
tan
tanh
vec2
vec3
vec4

Type Aliases§

Action
Actions
ActionsBuf
AudioInputFn
AudioOutputFn
LiveNodeSlice
LiveNodeVec
LiveRef
LiveType
NetworkResponsesEvent
VideoInputFn

Derive Macros§

DefaultNone
FromLiveId
Live
LiveAtomic
LiveComponentRegistry
LiveHook
LiveRead
LiveRegister