Skip to content
Snippets Groups Projects
Select Git revision
  • 88d91b7992485482273861c082f31a4c29e6bc98
  • master default protected
  • revert-ef4a3a4f
  • patch_releases_4_14
  • overlaps_tags_and_distributed_export
  • overlaps_tags_and_distributed_export_rebased
  • relaying
  • alphashapes
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

treeIcons.h

Blame
  • 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