⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qwindowsystem_qws-h.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Qt Toolkit - qwindowsystem_qws.h include file</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }--></style></head><body bgcolor="#ffffff"><table width="100%"><tr><td><a href="index.html"><img width="100" height="100" src="qtlogo.png"alt="Home" border="0"><img width="100"height="100" src="face.png" alt="Home" border="0"></a><td valign="top"><div align="right"><img src="dochead.png" width="472" height="27"><br><a href="classes.html"><b>Classes</b></a>- <a href="annotated.html">Annotated</a>- <a href="hierarchy.html">Tree</a>- <a href="functions.html">Functions</a>- <a href="index.html">Home</a>- <a href="topicals.html"><b>Structure</b>  <font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qte</font></a></div></table><h1 align=center>qwindowsystem_qws.h</h1><br clear="all">This is the verbatim text of the qwindowsystem_qws.h include file.  It isprovided only for illustration; the copyrightremains with Trolltech.<hr><pre>/****************************************************************************** &#36;Id&#58; qt/src/kernel/qwindowsystem_qws.h   2.3.8   edited 2004-05-12 $**** Definition of Qt/FB central server classes**** Created : 991025**** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.**** This file is part of the kernel module of the Qt GUI Toolkit.**** This file may be distributed and/or modified under the terms of the** GNU General Public License version 2 as published by the Free Software** Foundation and appearing in the file LICENSE.GPL included in the** packaging of this file.**** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition** licenses for Qt/Embedded may use this file in accordance with the** Qt Embedded Commercial License Agreement provided with the Software.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.**** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for**   information about Qt Commercial License Agreements.** See http://www.trolltech.com/gpl/ for GPL licensing information.**** Contact info@trolltech.com if any conditions of this licensing are** not clear to you.************************************************************************/#ifndef QTFB_H#define QTFB_H#ifndef QT_H#include &lt;qwssocket_qws.h&gt;#include &lt;qmap.h&gt;#include &lt;qdatetime.h&gt;#include &lt;qlist.h&gt;#include &lt;qimage.h&gt;#include &lt;qintdict.h&gt;#include "qwsproperty_qws.h"#include "qwscommand_qws.h"#include "qwsevent_qws.h"#include "qkeyboard_qws.h"#endif // QT_Hstruct SWCursorData;class QWSCursor;class QWSClient;class QWSRegionManager;class QGfx;class QWSServerData;class QWSInternalWindowInfo{public:    int winid;    unsigned int clientid;    QString name;   // Corresponds to QObject name of top-level widget};struct QWSWindowData;class QWSScreenSaver{public:    virtual ~QWSScreenSaver();    virtual void restore()=0;    virtual bool save(int level)=0;};class <a href="qwswindow.html">QWSWindow</a>{    friend class QWSServer;public:    QWSWindow(int i, QWSClient* client);    ~QWSWindow();    int winId() const { return id; }    const QString &amp;name() const { return rgnName; }    const QString &amp;caption() const { return rgnCaption; }    QWSClient* client() const { return c; }    QRegion requested() const { return requested_region; }    QRegion allocation() const { return allocated_region; }    bool isVisible() const { return !requested_region.isEmpty(); }    bool isPartiallyObscured() const { return requested_region!=allocated_region; }    bool isFullyObscured() const { return allocated_region.isEmpty(); }    void raise();    void lower();    void show();    void hide();    void setActiveWindow();private:    bool hidden() const { return requested_region.isEmpty(); }    bool forClient(const QWSClient* cl) const { return cl==c; }    void setName( const QString &amp;n );    void setCaption( const QString &amp;c );    void addAllocation( QWSRegionManager *, const QRegion &amp; );    void removeAllocation( QWSRegionManager *, const QRegion &amp; );    int  allocationIndex() const { return alloc_region_idx; }    void setAllocationIndex( int i ) { alloc_region_idx = i; modified = TRUE; }    void updateAllocation();    void setNeedAck( bool n ) { needAck = n; }    void focus(bool get);    int focusPriority() const { return last_focus_time; }    void operation( QWSWindowOperationEvent::Operation o );    void shuttingDown() { last_focus_time=0; }private:    int id;    QString rgnName;    QString rgnCaption;    int alloc_region_idx;    bool modified;    bool needAck;    bool onTop;    QWSClient* c;    QRegion requested_region;    QRegion allocated_region;    QRegion exposed;    int last_focus_time;    QWSWindowData *d;};#ifndef QT_NO_SOUNDclass QWSSoundServer;#ifdef QT_USE_OLD_QWS_SOUNDclass QWSSoundServer : public QObject {    Q_OBJECTpublic:    QWSSoundServer(QObject* parent);    ~QWSSoundServer();    void playFile(const QString&amp; filename);private slots:    void feedDevice(int fd);private:    QWSSoundServerData* d;};#endif#endif/********************************************************************* * * Class: QWSServer * *********************************************************************/class QWSMouseHandler;struct QWSCommandStruct;#ifndef QT_NO_QWS_MULTIPROCESSclass <a href="qwsserver.html">QWSServer</a> : public QWSServerSocket#elseclass <a href="qwsserver.html">QWSServer</a> : public QObject#endif{    friend class QCopChannel;    friend class QWSMouseHandler;    friend class QWSWindow;    friend class QWSDisplay;    friend class QWSInputMethod;    Q_OBJECTpublic:    QWSServer( int flags = 0, QObject *parent=0, const char *name=0 );    ~QWSServer();    enum ServerFlags { DisableKeyboard = 0x01,                       DisableMouse = 0x02 };        enum GUIMode { NoGui = FALSE, NormalGUI = TRUE, Server };        static void sendKeyEvent(int unicode, int keycode, int modifiers, bool isPress,                             bool autoRepeat);    static void processKeyEvent(int unicode, int keycode, int modifiers, bool isPress,                                bool autoRepeat);#ifndef QT_NO_QWS_IM    enum IMState { Reserved, IMCompose, IMEnd, IMInternal = 42, IMMarkedText };    enum IMMouse { MousePress, MouseRelease, MouseMove }; //MouseMove reserved but not used        void sendIMEvent( IMState state, const QString&amp; txt, int cpos, int selLen );#endif#ifndef QT_NO_QWS_KEYBOARD        typedef struct KeyMap {        int  key_code;        ushort unicode;        ushort shift_unicode;        ushort ctrl_unicode;    };    static const KeyMap *keyMap();    static void setOverrideKeys( QIntDict&lt;QWSServer::KeyMap&gt; *map );    class KeyboardFilter    {    public:        virtual bool filter(int unicode, int keycode, int modifiers, bool isPress,                      bool autoRepeat)=0;    };        static void setKeyboardFilter( KeyboardFilter *f );#endif    #ifndef QT_NO_QWS_IM    static void setCurrentInputMethod( QWSInputMethod *im );    static void resetInputMethod();    static void setMicroFocus( int x, int y );    static void requestMarkedText();#endif    static void setDefaultMouse( const char * );    static void setDefaultKeyboard( const char * );    static void setMaxWindowRect(const QRect&amp;);    static void sendMouseEvent(const QPoint&amp; pos, int state);    static void setDesktopBackground( const QImage &amp;img );    static void setDesktopBackground( const QColor &amp; );    static QWSMouseHandler *mouseHandler();    static void setMouseHandler(QWSMouseHandler*);#ifndef QT_NO_QWS_KEYBOARD        static QWSKeyboardHandler* keyboardHandler();    static void setKeyboardHandler(QWSKeyboardHandler* kh);#endif    QWSWindow *windowAt( const QPoint&amp; pos );    const QList&lt;QWSWindow&gt; &amp;clientWindows() { return windows; }    void openMouse();    void closeMouse();#ifndef QT_NO_QWS_KEYBOARD        void openKeyboard();    void closeKeyboard();#endif    static void setScreenSaver(QWSScreenSaver*);    static void setScreenSaverIntervals(int* ms);    static void setScreenSaverInterval(int);    static bool screenSaverActive();    static void screenSaverActivate(bool);    // the following are internal.    void refresh();    void enablePainting(bool);    static void processEventQueue();    static QList&lt;QWSInternalWindowInfo&gt; * windowList();    void sendPropertyNotifyEvent( int property, int state );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -