public final class ImGuiViewport extends ImGuiStruct
ptr
Constructor and Description |
---|
ImGuiViewport(long ptr) |
Modifier and Type | Method and Description |
---|---|
void |
addFlags(int flags)
See
ImGuiViewportFlags . |
void |
getCenter(ImVec2 dstImVec2) |
float |
getCenterX() |
float |
getCenterY() |
float |
getDpiScale()
1.0f = 96 DPI = No extra scale.
|
ImDrawData |
getDrawData()
The ImDrawData corresponding to this viewport.
|
int |
getFlags()
See
ImGuiViewportFlags . |
int |
getID()
Unique identifier for the viewport.
|
int |
getParentViewportId()
(Advanced) 0: no parent.
|
long |
getPlatformHandle()
void* for FindViewportByPlatformHandle().
|
long |
getPlatformHandleRaw()
void* to hold lower-level, platform-native window handle (e.g.
|
boolean |
getPlatformRequestClose()
Platform window requested closure (e.g.
|
boolean |
getPlatformRequestMove()
Platform window requested move (e.g.
|
boolean |
getPlatformRequestResize()
Platform window requested resize (e.g.
|
java.lang.Object |
getPlatformUserData()
void* to hold custom data structure for the OS / platform (e.g.
|
void |
getPos(ImVec2 dstImVec2)
Main Area: Position of the viewport (the imgui coordinates are the same as OS desktop/native coordinates).
|
float |
getPosX()
Main Area: Position of the viewport (the imgui coordinates are the same as OS desktop/native coordinates).
|
float |
getPosY()
Main Area: Position of the viewport (the imgui coordinates are the same as OS desktop/native coordinates).
|
java.lang.Object |
getRendererUserData()
void* to hold custom data structure for the renderer (e.g.
|
void |
getSize(ImVec2 dstImVec2)
Main Area: Size of the viewport.
|
float |
getSizeX()
Main Area: Size of the viewport.
|
float |
getSizeY()
Main Area: Size of the viewport.
|
void |
getWorkOffsetMax(ImVec2 dstImVec2)
Work Area: Offset from Pos+Size to bottom-right corner of Work Area.
|
float |
getWorkOffsetMaxX()
Work Area: Offset from Pos+Size to bottom-right corner of Work Area.
|
float |
getWorkOffsetMaxY()
Work Area: Offset from Pos+Size to bottom-right corner of Work Area.
|
void |
getWorkOffsetMin(ImVec2 dstImVec2)
Work Area: Offset from Pos to top-left corner of Work Area.
|
float |
getWorkOffsetMinX()
Work Area: Offset from Pos to top-left corner of Work Area.
|
float |
getWorkOffsetMinY()
Work Area: Offset from Pos to top-left corner of Work Area.
|
void |
getWorkPos(ImVec2 dstImVec2) |
float |
getWorkPosX() |
float |
getWorkPosY() |
void |
getWorkSize(ImVec2 dstImVec2) |
float |
getWorkSizeX() |
float |
getWorkSizeY() |
boolean |
hasFlags(int flags)
See
ImGuiViewportFlags . |
void |
removeFlags(int flags)
See
ImGuiViewportFlags . |
void |
seSize(float x,
float y)
Main Area: Size of the viewport.
|
void |
setDpiScale(float dpiScale)
1.0f = 96 DPI = No extra scale.
|
void |
setFlags(int flags)
See
ImGuiViewportFlags . |
void |
setID(int imGuiID)
Unique identifier for the viewport.
|
void |
setParentViewportId(int parentViewportId)
(Advanced) 0: no parent.
|
void |
setPlatformHandle(long data)
void* for FindViewportByPlatformHandle().
|
void |
setPlatformHandleRaw(long data)
void* to hold lower-level, platform-native window handle (e.g.
|
void |
setPlatformRequestClose(boolean platformRequestClose)
Platform window requested closure (e.g.
|
void |
setPlatformRequestMove(boolean platformRequestMove)
Platform window requested move (e.g.
|
void |
setPlatformRequestResize(boolean platformRequestResize)
Platform window requested resize (e.g.
|
void |
setPlatformUserData(java.lang.Object data)
void* to hold custom data structure for the OS / platform (e.g.
|
void |
setPos(float x,
float y)
Main Area: Position of the viewport (the imgui coordinates are the same as OS desktop/native coordinates).
|
void |
setRendererUserData(java.lang.Object data)
void* to hold custom data structure for the renderer (e.g.
|
void |
seWorkOffsetMax(float x,
float y)
Work Area: Offset from Pos+Size to bottom-right corner of Work Area.
|
void |
seWorkOffsetMin(float x,
float y)
Work Area: Offset from Pos to top-left corner of Work Area.
|
public int getID()
public void setID(int imGuiID)
public int getFlags()
ImGuiViewportFlags
.public void setFlags(int flags)
ImGuiViewportFlags
.public void addFlags(int flags)
ImGuiViewportFlags
.public void removeFlags(int flags)
ImGuiViewportFlags
.public boolean hasFlags(int flags)
ImGuiViewportFlags
.public void getPos(ImVec2 dstImVec2)
public float getPosX()
public float getPosY()
public void setPos(float x, float y)
public void getSize(ImVec2 dstImVec2)
public float getSizeX()
public float getSizeY()
public void seSize(float x, float y)
public void getWorkOffsetMin(ImVec2 dstImVec2)
public float getWorkOffsetMinX()
public float getWorkOffsetMinY()
public void seWorkOffsetMin(float x, float y)
public void getWorkOffsetMax(ImVec2 dstImVec2)
public float getWorkOffsetMaxX()
public float getWorkOffsetMaxY()
public void seWorkOffsetMax(float x, float y)
public float getDpiScale()
public void setDpiScale(float dpiScale)
public ImDrawData getDrawData()
public int getParentViewportId()
public void setParentViewportId(int parentViewportId)
public void setRendererUserData(java.lang.Object data)
public java.lang.Object getRendererUserData()
public void setPlatformUserData(java.lang.Object data)
public java.lang.Object getPlatformUserData()
public void setPlatformHandle(long data)
public long getPlatformHandle()
public void setPlatformHandleRaw(long data)
public long getPlatformHandleRaw()
public boolean getPlatformRequestMove()
public void setPlatformRequestMove(boolean platformRequestMove)
public boolean getPlatformRequestResize()
public void setPlatformRequestResize(boolean platformRequestResize)
public boolean getPlatformRequestClose()
public void setPlatformRequestClose(boolean platformRequestClose)
public void getCenter(ImVec2 dstImVec2)
public float getCenterX()
public float getCenterY()
public void getWorkPos(ImVec2 dstImVec2)
public float getWorkPosX()
public float getWorkPosY()
public void getWorkSize(ImVec2 dstImVec2)
public float getWorkSizeX()
public float getWorkSizeY()