Difference between revisions of "love.window.setFullscreen (한국어)"

(Created page with "{{newin|0.9.0|090|type=function}} 풀스크린 모드로 진입하거나 빠져 나옵니다. 다중 모니터 환경일 경우 The display to use when entering fullscreen is...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function}}
 
{{newin|[[0.9.0]]|090|type=function}}
풀스크린 모드로 진입하거나 빠져 나옵니다. 다중 모니터 환경일 경우 The display to use when entering fullscreen is chosen based on which display the window is currently in, if multiple monitors are connected.
+
전체 화면 모드로 진입하거나 빠져 나옵니다. 다중 모니터 환경일 경우 현재 모니터가 위치한 모니터에서 전체 화면 모드로 진입합니다.
 
== 함수 ==
 
== 함수 ==
 
=== 형식 ===
 
=== 형식 ===
Line 7: Line 7:
 
</source>
 
</source>
 
=== 매개변수 ===
 
=== 매개변수 ===
{{param|boolean (한국어)|fullscreen|Whether to enter or exit fullscreen mode.}}
+
{{param|boolean (한국어)|fullscreen|전체 화면에 진입할지 빠져 나갈지 결정.}}
 
=== 리턴값 ===
 
=== 리턴값 ===
{{param|boolean (한국어)|success|True if successful, false otherwise.}}
+
{{param|boolean (한국어)|success|성공하면 true.}}
  
 
== 함수 ==
 
== 함수 ==
Line 17: Line 17:
 
</source>
 
</source>
 
=== 매개변수 ===
 
=== 매개변수 ===
{{param|boolean (한국어)|fullscreen|Whether to enter or exit fullscreen mode.}}
+
{{param|boolean (한국어)|fullscreen|전체 화면에 진입할지 빠져 나갈지 결정.}}
{{param|FullscreenType (한국어)|fstype|The type of fullscreen mode to use.}}
+
{{param|FullscreenType (한국어)|fstype|전체 화면 모드 종류.}}
 
=== 리턴값 ===
 
=== 리턴값 ===
{{param|boolean (한국어)|success|True if successful, false otherwise.}}
+
{{param|boolean (한국어)|success|성공하면 true.}}
  
 
== 알아 두기 ==
 
== 알아 두기 ==
If fullscreen mode is entered and the window size doesn't match one of the monitor's display modes (in normal fullscreen mode) or the window size doesn't match the desktop size (in 'desktop' fullscreen mode), the window will be resized appropriately. The window will revert back to its original size again when fullscreen mode is exited using this function.
+
normal 전체 화면 모드로 진입할 때 현재 윈도우의 크기를 모니터가 지원하지 못할 경우, desktop 모드에서 윈도우의 크기가 모니터와 일치하지 않는 경우 윈도우의 크기는 적당한 값으로 재조정하면서 전체 화면에 진입합니다. 전체 화면 모드에서 이 함수를 다시 사용하면 원래 윈도우 크기로 되돌아올 수 있습니다. 자세한 정보는 [[FullscreenType (한국어)|FullscreenType]]을 참조하세요.
  
 
== 예제 ==
 
== 예제 ==
desktop 풀스크린 모드로 설정합니다.
+
desktop 전체 화면 모드로 설정합니다.
 
<source lang="lua">
 
<source lang="lua">
 
function love.load()
 
function love.load()
Line 39: Line 39:
 
* [[love.resize (한국어)]]
 
* [[love.resize (한국어)]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=풀스크린 모드로 진입하거나 빠져 나옵니다.}}
+
{{#set:Description=전체 화면 모드로 진입하거나 빠져 나옵니다.}}
 
== 다른 언어 ==
 
== 다른 언어 ==
 
{{i18n|love.window.setFullscreen}}
 
{{i18n|love.window.setFullscreen}}

Latest revision as of 14:59, 12 January 2014

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

전체 화면 모드로 진입하거나 빠져 나옵니다. 다중 모니터 환경일 경우 현재 모니터가 위치한 모니터에서 전체 화면 모드로 진입합니다.

함수

형식

success = love.window.setFullscreen( fullscreen )

매개변수

boolean (한국어) fullscreen
전체 화면에 진입할지 빠져 나갈지 결정.

리턴값

boolean (한국어) success
성공하면 true.

함수

형식

success = love.window.setFullscreen( fullscreen, fstype )

매개변수

boolean (한국어) fullscreen
전체 화면에 진입할지 빠져 나갈지 결정.
FullscreenType (한국어) fstype
전체 화면 모드 종류.

리턴값

boolean (한국어) success
성공하면 true.

알아 두기

normal 전체 화면 모드로 진입할 때 현재 윈도우의 크기를 모니터가 지원하지 못할 경우, desktop 모드에서 윈도우의 크기가 모니터와 일치하지 않는 경우 윈도우의 크기는 적당한 값으로 재조정하면서 전체 화면에 진입합니다. 전체 화면 모드에서 이 함수를 다시 사용하면 원래 윈도우 크기로 되돌아올 수 있습니다. 자세한 정보는 FullscreenType을 참조하세요.

예제

desktop 전체 화면 모드로 설정합니다.

function love.load()
    love.window.setFullscreen(true, "desktop")
end

같이 보기

다른 언어