Graphic Calculator: FIDocalcus
Проект трёх первокурсников (по инженерному практикуму в первом семестре) по созданию графического калькулятора на FLTK C++
Loading...
Searching...
No Matches
Graph_lib::Line_style Struct Reference

#include <Shapes.h>

Public Types

enum  Line_style_type {
  solid = FL_SOLID , dash = FL_DASH , dot = FL_DOT , dashdot = FL_DASHDOT ,
  dashdotdot = FL_DASHDOTDOT
}
 

Public Member Functions

 Line_style (Line_style_type _points, pix_amount _width)
 
 Line_style (Line_style_type _s)
 
 Line_style (unsigned int _s)
 
unsigned int style () const
 
pix_amount w () const
 

Private Attributes

unsigned int s
 
pix_amount width
 

Member Enumeration Documentation

◆ Line_style_type

Enumerator
solid 
dash 
dot 
dashdot 
dashdotdot 
77 {
78 solid = FL_SOLID, // -------
79 dash = FL_DASH, // - - - -
80 dot = FL_DOT, // .......
81 dashdot = FL_DASHDOT, // - . - .
82 dashdotdot = FL_DASHDOTDOT, // -..-..
83 };
W & reference_to(void *ptr_wid)
Definition Widgets.h:16
@ dashdotdot
Definition Shapes.h:82
@ dash
Definition Shapes.h:79
@ dot
Definition Shapes.h:80
@ solid
Definition Shapes.h:78
@ dashdot
Definition Shapes.h:81

Constructor & Destructor Documentation

◆ Line_style() [1/3]

Graph_lib::Line_style::Line_style ( Line_style_type _s)
inline
85: s{_s}, width{0} {}
pix_amount width
Definition Shapes.h:104
unsigned int s
Definition Shapes.h:103

◆ Line_style() [2/3]

Graph_lib::Line_style::Line_style ( Line_style_type _points,
pix_amount _width )
inline
88 : s{_points}, width{_width} {}

◆ Line_style() [3/3]

Graph_lib::Line_style::Line_style ( unsigned int _s)
inline
90: s{_s}, width{0} {}

Member Function Documentation

◆ style()

unsigned int Graph_lib::Line_style::style ( ) const
inline
96{ return s; }
Here is the caller graph for this function:

◆ w()

pix_amount Graph_lib::Line_style::w ( ) const
inline
94{ return width; }
Here is the caller graph for this function:

Member Data Documentation

◆ s

unsigned int Graph_lib::Line_style::s
private

◆ width

pix_amount Graph_lib::Line_style::width
private

The documentation for this struct was generated from the following file: