src/ccstruct/polyblk.cpp
ScrollView::Color POLY_BLOCK::ColorForPolyBlockType(PolyBlockType type) {
  // Keep kPBColors in sync with PolyBlockType.
  const ScrollView::Color kPBColors[PT_COUNT] = {
      ScrollView::WHITE,       // Type is not yet known. Keep as the 1st element.
      ScrollView::BLUE,        // Text that lives inside a column.
      ScrollView::CYAN,        // Text that spans more than one column.
      ScrollView::MEDIUM_BLUE, // Text that is in a cross-column pull-out
                               // region.
      ScrollView::AQUAMARINE,  // Partition belonging to an equation region.
      ScrollView::SKY_BLUE,    // Partition belonging to an inline equation
                               // region.
      ScrollView::MAGENTA,     // Partition belonging to a table region.
      ScrollView::GREEN,       // Text-line runs vertically.
      ScrollView::LIGHT_BLUE,  // Text that belongs to an image.
      ScrollView::RED,         // Image that lives inside a column.
      ScrollView::YELLOW,      // Image that spans more than one column.
      ScrollView::ORANGE,      // Image in a cross-column pull-out region.
      ScrollView::BROWN,       // Horizontal Line.
      ScrollView::DARK_GREEN,  // Vertical Line.
      ScrollView::GREY         // Lies outside of any column.
  };
  if (type < PT_COUNT) {
    return kPBColors[type];
  }
  return ScrollView::WHITE;
}
/// Returns a color to draw the given type.
Returns a color to draw the given type.
Returns a color to draw the given type .
ScrollView::Color POLY_BLOCK::ColorForPolyBlockType(PolyBlockType type) {
  const ScrollView::Color kPBColors[PT_COUNT] = {
      ScrollView::WHITE,       
      ScrollView::BLUE,        
      ScrollView::CYAN,        
      ScrollView::MEDIUM_BLUE, 
      ScrollView::AQUAMARINE,  
      ScrollView::SKY_BLUE,    
      ScrollView::MAGENTA,     
      ScrollView::GREEN,       
      ScrollView::LIGHT_BLUE,  
      ScrollView::RED,         
      ScrollView::YELLOW,      
      ScrollView::ORANGE,      
      ScrollView::BROWN,       
      ScrollView::DARK_GREEN,  
      ScrollView::GREY         
  };
  if (type < PT_COUNT) {
    return kPBColors[type];
  }
  return ScrollView::WHITE;
}
ScrollView :: Color POLY_BLOCK :: ColorForPolyBlockType ( PolyBlockType type ) { const ScrollView :: Color kPBColors [ PT_COUNT ] = { ScrollView :: WHITE , ScrollView :: BLUE , ScrollView :: CYAN , ScrollView :: MEDIUM_BLUE , ScrollView :: AQUAMARINE , ScrollView :: SKY_BLUE , ScrollView :: MAGENTA , ScrollView :: GREEN , ScrollView :: LIGHT_BLUE , ScrollView :: RED , ScrollView :: YELLOW , ScrollView :: ORANGE , ScrollView :: BROWN , ScrollView :: DARK_GREEN , ScrollView :: GREY } ; if ( type < PT_COUNT ) { return kPBColors [ type ] ; } return ScrollView :: WHITE ; }
Returns a color to draw the given type.
Returns a color to draw the given type .
// Keep kPBColors in sync with PolyBlockType. // Type is not yet known. Keep as the 1st element. // Text that lives inside a column. // Text that spans more than one column. // Text that is in a cross-column pull-out // region. // Partition belonging to an equation region. // Partition belonging to an inline equation // region. // Partition belonging to a table region. // Text-line runs vertically. // Text that belongs to an image. // Image that lives inside a column. // Image that spans more than one column. // Image in a cross-column pull-out region. // Horizontal Line. // Vertical Line. // Lies outside of any column.