SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
MFXCheckableButton.h
Go to the documentation of this file.
1
/****************************************************************************/
7
// missing_desc
8
/****************************************************************************/
9
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
10
// Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
11
/****************************************************************************/
12
//
13
// This file is part of SUMO.
14
// SUMO is free software: you can redistribute it and/or modify
15
// it under the terms of the GNU General Public License as published by
16
// the Free Software Foundation, either version 3 of the License, or
17
// (at your option) any later version.
18
//
19
/****************************************************************************/
20
#ifndef MFXCheckableButton_h
21
#define MFXCheckableButton_h
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#ifdef _MSC_VER
28
#include <
windows_config.h
>
29
#else
30
#include <
config.h
>
31
#endif
32
33
#include <fx.h>
34
35
class
MFXCheckableButton
:
public
FXButton
{
36
FXDECLARE(
MFXCheckableButton
)
37
public
:
38
MFXCheckableButton
(
bool
amChecked
, FXComposite* p,
const
FXString& text,
39
FXIcon* ic = NULL,
FXObject
* tgt = NULL, FXSelector sel = 0,
40
FXuint opts = BUTTON_NORMAL,
41
FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0,
42
FXint pl = DEFAULT_PAD, FXint pr = DEFAULT_PAD, FXint pt = DEFAULT_PAD, FXint pb = DEFAULT_PAD);
43
~MFXCheckableButton
();
44
bool
amChecked
()
const
;
45
void
setChecked
(
bool
val);
46
long
onPaint
(
FXObject
*, FXSelector,
void
*);
47
long
onUpdate
(
FXObject
*, FXSelector,
void
*);
48
49
50
private
:
51
void
buildColors
();
52
void
setColors
();
53
54
private
:
55
bool
myAmChecked
;
56
FXColor
myBackColor
,
myDarkColor
,
myHiliteColor
,
myShadowColor
;
57
58
bool
myAmInitialised
;
59
60
protected
:
61
MFXCheckableButton
() { }
62
};
63
64
65
#endif
66
67
/****************************************************************************/
68
build
buildd
sumo-0.17.1~dfsg
src
utils
foxtools
MFXCheckableButton.h
Generated on Sun Jun 16 2013 17:30:16 for SUMO - Simulation of Urban MObility by
1.8.3.1