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

Public Member Functions

 PixelRect (Pixel center, float radius)
 Create a rectangle from the bounding box of a circle centered at center with radius radius
 
 PixelRect (Pixel corner1, Pixel corner2)
 Create a rectangle with edges at the given pixel positions. This constructor will rectify the points so rectangles will always have positive area.
 
 PixelRect (Pixel topLeftCorner, PixelSize size)
 Create a rectangle representing pixels on a screen.
 
 PixelRect (PixelOffset offset, PixelSize size)
 Create a rectangle representing pixels on a screen.
 
 PixelRect (Pixel topLeftCorner, float width, float height)
 Create a rectangle representing pixels on a screen.
 
 PixelRect (PixelSize size)
 Create a rectangle representing pixels on a screen.
 
 PixelRect (float width, float height)
 Create a rectangle representing pixels on a screen.
 
 PixelRect (PixelSize size, Pixel offset)
 Create a rectangle representing pixels on a screen.
 
 PixelRect (PixelSize size, PixelOffset offset)
 Create a rectangle representing pixels on a screen.
 
 PixelRect (float left, float right, float bottom, float top)
 Create a rectangle from the given edges. This constructor permits inverted rectangles with negative area.
 
 PixelRect (PixelRangeX xRange, PixelRangeY yRange)
 Create a pixel rectangle from two pixel ranges.
 
 PixelRect (IEnumerable< Pixel > pixels)
 
PixelRect WithPan (float x, float y)
 
override string ToString ()
 
SkiaSharp.SKRect ToSKRect ()
 
PixelRect Contract (float delta)
 
PixelRect Contract (float x, float y)
 
PixelRect Contract (PixelPadding padding)
 
PixelRect Expand (PixelRect other)
 
PixelRect Intersect (PixelRect other)
 Returns the intersection with another rectangle.
 
PixelRect Expand (PixelPadding pad)
 
PixelRect Expand (float delta)
 
PixelRect ExpandX (float x)
 
PixelRect ExpandY (float y)
 
PixelRect WithDelta (float x, float y)
 
PixelRect WithDelta (float x, float y, Alignment alignment)
 
