wxSplashScreen(3erl)
π NAME π
okay bestie, this is wxSplashScreen(3erl) β the Erlang Module Definition page for wxSplashScreen. It's literally βFunctions for wxSplashScreen classβ. That's the name vibes. slay.
β¨ DESCRIPTION β¨
wxSplashScreen shows a window with a thin border, displaying a bitmap describing your application.
Show it in application initialisation, and then either explicitly destroy it or let it time-out. That's the whole vibe.
Example usage:
the original page says βExample usage:β and then... no snippet. iconic minimalism, honestly. We're not inventing one π«Ά.
This class is derived (and can use functions) from: wxFrame wxTopLevelWindow wxWindow wxEvtHandler.
wxWidgets docs: wxSplashScreen.
π¦ DATA TYPES π¦
wxSplashScreen() = wx:wx_object()
one type, one iconic little alias.
π EXPORTS π
πΈ new/5 πΈ
new(Bitmap, SplashStyle, Milliseconds, Parent, Id) ->
wxSplashScreen()
Types:
Bitmap = wxBitmap:wxBitmap()
SplashStyle = Milliseconds = integer()
Parent = wxWindow:wxWindow()
Id = integer()
π new/6 π
new(Bitmap, SplashStyle, Milliseconds, Parent, Id,
Options :: [Option]) ->
wxSplashScreen()
Types:
Bitmap = wxBitmap:wxBitmap()
SplashStyle = 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. periodt.
splashStyle is a bitlist of some of the following:
bestie, the source says βsome of the following:β and then lists absolutely nothing. That's not me being lazy β don't invent flags, fr fr.
milliseconds is the timeout in milliseconds.
π destroy/1 π
destroy(This :: wxSplashScreen()) -> ok
Destroys the splash screen. bye-bye, splashy.
π§ getSplashStyle/1 π§
getSplashStyle(This) -> integer()
Types:
This = wxSplashScreen()
Returns the splash style (see new/6 for details). iykyk.
π getTimeout/1 π
getTimeout(This) -> integer()
Types:
This = wxSplashScreen()
Returns the timeout in milliseconds. clock it.
mwah π huge shoutout to the wxWidgets team, version wx 2.2.2.1, and this page is wxSplashScreen(3erl). Date? not in the footer, bestie β no invented dates here. π
π¦ 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