|
|
Home » Developing U++ » U++ Developers corner » Proposed change to U++ to allow owning children.
Re: Proposed change to U++ to allow owning children. [message #31659 is a reply to message #31657] |
Sat, 19 March 2011 00:02 |
Lance
Messages: 527 Registered: March 2007
|
Contributor |
|
|
Thank you very much! I have no doubt with U++'s speed. That's one big aspect why it attracts me.
Very informative.
Since you are here, how do you like my way of revised Ctrl::Ctrl implementation?
Ctrl::Ctrl() {
GuiLock __;
LLOG("Ctrl::Ctrl");
// a smarter way to implement this function
// as we can see, most member variable to initialized
// to 0, we can save a couple of cpu cycles by simply
// zero out the part of object that are of POD type
// Note Non-POD member variable frame, info, pos has been move to
// follow POD members, with pos being the first non-pod member var.
typedef int32 unit; // 4 should be deduced for flexibility
unsigned size=((char*)&this->pos -(char*)this)/sizeof(unit);
for(unsigned i=0; i<size; ++i)
reinterpret_cast<unit*>(this)[i]=0;
//destroying = false;
//owned = false;
//parent = prev = next = firstchild = lastchild = NULL;
//top = NULL;
//exitcode = 0;
frame.Add().frame = &NullFrame();
enabled = visible = wantfocus = initfocus = true;
editable = true;
// GLX = false;
#ifdef PLATFORM_WIN32
//activex = false;
//isdhctrl = false;
#endif
backpaint = IsCompositedGui() ? FULLBACKPAINT : TRANSPARENTBACKPAINT;
//inframe = false;
//ignoremouse = transparent = false;
//caretcx = caretcy = caretx = carety = 0;
//SetRect(Rect(0, 0, 0, 0));
//inloop = popup = isopen = false;
//modify = false;
//unicode = false;
//popupgrab = false;
//fullrefresh = false;
//akv = false;
//hasdhctrl = false;
}
|
|
|
|
|
Proposed change to U++ to allow owning children.
By: Lance on Wed, 16 March 2011 17:18
|
|
|
Re: Proposed change to U++ to allow owning children.
By: kohait00 on Wed, 16 March 2011 17:26
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 16 March 2011 17:29
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 16 March 2011 17:30
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 16 March 2011 17:39
|
|
|
Re: Proposed change to U++ to allow owning children.
By: kohait00 on Wed, 16 March 2011 18:01
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 16 March 2011 18:10
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 16 March 2011 18:29
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 16 March 2011 18:35
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 16 March 2011 18:43
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 16 March 2011 19:24
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Fri, 18 March 2011 02:13
|
|
|
Re: Proposed change to U++ to allow owning children.
By: kohait00 on Fri, 18 March 2011 11:01
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Fri, 18 March 2011 14:39
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Fri, 18 March 2011 15:21
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Fri, 18 March 2011 15:40
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Fri, 18 March 2011 16:22
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Fri, 18 March 2011 16:34
|
|
|
Re: Proposed change to U++ to allow owning children.
By: mirek on Fri, 18 March 2011 19:35
|
|
|
Re: Proposed change to U++ to allow owning children.
By: mirek on Fri, 18 March 2011 19:32
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Fri, 18 March 2011 23:02
|
|
|
Re: Proposed change to U++ to allow owning children.
By: mirek on Fri, 18 March 2011 23:18
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Fri, 18 March 2011 23:34
|
|
|
Re: Proposed change to U++ to allow owning children.
By: mirek on Fri, 18 March 2011 23:40
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Sat, 19 March 2011 00:02
|
|
|
Re: Proposed change to U++ to allow owning children.
By: mirek on Sat, 19 March 2011 00:37
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Sat, 19 March 2011 01:30
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Sat, 19 March 2011 01:35
|
|
|
Re: Proposed change to U++ to allow owning children.
By: mirek on Sat, 19 March 2011 10:59
|
|
|
Re: Proposed change to U++ to allow owning children.
By: kohait00 on Sun, 20 March 2011 10:32
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Sun, 20 March 2011 14:07
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Sun, 20 March 2011 14:11
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Sun, 20 March 2011 14:28
|
|
|
Re: Proposed change to U++ to allow owning children.
By: kohait00 on Fri, 25 March 2011 13:26
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Sun, 27 March 2011 15:33
|
|
|
Re: Proposed change to U++ to allow owning children.
By: kohait00 on Sun, 17 April 2011 17:25
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Tue, 19 April 2011 06:00
|
|
|
Re: Proposed change to U++ to allow owning children.
By: kohait00 on Tue, 19 April 2011 09:14
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Tue, 19 April 2011 14:09
|
|
|
Re: Proposed change to U++ to allow owning children.
By: kohait00 on Tue, 19 April 2011 18:05
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 20 April 2011 02:44
|
|
|
Re: Proposed change to U++ to allow owning children.
By: kohait00 on Wed, 20 April 2011 08:51
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 20 April 2011 19:24
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 20 April 2011 21:17
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 20 April 2011 21:23
|
|
|
Re: Proposed change to U++ to allow owning children.
By: Lance on Wed, 20 April 2011 21:38
|
|
|
Re: Proposed change to U++ to allow owning children.
By: kohait00 on Thu, 28 April 2011 16:32
|
|
|
revised ownership change
By: kohait00 on Thu, 28 April 2011 18:28
|
|
|
Re: revised ownership change
By: Lance on Thu, 28 April 2011 21:45
|
|
|
Re: revised ownership change
By: kohait00 on Thu, 28 April 2011 21:57
|
|
|
Re: revised ownership change
By: Lance on Thu, 28 April 2011 23:18
|
|
|
Re: revised ownership change
By: Lance on Thu, 28 April 2011 23:31
|
|
|
Re: revised ownership change
By: Lance on Thu, 28 April 2011 23:54
|
|
|
Re: revised ownership change
|
|
|
Re: revised ownership change
|
|
|
Re: revised ownership change
|
|
|
Re: revised ownership change
By: Lance on Mon, 06 June 2011 05:11
|
|
|
Re: revised ownership change
By: Lance on Mon, 06 June 2011 05:05
|
Goto Forum:
Current Time: Tue May 14 20:43:15 CEST 2024
Total time taken to generate the page: 0.01535 seconds
|
|
|