Qt 4.8
Public Functions | Public Variables | Static Public Variables | List of all members
QX11EmbedContainerPrivate Class Reference
Inheritance diagram for QX11EmbedContainerPrivate:
QWidgetPrivate QObjectPrivate QObjectData

Public Functions

void acceptClient (WId window)
 Accepts a client by mapping it, resizing it and optionally activating and giving it logical focusing through XEMBED messages. More...
 
void checkGrab ()
 
void emitError (QX11EmbedContainer::Error error)
 
bool isEmbedded () const
 Returns whether or not the windows' embedded flag is set. More...
 
void moveInputToProxy ()
 Moves X11 keyboard input focus to the focusProxy, unless the focus is there already. More...
 
 QX11EmbedContainerPrivate ()
 
void rejectClient (WId window)
 Rejects a client window by reparenting it to the root window. More...
 
WId topLevelParentWinId () const
 Returns the parentWinId of the window. More...
 
- Public Functions inherited from QWidgetPrivate
void _q_showIfNotHidden ()
 
virtual void aboutToDestroy ()
 
void activateChildLayoutsRecursively ()
 
QSize adjustedSize () const
 
void adjustQuitOnCloseAttribute ()
 
QInputContextassignedInputContext () const
 
QPainterbeginSharedPainter ()
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool, bool includeFrame=false) const
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void clipToEffectiveMask (QRegion &region) const
 
bool close_helper (CloseMode mode)
 
void create_sys (WId window, bool initializeWindow, bool destroyOldWindow)
 
QWindowSurfacecreateDefaultWindowSurface ()
 
QWindowSurfacecreateDefaultWindowSurface_sys ()
 
void createExtra ()
 Creates the widget extra data. More...
 
void createRecursively ()
 
void createSysExtra ()
 
void createTLExtra ()
 
void createTLSysExtra ()
 
void createWinId (WId id=0)
 
void deactivateWidgetCleanup ()
 
void deleteExtra ()
 Deletes the widget extra data. More...
 
void deleteSysExtra ()
 
void deleteTLSysExtra ()
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter=0, QWidgetBackingStore *backingStore=0)
 
QWidgeteffectiveFocusWidget ()
 
QRect effectiveRectFor (const QRect &rect) const
 
bool endSharedPainter ()
 
void enforceNativeChildren ()
 
QWExtraextraData () const
 
QRect frameStrut () const
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
const QRegiongetOpaqueChildren () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
virtual bool hasHeightForWidth () const
 
void hide_helper ()
 
void hide_sys ()
 Platform-specific part of QWidget::hide(). More...
 
void hideChildren (bool spontaneous)
 
void inheritStyle ()
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
QInputContextinputContext () const
 
void invalidateBuffer (const QRegion &)
 Invalidates the rgn (in widget's coordinates) of the backing store, i.e. More...
 
void invalidateBuffer (const QRect &)
 This function is equivalent to calling invalidateBuffer(QRegion(rect), ...), but is more efficient as it eliminates QRegion operations/allocations and can use the rect more precisely for additional cut-offs. More...
 
void invalidateBuffer_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the buffer when the widget is resized. More...
 
void invalidateGraphicsEffectsRecursively ()
 
bool isAboutToShow () const
 
bool isBackgroundInherited () const
 
bool isOverlapped (const QRect &) const
 
void lower_sys ()
 
QPoint mapFromGlobal (const QPoint &pos) const
 
QPoint mapToGlobal (const QPoint &pos) const
 
QWidgetBackingStoremaybeBackingStore () const
 
QTLWExtramaybeTopData () const
 
void moveRect (const QRect &, int dx, int dy)
 
bool nativeChildrenForced () const
 
QFont naturalWidgetFont (uint inheritedMask) const
 
QPalette naturalWidgetPalette (uint inheritedMask) const
 Returns the palette that the widget w inherits from its ancestors and QApplication::palette. More...
 
void paintBackground (QPainter *, const QRegion &, int flags=DrawAsRoot) const
 
bool paintOnScreen () const
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter, QWidgetBackingStore *backingStore)
 
bool pointInsideRectAndMask (const QPoint &) const
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void propagatePaletteChange ()
 Propagate this widget's palette to all children, except style sheet widgets, and windows that don't enable window propagation (palettes don't normally propagate to windows). More...
 
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
void raise_sys ()
 
QPaintDeviceredirected (QPoint *offset) const
 
void registerDropSite (bool)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags, bool readyToRender)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void repaint_sys (const QRegion &rgn)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void resolveFont ()
 Determine which font is implicitly imposed on this widget by its ancestors and QApplication::font, resolve this against its own font (attributes from the implicit font are copied over). More...
 