bool Equals (PixelRect other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
bool Contains (Pixel px)
 
bool Contains (float x, float y)
 
bool ContainsX (float x)
 
bool ContainsY (float y)
 
Pixel GetAlignedPixel (Alignment alignment)
 
PixelRect WithOffset (PixelOffset offset)
 
PixelRect AlignedInside (PixelRect largerRect, Alignment alignment)
 Return the position of this rectangle aligned inside a larger one.
 
PixelRect AlignedInside (PixelRect largerRect, Alignment alignment, PixelPadding padding)
 Return the position of this rectangle aligned inside a larger one.
 
PixelRect Fraction (FractionRect frac)
 

Static Public Member Functions

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

Public Attributes

readonly float Left
 
readonly float Right
 
readonly float Bottom
 
readonly float Top
 

Properties

float HorizontalCenter [get]
 
float VerticalCenter [get]
 
float Width [get]
 
float Height [get]
 
bool HasArea [get]
 
Pixel TopLeft [get]
 
Pixel TopRight [get]
 
Pixel BottomLeft [get]
 
Pixel BottomRight [get]
 
Pixel LeftCenter [get]
 
Pixel RightCenter [get]
 
Pixel BottomCenter [get]
 
Pixel TopCenter [get]
 
Pixel Center [get]
 
PixelSize Size [get]
 
PixelLine BottomLine [get]
 
PixelLine TopLine [get]
 
PixelLine LeftLine [get]
 
PixelLine RightLine [get]
 
static PixelRect Zero [get]
 
static PixelRect NaN [get]
 

Constructor & Destructor Documentation

◆ PixelRect() [1/12]

ScottPlot.PixelRect.PixelRect ( Pixel  center,
float  radius 
)
inline

Create a rectangle from the bounding box of a circle centered at center with radius radius

◆ PixelRect() [2/12]

ScottPlot.PixelRect.PixelRect ( Pixel  corner1,
Pixel  corner2 
)
inline

Create a rectangle with edges at the given pixel positions. This constructor will rectify the points so rectangles will always have positive area.

◆ PixelRect() [3/12]

ScottPlot.PixelRect.PixelRect ( Pixel  topLeftCorner,
PixelSize  size 
)
inline

Create a rectangle representing pixels on a screen.

◆ PixelRect() [4/12]

ScottPlot.PixelRect.PixelRect ( PixelOffset  offset,
PixelSize  size 
)
inline

Create a rectangle representing pixels on a screen.

◆ PixelRect() [5/12]

ScottPlot.PixelRect.PixelRect ( Pixel  topLeftCorner,
float  width,
float  height 
)
inline

Create a rectangle representing pixels on a screen.

◆ PixelRect() [6/12]

ScottPlot.PixelRect.PixelRect ( PixelSize  size)
inline

Create a rectangle representing pixels on a screen.

◆ PixelRect() [7/12]

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

Create a rectangle representing pixels on a screen.

◆ PixelRect() [8/12]

ScottPlot.PixelRect.PixelRect ( PixelSize  size,
Pixel  offset 
)
inline

Create a rectangle representing pixels on a screen.

◆ PixelRect() [9/12]

ScottPlot.PixelRect.PixelRect ( PixelSize  size,
PixelOffset  offset 
)
inline

Create a rectangle representing pixels on a screen.

◆ PixelRect() [10/12]

ScottPlot.PixelRect.PixelRect ( float  left,
float  right,
float  bottom,
float  top 
)
inline

Create a rectangle from the given edges. This constructor permits inverted rectangles with negative area.

◆ PixelRect() [11/12]

ScottPlot.PixelRect.PixelRect ( PixelRangeX  xRange,
PixelRangeY  yRange 
)
inline

Create a pixel rectangle from two pixel ranges.

◆ PixelRect() [12/12]

ScottPlot.PixelRect.PixelRect ( IEnumerable< Pixel pixels)
inline

Member Function Documentation

◆ AlignedInside() [1/2]

PixelRect ScottPlot.PixelRect.AlignedInside ( PixelRect  largerRect,
Alignment  alignment 
)
inline

Return the position of this rectangle aligned inside a larger one.

◆ AlignedInside() [2/2]

PixelRect ScottPlot.PixelRect.AlignedInside ( PixelRect  largerRect,
Alignment  alignment,
PixelPadding  padding 
)
inline

Return the position of this rectangle aligned inside a larger one.

◆ Contains() [1/2]

bool ScottPlot.PixelRect.Contains ( float  x,
float  y 
)
inline

◆ Contains() [2/2]

bool ScottPlot.PixelRect.Contains ( Pixel  px)
inline

◆ ContainsX()

bool ScottPlot.PixelRect.ContainsX ( float  x)
inline

◆ ContainsY()

bool ScottPlot.PixelRect.ContainsY ( float  y)
inline

◆ Contract() [1/3]

PixelRect ScottPlot.PixelRect.Contract ( float  delta)
inline

◆ Contract() [2/3]

PixelRect ScottPlot.PixelRect.Contract ( float  x,
float  y 
)
inline

◆ Contract() [3/3]

PixelRect ScottPlot.PixelRect.Contract ( PixelPadding  padding)
inline

◆ Equals() [1/2]

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

◆ Equals() [2/2]

bool ScottPlot.PixelRect.Equals ( PixelRect  other)
inline

◆ Expand() [1/3]

PixelRect ScottPlot.PixelRect.Expand ( float  delta)
inline

◆ Expand() [2/3]

PixelRect ScottPlot.PixelRect.Expand ( PixelPadding  pad)
inline

◆ Expand() [3/3]

PixelRect ScottPlot.PixelRect.Expand ( PixelRect  other)
inline

◆ ExpandX()

PixelRect ScottPlot.PixelRect.ExpandX ( float  x)
inline

◆ ExpandY()

PixelRect ScottPlot.PixelRect.ExpandY ( float  y)
inline

◆ Fraction()

PixelRect ScottPlot.PixelRect.Fraction ( FractionRect  frac)
inline

◆ GetAlignedPixel()

Pixel ScottPlot.PixelRect.GetAlignedPixel ( Alignment  alignment)
inline

◆ GetHashCode()

override int ScottPlot.PixelRect.GetHashCode ( )
inline

◆ Intersect()

PixelRect ScottPlot.PixelRect.Intersect ( PixelRect  other)
inline

Returns the intersection with another rectangle.

Parameters
otherOther rectangle
Returns
Intersection rectangle

◆ operator!=()

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

◆ operator==()

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

◆ ToSKRect()

SkiaSharp.SKRect ScottPlot.PixelRect.ToSKRect ( )
inline

◆ ToString()

override string ScottPlot.PixelRect.ToString ( )
inline

◆ WithDelta() [1/2]

PixelRect ScottPlot.PixelRect.WithDelta ( float  x,
float  y 
)
inline

◆ WithDelta() [2/2]

PixelRect ScottPlot.PixelRect.WithDelta ( float  x,
float  y,
Alignment  alignment 
)
inline

◆ WithOffset()

PixelRect ScottPlot.PixelRect.WithOffset ( PixelOffset  offset)
inline

◆ WithPan()

PixelRect ScottPlot.PixelRect.WithPan ( float  x,
float  y 
)
inline

Member Data Documentation

◆ Bottom

readonly float ScottPlot.PixelRect.Bottom

◆ Left

readonly float ScottPlot.PixelRect.Left

◆ Right

readonly float ScottPlot.PixelRect.Right

◆ Top

readonly float ScottPlot.PixelRect.Top

Property Documentation

◆ BottomCenter

Pixel ScottPlot.PixelRect.BottomCenter
get

◆ BottomLeft

Pixel ScottPlot.PixelRect.BottomLeft
get

◆ BottomLine

PixelLine ScottPlot.PixelRect.BottomLine
get

◆ BottomRight

Pixel ScottPlot.PixelRect.BottomRight
get

◆ Center

Pixel ScottPlot.PixelRect.Center
get

◆ HasArea

bool ScottPlot.PixelRect.HasArea
get

◆ Height

float ScottPlot.PixelRect.Height
get

◆ HorizontalCenter

float ScottPlot.PixelRect.HorizontalCenter
get

◆ LeftCenter

Pixel ScottPlot.PixelRect.LeftCenter
get

◆ LeftLine

PixelLine ScottPlot.PixelRect.LeftLine
get

◆ NaN

PixelRect ScottPlot.PixelRect.NaN
staticget

◆ RightCenter

Pixel ScottPlot.PixelRect.RightCenter
get

◆ RightLine

PixelLine ScottPlot.PixelRect.RightLine
get

◆ Size

PixelSize ScottPlot.PixelRect.Size
get

◆ TopCenter

Pixel ScottPlot.PixelRect.TopCenter
get

◆ TopLeft

Pixel ScottPlot.PixelRect.TopLeft
get

◆ TopLine

PixelLine ScottPlot.PixelRect.TopLine
get

◆ TopRight

Pixel ScottPlot.PixelRect.TopRight
get

◆ VerticalCenter

float ScottPlot.PixelRect.VerticalCenter
get

◆ Width

float ScottPlot.PixelRect.Width
get

◆ Zero

PixelRect ScottPlot.PixelRect.Zero
staticget

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