star
UpdateStar(fFlurryInfo, fFlurryInfo->star);
fFlurryInfo->star = (Star*)malloc(sizeof(Star));
InitStar(fFlurryInfo->star);
fFlurryInfo->star->rotSpeed = 1.0;
free(fFlurryInfo->star);
Star *star;
s->old[i] = info->star->position[i];
float sx = info->star->position[0];
float sy = info->star->position[1];
float sz = info->star->position[2];
for (int star = 0; star <= 5; star++)
userRatingSummary->SetRatingByStar(star, fRatingCountByStar[star]);
UserRatingSummaryBuilder::AddRatingByStar(int star, int ratingCount)
if (star < RATING_MISSING_STAR || star > 5) {
HDERROR("bad star %" B_PRId32 " in builder", star);
if (!fSource.IsSet() || fSource->RatingCountByStar(star) != ratingCount) {
if (star == RATING_MISSING_STAR)
fRatingCountByStar[star] = ratingCount;
UserRatingSummary::RatingCountByStar(int star) const
if (star == RATING_MISSING_STAR)
if (star >= 0 && star <= 5)
return fRatingCountByStar[star];
UserRatingSummary::SetRatingByStar(int star, int ratingCount)
if (star == RATING_MISSING_STAR)
if (star < RATING_MISSING_STAR || star > 5) {
HDERROR("bad star %" B_PRId32, star);
fRatingCountByStar[star] = ratingCount;
int RatingCountByStar(int star) const;
void SetRatingByStar(int star, int ratingCount);
AddRatingByStar(int star, int ratingCount);
const BBitmap* star;
star = SharedIcons::IconStarGrey16Scaled()->Bitmap();
star = SharedIcons::IconStarBlue16Scaled()->Bitmap();
if (star == NULL) {
Draw(target, at, value, star);
RatingUtils::Draw(BView* target, BPoint at, float value, const BBitmap* star)
if (star == NULL) {
RatingStarsMetrics metrics(star->Bounds().Size());
target->DrawBitmap(star, rect.LeftTop() + metrics.LocationOfStarAtIndex(i));
const BBitmap* star);
bool ProjectStar(star *s, geometry *geo);
bool CheckClipping(star *s, buffer *buf, bool reset_clipping);
void DrawStar(star *s, buffer *buf);
void EraseStar(star *s, buffer *buf);
bool ProjectStar(star *s, geometry *geo)
bool CheckClipping(star *s, buffer *buf, bool reset_clipping)
void DrawStar(star *s, buffer *buf)
void EraseStar(star *s, buffer *buf)
star *s;
star *s;
star *list;
star *list;
star *s;
ChartWindow::FillStarList(star *list, int32 count)
star *s;
fStars.list = (star*)malloc(sizeof(star)*STAR_DENSITY_MAX);
fSpecials.list = (star*)malloc(sizeof(star)*SPECIAL_COUNT_MAX);
void FillStarList(star *list, int32 count);
star *s;
star *s;
star_list = (star*)malloc(sizeof(star)*star_count_max);
star *star_list;