7 More Discussions You Might Find Interesting
1. Programming
Hello All,
I am a learner in C++. I was testing my inheritance knowledge with following piece of code.
#include <iostream>
using namespace std;
class base
{
public :
void display()
{
cout << "In base display()" << endl;
}
void display(int k)
{... (2 Replies)
Discussion started by: anand.shah
2 Replies
2. Programming
I have the two class definition as follows.
class A { public: int a; };
class B : virtual public A{ };
The size of class A is shown as 4, and size of class B is shown as 16. Why is this effect ?. (2 Replies)
Discussion started by: techmonk
2 Replies
3. UNIX for Advanced & Expert Users
Hi all!
I am trying to register a device in an existing device class, but I am
having trouble getting the pointer to an existing class.
I can create a class in a module, get the pointer to it and then use
it to register the device with:
*cl = class_create(THIS_MODULE, className);... (0 Replies)
Discussion started by: hdaniel@ualg.pt
0 Replies
4. Programming
Hi,
I believe the next code is wrong:
class Egg {
Egg e;
int i;
Egg(int ii=0) : i(ii) {}
};
because you would end up with an endless definition (memory allocation) of Egg objects, thus int i.
Ok, so God Eckel proposes for a singleton:
class Egg {
static Egg e;
int... (5 Replies)
Discussion started by: xavipoes
5 Replies
5. Programming
Hi, i have a question about C++. Is it possible to declare a class with a member ot the same class? For example, a linked list or i want to convert this C code to C++ class (Elemento)
typedef struct elemento
{
char name;
char value;
List<struct elemento> ltElementos;
... (7 Replies)
Discussion started by: pogdorica
7 Replies
6. UNIX for Dummies Questions & Answers
im just trying to have some fun and kill some time writing a c++ program that has a person type in a car make and model then gives them a year and a price. or something like that. i always have problems getting it goin but once the ball is rolling im usually pretty good. anyone wanna help me out? ... (1 Reply)
Discussion started by: rickym2626
1 Replies
7. Shell Programming and Scripting
hi anbu23 u have just replied to my post i want to ask u something else can we get into contact thanks
or reply itself
mv -f $XXTEST_TOP/install/SPE1/XXTEST_SPE1_XX_QUOTE_DETAILS_TBL.sql $XXTEST_TOP/admin2/sql
if
then
echo "Move is successful"
fi
1. What u mean by $? here can u be... (1 Reply)
Discussion started by: Lutchumaya
1 Replies
LEARN ABOUT SUSE
gtk2::box
Gtk2::Box(3) User Contributed Perl Documentation Gtk2::Box(3)
NAME
Gtk2::Box
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Box
INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Orientable
METHODS
$box->set_child_packing ($child, $expand, $fill, $padding, $pack_type)
o $child (Gtk2::Widget)
o $expand (boolean)
o $fill (boolean)
o $padding (integer)
o $pack_type (Gtk2::PackType)
boolean = $box->get_homogeneous
$box->set_homogeneous ($homogeneous)
o $homogeneous (boolean)
$box->pack_end ($child, $expand, $fill, $padding)
o $child (Gtk2::Widget)
o $expand (boolean)
o $fill (boolean)
o $padding (integer)
$box->pack_end_defaults ($widget)
o $widget (Gtk2::Widget)
$box->pack_start ($child, $expand, $fill, $padding)
o $child (Gtk2::Widget)
o $expand (boolean)
o $fill (boolean)
o $padding (integer)
$box->pack_start_defaults ($widget)
o $widget (Gtk2::Widget)
list = $box->query_child_packing ($child)
o $child (Gtk2::Widget)
$box->reorder_child ($child, $position)
o $child (Gtk2::Widget)
o $position (integer)
integer = $box->get_spacing
$box->set_spacing ($spacing)
o $spacing (integer)
PROPERTIES
'homogeneous' (boolean : readable / writable / private)
Whether the children should all be the same size
'spacing' (integer : readable / writable / private)
The amount of space between children
ENUMS AND FLAGS
enum Gtk2::PackType
o 'start' / 'GTK_PACK_START'
o 'end' / 'GTK_PACK_END'
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::Box(3)