1998-10-19 21:39:29 +00:00
|
|
|
//
|
|
|
|
|
// Tile header file for the Fast Light Tool Kit (FLTK).
|
|
|
|
|
//
|
2023-10-16 08:53:18 +00:00
|
|
|
// Copyright 1998-2023 by Bill Spitzak and others.
|
1998-10-19 21:39:29 +00:00
|
|
|
//
|
2011-07-19 04:49:30 +00:00
|
|
|
// This library is free software. Distribution and use rights are outlined in
|
2014-10-19 14:17:47 +00:00
|
|
|
// the file "COPYING" which should have been included with this file. If this
|
2011-07-19 04:49:30 +00:00
|
|
|
// file is missing or damaged, see the license at:
|
|
|
|
|
//
|
2020-07-01 16:03:10 +00:00
|
|
|
// https://www.fltk.org/COPYING.php
|
1998-10-19 21:39:29 +00:00
|
|
|
//
|
2020-07-01 16:03:10 +00:00
|
|
|
// Please see the following page on how to report bugs and issues:
|
2005-04-16 00:13:17 +00:00
|
|
|
//
|
2020-07-01 16:03:10 +00:00
|
|
|
// https://www.fltk.org/bugs.php
|
1998-10-19 21:39:29 +00:00
|
|
|
//
|
1998-10-06 18:21:25 +00:00
|
|
|
|
|
|
|
|
#ifndef Fl_Tile_H
|
|
|
|
|
#define Fl_Tile_H
|
|
|
|
|
|
|
|
|
|
#include "Fl_Group.H"
|
|
|
|
|
|
2014-10-19 14:17:47 +00:00
|
|
|
/*
|
|
|
|
|
The Fl_Tile class lets you resize its children by dragging
|
|
|
|
|
the border between them.
|
2008-09-14 15:45:27 +00:00
|
|
|
*/
|
2014-10-19 14:17:47 +00:00
|
|
|
|
2002-08-14 16:49:38 +00:00
|
|
|
class FL_EXPORT Fl_Tile : public Fl_Group {
|
1998-10-06 18:21:25 +00:00
|
|
|
public:
|
2022-12-30 18:14:36 +00:00
|
|
|
int handle(int event) FL_OVERRIDE;
|
2016-05-09 11:29:59 +00:00
|
|
|
Fl_Tile(int X, int Y, int W, int H, const char *L=0);
|
2022-12-30 18:14:36 +00:00
|
|
|
void resize(int X, int Y, int W, int H) FL_OVERRIDE;
|
2023-10-16 08:53:18 +00:00
|
|
|
virtual void move_intersection(int oldx, int oldy, int newx, int newy);
|
2023-02-10 15:27:42 +00:00
|
|
|
FL_DEPRECATED("in 1.4.0 - use move_intersection(p) instead",
|
2023-10-16 08:53:18 +00:00
|
|
|
void position(int oldx, int oldy, int newx, int newy)) { move_intersection(oldx, oldy, newx, newy); }
|
2023-02-02 19:54:19 +00:00
|
|
|
void position(int x, int y) { Fl_Group::position(x, y); }
|
2023-10-16 08:53:18 +00:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
int cursor_; ///< current cursor index (0..3)
|
|
|
|
|
Fl_Cursor *cursors_; ///< points at the array of 4 cursors (may be overridden)
|
|
|
|
|
|
|
|
|
|
/** Returns the cursor for cursor index n.
|
|
|
|
|
\see Fl_Tile::set_cursor(int)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
Fl_Cursor cursor(int n) {
|
|
|
|
|
return cursors_[n];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void set_cursor(int n); // set one of n (0..3) cursors
|
1998-10-06 18:21:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|