Flv_CStyle.cc
1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// ======================================================================
// File: Flv_CStyle.cxx - Flv_CStyle implementation
// Program: Flv_Style - FLTK Virtual List/Table Styles Widget
// Version: 0.1.0
// Started: 11/21/99
//
// Copyright (C) 1999 Laurence Charlton
//
// Description:
// The complex styles will be used in the complex table. Should be basically
// the same as Flv_Style with x,y positional data.
// ======================================================================
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef IN_GIAC
#include <giac/first.h>
#else
#include "first.h"
#endif
#ifdef HAVE_LIBFLTK
#include "Flv_CStyle.H"
#include <stdio.h>
#ifdef WIN32
#include <memory.h>
#else
#include <memory.h>
#endif
#define ADDSIZE 10
// **********************************************************************
// Routines for Flv_CStyle
//
// Defines the additional properties for a complex layout table.
// A complex layout table allows the placement of cells (columns) within
// a row. The overall layout is used to determine minimum row heights/
// widths, etc.
// **********************************************************************
Flv_CStyle::Flv_CStyle() :
Flv_Style()
{
vx = 0;
vy = 0;
width(0);
height(0);
}
// Set x
int Flv_CStyle::x(int n)
{
if (n < 0)
n = 0;
return (vx = n);
}
// Set y
int Flv_CStyle::y(int n)
{
if (n < 0)
n = 0;
return (vy = n);
}
const Flv_CStyle &Flv_CStyle::operator=(const Flv_CStyle &n)
{
Flv_Style::operator=(n);
vx = n.vx;
vy = n.vy;
return *this;
}
#endif