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

Public Functions

void cleanup ()
 
 QQnxScreenContext ()
 
 ~QQnxScreenContext ()
 

Public Variables

gf_context_t context
 
gf_dev_t device
 
gf_dev_info_t deviceInfo
 
gf_display_t display
 
gf_display_info_t displayInfo
 
gf_surface_t hwSurface
 
gf_layer_t layer
 
gf_surface_t memSurface
 
gf_surface_info_t memSurfaceInfo
 

Detailed Description

Definition at line 52 of file qscreenqnx_qws.cpp.

Constructors and Destructors

◆ QQnxScreenContext()

QQnxScreenContext::QQnxScreenContext ( )
inline

Definition at line 54 of file qscreenqnx_qws.cpp.

55  : device(0), display(0), layer(0), hwSurface(0), memSurface(0), context(0)
56  {}
gf_surface_t hwSurface
gf_context_t context
gf_surface_t memSurface
gf_display_t display

◆ ~QQnxScreenContext()

QQnxScreenContext::~QQnxScreenContext ( )
inline

Definition at line 57 of file qscreenqnx_qws.cpp.

58  { cleanup(); }

Functions

◆ cleanup()

void QQnxScreenContext::cleanup ( )

Definition at line 73 of file qscreenqnx_qws.cpp.

Referenced by QQnxScreen::disconnect(), and ~QQnxScreenContext().

74 {
75  if (context) {
76  gf_context_free(context);
77  context = 0;
78  }
79  if (memSurface) {
80  gf_surface_free(memSurface);
81  memSurface = 0;
82  }
83  if (hwSurface) {
84  gf_surface_free(hwSurface);
85  hwSurface = 0;
86  }
87  if (layer) {
88  gf_layer_detach(layer);
89  layer = 0;
90  }
91  if (display) {
92  gf_display_detach(display);
93  display = 0;
94  }
95  if (device) {
96  gf_dev_detach(device);
97  device = 0;
98  }
99 }
gf_surface_t hwSurface
gf_context_t context
gf_surface_t memSurface
gf_display_t display

Properties

◆ context

gf_context_t QQnxScreenContext::context

◆ device

gf_dev_t QQnxScreenContext::device

Definition at line 62 of file qscreenqnx_qws.cpp.

Referenced by attachDevice(), attachDisplay(), cleanup(), and createMemSurface().

◆ deviceInfo

gf_dev_info_t QQnxScreenContext::deviceInfo

Definition at line 63 of file qscreenqnx_qws.cpp.

Referenced by attachDevice(), and QQnxScreen::connect().

◆ display

gf_display_t QQnxScreenContext::display

◆ displayInfo

gf_display_info_t QQnxScreenContext::displayInfo

◆ hwSurface

gf_surface_t QQnxScreenContext::hwSurface

◆ layer

gf_layer_t QQnxScreenContext::layer

Definition at line 66 of file qscreenqnx_qws.cpp.

Referenced by attachLayer(), cleanup(), and createHwSurface().

◆ memSurface

gf_surface_t QQnxScreenContext::memSurface

◆ memSurfaceInfo

gf_surface_info_t QQnxScreenContext::memSurfaceInfo

Definition at line 69 of file qscreenqnx_qws.cpp.

Referenced by QQnxScreen::connect(), and createMemSurface().


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