wxGraphicsGradientStops(3)
π wxGraphicsGradientStops(3) β Erlang Module Definition π
okay bestie, gather round, because today we're talking about wxGraphicsGradientStops, a whole module in the wx Erlang docs, and honestly? it's giving palette curator. it's giving "I hold all the little colour stops so your gradient can pop off." π
β¨ NAME β¨
wxGraphicsGradientStops β represents a collection of wxGraphicGradientStop values for use with CreateLinearGradientBrush and CreateRadialGradientBrush. π
πΈ DESCRIPTION πΈ
so the vibe here is: your stops stay in order of position. that's the whole personality. if two or more stops get added with the same position, then the one(s) added later come later. not a bug, not a glitch β that's actually useful, because it lets you produce discontinuities in the colour gradient. hard edges?? we love a hard edge when we asked for one. π
β οΈ important heads up, bestie: this class is write-once. you cannot modify the stops once they've been added. no take-backs. no edits. it's done, it's iconic, it's locked in. π
Since: 2.9.1 β
wxWidgets docs: wxGraphicsGradientStops π¦
π§ DATA TYPES π§
wxGraphicsGradientStops() :: wx:wx_object().
π FUNCTIONS π
add(This, Col, Pos) -> okβ add a new stop. that's it, that's the function, go off. β¨
add(This, Col, Pos) -> ok
when
This :: wxGraphicsGradientStops(),
Col :: wx:wx_colour(),
Pos :: number().
destroy(This :: wxGraphicsGradientStops()) -> ok.β destroys the object. rip little gradient collection, you served. πgetCount(This) -> integer() when This :: wxGraphicsGradientStops().β returns the number of stops. counting era. π’getEndColour(This) -> wx:wx_colour4() when This :: wxGraphicsGradientStops().β returns the end colour. the finale. the last look. πgetStartColour(This) -> wx:wx_colour4() when This :: wxGraphicsGradientStops().β returns the start colour. the opening act. πΈitem(This, N) -> {wx:wx_colour4(), float()} when This :: wxGraphicsGradientStops(), N :: integer().β returns the stop at the given index. yes, you can just grab one by number, no cap. πnew([Option]) -> wxGraphicsGradientStops()β initializes the gradient stops with the given boundary colours. creates awxGraphicsGradientStopsinstance with start colour given bystartColand end colour given byendCol. theOptiontype is{startCol, wx:wx_colour()} | {endCol, wx:wx_colour()}. π«Ά
new([Option]) -> wxGraphicsGradientStops()
when
Option ::
{startCol, wx:wx_colour()} |
{endCol, wx:wx_colour()}.
setEndColour(This, Col) -> okβ set the end colour tocol. (even though, reminder, this class is write-once β the original doc says so, i'm just the messenger bestie π)
setEndColour(This, Col) -> ok
when
This :: wxGraphicsGradientStops(),
Col :: wx:wx_colour().
setStartColour(This, Col) -> okβ set the start colour tocol. same energy, different end of the gradient. π
setStartColour(This, Col) -> ok
when
This :: wxGraphicsGradientStops(),
Col :: wx:wx_colour().
π reminder bestie: every stop, every colour, every position β they all matter, and they all have to be in the right order. that's the whole point. main character energy for your gradient. periodt. π
and that's the tea!! π this page came to you from Ericsson AB, wx version 2.6, under the wxGraphicsGradientStops(3) name. go make something pretty, ily, bye!! πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms