10 More Discussions You Might Find Interesting
1. Programming
How to initialize an object of class say "A", with an object of type say "B".
The following code give the error message "error: conversion from âAâ to non-scalar type âBâ requested"
#include <iostream>
using namespace std;
class B;
class A{
public:
A() { cout <<"\nA()" << endl; }
... (1 Reply)
Discussion started by: techmonk
1 Replies
2. Programming
Hello,
I am new to programming shared objects and I was hoping someone could tell me if what I want to do is possible, or else lead me in the right direction.
I have a main program that contains an abstract base class. I also have a subclass that I'm compiling as a shared object. The subclass... (13 Replies)
Discussion started by: dorik
13 Replies
3. Red Hat
Hi,
I would like to create a shared object ( .so).
This shared object
1. uses the functions from a library.
2. Also it should be able to use the global variable in an app
To achieve this what should I do ? 1) To use the functions in the library should I give the -ld option while... (1 Reply)
Discussion started by: rvan
1 Replies
4. Programming
Hi,
I have defined the class and call the sizeof(object to class) to get the size.
# include <iostream>
# include <iomanip>
using namespace std;
class sample
{
private:
int i;
float j;
char k;
public:
sample()
{
} (2 Replies)
Discussion started by: ramkrix
2 Replies
5. Programming
Hi,
I was asked this question in interview.can you people please help me out in this.
class A
{
int i;
a()
{
i=10;
cout << i;
}
}
int main()
{
A a(); // what will be the program output
}
Thanks,
Harika (3 Replies)
Discussion started by: harikamamidala
3 Replies
6. UNIX for Dummies Questions & Answers
I am trying to use a library, lets say libexample.a, and I want to use a variable within the object files that were archived. For example, my new code (which is linked to the library, don't worry about that) wants to access an integer from the original source.
When I use the nm command on... (2 Replies)
Discussion started by: justinpark01
2 Replies
7. UNIX for Dummies Questions & Answers
I am new to PHP and UNIX. I am using Apache to do my testing on a Windows Vista machine.
I am getting this error when I am trying to connect to a web service. I did a search and did not see any posts that pertain to this.
Here is my function:
<?php
function TRECSend($a, $b, $c, $d,... (0 Replies)
Discussion started by: EddiRae
0 Replies
8. Programming
hello,
is there a utility to determine which object files are used to create a binary executable file?let me explain, please:
for ex. there are three files:
a.o b.o c.o
and these files are used to create a binary called:
prg
namely, a.o b.o c.o -> prg
so, how can i determine these three... (1 Reply)
Discussion started by: xyzt
1 Replies
9. Programming
hi this
i tried for getting url form mozilla window.
and also for getting mozilla object file.
is there any plz tell the way.
thanking u.
ramesh (7 Replies)
Discussion started by: ramesh.jella
7 Replies
10. Programming
can we create an parametrize object
to a class with the help of new operator
if yes then how (0 Replies)
Discussion started by: ramneek
0 Replies
Gtk2::Object(3) User Contributed Perl Documentation Gtk2::Object(3)
NAME
Gtk2::Object
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
METHODS
object = Gtk2::Object->new ($object_class, ...)
o $object_class (string) package name of object to create
o ... (list) of property-name => value pairs
Create a new object of type $object_class, with some optional initial property values. You may see this used in some code as
Gtk2::Widget->new, e.g.
$window = Gtk2::Widget->new ('Gtk2::Window',
title => 'something cool',
allow_grow => TRUE);
This is really just a convenience function that wraps Glib::Object->new.
boolean = $object->bindings_activate ($keyval, $modifiers)
o $keyval (integer)
o $modifiers (Gtk2::Gdk::ModifierType)
Although "activate" and "activate_event" are "Gtk2::Object" methods, as of Gtk 2.12 they will only actually invoke signals on a
"Gtk2::Widget". On a "Gtk2::Object" the return is always false (no binding activated).
boolean = $object->bindings_activate_event ($event)
o $event (Gtk2::Gdk::Event)
$object->destroy
This is an explicit destroy --- NOT the auto destroy; Gtk2::Object inherits that from Glib::Object!
PROPERTIES
'user-data' (gpointer : readable / writable / private)
Anonymous User Data Pointer
SIGNALS
destroy (Gtk2::Object)
ENUMS AND FLAGS
flags Gtk2::Gdk::ModifierType
o 'shift-mask' / 'GDK_SHIFT_MASK'
o 'lock-mask' / 'GDK_LOCK_MASK'
o 'control-mask' / 'GDK_CONTROL_MASK'
o 'mod1-mask' / 'GDK_MOD1_MASK'
o 'mod2-mask' / 'GDK_MOD2_MASK'
o 'mod3-mask' / 'GDK_MOD3_MASK'
o 'mod4-mask' / 'GDK_MOD4_MASK'
o 'mod5-mask' / 'GDK_MOD5_MASK'
o 'button1-mask' / 'GDK_BUTTON1_MASK'
o 'button2-mask' / 'GDK_BUTTON2_MASK'
o 'button3-mask' / 'GDK_BUTTON3_MASK'
o 'button4-mask' / 'GDK_BUTTON4_MASK'
o 'button5-mask' / 'GDK_BUTTON5_MASK'
o 'super-mask' / 'GDK_SUPER_MASK'
o 'hyper-mask' / 'GDK_HYPER_MASK'
o 'meta-mask' / 'GDK_META_MASK'
o 'release-mask' / 'GDK_RELEASE_MASK'
o 'modifier-mask' / 'GDK_MODIFIER_MASK'
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned
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::Object(3)