Description

Enumeration that defines how viewbox will be filled int the vg canvs's viewport. default Fill_Mode is none

Fields

  • none - Don't scale the viewbox. Placed it inside viewport taking align property into account
  • stretch - Scale the viewbox so that it matches the canvas viewport. Aaspect ratio might be changed.
  • meet - Scale the viewbox so that it fits inside canvas viewport while maintaining the aspect ratio. At least one of the dimensions of the viewbox should be equal to the corresponding dimension of the viewport.
  • slice - Scale the viewbox so that it covers the entire canvas viewport while maintaining the aspect ratio. At least one of the dimensions of the viewbox should be equal to the corresponding dimension of the viewport.

Signature

enum Efl.Canvas.Vg.Fill_Mode {
    none: 0,
    stretch,
    meet,
    slice
}

C signature

typedef enum {
    EFL_CANVAS_VG_FILL_MODE_NONE = 0,
    EFL_CANVAS_VG_FILL_MODE_STRETCH,
    EFL_CANVAS_VG_FILL_MODE_MEET,
    EFL_CANVAS_VG_FILL_MODE_SLICE
} Efl_Canvas_Vg_Fill_Mode;