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:

Methods

__init__

Overloaded function.

flags

isUseDeviceIndependentFonts

pixelGeometry

Attributes

kAlwaysDither_Flag

kDynamicMSAA_Flag

kUseDeviceIndependentFonts_Flag

Methods

SurfaceProps.__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: skia.SurfaceProps) -> None

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

  3. __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.kAlwaysDither_Flag = <Flags.kAlwaysDither_Flag: 4>
SurfaceProps.kDynamicMSAA_Flag = <Flags.kDynamicMSAA_Flag: 2>
SurfaceProps.kUseDeviceIndependentFonts_Flag = <Flags.kUseDeviceIndependentFonts_Flag: 1>