Lines Matching refs:Private
195 error = Private->EPOC_WsSession.Connect();
197 Private->EPOC_WsScreen=new(ELeave) CWsScreenDevice(Private->EPOC_WsSession);
198 User::LeaveIfError(Private->EPOC_WsScreen->Construct());
199 User::LeaveIfError(Private->EPOC_WsScreen->CreateContext(Private->EPOC_WindowGc));
201 Private->EPOC_WsWindowGroup=RWindowGroup(Private->EPOC_WsSession);
202 User::LeaveIfError(Private->EPOC_WsWindowGroup.Construct(WindowClientHandle));
203 Private->EPOC_WsWindowGroup.SetOrdinalPosition(0);
214 Private->EPOC_WsWindowGroup.SetName(winGroupName); //!!
216 Private->EPOC_WsWindow=RWindow(Private->EPOC_WsSession);
217 User::LeaveIfError(Private->EPOC_WsWindow.Construct(Private->EPOC_WsWindowGroup,WindowClientHandle));
218 Private->EPOC_WsWindow.SetBackgroundColor(KRgbWhite);
219 Private->EPOC_WsWindow.Activate();
220 Private->EPOC_WsWindow.SetSize(Private->EPOC_WsScreen->SizeInPixels());
221 Private->EPOC_WsWindow.SetVisible(ETrue);
223 Private->EPOC_WsWindowGroupID = Private->EPOC_WsWindowGroup.Identifier();
224 Private->EPOC_IsWindowFocused = EFalse;
237 Private->SDL_modelist[i] = (SDL_Rect *)SDL_malloc(sizeof(SDL_Rect));
238 Private->SDL_modelist[i]->x = Private->SDL_modelist[i]->y = 0;
241 Private->SDL_modelist[0]->w = 640; Private->SDL_modelist[0]->h = 200;
242 Private->SDL_modelist[1]->w = 320; Private->SDL_modelist[1]->h = 200;
243 Private->SDL_modelist[2]->w = 640; Private->SDL_modelist[2]->h = 400;
244 Private->SDL_modelist[3]->w = 640; Private->SDL_modelist[3]->h = 480;
245 Private->SDL_modelist[4] = NULL;
253 TDisplayMode displayMode = Private->EPOC_WsScreen->DisplayMode();
261 Private->EPOC_ScreenSize = screenInfo.iScreenSize;
262 Private->EPOC_DisplayMode = displayMode;
263 Private->EPOC_HasFrameBuffer = screenInfo.iScreenAddressValid;
264 Private->EPOC_FrameBuffer = Private->EPOC_HasFrameBuffer ? (TUint8*) screenInfo.iScreenAddress : NULL;
265 Private->EPOC_BytesPerPixel = ((GetBpp(displayMode)-1) / 8) + 1;
266 Private->EPOC_BytesPerScanLine = screenInfo.iScreenSize.iWidth * Private->EPOC_BytesPerPixel;
272 if (Private->EPOC_HasFrameBuffer && GetBpp(displayMode) == 8)
273 Private->EPOC_FrameBuffer += 512;
274 if (Private->EPOC_HasFrameBuffer && GetBpp(displayMode) == 12)
275 Private->EPOC_FrameBuffer += 16 * 2;
280 Private->EPOC_ScreenSize = Private->EPOC_WsScreen->SizeInPixels();
282 Private->EPOC_Bitmap = new (ELeave) CWsBitmap(Private->EPOC_WsSession);
283 Private->EPOC_Bitmap->Create(Private->EPOC_ScreenSize, displayMode);
285 Private->EPOC_DisplayMode = displayMode;
286 Private->EPOC_HasFrameBuffer = ETrue;
287 Private->EPOC_FrameBuffer = NULL; /* Private->EPOC_Bitmap->DataAddress() can change any time */
288 Private->EPOC_BytesPerPixel = ((GetBpp(displayMode)-1) / 8) + 1;
289 Private->EPOC_BytesPerScanLine = Private->EPOC_WsScreen->SizeInPixels().iWidth * Private->EPOC_BytesPerPixel;
293 _this->info.current_w = Private->EPOC_ScreenSize.iWidth;
294 _this->info.current_h = Private->EPOC_ScreenSize.iHeight;
299 vformat->BytesPerPixel = /*!!Private->EPOC_BytesPerPixel*/ 1;
303 Private->EPOC_WsEventStatus = KRequestPending;
304 Private->EPOC_WsSession.EventReady(&Private->EPOC_WsEventStatus);
305 Private->EPOC_RedrawEventStatus = KRequestPending;
306 Private->EPOC_WsSession.RedrawReady(&Private->EPOC_RedrawEventStatus);
307 Private->EPOC_WsWindow.PointerFilter(EPointerFilterDrag, 0);
309 Private->EPOC_ScreenOffset = 0;
322 return Private->SDL_modelist;
381 Private->EPOC_ShrinkedHeight = ETrue;
384 Private->EPOC_ScreenOffset = (Private->EPOC_ScreenSize.iWidth - current->w) / 2;
399 TBitmapUtil lock(Private->EPOC_Bitmap);
401 Private->EPOC_WindowGc->Activate(Private->EPOC_WsWindow);
404 if (fullScreen.w < Private->EPOC_ScreenSize.iWidth
405 && fullScreen.w < Private->EPOC_ScreenSize.iWidth) {
408 TUint16* screenBuffer = (TUint16*)Private->EPOC_Bitmap->DataAddress();
410 TUint16* screenBuffer = (TUint16*)Private->EPOC_FrameBuffer;
412 for (int y=0; y < Private->EPOC_ScreenSize.iHeight; y++) {
413 for (int x=0; x < Private->EPOC_ScreenSize.iWidth; x++) {
422 TRect rect = TRect(Private->EPOC_WsWindow.Size());
423 Private->EPOC_WsWindow.Invalidate(rect);
426 Private->EPOC_WsWindow.BeginRedraw(rect);
427 Private->EPOC_WindowGc->BitBlt(TPoint(), Private->EPOC_Bitmap);
428 Private->EPOC_WsWindow.EndRedraw();
429 Private->EPOC_WindowGc->Deactivate();
431 Private->EPOC_WsSession.Flush();
465 TInt focusWindowGroupId = Private->EPOC_WsSession.GetFocusWindowGroup();
466 if (focusWindowGroupId != Private->EPOC_WsWindowGroupID) {
471 TInt pos = Private->EPOC_WsWindowGroup.OrdinalPosition();
472 Private->EPOC_WsWindowGroup.SetOrdinalPosition(0, KMaxTInt);
473 TRect rect = TRect(Private->EPOC_WsWindow.Size());
474 Private->EPOC_WsWindow.Invalidate(rect);
475 Private->EPOC_WsWindowGroup.SetOrdinalPosition(pos, ECoeWinPriorityNormal);
480 while (Private->EPOC_WsSession.GetFocusWindowGroup() != Private->EPOC_WsWindowGroupID)
488 TInt targetNumBytesPerPixel = Private->EPOC_BytesPerPixel;
489 TInt fixedOffset = Private->EPOC_ScreenOffset;
493 if (Private->EPOC_ShrinkedHeight) { /* simulate 400 pixel height in 200 pixel screen */
497 TInt targetScanlineLength = Private->EPOC_ScreenSize.iWidth;
499 TBitmapUtil lock(Private->EPOC_Bitmap);
501 Private->EPOC_WindowGc->Activate(Private->EPOC_WsWindow);
502 TUint16* screenBuffer = (TUint16*)Private->EPOC_Bitmap->DataAddress();
504 TUint16* screenBuffer = (TUint16*)Private->EPOC_FrameBuffer;
521 if (Private->EPOC_ShrinkedHeight) { /* simulate 400 pixel height in 200 pixel screen */
548 + Private->EPOC_ScreenSize.iWidth * Private->EPOC_ScreenSize.iHeight),
572 + (Private->EPOC_ScreenSize.iWidth * Private->EPOC_ScreenSize.iHeight)),
594 TRect rect = TRect(Private->EPOC_WsWindow.Size());
595 Private->EPOC_WsWindow.Invalidate(rect);
596 Private->EPOC_WsWindow.BeginRedraw(rect);
597 Private->EPOC_WindowGc->BitBlt(TPoint(), Private->EPOC_Bitmap);
598 Private->EPOC_WsWindow.EndRedraw();
599 Private->EPOC_WindowGc->Deactivate();
601 Private->EPOC_WsSession.Flush();
606 //!!Private->EPOC_WsSession.SetPointerCursorPosition(Private->EPOC_WsSession.PointerCursorPosition());
621 if ( Private->SDL_modelist[i] != NULL ) {
622 SDL_free(Private->SDL_modelist[i]);
623 Private->SDL_modelist[i] = NULL;
640 if (Private->EPOC_WsEventStatus != KRequestPending)
641 Private->EPOC_WsSession.EventReadyCancel();
642 if (Private->EPOC_RedrawEventStatus != KRequestPending)
643 Private->EPOC_WsSession.RedrawReadyCancel();
646 delete Private->EPOC_Bitmap;
647 Private->EPOC_Bitmap = NULL;
650 if (Private->EPOC_WsWindow.WsHandle())
651 Private->EPOC_WsWindow.Close();
653 if (Private->EPOC_WsWindowGroup.WsHandle())
654 Private->EPOC_WsWindowGroup.Close();
656 delete Private->EPOC_WindowGc;
657 Private->EPOC_WindowGc = NULL;
659 delete Private->EPOC_WsScreen;
660 Private->EPOC_WsScreen = NULL;
662 if (Private->EPOC_WsSession.WsHandle())
663 Private->EPOC_WsSession.Close();
676 Private->EPOC_WsSession.SetPointerCursorMode(EPointerCursorNone);
685 Private->EPOC_WsSession.SetPointerCursorMode(EPointerCursorNormal);
690 Private->EPOC_WsSession.SetPointerCursorMode(EPointerCursorNone);