MythTV  master
Public Types | Public Member Functions | Public Attributes | List of all members
UIEffects Class Reference

#include <libmythui/mythuianimation.h>

Collaboration diagram for UIEffects:
[legend]

Public Types

enum  Centre : std::uint8_t {
  TopLeft, Top, TopRight, Left,
  Middle, Right, BottomLeft, Bottom,
  BottomRight
}
 

Public Member Functions

 UIEffects ()=default
 
QPointF GetCentre (const QRect rect, int xoff, int yoff) const
 
QRect GetExtent (QSize size) const
 

Public Attributes

int m_alpha {255}
 
float m_hzoom {1.0F}
 
float m_vzoom {1.0F}
 
float m_angle {0.0F}
 
Centre m_centre {Middle}
 

Detailed Description

Definition at line 13 of file mythuianimation.h.

Member Enumeration Documentation

◆ Centre

enum UIEffects::Centre : std::uint8_t
Enumerator
TopLeft 
Top 
TopRight 
Left 
Middle 
Right 
BottomLeft 
Bottom 
BottomRight 

Definition at line 16 of file mythuianimation.h.

Constructor & Destructor Documentation

◆ UIEffects()

UIEffects::UIEffects ( )
default

Member Function Documentation

◆ GetCentre()

QPointF UIEffects::GetCentre ( const QRect  rect,
int  xoff,
int  yoff 
) const
inline

Definition at line 23 of file mythuianimation.h.

Referenced by MythUIType::Draw().

◆ GetExtent()

QRect UIEffects::GetExtent ( QSize  size) const

Definition at line 8 of file mythuianimation.cpp.

Referenced by MythUIImage::DrawSelf().

Member Data Documentation

◆ m_alpha

int UIEffects::m_alpha {255}

◆ m_hzoom

float UIEffects::m_hzoom {1.0F}

◆ m_vzoom

float UIEffects::m_vzoom {1.0F}

◆ m_angle

float UIEffects::m_angle {0.0F}

◆ m_centre

Centre UIEffects::m_centre {Middle}

Definition at line 44 of file mythuianimation.h.

Referenced by GetCentre(), GetExtent(), MythUIType::SetCentre(), and Slide::SetZoom().


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