protected RatingEntry (int rating, RatingRenderer renderer) { this.renderer = renderer; this.renderer.Value = rating; CanFocus = true; Name = "GtkEntry"; }
public RatingEntry (int rating) { renderer = new RatingRenderer (); renderer.Value = rating; CanFocus = true; Name = "GtkEntry"; }
private void RenderTrackRating (Cairo.Context cr, TrackInfo track) { RatingRenderer rating_renderer = new RatingRenderer (); rating_renderer.Value = track.Rating; int x = track_info_alloc.X + track_info_alloc.Width + 4 * rating_renderer.Xpad - rating_renderer.Width; int y = track_info_alloc.Y + track_info_alloc.Height; track_info_alloc.Height += rating_renderer.Height; Gdk.Rectangle area = new Gdk.Rectangle (x, y, rating_renderer.Width, rating_renderer.Height); rating_renderer.Render (cr, area, TextColor, false, false, rating_renderer.Value, 0.8, 0.8, 0.35); }