Photon 1.0.0
Loading...
Searching...
No Matches
litehtml::media_feature Struct Reference

#include <media_query.h>

Public Member Functions

bool verify_and_convert_units (string_id syntax, css_token val[2]=0, css_token val2[2]=0, shared_ptr< document > doc=0)
 
bool compare (int x) const
 
bool compare (float x) const
 
bool check (const media_features &features) const
 

Public Attributes

string name
 
float value = 0
 
float value2 = 0
 
short op = 0
 
short op2 = 0
 

Member Function Documentation

◆ check()

bool litehtml::media_feature::check ( const media_features features) const

◆ compare() [1/2]

bool litehtml::media_feature::compare ( float  x) const

◆ compare() [2/2]

bool litehtml::media_feature::compare ( int  x) const
inline

◆ verify_and_convert_units()

bool litehtml::media_feature::verify_and_convert_units ( string_id  syntax,
css_token  val[2] = 0,
css_token  val2[2] = 0,
shared_ptr< document doc = 0 
)

Member Data Documentation

◆ name

string litehtml::media_feature::name

◆ op

short litehtml::media_feature::op = 0

◆ op2

short litehtml::media_feature::op2 = 0

◆ value

float litehtml::media_feature::value = 0

◆ value2

float litehtml::media_feature::value2 = 0

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