Skip to content

Instantly share code, notes, and snippets.

@Mercandj
Last active April 13, 2023 09:53
Show Gist options
  • Save Mercandj/d2e38fd8fc15d802f17744f015307de3 to your computer and use it in GitHub Desktop.
Save Mercandj/d2e38fd8fc15d802f17744f015307de3 to your computer and use it in GitHub Desktop.
enum class AspectRatioReference {
/** Child width matches parent width. Child height adjusted to keep the ratio */
PARENT_WIDTH,
/** Child height matches parent height. Child height adjusted to keep the ratio */
PARENT_HEIGHT,
/** Child fits parent smallest width or height */
MIN_PARENT_WIDTH_PARENT_HEIGHT,
/** Child fits parent biggest width or height */
MAX_PARENT_WIDTH_PARENT_HEIGHT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment