Welcome to mirror list, hosted at ThFree Co, Russian Federation.

font_desc.hpp « graphics - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4ea666e6d5e0198029633d478998dfc368646a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "color.hpp"

namespace graphics
{
  struct FontDesc
  {
    int m_size;
    graphics::Color m_color;
    bool m_isMasked;
    graphics::Color m_maskColor;

    FontDesc(int size = -1, graphics::Color const & color = graphics::Color(0, 0, 0, 255),
             bool isMasked = false, graphics::Color const & maskColor = graphics::Color(255, 255, 255, 255));

    void SetRank(double rank);
    bool IsValid() const;

    bool operator != (FontDesc const & src) const;
    bool operator == (FontDesc const & src) const;
    bool operator < (FontDesc const & src) const;
    bool operator > (FontDesc const & src) const;

    static FontDesc const & defaultFont;
  };
}