vdk 2.4.0
Main Page
Related Pages
Classes
Files
File List
vdk
widcontain.h
1
/*
2
* ===========================
3
* VDK Visual Develeopment Kit
4
* Version 0.4
5
* Revision 0.4.1
6
* October 1998
7
* ===========================
8
*
9
* Copyright (C) 1998, Mario Motta
10
* Developed by Mario Motta <mmotta@guest.net>
11
*
12
* This library is free software; you can redistribute it and/or
13
* modify it under the terms of the GNU Library General Public
14
* License as published by the Free Software Foundation; either
15
* version 2 of the License, or (at your option) any later version.
16
*
17
* This library is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* Library General Public License for more details.
21
*
22
* You should have received a copy of the GNU Library General Public
23
* License along with this library; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25
* 02111-1307, USA.
26
*/
27
28
#ifndef WIDCONTAIN_H
29
#define WIDCONTAIN_H
30
#include <vdk/vdkobj.h>
39
class
VDKObjectContainer
:
public
VDKObject
40
{
41
public
:
42
VDKObjectContainer
(
VDKForm
* owner);
43
virtual
~
VDKObjectContainer
() {}
48
int
BorderWidth
(
int
w = -1)
49
{
50
if
(w>=0)
51
gtk_container_set_border_width (GTK_CONTAINER (
widget
),w);
52
return
GTK_CONTAINER (
widget
)->border_width;
53
}
57
virtual
void
Add
(
VDKObject
* obj,
int
justify = l_justify,
58
int
expand = TRUE,
int
fill = TRUE ,
int
padding = 0);
63
void
RemoveObject
(
VDKObject
* obj) { obj->
Destroy
(); }
82
virtual
void
RemoveObjectFromContainer
(
VDKObject
* obj);
86
void
RemoveObjects
();
91
VDKObject
*
FindTag
(
int
tag);
95
void
ForEachDo
(
void
(*action)(
VDKObject
*));
96
/* !
97
Select those contained objects that satisfy to user defined
98
condition.
99
\param list an ItemList filled with all object addresses
100
that satisfy condition-
101
\condition an user defined function invoked with each object
102
as param, function must return either true (satisfy) or false
103
value.
104
*/
105
void
Select(
ItemList
* list,
bool
(*condition)(
VDKObject
*));
106
107
};
108
#endif
109
Generated on Wed Mar 12 2014 15:03:43 for vdk 2.4.0 by
1.8.1.2