FLTK
Fl_Menu_Button.H
1
//
2
// Menu button header file for the Fast Light Tool Kit (FLTK).
3
//
4
// Copyright 1998-2010 by Bill Spitzak and others.
5
//
6
// This library is free software. Distribution and use rights are outlined in
7
// the file "COPYING" which should have been included with this file. If this
8
// file is missing or damaged, see the license at:
9
//
10
// https://www.fltk.org/COPYING.php
11
//
12
// Please see the following page on how to report bugs and issues:
13
//
14
// https://www.fltk.org/bugs.php
15
//
16
17
/* \file
18
Fl_Menu_Button widget . */
19
20
#ifndef Fl_Menu_Button_H
21
#define Fl_Menu_Button_H
22
23
#include "Fl_Menu_.H"
24
56
class
FL_EXPORT
Fl_Menu_Button
:
public
Fl_Menu_
{
57
protected
:
58
void
draw
();
59
public
:
66
enum
popup_buttons
{POPUP1 = 1,
67
POPUP2
,
68
POPUP12
,
69
POPUP3
,
70
POPUP13
,
71
POPUP23
,
72
POPUP123
73
};
74
int
handle
(
int
);
75
const
Fl_Menu_Item
* popup();
76
Fl_Menu_Button
(
int
,
int
,
int
,
int
,
const
char
* =0);
77
};
78
79
#endif
Fl_Menu_Button::POPUP13
pops up with the mouse 1st or 3rd buttons.
Definition:
Fl_Menu_Button.H:70
Fl_Widget::handle
virtual int handle(int event)
Handles the specified event.
Definition:
Fl_Widget.cxx:102
Fl_Menu_Button
This is a button that when pushed pops up a menu (or hierarchy of menus) defined by an array of Fl_Me...
Definition:
Fl_Menu_Button.H:56
Fl_Widget::draw
virtual void draw()=0
Draws the widget.
Fl_Menu_Button::popup_buttons
popup_buttons
indicate what mouse buttons pop up the menu.
Definition:
Fl_Menu_Button.H:66
Fl_Menu_Button::POPUP12
pops up with the mouse 1st or 2nd buttons.
Definition:
Fl_Menu_Button.H:68
Fl_Menu_Button::POPUP23
pops up with the mouse 2nd or 3rd buttons.
Definition:
Fl_Menu_Button.H:71
Fl_Menu_Button::POPUP3
pops up with the mouse 3rd button.
Definition:
Fl_Menu_Button.H:69
Fl_Menu_Item
The Fl_Menu_Item structure defines a single menu item that is used by the Fl_Menu_ class...
Definition:
Fl_Menu_Item.H:107
Fl_Menu_Button::POPUP2
pops up with the mouse 2nd button.
Definition:
Fl_Menu_Button.H:67
Fl_Menu_
Base class of all widgets that have a menu in FLTK.
Definition:
Fl_Menu_.H:53
© 1998-2020 by Bill Spitzak and others.