webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Public Attributes | List of all members
WebCore::ViewportArguments Struct Reference

#include <ViewportArguments.h>

Public Types

enum  Type {
  Implicit, ViewportMeta, CSSDeviceAdaptation, Implicit,
  ViewportMeta, CSSDeviceAdaptation
}
 
enum  {
  ValueAuto = -1, ValueDeviceWidth = -2, ValueDeviceHeight = -3, ValuePortrait = -4,
  ValueLandscape = -5
}
 
enum  Type {
  Implicit, ViewportMeta, CSSDeviceAdaptation, Implicit,
  ViewportMeta, CSSDeviceAdaptation
}
 
enum  {
  ValueAuto = -1, ValueDeviceWidth = -2, ValueDeviceHeight = -3, ValuePortrait = -4,
  ValueLandscape = -5
}
 

Public Member Functions

 ViewportArguments (Type type=Implicit)
 
ViewportAttributes resolve (const FloatSize &initialViewportSize, const FloatSize &deviceSize, int defaultWidth) const
 
bool operator== (const ViewportArguments &other) const
 
bool operator!= (const ViewportArguments &other) const
 
 ViewportArguments (Type type=Implicit)
 
ViewportAttributes resolve (const FloatSize &initialViewportSize, const FloatSize &deviceSize, int defaultWidth) const
 
bool operator== (const ViewportArguments &other) const
 
bool operator!= (const ViewportArguments &other) const
 

Public Attributes

enum WebCore::ViewportArguments::Type type
 
float width { ValueAuto }
 
float minWidth { ValueAuto }
 
float maxWidth { ValueAuto }
 
float height { ValueAuto }
 
float minHeight { ValueAuto }
 
float maxHeight { ValueAuto }
 
float zoom { ValueAuto }
 
float minZoom { ValueAuto }
 
float maxZoom { ValueAuto }
 
float userZoom { ValueAuto }
 
float orientation { ValueAuto }
 
float shrinkToFit { ValueAuto }
 
bool widthWasExplicit { false }
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ValueAuto 
ValueDeviceWidth 
ValueDeviceHeight 
ValuePortrait 
ValueLandscape 

◆ anonymous enum

anonymous enum
Enumerator
ValueAuto 
ValueDeviceWidth 
ValueDeviceHeight 
ValuePortrait 
ValueLandscape 

◆ Type [1/2]

Enumerator
Implicit 
ViewportMeta 
CSSDeviceAdaptation 
Implicit 
ViewportMeta 
CSSDeviceAdaptation 

◆ Type [2/2]

Enumerator
Implicit 
ViewportMeta 
CSSDeviceAdaptation 
Implicit 
ViewportMeta 
CSSDeviceAdaptation 

Constructor & Destructor Documentation

◆ ViewportArguments() [1/2]

WebCore::ViewportArguments::ViewportArguments ( Type  type = Implicit)
inlineexplicit

◆ ViewportArguments() [2/2]

WebCore::ViewportArguments::ViewportArguments ( Type  type = Implicit)
inlineexplicit

Member Function Documentation

◆ operator!=() [1/2]

bool WebCore::ViewportArguments::operator!= ( const ViewportArguments other) const
inline

◆ operator!=() [2/2]

bool WebCore::ViewportArguments::operator!= ( const ViewportArguments other) const
inline

◆ operator==() [1/2]

bool WebCore::ViewportArguments::operator== ( const ViewportArguments other) const
inline

◆ operator==() [2/2]

bool WebCore::ViewportArguments::operator== ( const ViewportArguments other) const
inline

◆ resolve() [1/2]

ViewportAttributes WebCore::ViewportArguments::resolve ( const FloatSize initialViewportSize,
const FloatSize deviceSize,
int  defaultWidth 
) const

◆ resolve() [2/2]

ViewportAttributes WebCore::ViewportArguments::resolve ( const FloatSize initialViewportSize,
const FloatSize deviceSize,
int  defaultWidth 
) const

Member Data Documentation

◆ height

float WebCore::ViewportArguments::height { ValueAuto }

◆ maxHeight

float WebCore::ViewportArguments::maxHeight { ValueAuto }

◆ maxWidth

float WebCore::ViewportArguments::maxWidth { ValueAuto }

◆ maxZoom

float WebCore::ViewportArguments::maxZoom { ValueAuto }

◆ minHeight

float WebCore::ViewportArguments::minHeight { ValueAuto }

◆ minWidth

float WebCore::ViewportArguments::minWidth { ValueAuto }

◆ minZoom

float WebCore::ViewportArguments::minZoom { ValueAuto }

◆ orientation

float WebCore::ViewportArguments::orientation { ValueAuto }

◆ shrinkToFit

float WebCore::ViewportArguments::shrinkToFit { ValueAuto }

◆ type

enum WebCore::ViewportArguments::Type WebCore::ViewportArguments::type

◆ userZoom

float WebCore::ViewportArguments::userZoom { ValueAuto }

◆ width

float WebCore::ViewportArguments::width { ValueAuto }

◆ widthWasExplicit

bool WebCore::ViewportArguments::widthWasExplicit { false }

◆ zoom

float WebCore::ViewportArguments::zoom { ValueAuto }

The documentation for this struct was generated from the following files: