檢視原始碼 wxSplashScreen (wx v2.4.3)
wxSplashScreen
會顯示一個邊框很細的視窗,並顯示描述您的應用程式的點陣圖。
在應用程式初始化時顯示它,然後明確地銷毀它,或讓它逾時。
使用範例
這個類別繼承自下列類別,並可使用它們的功能:
wxWidgets 文件: wxSplashScreen
摘要
型別
-type wxSplashScreen() :: wx:wx_object().
函式
-spec destroy(This :: wxSplashScreen()) -> ok.
銷毀物件
-spec getSplashStyle(This) -> integer() when This :: wxSplashScreen().
傳回啟動畫面樣式 (詳情請參閱 new/6
)。
-spec getTimeout(This) -> integer() when This :: wxSplashScreen().
傳回逾時時間 (以毫秒為單位)。
-spec new(Bitmap, SplashStyle, Milliseconds, Parent, Id) -> wxSplashScreen() when Bitmap :: wxBitmap:wxBitmap(), SplashStyle :: integer(), Milliseconds :: integer(), Parent :: wxWindow:wxWindow(), Id :: integer().
-spec 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()}.
建構啟動畫面,並傳遞點陣圖、樣式、逾時時間、視窗 ID、可選的位置和大小以及視窗樣式。
splashStyle
是下列一些值的位元列表
wxSPLASH_CENTRE_ON_PARENT
wxSPLASH_CENTRE_ON_SCREEN
wxSPLASH_NO_CENTRE
wxSPLASH_TIMEOUT
wxSPLASH_NO_TIMEOUT
milliseconds
是逾時時間,以毫秒為單位。