本文整理汇总了C++中System::GetRect方法的典型用法代码示例。如果您正苦于以下问题:C++ System::GetRect方法的具体用法?C++ System::GetRect怎么用?C++ System::GetRect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System
的用法示例。
在下文中一共展示了System::GetRect方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnTestParseFile
//.........这里部分代码省略.........
wxByte fretPosition = chordName.GetFretPosition();
}
if (chordName.IsTypeUsed())
{
wxByte type = chordName.GetType();
}
wxByte topFret = chordDiagram->GetTopFret();
size_t string = 0;
size_t stringCount = chordDiagram->GetStringCount();
for (; string < stringCount; string++)
{
wxByte fretNumber = chordDiagram->GetFretNumber(string);
}
}
// Parse the floating text items in the score
// In Power Tab Editor v1.7, floating text items are created using:
// Menu Text -> Insert
// Floating text items are stored in the array by order of their rect.top and
// rect.left values
// i.e. An item at left = 40, top = 100 is stored prior to left = 10, top = 120
wxUint32 floatingTextIndex = 0;
wxUint32 floatingTextCount = score->GetFloatingTextCount();
for (; floatingTextIndex < floatingTextCount; floatingTextIndex++)
{
FloatingText* floatingText = score->GetFloatingText(floatingTextIndex);
wxCHECK2(floatingText != NULL, continue);
wxString text = floatingText->GetText();
wxRect rect = floatingText->GetRect();
wxByte alignment = floatingText->GetAlignment();
bool border = floatingText->HasBorder();
// Font setting for the text
const FontSetting& fontSetting = floatingText->GetFontSettingConstRef();
wxString faceName = fontSetting.GetFaceName();
wxInt32 pointSize = fontSetting.GetPointSize();
wxInt32 weight = fontSetting.GetWeight();
bool italic = fontSetting.IsItalic();
bool underline = fontSetting.IsUnderline();
bool strikeOut = fontSetting.IsStrikeOut();
wxColor color = fontSetting.GetColor();
}
// Parse the guitar ins in the score
// In Power Tab Editor v1.7, guitar ins can be accessed via the Guitar In dialog:
// Menu Guitar -> Guitar In
// Guitar Ins are stored in the array by order of their system, position and
// staff values
wxUint32 guitarInIndex = 0;
wxUint32 guitarInCount = score->GetGuitarInCount();
for (; guitarInIndex < guitarInCount; guitarInIndex++)
{
GuitarIn* guitarIn = score->GetGuitarIn(guitarInIndex);
wxCHECK2(guitarIn != NULL, continue);
wxWord system = guitarIn->GetSystem();
wxByte staff = guitarIn->GetStaff();
wxByte position = guitarIn->GetPosition();
if (guitarIn->HasStaffGuitarsSet())