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

KHTML

  • WebCore
  • FloatRect
Public Member Functions | Static Public Member Functions | List of all members
WebCore::FloatRect Class Reference

#include <FloatRect.h>

Public Member Functions

 FloatRect ()
 
 FloatRect (const FloatPoint &location, const FloatSize &size)
 
 FloatRect (float x, float y, float width, float height)
 
 FloatRect (const IntRect &)
 
float bottom () const
 
bool contains (const FloatRect &) const
 
bool contains (float px, float py) const
 
bool contains (const FloatPoint &point) const
 
float height () const
 
void inflate (float d)
 
void inflateX (float dx)
 
void inflateY (float dy)
 
void intersect (const FloatRect &)
 
bool intersects (const FloatRect &) const
 
bool isEmpty () const
 
FloatPoint location () const
 
void move (const FloatSize &delta)
 
void move (float dx, float dy)
 
float right () const
 
void scale (float s)
 
void setHeight (float height)
 
void setLocation (const FloatPoint &location)
 
void setSize (const FloatSize &size)
 
void setWidth (float width)
 
void setX (float x)
 
void setY (float y)
 
FloatSize size () const
 
void unite (const FloatRect &)
 
float width () const
 
float x () const
 
float y () const
 

Static Public Member Functions

static FloatRect narrowPrecision (double x, double y, double width, double height)
 

Detailed Description

Definition at line 59 of file FloatRect.h.

Constructor & Destructor Documentation

WebCore::FloatRect::FloatRect ( )
inline

Definition at line 61 of file FloatRect.h.

WebCore::FloatRect::FloatRect ( const FloatPoint &  location,
const FloatSize &  size 
)
inline

Definition at line 62 of file FloatRect.h.

WebCore::FloatRect::FloatRect ( float  x,
float  y,
float  width,
float  height 
)
inline

Definition at line 64 of file FloatRect.h.

WebCore::FloatRect::FloatRect ( const IntRect &  r)

Definition at line 39 of file FloatRect.cpp.

Member Function Documentation

float WebCore::FloatRect::bottom ( ) const
inline

Definition at line 89 of file FloatRect.h.

bool WebCore::FloatRect::contains ( const FloatRect &  other) const

Definition at line 56 of file FloatRect.cpp.

bool WebCore::FloatRect::contains ( float  px,
float  py 
) const
inline

Definition at line 102 of file FloatRect.h.

bool WebCore::FloatRect::contains ( const FloatPoint &  point) const
inline

Definition at line 104 of file FloatRect.h.

float WebCore::FloatRect::height ( ) const
inline

Definition at line 79 of file FloatRect.h.

void WebCore::FloatRect::inflate ( float  d)
inline

Definition at line 115 of file FloatRect.h.

void WebCore::FloatRect::inflateX ( float  dx)
inline

Definition at line 107 of file FloatRect.h.

void WebCore::FloatRect::inflateY ( float  dy)
inline

Definition at line 111 of file FloatRect.h.

void WebCore::FloatRect::intersect ( const FloatRect &  other)

Definition at line 62 of file FloatRect.cpp.

bool WebCore::FloatRect::intersects ( const FloatRect &  other) const

Definition at line 48 of file FloatRect.cpp.

bool WebCore::FloatRect::isEmpty ( ) const
inline

Definition at line 86 of file FloatRect.h.

FloatPoint WebCore::FloatRect::location ( ) const
inline

Definition at line 70 of file FloatRect.h.

void WebCore::FloatRect::move ( const FloatSize &  delta)
inline

Definition at line 91 of file FloatRect.h.

void WebCore::FloatRect::move ( float  dx,
float  dy 
)
inline

Definition at line 92 of file FloatRect.h.

FloatRect WebCore::FloatRect::narrowPrecision ( double  x,
double  y,
double  width,
double  height 
)
static

Definition at line 43 of file FloatRect.cpp.

float WebCore::FloatRect::right ( ) const
inline

Definition at line 88 of file FloatRect.h.

void WebCore::FloatRect::scale ( float  s)

Definition at line 104 of file FloatRect.cpp.

void WebCore::FloatRect::setHeight ( float  height)
inline

Definition at line 84 of file FloatRect.h.

void WebCore::FloatRect::setLocation ( const FloatPoint &  location)
inline

Definition at line 73 of file FloatRect.h.

void WebCore::FloatRect::setSize ( const FloatSize &  size)
inline

Definition at line 74 of file FloatRect.h.

void WebCore::FloatRect::setWidth ( float  width)
inline

Definition at line 83 of file FloatRect.h.

void WebCore::FloatRect::setX ( float  x)
inline

Definition at line 81 of file FloatRect.h.

void WebCore::FloatRect::setY ( float  y)
inline

Definition at line 82 of file FloatRect.h.

FloatSize WebCore::FloatRect::size ( ) const
inline

Definition at line 71 of file FloatRect.h.

void WebCore::FloatRect::unite ( const FloatRect &  other)

Definition at line 83 of file FloatRect.cpp.

float WebCore::FloatRect::width ( ) const
inline

Definition at line 78 of file FloatRect.h.

float WebCore::FloatRect::x ( ) const
inline

Definition at line 76 of file FloatRect.h.

float WebCore::FloatRect::y ( ) const
inline

Definition at line 77 of file FloatRect.h.


The documentation for this class was generated from the following files:
  • FloatRect.h
  • FloatRect.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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