Qt 4.8
Public Functions | Public Variables | List of all members
QXlibShmImageInfo Struct Reference

Public Functions

void destroy ()
 
 QXlibShmImageInfo (Display *xdisplay)
 
 ~QXlibShmImageInfo ()
 

Public Variables

Displaydisplay
 
XImage * image
 
XShmSegmentInfo shminfo
 

Detailed Description

Definition at line 61 of file qxlibwindowsurface.cpp.

Constructors and Destructors

◆ QXlibShmImageInfo()

QXlibShmImageInfo::QXlibShmImageInfo ( Display xdisplay)
inline

Definition at line 62 of file qxlibwindowsurface.cpp.

Referenced by QXlibWindowSurface::resizeShmImage().

62 : image(0), display(xdisplay) {}

◆ ~QXlibShmImageInfo()

QXlibShmImageInfo::~QXlibShmImageInfo ( )
inline

Definition at line 63 of file qxlibwindowsurface.cpp.

63 { destroy(); }

Functions

◆ destroy()

void QXlibShmImageInfo::destroy ( )

Definition at line 74 of file qxlibwindowsurface.cpp.

Referenced by ~QXlibShmImageInfo().

75 {
76  XShmDetach (display, &shminfo);
77  XDestroyImage (image);
78  shmdt (shminfo.shmaddr);
79  shmctl (shminfo.shmid, IPC_RMID, 0);
80 }
XShmSegmentInfo shminfo

Properties

◆ display

Display* QXlibShmImageInfo::display

Definition at line 69 of file qxlibwindowsurface.cpp.

Referenced by destroy().

◆ image

XImage* QXlibShmImageInfo::image

◆ shminfo

XShmSegmentInfo QXlibShmImageInfo::shminfo

Definition at line 67 of file qxlibwindowsurface.cpp.

Referenced by destroy().


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