Changeset 114
- Timestamp:
- 06/11/13 19:25:36 (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/position.hh
r112 r114 102 102 void set_position( position p ) { lr = p + (lr - ul); ul = p; } 103 103 104 position ur() const { return position( lr.x, ul.y ); } 105 position ll() const { return position( ul.x, lr.y ); } 104 106 /** 105 107 *Gets the dimensions of the rectangle. Synonym for get_size. … … 159 161 */ 160 162 bool is_valid() const { return x2 >= x1 && y2 >= y1; } 163 void expand( value_type value ) { position p(value,value); ul -= p; lr += p; } 164 void shrink( value_type value ) { position p(value,value); ul += p; lr -= p; } 165 rectangle expanded( int value ) { position p(value,value); return rectangle(ul-p, lr+p); } 166 rectangle shrinked( int value ) { position p(value,value); return rectangle(ul+p, lr-p); } 161 167 162 168 /** -
trunk/src/gfx/texture_font.cc
r103 r114 28 28 m_hinting( true ), m_filtering( true ), m_rlibrary( nullptr ), m_rface( nullptr ) 29 29 { 30 load_freetype_library(); 30 31 size_t hres = 64; 31 32 FT_Error error; -
trunk/src/gui/gui_style.cc
r104 r114 74 74 // check id 75 75 lua_getfield( m_lua, -1, cid ); 76 if ( !lua_istable( m_lua, -1 ) )76 if ( lua_istable( m_lua, -1 ) ) 77 77 { 78 78 lua_getfield( m_lua, -1, centry ); … … 83 83 // check class 84 84 lua_getfield( m_lua, -1, cclass ); 85 if ( !lua_istable( m_lua, -1 ) )85 if ( lua_istable( m_lua, -1 ) ) 86 86 { 87 87 lua_getfield( m_lua, -1, centry ); … … 91 91 92 92 // check entry 93 lua_getfield( m_lua, -1, c class);93 lua_getfield( m_lua, -1, centry ); 94 94 if ( lua_type( m_lua, -1 ) == type ) return true; 95 95 return false;
Note: See TracChangeset
for help on using the changeset viewer.