本文整理匯總了C#中Qyoto.QPixmap類的典型用法代碼示例。如果您正苦於以下問題:C# QPixmap類的具體用法?C# QPixmap怎麽用?C# QPixmap使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
QPixmap類屬於Qyoto命名空間,在下文中一共展示了QPixmap類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: MainWindow
public MainWindow()
{
SetupUi();
base.WindowFlags = (uint)Qt.WindowType.FramelessWindowHint;
closeButton.icon = new QIcon(new QPixmap("resource:/stock-close_12.png"));
menuButton.icon = new QIcon(new QPixmap("resource:/menu-icon.png"));
// FIXME: Add a global "Application Icon" somewhere that contains multiple sizes.
QPixmap pixmap = new QPixmap("resource:/octy-22.png");
base.WindowIcon = new QIcon(pixmap);
m_NoAccountsStyleSheet = Util.ReadResource("mainwindow-noaccounts.qss");
m_StyleSheet = Util.ReadResource("mainwindow.qss");
containerWidget.SetStyleSheet(m_StyleSheet);
QVBoxLayout layout = new QVBoxLayout();
layout.SetContentsMargins(0, 0, 0, 0);
contentWidget.SetLayout(layout);
m_RosterWidget = new RosterWidget(contentWidget);
contentWidget.Layout().AddWidget(m_RosterWidget);
m_NoAccountsWidget = new NoAccountsWidget(contentWidget);
contentWidget.Layout().AddWidget(m_NoAccountsWidget);
// This makes the shortcut work.
base.AddAction(Gui.GlobalActions.QuitAction);
m_MainMenu = new QMenu(this);
m_MainMenu.AddAction(Gui.GlobalActions.NewMessageAction);
m_MainMenu.AddAction(Gui.GlobalActions.JoinConferenceAction);
m_MainMenu.AddAction(Gui.GlobalActions.ShowBrowserAction);
m_MainMenu.AddAction(Gui.GlobalActions.EditProfileAction);
m_MainMenu.AddAction(Gui.GlobalActions.ChangeStatusAction);
m_MainMenu.AddSeparator();
m_MainMenu.AddAction(Gui.GlobalActions.ShowPreferencesAction);
m_MainMenu.AddSeparator();
m_MainMenu.AddAction(Gui.GlobalActions.AboutAction);
m_MainMenu.AddAction(Gui.GlobalActions.SendFeedbackAction);
m_MainMenu.AddSeparator();
m_MainMenu.AddAction(Gui.GlobalActions.QuitAction);
Gui.CenterWidgetOnScreen(this);
headerLabel.InstallEventFilter(new WindowMover(this));
AccountService accountService = ServiceManager.Get<AccountService>();
accountService.AccountAdded += AddAccount;
accountService.AccountRemoved += RemoveAccount;
foreach (Account account in accountService.Accounts) {
AddAccount(account);
}
}
示例2: TrayIcon
public TrayIcon(QObject parent)
: base(parent)
{
m_ShowMainWindowAction = new QAction("Show Synapse", this);
m_ShowMainWindowAction.Checkable = true;
QObject.Connect(m_ShowMainWindowAction, Qt.SIGNAL("triggered()"), HandleShowMainWindowActionTriggered);
m_ShowDebugWindowAction = new QAction("Debug Window", this);
m_ShowDebugWindowAction.Checkable = true;
QObject.Connect(m_ShowDebugWindowAction, Qt.SIGNAL("triggered()"), HandleShowDebugWindowActionTriggered);
m_Menu = new QMenu();
m_Menu.AddAction(m_ShowMainWindowAction);
m_Menu.AddAction(m_ShowDebugWindowAction);
m_Menu.AddSeparator();
m_Menu.AddAction(Gui.GlobalActions.NewMessageAction);
m_Menu.AddAction(Gui.GlobalActions.JoinConferenceAction);
m_Menu.AddAction(Gui.GlobalActions.ShowBrowserAction);
m_Menu.AddAction(Gui.GlobalActions.EditProfileAction);
m_Menu.AddAction(Gui.GlobalActions.ChangeStatusAction);
m_Menu.AddSeparator();
m_Menu.AddAction(Gui.GlobalActions.ShowPreferencesAction);
m_Menu.AddSeparator();
m_Menu.AddAction(Gui.GlobalActions.AboutAction);
m_Menu.AddAction(Gui.GlobalActions.SendFeedbackAction);
m_Menu.AddSeparator();
m_Menu.AddAction(Gui.GlobalActions.QuitAction);
QObject.Connect(m_Menu, Qt.SIGNAL("aboutToShow()"), HandleMenuAboutToShow);
QPixmap pixmap = new QPixmap("resource:/octy-22.png");
QIcon icon = new QIcon(pixmap);
m_Icon = new QSystemTrayIcon(icon);
m_Icon.SetContextMenu(m_Menu);
QObject.Connect<QSystemTrayIcon.ActivationReason>(m_Icon, Qt.SIGNAL("activated(QSystemTrayIcon::ActivationReason)"), HandleTrayActivated);
}
示例3: Write
public static QDataStream Write(QDataStream arg1, QPixmap arg2)
{
return (QDataStream) staticInterceptor.Invoke("operator<<##", "operator<<(QDataStream&, const QPixmap&)", typeof(QDataStream), typeof(QDataStream), arg1, typeof(QPixmap), arg2);
}
示例4: SetCustomPixmap
/// <remarks>
/// Set a custom pixmap.
/// </remarks> <short> Set a custom pixmap.</short>
public void SetCustomPixmap(QPixmap pixmap)
{
interceptor.Invoke("setCustomPixmap#", "setCustomPixmap(const QPixmap&)", typeof(void), typeof(QPixmap), pixmap);
}
示例5: SetWebGraphic
public static void SetWebGraphic(QWebSettings.WebGraphic type, QPixmap graphic)
{
staticInterceptor.Invoke("setWebGraphic$#", "setWebGraphic(QWebSettings::WebGraphic, const QPixmap&)", typeof(void), typeof(QWebSettings.WebGraphic), type, typeof(QPixmap), graphic);
}
示例6: MarkerDefine
public int MarkerDefine(QPixmap pm)
{
return (int) interceptor.Invoke("markerDefine#", "markerDefine(const QPixmap&)", typeof(int), typeof(QPixmap), pm);
}
示例7: QSplashScreen
public QSplashScreen(QWidget parent, QPixmap pixmap)
: this((Type) null)
{
CreateProxy();
interceptor.Invoke("QSplashScreen##", "QSplashScreen(QWidget*, const QPixmap&)", typeof(void), typeof(QWidget), parent, typeof(QPixmap), pixmap);
}
示例8: SetPixmap
/// <remarks>
/// set an image that appears next to the prompt.
/// </remarks> <short> set an image that appears next to the prompt.</short>
public void SetPixmap(QPixmap arg1)
{
interceptor.Invoke("setPixmap#", "setPixmap(const QPixmap&)", typeof(void), typeof(QPixmap), arg1);
}
示例9: DrawPixmap
public void DrawPixmap(QPoint p, QPixmap pm)
{
interceptor.Invoke("drawPixmap##", "drawPixmap(const QPoint&, const QPixmap&)", typeof(void), typeof(QPoint), p, typeof(QPixmap), pm);
}
示例10: SendScintilla
public long SendScintilla(uint msg, ulong wParam, QPixmap lParam)
{
return (long) interceptor.Invoke("SendScintilla$$#", "SendScintilla(unsigned int, unsigned long, const QPixmap&) const", typeof(long), typeof(uint), msg, typeof(ulong), wParam, typeof(QPixmap), lParam);
}
示例11: QBitmap
public QBitmap(QPixmap arg1)
: this((Type) null)
{
CreateProxy();
interceptor.Invoke("QBitmap#", "QBitmap(const QPixmap&)", typeof(void), typeof(QPixmap), arg1);
}
示例12: SetPixmap
public void SetPixmap(QWizard.WizardPixmap which, QPixmap pixmap)
{
interceptor.Invoke("setPixmap$#", "setPixmap(QWizard::WizardPixmap, const QPixmap&)", typeof(void), typeof(QWizard.WizardPixmap), which, typeof(QPixmap), pixmap);
}
示例13: QCursor
public QCursor(QPixmap pixmap)
: this((Type) null)
{
CreateProxy();
interceptor.Invoke("QCursor#", "QCursor(const QPixmap&)", typeof(void), typeof(QPixmap), pixmap);
}
示例14: SetInitialPixmap
public void SetInitialPixmap(int id, QPixmap pixmap)
{
interceptor.Invoke("setInitialPixmap$#", "setInitialPixmap(int, const QPixmap&)", typeof(void), typeof(int), id, typeof(QPixmap), pixmap);
}
示例15: DrawTiledPixmap
public void DrawTiledPixmap(QRectF rect, QPixmap pm)
{
interceptor.Invoke("drawTiledPixmap##", "drawTiledPixmap(const QRectF&, const QPixmap&)", typeof(void), typeof(QRectF), rect, typeof(QPixmap), pm);
}