API Documentation
Loading...
Searching...
No Matches
ResizeVisibleAnimation Class Reference

Resposible for animating widgets by having them grown as they become visible, or shrink as they become invisible. For some operating systems will also apply a fade effect. More...

#include <ResizeVisibleAnimation.h>

Inheritance diagram for ResizeVisibleAnimation:
[legend]
Collaboration diagram for ResizeVisibleAnimation:
[legend]

Public Member Functions

double activeSize () const
 
bool eventFilter (QObject *object, QEvent *event) override
 
void reverse ()
 
void setActiveSize (double size)
 
void setDeleteWidgetOnEnd (bool delete_widget)
 
void setup (int duration, int start_delay, bool ignore_max_min_size)
 
virtual ~ResizeVisibleAnimation ()
 

Static Public Member Functions

static ResizeVisibleAnimationActiveAnimation (QWidget *widget)
 
static ResizeVisibleAnimationrun (QWidget *widget, bool visible, bool vertical, int duration=-1, int delay=0)
 
static ResizeVisibleAnimationrun (QWidget *widget, bool visible, const PopupInfo &start_location, const PopupInfo &end_location, int duration=-1, int delay=0)
 
static ResizeVisibleAnimationrunRemove (QWidget *widget, bool vertical, int duration=-1, int delay=0)
 
static void setTopLevelWidget (QWidget *top_widget)
 

Protected Slots

void startAnimation ()
 

Protected Member Functions

 ResizeVisibleAnimation (QWidget *widget, bool visible, bool vertical, int duration=300, int delay=0)
 
 ResizeVisibleAnimation (QWidget *widget, bool visible, PopupInfo start_location, PopupInfo end_location, int duration=300, int delay=0)
 

Properties

double visible_size
 

Detailed Description

Resposible for animating widgets by having them grown as they become visible, or shrink as they become invisible. For some operating systems will also apply a fade effect.


Constructor & Destructor Documentation

◆ ResizeVisibleAnimation() [1/2]

ResizeVisibleAnimation ( QWidget * widget,
bool visible,
bool vertical,
int duration = 300,
int delay = 0 )
protected

◆ ResizeVisibleAnimation() [2/2]

ResizeVisibleAnimation ( QWidget * widget,
bool visible,
PopupInfo start_location,
PopupInfo end_location,
int duration = 300,
int delay = 0 )
protected

◆ ~ResizeVisibleAnimation()

virtual ~ResizeVisibleAnimation ( )
virtual

Member Function Documentation

◆ ActiveAnimation()

static ResizeVisibleAnimation * ActiveAnimation ( QWidget * widget)
static

◆ activeSize()

double activeSize ( ) const
inline

◆ eventFilter()

bool eventFilter ( QObject * object,
QEvent * event )
override

◆ reverse()

void reverse ( )

◆ run() [1/2]

static ResizeVisibleAnimation * run ( QWidget * widget,
bool visible,
bool vertical,
int duration = -1,
int delay = 0 )
static

◆ run() [2/2]

static ResizeVisibleAnimation * run ( QWidget * widget,
bool visible,
const PopupInfo & start_location,
const PopupInfo & end_location,
int duration = -1,
int delay = 0 )
static

◆ runRemove()

static ResizeVisibleAnimation * runRemove ( QWidget * widget,
bool vertical,
int duration = -1,
int delay = 0 )
static

◆ setActiveSize()

void setActiveSize ( double size)

◆ setDeleteWidgetOnEnd()

void setDeleteWidgetOnEnd ( bool delete_widget)
inline

◆ setTopLevelWidget()

static void setTopLevelWidget ( QWidget * top_widget)
static

◆ setup()

void setup ( int duration,
int start_delay,
bool ignore_max_min_size )

◆ startAnimation

void startAnimation ( )
protectedslot

Property Documentation

◆ visible_size

double visible_size
readwrite

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