void resolveLayoutDirection ()
 
void resolveLocale ()
 
void resolvePalette ()
 Determine which palette is inherited from this widget's ancestors and QApplication::palette, resolve this against this widget's palette (attributes from the inherited palette are copied over this widget's palette). More...
 
void restoreRedirected ()
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void scrollChildren (int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void sendStartupMessage (const char *message) const
 Platform-specific part of QWidget::show(). More...
 
void setConstraints_sys ()
 
void setCursor_sys (const QCursor &cursor)
 
void setDirtyOpaqueRegion ()
 
void setEnabled_helper (bool)
 
void setFocus_sys ()
 
void setFont_helper (const QFont &font)
 
void setGeometry_sys (int, int, int, int, bool)
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=0)
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void setMask_sys (const QRegion &)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
void setModal_sys ()
 
void setNetWmWindowTypes ()
 
void setOpaque (bool opaque)
 
void setPalette_helper (const QPalette &)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
void setSharedPainter (QPainter *painter)
 
void setStyle_helper (QStyle *newStyle, bool propagate, bool metalHack=false)
 
void setUpdatesEnabled_helper (bool)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys (bool forceReset=false)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowOpacity_sys (qreal opacity)
 
void setWindowRole ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWinId (WId)
 
QPaintersharedPainter () const
 
void show_helper ()
 
void show_recursive ()
 Makes the widget visible in the isVisible() meaning of the word. More...
 
void show_sys ()
 Platform-specific part of QWidget::show(). More...
 
void showChildren (bool spontaneous)
 
void stackUnder_sys (QWidget *)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=0, bool alsoNonOpaque=false) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
QTLWExtratopData () const
 
void unsetCursor_sys ()
 
void updateFont (const QFont &)
 Assign font to this widget, and propagate it to all children, except style sheet widgets (handled differently) and windows that don't enable window propagation. More...
 
void updateFrameStrut ()
 Computes the frame rectangle when needed. More...
 
void updateGeometry_helper (bool forceUpdate)
 
void updateIsOpaque ()
 
void updateIsTranslucent ()
 
void updateSystemBackground ()
 
void updateX11AcceptFocus ()
 
void x11UpdateIsOpaque ()
 
 ~QWidgetPrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Public Variables

WId client
 
bool clientIsXEmbed
 
QRect clientOriginalRect
 
QWidgetfocusProxy
 
QX11EmbedContainer::Error lastError
 
QSize wmMinimumSizeHint
 
bool xgrab
 
- Public Variables inherited from QWidgetPrivate
QString accessibleDescription
 
QString accessibleName
 
QList< QAction * > actions
 
QPalette::ColorRole bg_role: 8
 
signed char bottomLayoutItemMargin
 
short bottommargin
 
QWidgetData data
 
QRegion dirty
 
uint dirtyOpaqueChildren: 1
 
QWExtraextra
 
QPaintEngineextraPaintEngine
 
QPalette::ColorRole fg_role: 8
 
QWidgetfocus_child
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
QGraphicsEffectgraphicsEffect
 
Qt::HANDLE hd
 
uint high_attributes [4]
 
QPointer< QInputContextic
 
Qt::InputMethodHints imHints
 
uint inDirtyList: 1
 
uint inheritedFontResolveMask
 
uint inheritedPaletteResolveMask
 
uint inheritsInputMethodHints: 1
 
uint inSetParent: 1
 
uint isGLWidget: 1
 
uint isMoved: 1
 
uint isOpaque: 1
 
uint isScrolled: 1
 
QLayoutlayout
 
signed char leftLayoutItemMargin
 
short leftmargin
 
QLocale locale
 
QRegionneedsFlush
 
QRegion opaqueChildren
 
Qt::HANDLE picture
 
const QMetaObjectpolished
 
QPaintDeviceredirectDev
 
QPoint redirectOffset
 
signed char rightLayoutItemMargin
 
short rightmargin
 
QSizePolicy size_policy
 
QString statusTip
 
QString toolTip
 
signed char topLayoutItemMargin
 
short topmargin
 
uint usesDoubleBufferedGLContext: 1
 
QString whatsThis
 
QWidgetItemV2widgetItem
 
QX11Info xinfo
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Static Public Variables

static QX11EmbedContaineractiveContainer = 0
 
- Static Public Variables inherited from QWidgetPrivate
static QWidgetSetallWidgets = 0
 
static int instanceCounter = 0
 
static QWidgetkeyboardGrabber = 0
 
static QWidgetMappermapper = 0
 
static int maxInstances = 0
 
static QWidgetmouseGrabber = 0
 

Additional Inherited Members

- Public Types inherited from QWidgetPrivate
enum  CloseMode { CloseNoEvent, CloseWithEvent, CloseWithSpontaneousEvent }
 
enum  Direction { DirectionNorth = 0x01, DirectionEast = 0x10, DirectionSouth = 0x02, DirectionWest = 0x20 }
 
enum  DrawWidgetFlags {
  DrawAsRoot = 0x01, DrawPaintOnScreen = 0x02, DrawRecursive = 0x04, DrawInvisible = 0x08,
  DontSubtractOpaqueChildren = 0x10, DontSetCompositionMode = 0x20, DontDrawOpaqueChildren = 0x40, DontDrawNativeChildren = 0x80
}
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Static Public Functions inherited from QWidgetPrivate
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=0)
 
static QGraphicsProxyWidgetnearestGraphicsProxyWidget (const QWidget *origin)
 Finds the nearest widget embedded in a graphics proxy widget along the chain formed by this widget and its ancestors. More...
 
static int pointToRect (const QPoint &p, const QRect &r)
 
static QRect screenGeometry (const QWidget *widget)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Detailed Description

Definition at line 1051 of file qx11embed_x11.cpp.

Constructors and Destructors

◆ QX11EmbedContainerPrivate()

QX11EmbedContainerPrivate::QX11EmbedContainerPrivate ( )
inline

Definition at line 1055 of file qx11embed_x11.cpp.

Functions

◆ acceptClient()

void QX11EmbedContainerPrivate::acceptClient ( WId  window)

Accepts a client by mapping it, resizing it and optionally activating and giving it logical focusing through XEMBED messages.

Warning
This function is not part of the public interface.

Definition at line 1710 of file qx11embed_x11.cpp.

