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)
 

Static Public Member Functions

static size_t TotalBytesForWeightCount (size_t weight_count)
 

Public Attributes

int m_SrcStart
 
int m_SrcEnd
 
uint32_t m_Weights [1]
 

Detailed Description

Definition at line 51 of file cstretchengine.h.

Member Function Documentation

◆ GetWeightForPosition()

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

Definition at line 60 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 74 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 54 of file cstretchengine.h.

References m_SrcEnd, and m_SrcStart.

◆ SetWeightForPosition()

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

Definition at line 66 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:

◆ TotalBytesForWeightCount()

size_t CStretchEngine::PixelWeight::TotalBytesForWeightCount ( size_t weight_count)
static

Definition at line 43 of file cstretchengine.cpp.

References m_Weights.

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 files: