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

#include <mythuianimation.h>

Collaboration diagram for UIEffects:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

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

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 9 of file mythuianimation.h.

Member Enumeration Documentation

◆ Centre

Enumerator
TopLeft 
Top 
TopRight 
Left 
Middle 
Right 
BottomLeft 
Bottom 
BottomRight 

Definition at line 12 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 
)
inline

Definition at line 18 of file mythuianimation.h.

Referenced by MythUIType::Draw().

◆ GetExtent()

QRect UIEffects::GetExtent ( const QSize &  size)

Definition at line 7 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}

Definition at line 38 of file mythuianimation.h.

Referenced by MythRenderOpenGL::PushTransformation(), and MythUIType::SetAngle().

◆ m_centre

Centre UIEffects::m_centre {Middle}

Definition at line 39 of file mythuianimation.h.

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


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