class documentation

class ThumbnailMode(bb.Union): (source)

View In Hierarchy

This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar files.ThumbnailMode.strict: Scale down the image to fit within the given size. :ivar files.ThumbnailMode.bestfit: Scale down the image to fit within the given size or its transpose. :ivar files.ThumbnailMode.fitone_bestfit: Scale down the image to completely cover the given size or its transpose.

Method is_bestfit Check if the union tag is ``bestfit``.
Method is_fitone_bestfit Check if the union tag is ``fitone_bestfit``.
Method is_strict Check if the union tag is ``strict``.
Class Variable bestfit Undocumented
Class Variable fitone_bestfit Undocumented
Class Variable strict Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
def is_bestfit(self): (source)

Check if the union tag is ``bestfit``. :rtype: bool

def is_fitone_bestfit(self): (source)

Check if the union tag is ``fitone_bestfit``. :rtype: bool

def is_strict(self): (source)

Check if the union tag is ``strict``. :rtype: bool

Undocumented

fitone_bestfit = (source)

Undocumented

Undocumented

def _process_custom_annotations(self, annotation_type, field_path, processor): (source)

Undocumented

_catch_all = (source)

Undocumented