Enum fidl_fuchsia_ui_gfx::Command
source · pub enum Command {
Show 58 variants
CreateResource(CreateResourceCmd),
ReleaseResource(ReleaseResourceCmd),
ExportResource(ExportResourceCmdDeprecated),
ImportResource(ImportResourceCmdDeprecated),
SetTag(SetTagCmd),
Detach(DetachCmd),
SetTranslation(SetTranslationCmd),
SetScale(SetScaleCmd),
SetRotation(SetRotationCmd),
SetAnchor(SetAnchorCmd),
SetSize(SetSizeCmd),
SetOpacity(SetOpacityCmd),
SendSizeChangeHintHack(SendSizeChangeHintCmdHack),
AddChild(AddChildCmd),
AddPart(AddPartCmd),
DetachChildren(DetachChildrenCmd),
SetShape(SetShapeCmd),
SetMaterial(SetMaterialCmd),
SetClip(SetClipCmd),
SetHitTestBehavior(SetHitTestBehaviorCmd),
SetViewProperties(SetViewPropertiesCmd),
TakeSnapshotCmd(TakeSnapshotCmdDeprecated),
SetCamera(SetCameraCmd),
SetCameraTransform(SetCameraTransformCmd),
SetCameraProjection(SetCameraProjectionCmd),
SetStereoCameraProjection(SetStereoCameraProjectionCmd),
SetCameraPoseBuffer(SetCameraPoseBufferCmd),
SetLightColor(SetLightColorCmd),
SetLightDirection(SetLightDirectionCmd),
AddLight(AddLightCmd),
DetachLight(DetachLightCmd),
DetachLights(DetachLightsCmd),
SetTexture(SetTextureCmd),
SetColor(SetColorCmd),
BindMeshBuffers(BindMeshBuffersCmd),
AddLayer(AddLayerCmd),
RemoveLayer(RemoveLayerCmd),
RemoveAllLayers(RemoveAllLayersCmd),
SetLayerStack(SetLayerStackCmd),
SetRenderer(SetRendererCmd),
SetRendererParam(SetRendererParamCmd),
SetEventMask(SetEventMaskCmd),
SetLabel(SetLabelCmd),
SetDisableClipping(SetDisableClippingCmd),
SetImportFocus(SetImportFocusCmdDeprecated),
SetClipPlanes(SetClipPlanesCmd),
SetPointLightPosition(SetPointLightPositionCmd),
SetPointLightFalloff(SetPointLightFalloffCmd),
Scene_AddAmbientLight(SceneAddAmbientLightCmd),
Scene_AddDirectionalLight(SceneAddDirectionalLightCmd),
Scene_AddPointLight(SceneAddPointLightCmd),
SetDisplayColorConversion(SetDisplayColorConversionCmdHack),
SetDisplayRotation(SetDisplayRotationCmdHack),
SetEnableViewDebugBounds(SetEnableDebugViewBoundsCmd),
SetViewHolderBoundsColor(SetViewHolderBoundsColorCmd),
SetCameraClipSpaceTransform(SetCameraClipSpaceTransformCmd),
SetDisplayMinimumRgb(SetDisplayMinimumRgbCmdHack),
SetSemanticVisibility(SetSemanticVisibilityCmd),
}
Expand description
Commands that are used to modify the state of a Session
.
Variants§
CreateResource(CreateResourceCmd)
ReleaseResource(ReleaseResourceCmd)
ExportResource(ExportResourceCmdDeprecated)
ImportResource(ImportResourceCmdDeprecated)
SetTag(SetTagCmd)
Tagging commands.
Detach(DetachCmd)
Grouping commands.
SetTranslation(SetTranslationCmd)
Spatial commands.
SetScale(SetScaleCmd)
SetRotation(SetRotationCmd)
SetAnchor(SetAnchorCmd)
SetSize(SetSizeCmd)
SetOpacity(SetOpacityCmd)
SendSizeChangeHintHack(SendSizeChangeHintCmdHack)
AddChild(AddChildCmd)
Node-specific commands.
AddPart(AddPartCmd)
re-parenting?
DetachChildren(DetachChildrenCmd)
SetShape(SetShapeCmd)
SetMaterial(SetMaterialCmd)
SetClip(SetClipCmd)
SetHitTestBehavior(SetHitTestBehaviorCmd)
SetViewProperties(SetViewPropertiesCmd)
TakeSnapshotCmd(TakeSnapshotCmdDeprecated)
SetCamera(SetCameraCmd)
Camera and lighting commands.
SetCameraTransform(SetCameraTransformCmd)
SetCameraProjection(SetCameraProjectionCmd)
SetStereoCameraProjection(SetStereoCameraProjectionCmd)
SetCameraPoseBuffer(SetCameraPoseBufferCmd)
SetLightColor(SetLightColorCmd)
SetLightDirection(SetLightDirectionCmd)
AddLight(AddLightCmd)
DetachLight(DetachLightCmd)
DetachLights(DetachLightsCmd)
SetTexture(SetTextureCmd)
SetColor(SetColorCmd)
BindMeshBuffers(BindMeshBuffersCmd)
Mesh commands.
AddLayer(AddLayerCmd)
Layer and renderer commands.
RemoveLayer(RemoveLayerCmd)
RemoveAllLayers(RemoveAllLayersCmd)
SetLayerStack(SetLayerStackCmd)
SetRenderer(SetRendererCmd)
SetRendererParam(SetRendererParamCmd)
SetEventMask(SetEventMaskCmd)
Events.
SetLabel(SetLabelCmd)
Diagnostic commands.
SetDisableClipping(SetDisableClippingCmd)
Debugging commands.
SetImportFocus(SetImportFocusCmdDeprecated)
SetClipPlanes(SetClipPlanesCmd)
SetPointLightPosition(SetPointLightPositionCmd)
SetPointLightFalloff(SetPointLightFalloffCmd)
Scene_AddAmbientLight(SceneAddAmbientLightCmd)
Scene_AddDirectionalLight(SceneAddDirectionalLightCmd)
Scene_AddPointLight(SceneAddPointLightCmd)
SetDisplayColorConversion(SetDisplayColorConversionCmdHack)
SetDisplayRotation(SetDisplayRotationCmdHack)
SetEnableViewDebugBounds(SetEnableDebugViewBoundsCmd)
SetViewHolderBoundsColor(SetViewHolderBoundsColorCmd)
SetCameraClipSpaceTransform(SetCameraClipSpaceTransformCmd)
SetDisplayMinimumRgb(SetDisplayMinimumRgbCmdHack)
SetSemanticVisibility(SetSemanticVisibilityCmd)
Implementations§
Trait Implementations§
source§impl Decode<Command> for Command
impl Decode<Command> for Command
source§impl PartialEq<Command> for Command
impl PartialEq<Command> for Command
source§impl ResourceTypeMarker for Command
impl ResourceTypeMarker for Command
§type Borrowed<'a> = &'a mut Command
type Borrowed<'a> = &'a mut Command
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moresource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).source§impl TypeMarker for Command
impl TypeMarker for Command
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(context: Context) -> usize
fn inline_size(context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.