KWindowSystem

#include <netwm_def.h>

Public Member Functions

 NETPoint ()
 
 NETPoint (const QPoint &p)
 
QPoint toPoint () const
 

Public Attributes

int x
 
int y
 

Detailed Description

Simple point class for NET classes.

This class is a convenience class defining a point x, y. The existence of this class is to keep the implementation from being dependent on a separate framework/library.

NETPoint is only used by the NET API. Usually QPoint is the appropriate class for representing a point.

Author
Bradley T. Hughes bhugh.nosp@m.es@t.nosp@m.rollt.nosp@m.ech..nosp@m.com

Definition at line 27 of file netwm_def.h.

Constructor & Destructor Documentation

◆ NETPoint() [1/2]

NETPoint::NETPoint ( )
inline

Constructor to initialize this point to 0,0.

Definition at line 31 of file netwm_def.h.

◆ NETPoint() [2/2]

NETPoint::NETPoint ( const QPoint & p)
inline

Definition at line 37 of file netwm_def.h.

Member Function Documentation

◆ toPoint()

QPoint NETPoint::toPoint ( ) const
inline

Definition at line 43 of file netwm_def.h.

Member Data Documentation

◆ x

int NETPoint::x

x coordinate.

Definition at line 51 of file netwm_def.h.

◆ y

int NETPoint::y

y coordinate

Definition at line 52 of file netwm_def.h.


The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.