/dports/lang/racket/racket-8.3/share/pkgs/htdp-lib/graphics/ |
H A D | graphics-posn-less-unit.rkt | 140 (set! bitmap (make-object mred:bitmap% width height)) 718 (send/proc dc ivar (posn-x p) (posn-y p) width height) 719 (send/proc buffer-dc ivar (posn-x p) (posn-y p) width height)))) 728 [(p width height) (draw-rectangle-viewport p width height (make-rgb 0 0 0))] 729 [(p width height color) 762 [(p width height) (flip-rectangle-viewport p width height (make-rgb 0 0 0))] 796 [(p width height) (draw-ellipse-viewport p width height (make-rgb 0 0 0))] 830 [(p width height) (flip-ellipse-viewport p width height (make-rgb 0 0 0))] 933 (make-object mred:point% (posn-x p) (posn-y p))) 1182 [(label width height) [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/frtime/animation/ |
H A D | graphics-posn-less-unit.rkt | 68 (set! bitmap (make-object gui:bitmap% width height)) 522 (send/proc dc ivar (posn-x p) (posn-y p) width height) 523 (send/proc buffer-dc ivar (posn-x p) (posn-y p) width height)))) 548 (send dc draw-arc (posn-x p) (posn-y p) width height start-radians end-radians) 549 (send buffer-dc draw-arc (posn-x p) (posn-y p) width height start-radians end-radians))]))) 571 (send dc draw-arc (posn-x p) (posn-y p) width height start-radians end-radians) 572 (send buffer-dc draw-arc (posn-x p) (posn-y p) width height start-radians end-radians))]))) 578 [(p width height) (draw-rectangle-viewport p width height (make-rgb 0 0 0))] 612 [(p width height) (flip-rectangle-viewport p width height (make-rgb 0 0 0))] 646 [(p width height) (draw-ellipse-viewport p width height (make-rgb 0 0 0))] [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/deinprogramm/deinprogramm/DMdA/teachpack/ |
H A D | image.rkt | 247 (define (clip raw-img delta-w delta-h width height) 258 (let-values ([(i-width i-height) (send img get-size)]) 265 (send rgn set-rectangle dx dy width height) 275 [px (floor (/ width 2))] [py (floor (/ height 2))])))))) 288 (let-values ([(i-width i-height) (send img get-size)]) 297 (send rgn set-rectangle dx dy width height) 307 [px (floor (/ width 2))] [py (floor (/ height 2))]))))))) 313 (define (line width height pre-x1 pre-y1 pre-x2 pre-y2 color-in) 331 (send rgn set-rectangle dx dy width height) 343 (make-simple-cache-image-snip width height draw-proc mask-proc))))) [all …]
|
/dports/x11/xlockmore/xlockmore-5.67/modes/glx/ |
H A D | juggler3d.c | 876 } else if(t->height < 3 && t->posn == '_') { in adam() 879 if(t->height < KICKMIN && t->posn == 'k'){ in adam() 945 if (t->height <= 2 && t->posn == '_') { in part() 948 if (t->height <= 1 && (t->posn == '=' || t->posn == '&')) { in part() 1536 n->spin = spinrate(t->object->type, t, 0.0, dt, t->height, t->height/2, in projectile() 1677 t->height, t->object == NULL?0:t->object->color, in dump() 1685 t->height, t->type, t->object == NULL?0:t->object->color, in dump() 2681 reshape_juggler3d (ModeInfo *mi, int width, int height) in reshape_juggler3d() argument 2683 GLfloat h = (GLfloat) height / (GLfloat) width; in reshape_juggler3d() 2685 glViewport (0, 0, (GLint) width, (GLint) height); in reshape_juggler3d() [all …]
|
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/glx/ |
H A D | juggler3d.c | 814 } else if(t->height < 3 && t->posn == '_') { in adam() 817 if(t->height < KICKMIN && t->posn == 'k'){ in adam() 884 if (t->height <= 2 && t->posn == '_') { in part() 887 if (t->height <= 1 && (t->posn == '=' || t->posn == '&')) { in part() 1474 n->spin = spinrate(t->object->type, t, 0.0, dt, t->height, t->height/2, in projectile() 1615 t->height, t->object == NULL?0:t->object->color, in dump() 1623 t->height, t->type, t->object == NULL?0:t->object->color, in dump() 2616 reshape_juggle (ModeInfo *mi, int width, int height) in reshape_juggle() argument 2618 GLfloat h = (GLfloat) height / (GLfloat) width; in reshape_juggle() 2620 glViewport (0, 0, (GLint) width, (GLint) height); in reshape_juggle() [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/htdp-doc/graphics/scribblings/ |
H A D | graphics.scrbl | 263 [width (and/c real? (not/c negative?))] 273 across and @racket[height] tall.} 278 [width (and/c real? (not/c negative?))] 288 [width (and/c real? (not/c negative?))] 308 across and @racket[height] tall.} 346 and with sides @racket[width] across and @racket[height] tall.} 381 and with sides @racket[width] across and @racket[height] tall.} 593 list of two numbers: width and height.} 597 Returns an object that can be inserted into an editor buffer to 606 Returns an object for direct drawing into @racket[viewport]'s [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/htdp-lib/2htdp/private/ |
H A D | image-more.rkt | 99 (define sdc (new svg-dc% [width width] [height height] [output port])) 426 (define/chk (crop x1 y1 width height image) 427 (crop/internal x1 y1 width height image)) 437 width height image)) 1060 (crop 0 0 width height 1431 [(or (zero? width) (zero? height)) 1440 (make-bb width height height) 1568 (length color-list) width height) 1570 [(or (zero? width) (zero? height)) 1657 [(width height image) (freeze/internal 0 0 width height image)] [all …]
|
H A D | img-err.rkt | 13 real-valued-posn? 20 lang/posn 94 ;; width, height -> number 150 [(width height radius radius1 radius2 side-length side-length1 side-length2 273 (andmap posn? arg)) 361 (and (string->color-object/f (symbol->string c)) #t)] 363 (and (string->color-object/f c) #t)] 378 (define (real-valued-posn? arg) 379 (and (posn? arg) 380 (real? (posn-x arg)) [all …]
|
/dports/science/py-veusz/veusz-veusz-3.3.1/veusz/widgets/ |
H A D | controlgraph.py | 80 return qt.QRectF(r.left()/s, r.top()/s, r.width()/s, r.height()/s) 138 class ControlMarginBox(object): 210 width = self.posn[2] - self.posn[0] 211 height = self.posn[3] - self.posn[1] 219 width = s.get('width').convertInverse(width, helper) 220 height = s.get('height').convertInverse(height, helper) 224 document.OperationSettingSet(s.get('width'), width), 225 document.OperationSettingSet(s.get('height'), height), 362 class ControlResizableBox(object): 573 class ControlLine(object): [all …]
|
H A D | contour.py | 44 LineLabeller = object # allow class definition below 438 def drawKeySymbol(self, number, painter, x, y, width, height): argument 442 painter.drawLine(x, y+height/2, x+width, y+height/2) 475 def dataDraw(self, painter, axes, posn, cliprect): argument 482 self.plotContourFills(painter, posn, axes, cliprect) 483 self.plotContours(painter, posn, axes, cliprect) 484 self.plotSubContours(painter, posn, axes, cliprect) 538 def _plotContours(self, painter, posn, axes, linestyles, argument 604 def plotContours(self, painter, posn, axes, clip): argument 611 def plotSubContours(self, painter, posn, axes, clip): argument [all …]
|
/dports/devel/spread-sheet-widget/spread-sheet-widget-0.8/src/ |
H A D | ssw-sheet-axis.c | 136 return alloc->width; in zz_get_alloc_width() 142 alloc->width = size; in zz_set_alloc_width() 154 return alloc->height; in zz_get_alloc_height() 160 alloc->height = size; in zz_set_alloc_height() 918 allocation->width, allocation->height); in __size_allocate() 944 gtk_render_background (context, ct, 0, 0, alloc.width, alloc.height); in __draw() 967 attributes.width = allocation.width; in __realize() 968 attributes.height = allocation.height; in __realize() 1106 gint posn; in on_drag_drop() local 1147 gint posn; in setup_drag_operation() local [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/htdp-lib/stepper/private/ |
H A D | view-controller.rkt | 134 ;; build gui object: 204 (make-object stepper-frame% drracket-tab)) 209 [stretchable-width #t] 215 [stretchable-width #t] 226 [stretchable-width #f] 229 [min-width 100])) 269 (make-object x:stepper-canvas% (send s-frame get-area-container))) 278 (send e reset-width canvas) 455 (blank (* 6/7 (pict-width little-lambda)) 0) 489 (match source-posn-info [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/htdp-lib/htdp/ |
H A D | image.rkt | 277 [(i-width i-height) (send img get-size)]) 290 (send rgn set-rectangle dx dy width height) 334 …(put-pinhole (shrink (put-pinhole raw-img (- (image-width raw-img) 1) (- (image-height raw-img) 1)) 951 "given width times given height is ~a, but the given color list has ~a items" 1009 "given width times given height is ~a, but the given color list has ~a items" 1056 ;; create an empty scene of size width x height (!= (nw:rectangle width height)) 1061 (define (nw:rectangle width height mode color) 1066 (put-pinhole (rectangle width height mode color) 0 0)) 1077 (define (empty-scene width height) 1081 (overlay (rectangle width height 'solid 'white) [all …]
|
H A D | matrix.rkt | 40 Since matrix-where? returns a list of posn structures, it would be 42 could optionally consume a single posn rather than a separate i and j. 45 provide lang/posn so that you can call posn-x and posn-y on the 65 (define (visible? m) (and (object? m) (v? m))) 75 (define th ;; total height of matrix: 2 lines plus the text height 77 (define tw ;; total width of matrix: 2 identations, n xspans 114 [width tw] [height th] [px 0] [py 0] 144 ;; determine the height of each row and the width of each column 165 (let* ([bm (make-object bitmap% 1 1)] 166 [dc (make-object bitmap-dc% bm)])
|
/dports/x11/xlockmore/xlockmore-5.67/modes/ |
H A D | juggle.c | 853 if(t->height > BOUNCEOVER && t->posn == ' '){ in adam() 855 } else if(t->height < 3 && t->posn == '_') { in adam() 858 if(t->height < KICKMIN && t->posn == 'k'){ in adam() 886 b += sprintf(b, " %c%d", p->posn, p->height); in name() 924 if (t->height <= 2 && t->posn == '_') { in part() 927 if (t->height <= 1 && (t->posn == '=' || t->posn == '&')) { in part() 1529 n->spin = spinrate(t->object->type, t, 0.0, dt, t->height, t->height/2, in projectile() 1650 (void) fprintf(stderr, "%p T %c%d %s\n", (void*)t, t->posn, t->height, in dump() 1670 t->height, t->object == NULL?0:t->object->color, in dump() 1678 t->height, t->type, t->object == NULL?0:t->object->color, in dump() [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/gui-lib/mred/private/ |
H A D | wxpanel.rkt | 74 (inherit get-x get-y get-width get-height 75 min-width min-height set-min-width set-min-height 382 (lambda (children-info width height) 395 (lambda (children-info width height) 491 (lambda (in-width in-height) 494 [(width height) (adjust-panel-size in-width in-height)]) 689 (lambda (kid-info width height 833 (lambda (width height) width) 834 (lambda (width height) height) 846 (lambda (width height) height) [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/deinprogramm/deinprogramm/DMdA/tests/ |
H A D | image.rkt | 11 lang/posn 53 (let-values ([(width height) (send snp get-size)]) 71 [bm-clip (make-object bitmap% bm-width bm-height)] 72 [bm-noclip (make-object bitmap% bm-width bm-height)] 102 (let ([bm-normal (make-object bitmap% (max 1 width) (max 1 height))] 103 [bm-bitmap (make-object bitmap% (max 1 width) (max 1 height))] 561 (check-equal? (make-posn 2 5) 569 (check-equal? (make-posn 0 0) 575 (check-equal? (make-posn 1 1) 865 ;; test images with zero width or zero height [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/racket-doc/scribblings/guide/ |
H A D | define-struct.scrbl | 12 form, which is the topic of this chapter. The class-based object 58 (posn-x (posn 1 2)) (posn-y (posn 1 2))]} 192 (struct glass (width height) #:transparent) 197 (struct lead (width height)) 209 (struct lead (width height) 214 (and (equal?-recur (lead-width a) (lead-width b)) 215 (equal?-recur (lead-height a) (lead-height b)))) 218 (+ (hash-recur (lead-width a)) 219 (* 3 (hash-recur (lead-height a))))) 222 (+ (hash2-recur (lead-width a)) [all …]
|
/dports/devel/py-game/pygame-2.1.0/examples/ |
H A D | midi.py | 258 class NullKey(object): 429 class Key(object): 448 def __init__(self, ident, posn, key_left=None): argument 457 rect = pg.Rect(posn[0], posn[1], c_width, c_height) 626 class Keyboard(object): 801 x, y, width, height = rect 803 cutoff = height 805 regions.fill((note, 42, 0), (x, y, width, delta_height)) 806 regions.fill((note, 84, 0), (x, y + delta_height, width, delta_height)) 808 (note, 127, 0), (x, y + 2 * delta_height, width, height - 2 * delta_height)
|
/dports/lang/racket/racket-8.3/share/pkgs/gui-lib/mred/private/wx/cocoa/ |
H A D | procs.rkt | 120 (NSSize-height (NSRect-size f))) 128 (set-box! yb (+ (unbox yb) (get-menu-bar-height)))) 139 (set-box! xb (->long (NSSize-width (NSRect-size f)))) 140 (set-box! yb (->long (- (NSSize-height (NSRect-size f)) 147 (get-menu-bar-height)])))) 188 (make-object color% 226 (define posn (tell #:type _NSPoint NSEvent mouseLocation)) 238 (NSSize-height (NSRect-size f)))) 239 (values (make-object point% 240 (->long (NSPoint-x posn)) [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/racket-doc/scribblings/reference/ |
H A D | define-struct.scrbl | 203 @racket[object-name] on the constructor produces the symbolic form of 207 as a constructor, and @racket[object-name] on the constructor produces 264 (struct ellipse (width height) #:omit-define-values) 265 (eval:error ellipse-width) 295 (posn? (posn 1 2)) 296 (posn-y (posn 1 2)) 297 (posn-z (posn 1 2)) 356 (posn? (make-posn 1 2)) 357 (posn-y (make-posn 1 2)) 411 (posn-x (make-posn 1 2)) [all …]
|
/dports/editors/emacs-devel/emacs-4d1968b/src/ |
H A D | keyboard.c | 5206 int width = -1, height = -1; in make_lispy_position() local 5239 &object, &dx, &dy, &width, &height); in make_lispy_position() 5258 &object, &dx, &dy, &width, &height); in make_lispy_position() 5290 width = 1; in make_lispy_position() 5354 if (width < 0) width = width2; in make_lispy_position() 5355 if (height < 0) height = height2; in make_lispy_position() 5385 Fcons (make_fixnum (width), make_fixnum (height))); in make_lispy_position() 10912 int width, height; variable 10937 get_tty_size (fileno (CURTTY ()->input), &width, &height); 10938 if (width != old_width || height != old_height) [all …]
|
/dports/editors/emacs-devel/emacs-4d1968b/test/manual/etags/c-src/emacs/src/ |
H A D | keyboard.c | 5249 int width = -1, height = -1; in make_lispy_position() local 5278 &object, &dx, &dy, &width, &height); in make_lispy_position() 5297 &object, &dx, &dy, &width, &height); in make_lispy_position() 5329 width = 1; in make_lispy_position() 5393 if (width < 0) width = width2; in make_lispy_position() 5394 if (height < 0) height = height2; in make_lispy_position() 5424 Fcons (make_number (width), make_number (height))); in make_lispy_position() 8640 < width in read_char_minibuf_menu_prompt() 10242 int width, height; variable 10269 get_tty_size (fileno (CURTTY ()->input), &width, &height); [all …]
|
/dports/editors/emacs/emacs-27.2/test/manual/etags/c-src/emacs/src/ |
H A D | keyboard.c | 5249 int width = -1, height = -1; in make_lispy_position() local 5278 &object, &dx, &dy, &width, &height); in make_lispy_position() 5297 &object, &dx, &dy, &width, &height); in make_lispy_position() 5329 width = 1; in make_lispy_position() 5393 if (width < 0) width = width2; in make_lispy_position() 5394 if (height < 0) height = height2; in make_lispy_position() 5424 Fcons (make_number (width), make_number (height))); in make_lispy_position() 8640 < width in read_char_minibuf_menu_prompt() 10242 int width, height; variable 10269 get_tty_size (fileno (CURTTY ()->input), &width, &height); [all …]
|
/dports/editors/emacs/emacs-27.2/src/ |
H A D | keyboard.c | 5060 int width = -1, height = -1; in make_lispy_position() local 5093 &object, &dx, &dy, &width, &height); in make_lispy_position() 5112 &object, &dx, &dy, &width, &height); in make_lispy_position() 5144 width = 1; in make_lispy_position() 5208 if (width < 0) width = width2; in make_lispy_position() 5209 if (height < 0) height = height2; in make_lispy_position() 5239 Fcons (make_fixnum (width), make_fixnum (height))); in make_lispy_position() 9016 < width in read_char_minibuf_menu_prompt() 10650 int width, height; variable 10675 get_tty_size (fileno (CURTTY ()->input), &width, &height); [all …]
|