Back to index

unity  6.0.0
Public Types | Public Member Functions | Public Attributes
CompScreenMock Class Reference

#include <screen.h>

Collaboration diagram for CompScreenMock:
Collaboration graph
[legend]

List of all members.

Public Types

typedef int GrabHandle

Public Member Functions

 CompScreenMock ()
int width () const
int height () const
Display * dpy ()
const CompWindowMockVectorclientList (bool stackingOrder=true)
Window root ()
GrabHandle pushGrab (Cursor cursor, const char *name)
void removeGrab (GrabHandle handle, CompPoint *restorePointer)
Cursor invisibleCursor ()

Public Attributes

int _width
int _height
Display * _dpy
CompWindowMockVector _client_list
CompWindowMockVector _client_list_stacking
Window _root
int _grab_count

Detailed Description

Definition at line 32 of file screen.h.


Member Typedef Documentation

Definition at line 36 of file screen.h.


Constructor & Destructor Documentation

Definition at line 34 of file screen.h.

: _grab_count(0) {}

Member Function Documentation

const CompWindowMockVector& CompScreenMock::clientList ( bool  stackingOrder = true) [inline]

Definition at line 43 of file screen.h.

                                                                     {
    if (stackingOrder)
      return _client_list_stacking;
    else
      return _client_list;
  }
Display* CompScreenMock::dpy ( ) [inline]

Definition at line 41 of file screen.h.

{return _dpy;}
int CompScreenMock::height ( ) const [inline]

Definition at line 39 of file screen.h.

{return _height;}

Here is the caller graph for this function:

Cursor CompScreenMock::invisibleCursor ( ) [inline]

Definition at line 60 of file screen.h.

{return 1;}
GrabHandle CompScreenMock::pushGrab ( Cursor  cursor,
const char *  name 
) [inline]

Definition at line 52 of file screen.h.

                                                       {
    _grab_count++;
    return 0;
  }
void CompScreenMock::removeGrab ( GrabHandle  handle,
CompPoint *  restorePointer 
) [inline]

Definition at line 56 of file screen.h.

                                                                {
    _grab_count--;
  }
Window CompScreenMock::root ( ) [inline]

Definition at line 50 of file screen.h.

{return _root;}
int CompScreenMock::width ( ) const [inline]

Definition at line 38 of file screen.h.

{return _width;}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 65 of file screen.h.

Definition at line 66 of file screen.h.

Definition at line 64 of file screen.h.

Definition at line 68 of file screen.h.

Definition at line 63 of file screen.h.

Definition at line 67 of file screen.h.

Definition at line 62 of file screen.h.


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