wxSplashScreen(3)
π NAME π
okay so, bestie, welcome to the wxSplashScreen(3) page β¨
wxSplashScreen β it shows a window with a thin border, displaying a bitmap describing your application. it's giving "look at my app before it even loads" main character energy π
π¦ DESCRIPTION π¦
Show it in application initialisation, and then either explicitly destroy it or let it time-out. that's the whole vibe β pop it up while your app is waking up, then either yeet it yourself with a destroy, or just let the clock run out and it dips on its own π
Example usage:
ngl, the page says "Example usage:" and then... nothing follows it π that's literally just how it is in the docs, bestie, i'm not gatekeeping an example from you, there isn't one here π
This class is derived, and can use functions, from:
wxFramewxTopLevelWindowwxWindowwxEvtHandler
so yeah, it inherits from all of those, which means it's lowkey stacked with inherited behaviour π
wxWidgets docs: wxSplashScreen
β¨ DATA TYPES β¨
wxSplashScreen() :: wx:wx_object().
that's the object type, she's just a wx:wx_object() underneath πΈ
π FUNCTIONS π
π destroy
destroy(This :: wxSplashScreen()) -> ok.
Destroys the object. gone, bye, no notes π
πΈ getSplashStyle
getSplashStyle(This) -> integer() when This :: wxSplashScreen().
Returns the splash style (see new/6 for details). yes bestie, the details are down in new/6, keep scrolling π«Ά
π¦ getTimeout
getTimeout(This) -> integer() when This :: wxSplashScreen().
Returns the timeout in milliseconds. clock's ticking fr fr β³
π new
new(Bitmap, SplashStyle, Milliseconds, Parent, Id, [Option]) ->
wxSplashScreen()
when
Bitmap :: wxBitmap:wxBitmap(),
SplashStyle :: integer(),
Milliseconds :: integer(),
Parent :: wxWindow:wxWindow(),
Id :: integer(),
Option ::
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()}.
Construct the splash screen passing a bitmap, a style, a timeout, a window id, optional position and size, and a window style. that's the lineup, hand them all over and she's built π
SplashStyle is a bitlist of some of the following:
wxSPLASH_CENTRE_ON_PARENTwxSPLASH_CENTRE_ON_SCREENwxSPLASH_NO_CENTREwxSPLASH_TIMEOUTwxSPLASH_NO_TIMEOUT
Milliseconds is the timeout in milliseconds. β°
and that's the whole page, bestie, you ate it, no crumbs π
this manual page came to you courtesy of Ericsson AB, and it's from wx 2.6 β so yeah, that's the source, that's the version, mwah π
π¦ 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