当前位置: 首页>>代码示例>>C++>>正文


C++ UpdateSize函数代码示例

本文整理汇总了C++中UpdateSize函数的典型用法代码示例。如果您正苦于以下问题:C++ UpdateSize函数的具体用法?C++ UpdateSize怎么用?C++ UpdateSize使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了UpdateSize函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: UpdateSize

void VideoDisplay::SetZoom(double value) {
	zoomValue = std::max(value, .125);
	size_t selIndex = zoomValue / .125 - 1;
	if (selIndex < zoomBox->GetCount())
		zoomBox->SetSelection(selIndex);
	zoomBox->ChangeValue(wxString::Format("%g%%", zoomValue * 100.));
	UpdateSize();
}
开发者ID:Leinad4Mind,项目名称:Aegisub,代码行数:8,代码来源:video_display.cpp

示例2: AddLine

	void MultilineLabel::AddLine(const char *szLine, CStdFont *pFont, DWORD dwClr, bool fDoUpdate, bool fMakeReadableOnBlack, CStdFont *pCaptionFont)
	{
		// make color readable
		if (fMakeReadableOnBlack) MakeColorReadableOnBlack(dwClr);
		// forward to line buffer
		if (szLine) Lines.AppendLines(szLine, pFont, dwClr, pCaptionFont);
		// adjust height
		if (fDoUpdate) UpdateSize();
	}
开发者ID:TheBlackJokerDevil,项目名称:openclonk,代码行数:9,代码来源:C4GuiLabels.cpp

示例3: SetTypeID

	void I2NPMessage::FillI2NPMessageHeader (I2NPMessageType msgType, uint32_t replyMsgID)
	{
		SetTypeID (msgType);
		if (!replyMsgID) RAND_bytes ((uint8_t *)&replyMsgID, 4);
		SetMsgID (replyMsgID); 
		SetExpiration (i2p::util::GetMillisecondsSinceEpoch () + I2NP_MESSAGE_EXPIRATION_TIMEOUT); 
		UpdateSize ();
		UpdateChks ();
	}		
开发者ID:h0bbyte,项目名称:i2pd,代码行数:9,代码来源:I2NPProtocol.cpp

示例4: QDialog

ResizeImageDialog::ResizeImageDialog(const QSize &original_size, QWidget *parent)
    : QDialog(parent),
      ui(new Ui::Resize_Image_Dialog) {
  ui->setupUi(this);
  ui->width_spinBox->setValue(original_size.width());
  ui->height_spinBox->setValue(original_size.height());

  QObject::connect(this, SIGNAL(accepted()), this, SLOT(UpdateSize()));
}
开发者ID:RicardoBusta,项目名称:PixelBooster,代码行数:9,代码来源:resize_image_dialog.cpp

示例5: UpdateSize

CAStarData::CAStarData(uint32 nWidth, uint32 nHeight, uint32 nAllNodeNum)
	:m_pNodeArray(NULL)
	,m_nSearchId(0)
	,m_nWidth(0)
	,m_nHeight(0)
	,m_nAllNodeNum(0)
{
	UpdateSize(nWidth, nHeight, nAllNodeNum);
}
开发者ID:LaoZhongGu,项目名称:RushGame,代码行数:9,代码来源:CAStarData.cpp

示例6: UpdateSize

void VideoDisplay::SetZoom(double value) {
	if (value == 0) return;
	zoomValue = std::max(value, .125);
	size_t selIndex = zoomValue / .125 - 1;
	if (selIndex < zoomBox->GetCount())
		zoomBox->SetSelection(selIndex);
	zoomBox->ChangeValue(fmt_wx("%g%%", zoomValue * 100.));
	con->ass->Properties.video_zoom = zoomValue;
	UpdateSize();
}
开发者ID:Aegisub,项目名称:Aegisub,代码行数:10,代码来源:video_display.cpp

示例7: CJabberInfoFrameItem

void CJabberInfoFrame::CreateInfoItem(char *pszName, bool bCompact, LPARAM pUserData)
{
    if (m_pItems.find((CJabberInfoFrameItem*)&pszName))
        return;

    CJabberInfoFrameItem *newItem = new CJabberInfoFrameItem(pszName, bCompact, pUserData);
    newItem->m_tooltipId = m_nextTooltipId++;
    m_pItems.insert(newItem);
    UpdateSize();
}
开发者ID:ybznek,项目名称:miranda-ng,代码行数:10,代码来源:jabber_frame.cpp

