Pyro higlevel API
Public Member Functions | Public Attributes | List of all members

Public Member Functions

 Rect ()
 
 Rect (float l, float t, float r, float b)
 
 Rect (const Point &cMin, const Point &cMax)
 
 Rect (const IRect &cRect)
 
 ~Rect ()
 
Rect Scale (const Point &cFromScale, const Point &cToScale)
 
bool IsValid () const
 
void Invalidate (void)
 
bool DoIntersect (const Point &cPoint) const
 
bool DoIntersect (const Rect &cRect) const
 
bool Includes (const Rect &cRect) const
 
float Width (void) const
 
float Height (void) const
 
Point Size () const
 
Point LeftTop () const
 
Point RightBottom () const
 
Rect Bounds (void) const
 
RectFloor (void)
 
RectCeil (void)
 
RectResize (float nLeft, float nTop, float nRight, float nBottom)
 
RectMoveTo (float nLeft, float nTop)
 
Rect operator+ (const Point &cPoint) const
 
Rect operator- (const Point &cPoint) const
 
Point operator+ (const Rect &cRect) const
 
Point operator- (const Rect &cRect) const
 
Rect operator& (const Rect &cRect) const
 
void operator&= (const Rect &cRect)
 
Rect operator| (const Rect &cRect) const
 
void operator|= (const Rect &cRect)
 
Rect operator| (const Point &cPoint) const
 
void operator|= (const Point &cPoint)
 
void operator+= (const Point &cPoint)
 
void operator-= (const Point &cPoint)
 
bool operator== (const Rect &cRect) const
 
bool operator!= (const Rect &cRect) const
 

Public Attributes

float left
 
float top
 
float right
 
float bottom
 

Detailed Description

Description:
See Also
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

Constructor & Destructor Documentation

os::Rect::Rect ( )
inline
os::Rect::Rect ( float  l,
float  t,
float  r,
float  b 
)
inline
os::Rect::Rect ( const Point cMin,
const Point cMax 
)
inline

References os::Point::x, and os::Point::y.

os::Rect::Rect ( const IRect cRect)
inline
os::Rect::~Rect ( )
inline

Member Function Documentation

Rect os::Rect::Bounds ( void  ) const
inline
Rect& os::Rect::Ceil ( void  )
inline
bool os::Rect::DoIntersect ( const Point cPoint) const
inline
bool os::Rect::DoIntersect ( const Rect cRect) const
inline

References bottom, left, right, and top.

Rect& os::Rect::Floor ( void  )
inline
float os::Rect::Height ( void  ) const
inline

Referenced by os::TreeViewNode::_DrawExpanderCross(), os::TreeViewNode::_ExpanderCrossPos(), os::Splitter::AdjustLayout(), os::IconView::Private::AdjustScrollBars(), os::BitmapImage::AlphaToOverlay(), os::Window::CenterInScreen(), os::Window::CenterInWindow(), os::CheckMenu::CheckMenu(), os::CheckRow::CheckRow(), os::BitmapImage::ColorizeFilter(), os::RadioMenuItem::Draw(), os::CheckMenu::Draw(), os::MenuItem::Draw(), os::MenuSeparator::Draw(), os::TextEdit::DrawCursor(), os::ScrollBar::FrameSized(), os::Spinner::FrameSized(), os::DropdownMenu::FrameSized(), os::Slider::FrameSized(), os::TextView::FrameSized(), os::View::GetContentSize(), os::Slider::GetPreferredSize(), os::BitmapImage::GetSize(), os::Slider::GetSliderFrame(), os::BitmapImage::GrayFilter(), os::View::Height(), os::BitmapImage::HighlightFilter(), os::TableCell::Layout(), os::ProgressView::Layout(), os::HLayoutNode::Layout(), os::VLayoutNode::Layout(), os::IconView::Private::LayoutIcons(), os::IconView::Private::LayoutIconsIfNecessary(), os::TreeViewCheckNode::Paint(), os::PopupMenu::Paint(), os::Separator::Paint(), os::AlertView::Paint(), os::CheckBox::Paint(), os::RadioButton::Paint(), os::ImageButton::Paint(), os::ImageView::Paint(), os::ScrollBar::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::TreeViewStringNode::Paint(), os::ListViewStringRow::Paint(), os::Slider::PosToVal(), os::ImageView::Refresh(), os::Slider::RenderLabels(), os::TextEdit::RenderLine(), os::Slider::RenderTicks(), Scale(), os::IconView::ScrollToIcon(), os::View::SetFrame(), os::Slider::Slider(), os::Splitter::SplitBy(), os::IconView::MainView::TimerTick(), os::TreeViewCheckNode::TreeViewCheckNode(), os::TextEdit::UpdateBackBuffer(), and os::Slider::ValToPos().

