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
CFX_ClipRgn Class Reference

#include <cfx_cliprgn.h>

+ Collaboration diagram for CFX_ClipRgn:

Public Types

enum  ClipType : bool { kRectI , kMaskF }
 

Public Member Functions

 CFX_ClipRgn (int device_width, int device_height)
 
 CFX_ClipRgn (const CFX_ClipRgn &src)
 
 ~CFX_ClipRgn ()
 
ClipType GetType () const
 
const FX_RECTGetBox () const
 
RetainPtr< CFX_DIBitmapGetMask () const
 
void IntersectRect (const FX_RECT &rect)
 
void IntersectMaskF (int left, int top, RetainPtr< CFX_DIBitmap > Mask)
 

Detailed Description

Definition at line 15 of file cfx_cliprgn.h.

Member Enumeration Documentation

◆ ClipType

enum CFX_ClipRgn::ClipType : bool
Enumerator
kRectI 
kMaskF 

Definition at line 17 of file cfx_cliprgn.h.

Constructor & Destructor Documentation

◆ CFX_ClipRgn() [1/2]

CFX_ClipRgn::CFX_ClipRgn ( int device_width,
int device_height )

Definition at line 18 of file cfx_cliprgn.cpp.

References FX_RECT::FX_RECT().

+ Here is the call graph for this function:

◆ CFX_ClipRgn() [2/2]

CFX_ClipRgn::CFX_ClipRgn ( const CFX_ClipRgn & src)
default

◆ ~CFX_ClipRgn()

CFX_ClipRgn::~CFX_ClipRgn ( )
default

Member Function Documentation

◆ GetBox()

const FX_RECT & CFX_ClipRgn::GetBox ( ) const
inline

Definition at line 24 of file cfx_cliprgn.h.

Referenced by CFX_DIBitmap::CompositeBitmap(), CFX_DIBitmap::CompositeMask(), and CFX_DIBBase::GetOverlapRect().

+ Here is the caller graph for this function:

◆ GetMask()

RetainPtr< CFX_DIBitmap > CFX_ClipRgn::GetMask ( ) const
inline

Definition at line 25 of file cfx_cliprgn.h.

◆ GetType()

ClipType CFX_ClipRgn::GetType ( ) const
inline

Definition at line 23 of file cfx_cliprgn.h.

Referenced by CFX_DIBitmap::CompositeBitmap(), and CFX_DIBitmap::CompositeMask().

+ Here is the caller graph for this function:

◆ IntersectMaskF()

void CFX_ClipRgn::IntersectMaskF ( int left,
int top,
RetainPtr< CFX_DIBitmap > Mask )

Definition at line 58 of file cfx_cliprgn.cpp.

References FX_RECT::bottom, FX_RECT::Height(), FX_RECT::Intersect(), FX_RECT::IsEmpty(), k8bppMask, kRectI, FX_RECT::left, FX_RECT::operator=(), FX_RECT::right, FX_RECT::top, and FX_RECT::Width().

+ Here is the call graph for this function:

◆ IntersectRect()

void CFX_ClipRgn::IntersectRect ( const FX_RECT & rect)

Definition at line 24 of file cfx_cliprgn.cpp.

References FX_RECT::Intersect(), and kRectI.

+ Here is the call graph for this function:

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