本文整理汇总了C#中Qyoto.QSize类的典型用法代码示例。如果您正苦于以下问题:C# QSize类的具体用法?C# QSize怎么用?C# QSize使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QSize类属于Qyoto命名空间,在下文中一共展示了QSize类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetupUi
public void SetupUi(QDialog NewContactDialog)
{
if (NewContactDialog.ObjectName == "")
NewContactDialog.ObjectName = "NewContactDialog";
QSize Size = new QSize(360, 150);
Size = Size.ExpandedTo(NewContactDialog.MinimumSizeHint());
NewContactDialog.Size = Size;
NewContactDialog.MinimumSize = new QSize(360, 150);
NewContactDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
gridLayout = new QGridLayout(NewContactDialog);
gridLayout.ObjectName = "gridLayout";
LblTitle = new QLabel(NewContactDialog);
LblTitle.ObjectName = "LblTitle";
LblTitle.Alignment = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignCenter");
LblTitle.WordWrap = true;
gridLayout.AddWidget(LblTitle, 0, 0, 1, 2);
LblDesc = new QLabel(NewContactDialog);
LblDesc.ObjectName = "LblDesc";
gridLayout.AddWidget(LblDesc, 2, 0, 1, 1);
TxtDesc = new QLineEdit(NewContactDialog);
TxtDesc.ObjectName = "TxtDesc";
gridLayout.AddWidget(TxtDesc, 2, 1, 1, 1);
LblNumber = new QLabel(NewContactDialog);
LblNumber.ObjectName = "LblNumber";
gridLayout.AddWidget(LblNumber, 3, 0, 1, 1);
TxtNumber = new QLineEdit(NewContactDialog);
TxtNumber.ObjectName = "TxtNumber";
gridLayout.AddWidget(TxtNumber, 3, 1, 1, 1);
spacerItem = new QSpacerItem(282, 37, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding);
gridLayout.AddItem(spacerItem, 4, 1, 1, 1);
Buttons = new QDialogButtonBox(NewContactDialog);
Buttons.ObjectName = "Buttons";
Buttons.Orientation = Qt.Orientation.Horizontal;
Buttons.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Cancel") | Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok");
gridLayout.AddWidget(Buttons, 5, 0, 1, 2);
spacerItem1 = new QSpacerItem(20, 8, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed);
gridLayout.AddItem(spacerItem1, 1, 0, 1, 1);
RetranslateUi(NewContactDialog);
QObject.Connect(Buttons, Qt.SIGNAL("accepted()"), NewContactDialog, Qt.SLOT("accept()"));
QObject.Connect(Buttons, Qt.SIGNAL("rejected()"), NewContactDialog, Qt.SLOT("reject()"));
QMetaObject.ConnectSlotsByName(NewContactDialog);
} // SetupUi
示例2: SetupUi
public void SetupUi(QDialog SelectWriteModeDialog)
{
if (SelectWriteModeDialog.ObjectName == "")
SelectWriteModeDialog.ObjectName = "SelectWriteModeDialog";
QSize Size = new QSize(443, 125);
Size = Size.ExpandedTo(SelectWriteModeDialog.MinimumSizeHint());
SelectWriteModeDialog.Size = Size;
SelectWriteModeDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
gridLayout = new QGridLayout(SelectWriteModeDialog);
gridLayout.ObjectName = "gridLayout";
LblTitle = new QLabel(SelectWriteModeDialog);
LblTitle.ObjectName = "LblTitle";
LblTitle.Alignment = Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeading") | Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignLeft") | Qyoto.Qyoto.GetCPPEnumValue("Qt", "AlignTop");
gridLayout.AddWidget(LblTitle, 0, 0, 1, 4);
BtnCancel = new QPushButton(SelectWriteModeDialog);
BtnCancel.ObjectName = "BtnCancel";
gridLayout.AddWidget(BtnCancel, 1, 0, 1, 1);
spacerItem = new QSpacerItem(152, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum);
gridLayout.AddItem(spacerItem, 1, 1, 1, 1);
BtnOverride = new QPushButton(SelectWriteModeDialog);
BtnOverride.ObjectName = "BtnOverride";
BtnOverride.icon = new QIcon(":/toolbar/resources/qt/draw-eraser.png");
gridLayout.AddWidget(BtnOverride, 1, 2, 1, 1);
BtnAppend = new QPushButton(SelectWriteModeDialog);
BtnAppend.ObjectName = "BtnAppend";
BtnAppend.icon = new QIcon(":/toolbar/resources/qt/list-add.png");
gridLayout.AddWidget(BtnAppend, 1, 3, 1, 1);
RetranslateUi(SelectWriteModeDialog);
QMetaObject.ConnectSlotsByName(SelectWriteModeDialog);
} // SetupUi
示例3: Resize
public void Resize(QSize s)
{
interceptor.Invoke("resize#", "resize(const QSize&)", typeof(void), typeof(QSize), s);
}
示例4: Write
public static QDataStream Write(QDataStream arg1, QSize arg2)
{
return (QDataStream) staticInterceptor.Invoke("operator<<##", "operator<<(QDataStream&, const QSize&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QSize), arg2);
}
示例5: Read
public static QDataStream Read(QDataStream arg1, QSize arg2)
{
return (QDataStream) staticInterceptor.Invoke("operator>>##", "operator>>(QDataStream&, QSize&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QSize), arg2);
}
示例6: PopupPosition
/// <remarks>
/// Reccomended position for a popup window like a menu or a tooltip
/// given its size
/// <param> name="s" size of the popup
/// </param></remarks> <return> reccomended position
/// </return>
/// <short> Reccomended position for a popup window like a menu or a tooltip given its size </short>
public QPoint PopupPosition(QSize s)
{
return applet.PopupPosition(s);
}
示例7: SetupUi
public void SetupUi(QDialog AboutDialog)
{
if (AboutDialog.ObjectName == "")
AboutDialog.ObjectName = "AboutDialog";
QSize Size = new QSize(660, 460);
Size = Size.ExpandedTo(AboutDialog.MinimumSizeHint());
AboutDialog.Size = Size;
AboutDialog.MinimumSize = new QSize(660, 460);
AboutDialog.WindowIcon = new QIcon(":/main/resources/monosim_128.png");
AboutDialog.Modal = true;
gridLayout = new QGridLayout(AboutDialog);
gridLayout.ObjectName = "gridLayout";
vboxLayout = new QVBoxLayout();
vboxLayout.ObjectName = "vboxLayout";
FrameTop = new QFrame(AboutDialog);
FrameTop.ObjectName = "FrameTop";
FrameTop.MinimumSize = new QSize(0, 64);
FrameTop.AutoFillBackground = false;
FrameTop.FrameShape = QFrame.Shape.StyledPanel;
FrameTop.FrameShadow = QFrame.Shadow.Raised;
gridLayout1 = new QGridLayout(FrameTop);
gridLayout1.ObjectName = "gridLayout1";
Logo = new QWidget(FrameTop);
Logo.ObjectName = "Logo";
Logo.MinimumSize = new QSize(48, 48);
Logo.MaximumSize = new QSize(48, 48);
Logo.StyleSheet = "background-image: url(:/main/resources/monosim_48.png);";
gridLayout1.AddWidget(Logo, 0, 0, 1, 1);
vboxLayout1 = new QVBoxLayout();
vboxLayout1.ObjectName = "vboxLayout1";
LblName = new QLabel(FrameTop);
LblName.ObjectName = "LblName";
QFont font = new QFont();
font.SetBold(true);
font.SetWeight(75);
LblName.Font = font;
LblName.Margin = 1;
vboxLayout1.AddWidget(LblName);
LblDesc = new QLabel(FrameTop);
LblDesc.ObjectName = "LblDesc";
LblDesc.Margin = 1;
vboxLayout1.AddWidget(LblDesc);
gridLayout1.AddLayout(vboxLayout1, 0, 1, 1, 1);
vboxLayout.AddWidget(FrameTop);
tabInfo = new QTabWidget(AboutDialog);
tabInfo.ObjectName = "tabInfo";
tabInfo.AutoFillBackground = false;
Informations = new QWidget();
Informations.ObjectName = "Informations";
gridLayout2 = new QGridLayout(Informations);
gridLayout2.ObjectName = "gridLayout2";
TxtInfo = new QTextEdit(Informations);
TxtInfo.ObjectName = "TxtInfo";
TxtInfo.lineWrapMode = QTextEdit.LineWrapMode.NoWrap;
TxtInfo.ReadOnly = true;
gridLayout2.AddWidget(TxtInfo, 0, 0, 1, 1);
tabInfo.AddTab(Informations, QApplication.Translate("AboutDialog", "Informazioni su", null, QApplication.Encoding.UnicodeUTF8));
Components = new QWidget();
Components.ObjectName = "Components";
gridLayout3 = new QGridLayout(Components);
gridLayout3.ObjectName = "gridLayout3";
TxtThanks = new QTextEdit(Components);
TxtThanks.ObjectName = "TxtThanks";
TxtThanks.ReadOnly = true;
gridLayout3.AddWidget(TxtThanks, 0, 0, 1, 1);
tabInfo.AddTab(Components, QApplication.Translate("AboutDialog", "Componenti", null, QApplication.Encoding.UnicodeUTF8));
vboxLayout.AddWidget(tabInfo);
buttonBox = new QDialogButtonBox(AboutDialog);
buttonBox.ObjectName = "buttonBox";
buttonBox.StandardButtons = Qyoto.Qyoto.GetCPPEnumValue("QDialogButtonBox", "Ok");
vboxLayout.AddWidget(buttonBox);
gridLayout.AddLayout(vboxLayout, 0, 0, 1, 1);
RetranslateUi(AboutDialog);
tabInfo.CurrentIndex = 0;
QMetaObject.ConnectSlotsByName(AboutDialog);
} // SetupUi
示例8: PopupPosition
/// <remarks>
/// Recommended position for a popup window like a menu or a tooltip
/// given its size
/// <param> name="item" the item that the popup should appear adjacent to (an applet, say)
/// </param><param> name="size" size of the popup
/// </param></remarks> <return> reccomended position
/// </return>
/// <short> Recommended position for a popup window like a menu or a tooltip given its size </short>
public QPoint PopupPosition(IQGraphicsItem item, QSize size)
{
return (QPoint) interceptor.Invoke("popupPosition##", "popupPosition(const QGraphicsItem*, const QSize&)", typeof(QPoint), typeof(IQGraphicsItem), item, typeof(QSize), size);
}
示例9: QGLFramebufferObject
// void blitFramebuffer(QGLFramebufferObject* arg1,const QRect& arg2,QGLFramebufferObject* arg3,const QRect& arg4,GLbitfield arg5,GLenum arg6); >>>> NOT CONVERTED
// void blitFramebuffer(QGLFramebufferObject* arg1,const QRect& arg2,QGLFramebufferObject* arg3,const QRect& arg4,GLbitfield arg5); >>>> NOT CONVERTED
public QGLFramebufferObject(QSize size, int target)
: this((Type) null)
{
CreateProxy();
interceptor.Invoke("QGLFramebufferObject#$", "QGLFramebufferObject(const QSize&, GLenum)", typeof(void), typeof(QSize), size, typeof(int), target);
}
示例10: SetupGUI
public void SetupGUI(QSize defaultSize)
{
interceptor.Invoke("setupGUI#", "setupGUI(const QSize&)", typeof(void), typeof(QSize), defaultSize);
}
示例11: SetUniformValue
public void SetUniformValue(string name, QSize size)
{
interceptor.Invoke("setUniformValue$#", "setUniformValue(const char*, const QSize&)", typeof(void), typeof(string), name, typeof(QSize), size);
}
示例12: SetIconSize
public void SetIconSize(QSize iconSize)
{
interceptor.Invoke("setIconSize#", "setIconSize(const QSize&)", typeof(void), typeof(QSize), iconSize);
}
示例13: Render
protected void Render(string sourceImagePath, QSize size, Plasma.Wallpaper.ResizeMethod resizeMethod)
{
interceptor.Invoke("render$#$", "render(const QString&, const QSize&, Plasma::Wallpaper::ResizeMethod)", typeof(void), typeof(string), sourceImagePath, typeof(QSize), size, typeof(Plasma.Wallpaper.ResizeMethod), resizeMethod);
}
示例14: SetFixedSize
public void SetFixedSize(QSize arg1)
{
interceptor.Invoke("setFixedSize#", "setFixedSize(const QSize&)", typeof(void), typeof(QSize), arg1);
}
示例15: SetScaledSize
public void SetScaledSize(QSize size)
{
interceptor.Invoke("setScaledSize#", "setScaledSize(const QSize&)", typeof(void), typeof(QSize), size);
}