JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
juce::DropShadower Class Reference

Adds a drop-shadow to a component. More...

#include "juce_DropShadower.h"

Inheritance diagram for juce::DropShadower:
juce::ComponentListener

Classes

class  ParentVisibilityChangedListener
 
class  ShadowWindow
 
class  VirtualDesktopWatcher
 

Public Member Functions

 DropShadower (const DropShadow &shadowType)
 Creates a DropShadower.
 
 ~DropShadower () override
 Destructor.
 
void setOwner (Component *componentToFollow)
 Attaches the DropShadower to the component you want to shadow.
 

Detailed Description

Adds a drop-shadow to a component.

This object creates and manages a set of components which sit around a component, creating a gaussian shadow around it. The components will track the position of the component and if it's brought to the front they'll also follow this.

For desktop windows you don't need to use this class directly - just set the Component::windowHasDropShadow flag when calling Component::addToDesktop(), and the system will create one of these if it's needed (which it obviously isn't on the Mac, for example).

@tags{GUI}

Definition at line 45 of file juce_DropShadower.h.

Constructor & Destructor Documentation

◆ DropShadower()

juce::DropShadower::DropShadower ( const DropShadow shadowType)

Creates a DropShadower.

Definition at line 252 of file juce_DropShadower.cpp.

◆ ~DropShadower()

juce::DropShadower::~DropShadower ( )
override

Destructor.

Definition at line 254 of file juce_DropShadower.cpp.

Member Function Documentation

◆ setOwner()

void juce::DropShadower::setOwner ( Component componentToFollow)

Attaches the DropShadower to the component you want to shadow.

Definition at line 271 of file juce_DropShadower.cpp.


The documentation for this class was generated from the following files: