Skip to content

ass::BoxShadow#

Represents box shadow.

Header:#include <AUI/ASS/Property/BoxShadow.h>
CMake:aui_link(my_target PUBLIC aui::views)

Detailed Description#

Unlike CSS, box shadow is not affected by BorderRadius.

Examples#

examples/ui/backdrop/src/main.cpp

Backdrop - Backdrop effects demo.

                      Backdrop {
                          Backdrop::LiquidFluid {},
                      },
//                      Border { 1_dp, AColor::GRAY.transparentize(0.7f) },
                      BoxShadow { 0, 32_dp, 32_dp, AColor::BLACK.transparentize(0.8f) },
                  },
                  Label { "boll" } AUI_WITH_STYLE {
                      FixedSize { 60_dp },
                      BorderRadius { 60_dp / 2.f },
                      Padding { 0 },