Luanti 5.16.0-dev
Loading...
Searching...
No Matches
ButtonMeta Struct Reference

#include <touchscreenlayout.h>

Public Member Functions

v2s32 getPos (v2u32 screensize, s32 button_size) const
void setPos (v2s32 pos, v2u32 screensize, s32 button_size)

Public Attributes

v2f position
v2f offset

Member Function Documentation

◆ getPos()

v2s32 ButtonMeta::getPos ( v2u32 screensize,
s32 button_size ) const

References offset, and position.

Referenced by ButtonLayout::getRect().

Here is the caller graph for this function:

◆ setPos()

void ButtonMeta::setPos ( v2s32 pos,
v2u32 screensize,
s32 button_size )

References offset, and position.

Referenced by GUITouchscreenLayout::regenerateGUIImagesAddMode(), and GUITouchscreenLayout::updateDragState().

Here is the caller graph for this function:

Member Data Documentation

◆ offset

v2f ButtonMeta::offset

◆ position

v2f ButtonMeta::position

The documentation for this struct was generated from the following files: