本文整理汇总了C++中GetRows函数的典型用法代码示例。如果您正苦于以下问题:C++ GetRows函数的具体用法?C++ GetRows怎么用?C++ GetRows使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetRows函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetOffset
void CGUIPanelContainer::ValidateOffset()
{
if (!m_layout) return;
// first thing is we check the range of our offset
// don't validate offset if we are scrolling in case the tween image exceed <0, 1> range
if (GetOffset() > (int)GetRows() - m_itemsPerPage || (!m_scroller.IsScrolling() && m_scroller.GetValue() > ((int)GetRows() - m_itemsPerPage) * m_layout->Size(m_orientation)))
{
SetOffset(std::max(0, (int)GetRows() - m_itemsPerPage));
m_scroller.SetValue(GetOffset() * m_layout->Size(m_orientation));
}
if (GetOffset() < 0 || (!m_scroller.IsScrolling() && m_scroller.GetValue() < 0))
{
SetOffset(0);
m_scroller.SetValue(0);
}
}
示例2: RowGetFocused
void CSimpleReport::RowDelete()
{
int idx = RowGetFocused();
GetRecords()->RemoveAt(idx);
Populate();
SetFocusedRow(GetRows()->GetAt(idx));
SetFocus();
}
示例3: GetRows
NS_IMETHODIMP
HTMLFrameSetElement::GetRows(nsAString& aRows)
{
nsString rows;
GetRows(rows);
aRows = rows;
return NS_OK;
}
示例4: msg
void CGUIBaseContainer::SetPageControlRange()
{
if (m_pageControl)
{
CGUIMessage msg(GUI_MSG_LABEL_RESET, GetID(), m_pageControl, m_itemsPerPage, GetRows());
SendWindowMessage(msg);
}
}
示例5: GetParent
void StatWin::ReSize()
{
wxSize cs = GetParent()->GetClientSize();
wxSize new_size;
new_size.x = cs.x;
new_size.y = 22 * GetRows();
SetSize(new_size);
}
示例6: mid
void BaseGrid::ScrollTo(int y) {
int nextY = mid(0, y, GetRows() - 1);
if (yPos != nextY) {
yPos = nextY;
scrollBar->SetThumbPosition(yPos);
Refresh(false);
}
}
示例7: GetRows
NS_IMETHODIMP
HTMLFrameSetElement::GetRows(nsAString& aRows)
{
DOMString rows;
GetRows(rows);
rows.ToString(aRows);
return NS_OK;
}
示例8: Clear
bool NFCRecord::Clear()
{
for (int i = GetRows() - 1; i >= 0; i--)
{
Remove(i);
}
return true;
}
示例9: ValidRow
bool NFCRecord::ValidRow(int nRow) const
{
if (nRow >= GetRows() || nRow < 0)
{
return false;
}
return true;
}
示例10: GetRows
///////////////////////////
// Gets first selected row
int BaseGrid::GetFirstSelRow() {
int nrows = GetRows();
for (int i=0;i<nrows;i++) {
if (IsInSelection(i,0)) {
return i;
}
}
return -1;
}
示例11: GetType
//---------------------------------------------------------------------------
bool IValue::operator!=(const IValue &a_Val) const
{
char_type type1 = GetType(),
type2 = a_Val.GetType();
if (type1 == type2 || (IsScalar() && a_Val.IsScalar()))
{
switch (GetType())
{
case 's': return GetString() != a_Val.GetString();
case 'i':
case 'f': return GetFloat() != a_Val.GetFloat();
case 'c': return (GetFloat() != a_Val.GetFloat()) || (GetImag() != a_Val.GetImag());
case 'b': return GetBool() != a_Val.GetBool();
case 'v': return true;
case 'm': if (GetRows() != a_Val.GetRows() || GetCols() != a_Val.GetCols())
{
return true;
}
else
{
for (int i = 0; i < GetRows(); ++i)
{
if (const_cast<IValue*>(this)->At(i) != const_cast<IValue&>(a_Val).At(i))
return true;
}
return false;
}
default:
ErrorContext err;
err.Errc = ecINTERNAL_ERROR;
err.Pos = -1;
err.Type2 = GetType();
err.Type1 = a_Val.GetType();
throw ParserError(err);
} // switch this type
}
else
{
return true;
}
}
示例12: GetClientSize
/////////////
// Scroll to
void BaseGrid::ScrollTo(int y) {
int w,h;
GetClientSize(&w,&h);
int nextY = MID(0,y,GetRows()+2 - h/lineHeight);
if (yPos != nextY) {
yPos = nextY;
if (scrollBar->IsEnabled()) scrollBar->SetThumbPosition(yPos);
Refresh(false);
}
}
示例13: D
CMotion2DImage<Type> CMotion2DImage<Type>::operator-(const CMotion2DImage<Type> &image)
{
CMotion2DImage<Type> D(GetRows(),GetCols());
for (unsigned i=0; i<npixels; i++) {
D.bitmap[i] = bitmap[i] - image.bitmap[i];
}
return D;
}
示例14: BeginBatch
void BaseGrid::OnSubtitlesOpen() {
BeginBatch();
ClearMaps();
UpdateMaps();
if (GetRows()) {
int row = context->ass->GetScriptInfoAsInt("Active Line");
if (row < 0 || row >= GetRows())
row = 0;
SetActiveLine(GetDialogue(row));
SelectRow(row);
}
ScrollTo(context->ass->GetScriptInfoAsInt("Scroll Position"));
EndBatch();
SetColumnWidths();
}
示例15: GetRows
void CSimpleReport::RowSetFocused(CXTPReportRecord* pRec)
{
CXTPReportRows* pRows = GetRows();
for (int i = 0; i < pRows->GetCount(); i++) {
CXTPReportRow* pRow = pRows->GetAt(i);
if (pRow->GetRecord() == pRec) {
SetFocusedRow(pRow);
return;
}
}
}