1711 {
1713  client = window;
1714  q->setEnabled(true);
1715 
1716  // This tells Qt that we wish to forward DnD messages to
1717  // our client.
1718  if (!extra)
1719  createExtra();
1720  extraData()->xDndProxy = client;
1721 
1722  unsigned int version = XEmbedVersion();
1723 
1724  Atom actual_type_return;
1725  int actual_format_return;
1726  unsigned long nitems_return = 0;
1727  unsigned long bytes_after_return;
1728  unsigned char *prop_return = 0;
1729  unsigned int clientversion = 0;
1730 
1731  // Add this client to our saveset, so if we crash, the client window
1732  // doesn't get destroyed. This is useful for containers that restart
1733  // automatically after a crash, because it can simply reembed its clients
1734  // without having to restart them (KDE panel).
1735  XAddToSaveSet(q->x11Info().display(), client);
1736 
1737  // XEmbed clients have an _XEMBED_INFO property in which we can
1738  // fetch the version
1739  if (XGetWindowProperty(q->x11Info().display(), client, ATOM(_XEMBED_INFO), 0, 2, false,
1740  ATOM(_XEMBED_INFO), &actual_type_return, &actual_format_return,
1741  &nitems_return, &bytes_after_return, &prop_return) == Success) {
1742 
1743  if (actual_type_return != None && actual_format_return != 0) {
1744  // Clients with the _XEMBED_INFO property are XEMBED clients.
1745  clientIsXEmbed = true;
1746 
1747  long *p = (long *)prop_return;
1748  if (nitems_return >= 2)
1749  clientversion = (unsigned int)p[0];
1750  }
1751 
1752  XFree(prop_return);
1753  }
1754 
1755  // Store client window's original size and placement.
1756  Window root;
1757  int x_return, y_return;
1758  unsigned int width_return, height_return, border_width_return, depth_return;
1759  XGetGeometry(q->x11Info().display(), client, &root, &x_return, &y_return,
1760  &width_return, &height_return, &border_width_return, &depth_return);
1761  clientOriginalRect.setCoords(x_return, y_return,
1762  x_return + width_return - 1,
1763  y_return + height_return - 1);
1764 
1765  // Ask the client for its minimum size.
1766  XSizeHints size;
1767  long msize;
1768  if (XGetWMNormalHints(q->x11Info().display(), client, &size, &msize) && (size.flags & PMinSize)) {
1769  wmMinimumSizeHint = QSize(size.min_width, size.min_height);
1770  q->updateGeometry();
1771  }
1772 
1773  // The container should set the data2 field to the lowest of its
1774  // supported version number and that of the client (from
1775  // _XEMBED_INFO property).
1776  unsigned int minversion = version > clientversion ? clientversion : version;
1777  sendXEmbedMessage(client, q->x11Info().display(), XEMBED_EMBEDDED_NOTIFY, q->internalWinId(), minversion);
1778  XMapWindow(q->x11Info().display(), client);
1779 
1780  // Resize it, but no smaller than its minimum size hint.
1781  XResizeWindow(q->x11Info().display(),
1782  client,
1783  qMax(q->width(), wmMinimumSizeHint.width()),
1784  qMax(q->height(), wmMinimumSizeHint.height()));
1785  q->update();
1786 
1787  // Not mentioned in the protocol is that if the container
1788  // is already active, the client must be activated to work
1789  // properly.
1790  if (q->window()->isActiveWindow())
1791  sendXEmbedMessage(client, q->x11Info().display(), XEMBED_WINDOW_ACTIVATE);
1792 
1793  // Also, if the container already has focus, then it must
1794  // send a focus in message to its new client; otherwise we ask
1795  // it to remove focus.
1796  if (q->focusWidget() == q && q->hasFocus())
1797  sendXEmbedMessage(client, q->x11Info().display(), XEMBED_FOCUS_IN, XEMBED_FOCUS_FIRST);
1798  else
1799  sendXEmbedMessage(client, q->x11Info().display(), XEMBED_FOCUS_OUT);
1800 
1801  if (!clientIsXEmbed) {
1802  checkGrab();
1803  if (q->hasFocus()) {
1804  XSetInputFocus(q->x11Info().display(), client, XRevertToParent, x11Time());
1805  }
1806  } else {
1807  if (!isEmbedded())
1808  moveInputToProxy();
1809  }
1810 
1811  emit q->clientIsEmbedded();
1812 }
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
Definition: qglobal.h:1217
#define Q_Q(Class)
Definition: qglobal.h:2483
#define ATOM(x)
Definition: qt_x11_p.h:723
NSWindow * window
int width() const
Returns the width.
Definition: qsize.h:126
void createExtra()
Creates the widget extra data.
Definition: qwidget.cpp:1802
#define emit
Definition: qobjectdefs.h:76
static void sendXEmbedMessage(WId window, Display *display, long message, long detail=0, long data1=0, long data2=0)
void setCoords(int x1, int y1, int x2, int y2)
Sets the coordinates of the rectangle&#39;s top-left corner to (x1, y1), and the coordinates of its botto...
Definition: qrect.h:416
#define None
void moveInputToProxy()
Moves X11 keyboard input focus to the focusProxy, unless the focus is there already.
int height() const
Returns the height.
Definition: qsize.h:129
QWExtra * extra
Definition: qwidget_p.h:700
bool isEmbedded() const
Returns whether or not the windows&#39; embedded flag is set.
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53
QWExtra * extraData() const
Definition: qwidget_p.h:999
The QX11EmbedContainer class provides an XEmbed container widget.
Definition: qx11embed_x11.h:88
static Time x11Time()
static unsigned int XEmbedVersion()

◆ checkGrab()

void QX11EmbedContainerPrivate::checkGrab ( )
Warning
This function is not part of the public interface.

Definition at line 1851 of file qx11embed_x11.cpp.

1852 {
1854  if (!clientIsXEmbed && q->isActiveWindow() && !q->hasFocus()) {
1855  if (!xgrab) {
1856  XGrabButton(q->x11Info().display(), AnyButton, AnyModifier, q->internalWinId(),
1857  true, ButtonPressMask, GrabModeSync, GrabModeAsync,
1858  None, None);
1859  }
1860  xgrab = true;
1861  } else {
1862  if (xgrab)
1863  XUngrabButton(q->x11Info().display(), AnyButton, AnyModifier, q->internalWinId());
1864  xgrab = false;
1865  }
1866 }
#define Q_Q(Class)
Definition: qglobal.h:2483
#define None
static const int AnyButton
The QX11EmbedContainer class provides an XEmbed container widget.
Definition: qx11embed_x11.h:88

◆ emitError()

void QX11EmbedContainerPrivate::emitError ( QX11EmbedContainer::Error  error)
inline

Definition at line 1074 of file qx11embed_x11.cpp.

1074  {
1076  lastError = error;
1077  emit q->error(error);
1078  }
#define error(msg)
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76
QX11EmbedContainer::Error lastError
The QX11EmbedContainer class provides an XEmbed container widget.
Definition: qx11embed_x11.h:88

◆ isEmbedded()

bool QX11EmbedContainerPrivate::isEmbedded ( ) const

