plushie/prop/content_fit

Content fit type for image and media scaling.

Types

pub type ContentFit {
  Contain
  Cover
  FitFill
  ScaleDown
  NoFit
}

Constructors

  • Contain
  • Cover
  • FitFill
  • ScaleDown
  • NoFit

Values

pub fn to_prop_value(c: ContentFit) -> node.PropValue

Encode a ContentFit to its wire-format PropValue.

pub fn to_string(c: ContentFit) -> String

Convert a ContentFit to its wire-format string representation.

Search Document