示例8: GetListView

bool wxListbook::DeleteAllPages()
{
    GetListView()->DeleteAllItems();
    if (!wxBookCtrlBase::DeleteAllPages())
        return false;

    UpdateSize();

    return true;
}
开发者ID:Kaoswerk,项目名称:newton-dynamics,代码行数:10,代码来源:listbkg.cpp

示例9: Render

void CUIFrameLine::Render()
{
	// If size changed - update size
	if (!(uFlags & flValidSize)) UpdateSize();
	// Now render all statics
	for (int i = 0; i < flMax; ++i)
	{
		elements[i].Render();
	}
}
开发者ID:OLR-xray,项目名称:XRay-NEW,代码行数:10,代码来源:UIFrameLine.cpp

示例10: SetFlag

void MAS::HyperText::MsgInitSkin() {
    for (int i=0; i<4; i++) {
        if (GetFontColor(i) == Color::transparent) SetFontColor(skin->fcol[Skin::INFO_HYPER][i], skin->scol[Skin::INFO_HYPER][i], i);
        if (GetFontIndex(i) == -1) SetFont(skin->fnt[Skin::INFO_HYPER][i], i);
    }
    if (GetTextMode() == Color::transparent) SetTextMode(skin->c_face);
    SetFlag(D_AUTOSIZE);
    UpdateSize();
    ClearFlag(D_TOGGLE | D_SPINNER);
    Button::MsgInitSkin();
}
开发者ID:bambams,项目名称:ma5king,代码行数:11,代码来源:hypertext.cpp

示例11: UpdateSize

void VideoDisplay::SetTool(VisualToolBase *new_tool) {
	toolBar->ClearTools();
	toolBar->Realize();
	toolBar->Show(false);

	tool.reset(new_tool);
	tool->SetToolbar(toolBar);

	// Update size as the new typesetting tool may have changed the subtoolbar size
	UpdateSize();
}
开发者ID:sthenc,项目名称:Aegisub,代码行数:11,代码来源:video_display.cpp

示例12: WXUNUSED

wxWindow * wxPaneBase::SetClient( wxWindow * pClient, bool WXUNUSED(removeBorder) ) {
    // set the pane's client window
    wxWindow * pOldClient = m_pClient;
    m_pClient = pClient;
    if( m_pClient ) {
        // force reparent
        m_pClient->Reparent( this );
        UpdateSize();
    }
    return pOldClient;
}
开发者ID:gitrider,项目名称:wxsj2,代码行数:11,代码来源:pane.cpp

示例13: UpdateSize

void MAS::Image::SetBitmap(const char *filename) {
   if (!filename) {
      bmp.Destroy();
   }
   else {
      if (bmp.Load(filename) != Error::NONE) {
         bmp.Destroy();
      }
      UpdateSize();
   }
}
开发者ID:bambams,项目名称:ma5king,代码行数:11,代码来源:image.cpp

示例14: UpdateSize

void MAS::Progress::MsgInitSkin() {
   Widget::MsgInitSkin();

   if (orientation == 1) {
      if (GetBitmapIndex() == -1) SetBitmap(Skin::PROGRESSH);
   }
   else {
      if (GetBitmapIndex() == -1) SetBitmap(Skin::PROGRESSV);
   }
   
   UpdateSize();
}
开发者ID:bambams,项目名称:ma5king,代码行数:12,代码来源:progress.cpp

示例15: switch

	void Label::SetX0(int32_t iToX0)
	{
		x0 = iToX0;
		// update x-startpos
		switch (iAlign)
		{
		case ALeft: rcBounds.x = x0; break;
		case ACenter: rcBounds.x = x0 - rcBounds.Wdt/2; break;
		case ARight: rcBounds.x = x0 - rcBounds.Wdt; break;
		}
		// size might have changed
		UpdateSize();
	}
开发者ID:TheBlackJokerDevil,项目名称:openclonk,代码行数:13,代码来源:C4GuiLabels.cpp


注:本文中的UpdateSize函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。