Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::PreferredSize Class Reference

PreferredSize contains size preferences for a TBWidget. More...

#include <tb_widgets.h>

Public Member Functions

 PreferredSize (int w, int h)
 

Public Attributes

int min_w
 
int min_h
 The minimal preferred width and height.
 
int max_w
 
int max_h
 The maximum preferred width and height.
 
int pref_w
 
int pref_h
 The preferred width and height.
 
SIZE_DEP size_dependency
 The size dependency when size is affected by constraints.
 

Detailed Description

PreferredSize contains size preferences for a TBWidget.

This is calculated during layout for each widget from the current skin, widget preferences and LayoutParams.


The documentation for this class was generated from the following file: