search for: getchildren

Displaying 14 results from an estimated 14 matches for "getchildren".

Did you mean: get_children
2007 Mar 18
0
[895] branches/wxruby2/wxwidgets_282/swig/classes: Fix Window::GetChildren method for changes in 2.6 -> 2.8 API
...ns {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[895] branches/wxruby2/wxwidgets_282/swig/classes: Fix Window::GetChildren method for changes in 2.6 -> 2.8 API</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>895</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-03-18 06:29:32 -0400...
2006 Dec 20
0
[789] trunk/wxruby2/swig/classes/Window.i: Make GetChildren work (tho general fix for get_ruby_object still needed)
...px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[789] trunk/wxruby2/swig/classes/Window.i: Make GetChildren work (tho general fix for get_ruby_object still needed)</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>789</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-12-2...
2006 May 21
1
print.trellis(..., draw.in=...)
...tion(data, expr, ...) { # if data is a vpPath it cannot be ROOT since # NULL will never dispatch here depth <- if (data$name == "ROOT") 0 else downViewport(names(data)) result <- eval.parent(substitute(expr)) upViewport(depth) invisible(result) } getChildren.viewport <- function(x) x$children grid.newpage() # specify number of cells to fill and number of rows n <- 5; nr <- 3 nc <- ceiling(n/nr) downViewport(pushLayout(nr, nc)) vpt <- current.vpTree(all = FALSE) for(k in 1:n) print( xyplot(v ~ v, list(v = 1:k)), newpage = FALSE,...
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
...t;/span><span class="lines">@@ -24,7 +23,7 @@ </span><span class="cx"> </span><span class="cx"> %apply int * INOUT { int * x_INOUT, int * y_INOUT } </span><span class="cx"> </span><del>-// Typemap for GetChildren </del><ins>+// Typemap for GetChildren - casts wxObjects to correct ruby wrappers </ins><span class="cx"> %typemap(out) wxList& { </span><span class="cx"> $result = rb_ary_new(); </span><span class="cx"> </span&...
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...s, they must be preserved from GC. -void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer, VALUE rb_sizer) -{ - // First, mark this sizer - rb_gc_mark( rb_sizer ); - - // Then loop over hte sizer''s content and mark each sub-sizer in turn - wxSizerItemList& children = wx_sizer->GetChildren(); - for ( wxwxSizerItemListNode *node = children.GetFirst(); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspnode; -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&a...
2007 Jan 01
3
Wish list
...(not sure if this involves grid or just the Windows graphics device) - shading patterns - more interactivity features - safe way to get name of a grid object, e.g. names.vpPath <- names.viewport <- function(x) x$name - safe way to get children of a grid object getChildren.viewport <- function(x) x$children and the order; see: https://www.stat.math.ethz.ch/pipermail/r-devel/2005-June/033532.html - facility for using a name, viewport or vpPath interchangably so that, for example, any of them can be specified in in print.trellis(..., draw.in=....
2007 Jul 21
0
[1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
...s, they must be preserved from GC. +void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer, VALUE rb_sizer) +{ + // First, mark this sizer + rb_gc_mark( rb_sizer ); + + // Then loop over hte sizer''s content and mark each sub-sizer in turn + wxSizerItemList& children = wx_sizer->GetChildren(); + for ( wxwxSizerItemListNode *node = children.GetFirst(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspnode; +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&a...
2007 Jul 21
0
[1129] trunk/wxruby2/swig/classes/Window.i: Add DISOWN typemap for ToolTip so it isn''t double-deleted
...ny sizers passed in to wx become owned by C++ -%apply SWIGTYPE *DISOWN {wxSizer* sizer}; - </del><span class="cx"> %apply int * INOUT { int * x_INOUT, int * y_INOUT } </span><span class="cx"> </span><span class="cx"> // Typemap for GetChildren - casts wxObjects to correct ruby wrappers </span></span></pre> </div> </div> </body> </html>
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...gt;<del>- -// Whilst sizers that are directly managing Windows will be marked, -// those that are contained within other sizers need to be explicitly -// handled: -%{ -static void mark_wxSizer(void *ptr) -{ - wxSizer* wx_sizer = (wxSizer*)ptr; - wxSizerItemList& children = wx_sizer->GetChildren(); - - // Mark each menu in the menubar in turn - for ( wxwxSizerItemListNode *node = children.GetFirst(); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspnode; -&nbsp&nbsp&nbsp&nbs...
2007 Jul 20
0
[1123] trunk/wxruby2/swig/wx.i: Check sizers being marked have a ruby rep and are not internal Wx-only,
...t;+ rb_gc_mark( rb_sizer ); </ins><span class="cx"> </span><span class="cx"> // Then loop over hte sizer''s content and mark each sub-sizer in turn </span><span class="cx"> wxSizerItemList& children = wx_sizer->GetChildren(); </span><span class="lines">@@ -59,7 +60,11 @@ </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp wxSizerItem* item = node->GetData(); </span><span class="cx"> &nbsp&nbsp&a...
2007 May 07
0
[1017] trunk/wxruby2/Changelog: Update changelog with 0.0.40 changes
...AF) +- Fix compile error on Mac with wxFontDialog (SL) +- Some tweaks to the grid and wizard smaples (SL) +- Fix Stock Object initialization in App.i for 2.8 (AF) +- Added DISOWN typemap to fix Caret crash on exit (AF) +- Added DISOWN typemap to fix GriDCellRenderer-related crash (AF) +- Fix Window#GetChildren method for 2.8 (AF) +- 2.8 API: Window, BitmapButton, Bitmap, AcceleratorTable +- Fix crash on exit in fixdeleting.rb (Artur Kuptel) +- Prevent SWIG generating wrappers for ClientData methods (Artur Kuptel) +- Deleting fix for specific Director classes (Artur Kuptel) +- 2.8 Compile fixes for Win32...
2007 May 28
0
[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
...r* sizer }; + + +// Whilst sizers that are directly managing Windows will be marked, +// those that are contained within other sizers need to be explicitly +// handled: +%{ +static void mark_wxSizer(void *ptr) +{ + wxSizer* wx_sizer = (wxSizer*)ptr; + wxSizerItemList& children = wx_sizer->GetChildren(); + + // Mark each menu in the menubar in turn + for ( wxwxSizerItemListNode *node = children.GetFirst(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspnode; +&nbsp&nbsp&nbsp&nbs...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...yInstanceFor(wx_sizer) ); </span><del>- </del><ins>+ </ins><span class="cx"> // Then loop over hte sizer''s content and mark each sub-sizer in turn </span><span class="cx"> wxSizerItemList& children = wx_sizer->GetChildren(); </span><span class="cx"> for ( wxwxSizerItemListNode *node = children.GetFirst(); </span><span class="lines">@@ -53,7 +63,26 @@ </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp}...
2006 Dec 20
0
[791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
...mp;nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief Returns a reference to the list of the window''s children. -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="cx"> wxList& GetChildren() ; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief \perlnote{In wxPerl this method takes no parameter and returns -a 2-element list .} -&nbsp&nbsp&n...