• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

krfb

  • sources
  • kde-4.14
  • kdenetwork
  • krfb
  • krfb
framebuffer.cpp
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it>
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 */
9 
10 #include "framebuffer.h"
11 
12 #include "config-krfb.h"
13 
14 #include <X11/Xutil.h>
15 
16 
17 FrameBuffer::FrameBuffer(WId id, QObject *parent)
18  : QObject(parent), win(id)
19 {
20 }
21 
22 FrameBuffer::~FrameBuffer()
23 {
24  delete fb;
25 }
26 
27 char *FrameBuffer::data()
28 {
29  return fb;
30 }
31 
32 QList< QRect > FrameBuffer::modifiedTiles()
33 {
34  QList<QRect> ret = tiles;
35  tiles.clear();
36  return ret;
37 }
38 
39 int FrameBuffer::width()
40 {
41  return 0;
42 }
43 
44 int FrameBuffer::height()
45 {
46  return 0;
47 }
48 
49 void FrameBuffer::getServerFormat(rfbPixelFormat &)
50 {
51 }
52 
53 int FrameBuffer::depth()
54 {
55  return 32;
56 }
57 
58 int FrameBuffer::paddedWidth()
59 {
60  return width() * depth() / 8;
61 }
62 
63 void FrameBuffer::startMonitor()
64 {
65 }
66 
67 void FrameBuffer::stopMonitor()
68 {
69 }
70 
71 
72 #include "framebuffer.moc"
73 
framebuffer.h
QList::clear
void clear()
FrameBuffer::data
char * data()
Definition: framebuffer.cpp:27
rfbPixelFormat
Definition: rfbproto.h:148
FrameBuffer::width
virtual int width()
Definition: framebuffer.cpp:39
FrameBuffer::height
virtual int height()
Definition: framebuffer.cpp:44
QObject
QList< QRect >
FrameBuffer::tiles
QList< QRect > tiles
Definition: framebuffer.h:50
FrameBuffer::startMonitor
virtual void startMonitor()
Definition: framebuffer.cpp:63
FrameBuffer::depth
virtual int depth()
Definition: framebuffer.cpp:53
FrameBuffer::~FrameBuffer
virtual ~FrameBuffer()
Definition: framebuffer.cpp:22
FrameBuffer::fb
char * fb
Definition: framebuffer.h:49
FrameBuffer::stopMonitor
virtual void stopMonitor()
Definition: framebuffer.cpp:67
FrameBuffer::FrameBuffer
FrameBuffer(WId id, QObject *parent=0)
Definition: framebuffer.cpp:17
FrameBuffer::modifiedTiles
virtual QList< QRect > modifiedTiles()
Definition: framebuffer.cpp:32
FrameBuffer::paddedWidth
virtual int paddedWidth()
Definition: framebuffer.cpp:58
FrameBuffer::getServerFormat
virtual void getServerFormat(rfbPixelFormat &format)
Definition: framebuffer.cpp:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krfb

Skip menu "krfb"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal