title: Preventing others from calling a function based on a condition, but always allowing the class to call it?
body: <p>I wasn't sure how to call this. Basically I have a Label widget. It has an auto size feature. The problem is I do not know who calls setSize(); I need to know if the class called it or if the user of the label called it because you cannot resize an auto sizing widget. I cannot directly change the size because, well 1, it's not very OO, and 2 I cannot access it because the size is in the base class. I can only override setSize() but without knowing who called it, I cannot filter out anyone.</p>
  
  <p>Thanks</p>