Returns whether or not the windows' embedded flag is set.

Warning
This function is not part of the public interface.

Definition at line 1189 of file qx11embed_x11.cpp.

1190 {
1191  Q_Q(const QX11EmbedContainer);
1192  return ((QHackWidget *)q->window())->topData()->embedded == 1;
1193 }
uint embedded
Definition: qwidget_p.h:190
#define Q_Q(Class)
Definition: qglobal.h:2483
QTLWExtra * topData() const
Definition: qwidget_p.h:1004
The QX11EmbedContainer class provides an XEmbed container widget.
Definition: qx11embed_x11.h:88

◆ moveInputToProxy()

void QX11EmbedContainerPrivate::moveInputToProxy ( )

Moves X11 keyboard input focus to the focusProxy, unless the focus is there already.

Warning
This function is not part of the public interface.

When X11 keyboard input focus is on the focusProxy, which is a child of the container and a sibling of the client, X11 keypresses and keyreleases will always go to the proxy and not to the client.

Definition at line 1825 of file qx11embed_x11.cpp.

1826 {
1828  // Following Owen Taylor's advice from the XEmbed specification to
1829  // always use CurrentTime when no explicit user action is involved.
1830  XSetInputFocus(q->x11Info().display(), focusProxy->internalWinId(), XRevertToParent, CurrentTime);
1831 }
#define Q_Q(Class)
Definition: qglobal.h:2483
WId internalWinId() const
Returns the window system identifier of the widget, or 0 if the widget is not created yet...
Definition: qwidget.h:244
The QX11EmbedContainer class provides an XEmbed container widget.
Definition: qx11embed_x11.h:88

◆ rejectClient()

void QX11EmbedContainerPrivate::rejectClient ( WId  window)

Rejects a client window by reparenting it to the root window.

Warning
This function is not part of the public interface.

The client will receive a reparentnotify, and will most likely assume that the container has shut down. The XEmbed protocol does not define any way to reject a client window, but this is a clean way to do it.

Definition at line 1694 of file qx11embed_x11.cpp.

1695 {
1697  q->setEnabled(false);
1698  XRemoveFromSaveSet(q->x11Info().display(), client);
1699  XReparentWindow(q->x11Info().display(), window, q->x11Info().appRootWindow(q->x11Info().screen()), 0, 0);
1700 }
#define Q_Q(Class)
Definition: qglobal.h:2483
NSWindow * window
The QX11EmbedContainer class provides an XEmbed container widget.
Definition: qx11embed_x11.h:88

◆ topLevelParentWinId()

WId QX11EmbedContainerPrivate::topLevelParentWinId ( ) const

Returns the parentWinId of the window.

Warning
This function is not part of the public interface.

Definition at line 1202 of file qx11embed_x11.cpp.

1203 {
1204  Q_Q(const QX11EmbedContainer);
1205  return ((QHackWidget *)q->window())->topData()->parentWinId;
1206 }
#define Q_Q(Class)
Definition: qglobal.h:2483
QTLWExtra * topData() const
Definition: qwidget_p.h:1004
WId parentWinId
Definition: qwidget_p.h:198
The QX11EmbedContainer class provides an XEmbed container widget.
Definition: qx11embed_x11.h:88

Properties

◆ activeContainer

QX11EmbedContainer * QX11EmbedContainerPrivate::activeContainer = 0
static

Definition at line 1089 of file qx11embed_x11.cpp.

◆ client

WId QX11EmbedContainerPrivate::client

Definition at line 1080 of file qx11embed_x11.cpp.

◆ clientIsXEmbed

bool QX11EmbedContainerPrivate::clientIsXEmbed

Definition at line 1082 of file qx11embed_x11.cpp.

◆ clientOriginalRect

QRect QX11EmbedContainerPrivate::clientOriginalRect

Definition at line 1084 of file qx11embed_x11.cpp.

◆ focusProxy

QWidget* QX11EmbedContainerPrivate::focusProxy

Definition at line 1081 of file qx11embed_x11.cpp.

◆ lastError

QX11EmbedContainer::Error QX11EmbedContainerPrivate::lastError

Definition at line 1087 of file qx11embed_x11.cpp.

◆ wmMinimumSizeHint

QSize QX11EmbedContainerPrivate::wmMinimumSizeHint

Definition at line 1085 of file qx11embed_x11.cpp.

◆ xgrab

bool QX11EmbedContainerPrivate::xgrab

Definition at line 1083 of file qx11embed_x11.cpp.


The documentation for this class was generated from the following file: