32 #include "scene/gui/control.h" 67 int get_longest_line_width()
const;
80 WordCache() { char_pos=0; word_len=0; pixel_width=0; next=0; space_count=0;}
83 bool word_cache_dirty;
84 void regenerate_word_cache();
86 float percent_visible;
88 WordCache *word_cache;
92 int max_lines_visible;
94 void _notification(
int p_what);
96 static void _bind_methods();
100 virtual Size2 get_minimum_size()
const;
102 void set_align(Align p_align);
103 Align get_align()
const;
105 void set_valign(VAlign p_align);
106 VAlign get_valign()
const;
108 void set_text(
const String& p_string);
111 void set_autowrap(
bool p_autowrap);
112 bool has_autowrap()
const;
114 void set_uppercase(
bool p_uppercase);
115 bool is_uppercase()
const;
117 void set_visible_characters(
int p_amount);
118 int get_visible_characters()
const;
119 int get_total_character_count()
const;
121 void set_clip_text(
bool p_clip);
122 bool is_clipping_text()
const;
124 void set_percent_visible(
float p_percent);
125 float get_percent_visible()
const;
127 void set_lines_skipped(
int p_lines);
128 int get_lines_skipped()
const;
130 void set_max_lines_visible(
int p_lines);
131 int get_max_lines_visible()
const;
133 int get_line_height()
const;
134 int get_line_count()
const;
142 VARIANT_ENUM_CAST( Label::Align );
143 VARIANT_ENUM_CAST( Label::VAlign );