Пример #1
0
 public eq.gui.Surface add_surface(eq.gui.SurfaceOptions opts)
 {
     if (opts.get_placement() == eq.gui.SurfaceOptions.TOP)
     {
         return(add_surface_top(opts));
     }
     else if (opts.get_placement() == eq.gui.SurfaceOptions.BOTTOM)
     {
         return(add_surface_bottom(opts));
     }
     else if (opts.get_placement() == eq.gui.SurfaceOptions.ABOVE)
     {
         return(add_surface_above(opts.get_relative(), opts));
     }
     else if (opts.get_placement() == eq.gui.SurfaceOptions.BELOW)
     {
         return(add_surface_below(opts.get_relative(), opts));
     }
     else if (opts.get_placement() == eq.gui.SurfaceOptions.INSIDE)
     {
         return(add_surface_inside(opts.get_relative(), opts));
     }
     return(null);
 }