bool os::Rect::Includes ( const Rect cRect) const
inline

References bottom, IsValid(), left, right, and top.

void os::Rect::Invalidate ( void  )
inline
bool os::Rect::IsValid ( void  ) const
inline
Point os::Rect::LeftTop ( ) const
inline
Rect& os::Rect::MoveTo ( float  nLeft,
float  nTop 
)
inline
bool os::Rect::operator!= ( const Rect cRect) const
inline

References bottom, left, right, and top.

Rect os::Rect::operator& ( const Rect cRect) const
inline

References bottom, left, right, and top.

void os::Rect::operator&= ( const Rect cRect)
inline

References bottom, left, right, and top.

Rect os::Rect::operator+ ( const Point cPoint) const
inline

References os::Point::x, and os::Point::y.

Point os::Rect::operator+ ( const Rect cRect) const
inline

References left, and top.

void os::Rect::operator+= ( const Point cPoint)
inline

References os::Point::x, and os::Point::y.

Rect os::Rect::operator- ( const Point cPoint) const
inline

References os::Point::x, and os::Point::y.

Point os::Rect::operator- ( const Rect cRect) const
inline

References left, and top.

void os::Rect::operator-= ( const Point cPoint)
inline

References os::Point::x, and os::Point::y.

bool os::Rect::operator== ( const Rect cRect) const
inline

References bottom, left, right, and top.

Rect os::Rect::operator| ( const Rect cRect) const
inline

References bottom, left, right, and top.

Rect os::Rect::operator| ( const Point cPoint) const
inline

References os::Point::x, and os::Point::y.

void os::Rect::operator|= ( const Rect cRect)
inline

References bottom, left, right, and top.

void os::Rect::operator|= ( const Point cPoint)
inline

References os::Point::x, and os::Point::y.

Rect& os::Rect::Resize ( float  nLeft,
float  nTop,
float  nRight,
float  nBottom 
)
inline
Point os::Rect::RightBottom ( ) const
inline
Rect os::Rect::Scale ( const Point cFromScale,
const Point cToScale 
)
inline

References bottom, left, right, top, os::Point::x, and os::Point::y.

Point os::Rect::Size ( ) const
inline

Referenced by os::FrameView::SetLabel().

float os::Rect::Width ( void  ) const
inline

Member Data Documentation

float os::Rect::bottom

Referenced by os::TreeViewNode::_DrawExpanderCross(), os::Splitter::AdjustLayout(), os::IconView::Private::AdjustScrollBars(), os::Variant::AsString(), os::TreeView::Private::CalcExpImgBounds(), os::LayoutNode::CalculatePreferredSize(), os::HLayoutNode::CalculatePreferredSize(), os::VLayoutNode::CalculatePreferredSize(), os::CheckMenu::CheckMenu(), os::CheckRow::CheckRow(), DoIntersect(), os::MenuItem::Draw(), os::MenuSeparator::Draw(), os::View::DrawFrame(), os::View::DrawRoundedFrame(), os::FrameView::FontChanged(), os::FrameView::FrameSized(), os::ScrollBar::FrameSized(), os::Spinner::FrameSized(), os::DropdownMenu::FrameSized(), os::TabView::FrameSized(), os::TextView::FrameSized(), os::View::GetChildAt(), os::Slider::GetPreferredSize(), os::Slider::GetSliderFrame(), os::Splitter::GetSplitPosition(), os::TreeViewCheckNode::HitTest(), os::IconView::IconView(), Includes(), os::IRect::Includes(), os::TextEdit::InsertString(), os::Menu::InvalidateLayout(), os::TextEdit::InvalidateLines(), os::IRect::IRect(), os::LayoutNode::Layout(), os::HLayoutNode::Layout(), os::TextEdit::MakeCsrVisible(), os::ScrollBar::MouseDown(), os::DropdownMenu::DropdownView::MouseMove(), os::IconDirectoryView::MouseMove(), os::IconView::MainView::MouseMove(), os::Menu::Open(), operator!=(), operator&(), operator&=(), operator==(), operator|(), operator|=(), os::TreeViewCheckNode::Paint(), os::CheckRow::Paint(), os::CalendarView::DayView::Paint(), os::Separator::Paint(), os::CheckBox::Paint(), os::TabViewTab::Paint(), os::DropdownMenu::DropdownView::Paint(), os::FrameView::Paint(), os::ImageButton::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::TableView::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::TabView::Paint(), os::TreeViewStringNode::Paint(), os_priv::SplitterSeparator::Paint(), os::ListViewStringRow::Paint(), os::TextEdit::Paint(), os::ListView::Paint(), os::IconView::MainView::Paint(), os::ListViewCol::Refresh(), os::Slider::RenderKnob(), os::Slider::RenderLabels(), os::TextEdit::RenderLine(), os::IconView::Private::RenderSelection(), os::Slider::RenderSlider(), os::Slider::RenderTicks(), os::View::ResizeBy(), Scale(), os::IconView::ScrollToIcon(), os::LayoutNode::SetFrame(), os::FrameView::SetLabel(), os::Splitter::SetOrientation(), os::Splitter::SplitBy(), os::Splitter::SplitTo(), and os::TreeViewCheckNode::TreeViewCheckNode().

float os::Rect::left

Referenced by os::TreeViewNode::_DrawExpanderCross(), os::Splitter::AdjustLayout(), os::Variant::AsString(), os::LayoutNode::CalculatePreferredSize(), os::HLayoutNode::CalculatePreferredSize(), os::VLayoutNode::CalculatePreferredSize(), os::Window::CenterInWindow(), os::CheckMenu::CheckMenu(), os::CheckRow::CheckRow(), DoIntersect(), os::RadioMenuItem::Draw(), os::CheckMenu::Draw(), os::MenuItem::Draw(), os::MenuSeparator::Draw(), os::View::DrawFrame(), os::View::DrawRoundedFrame(), os::FrameView::FrameSized(), os::ScrollBar::FrameSized(), os::Spinner::FrameSized(), os::DropdownMenu::FrameSized(), os::TabView::FrameSized(), os::Menu::FrameSized(), os::View::GetBounds(), os::Bitmap::GetBytesPerRow(), os::View::GetChildAt(), os::MenuItem::GetContentLocation(), os::View::GetLeftTop(), os::Splitter::GetSplitPosition(), os::IconView::IconView(), Includes(), os::IRect::Includes(), os::TextEdit::InsertString(), os::Menu::InvalidateLayout(), os::IRect::IRect(), os::LayoutNode::Layout(), os::HLayoutNode::Layout(), os::VLayoutNode::Layout(), os::IconView::Private::LayoutIcons(), os::TextEdit::MakeCsrVisible(), os::ScrollBar::MouseDown(), os::IconDirectoryView::MouseMove(), os::TabView::MouseMove(), os::IconView::MainView::MouseMove(), os::Menu::Open(), operator!=(), operator&(), operator&=(), operator+(), operator-(), operator==(), operator|(), operator|=(), os::TreeViewCheckNode::Paint(), os::CheckRow::Paint(), os::Separator::Paint(), os::CheckBox::Paint(), os::TabViewTab::Paint(), os::RadioButton::Paint(), os::DropdownMenu::DropdownView::Paint(), os::FrameView::Paint(), os::ImageButton::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::TableView::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::TabView::Paint(), os::TreeViewStringNode::Paint(), os_priv::SplitterSeparator::Paint(), os::ListViewStringRow::Paint(), os::TextEdit::Paint(), os::IconView::MainView::Paint(), os::ListViewCol::Refresh(), os::Slider::RenderKnob(), os::TextEdit::RenderLine(), os::IconView::Private::RenderSelection(), os::Slider::RenderSlider(), os::Slider::RenderTicks(), os::View::ResizeBy(), os::View::ResizeTo(), Scale(), os::IconView::ScrollToIcon(), os::LayoutNode::SetFrame(), os::View::SetFrame(), os::Splitter::SetOrientation(), os::Splitter::SplitBy(), os::Splitter::SplitTo(), os::TreeViewCheckNode::TreeViewCheckNode(), and os::Slider::ValToPos().

float os::Rect::right

