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

(Created page with "{{newin|0.9.0|090|type=callback}} 윈도우의 크기가 변경되면 호출됩니다. 예를 들어 사용자가 윈도우의 크기를 변경하거나, 풀스크린일 때...")
 
Line 5: Line 5:
  
 
Calls to <code>love.window.setMode</code> will '''only''' trigger this event if the width or height of the window after the call doesn't match the requested width and height. This can happen if a fullscreen mode is requested which doesn't match any supported mode, or if the fullscreen type is [[FullscreenType|'desktop']] and the requested width or height don't match the desktop resolution.
 
Calls to <code>love.window.setMode</code> will '''only''' trigger this event if the width or height of the window after the call doesn't match the requested width and height. This can happen if a fullscreen mode is requested which doesn't match any supported mode, or if the fullscreen type is [[FullscreenType|'desktop']] and the requested width or height don't match the desktop resolution.
== Function ==
+
== 함수 ==
=== Synopsis ===
+
=== 형식 ===
 
<source lang="lua">
 
<source lang="lua">
 
love.resize( w, h )
 
love.resize( w, h )
 
</source>
 
</source>
=== Arguments ===
+
=== 매개변수 ===
 
{{param|number|w|The new width.}}
 
{{param|number|w|The new width.}}
 
{{param|number|h|The new height.}}
 
{{param|number|h|The new height.}}
=== Returns ===
+
=== 리턴값 ===
 
Nothing.
 
Nothing.
== Example ==
+
== 예제 ==
 
<source lang="lua">
 
<source lang="lua">
 
function love.resize(w, h)
 
function love.resize(w, h)
Line 21: Line 21:
 
end
 
end
 
</source>
 
</source>
== See Also ==
+
== 같이 보기 ==
* [[parent::love]]
+
* [[parent::love (한국어)]]
 
* [[love.window.setMode]]
 
* [[love.window.setMode]]
 
* [[love.window.setFullscreen]]
 
* [[love.window.setFullscreen]]
Line 28: Line 28:
 
{{#set:Description=윈도우의 크기가 변경되면 호출됩니다.}}
 
{{#set:Description=윈도우의 크기가 변경되면 호출됩니다.}}
 
{{#set:Subcategory=General}}
 
{{#set:Subcategory=General}}
== Other Languages ==
+
== 다른 언어 ==
 
{{i18n|love.resize}}
 
{{i18n|love.resize}}

Revision as of 06:35, 26 December 2013

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

윈도우의 크기가 변경되면 호출됩니다.

예를 들어 사용자가 윈도우의 크기를 변경하거나, 풀스크린일 때love.window.setMode에서 지원되지 않는 가로 세로로 화면 크기를 초기화하거나, 윈도우가 가장 적절한 크기를 선택할 때 호출됩니다.

Calls to love.window.setMode will only trigger this event if the width or height of the window after the call doesn't match the requested width and height. This can happen if a fullscreen mode is requested which doesn't match any supported mode, or if the fullscreen type is 'desktop' and the requested width or height don't match the desktop resolution.

함수

형식

love.resize( w, h )

매개변수

number w
The new width.
number h
The new height.

리턴값

Nothing.

예제

function love.resize(w, h)
  print(("Window resized to width: %d and height: %d."):format(w, h))
end

같이 보기


다른 언어