Examples of width()


Examples of com.trolltech.qt.core.QRect.width()

   
    painter.fillRect(desktop.screenGeometry(screen), QColor.black);

    QRect availGeo = desktop.availableGeometry(screen);
   
    int x1 = (availGeo.width()/2)-(image.size().width()/2);
    int y1 = (availGeo.height()/2)-(image.size().height()/2);
   
    painter.drawImage(new QPoint(x1,y1), image);
  }
View Full Code Here

Examples of com.trolltech.qt.core.QSize.width()

   */
  public void moveToTile(String tile){
    Tile t = design.getDevice().getTile(tile);
    int tileSize = scene.getTileSize();
    QSize size = this.frameSize();
    view.fitInView(scene.getDrawnTileX(t)*tileSize - size.width()/2,
        scene.getDrawnTileY(t)*tileSize - size.height()/2,
        size.width(), size.height(), AspectRatioMode.KeepAspectRatio);
    view.zoomIn(); view.zoomIn();
    view.zoomIn(); view.zoomIn();   
    scene.updateCurrXY(scene.getDrawnTileX(t), scene.getDrawnTileY(t));
View Full Code Here

Examples of com.trolltech.qt.gui.QImage.width()

        sequence = currentNote.getResources().size();
      newRes = createResource(path,sequence ,"image/gif", false);
      QImage pix = new QImage();
      pix.loadFromData(image);
      newRes.setHeight(new Integer(pix.height()).shortValue());
      newRes.setWidth(new Integer(pix.width()).shortValue());
      logger.log(logger.EXTREME, "Renaming temporary file to " +newRes.getGuid()+".gif");
      path = Global.getFileManager().getResDirPath(newRes.getGuid()+".gif");
      tfile.rename(path);
    } else {
      newRes = conn.getNoteTable().noteResourceTable.getNoteResource(latexGuid, false);
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.width()

     */
    public ERDDefaultModelAssignment (String key, Object value) { super(key,value); }
       
    protected int attributeWidthAsInt(D2WContext c) {
        EOAttribute a = (EOAttribute)c.valueForKey("smartAttribute");
        return a!=null ? a.width() : 0;
    }

    protected int smartDefaultAttributeWidthAsInt(D2WContext c) {
        int i=attributeWidthAsInt(c);
        return i<50 ? ( i==0 ? 20 : i ) : 50;       
View Full Code Here

Examples of d3d11.core.D3D11_VIEWPORT.Width()

    immediateContext.OMSetRenderTargets(1, ppRTV, null);
    ppRTV.release();
   
    // Set viewport
    D3D11_VIEWPORT vp = new D3D11_VIEWPORT();
    vp.Width(800).Height(600).MinDepth(0).MaxDepth(1).TopLeftX(0).TopLeftY(0);
    immediateContext.RSSetViewports(1, pointerTo(vp));
   
    // Clear screen with some color
    final Pointer<Float> pColor = allocateFloats(4).setFloats(new float[] {0.7f, 0.8f, 0.3f, 1.0f});
   
View Full Code Here

Examples of de.lessvoid.nifty.controls.label.builder.LabelBuilder.width()

    }};
  }

  public LabelBuilder createShortLabel(final String name, final String width) {
    LabelBuilder result = createShortLabel(name);
    result.width(width);
    return result;
  }

  public LabelBuilder createShortLabel(final String name) {
    return new LabelBuilder() {{
View Full Code Here

Examples of js.dom.ClientRect.width()

            ClientRect popupArea = popup.position();
            ClientRect targetArea = root.position();

            popup.css("top", targetArea.bottom() + 15 + "px")
                    .css("left", targetArea.left() - popupArea.width() / 2 + targetArea.width() / 2 + "px");
        }

        /**
         *
         */
 
View Full Code Here

Examples of net.algart.math.IRectangularArea.width()

                    tilePos[k] = tileIndexes[k] * processingTileDim[k];
                    assert tilePos[k] < dim[k];
                    tileDim[k] = Math.min(processingTileDim[k], dim[k] - tilePos[k]); // exclusive
                    assert tileDim[k] > 0; // because processingTileDim[k] > 0: checked in the constructor
                    tileMax[k] = tilePos[k] + tileDim[k] - 1;
                    extTileDim[k] = DependenceApertureBuilder.safelyAdd(tileDim[k], maxAperture.width(k));
                    extTilePos[k] = tilePos[k] + maxAperture.min(k);
                    extTileMax[k] = tileMax[k] + maxAperture.max(k);
                    tileSize *= tileDim[k];
                }
                final ArrayContext ac =
View Full Code Here

Examples of net.bytten.metazelda.Bounds.width()

       
    }
   
    protected double getScale(Dimension dim, IDungeon dungeon) {
        Bounds bounds = dungeon.getExtentBounds();
        return Math.min(((double)dim.width) / bounds.width(),
                ((double)dim.height) / bounds.height());
    }
   
    protected double getRoomSize(Dimension dim, IDungeon dungeon) {
        double min = Double.MAX_VALUE;
View Full Code Here

Examples of net.yacy.document.parser.html.ImageEntry.width()

                    prop.put("viewMode_links_" + i + "_dark", dark ? "1" : "0");
                    prop.put("viewMode_links_" + i + "_type", "image");
                    prop.put("viewMode_links_" + i + "_text", (entry.alt().isEmpty()) ? "&nbsp;" : markup(wordArray, entry.alt()));
                    prop.put("viewMode_links_" + i + "_url", entry.url().toNormalform(false, true));
                    prop.put("viewMode_links_" + i + "_link", markup(wordArray, entry.url().toNormalform(false, true)));
                    if (entry.width() > 0 && entry.height() > 0)
                        prop.put("viewMode_links_" + i + "_attr", entry.width() + "x" + entry.height() + " Pixel");
                    else
                        prop.put("viewMode_links_" + i + "_attr", "unknown");
                    dark = !dark;
                    i++;
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.