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

LayoutParams defines size preferences for a TBWidget that are set on the widget to override size preferences from skin and widget. More...

#include <tb_widgets.h>

Public Member Functions

 LayoutParams (int w, int h)
 
void SetWidth (int width)
 Set both min max and preferred width to the given width. More...
 
void SetHeight (int height)
 Set both min max and preferred height to the given height. More...
 

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.
 

Static Public Attributes

static const int UNSPECIFIED = TB_INVALID_DIMENSION
 

Detailed Description

LayoutParams defines size preferences for a TBWidget that are set on the widget to override size preferences from skin and widget.

Member Function Documentation

void tb::LayoutParams::SetHeight ( int  height)
inline

Set both min max and preferred height to the given height.

void tb::LayoutParams::SetWidth ( int  width)
inline

Set both min max and preferred width to the given width.


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