wxGraphi...ientStops(3erl)
π wxGraphi...ientStops(3erl) π
okay bestie, welcome to the Erlang Module Definition for wxGraphi...ientStops(3erl) β this is the wxWidgets docs page for wxGraphicsGradientStops, and itβs lowkey the little collection-of-gradient-stops class you didnβt know you needed. Itβs giving main character energy for gradient brushes, no cap. Letβs get into it, fr fr.
πΈ NAME πΈ
wxGraphicsGradientStops β represents a collection of wxGraphicGradientStop values for use with CreateLinearGradientBrush and CreateRadialGradientBrush.
π¦ DESCRIPTION π¦
The way that this works: the stops are maintained in order of position. If two or more stops are added with the same position then the one(s) added later come later. This can be useful for producing discontinuities in the colour gradient.
β οΈ Notice that this class is write-once β you can't modify the stops once they had been added. So no take-backs, bestie. Periodt. π
Since: 2.9.1
wxWidgets docs: wxGraphicsGradientStops
π DATA TYPES π
wxGraphicsGradientStops() = wx:wx_object()
β¨ EXPORTS β¨
π new() -> wxGraphicsGradientStops()
No options, just the zero-argument constructor. Fresh gradient-stops object energy. β¨
new(Options :: [Option]) -> wxGraphicsGradientStops()
Types:
Option = {startCol, wx:wx_colour()} | {endCol, wx:wx_colour()}
Initializes the gradient stops with the given boundary colours.
Creates a wxGraphicsGradientStops instance with start colour given by startCol and end colour given by endCol.
item(This, N) -> {wx:wx_colour4(), float()}
Types:
This = wxGraphicsGradientStops()
N = integer()
Returns the stop at the given index.
getCount(This) -> integer()
Types:
This = wxGraphicsGradientStops()
Returns the number of stops.
setStartColour(This, Col) -> ok
Types:
This = wxGraphicsGradientStops()
Col = wx:wx_colour()
Set the start colour to Col.
getStartColour(This) -> wx:wx_colour4()
Types:
This = wxGraphicsGradientStops()
Returns the start colour.
setEndColour(This, Col) -> ok
Types:
This = wxGraphicsGradientStops()
Col = wx:wx_colour()
Set the end colour to Col.
getEndColour(This) -> wx:wx_colour4()
Types:
This = wxGraphicsGradientStops()
Returns the end colour.
add(This, Col, Pos) -> ok
Types:
This = wxGraphicsGradientStops()
Col = wx:wx_colour()
Pos = number()
Add a new stop. Slay.
destroy(This :: wxGraphicsGradientStops()) -> ok
Destroys the object.
π cute sign-off: source = wxWidgets team, version = wx 2.2.2.1, date = not shown in the original footer (so no fake date, ngl), and the footer id is wxGraphi...ientStops(3erl). π«Ά
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms