Curses :: ÅøŶ

Çö´ë ÀúÁÖ ÅøŶ
Áö±Ý ´Ù¿î·Îµå

Curses :: ÅøŶ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °Ô½ÃÀÚ À̸§:
  • Damien Krotkine
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~dams/

Curses :: ÅøŶ ű×


Curses :: ÅøŶ ¼³¸í

Çö´ë ÀúÁÖ ÅøŶ CURSES :: ToolkitÀº Curses ¸ðµâÀ» ±â¹ÝÀ¸·Î Çö´ëÀûÀÎ ÀúÁÖ ÅøŶÀÌ µÇ·Á´Â Perl ¸ðµâÀÔ´Ï´Ù .Warning : ÀÌ°ÍÀº ¿©ÀüÈ÷ "º£Å¸"¹öÀü¿¡ ÀÖ½À´Ï´Ù. ±¸ÇöµÇ°í API°¡ º¯°æ µÉ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª ´ëºÎºÐÀÇ ±¸¼º ¿ä¼Ò´Â °Å±â¿¡ ÀÖÀ¸¸ç, ¹Ì·¡¿¡ ¸¹Àº °ÍµéÀÌ ¸¹ÀÌ ¹Ù²îÁö ¾Ê¾Æ¾ßÇÕ´Ï´Ù ... ¾ÆÁ÷µµ »ý»ê·®¿¡¼­ »ç¿ëÇÏÁö ¸¶½Ê½Ã¿À. ¾ÈÁ¤ÀûÀ¸·Î °í·ÁÇÏÁö´Â ¾Ê½À´Ï´Ù. ÅøŶÀº ÀÌ ¸ðµâÀÇ ÀϺΰ¡ ¾Æ´Ñ mainLoop. PoE :: Component :: ÀúÁÖ, ¾Æ¸¶ ¿øÇÏ´Â °ÍÀΰ¡? PoE :: Component :: Curses´Â Curses :: ToolkitÀ» »ç¿ëÇÏÁö¸¸ Å°º¸µå, ¸¶¿ì½º, ŸÀÌ¸Ó ¹× ±âŸ À̺¥Æ®¸¦ »ç¿ëÇÏ´Â ¹Ý¸é ¸ÞÀÎ·ì ¹× ÇÚµé¶õÀ» Á¦°øÇÕ´Ï´Ù. À§ÀÇ ¿¹¸¦ ÂüÁ¶ÇϽʽÿÀ. Spawn ¸Þ¼­µå´Â ¸Þ¼Òµå¸¦ È£Ãâ ÇÒ ¼öÀÖ´Â Curses :: Toolkit °´Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. ÀÌ¹Ì ¸ÞÀÎ ·Ñ·Î¿ì°¡ Àְųª ÇÊ¿äÇÏÁö ¾ÊÀº °æ¿ì Curses :: ToolkitÀ» Á÷Á¢ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª ´Ù½Ã, ¾Æ¸¶µµ ´ç½ÅÀÌ »ç¿ëÇÏ°íÀÚÇÏ´Â °ÍÀÌ ¾Æ´Ò °ÍÀÔ´Ï´Ù. ÀÌ °æ¿ì ´ÙÀ½°ú °°Àº ¹º°¡¸¦ ÇÒ °ÍÀÔ´Ï´Ù : curses :: toolkit; # À̺¥Æ® ·çÇÁ°¡¾ø´Â CURSES :: Toolkit »ç¿ë ³» $ root = curses :: toolkit-> init_window (); ³» $ window = curses :: toolkit :: widget :: window-> new (); $ root-> Ãß°¡ ($ À©µµ¿ì); ... $ root-> rendersynopsis # ·çÆ® âÀ» »ý¼ºÇϽʽÿÀ. ³» $ root = poe :: ±¸¼º ¿ä¼Ò :: ÀúÁÖ -> spawn (); # ÀϺΠÀ§Á¬ $ root-> add_window (my $ window = curses :: window -> newget :: window -> new) -> set_name ( 'main_window') -> add_widget (my $ button = curses :: toolkit : : widget :: button -> new_with_label ( 'quit'quit ') -> set_name ('my_button ') -> signal_connect (clicked => sub {exit (0);}))) -> set_coordinates (x1 => 0, y1 => 0, x2 => '100 %', y2 => '100 %',)); # ¸ÞÀÎ ·çÇÁ PoE :: Kernel-> Run (); ¿ä±¸ »çÇ× : ¡¤ Perl.


Curses :: ÅøŶ °ü·Ã ¼ÒÇÁÆ®¿þ¾î