Skip to content
Snippets Groups Projects
Select Git revision
  • d751e9fec91fed4f95d3c4495c7dc8760039db8a
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

gmsh.1

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    treeIcons.h 2.30 KiB
    // Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
    
    #ifndef TREE_ICONS_H
    #define TREE_ICONS_H
    
    #include <FL/Fl_Pixmap.H>
    
    #define TREE_ICON_RIGHT(col)                                                   \
      "11 11 2 1", ". c None", col, "...@.......", "...@@......", "...@@@.....",   \
        "...@@@@....", "...@@@@@...", "...@@@@@@..", "...@@@@@...", "...@@@@....", \
        "...@@@.....", "...@@......", "...@......."
    
    #define TREE_ICON_DOWN(col)                                                    \
      "11 11 2 1", ".  c None", col, "...........", "...........", "...........",  \
        "@@@@@@@@@@@", ".@@@@@@@@@.", "..@@@@@@@..", "...@@@@@...", "....@@@....", \
        ".....@.....", "...........", "..........."
    
    #define TREE_ICON_PLUS(col)                                                    \
      "11 11 3 1", col, "# c #323232", "@ c #000000", "###########",               \
        "#.........#", "#.........#", "#....@....#", "#....@....#", "#..@@@@@..#", \
        "#....@....#", "#....@....#", "#.........#", "#.........#", "###########"
    
    #define TREE_ICON_MINUS(col)                                                   \
      "11 11 3 1", col, "#	c #323232", "@	c #000000", "###########",         \
        "#.........#", "#.........#", "#.........#", "#.........#", "#..@@@@@..#", \
        "#.........#", "#.........#", "#.........#", "#.........#", "###########"
    
    #if defined(__APPLE__)
    static const char *const open_xpm_light[] = {TREE_ICON_RIGHT("@ c #444444")};
    static const char *const close_xpm_light[] = {TREE_ICON_DOWN("@ c #444444")};
    static const char *const open_xpm_dark[] = {TREE_ICON_RIGHT("@ c #222222")};
    static const char *const close_xpm_dark[] = {TREE_ICON_DOWN("@ c #222222")};
    #else
    static const char *const open_xpm_light[] = {TREE_ICON_PLUS(". c #fefefe")};
    static const char *const close_xpm_light[] = {TREE_ICON_MINUS(". c #fefefe")};
    static const char *const open_xpm_dark[] = {TREE_ICON_PLUS(". c #bbbbbb")};
    static const char *const close_xpm_dark[] = {TREE_ICON_MINUS(". c #bbbbbb")};
    #endif
    
    static Fl_Pixmap open_pixmap_light(open_xpm_light);
    static Fl_Pixmap close_pixmap_light(close_xpm_light);
    static Fl_Pixmap open_pixmap_dark(open_xpm_dark);
    static Fl_Pixmap close_pixmap_dark(close_xpm_dark);
    
    #endif