![]() |
BSB Developer Docs
|
Gradient fader widget for creating fade effects at widget edges. More...
#include "../widget.h"Go to the source code of this file.
Typedefs | |
| typedef struct OverlapFader | OverlapFader |
| OverlapFader opaque structure. | |
Enumerations | |
| enum | OverlapFaderSide { OverlapFaderSideLeft , OverlapFaderSideRight , OverlapFaderSideTop , OverlapFaderSideBottom , OverlapFaderSidesCount } |
| Side to position the fader relative to a target widget. More... | |
Functions | |
| OverlapFader * | overlap_fader_alloc (Widget *parent) |
| Create a new OverlapFader instance. | |
| void | overlap_fader_free (OverlapFader *instance) |
| Delete an OverlapFader instance. | |
| Widget * | overlap_fader_get_base (OverlapFader *instance) |
| Get a pointer to the base class instance. | |
| void | overlap_fader_align_to (OverlapFader *instance, Widget *target, OverlapFaderSide side) |
| Position the fader relative to a target widget. | |
| void | overlap_fader_realign (OverlapFader *instance) |
| Re-align the fader to its target without changing configuration. | |
Gradient fader widget for creating fade effects at widget edges.
| enum OverlapFaderSide |
Side to position the fader relative to a target widget.
| void overlap_fader_align_to | ( | OverlapFader * | instance, |
| Widget * | target, | ||
| OverlapFaderSide | side ) |
Position the fader relative to a target widget.
Also configures gradient direction and opacity based on the chosen side.
| [in,out] | instance | pointer to the OverlapFader instance |
| [in] | target | pointer to the target Widget to align to |
| [in] | side | side to position the fader on |
| OverlapFader * overlap_fader_alloc | ( | Widget * | parent | ) |
Create a new OverlapFader instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void overlap_fader_free | ( | OverlapFader * | instance | ) |
Delete an OverlapFader instance.
| [in,out] | instance | pointer to the OverlapFader instance to be deleted |
| Widget * overlap_fader_get_base | ( | OverlapFader * | instance | ) |
Get a pointer to the base class instance.
| [in,out] | instance | pointer to the OverlapFader instance to be queried |
| void overlap_fader_realign | ( | OverlapFader * | instance | ) |
Re-align the fader to its target without changing configuration.
Useful when the target's position has changed after the initial alignment. Uses the target and alignment from the previous overlap_fader_align_to call.
| [in,out] | instance | pointer to the OverlapFader instance |