Skip to content
Snippets Groups Projects
Select Git revision
  • ef83848c5821f68f049929795df615f2c57e8e22
  • master default protected
  • patches-4.14
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • alphashapes
  • relaying
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • fix_overlaps
  • 3115-issue-fix
  • 3023-Fillet2D-Update
  • 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

inputValue.h

Blame
  • inputValue.h 928 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.
    
    #ifndef INPUT_VALUE_H
    #define INPUT_VALUE_H
    
    #include <FL/Fl.H>
    #include <FL/Fl_Value_Input.H>
    
    // same as FL_Value_Input, but prints values in engineering notation
    
    class inputValue : public Fl_Value_Input {
    public:
      inputValue(int x, int y, int w, int h, const char *l = 0)
        : Fl_Value_Input(x, y, w, h, l)
      {
      }
      virtual int format(char *buffer) { return sprintf(buffer, "%g", value()); }
    };
    
    // same as inputValue, but forces the underlying FL_Value_Input to always accept
    // floats (whatever the step value)
    
    class inputValueFloat : public inputValue {
    private:
      static void new_input_cb(Fl_Widget *, void *);
    
    public:
      inputValueFloat(int x, int y, int w, int h, const char *l = 0);
      int handle(int event);
    };
    
    #endif