ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
ScottPlot.PixelSize Struct Reference
Inheritance diagram for ScottPlot.PixelSize:
IEquatable

Public Member Functions

 PixelSize (float width, float height)
 
 PixelSize (double width, double height)
 
override string ToString ()
 
PixelRect ToPixelRect ()
 
PixelRect ToPixelRect (Pixel pixel, Alignment alignment)
 
bool Contains (PixelSize size)
 
PixelSize Max (PixelSize rect2)
 
bool Equals (PixelSize other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
PixelSize Expanded (PixelPadding pad)
 
PixelSize Contracted (PixelPadding pad)
 

Static Public Member Functions

static bool operator== (PixelSize a, PixelSize b)
 
static bool operator!= (PixelSize a, PixelSize b)
 

Public Attributes

readonly float Width
 
readonly float Height
 

Properties

float Area [get]
 
float Diagonal [get]
 
static PixelSize Zero [get]
 
static PixelSize NaN [get]
 
static PixelSize Infinity [get]
 

Constructor & Destructor Documentation

◆ PixelSize() [1/2]

ScottPlot.PixelSize.PixelSize ( float  width,
float  height 
)
inline

◆ PixelSize() [2/2]

ScottPlot.PixelSize.PixelSize ( double  width,
double  height 
)
inline

Member Function Documentation

◆ Contains()

bool ScottPlot.PixelSize.Contains ( PixelSize  size)
inline

◆ Contracted()

PixelSize ScottPlot.PixelSize.Contracted ( PixelPadding  pad)
inline

◆ Equals() [1/2]

override bool ScottPlot.PixelSize.Equals ( object?  obj)
inline

◆ Equals() [2/2]

bool ScottPlot.PixelSize.Equals ( PixelSize  other)
inline

◆ Expanded()

PixelSize ScottPlot.PixelSize.Expanded ( PixelPadding  pad)
inline

◆ GetHashCode()

override int ScottPlot.PixelSize.GetHashCode ( )
inline

◆ Max()

PixelSize ScottPlot.PixelSize.Max ( PixelSize  rect2)
inline

◆ operator!=()

static bool ScottPlot.PixelSize.operator!= ( PixelSize  a,
PixelSize  b 
)
inlinestatic

◆ operator==()

static bool ScottPlot.PixelSize.operator== ( PixelSize  a,
PixelSize  b 
)
inlinestatic

◆ ToPixelRect() [1/2]

PixelRect ScottPlot.PixelSize.ToPixelRect ( )
inline

◆ ToPixelRect() [2/2]

PixelRect ScottPlot.PixelSize.ToPixelRect ( Pixel  pixel,
Alignment  alignment 
)
inline

◆ ToString()

override string ScottPlot.PixelSize.ToString ( )
inline

Member Data Documentation

◆ Height

readonly float ScottPlot.PixelSize.Height

◆ Width

readonly float ScottPlot.PixelSize.Width

Property Documentation

◆ Area

float ScottPlot.PixelSize.Area
get

◆ Diagonal

float ScottPlot.PixelSize.Diagonal
get

◆ Infinity

PixelSize ScottPlot.PixelSize.Infinity
staticget

◆ NaN

PixelSize ScottPlot.PixelSize.NaN
staticget

◆ Zero

PixelSize ScottPlot.PixelSize.Zero
staticget

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