本文整理汇总了C++中DocRect::LowCorner方法的典型用法代码示例。如果您正苦于以下问题:C++ DocRect::LowCorner方法的具体用法?C++ DocRect::LowCorner怎么用?C++ DocRect::LowCorner使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DocRect
的用法示例。
在下文中一共展示了DocRect::LowCorner方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RenderObjectBlobs
void NodeBrush::RenderObjectBlobs(RenderRegion* pRegion)
{
#if !defined(EXCLUDE_FROM_RALPH)
// Find out about the groups bounding rect
DocRect BoundingRect = GetBoundingRect();
// Inflate the bounds by the width of a blob
DocRect TempRect;
GetApplication()->GetBlobManager()->GetBlobRect(BoundingRect.lo,&TempRect);
INT32 Delta = ((TempRect.hi.x - TempRect.lo.x)*3)/4;
BoundingRect.Inflate(Delta);
// Find out where to draw the blobs
DocCoord Low = BoundingRect.LowCorner();
DocCoord High = BoundingRect.HighCorner();
// Set the colours of the blobs
pRegion->SetFillColour(COLOUR_UNSELECTEDBLOB);
pRegion->SetLineColour(COLOUR_NONE);
// Draw all the blobs
pRegion->DrawBlob(Low, BT_UNSELECTED);
pRegion->DrawBlob(High, BT_UNSELECTED);
pRegion->DrawBlob(DocCoord(Low.x, High.y), BT_UNSELECTED);
pRegion->DrawBlob(DocCoord(High.x, Low.y), BT_UNSELECTED);
// for some reason the NBP is never called, there is probably a
// proper fix for this but I don't have time right now, so render
// the nodeblend path here
m_pNodeBrushPath->RenderObjectBlobs(pRegion);
#endif
}
示例2: FindEnclosingChapter
Chapter* DocCoord::FindEnclosingChapter(Document *pDocument,
DocCoord* ChapterPos,
XLONG* ChapterDepth,
View *pView)
{
Chapter* CurrentChapter = Node::FindFirstChapter(pDocument);
// Search all chapters
*ChapterDepth = 0;
DocRect CurrentChaptersPasteboardRect;
while (CurrentChapter != NULL)
{
CurrentChaptersPasteboardRect = CurrentChapter->GetPasteboardRect(TRUE, pView);
if (CurrentChaptersPasteboardRect.ContainsRectCoord(*this))
{
// Chapter position is the top left hand corner of the chapters pasteboard
ChapterPos->x = CurrentChaptersPasteboardRect.LowCorner().x;
ChapterPos->y = CurrentChaptersPasteboardRect.HighCorner().y;
return (CurrentChapter);
}
(*ChapterDepth) += CurrentChaptersPasteboardRect.Height();
CurrentChapter = CurrentChapter->FindNextChapter();
}
// The DocCoord was not found in any chapter
ERROR3("DocCoord::FindEnclosingChapter: Coord wasn't in any chapter. See the function help for debugging tips");
return(NULL);
}