C# Class Hyena.Gui.RatingRenderer

Show file Open project: GNOME/hyena Class Usage Examples

Public Properties

Property Type Description
ypad int

Public Methods

Method Description
ClampValue ( int value ) : int
RatingFromPosition ( Gdk area, double x ) : int
RatingRenderer ( ) : System
Render ( Context cr, Gdk area, Color color, bool showEmptyStars, bool isHovering, int hoverValue, double fillOpacity, double hoverFillOpacity, double strokeOpacity ) : void

Protected Methods

Method Description
ComputePosition ( Gdk area, double &x, double &y ) : void

Private Methods

Method Description
Clamp ( int min, int max, int value ) : int

Method Details

ClampValue() public method

public ClampValue ( int value ) : int
value int
return int

ComputePosition() protected method

protected ComputePosition ( Gdk area, double &x, double &y ) : void
area Gdk
x double
y double
return void

RatingFromPosition() public method

public RatingFromPosition ( Gdk area, double x ) : int
area Gdk
x double
return int

RatingRenderer() public method

public RatingRenderer ( ) : System
return System

Render() public method

public Render ( Context cr, Gdk area, Color color, bool showEmptyStars, bool isHovering, int hoverValue, double fillOpacity, double hoverFillOpacity, double strokeOpacity ) : void
cr Cairo.Context
area Gdk
color Color
showEmptyStars bool
isHovering bool
hoverValue int
fillOpacity double
hoverFillOpacity double
strokeOpacity double
return void

Property Details

ypad public property

public int ypad
return int