Path Tracing
Loading...
Searching...
No Matches
ImRect Struct Reference

#include <imgui_internal.h>

Collaboration diagram for ImRect:

Public Member Functions

constexpr ImRect ()
constexpr ImRect (const ImVec2 &min, const ImVec2 &max)
constexpr ImRect (const ImVec4 &v)
constexpr ImRect (float x1, float y1, float x2, float y2)
ImVec2 GetCenter () const
ImVec2 GetSize () const
float GetWidth () const
float GetHeight () const
float GetArea () const
ImVec2 GetTL () const
ImVec2 GetTR () const
ImVec2 GetBL () const
ImVec2 GetBR () const
bool Contains (const ImVec2 &p) const
bool Contains (const ImRect &r) const
bool ContainsWithPad (const ImVec2 &p, const ImVec2 &pad) const
bool Overlaps (const ImRect &r) const
void Add (const ImVec2 &p)
void Add (const ImRect &r)
void AddX (float x)
void AddY (float y)
void Expand (const float amount)
void Expand (const ImVec2 &amount)
void Translate (const ImVec2 &d)
void TranslateX (float dx)
void TranslateY (float dy)
void ClipWith (const ImRect &r)
void ClipWithFull (const ImRect &r)
bool IsInverted () const
ImVec4 ToVec4 () const
const ImVec4 & AsVec4 () const

Public Attributes

ImVec2 Min
ImVec2 Max

Constructor & Destructor Documentation

◆ ImRect() [1/4]

ImRect::ImRect ( )
inlineconstexpr

◆ ImRect() [2/4]

ImRect::ImRect ( const ImVec2 & min,
const ImVec2 & max )
inlineconstexpr

◆ ImRect() [3/4]

ImRect::ImRect ( const ImVec4 & v)
inlineconstexpr

◆ ImRect() [4/4]

ImRect::ImRect ( float x1,
float y1,
float x2,
float y2 )
inlineconstexpr

Member Function Documentation

◆ Add() [1/2]

void ImRect::Add ( const ImRect & r)
inline

◆ Add() [2/2]

void ImRect::Add ( const ImVec2 & p)
inline

◆ AddX()

void ImRect::AddX ( float x)
inline

◆ AddY()

void ImRect::AddY ( float y)
inline

◆ AsVec4()

const ImVec4 & ImRect::AsVec4 ( ) const
inline

◆ ClipWith()

void ImRect::ClipWith ( const ImRect & r)
inline

◆ ClipWithFull()

void ImRect::ClipWithFull ( const ImRect & r)
inline

◆ Contains() [1/2]

bool ImRect::Contains ( const ImRect & r) const
inline

◆ Contains() [2/2]

bool ImRect::Contains ( const ImVec2 & p) const
inline

◆ ContainsWithPad()

bool ImRect::ContainsWithPad ( const ImVec2 & p,
const ImVec2 & pad ) const
inline

◆ Expand() [1/2]

void ImRect::Expand ( const float amount)
inline

◆ Expand() [2/2]

void ImRect::Expand ( const ImVec2 & amount)
inline

◆ GetArea()

float ImRect::GetArea ( ) const
inline

◆ GetBL()

ImVec2 ImRect::GetBL ( ) const
inline

◆ GetBR()

ImVec2 ImRect::GetBR ( ) const
inline

◆ GetCenter()

ImVec2 ImRect::GetCenter ( ) const
inline

◆ GetHeight()

float ImRect::GetHeight ( ) const
inline

◆ GetSize()

ImVec2 ImRect::GetSize ( ) const
inline

◆ GetTL()

ImVec2 ImRect::GetTL ( ) const
inline

◆ GetTR()

ImVec2 ImRect::GetTR ( ) const
inline

◆ GetWidth()

float ImRect::GetWidth ( ) const
inline

◆ IsInverted()

bool ImRect::IsInverted ( ) const
inline

◆ Overlaps()

bool ImRect::Overlaps ( const ImRect & r) const
inline

◆ ToVec4()

ImVec4 ImRect::ToVec4 ( ) const
inline

◆ Translate()

void ImRect::Translate ( const ImVec2 & d)
inline

◆ TranslateX()

void ImRect::TranslateX ( float dx)
inline

◆ TranslateY()

void ImRect::TranslateY ( float dy)
inline

Member Data Documentation

◆ Max

ImVec2 ImRect::Max

◆ Min

ImVec2 ImRect::Min

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