KGAPI2::Drive::Drives::BackgroundImageFile

Search for usage in LXR

KGAPI2::Drive::Drives::BackgroundImageFile Class Reference

#include <drives.h>

Public Member Functions

 BackgroundImageFile (const BackgroundImageFile &other)
 
QString id () const
 
bool operator!= (const BackgroundImageFile &other) const
 
bool operator== (const BackgroundImageFile &other) const
 
void setId (const QString &id) const
 
void setWidth (float width) const
 
void setXCoordinate (float xCoordinate) const
 
void setYCoordinate (float yCoordinate) const
 
float width () const
 
float xCoordinate () const
 
float yCoordinate () const
 

Detailed Description

Drives::BackgroundImageFile holds the structure used for backgroundImageFile property.

Definition at line 288 of file drives.h.

Member Function Documentation

QString Drives::BackgroundImageFile::id ( ) const

Returns the ID of an image file in Google Drive to use for the background image.

Definition at line 286 of file drives.cpp.

void Drives::BackgroundImageFile::setId ( const QString id) const

Sets the ID of an image file in Google Drive to use for the background image.

Parameters
id

Definition at line 291 of file drives.cpp.

void Drives::BackgroundImageFile::setWidth ( float  width) const

Sets the width of the cropped image in the closed range of 0 to 1.

This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.

Parameters
width

Definition at line 321 of file drives.cpp.

void Drives::BackgroundImageFile::setXCoordinate ( float  xCoordinate) const

Returns the X coordinate of the upper left corner of the cropping area in the background image.

This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.

Parameters
xCoordinate

Definition at line 301 of file drives.cpp.

void Drives::BackgroundImageFile::setYCoordinate ( float  yCoordinate) const

Sets the Y coordinate of the upper left corner of the cropping area in the background image.

This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.

Parameters
yCoordinate

Definition at line 311 of file drives.cpp.

float Drives::BackgroundImageFile::width ( ) const

Returns the width of the cropped image in the closed range of 0 to 1.

This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.

Definition at line 316 of file drives.cpp.

float Drives::BackgroundImageFile::xCoordinate ( ) const

Returns the X coordinate of the upper left corner of the cropping area in the background image.

This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.

Definition at line 296 of file drives.cpp.

float Drives::BackgroundImageFile::yCoordinate ( ) const

Returns the Y coordinate of the upper left corner of the cropping area in the background image.

This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.

Definition at line 306 of file drives.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Jun 18 2021 23:10:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.