Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CStretchEngine::PixelWeight Struct Reference

#include <cstretchengine.h>

Collaboration diagram for CStretchEngine::PixelWeight:

Public Member Functions

void SetStartEnd (int src_start, int src_end, size_t weight_count)
uint32_t GetWeightForPosition (int position) const
void SetWeightForPosition (int position, uint32_t weight)
void RemoveLastWeightAndAdjust (uint32_t weight_change)

Public Attributes

int m_SrcStart
int m_SrcEnd
uint32_t m_Weights [1]

Detailed Description

Definition at line 47 of file cstretchengine.h.

Member Function Documentation

◆ GetWeightForPosition()

uint32_t CStretchEngine::PixelWeight::GetWeightForPosition ( int position) const
inline

Definition at line 54 of file cstretchengine.h.

References m_SrcEnd, m_SrcStart, and m_Weights.

Referenced by CStretchEngine::ContinueStretchHorz(), and CStretchEngine::StretchVert().

Here is the caller graph for this function:

◆ RemoveLastWeightAndAdjust()

void CStretchEngine::PixelWeight::RemoveLastWeightAndAdjust ( uint32_t weight_change)
inline

Definition at line 70 of file cstretchengine.h.

References m_SrcEnd, m_SrcStart, and m_Weights.

Referenced by CStretchEngine::WeightTable::CalculateWeights().

Here is the caller graph for this function:

◆ SetStartEnd()

void CStretchEngine::PixelWeight::SetStartEnd ( int src_start,
int src_end,
size_t weight_count )
inline

Definition at line 48 of file cstretchengine.h.

References m_SrcEnd, and m_SrcStart.

◆ SetWeightForPosition()

void CStretchEngine::PixelWeight::SetWeightForPosition ( int position,
uint32_t weight )
inline

Definition at line 61 of file cstretchengine.h.

References m_SrcEnd, m_SrcStart, and m_Weights.

Referenced by CStretchEngine::WeightTable::CalculateWeights().

Here is the caller graph for this function:

Member Data Documentation

◆ m_SrcEnd

◆ m_SrcStart

◆ m_Weights

uint32_t CStretchEngine::PixelWeight::m_Weights[1]

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