Gsk.InsetShadowNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.InsetShadowNode¶
- Bases:
- Abstract:
No
A render node for an inset shadow.
- classmethod new(outline, color, dx, dy, spread, blur_radius)¶
- Parameters:
outline (
Gsk.RoundedRect
) – outline of the region containing the shadowcolor (
Gdk.RGBA
) – color of the shadowdx (
float
) – horizontal offset of shadowdy (
float
) – vertical offset of shadowspread (
float
) – how far the shadow spreads towards the insideblur_radius (
float
) – how much blur to apply to the shadow
- Returns:
A new
GskRenderNode
- Return type:
Creates a
GskRenderNode
that will render an inset shadow into the box given by outline.
- get_blur_radius()¶
- Returns:
the blur radius, in pixels
- Return type:
Retrieves the blur radius to apply to the shadow.
- get_color()¶
- Returns:
the color of the shadow
- Return type:
Retrieves the color of the inset shadow.
- get_dx()¶
- Returns:
an offset, in pixels
- Return type:
Retrieves the horizontal offset of the inset shadow.
- get_dy()¶
- Returns:
an offset, in pixels
- Return type:
Retrieves the vertical offset of the inset shadow.
- get_outline()¶
- Returns:
a rounded rectangle
- Return type:
Retrieves the outline rectangle of the inset shadow.