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

KHTML

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

#include <FloatRect.h>

Public Member Functions

 FloatRect ()
 FloatRect (const FloatPoint &location, const FloatSize &size)
 FloatRect (const IntRect &)
 FloatRect (float x, float y, float width, float height)
float bottom () const
bool contains (const FloatPoint &point) const
bool contains (const FloatRect &) const
bool contains (float px, float py) 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

◆ FloatRect() [1/4]

WebCore::FloatRect::FloatRect ( )
inline

Definition at line 61 of file FloatRect.h.

◆ FloatRect() [2/4]

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

Definition at line 62 of file FloatRect.h.

◆ FloatRect() [3/4]

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

Definition at line 64 of file FloatRect.h.

◆ FloatRect() [4/4]

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

Definition at line 39 of file FloatRect.cpp.

Member Function Documentation

◆ bottom()

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

Definition at line 89 of file FloatRect.h.

◆ contains() [1/3]

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

Definition at line 104 of file FloatRect.h.

◆ contains() [2/3]

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

Definition at line 56 of file FloatRect.cpp.

◆ contains() [3/3]

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

Definition at line 102 of file FloatRect.h.

◆ height()

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

Definition at line 79 of file FloatRect.h.

◆ inflate()

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

Definition at line 115 of file FloatRect.h.

◆ inflateX()

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

Definition at line 107 of file FloatRect.h.

◆ inflateY()

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

Definition at line 111 of file FloatRect.h.

◆ intersect()

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

Definition at line 62 of file FloatRect.cpp.

◆ intersects()

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

Definition at line 48 of file FloatRect.cpp.

◆ isEmpty()

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

Definition at line 86 of file FloatRect.h.

◆ location()

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

Definition at line 70 of file FloatRect.h.

◆ move() [1/2]

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

Definition at line 91 of file FloatRect.h.

◆ move() [2/2]

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

Definition at line 92 of file FloatRect.h.

◆ narrowPrecision()

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

Definition at line 43 of file FloatRect.cpp.

◆ right()

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

Definition at line 88 of file FloatRect.h.

◆ scale()

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

Definition at line 104 of file FloatRect.cpp.

◆ setHeight()

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

Definition at line 84 of file FloatRect.h.

◆ setLocation()

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

Definition at line 73 of file FloatRect.h.

◆ setSize()

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

Definition at line 74 of file FloatRect.h.

◆ setWidth()

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

Definition at line 83 of file FloatRect.h.

◆ setX()

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

Definition at line 81 of file FloatRect.h.

◆ setY()

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

Definition at line 82 of file FloatRect.h.

◆ size()

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

Definition at line 71 of file FloatRect.h.

◆ unite()

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

Definition at line 83 of file FloatRect.cpp.

◆ width()

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

Definition at line 78 of file FloatRect.h.

◆ x()

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

Definition at line 76 of file FloatRect.h.

◆ y()

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-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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