Referenced by os::TreeViewNode::_DrawExpanderCross(), os::TreeViewNode::_ExpanderCrossPos(), os::Splitter::AdjustLayout(), os::IconView::Private::AdjustScrollBars(), os::Variant::AsString(), os::TreeView::Private::CalcExpImgBounds(), os::LayoutNode::CalculatePreferredSize(), os::HLayoutNode::CalculatePreferredSize(), os::VLayoutNode::CalculatePreferredSize(), os::CheckMenu::CheckMenu(), os::CheckRow::CheckRow(), DoIntersect(), os::MenuItem::Draw(), os::MenuSeparator::Draw(), os::View::DrawFrame(), os::View::DrawRoundedFrame(), os::FrameView::FrameSized(), os::ScrollBar::FrameSized(), os::Spinner::FrameSized(), os::DropdownMenu::FrameSized(), os::TabView::FrameSized(), os::TextView::FrameSized(), os::Menu::FrameSized(), os::ListView::FrameSized(), os::Bitmap::GetBytesPerRow(), os::View::GetChildAt(), os::Slider::GetSliderFrame(), os::Splitter::GetSplitPosition(), os::IconView::IconView(), Includes(), os::IRect::Includes(), os::Menu::InvalidateLayout(), os::IRect::IRect(), os::LayoutNode::Layout(), os::VLayoutNode::Layout(), os::TextEdit::MakeCsrVisible(), os::ScrollBar::MouseDown(), os::IconDirectoryView::MouseMove(), os::TabView::MouseMove(), os::IconView::MainView::MouseMove(), os::Menu::Open(), operator!=(), operator&(), operator&=(), operator==(), operator|(), operator|=(), os::TreeViewCheckNode::Paint(), os::CheckRow::Paint(), os::Separator::Paint(), os::CheckBox::Paint(), os::DropdownMenu::DropdownView::Paint(), os::TabViewTab::Paint(), os::FrameView::Paint(), os::ImageButton::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::TableView::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::TabView::Paint(), os::TreeViewStringNode::Paint(), os_priv::SplitterSeparator::Paint(), os::ListViewStringRow::Paint(), os::TextEdit::Paint(), os::ListView::Paint(), os::IconView::MainView::Paint(), os::ListViewCol::Refresh(), os::Slider::RenderKnob(), os::Slider::RenderLabels(), os::TextEdit::RenderLine(), os::IconView::Private::RenderSelection(), os::Slider::RenderSlider(), os::Slider::RenderTicks(), os::View::ResizeBy(), Scale(), os::IconView::ScrollToIcon(), os::LayoutNode::SetFrame(), os::Splitter::SetOrientation(), os::Splitter::SplitBy(), os::Splitter::SplitTo(), and os::TreeViewCheckNode::TreeViewCheckNode().

float os::Rect::top

Referenced by os::TreeViewNode::_DrawExpanderCross(), os::Splitter::AdjustLayout(), os::Variant::AsString(), os::LayoutNode::CalculatePreferredSize(), os::HLayoutNode::CalculatePreferredSize(), os::VLayoutNode::CalculatePreferredSize(), os::Window::CenterInWindow(), os::CheckMenu::CheckMenu(), os::CheckRow::CheckRow(), DoIntersect(), os::RadioMenuItem::Draw(), os::CheckMenu::Draw(), os::MenuItem::Draw(), os::MenuSeparator::Draw(), os::View::DrawFrame(), os::View::DrawRoundedFrame(), os::FrameView::FontChanged(), os::FrameView::FrameSized(), os::ScrollBar::FrameSized(), os::TabView::FrameSized(), os::View::GetBounds(), os::View::GetChildAt(), os::MenuItem::GetContentLocation(), os::View::GetLeftTop(), os::Slider::GetPreferredSize(), os::ListView::GetRowPos(), os::Slider::GetSliderFrame(), os::Splitter::GetSplitPosition(), os::IconView::IconView(), Includes(), os::IRect::Includes(), os::TextEdit::InsertString(), os::Menu::InvalidateLayout(), os::TextEdit::InvalidateLines(), os::IRect::IRect(), os::LayoutNode::Layout(), os::HLayoutNode::Layout(), os::VLayoutNode::Layout(), os::IconView::Private::LayoutIcons(), os::TextEdit::MakeCsrVisible(), os::ScrollBar::MouseDown(), os::DropdownMenu::DropdownView::MouseMove(), os::IconDirectoryView::MouseMove(), os::IconView::MainView::MouseMove(), os::Menu::Open(), operator!=(), operator&(), operator&=(), operator+(), operator-(), operator==(), operator|(), operator|=(), os::TreeViewCheckNode::Paint(), os::CheckRow::Paint(), os::CalendarView::DayView::Paint(), os::PopupMenu::Paint(), os::Separator::Paint(), os::CheckBox::Paint(), os::TabViewTab::Paint(), os::DropdownMenu::DropdownView::Paint(), os::FrameView::Paint(), os::ImageButton::Paint(), os::Button::Paint(), os::ScrollBar::Paint(), os::TableView::Paint(), os::Spinner::Paint(), os::DropdownMenu::Paint(), os::TabView::Paint(), os::TreeViewStringNode::Paint(), os_priv::SplitterSeparator::Paint(), os::ListViewStringRow::Paint(), os::TextEdit::Paint(), os::IconView::MainView::Paint(), os::ListViewCol::Refresh(), os::Slider::RenderKnob(), os::Slider::RenderLabels(), os::TextEdit::RenderLine(), os::IconView::Private::RenderSelection(), os::Slider::RenderSlider(), os::Slider::RenderTicks(), os::View::ResizeBy(), os::View::ResizeTo(), Scale(), os::IconView::ScrollToIcon(), os::LayoutNode::SetFrame(), os::View::SetFrame(), os::Splitter::SetOrientation(), os::Splitter::SplitBy(), os::Splitter::SplitTo(), os::TreeViewCheckNode::TreeViewCheckNode(), and os::Slider::ValToPos().