Skip to content

Commit

Permalink
Added element::get_position to get the m_pos.
Browse files Browse the repository at this point in the history
Closes issue #20
  • Loading branch information
tordex committed Jun 14, 2015
1 parent ec71167 commit ed641be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/element.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ namespace litehtml
element(litehtml::document* doc);
virtual ~element();

// returns refer to m_pos member;
position& get_position();

int left() const;
int right() const;
int top() const;
Expand Down Expand Up @@ -366,4 +369,9 @@ namespace litehtml
return !(m_skip || get_display() == display_none || get_visibility() != visibility_visible);
}

inline position& litehtml::element::get_position()
{
return m_pos;
}

}

0 comments on commit ed641be

Please sign in to comment.