コード例 #1
0
	/**
	 * Sets the grow factor for a column.
	 *
	 * @todo refer to a page with the layout manipulation info.
	 *
	 * @param column              The column to modify.
	 * @param factor              The grow factor.
	 */
	void set_column_grow_factor(const unsigned column, const unsigned factor)
	{
		assert(column< col_grow_factor_.size());
		col_grow_factor_[column] = factor;
		set_dirty();
	}
コード例 #2
0
void
Button::on_leave()
{
  hover = false;
  set_dirty(true);
}
コード例 #3
0
	/**
	 * Sets the grow factor for a row.
	 *
	 * @todo refer to a page with the layout manipulation info.
	 *
	 * @param row                 The row to modify.
	 * @param factor              The grow factor.
	 */
	void set_row_grow_factor(const unsigned row, const unsigned factor)
	{
		assert(row < row_grow_factor_.size());
		row_grow_factor_[row] = factor;
		set_dirty();
	}
コード例 #4
0
void AISRecentEntryDetailView::set_entry(const AISRecentEntry& entry) {
	entry_ = entry;
	set_dirty();
}
コード例 #5
0
void
Button::on_enter()
{
  hover = true;
  set_dirty(true);
}
コード例 #6
0
ファイル: asm.c プロジェクト: Wonicon/naivecc
void gen_asm_addr(IR *ir)
{
    int x = allocate(ir->rd);
    set_dirty(x);
    emit_asm(addiu, "%s, $sp, %d  # get %s's address", reg_to_s(x), sp_offset - ir->rs->address, print_operand(ir->rs));
}
コード例 #7
0
ファイル: window.hpp プロジェクト: blackberry/Wesnoth
	void set_variable(const std::string& key, const variant& value)
	{
		variables_.add(key, value);
		set_dirty();
	}
コード例 #8
0
void Channel::on_statistics_update(const ChannelStatistics& statistics) {
	max_db_ = statistics.max_db;
	set_dirty();
}
コード例 #9
0
ファイル: ui_rssi.cpp プロジェクト: furrtek/portapack-havoc
void RSSI::on_statistics_update(const RSSIStatistics& statistics) {
    min_ = statistics.min;
    avg_ = statistics.accumulator / statistics.count;
    max_ = statistics.max;
    set_dirty();
}
コード例 #10
0
ファイル: help_text_area.cpp プロジェクト: PositiveMD/wesnoth
void help_text_area::show_topic(const topic &t)
{
	shown_topic_ = &t;
	set_items();
	set_dirty(true);
}
コード例 #11
0
ファイル: widget.cpp プロジェクト: Martin9295/wesnoth
void widget::set_clip_rect(const SDL_Rect& rect)
{
	clip_rect_ = rect;
	clip_ = true;
	set_dirty(true);
}
コード例 #12
0
ファイル: label.cpp プロジェクト: dodikk/iWesnoth
const SDL_Color& label::set_colour(const SDL_Color& colour)
{
	colour_ = colour;
	set_dirty();
	return get_colour();
}
コード例 #13
0
	void set_best_slider_length(const unsigned length)
		{ best_slider_length_ = length; set_dirty(); }
コード例 #14
0
ファイル: file.cpp プロジェクト: ilelann/legacy
void file_buffer_t::set_line_endings(line_ending_t le, bool force)
{
    set_line_endings_impl(le, force);

    set_dirty(true);
}