Simple GUI Library
image_view.cpp File Reference
#include "scene/image_view.h"
Include dependency graph for image_view.cpp:

Go to the source code of this file.

Functions

int32_t Sgl::getWidthFixedRatio (int32_t height, float ratio)
 
int32_t Sgl::getHeightFixedRatio (int32_t width, float ratio)
 

Detailed Description

Author
Nikita Mochalov (github.com/tralf-strues)
Date
2021-11-08

Definition in file image_view.cpp.

Function Documentation

◆ getHeightFixedRatio()

int32_t Sgl::getHeightFixedRatio ( int32_t  width,
float  ratio 
)

Definition at line 65 of file image_view.cpp.

◆ getWidthFixedRatio()

int32_t Sgl::getWidthFixedRatio ( int32_t  height,
float  ratio 
)

Definition at line 58 of file image_view.cpp.