Examples of Screen


Examples of org.getspout.spoutapi.gui.Screen

    return versionString;
  }

  public void onTick() {
    mainScreen.onTick();
    Screen currentScreen = getCurrentScreen();
    if (currentScreen != null && currentScreen instanceof OverlayScreen) {
      currentScreen.onTick();
    }
    screenOpenThisTick = false;

    // Because the player teleport event doesn't always fire :(
    Location current = getLocation();
View Full Code Here

Examples of org.rascalmpl.library.vis.figure.keys.Screen

//        if(properties.getStr(Properties.HINT).contains("spring"))
          return new SpringGraph(env, properties, (IList) c.get(0), (IList)c.get(1));
//      throw new Error("NO hint!");
     
    case SCREEN:
      return new Screen(makeChild(env,c,properties,childPropsNext),properties );
      
    /*
    case LEFTAXIS:
      return new VAxis(((IString) c.get(0)).getValue(),false, makeChild(1,env,c,properties,childPropsNext), properties );
    case RIGHTAXIS:
View Full Code Here

Examples of org.sikuli.api.Screen

    }   
  }

  public static ScreenLocation getCurrentMouseScreenLocation(){   
    Point p = MouseInfo.getPointerInfo().getLocation();   
    Screen screen = getCurrentScreenDevice().screen;
    Rectangle bounds = getCurrentScreenDevice().getBounds();
    ScreenLocation screenLocation = new DefaultScreenLocation(screen, p.x - bounds.x, p.y - bounds.y);
    screenLocation.setScreen(screen);
    return screenLocation;
  }
View Full Code Here

Examples of org.spoutcraft.api.gui.Screen

    }
    if (widget != null) {
      allWidgets.put(widgetId, widget);
      InGameHUD mainScreen = SpoutClient.getInstance().getActivePlayer().getMainScreen();
      PopupScreen popup = mainScreen.getActivePopup();
      Screen overlay = null;

      if (SpoutClient.getHandle().currentScreen != null) {
        overlay = SpoutClient.getHandle().currentScreen.getScreen();
      }
      // Determine if this is a popup screen and if we need to update it
      if (widget instanceof PopupScreen) {
        if (popup != null) {
          if (widget.getId().equals(popup.getId())) {
            if (SpoutClient.getHandle().currentScreen instanceof CustomScreen) {
              ((CustomScreen)SpoutClient.getHandle().currentScreen).update((PopupScreen)widget);
            }
          } else {
            mainScreen.closePopup();
            mainScreen.attachPopupScreen((PopupScreen)widget);
          }
        } else {
          mainScreen.attachPopupScreen((PopupScreen)widget);
        }
      } else if (widget instanceof OverlayScreen) { // Determine if this screen overrides another screen
        if (SpoutClient.getHandle().currentScreen != null) {
          SpoutClient.getHandle().currentScreen.update((OverlayScreen)widget);
          overlay = (OverlayScreen)widget;
        }
      } else if (screen.equals(mainScreen.getId())) { // Determine if this is a widget on the main screen
        if (mainScreen.containsWidget(widget.getId())) {
          mainScreen.updateWidget(widget);
          widget.setScreen(mainScreen);
        } else {
          widget.setScreen(mainScreen);
          mainScreen.attachWidget(widget.getAddon(), widget);
        }
      } else if (popup != null && screen.equals(popup.getId())) { // Determine if this is a widget on the popup screen
        if (popup.containsWidget(widget.getId())) {
          popup.updateWidget(widget);
          widget.setScreen(popup);
        } else {
          widget.setScreen(popup);
          popup.attachWidget(widget.getAddon(), widget);
        }
      } else if (overlay != null && screen.equals(overlay.getId())) { // Determine if this is a widget on an overlay screen
        if (overlay.containsWidget(widget.getId())) {
          overlay.updateWidget(widget);
          widget.setScreen(overlay);
        } else {
          widget.setScreen(overlay);
          overlay.attachWidget(widget.getAddon(), widget);
        }
      }
    }
  }
View Full Code Here

Examples of org.spoutcraft.api.gui.Screen

    ScreenType display = ScreenUtil.getType(screen);

    if (notify && thePlayer != null && theWorld != null) {
      // Screen closed
      SpoutPacket packet = null;
      Screen widget = null;
      if (this.currentScreen != null && screen == null) {
        packet = new PacketScreenAction(ScreenAction.Close, ScreenUtil.getType(this.currentScreen));
        widget = currentScreen.getScreen();
      }
      // Screen opened
View Full Code Here

Examples of org.vaadin.spring.samples.mvp.ui.presenter.Screen

                    if (a instanceof VaadinView) {
                        VaadinView vv = (VaadinView) a;
                        // really just need the presenter whose name matched VaadinView#name to be
                        // called into being, but Spring caches scoped-beans too
                        context.getBeansWithAnnotation(VaadinPresenter.class);
                        eventBus.publish(this, new Screen(vv.name()));
                        break;
                    }
                }
            }
        }
View Full Code Here

Examples of org.yajsdl.video.Screen


    @Test
    public void notSetVideoMode() {
        assertEquals( Screen.videoModeOK( 0, 0, 0, 0 ), 0 );
        Screen screen = Screen.setVideoMode( 0, 0, 0, 0 );
        SDL_Surface content = screen.toSource();

        assertNotNull( content );

        System.out.format( "screen.width = %d\n", content.w );
        System.out.format( "screen.height = %d\n", content.h );
        System.out.format( "screen.flags = %x\n", content.flags );
        System.out.format( "screen.pitch = %d\n", content.pitch );
        System.out.format( "screen.locked = %d\n", content.locked );
        System.out.format( "screen.format_version = %d\n", content.format_version );

        assertTrue( screen.isScreen() );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.