Fcitx
Public Member Functions | List of all members
fcitx::Rect Class Reference

Public Member Functions

 Rect (int _x1=0, int _y1=0, int _x2=0, int _y2=0)
 
 Rect (const Rect &rect)=default
 
Rectoperator= (const Rect &rect)=default
 
RectsetPosition (int x, int y) noexcept
 
RectsetSize (int width, int height) noexcept
 
RectsetLeft (int pos) noexcept
 
RectsetTop (int pos) noexcept
 
RectsetRight (int pos) noexcept
 
RectsetBottom (int pos) noexcept
 
Rect intersected (const Rect &rect) noexcept
 
Rect intersected (const Rect &rect) const noexcept
 
Rect translated (int offsetX, int offsetY) const
 
bool contains (int x, int y) const noexcept
 
bool contains (const Rect &other) const noexcept
 
int distance (int x, int y) const noexcept
 
int left () const noexcept
 
int top () const noexcept
 
int right () const noexcept
 
int bottom () const noexcept
 
int width () const noexcept
 
int height () const noexcept
 
bool operator== (const Rect &other) const
 
bool operator!= (const Rect &other) const
 
bool isEmpty () const
 

Detailed Description

Definition at line 21 of file rect.h.


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