SurfaceProps

class SurfaceProps

Describes properties and constraints of a given Surface.

The rendering engine can parse these during drawing, and can sometimes optimize its performance (e.g. disabling an expensive feature).

Classes

Flags

Members:

InitType

Members:

Methods

__init__

__init__(*args, **kwargs) Overloaded function.

flags

isUseDeviceIndependentFonts

pixelGeometry

Attributes

kLegacyFontHost_InitType

kUseDeviceIndependentFonts_Flag

kUseDistanceFieldFonts_Flag

Methods

SurfaceProps.__init__(*args, **kwargs)

__init__(*args, **kwargs) Overloaded function.

  1. __init__(self: skia.SurfaceProps, flags: int, geometry: skia.PixelGeometry) -> None

  2. __init__(self: skia.SurfaceProps, initType: skia.SurfaceProps.InitType) -> None

  3. __init__(self: skia.SurfaceProps, flags: int, initType: skia.SurfaceProps.InitType) -> None

  4. __init__(self: skia.SurfaceProps, props: skia.SurfaceProps) -> None

SurfaceProps.flags(self: skia.SurfaceProps) int
SurfaceProps.isUseDeviceIndependentFonts(self: skia.SurfaceProps) bool
SurfaceProps.pixelGeometry(self: skia.SurfaceProps) skia.PixelGeometry

Attributes

SurfaceProps.kLegacyFontHost_InitType = <InitType.kLegacyFontHost_InitType: 0>
SurfaceProps.kUseDeviceIndependentFonts_Flag = <Flags.kUseDeviceIndependentFonts_Flag: 1>
SurfaceProps.kUseDistanceFieldFonts_Flag = <Flags.kUseDeviceIndependentFonts_Flag: 1>