Skip to content
Snippets Groups Projects
Select Git revision
  • a36eef78824ebfcf6c100f877cdf0f7b7d5ba6de
  • master default protected
  • 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
  • fix_overlaps
  • 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

gmm_modified_gram_schmidt.h

Blame
  • drawContextFltkCairo.h 990 B
    // 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.
    //
    // Contributed by Jonathan Lambrechts
    
    #ifndef DRAW_CONTEXT_FLTK_CAIRO_H
    #define DRAW_CONTEXT_FLTK_CAIRO_H
    
    #include "GmshConfig.h"
    
    #if defined(HAVE_CAIRO)
    #include "drawContextFltk.h"
    
    typedef struct _cairo_surface cairo_surface_t;
    typedef struct _cairo cairo_t;
    
    class drawContextFltkCairo : public drawContextFltk {
      class queueString;
      queueString *_queue;
      cairo_surface_t *_surface;
      cairo_t *_cr;
      int _currentFontId;
      int _currentFontSize;
    
    public:
      void draw();
      drawContextFltkCairo();
      ~drawContextFltkCairo();
      double getStringWidth(const char *str);
      // int getStringHeight();
      // int getStringDescent();
      void flushString();
      void drawString(const char *str);
      void setFont(int fontid, int fontsize);
      std::string getName() { return "Cairo"; }
    };
    
    #endif
    
    #endif