31 backgroundImage (image),
32 clickCountToDelete (0)
39 #if JUCE_IOS || JUCE_ANDROID
45 makeVisible (image.getWidth(), image.getHeight(), useDropShadow,
useFullScreen);
50 clickCountToDelete (0)
52 makeVisible (width, height, useDropShadow,
false);
55void SplashScreen::makeVisible (
int w,
int h,
bool useDropShadow,
bool fullscreen)
61 const int width = (fullscreen ?
screenSize.getWidth() : w);
62 const int height = (fullscreen ?
screenSize.getHeight() : h);
83 minimumVisibleTime = timeout;
94void SplashScreen::timerCallback()
virtual void setFullScreen(bool shouldBeFullScreen)=0
Enable/disable fullscreen mode for the window.
@ windowHasDropShadow
Indicates that the window should have a drop-shadow (this may not be possible on all platforms).
The base class for all JUCE user-interface objects.
void toFront(bool shouldAlsoGainKeyboardFocus)
Brings the component to the front of its siblings.
void setAlwaysOnTop(bool shouldStayOnTop)
Sets whether the component should always be kept at the front of its siblings.
void setOpaque(bool shouldBeOpaque)
Indicates whether any parts of the component might be transparent.
virtual void addToDesktop(int windowStyleFlags, void *nativeWindowToAttachTo=nullptr)
Makes this component appear as a window on the desktop.
ComponentPeer * getPeer() const
Returns the heavyweight window that contains this component.
Rectangle< int > getLocalBounds() const noexcept
Returns the component's bounds, relative to its own origin.
void centreWithSize(int width, int height)
Changes the component's size and centres it within its parent.
virtual void setVisible(bool shouldBeVisible)
Makes the component visible or invisible.
const Displays & getDisplays() const noexcept
Returns the Displays object representing the connected displays.
int getMouseButtonClickCounter() const noexcept
Returns the number of times the mouse button has been clicked since the app started.
static Desktop &JUCE_CALLTYPE getInstance()
There's only one desktop object, and this method will return it.
Rectangle< int > userArea
The total area of this display in logical pixels which isn't covered by OS-dependent objects like the...
const Display * getPrimaryDisplay() const noexcept
Returns the Display object representing the display acting as the user's main screen,...
A graphics context, used for drawing a component or image.
void drawImage(const Image &imageToDraw, int destX, int destY, int destWidth, int destHeight, int sourceX, int sourceY, int sourceWidth, int sourceHeight, bool fillAlphaChannelWithCurrentBrush=false) const
Draws part of an image, rescaling it to fit in a given target region.
void setOpacity(float newOpacity)
Changes the opacity to use with the current colour.
Holds a fixed-size bitmap.
bool hasAlphaChannel() const noexcept
True if the image contains an alpha-channel.
bool isValid() const noexcept
Returns true if this image isn't null.
Defines the method used to position some kind of rectangular object within a rectangular viewport.
@ fillDestination
If this flag is set, then the source rectangle will be resized so that it is the minimum size to comp...
Manages a rectangle and allows geometric operations to be performed on it.
A relative measure of time.
void paint(Graphics &) override
Components can override this method to draw their content.
void deleteAfterDelay(RelativeTime minimumTotalTimeToDisplayFor, bool removeOnMouseClick)
Tells the component to auto-delete itself after a timeout period, or when the mouse is clicked.
SplashScreen(const String &title, const Image &backgroundImage, bool useDropShadow)
Creates a SplashScreen object.
~SplashScreen() override
Destructor.
static Time JUCE_CALLTYPE getCurrentTime() noexcept
Returns a Time object that is set to the current system time.
void startTimer(int intervalInMilliseconds) noexcept
Starts the timer and sets the length of interval required.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...