本文整理汇总了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();
}
示例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();
}
示例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 ();
}
示例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()));
}
示例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);
}
示例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();
}
示例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();
}
示例8: GetListView
bool wxListbook::DeleteAllPages()
{
GetListView()->DeleteAllItems();
if (!wxBookCtrlBase::DeleteAllPages())
return false;
UpdateSize();
return true;
}
示例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();
}
}
示例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();
}
示例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();
}
示例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;
}
示例13: UpdateSize
void MAS::Image::SetBitmap(const char *filename) {
if (!filename) {
bmp.Destroy();
}
else {
if (bmp.Load(filename) != Error::NONE) {
bmp.Destroy();
}
UpdateSize();
}
}
示例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();
}
示例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();
}