Chicane

Instance

Header
Chicane/Core/Window/Instance.hpp
Namespace
Chicane::Window::Instance

Constructors

ModifierNameDescription
Instance(const CreateInfo& inCreateInfo)

Destructors

ModifierNameDescription
~Instance()

Functions

AccessModifierTypeNameDescription
publicvoidonEvent(const SDL_Event& inEvent)
publicboolisFocused()
publicboolfocus()
publicboolblur()
publicvoidsetTitle(const std::string& inTitle)
publicvoidsetIcon(const std::string& inIconPath)
publicVec<2, int>getSize()
publicvoidsetSize(const Vec<2, int>& inSize)
publicvoidsetSize(int inWidth, int inHeight)
publicVec<2, int>getDrawableSize()
publicvoidsetDrawableSize(const Vec<2, int>& inSize)
publicvoidsetDrawableSize(int inWidth, int inHeight)
publicVec<2, int>getPosition()
publicvoidsetPosition(const Vec<2, int>& inPosition)
publicvoidsetPosition(int inX, int inY)
publicvoidsetDisplay(int inMonitorIndex)
publicvoidsetType(Type)
publicTypegetType()
publicboolisResizeable()
publicvoidenableResizing()Only takes effect when the type is Type::Windowed
publicvoiddisableResizing()Only takes effect when the type is Type::Windowed
publicboolisMinimized()

Properties

AccessModifierTypeNameDescription
publicSDL_Instance*instance
privateTypem_type
privateVec<2, int>m_size
privateVec<2, int>m_drawableSize
privateVec<2, int>m_position
privateboolm_bIsFocused
privateboolm_bIsResizeable
privateboolm_bIsMinimized