當前位置: 首頁>>代碼示例>>C#>>正文


C# Qyoto.QPixmap類代碼示例

本文整理匯總了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);
            }
        }
開發者ID:jrudolph,項目名稱:synapse,代碼行數:56,代碼來源:MainWindow.cs

示例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);
        }
開發者ID:jrudolph,項目名稱:synapse,代碼行數:36,代碼來源:TrayIcon.cs

示例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);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:Qt.cs

示例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);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:7,代碼來源:KRatingPainter.cs

示例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);
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:4,代碼來源:QWebSettings.cs

示例6: MarkerDefine

 public int MarkerDefine(QPixmap pm)
 {
     return (int) interceptor.Invoke("markerDefine#", "markerDefine(const QPixmap&)", typeof(int), typeof(QPixmap), pm);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:QsciScintilla.cs

示例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);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:6,代碼來源:QSplashScreen.cs

示例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);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:7,代碼來源:KPasswordDialog.cs

示例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);
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:4,代碼來源:QPainter.cs

示例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);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:QsciScintillaBase.cs

示例11: QBitmap

 public QBitmap(QPixmap arg1)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QBitmap#", "QBitmap(const QPixmap&)", typeof(void), typeof(QPixmap), arg1);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:6,代碼來源:QBitmap.cs

示例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);
 }
開發者ID:KDE,項目名稱:qyoto,代碼行數:4,代碼來源:QWizard.cs

示例13: QCursor

 public QCursor(QPixmap pixmap)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("QCursor#", "QCursor(const QPixmap&)", typeof(void), typeof(QPixmap), pixmap);
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:6,代碼來源:QCursor.cs

示例14: SetInitialPixmap

 public void SetInitialPixmap(int id, QPixmap pixmap)
 {
     interceptor.Invoke("setInitialPixmap$#", "setInitialPixmap(int, const QPixmap&)", typeof(void), typeof(int), id, typeof(QPixmap), pixmap);
 }
開發者ID:KDE,項目名稱:kimono,代碼行數:4,代碼來源:Plasma_Animator.cs

示例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);
 }
開發者ID:0xd34df00d,項目名稱:Qross,代碼行數:4,代碼來源:QPainter.cs


注:本文中的Qyoto.QPixmap類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。