break code->code docs<-docs dependency

db4
Joe Groff 2009-05-02 21:54:25 -05:00
parent 644c42d4e3
commit cc244cb672
3 changed files with 13 additions and 5 deletions

View File

@ -150,10 +150,6 @@ M: world handle-gesture ( gesture gadget -- ? )
: close-global ( world global -- )
[ get-global find-world eq? ] keep '[ f _ set-global ] when ;
GENERIC: world-pixel-format-attributes ( world -- attributes )
GENERIC# check-world-pixel-format 1 ( world pixel-format -- )
M: world world-pixel-format-attributes
drop
{ windowed double-buffered T{ depth-bits { value 16 } } } ;

View File

@ -1,6 +1,13 @@
USING: destructors help.markup help.syntax kernel math multiline sequences ui.gadgets.worlds ;
USING: destructors help.markup help.syntax kernel math multiline sequences
vocabs.parser words ;
IN: ui.pixel-formats
! break circular dependency
<<
"world" "ui.gadgets.worlds" create drop
"ui.gadgets.worlds" (use+)
>>
ARTICLE: "ui.pixel-formats-attributes" "Pixel format attributes"
"The following pixel format attributes can be requested and queried of " { $link pixel-format } "s. Binary attributes are represented by the presence of a symbol in an attribute sequence:"
{ $subsection double-buffered }

View File

@ -87,3 +87,8 @@ SYNTAX: PIXEL-FORMAT-ATTRIBUTE-TABLE:
scan scan-object scan-object define-pixel-format-attribute-table ;
PRIVATE>
GENERIC: world-pixel-format-attributes ( world -- attributes )
GENERIC# check-world-pixel-format 1 ( world pixel-format -- )